CloneSet38


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16230.989compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116149
Doc/examples/getgene.py
216166
Doc/examples/getgene.py
Clone Instance
1
Line Count
16
Source Line
149
Source File
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 


Clone Instance
2
Line Count
16
Source Line
166
Source File
Doc/examples/getgene.py

    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 


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ae9c4c0]]
Get_OS_OC_OG 
12[[#6ae9c4c0]]
Get_OS_OC_GN 
21[[#6ae9c3e0]]
OG 
22[[#6ae9c3e0]]
GN 
31[[#6ae9c2e0]]
"OG   " 
32[[#6ae9c2e0]]
"GN   "