Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.992 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 442 | Scripts/xbbtools/xbb_widget.py |
2 | 17 | 461 | Scripts/xbbtools/xbb_widget.py |
| ||||
def complement(self): w = self.sequence_id w.selection_own( ) try : start,stop = w.tag_ranges(SEL) except : start,stop = 1.0,self.sequence_id.index(END) seq = w.get(start,stop) seq = re.sub("[^A-Z]","",seq) #print 'seq >%s<' % seq complementary = self.translator.complement(seq) w.delete(start,stop) w.insert(start,complementary) w.tag_remove(SEL,1.0,start) w.tag_add(SEL,start,stop) w.tag_remove(SEL,stop,END) |
| ||||
def antiparallel(self): w = self.sequence_id w.selection_own( ) try : start,stop = w.tag_ranges(SEL) except : start,stop = 1.0,self.sequence_id.index(END) seq = w.get(start,stop) seq = re.sub("[^A-Z]","",seq) antip = self.translator.antiparallel(seq) w.delete(start,stop) w.insert(start,antip) w.tag_remove(SEL,1.0,start) w.tag_add(SEL,start,stop) w.tag_remove(SEL,stop,END) |
| |||
def [[#variable761a1820]](self): w = self.sequence_id w.selection_own( ) try : start,stop = w.tag_ranges(SEL) except : start,stop = 1.0,self.sequence_id.index(END) seq = w.get(start,stop) seq = re.sub("[^A-Z]","",seq) [[#variable761a1720]]= self.translator. [[#variable761a1820]](seq) w.delete(start,stop) w.insert(start, [[#variable761a1720]]) w.tag_remove(SEL,1.0,start) w.tag_add(SEL,start,stop) w.tag_remove(SEL,stop,END) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#761a1820]] | antiparallel |
1 | 2 | [[#761a1820]] | complement |
2 | 1 | [[#761a1720]] | antip |
2 | 2 | [[#761a1720]] | #print 'seq >%s<' % seq complementary |