CloneSet76


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.992compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118442
Scripts/xbbtools/xbb_widget.py
217461
Scripts/xbbtools/xbb_widget.py
Clone Instance
1
Line Count
18
Source Line
442
Source File
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) 


Clone Instance
2
Line Count
17
Source Line
461
Source File
Scripts/xbbtools/xbb_widget.py

    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) 


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#761a1820]]
antiparallel 
12[[#761a1820]]
complement 
21[[#761a1720]]
antip 
22[[#761a1720]]
#print 'seq >%s<' % seq
complementary