Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 4 | 0.952 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 193 | Bio/NetCatch.py |
2 | 14 | 208 | 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( ) |
| ||||
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( ) |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2f00a0c0]] | get_urls_by_range |
1 | 2 | [[#2f00a0c0]] | get_urls_by_index |
2 | 1 | [[#2f00a040]] | self,low, |
2 | 2 | [[#2f00a040]] | self, |
3 | 1 | [[#2f5b5fe0]] | hi |
3 | 2 | [[#2f5b5fe0]] | indices |
4 | 1 | [[#2f5b5f80]] | range(low,hi) |
4 | 2 | [[#2f5b5f80]] | indices |