CloneSet31


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31220.966block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
131180
Bio/ExPASy/Prosite.py
231499
Bio/Prosite/__init__.py
Clone Instance
1
Line Count
31
Source Line
180
Source File
Bio/ExPASy/Prosite.py

            cols = value.split(";") 
            for col in cols: 
                 if not col: 
                      continue 
                 qual,data =  [word.lstrip( ) for word in col.split("=")] 
                 if qual=="/RELEASE":  
                     release,seqs =  data.split(",") 
                     record.nr_sp_release = release 
                     record.nr_sp_seqs = int(seqs) 
                 elif qual=="/FALSE_NEG":  
                     record.nr_false_neg = int(data) 
                 elif qual=="/PARTIAL":  
                     record.nr_partial = int(data) 
                 elif qual in ["/TOTAL","/POSITIVE","/UNKNOWN","/FALSE_POS"]:   
                     m = re.match("(\\d+)\\((\\d+)\\)",data) 
                     if not m: 
                          raise Exception("""Broken data %s in comment line
%s"""                                     %(repr(data),line)) 
                     hits = tuple(map(int,m.groups( ))) 
                     if (qual=="/TOTAL"): 
                         record.nr_total = hits 
                     elif (qual=="/POSITIVE"): 
                         record.nr_positive = hits 
                     elif (qual=="/UNKNOWN"): 
                         record.nr_unknown = hits 
                     elif (qual=="/FALSE_POS"): 
                         record.nr_false_pos = hits 
                     
                 else: 
                      raise ValueError("""Unknown qual %s in comment line
%s"""                                  %(repr(qual),line)) 
                 


Clone Instance
2
Line Count
31
Source Line
499
Source File
Bio/Prosite/__init__.py

        cols = self._clean(line).split(";") 
        for col in cols: 
             if not col: 
                  continue 
             qual,data =  [word.lstrip( ) for word in col.split("=")] 
             if qual=="/RELEASE":  
                 release,seqs =  data.split(",") 
                 self.data.nr_sp_release = release 
                 self.data.nr_sp_seqs = int(seqs) 
             elif qual=="/FALSE_NEG":  
                 self.data.nr_false_neg = int(data) 
             elif qual=="/PARTIAL":  
                 self.data.nr_partial = int(data) 
             elif qual in ["/TOTAL","/POSITIVE","/UNKNOWN","/FALSE_POS"]:   
                 m = re.match("(\\d+)\\((\\d+)\\)",data) 
                 if not m: 
                      raise Exception("""Broken data %s in comment line
%s"""                                 %(repr(data),line)) 
                 hits = tuple(map(int,m.groups( ))) 
                 if (qual=="/TOTAL"): 
                     self.data.nr_total = hits 
                 elif (qual=="/POSITIVE"): 
                     self.data.nr_positive = hits 
                 elif (qual=="/UNKNOWN"): 
                     self.data.nr_unknown = hits 
                 elif (qual=="/FALSE_POS"): 
                     self.data.nr_false_pos = hits 
                 
             else: 
                  raise ValueError("""Unknown qual %s in comment line
%s"""                              %(repr(qual),line)) 
             


Clone AbstractionParameter Count: 2Parameter Bindings

  cols = [[#variable77ab44e0]].split(";") 
  for col in cols:
  
    if not col:
    
      continue 
    qual,data = [word.lstrip( ) for word in col.split("=")] 
    if qual=="/RELEASE":
    
      release,seqs = data.split(",") 
       [[#variable71a8d420]].nr_sp_release = release 
       [[#variable71a8d420]].nr_sp_seqs = int(seqs) 
    elif qual=="/FALSE_NEG":
    
       [[#variable71a8d420]].nr_false_neg = int(data) 
    elif qual=="/PARTIAL":
    
       [[#variable71a8d420]].nr_partial = int(data) 
    elif qual in ["/TOTAL","/POSITIVE","/UNKNOWN","/FALSE_POS"]:
    
      m = re.match("(\\d+)\\((\\d+)\\)",data) 
      if not m:
      
        raise Exception("""Broken data %s in comment line
%s"""                   %(repr(data),line)) 
      hits = tuple(map(int,m.groups( ))) 
      if (qual=="/TOTAL"):
      
         [[#variable71a8d420]].nr_total = hits 
      elif (qual=="/POSITIVE"):
      
         [[#variable71a8d420]].nr_positive = hits 
      elif (qual=="/UNKNOWN"):
      
         [[#variable71a8d420]].nr_unknown = hits 
      elif (qual=="/FALSE_POS"):
      
         [[#variable71a8d420]].nr_false_pos = hits 
      
    else:
    
      raise ValueError("""Unknown qual %s in comment line
%s"""                  %(repr(qual),line)) 
    
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77ab44e0]]
value 
12[[#77ab44e0]]
self._clean(line) 
21[[#71a8d420]]
record 
22[[#71a8d420]]
self.data