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
00173.py29 linesDownload Raw Back to src
1def generate_matrix(n):2    if n <= 0:3        return []4    matrix = [row[:] for row in [[0] * n] * n]5    row_st = 06    row_ed = n - 17    col_st = 08    col_ed = n - 19    current = 110    while True:11        if current > n * n:12            break13        for c in range(col_st, col_ed + 1):14            matrix[row_st][c] = current15            current += 116        row_st += 117        for r in range(row_st, row_ed + 1):18            matrix[r][col_ed] = current19            current += 120        col_ed -= 121        for c in range(col_ed, col_st - 1, -1):22            matrix[row_ed][c] = current23            current += 124        row_ed -= 125        for r in range(row_ed, row_st - 1, -1):26            matrix[r][col_st] = current27            current += 128        col_st += 129    return matrix