SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.07358 · 2025

RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testing

arXiv · PDF · Open in the Atlas

Code that ran

11 of 18 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 11 have no contract verdict; 0 failures of our instrument; 7 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/2503.07358.json · badge: /api/ran/2503.07358.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
yiqingxyq/RepoST canonical (classifier label)
classifier basis not recorded on the link
11 ran · 7 no recorded run
FunctionStatusWhere it lives
direct_return Ran
ran on a synthesized input
yiqingxyq/RepoST/utils_exec.py
code served (permissive licence) · get_code("03643c3e849d1895")
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 subprocess
import torch

# Create a simple process that will succeed
proc_success = subprocess.Popen(
    ['echo', 'success output'],
    stdout=subprocess.PIPE,
    stderr=subprocess.PIPE
)

# Create a simple process that will fail with an error keyword
proc_error = subprocess.Popen(
    ['sh', '-c', 'echo "ERROR: something went wrong" >&2'],
    stdout=subprocess.PIPE,
    stderr=subprocess.PIPE
)

ARGS = {
    'proc': proc_success,
    'proc_name': 'echo',
    'timeout': 10
}
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
extract_answer Ran
ran on a synthesized input
yiqingxyq/RepoST/RepoST/llm_check.py
code served (permissive licence) · get_code("34dcaa09d95a53cd")
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
import numpy as np

torch.manual_seed(0)

# The function extract_answer takes a single parameter: text (a string)
# It processes the text to extract reasoning and answer components
# The text is expected to contain 'REASONING:' and 'ANSWER:' markers

ARGS = {
    'text': 'REASONING: The two items appear identical in color and shape. ANSWER: same'
}
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 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
extract_code Ran
ran on a synthesized input
yiqingxyq/RepoST/utils.py
code served (permissive licence) · get_code("71210ee33ca4b9bb")
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

CODE_BLOCK_PATTERN = '```(\\w*)\\n(.*?)\\n```'

def extract_code(text: str, pattern: str=CODE_BLOCK_PATTERN):
    match = re.findall(pattern, text, flags=re.DOTALL)
    return match if match else []

# Setup code to construct valid arguments
text_with_code_blocks = """
Here is some Python code:

def hello():
    print("world")


And here is JavaScript:
javascript
console.log("hello");


And some plain text without language:

just some code

"""

custom_pattern = CODE_BLOCK_PATTERN

ARGS = {
    "text": text_with_code_blocks,
    "pattern": custom_pattern,
}
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
get_chunks Ran
ran on a synthesized input
yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py
code served (permissive licence) · get_code("839e07f1bf52b601")
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.

from transformers import AutoTokenizer

# Create a minimal tokenizer stand-in that implements the required methods
class MinimalTokenizer:
    def tokenize(self, text: str):
        # Simple tokenization: split by spaces and punctuation
        return text.split()
    
    def convert_tokens_to_string(self, tokens):
        # Join tokens back with spaces
        return ' '.join(tokens)

# Create sample text with multiple lines
text = "Hello world this is a test\nAnother line with some tokens\nShort line"

# Set number of tokens per chunk
num_tokens = 5

# Initialize the tokenizer
tokenizer = MinimalTokenizer()

# Define ARGS dictionary with all required parameters
ARGS = {
    "text": text,
    "num_tokens": num_tokens,
    "tokenizer": tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
transformers — 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
limit_virtual_memory Ran
ran on a synthesized input
yiqingxyq/RepoST/utils_exec.py
code served (permissive licence) · get_code("e0ec2aae48ea0c51")
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)

ARGS = {
    "max_virtual_memory": 1000000
}
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
list_files Ran
ran on a synthesized input
yiqingxyq/RepoST/utils.py
code served (permissive licence) · get_code("f9144be15f4f516e")
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 a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create some subdirectories and files
os.makedirs(os.path.join(temp_dir, "subdir1"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "subdir2", "nested"), exist_ok=True)

# Create some files
open(os.path.join(temp_dir, "file1.txt"), 'w').close()
open(os.path.join(temp_dir, "file2.py"), 'w').close()
open(os.path.join(temp_dir, "subdir1", "file3.txt"), 'w').close()
open(os.path.join(temp_dir, "subdir2", "file4.md"), 'w').close()
open(os.path.join(temp_dir, "subdir2", "nested", "file5.json"), 'w').close()

