Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.964 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 112 | Doc/examples/getgene.py |
2 | 10 | 197 | Doc/examples/getgene.py |
| ||||
entry = self.Get(id) if not entry: return None OC = "" for line in string.split(entry,""" """ ): if line[0:5]=="OC ": OC = OC+string.strip(line[5: ]) if OC[ -1]==".":OC = OC[0: -1] if line[0:2]=="//": break return OC |
| ||||
entry = self.Get(id) if not entry: return "" XX = "" for line in string.split(entry,""" """ ): if line[0:5]=="%s "%xx: XX = XX+string.strip(line[5: ]) if XX[ -1]==".":XX = XX[0: -1] if line[0:2]=="//": break return XX |
| |||
entry = self.Get(id) if not entry: return [[#variable4f4b43a0]] [[#variable4f4b40e0]]= "" for line in string.split(entry,""" """ ): if line[0:5]== [[#variable4f4b53e0]]: [[#variable4f4b40e0]]= [[#variable4f4b40e0]]+string.strip(line[5: ]) if [[#variable4f4b40e0]][ -1]==".": [[#variable4f4b40e0]]= [[#variable4f4b40e0]][0: -1] if line[0:2]=="//": break return [[#variable4f4b40e0]] |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4f4b43a0]] | None |
1 | 2 | [[#4f4b43a0]] | "" |
2 | 1 | [[#4f4b40e0]] | OC |
2 | 2 | [[#4f4b40e0]] | XX |
3 | 1 | [[#4f4b53e0]] | "OC " |
3 | 2 | [[#4f4b53e0]] | "%s "%xx |