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
00280.py30 linesDownload Raw Back to src
1NO_OF_CHARS = 2562 3def str_to_list(string):4    temp = []5    for x in string:6        temp.append(x)7    return temp8 9def lst_to_string(List):10    return ''.join(List)11 12def get_char_count_array(string):13    count = [0] * NO_OF_CHARS14    for i in string:15        count[ord(i)] += 116    return count17 18def remove_dirty_chars(string, second_string):19    count = get_char_count_array(second_string)20    ip_ind = 021    res_ind = 022    temp = ''23    str_list = str_to_list(string)24    while ip_ind != len(str_list):25        temp = str_list[ip_ind]26        if count[ord(temp)] == 0:27            str_list[res_ind] = str_list[ip_ind]28            res_ind += 129        ip_ind += 130    return lst_to_string(str_list[0:res_ind])