MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _compute_similarity_row

Function _compute_similarity_row

codeclash/analysis/code_evolve/main.py:112–121  ·  view source on GitHub ↗

Helper for parallel similarity computation.

(args)

Source from the content-addressed store, hash-verified

110
111
112def _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
124def compute_round_consistency(

Callers

nothing calls this directly

Calls 1

compute_code_similarityFunction · 0.85

Tested by

no test coverage detected