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

Function mbpp_deserialize_inputs

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

Source from the content-addressed store, hash-verified

45
46
47def mbpp_deserialize_inputs(task_id: str, inputs: list) -> list:
48 task_id = int(task_id.split("/")[-1])
49 if task_id in [
50 2,
51 116,
52 132,
53 143,
54 222,
55 261,
56 273,
57 394,
58 399,
59 421,
60 424,
61 429,
62 470,
63 560,
64 579,
65 596,
66 616,
67 630,
68 726,
69 740,
70 744,
71 809,
72 ]:
73 modified_inputs = [[tuple(lst) for lst in inp] for inp in inputs]
74
75 elif task_id in [
76 63,
77 64,
78 70,
79 94,
80 120,
81 237,
82 272,
83 299,
84 400,
85 409,
86 417,
87 438,
88 473,
89 614,
90 780,
91 ]:
92 modified_inputs = [
93 [[tuple(lst) for lst in lst_lst] for lst_lst in inp] for inp in inputs
94 ]
95
96 elif task_id in [75, 413, 444, 753]:
97 modified_inputs = [
98 [[tuple(lst) for lst in inp[0]]] + [inp[1]] for inp in inputs
99 ]
100
101 elif task_id == 106 or task_id == 750:
102 modified_inputs = [[inp[0]] + [tuple(inp[1])] for inp in inputs]
103
104 elif task_id == 115:

Callers 3

perf_workerFunction · 0.90
scriptFunction · 0.90
get_mbpp_plusFunction · 0.85

Calls 1

turn_all_list_into_tupleFunction · 0.85

Tested by

no test coverage detected