SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.20329 · 2023

InstructCoder: Instruction Tuning Large Language Models for Code Editing

arXiv · PDF · Open in the Atlas

Code that ran

15 of 15 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, 1 violated it and 1 has no contract verdict; 13 failures of our instrument; 0 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/2310.20329.json · badge: /api/ran/2310.20329.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
qishenghu/CodeInstruct canonical (classifier label)
classifier basis: census
14 ran · 0 no recorded run
qishenghu/instructcoder canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
build_program_and_tests Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/evaluation.py
code served (permissive licence) · get_code("dcc63461ed8faa9d")
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 torch

torch.manual_seed(0)

problem = {
    'context': 'def solve(x):\n    return x * 2\n\n{{Code}}',
    'test': 'def check():\n    assert solve(5) == 10'
}

code = 'result = solve(10)'

ARGS = {
    'problem': problem,
    'code': code
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
build_program_and_tests Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/validate_dataset.py
code served (permissive licence) · get_code("08c63a2c53e2dbbc")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct a minimal problem dict that matches the function's usage
problem = {
    'context': 'def helper():\n    return "Hello"\n\n{{Code}}',
    'test': '''
def check():
    result = helper()
    assert result == "Hello"
    print("Test passed!")
''',
}

# Construct the code parameter
code = 'return result'

# Map all parameters
ARGS = {
    'problem': problem,
    'code': code,
}
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 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
check_correctness Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/execution.py
code served (permissive licence) · get_code("d76cd6028267121b")
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
from typing import Dict, Optional

torch.manual_seed(0)

# Create a minimal problem dict with the structure expected by check_correctness
problem = {
    "task_id": "test_problem_1",
    "prompt": "Write a function that returns 42",
    "canonical_solution": "def solution():\n    return 42",
    "test": "assert solution() == 42"
}

# Create simple, valid test code that will pass
code = """
def solution():
    return 42

assert solution() == 42
"""

# Timeout in seconds
timeout = 5.0

# Optional run_id
run_id = 1

ARGS = {
    "problem": problem,
    "code": code,
    "timeout": timeout,
    "run_id": run_id
}
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
chunk Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/src/request_helper.py
code served (permissive licence) · get_code("18f3d41c3a3ca45f")
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. 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

torch.manual_seed(0)

# The function chunk() takes:
# - li: a list to be chunked
# - chunk_size: an integer specifying the size of each chunk

# Create a simple list with distinct elements
test_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test_chunk_size = 3

ARGS = {
    "li": test_list,
    "chunk_size": test_chunk_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is 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
estimate_pass_at_k Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/evaluation.py
pointer only (licence: MIT); the stored copy get_code serves, from rucaibox/bamboo, is pointer only (licence: NONE) · get_code("e080db2eaa81fdb3")
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 rucaibox/bamboo, 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.

format_filter Ran
ran, violated the contract we drafted
qishenghu/CodeInstruct/src/postprocess.py
code served (permissive licence) · get_code("7dcc28da7fcf7d21")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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:
# - Takes two parameters: input and output
# - Both are treated as strings (uses .lower(), .strip(), .endswith(), ==, in operators)
# - Returns a boolean

# Valid case: different strings, non-empty, don't end with ':', no failure indicators
input_str = "What is the capital of France?"
output_str = "The capital of France is Paris."

ARGS = {
    "input": input_str,
    "output": output_str
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
format_instance Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/src/postprocess.py
code served (permissive licence) · get_code("7e14c9de72446b8b")
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 tuple, 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 torch

torch.manual_seed(0)

# The function format_instance takes a single parameter 'res' which is a string
# It looks for 'Input:' and 'Output:' markers in the string and extracts text between them
# It then strips leading whitespace/newlines from both extracted sections

ARGS = {
    'res': 'Input: \n hello world\nOutput: \n goodbye world'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
get_rouge_scores Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/src/bootstrap_instructions.py
code served (permissive licence) · get_code("c833dfb4c07dd2c0")
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 tuple, 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 numpy as np
from rouge_score import rouge_scorer

# Set random seed for reproducibility
np.random.seed(0)

# Create sample instructions - strings that will be compared
inst = "Write a program to calculate the factorial of a number"

all_instructions = [
    "Write a program to calculate the factorial of a number",
    "Create a function that computes factorial values",
    "Implement factorial using recursion",
    "Build a factorial calculator",
    "Write code for computing factorials",
    "Design a recursive factorial function",
    "Create a program to find factorial",
    "Implement an iterative factorial solution",
    "Write a factorial algorithm",
    "Build factorial computation logic",
    "Create a factorial helper function",
    "Implement factorial with memoization"
]

ARGS = {
    "inst": inst,
    "all_instructions": all_instructions
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, rouge_score — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
init_logger Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/utils.py
code served (permissive licence) · get_code("db2f749312721290")
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 Logger. 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 logging
import colorama
from colorama import Fore, Style

class ColoredLoggingFormatter(logging.Formatter):
    FORMATS = {logging.DEBUG: Fore.LIGHTBLACK_EX + '{format}' + Style.RESET_ALL, logging.INFO: Fore.LIGHTBLACK_EX + '{format}' + Style.RESET_ALL, logging.WARNING: Fore.YELLOW + '{format}' + Style.RESET_ALL, logging.ERROR: Fore.RED + '{format}' + Style.RESET_ALL, logging.CRITICAL: Fore.LIGHTRED_EX + '{format}' + Style.RESET_ALL}

    def __init__(self, fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s'):
        colorama.init()
        self.formatters = dict()
        for levelno in self.FORMATS.keys():
            log_fmt = self.FORMATS.get(levelno).format(format=fmt)
            self.formatters[levelno] = logging.Formatter(log_fmt)

    def format(self, record):
        return self.formatters.get(record.levelno).format(record)

def init_logger(name):
    logger = logging.getLogger(name)
    logger.setLevel(logging.DEBUG)
    console_handler = logging.StreamHandler()
    console_handler.setFormatter(ColoredLoggingFormatter())
    logger.addHandler(console_handler)
    return logger

ARGS = {
    'name': 'test_logger'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
colorama — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
load_file Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/src/generate_instance.py
code served (permissive licence) · get_code("c0bdcc7c326efa00")
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 os
import tempfile

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test JSONL file
jsonl_path = os.path.join(temp_dir, "test.jsonl")
with open(jsonl_path, 'w') as f:
    f.write(json.dumps({"key1": "value1"}) + "\n")
    f.write(json.dumps({"key2": "value2"}) + "\n")

# Create a test JSON file
json_path = os.path.join(temp_dir, "test.json")
with open(json_path, 'w') as f:
    json.dump([{"key3": "value3"}, {"key4": "value4"}], f)

# Test with JSONL file
ARGS = {
    "path": jsonl_path
}
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
query_for_instance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qishenghu/CodeInstruct/src/generate_instance.py
code served (permissive licence) · get_code("e84eec1ac7ee2f18")
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 openai
from unittest.mock import Mock, patch

# Mock the openai.ChatCompletion.create to avoid actual API calls
def mock_chat_completion_create(**kwargs):
    return {
        'choices': [
            {
                'message': {
                    'content': 'This is a mock response from the model.'
                }
            }
        ]
    }

# Patch openai before defining ARGS
with patch('openai.ChatCompletion.create', side_effect=mock_chat_completion_create):
    pass

# Define the item dict that will be passed to query_for_instance
item = {
    'instruction': 'Generate a response to this scenario',
    'scenario': 'A person is asking for help',
    'scenario_list': ['scenario_1', 'scenario_2', 'scenario_3'],
    'prompt': 'User: What is 2+2?'
}

# Create a mock args object with the engine attribute
class Args:
    engine = 'gpt-3.5-turbo'

args = Args()

# Inject args into the global namespace so the function can access it
import sys
sys.modules[__name__].args = args

# Define ARGS dict with parameters for query_for_instance
ARGS = {
    'item': item,
    'key': None  # Can be None or an actual API key string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai, tenacity — 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
query_for_instruction Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/src/bootstrap_instructions.py
code served (permissive licence) · get_code("e23c1c2c0288f4d7")
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 re
import openai
from unittest.mock import Mock, patch

# Mock the openai module to avoid actual API calls
openai.ChatCompletion.create = Mock(return_value={
    'choices': [
        {
            'message': {
                'content': 'Here is an instruction: "sample instruction one" and another "sample instruction two"'
            }
        }
    ]
})

# Construct valid arguments for query_for_instruction
items = {
    'user_message_1': 'Write a Python function to sum two numbers.',
    'user_message_2': 'Make sure it handles edge cases.'
}

key = 'sk-test-key-12345'

# Mock args.engine since it's referenced in the function
class MockArgs:
    engine = 'gpt-3.5-turbo'

args = MockArgs()

# Patch args in the module context
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'args', args)

ARGS = {
    'items': items,
    'key': key
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai, tenacity — 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
query_for_scenarios Ran
ran on a synthesized input
qishenghu/CodeInstruct/src/generate_scenarios.py
code served (permissive licence) · get_code("9e26c9a9ed5f3dd2")
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 random
import re
from unittest.mock import Mock, patch

# Create a mock for openai.ChatCompletion.create to avoid actual API calls
mock_response = {
    'choices': [
        {
            'message': {
                'content': 'Scenario 1: First scenario here\nScenario 2: Second scenario description\nScenario 3: Third one'
            }
        }
    ]
}

# Create mock args object with engine attribute
class MockArgs:
    engine = "gpt-3.5-turbo"

# Patch openai module globally
import sys
mock_openai = Mock()
mock_openai.ChatCompletion.create = Mock(return_value=mock_response)
mock_openai.api_key = None
sys.modules['openai'] = mock_openai

# Now we can safely construct the ARGS
item = {
    'instruction': 'Generate creative scenarios for a given prompt',
    'prompt': 'A person discovers an old mysterious box'
}

ARGS = {
    'item': item,
    'key': 'test-api-key-12345'
}

# Make args globally available for the function
import __main__
__main__.args = MockArgs()
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
__main__, openai, tenacity — 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
read_problems Ran
ran; our contract draft was wrong, not the code
qishenghu/CodeInstruct/edit_eval/data.py
code served (permissive licence) · get_code("776a712a353130e7")
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 gzip
import os
import tempfile

# Create a temporary directory for our test files
temp_dir = tempfile.mkdtemp()

# Create a minimal JSONL.GZ file with sample data
sample_data = [
    {"task_id": "HumanEval/0", "prompt": "def hello():", "canonical_solution": "return 'hello'", "test": "assert hello() == 'hello'"},
    {"task_id": "HumanEval/1", "prompt": "def add(a, b):", "canonical_solution": "return a + b", "test": "assert add(1, 2) == 3"}
]

# Write the gzipped JSONL file
test_file = os.path.join(temp_dir, "test_problems.jsonl.gz")
with gzip.open(test_file, 'wt') as f:
    for item in sample_data:
        f.write(json.dumps(item) + '\n')

# Define ARGS with the parameter for read_problems
ARGS = {
    'evalset_file': test_file
}
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
sample_items Ran
ran; our contract draft was wrong, not the code
qishenghu/instructcoder/src/bootstrap_instructions.py
code served (permissive licence) · get_code("e62750b3c8c67f42")
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) 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 random

# Set seed for reproducibility
random.seed(0)

# Create a list of sample instructions/items
total = [
    "instruction_1",
    "instruction_2",
    "instruction_3",
    "instruction_4",
    "instruction_5",
    "instruction_6",
    "instruction_7",
    "instruction_8",
]

# Number of items to sample
n = 3

ARGS = {
    "total": total,
    "n": n,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 13 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
estimate_pass_at_k 20 other papers
6 dated earlier, 1 the same month, 13 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2207.14255 (2022-07)
Efficient Training of Language Models to Fill in the Middle
2210.14868 (2022-10)
Multi-lingual Evaluation of Code Generation Models
and 17 more not named here
read_problems 10 other papers
10 later
2401.08565 (2024-01)
Tuning Language Models by Proxy
2401.14196 (2024-01)
DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
and 7 more not named here

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

Code editing encompasses a variety of pragmatic tasks that developers deal with daily. Despite its relevance and practical usefulness, automatic code editing remains an underexplored area in the evolution of deep learning models, partly due to data scarcity. In this work, we explore the use of Large Language Models (LLMs) to edit code based on user instructions. Evaluated on a novel human-written execution-based benchmark dubbed EditEval, we found current models often struggle to fulfill the instructions. In light of this, we contribute InstructCoder, the first instruction-tuning dataset designed to adapt LLMs for general-purpose code editing, containing high-diversity code-editing tasks such as comment insertion, code optimization, and code refactoring. It consists of over 114,000 instruction-input-output triplets and covers multiple distinct code editing scenarios. The collection process starts with filtered commit data sourced from GitHub Python repositories as seeds. Subsequently, the dataset is systematically expanded through an iterative process, where both seed and generated tasks are used to prompt ChatGPT for more data. Our findings reveal that open-source LLMs fine-tuned on InstructCoder can significantly enhance the accuracy of code edits, exhibiting superior code-editing performance matching advanced proprietary LLMs. The datasets and the source code are publicly available at https://github.com/qishenghu/CodeInstruct.

For agents

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

get_harvested_code_for_paper("2310.20329")
get_code_for_paper("2310.20329")
have("2310.20329")

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

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

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

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

Connect an agent — have() is free.