Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.978 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 131 | Bio/Seq.py |
2 | 10 | 1191 | Bio/Seq.py |
| ||||
def __getitem__(self,index): # Seq API requirement #Note since Python 2.0, __getslice__ is deprecated #and __getitem__ is used instead. #See http://docs.python.org/ref/sequence-methods.html if isinstance(index,int): #Return a single letter as a string return self._data[index] else: #Return the (sub)sequence as another Seq object return Seq(self._data[index],self.alphabet) |
| ||||
def __getitem__(self,index): #Note since Python 2.0, __getslice__ is deprecated #and __getitem__ is used instead. #See http://docs.python.org/ref/sequence-methods.html if isinstance(index,int): #Return a single letter as a string return self.data[index] else: #Return the (sub)sequence as another Seq object return MutableSeq(self.data[index],self.alphabet) |
| |||
def __getitem__(self,index): # Seq API requirement #Note since Python 2.0, __getslice__ is deprecated #and __getitem__ is used instead. #See http://docs.python.org/ref/sequence-methods.html if isinstance(index,int): #Return a single letter as a string return self. [[#variable6016fda0]][index] else: #Return the (sub)sequence as another Seq object return [[#variable6016fd00]](self. [[#variable6016fda0]][index],self.alphabet) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6016fda0]] | data |
1 | 2 | [[#6016fda0]] | _data |
2 | 1 | [[#6016fd00]] | MutableSeq |
2 | 2 | [[#6016fd00]] | Seq |