Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 5 | 0.953 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 979 | BioSQL/Loader.py |
2 | 9 | 1030 | BioSQL/Loader.py |
| ||||
def _add_seqfeature_dbxref(self,seqfeature_id,dbxref_id,rank): """ Insert a seqfeature_dbxref row and return the seqfeature_id and dbxref_id """ sql = "INSERT INTO seqfeature_dbxref " "(seqfeature_id, dbxref_id, rank) VALUES" "(%s, %s, %s)" self.adaptor.execute(sql,(seqfeature_id,dbxref_id,rank)) return (seqfeature_id,dbxref_id) |
| ||||
def _add_bioentry_dbxref(self,bioentry_id,dbxref_id,rank): """ Insert a bioentry_dbxref row and return the seqfeature_id and dbxref_id """ sql = "INSERT INTO bioentry_dbxref " "(bioentry_id,dbxref_id,rank) VALUES " "(%s, %s, %s)" self.adaptor.execute(sql,(bioentry_id,dbxref_id,rank)) return (bioentry_id,dbxref_id) |
| |||
def [[#variable7c3767c0]](self, [[#variable7c376740]],dbxref_id,rank): [[#variable7c3766a0]] sql = [[#variable7c376620]] [[#variable7c376520]]"(%s, %s, %s)" self.adaptor.execute(sql,( [[#variable7c376740]],dbxref_id,rank)) return ( [[#variable7c376740]],dbxref_id) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7c3767c0]] | _add_bioentry_dbxref |
1 | 2 | [[#7c3767c0]] | _add_seqfeature_dbxref |
2 | 1 | [[#7c376740]] | bioentry_id |
2 | 2 | [[#7c376740]] | seqfeature_id |
3 | 1 | [[#7c3766a0]] | """ Insert a bioentry_dbxref row and return the seqfeature_id and dbxref_id """ |
3 | 2 | [[#7c3766a0]] | """ Insert a seqfeature_dbxref row and return the seqfeature_id and dbxref_id """ |
4 | 1 | [[#7c376620]] | "INSERT INTO bioentry_dbxref " |
4 | 2 | [[#7c376620]] | "INSERT INTO seqfeature_dbxref " |
5 | 1 | [[#7c376520]] | "(bioentry_id,dbxref_id,rank) VALUES " |
5 | 2 | [[#7c376520]] | "(seqfeature_id, dbxref_id, rank) VALUES" |