CloneSet78


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23250.985compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124975
Bio/Nexus/Nexus.py
2231019
Bio/Nexus/Nexus.py
Clone Instance
1
Line Count
24
Source Line
975
Source File
Bio/Nexus/Nexus.py

    def _taxpartition(self,options): 
        taxpartition = { } 
        quotelevel = False 
        opts = CharBuffer(options) 
        name = self._name_n_vector(opts) 
        if not name: 
             raise NexusError("Formatting error in taxpartition: %s "%options) 
         # now collect thesubbpartitions and parse them
         # subpartitons separated by commas - which unfortunately could be part of a quoted identifier...
         # this is rather unelegant, but we have to avoid double-parsing and potential change of special nexus-words
        sub = "" 
        while True: 
             w = opts.next( ) 
             if w is None or (w=="," and not quotelevel): 
                  subname,subindices = self._get_indices(sub,set_type = TAXSET,separator = ":") 
                  taxpartition[subname] = _make_unique(subindices) 
                  sub = "" 
                  if w is None: 
                       break 
                  
             else: 
                  if w=="'": 
                       quotelevel = not quotelevel 
                  sub+=w 
             
        self.taxpartitions[name] = taxpartition 


Clone Instance
2
Line Count
23
Source Line
1019
Source File
Bio/Nexus/Nexus.py

    def _charpartition(self,options): 
        charpartition = { } 
        quotelevel = False 
        opts = CharBuffer(options) 
        name = self._name_n_vector(opts) 
        if not name: 
             raise NexusError("Formatting error in charpartition: %s "%options) 
         # now collect thesubbpartitions and parse them
         # subpartitons separated by commas - which unfortunately could be part of a quoted identifier...
        sub = "" 
        while True: 
             w = opts.next( ) 
             if w is None or (w=="," and not quotelevel): 
                  subname,subindices = self._get_indices(sub,set_type = CHARSET,separator = ":") 
                  charpartition[subname] = _make_unique(subindices) 
                  sub = "" 
                  if w is None: 
                       break 
                  
             else: 
                  if w=="'": 
                       quotelevel = not quotelevel 
                  sub+=w 
             
        self.charpartitions[name] = charpartition 


Clone AbstractionParameter Count: 5Parameter Bindings

def [[#variable78a2dee0]](self,options):
   [[#variable71b6e6e0]]= { } 
  quotelevel = False 
  opts = CharBuffer(options) 
  name = self._name_n_vector(opts) 
  if not name:
  
    raise NexusError( [[#variable78a2d580]]%options) 
    # now collect thesubbpartitions and parse them
    # subpartitons separated by commas - which unfortunately could be part of a quoted identifier...
    # this is rather unelegant, but we have to avoid double-parsing and potential change of special nexus-words
  sub = "" 
  while True:
  
    w = opts.next( ) 
    if w is None or (w=="," and not quotelevel):
    
      subname,subindices = self._get_indices(sub,set_type = [[#variable71b6fa80]],separator = ":") 
       [[#variable71b6e6e0]][subname] = _make_unique(subindices) 
      sub = "" 
      if w is None:
      
        break 
      
    else:
    
      if w=="'":
      
        quotelevel = not quotelevel 
      sub+=w 
    
  self. [[#variable71b6fae0]][name] = [[#variable71b6e6e0]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78a2dee0]]
_charpartition 
12[[#78a2dee0]]
_taxpartition 
21[[#71b6e6e0]]
charpartition 
22[[#71b6e6e0]]
taxpartition 
31[[#78a2d580]]
"Formatting error in charpartition: %s " 
32[[#78a2d580]]
"Formatting error in taxpartition: %s " 
41[[#71b6fa80]]
CHARSET 
42[[#71b6fa80]]
TAXSET 
51[[#71b6fae0]]
charpartitions 
52[[#71b6fae0]]
taxpartitions