MCPcopy Index your code
hub / github.com/evalplus/evalplus / mbpp_serialize_inputs

Function mbpp_serialize_inputs

evalplus/data/mbpp.py:34–44  ·  view source on GitHub ↗
(task_id: str, inputs: list)

Source from the content-addressed store, hash-verified

32
33
34def mbpp_serialize_inputs(task_id: str, inputs: list) -> list:
35 task_id = int(task_id.split("/")[-1])
36
37 if task_id == 115:
38 return [[[list(item) for item in inp[0]]] for inp in inputs]
39 elif task_id == 124:
40 return [(str(inp[0]), str(inp[1])) for inp in inputs]
41 elif task_id == 252:
42 return [[str(inp[0])] for inp in inputs]
43
44 return inputs
45
46
47def mbpp_deserialize_inputs(task_id: str, inputs: list) -> list:

Callers 5

init_plus.pyFile · 0.90
input_generationFunction · 0.90
evaluateFunction · 0.90
mainFunction · 0.90
scriptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…