| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 0 | 1.000 | stmt_list[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 325 | Bio/pairwise2.py |
| 2 | 5 | 408 | Bio/pairwise2.py |
| ||||
lenA,lenB = len(sequenceA),len(sequenceB)
score_matrix,trace_matrix = [ ],[ ]
for i in range(lenA):
score_matrix.append([None]*lenB)
trace_matrix.append([[None]]*lenB)
# The top and left borders of the matrices are special cases
# because there are no previously aligned characters. To simplify
# the main loop, handle these separately.
|
| ||||
# Create the score and traceback matrices. These should be in the
# shape:
# sequenceA (down) x sequenceB (across)
lenA,lenB = len(sequenceA),len(sequenceB)
score_matrix,trace_matrix = [ ],[ ]
for i in range(lenA):
score_matrix.append([None]*lenB)
trace_matrix.append([[None]]*lenB)
# The top and left borders of the matrices are special cases
# because there are no previously aligned characters. To simplify
# the main loop, handle these separately.
|
| |||
# Create the score and traceback matrices. These should be in the # shape: # sequenceA (down) x sequenceB (across) lenA,lenB = len(sequenceA),len(sequenceB) score_matrix,trace_matrix = [ ],[ ] for i in range(lenA): score_matrix.append([None]*lenB) trace_matrix.append([[None]]*lenB) # The top and left borders of the matrices are special cases # because there are no previously aligned characters. To simplify # the main loop, handle these separately. |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||