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

Function get_task_name

src/evaluate_gen.py:95–101  ·  view source on GitHub ↗
(tasks, task)

Source from the content-addressed store, hash-verified

93
94
95def get_task_name(tasks, task):
96 matches = [t for t in tasks if t.startswith(task)]
97 if len(matches) == 1:
98 return matches[0]
99 if len(matches) > 1:
100 return min(matches, key=len)
101 return None
102
103def get_grammar_task(task):
104 task = task.split('_')[1]

Callers 1

evaluate_gen.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected