CloneSet194


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.987compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18676
Bio/pairwise2.py
29685
Bio/pairwise2.py
Clone Instance
1
Line Count
8
Source Line
676
Source File
Bio/pairwise2.py

def _pad_until_equal(s1,s2,char):  
    # Add char to the end of s1 or s2 until they are equal length.
    ls1,ls2 =  len(s1),len(s2) 
    if ls1<ls2:  
        s1 = _pad(s1,char,ls2-ls1) 
    elif ls2<ls1:  
        s2 = _pad(s2,char,ls1-ls2) 
    return s1,s2 


Clone Instance
2
Line Count
9
Source Line
685
Source File
Bio/pairwise2.py

def _lpad_until_equal(s1,s2,char):  
    # Add char to the beginning of s1 or s2 until they are equal
    # length.
    ls1,ls2 =  len(s1),len(s2) 
    if ls1<ls2:  
        s1 = _lpad(s1,char,ls2-ls1) 
    elif ls2<ls1:  
        s2 = _lpad(s2,char,ls1-ls2) 
    return s1,s2 


Clone AbstractionParameter Count: 2Parameter Bindings

def [[#variable5be2f3c0]](s1,s2,char):
  # Add char to the beginning of s1 or s2 until they are equal
  # length.
  # Add char to the end of s1 or s2 until they are equal length.
  ls1,ls2 = len(s1),len(s2) 
  if ls1<ls2:
  
    s1 = [[#variable5f99fca0]](s1,char,ls2-ls1) 
  elif ls2<ls1:
  
    s2 = [[#variable5f99fca0]](s2,char,ls1-ls2) 
  return s1,s2 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5be2f3c0]]
_lpad_until_equal 
12[[#5be2f3c0]]
_pad_until_equal 
21[[#5f99fca0]]
_lpad 
22[[#5f99fca0]]
_pad