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.
0479
1def min_Swaps(s1, s2):2 c0 = 03 c1 = 04 for i in range(len(s1)):5 if s1[i] == '0' and s2[i] == '1':6 c0 += 17 elif s1[i] == '1' and s2[i] == '0':8 c1 += 19 result = c0 // 2 + c1 // 210 if c0 % 2 == 0 and c1 % 2 == 0:11 return result12 elif (c0 + c1) % 2 == 0:13 return result + 214 else:15 return -1