Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 5 | 0.985 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 975 | Bio/Nexus/Nexus.py |
2 | 23 | 1019 | 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 |
| ||||
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 |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#78a2dee0]] | _charpartition |
1 | 2 | [[#78a2dee0]] | _taxpartition |
2 | 1 | [[#71b6e6e0]] | charpartition |
2 | 2 | [[#71b6e6e0]] | taxpartition |
3 | 1 | [[#78a2d580]] | "Formatting error in charpartition: %s " |
3 | 2 | [[#78a2d580]] | "Formatting error in taxpartition: %s " |
4 | 1 | [[#71b6fa80]] | CHARSET |
4 | 2 | [[#71b6fa80]] | TAXSET |
5 | 1 | [[#71b6fae0]] | charpartitions |
5 | 2 | [[#71b6fae0]] | taxpartitions |