CloneSet230


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.957stmt_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110260
Bio/SeqFeature.py
210277
Bio/SeqFeature.py
Clone Instance
1
Line Count
10
Source Line
260
Source File
Bio/SeqFeature.py

    def _get_nofuzzy_start(self): 
        #TODO - Do we still use the BetweenPosition class?
        if ((self._start==self._end) and   isinstance(self._start,BetweenPosition)):
                               
            return self._start.position 
        else: 
             return min(self._start.position,self._start.position+self._start.extension) 
        
    nofuzzy_start = property(fget = _get_nofuzzy_start,doc = """Start position (integer, approximated if fuzzy, read only).

        To get non-fuzzy attributes (ie. the position only) ask for
        'location.nofuzzy_start', 'location.nofuzzy_end'. These should return
        the largest range of the fuzzy position. So something like:
        (10.20)..(30.40) should return 10 for start, and 40 for end.
        """                 ) 


Clone Instance
2
Line Count
10
Source Line
277
Source File
Bio/SeqFeature.py

    def _get_nofuzzy_end(self): 
        #TODO - Do we still use the BetweenPosition class?
        if ((self._start==self._end) and   isinstance(self._start,BetweenPosition)):
                               
            return self._end.position 
        else: 
             return max(self._end.position,self._end.position+self._end.extension) 
        
    nofuzzy_end = property(fget = _get_nofuzzy_end,doc = """End position (integer, approximated if fuzzy, read only).

        To get non-fuzzy attributes (ie. the position only) ask for
        'location.nofuzzy_start', 'location.nofuzzy_end'. These should return
        the largest range of the fuzzy position. So something like:
        (10.20)..(30.40) should return 10 for start, and 40 for end.
        """               ) 


Clone AbstractionParameter Count: 5Parameter Bindings

def [[#variable1781a260]](self):
  #TODO - Do we still use the BetweenPosition class?
  if ((self._start==self._end) and isinstance(self._start,BetweenPosition)):
  
    return self. [[#variable1781a100]].position 
  else:
  
    return [[#variable1781a140]](self. [[#variable1781a100]].position,self. [[#variable1781a100]].position+self. [[#variable1781a100]].extension) 
  
 [[#variable1a3df240]]= property(fget = [[#variable1781a260]],doc = [[#variable1781a1a0]]) 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1781a260]]
_get_nofuzzy_start 
12[[#1781a260]]
_get_nofuzzy_end 
21[[#1781a100]]
_start 
22[[#1781a100]]
_end 
31[[#1781a140]]
min 
32[[#1781a140]]
max 
41[[#1a3df240]]
nofuzzy_start 
42[[#1a3df240]]
nofuzzy_end 
51[[#1781a1a0]]
"""Start position (integer, approximated if fuzzy, read only).

        To get non-fuzzy attributes (ie. the position only) ask for
        'location.nofuzzy_start', 'location.nofuzzy_end'. These should return
        the largest range of the fuzzy position. So something like:
        (10.20)..(30.40) should return 10 for start, and 40 for end.
        """ 
52[[#1781a1a0]]
"""End position (integer, approximated if fuzzy, read only).

        To get non-fuzzy attributes (ie. the position only) ask for
        'location.nofuzzy_start', 'location.nofuzzy_end'. These should return
        the largest range of the fuzzy position. So something like:
        (10.20)..(30.40) should return 10 for start, and 40 for end.
        """