CloneSet317


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.981compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117346
Bio/SeqFeature.py
217364
Bio/SeqFeature.py
Clone Instance
1
Line Count
17
Source Line
346
Source File
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) 
     


Clone Instance
2
Line Count
17
Source Line
364
Source File
Bio/SeqFeature.py

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) 
     


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2dc4af40]]
BetweenPosition 
12[[#2dc4af40]]
WithinPosition 
21[[#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.
    """ 
22[[#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.
    """ 
31[[#2dc4b9c0]]
"(%s^%s)" 
32[[#2dc4b9c0]]
"(%s.%s)"