Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
29 | 3 | 2 | 0.995 | stmt_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 29 | 228 | Bio/Prosite/__init__.py |
2 | 29 | 117 | Bio/Prosite/Prodoc.py |
3 | 29 | 173 | Bio/SwissProt/SProt.py |
| ||||
__filename_key = "__filename" def __init__(self,indexname,parser = None): """__init__(self, indexname, parser=None) Open a Prosite Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ self._index = Index.Index(indexname) self._handle = open(self._index[Dictionary.__filename_key]) self._parser = parser def __len__(self): return len(self._index) def __getitem__(self,key): start,len = self._index[key] self._handle.seek(start) data = self._handle.read(len) if self._parser is not None: return self._parser.parse(File.StringHandle(data)) return data def __getattr__(self,name): return getattr(self._index,name) |
| ||||
__filename_key = "__filename" def __init__(self,indexname,parser = None): """__init__(self, indexname, parser=None) Open a Prodoc Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ self._index = Index.Index(indexname) self._handle = open(self._index[Dictionary.__filename_key]) self._parser = parser def __len__(self): return len(self._index) def __getitem__(self,key): start,len = self._index[key] self._handle.seek(start) data = self._handle.read(len) if self._parser is not None: return self._parser.parse(File.StringHandle(data)) return data def __getattr__(self,name): return getattr(self._index,name) |
| ||||
__filename_key = "__filename" def __init__(self,indexname,parser = None): """__init__(self, indexname, parser=None) Open a SwissProt Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ self._index = Index.Index(indexname) self._handle = open(self._index[self.__filename_key]) self._parser = parser def __len__(self): return len(self._index) def __getitem__(self,key): start,len = self._index[key] self._handle.seek(start) data = self._handle.read(len) if self._parser is not None: return self._parser.parse(File.StringHandle(data)) return data def __getattr__(self,name): return getattr(self._index,name) |
| |||
__filename_key = "__filename" def __init__(self,indexname,parser = None): [[#variable5fc109a0]] self._index = Index.Index(indexname) self._handle = open(self._index[ [[#variable4f94e3a0]].__filename_key]) self._parser = parser def __len__(self): return len(self._index) def __getitem__(self,key): start,len = self._index[key] self._handle.seek(start) data = self._handle.read(len) if self._parser is not None: return self._parser.parse(File.StringHandle(data)) return data def __getattr__(self,name): return getattr(self._index,name) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5fc109a0]] | """__init__(self, indexname, parser=None) Open a Prodoc Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ |
1 | 2 | [[#5fc109a0]] | """__init__(self, indexname, parser=None) Open a Prosite Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ |
1 | 3 | [[#5fc109a0]] | """__init__(self, indexname, parser=None) Open a SwissProt Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned. """ |
2 | 1 | [[#4f94e3a0]] | Dictionary |
2 | 2 | [[#4f94e3a0]] | Dictionary |
2 | 3 | [[#4f94e3a0]] | self |