SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.15545 · 2024

PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.15545.json · badge: /api/ran/2401.15545.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
seekingdream/ppm canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
FunctionStatusWhere it lives
estimator Ran
ran, honoured the contract we drafted
seekingdream/ppm/candidate.py
code served (permissive licence) · get_code("9f3bd1f5682c5042")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes three integer parameters: n, c, k
# n: total number of items
# c: number of items to exclude
# k: number of items to select
# 
# The function calculates a probability-like value based on combinations.
# Let's create valid arguments where:
# - n is the total count (must be >= k for valid comb(n, k))
# - c is items to exclude (must be >= 0)
# - k is items to select (must be >= 0 and <= n)

ARGS = {
    "n": 10,
    "c": 3,
    "k": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
for_file Ran
ran; our contract draft was wrong, not the code
seekingdream/ppm/candidate.py
code served (permissive licence) · get_code("b76552e1b92a4b6b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with the expected structure
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.json')
temp_path = temp_file.name

# Build test data with various status/exit_code combinations
test_data = {
    'temperature': 0.8,
    'results': [
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 1},
        {'status': 'ERROR', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'TIMEOUT', 'exit_code': 1},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'ERROR', 'exit_code': 1},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        {'status': 'OK', 'exit_code': 0},
        # Add more results to reach beyond 100
        *[{'status': 'OK', 'exit_code': 0} for _ in range(80)]
    ]
}

json.dump(test_data, temp_file)
temp_file.close()

ARGS = {
    'path': temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
for_file Ran
ran; our contract draft was wrong, not the code
seekingdream/ppm/pass_k.py
code served (permissive licence) · get_code("aaadfc332c561c50")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with the expected structure
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.json")

# Create test data: 100 results, 85 with status OK and exit_code 0
test_data = {
    "temperature": 0.7,
    "results": [
        {"status": "OK", "exit_code": 0} for _ in range(85)
    ] + [
        {"status": "ERROR", "exit_code": 1} for _ in range(15)
    ]
}

with open(temp_file, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_bleu Not yet run
unverified (harvested, no recorded run)
seekingdream/ppm/diversity.py
code served (permissive licence) · get_code("b059913a28aa8d55")
How it ran

no invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
seekingdream/ppm/utils.py
code served (permissive licence) · get_code("c05ca4aa52060818")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
estimator 1 other paper
1 dated earlier
2311.07070 (2023-11)
Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In recent times, a plethora of Large Code Generation Models (LCGMs) have been proposed, showcasing significant potential in assisting developers with complex programming tasks. Benchmarking LCGMs necessitates the creation of a set of diverse programming problems, and each problem comprises the prompt (including the task description), canonical solution, and test inputs. The existing methods for constructing such a problem set can be categorized into two main types: manual methods and perturbation-based methods. However, manual methods demand high effort and lack scalability, while also risking data integrity due to LCGMs' potentially contaminated data collection, and perturbation-based approaches mainly generate semantically homogeneous problems with the same canonical solutions and introduce typos that can be easily auto-corrected by IDE, making them ineffective and unrealistic. In this work, we propose the idea of programming problem merging (PPM) and provide two implementation of this idea, we utilize our tool on two widely-used datasets and compare it against nine baseline methods using eight code generation models. The results demonstrate the effectiveness of our tool in generating more challenging, diverse, and natural programming problems, comparing to the baselines.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.15545")
get_code_for_paper("2401.15545")
have("2401.15545")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.15545.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.15545.svg)](https://syntology.ai/paper/2401.15545)

Connect an agent — have() is free.