SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.09938 · NeurIPS · 2021

Measuring Coding Challenge Competence With APPS

U Berkeley, Dan Hendrycks, Collin Burns, Steven Basart, Jacob Steinhardt, Mantas Mazeika, Akul Arora, Uchicago Saurav Kadavath, Ethan Guo, Samir Puranik, Horace Cornell

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2105.09938.json · badge: /api/ran/2105.09938.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
hendrycks/apps canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
create_split Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/train/apps_create_split.py
code served (permissive licence) · get_code("72342b1d3d9f4231")
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. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
split_dir = os.path.join(temp_dir, 'train')
os.makedirs(split_dir, exist_ok=True)

# Create some subdirectories in the split directory
for i in range(3):
    os.makedirs(os.path.join(split_dir, f'folder_{i}'), exist_ok=True)

# Change to temp directory so relative paths work
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'split': 'train',
    'name': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
find_indentation Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/eval/reindent.py
pointer only (licence: MIT); the stored copy get_code serves, from xwin-lm/xwin-lm, is pointer only (licence: NONE) · get_code("f05983c38acfa250")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xwin-lm/xwin-lm, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_question Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/eval/testing_util.py
code served (permissive licence) · get_code("ed8331339b4de97c")
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 str. 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 os
import tempfile
import shutil

# Create temporary directories with question.txt files
temp_dir1 = tempfile.mkdtemp()
temp_dir2 = tempfile.mkdtemp()

# Write a question file to the first directory
with open(os.path.join(temp_dir1, 'question.txt'), 'w') as f:
    f.write("What is the capital of France?\n")
    f.write("Is it Paris?\n")

# Second directory has no question.txt (will test the else branch)
# (no file written)

problem_list = [temp_dir1, temp_dir2]

