CloneSet106


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.952compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114193
Bio/NetCatch.py
214208
Bio/NetCatch.py
Clone Instance
1
Line Count
14
Source Line
193
Source File
Bio/NetCatch.py

    def get_urls_by_index(self,indices):   
        url_opener = urllib.URLopener( ) 
        for index in indices: 
             base_path =  self.base_path 
             name = "%s.htm"%self._labels[index] 
             full_path = os.path.join(base_path,name) 
             out_handle = open(full_path,"wb") 
             label = self._labels[index] 
             url = self._urls[label] 
             url_handle = url_opener.open(url) 
             contents = url_handle.read( ) 
             out_handle.write(contents) 
             url_opener.close( ) 
             out_handle.close( ) 
        


Clone Instance
2
Line Count
14
Source Line
208
Source File
Bio/NetCatch.py

    def get_urls_by_range(self,low,hi):    
        url_opener = urllib.URLopener( ) 
        for index in range(low,hi):   
            base_path =  self.base_path 
            name = "%s.htm"%self._labels[index] 
            full_path = os.path.join(base_path,name) 
            out_handle = open(full_path,"wb") 
            label = self._labels[index] 
            url = self._urls[label] 
            url_handle = url_opener.open(url) 
            contents = url_handle.read( ) 
            out_handle.write(contents) 
            url_opener.close( ) 
            out_handle.close( ) 
        


Clone AbstractionParameter Count: 4Parameter Bindings

def [[#variable2f00a0c0]]( [[#variable2f00a040]] [[#variable2f5b5fe0]]):
  url_opener = urllib.URLopener( ) 
  for index in [[#variable2f5b5f80]]:
  
    base_path = self.base_path 
    name = "%s.htm"%self._labels[index] 
    full_path = os.path.join(base_path,name) 
    out_handle = open(full_path,"wb") 
    label = self._labels[index] 
    url = self._urls[label] 
    url_handle = url_opener.open(url) 
    contents = url_handle.read( ) 
    out_handle.write(contents) 
    url_opener.close( ) 
    out_handle.close( ) 
  
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2f00a0c0]]
get_urls_by_range 
12[[#2f00a0c0]]
get_urls_by_index 
21[[#2f00a040]]
self,low, 
22[[#2f00a040]]
self, 
31[[#2f5b5fe0]]
hi 
32[[#2f5b5fe0]]
indices 
41[[#2f5b5f80]]
range(low,hi) 
42[[#2f5b5f80]]
indices