Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
31 | 2 | 2 | 0.966 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 31 | 180 | Bio/ExPASy/Prosite.py |
2 | 31 | 499 | Bio/Prosite/__init__.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)) |
| ||||
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)) |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77ab44e0]] | value |
1 | 2 | [[#77ab44e0]] | self._clean(line) |
2 | 1 | [[#71a8d420]] | record |
2 | 2 | [[#71a8d420]] | self.data |