MCPcopy Create free account
hub / github.com/IBM/ACPBench / compare

Function compare

src/evaluate_gen.py:28–36  ·  view source on GitHub ↗
(l1, l2)

Source from the content-addressed store, hash-verified

26 return remove_garbage(s1).lower() == remove_garbage(s2).lower()
27
28def compare(l1, l2):
29 if not isinstance(l1, list):
30 return compare_str(l1,l2)
31 if not isinstance(l2, list):
32 return False
33 for i, v in enumerate (l1):
34 if not compare(v, l2[i]):
35 return False
36 return True
37
38def get_type(file):
39 return "gen" if "_gen_" in file else None

Callers 1

evaluate_gen.pyFile · 0.85

Calls 1

compare_strFunction · 0.85

Tested by

no test coverage detected