BlazingCustoms/pybytecode-mbpp-3.12
Data card — MBPP held-out decompilation benchmark 383 MBPP reference solutions compiled to Python 3.12 bytecode and paired with their source, with the original task_id restored on every row. Built 2026-08-04 by tools/build_mbpp_ood.py. Redistributable under CC-BY-4.0, provided NOTICES.md ships alongside. The set Rows 383 (400 candidates − 17 contaminated) Source google-research-datasets/mbpp, config full Licence CC-BY-4.0 task_id restored 383 /… See the full description on the dataset page: https://huggingface.co/datasets/BlazingCustoms/pybytecode-mbpp-3.12.
0479
1MAX = 10002 3def replace_spaces(string):4 string = string.strip()5 i = len(string)6 space_count = string.count(' ')7 new_length = i + space_count * 28 if new_length > MAX:9 return -110 index = new_length - 111 string = list(string)12 for f in range(i - 2, new_length - 2):13 string.append('0')14 for j in range(i - 1, 0, -1):15 if string[j] == ' ':16 string[index] = '0'17 string[index - 1] = '2'18 string[index - 2] = '%'19 index = index - 320 else:21 string[index] = string[j]22 index -= 123 return ''.join(string)