CoolFace
Datasetpublic

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.

sourceHugging Facecc-by-4.0updated 2mo agoView on Hugging Face
0likes479downloads
00265.py9 linesDownload Raw Back to src
1def roman_to_int(s):2    rom_val = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}3    int_val = 04    for i in range(len(s)):5        if i > 0 and rom_val[s[i]] > rom_val[s[i - 1]]:6            int_val += rom_val[s[i]] - 2 * rom_val[s[i - 1]]7        else:8            int_val += rom_val[s[i]]9    return int_val