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
00320.py21 linesDownload Raw Back to src
1def is_samepatterns(colors, patterns):2    if len(colors) != len(patterns):3        return False4    sdict = {}5    pset = set()6    sset = set()7    for i in range(len(patterns)):8        pset.add(patterns[i])9        sset.add(colors[i])10        if patterns[i] not in sdict.keys():11            sdict[patterns[i]] = []12        keys = sdict[patterns[i]]13        keys.append(colors[i])14        sdict[patterns[i]] = keys15    if len(pset) != len(sset):16        return False17    for values in sdict.values():18        for i in range(len(values) - 1):19            if values[i] != values[i + 1]:20                return False21    return True