Helper for parallel similarity computation.
(args)
| 110 | |
| 111 | |
| 112 | def _compute_similarity_row(args): |
| 113 | """Helper for parallel similarity computation.""" |
| 114 | i, patch_i, patches, similarity = args |
| 115 | row = np.zeros(len(patches)) |
| 116 | for j, patch_j in enumerate(patches): |
| 117 | if i != j: |
| 118 | row[j] = compute_code_similarity(patch_i, patch_j, similarity) |
| 119 | else: |
| 120 | row[j] = 1.0 |
| 121 | return i, row |
| 122 | |
| 123 | |
| 124 | def compute_round_consistency( |
nothing calls this directly
no test coverage detected