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 amicable_numbers_sum(limit):2 if not isinstance(limit, int):3 return 'Input is not an integer!'4 if limit < 1:5 return 'Input must be bigger than 0!'6 amicables = set()7 for num in range(2, limit + 1):8 if num in amicables:9 continue10 sum_fact = sum([fact for fact in range(1, num) if num % fact == 0])11 sum_fact2 = sum([fact for fact in range(1, sum_fact) if sum_fact % fact == 0])12 if num == sum_fact2 and num != sum_fact:13 amicables.add(num)14 amicables.add(sum_fact2)15 return sum(amicables)