ARGS = {
    'problem_list': problem_list,
    'prob_index': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_solutions Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/eval/testing_util.py
code served (permissive licence) · get_code("0c83bb0f43b8dc57")
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 os
import tempfile
import shutil

# Create a temporary directory structure with a solutions.json file
temp_dir = tempfile.mkdtemp()
problem_dir = os.path.join(temp_dir, "problem_0")
os.makedirs(problem_dir, exist_ok=True)

# Create a solutions.json file
solutions_data = {
    "solution_1": {"code": "print('hello')", "score": 0.95},
    "solution_2": {"code": "print('world')", "score": 0.87}
}

solutions_file = os.path.join(problem_dir, "solutions.json")
with open(solutions_file, 'w') as f:
    json.dump(solutions_data, f)

# Create problem_list with the temporary directory
problem_list = [problem_dir]
prob_index = 0

ARGS = {
    "problem_list": problem_list,
    "prob_index": prob_index
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_valid_problems Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/eval/testing_util.py
code served (permissive licence) · get_code("8bbb265e59e23293")
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 os
import json
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create subdirectories and files to match what the function expects
data_subdir = os.path.join(temp_dir, 'data')
os.makedirs(data_subdir, exist_ok=True)

# Create a few problem folders with the expected files
problem_1 = os.path.join(data_subdir, 'problem_1')
os.makedirs(problem_1, exist_ok=True)
with open(os.path.join(problem_1, 'input_output.json'), 'w') as f:
    json.dump({"test": "data"}, f)

problem_2 = os.path.join(data_subdir, 'problem_2')
os.makedirs(problem_2, exist_ok=True)
with open(os.path.join(problem_2, 'sols.json'), 'w') as f:
    json.dump({"solution": "code"}, f)

# Create a problem folder without valid files (should be skipped)
problem_3 = os.path.join(data_subdir, 'problem_3')
os.makedirs(problem_3, exist_ok=True)
with open(os.path.join(problem_3, 'other_file.txt'), 'w') as f:
    f.write("some content")

ARGS = {
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
replace_inline_tabs Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/eval/reindent.py
pointer only (licence: MIT); the stored copy get_code serves, from xwin-lm/xwin-lm, is pointer only (licence: NONE) · get_code("27f23c533d62061a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xwin-lm/xwin-lm, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rewrite_logs Ran
ran; our contract draft was wrong, not the code
hendrycks/apps/train/CustomTensorboardCallback.py
code served (permissive licence) · get_code("de2e007d84fab02c")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function: rewrite_logs takes a dict d
# It iterates over k, v pairs
# It checks if k starts with 'eval_'
# If yes: creates new key 'eval/' + k without the prefix
# If no: creates new key 'train/' + k
# The values v are passed through unchanged

# Create a test dictionary with various log entries
d = {
    'eval_loss': 0.5,
    'eval_accuracy': 0.95,
    'loss': 0.3,
    'accuracy': 0.92,
    'eval_f1_score': 0.88,
    'learning_rate': 0.001
}

ARGS = {
    'd': d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
batch_bart_task Not yet run
unverified (harvested, no recorded run)
hendrycks/apps/train/dataset_lm/util.py
code served (permissive licence) · get_code("7f74025d94c22cd6")
How it ran

no invocation recorded.

batch_gpt_task Not yet run
unverified (harvested, no recorded run)
hendrycks/apps/train/dataset_lm/util.py
code served (permissive licence) · get_code("991b30911bfd77a2")
How it ran

no invocation recorded.

dummy_gpt_task Not yet run
unverified (harvested, no recorded run)
hendrycks/apps/train/dataset_lm/util.py
code served (permissive licence) · get_code("6b434bae76a3379f")
How it ran

no invocation recorded.

sample_gpt_task Not yet run
unverified (harvested, no recorded run)
hendrycks/apps/train/dataset_apps/APPSBaseDataset.py
code served (permissive licence) · get_code("9c56401b1df9832c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 6 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
get_solutions 4 other papers
4 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2203.08597 (2022-03)
Less is More: Summary of Long Instructions is Better for Program Synthesis
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities
and 1 more not named here
get_valid_problems 4 other papers
4 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2203.08597 (2022-03)
Less is More: Summary of Long Instructions is Better for Program Synthesis
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities
and 1 more not named here
get_question 3 other papers
3 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities
2602.01685 (2026-02)
Semantic-aware Wasserstein Policy Regularization for Large Language Model Alignment
find_indentation 2 other papers
2 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities
replace_inline_tabs 2 other papers
2 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities

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-23.

Repositories linked to this paper

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

Abstract

While programming is one of the most broadly applicable skills in modern society, it is unclear how well state-of-the-art machine learning models can write code. Despite its importance, there has been surprisingly little work on evaluating code generation, and it can be difficult to assess code generation performance in an accurate and rigorous manner. To meet this challenge, we introduce APPS, a benchmark for code generation. Unlike prior work in more restricted settings, our benchmark measures the ability of models to take an arbitrary natural language specification and generate satisfactory Python code. Similar to how companies assess candidate software developers, we evaluate models by checking their generated code on test cases. Our benchmark includes 10,000 problems, which range from having simple oneline solutions to being substantial algorithmic challenges. We fine-tune large language models on both GitHub and our training set, and we find that the prevalence of syntax errors is decreasing exponentially as models improve. Recent models such as GPT-Neo can pass approximately 20% of the test cases of introductory problems, so we find that machine learning models are now beginning to learn how to code. As the social significance of automatic code generation increases over the coming years, our benchmark can provide an objective measure for tracking advancements. "Everybody should learn to program a computer, because it teaches you how to think." -Steve Jobs * Equal Contribution. 35th Conference on Neural Information Processing Systems (NeurIPS 2021) Track on Datasets and Benchmarks.

For agents

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

get_harvested_code_for_paper("2105.09938")
get_code_for_paper("2105.09938")
have("2105.09938")

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

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

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

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

Connect an agent — have() is free.