Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.989 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 149 | Doc/examples/getgene.py |
2 | 16 | 166 | Doc/examples/getgene.py |
| ||||
def Get_OS_OC_GN(self,id): entry = self.Get(id) if not entry: return None,None,None OS,OC,GN = "","","" for line in string.split(entry,""" """ ): if line[0:5]=="OS ": OS = string.strip(line[5: ]) if OS[ -1]==".":OS = OS[0: -1] if line[0:5]=="OC ": OC = OC+string.strip(line[5: ]) if OC[ -1]==".":OC = OC[0: -1] if line[0:5]=="GN ": GN = string.strip(line[5: ]) if GN[ -1]==".":GN = GN[0: -1] if line[0:2]=="//": break return OS,OC,GN |
| ||||
def Get_OS_OC_OG(self,id): entry = self.Get(id) if not entry: return None,None,None OS,OC,OG = "","","" for line in string.split(entry,""" """ ): if line[0:5]=="OS ": OS = string.strip(line[5: ]) if OS[ -1]==".":OS = OS[0: -1] if line[0:5]=="OC ": OC = OC+string.strip(line[5: ]) if OC[ -1]==".":OC = OC[0: -1] if line[0:5]=="OG ": OG = string.strip(line[5: ]) if OG[ -1]==".":OG = OG[0: -1] if line[0:2]=="//": break return OS,OC,OG |
| |||
def [[#variable6ae9c4c0]](self,id): entry = self.Get(id) if not entry: return None,None,None OS,OC, [[#variable6ae9c3e0]]= "","","" for line in string.split(entry,""" """ ): if line[0:5]=="OS ": OS = string.strip(line[5: ]) if OS[ -1]==".":OS = OS[0: -1] if line[0:5]=="OC ": OC = OC+string.strip(line[5: ]) if OC[ -1]==".":OC = OC[0: -1] if line[0:5]== [[#variable6ae9c2e0]]: [[#variable6ae9c3e0]]= string.strip(line[5: ]) if [[#variable6ae9c3e0]][ -1]==".": [[#variable6ae9c3e0]]= [[#variable6ae9c3e0]][0: -1] if line[0:2]=="//": break return OS,OC, [[#variable6ae9c3e0]] |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6ae9c4c0]] | Get_OS_OC_OG |
1 | 2 | [[#6ae9c4c0]] | Get_OS_OC_GN |
2 | 1 | [[#6ae9c3e0]] | OG |
2 | 2 | [[#6ae9c3e0]] | GN |
3 | 1 | [[#6ae9c2e0]] | "OG " |
3 | 2 | [[#6ae9c2e0]] | "GN " |