Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.987 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 676 | Bio/pairwise2.py |
2 | 9 | 685 | 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 |
| ||||
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 |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5be2f3c0]] | _lpad_until_equal |
1 | 2 | [[#5be2f3c0]] | _pad_until_equal |
2 | 1 | [[#5f99fca0]] | _lpad |
2 | 2 | [[#5f99fca0]] | _pad |