Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 5 | 0.964 | stmt_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 501 | Bio/pairwise2.py |
2 | 14 | 517 | Bio/pairwise2.py |
| ||||
# Update the cached column scores. The best score for # this can come from either extending the gap in the # previous cached score, or opening a new gap from the # most previously seen character. Compare the two scores # and keep the best one. open_score = score_matrix[row-1][col-1]+first_B_gap extend_score = col_cache_score[col-1]+extend_B open_score_rint,extend_score_rint = rint(open_score),rint(extend_score) if open_score_rint>extend_score_rint: col_cache_score[col-1] = open_score col_cache_index[col-1] = [(row-1,col-1)] elif extend_score_rint>open_score_rint: col_cache_score[col-1] = extend_score else: col_cache_score[col-1] = open_score if (row-1,col-1) not in col_cache_index[col-1]: col_cache_index[col-1] = col_cache_index[col-1]+[(row-1,col-1)] # Update the cached row scores. |
| ||||
open_score = score_matrix[row-1][col-1]+first_A_gap extend_score = row_cache_score[row-1]+extend_A open_score_rint,extend_score_rint = rint(open_score),rint(extend_score) if open_score_rint>extend_score_rint: row_cache_score[row-1] = open_score row_cache_index[row-1] = [(row-1,col-1)] elif extend_score_rint>open_score_rint: row_cache_score[row-1] = extend_score else: row_cache_score[row-1] = open_score if (row-1,col-1) not in row_cache_index[row-1]: row_cache_index[row-1] = row_cache_index[row-1]+[(row-1,col-1)] |
| |||
# Update the cached column scores. The best score for # this can come from either extending the gap in the # previous cached score, or opening a new gap from the # most previously seen character. Compare the two scores # and keep the best one. open_score = score_matrix[row-1][col-1]+ [[#variable77487620]] extend_score = [[#variable77d34b60]][ [[#variable60ce9980]]-1]+ [[#variable78048fe0]] open_score_rint,extend_score_rint = rint(open_score),rint(extend_score) if open_score_rint>extend_score_rint: [[#variable77d34b60]][ [[#variable60ce9980]]-1] = open_score [[#variable78049020]][ [[#variable60ce9980]]-1] = [(row-1,col-1)] elif extend_score_rint>open_score_rint: [[#variable77d34b60]][ [[#variable60ce9980]]-1] = extend_score else: [[#variable77d34b60]][ [[#variable60ce9980]]-1] = open_score if (row-1,col-1) not in [[#variable78049020]][ [[#variable60ce9980]]-1]: [[#variable78049020]][ [[#variable60ce9980]]-1] = [[#variable78049020]][ [[#variable60ce9980]]-1]+[(row-1,col-1)] # Update the cached row scores. |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77487620]] | first_A_gap |
1 | 2 | [[#77487620]] | first_B_gap |
2 | 1 | [[#77d34b60]] | row_cache_score |
2 | 2 | [[#77d34b60]] | col_cache_score |
3 | 1 | [[#60ce9980]] | row |
3 | 2 | [[#60ce9980]] | col |
4 | 1 | [[#78048fe0]] | extend_A |
4 | 2 | [[#78048fe0]] | extend_B |
5 | 1 | [[#78049020]] | row_cache_index |
5 | 2 | [[#78049020]] | col_cache_index |