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
00290.py21 linesDownload Raw Back to src
1def func(nums, k):2    import collections3    d = collections.defaultdict(int)4    for row in nums:5        for i in row:6            d[i] += 17    temp = []8    import heapq9    for key, v in d.items():10        if len(temp) < k:11            temp.append((v, key))12            if len(temp) == k:13                heapq.heapify(temp)14        elif v > temp[0][0]:15            heapq.heappop(temp)16            heapq.heappush(temp, (v, key))17    result = []18    while temp:19        v, key = heapq.heappop(temp)20        result.append(key)21    return result