ARGS = {
    "startpath": 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 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
make_code_block_str Ran
ran on a synthesized input
yiqingxyq/RepoST/RepoST/improve_coverage.py
code served (permissive licence) · get_code("83a52f31a2151a62")
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

# Analyze the function: make_code_block_str
# Parameters:
# - lines: used with indexing lines[start_idx:end_idx + 1], expects a sequence of strings
# - func_name: used in f-string, expects a string
# - start_idx: used in comparison and f-string, expects an int
# - end_idx: used in comparison and slicing, expects an int

# Create sample lines of code
lines = [
    "def hello(x):",
    "    return x + 1",
    "result = hello(5)",
    "print(result)",
    "x = 10",
]

# Create arguments
ARGS = {
    'lines': lines,
    'func_name': 'my_function',
    'start_idx': 1,
    'end_idx': 3,
}
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
run_program Ran
ran on a synthesized input
yiqingxyq/RepoST/utils_exec.py
code served (permissive licence) · get_code("1fde51e64cde49da")
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. 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 subprocess

torch_manual_seed_set = False

ARGS = {
    'script': 'echo "Hello from subprocess"; echo "test output"',
    'i': 0,
    'timeout': 10
}
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 tuple — a tuple 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
safe_parse Ran
ran on a synthesized input
yiqingxyq/RepoST/utils.py
code served (permissive licence) · get_code("059a4f9c0b756eac")
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 Module. 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 ast
from lib2to3 import refactor

# The safe_parse function takes a single parameter: code (a string)
# It attempts to parse Python code using ast.parse() with various fallbacks
# and transformations to handle edge cases and Python 2 to 3 conversions

ARGS = {
    "code": "print('hello world')"
}
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 Module — a Module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Module 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
truncate_documentation Ran
ran on a synthesized input
yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py
code served (permissive licence) · get_code("5dbae161e828ae94")
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

# The function takes a single string parameter
# It processes documentation text by:
# 1. Splitting into lines
# 2. Trimming examples (lines starting with '>>>')
# 3. Trimming function listings (lines with pattern like 'module.function')
# 4. Truncating to first 3 lines if > 10 lines total

# Create a sample documentation string with various components
text = """Module documentation example.
This is a description of the function.
It does something useful.
More details here.
Even more details.
Some other info.
>>> example_code_here()
More lines after example.
module.function_name something
Another line.
Final line."""

ARGS = {
    "text": text
}
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
truncate_text Ran
ran on a synthesized input
yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py
code served (permissive licence) · get_code("efd84bdfa4cd0bb2")
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.

from transformers import AutoTokenizer

# Create a minimal mock tokenizer that implements the required methods
class MockTokenizer:
    def tokenize(self, text: str) -> list[str]:
        # Simple tokenization by splitting on spaces
        return text.split()
    
    def convert_tokens_to_string(self, tokens: list[str]) -> str:
        # Join tokens back with spaces
        return ' '.join(tokens)

# Create actual tokenizer or use mock
tokenizer = MockTokenizer()

# Define test arguments
ARGS = {
    "text": "This is a sample documentation.\nIt contains multiple lines.\nWith some code examples.\n>>> example_code()\nAnd more text after examples.\nSome function here.\nMore content.",
    "num_tokens": 50,
    "is_docs": True,
    "tokenizer": tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
transformers — 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_code_block_by_path Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/sandboxing.py
code served (permissive licence) · get_code("7a28ae5a90bb29be")
How it ran

no invocation recorded.

insert_gt_implementation Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/execution.py
code served (permissive licence) · get_code("b029cfa4ea645270")
How it ran

no invocation recorded.

reindent_func Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/improve_coverage.py
code served (permissive licence) · get_code("82c2cd331aa5fd1f")
How it ran

no invocation recorded.

replace_test_function Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/improve_coverage.py
code served (permissive licence) · get_code("41ba2522b7581d57")
How it ran

no invocation recorded.

sanity_check Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/debug.py
code served (permissive licence) · get_code("a7905fec7f88bb69")
How it ran

no invocation recorded.

sanity_check Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/sandboxing.py
code served (permissive licence) · get_code("dda16da5d86b85db")
How it ran

no invocation recorded.

skip_non_target_functions Not yet run
unverified (harvested, no recorded run)
yiqingxyq/RepoST/RepoST/execution.py
code served (permissive licence) · get_code("94b750b73f312f6a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 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 17 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
limit_virtual_memory 1 other paper
1 dated earlier
2207.03578 (2022-07)
Code Translation with Compiler Representations

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

We present RepoST, a scalable method to construct environments that provide execution feedback for repository-level code generation for both training and evaluation. Unlike existing works that aim to build entire repositories for execution, which is challenging for both human and LLMs, we provide execution feedback with sandbox testing, which isolates a given target function and its dependencies to a separate script for testing. Sandbox testing reduces the complexity of external dependencies and enables constructing environments at a large scale. We use our method to construct RepoST-Train, a large-scale train set with 7,415 functions from 832 repositories. Training with the execution feedback provided by RepoST-Train leads to a performance gain of 5.5% Pass@1 on HumanEval and 3.5% Pass@1 on RepoEval. We also build an evaluation dataset, RepoST-Eval, and benchmark 12 code generation models.

For agents

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

get_harvested_code_for_paper("2503.07358")
get_code_for_paper("2503.07358")
have("2503.07358")

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

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

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

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

Connect an agent — have() is free.