Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 3 | 0.981 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 346 | Bio/SeqFeature.py |
2 | 17 | 364 | Bio/SeqFeature.py |
| ||||
class WithinPosition(AbstractPosition): """Specify the position of a boundary within some coordinates. Arguments: o position - The start position of the boundary o extension - The range to which the boundary can extend. This allows dealing with a position like ((1.4)..100). This indicates that the start of the sequence is somewhere between 1 and 4. To represent that with this class we would set position as 1 and extension as 3. """ def __init__(self,position,extension = 0): AbstractPosition.__init__(self,position,extension) def __str__(self): return "(%s.%s)"%(self.position,self.position+self.extension) |
| ||||
class BetweenPosition(AbstractPosition): """Specify the position of a boundary between two coordinates. Arguments: o position - The start position of the boundary. o extension - The range to the other position of a boundary. This specifies a coordinate which is found between the two positions. So this allows us to deal with a position like ((1^2)..100). To represent that with this class we set position as 1 and the extension as 1. """ def __init__(self,position,extension = 0): AbstractPosition.__init__(self,position,extension) def __str__(self): return "(%s^%s)"%(self.position,self.position+self.extension) |
| |||
class [[#variable2dc4af40]](AbstractPosition): [[#variable2dc4a000]] def __init__(self,position,extension = 0): AbstractPosition.__init__(self,position,extension) def __str__(self): return [[#variable2dc4b9c0]]%(self.position,self.position+self.extension) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2dc4af40]] | BetweenPosition |
1 | 2 | [[#2dc4af40]] | WithinPosition |
2 | 1 | [[#2dc4a000]] | """Specify the position of a boundary between two coordinates. Arguments: o position - The start position of the boundary. o extension - The range to the other position of a boundary. This specifies a coordinate which is found between the two positions. So this allows us to deal with a position like ((1^2)..100). To represent that with this class we set position as 1 and the extension as 1. """ |
2 | 2 | [[#2dc4a000]] | """Specify the position of a boundary within some coordinates. Arguments: o position - The start position of the boundary o extension - The range to which the boundary can extend. This allows dealing with a position like ((1.4)..100). This indicates that the start of the sequence is somewhere between 1 and 4. To represent that with this class we would set position as 1 and extension as 3. """ |
3 | 1 | [[#2dc4b9c0]] | "(%s^%s)" |
3 | 2 | [[#2dc4b9c0]] | "(%s.%s)" |