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

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

10 Mar 2025arXiv:2503.07358archive 2025-07-28

Yiqing Xie, Alex Xie, Divyanshu Sheth, PengFei Liu, Daniel Fried, Carolyn Rose

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.07358")

Code

Syntology Ran 0 of 18 code samples harvested from 1 repository linked to this paper; 18 have no recorded run.

By repository: official repository: 18 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yiqingxyq/RepoST officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 0 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yiqingxyq/RepoST. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

direct_return yiqingxyq/RepoST/utils_exec.py official repository unverified MIT (permissive) · 03643c3e849d1895 · report
extract_answer yiqingxyq/RepoST/RepoST/llm_check.py official repository unverified MIT (permissive) · 34dcaa09d95a53cd · report
extract_code yiqingxyq/RepoST/utils.py official repository unverified MIT (permissive) · 71210ee33ca4b9bb · report
get_chunks yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py official repository unverified MIT (permissive) · 839e07f1bf52b601 · report
get_code_block_by_path yiqingxyq/RepoST/RepoST/sandboxing.py official repository unverified MIT (permissive) · 7a28ae5a90bb29be · report
insert_gt_implementation yiqingxyq/RepoST/RepoST/execution.py official repository unverified MIT (permissive) · b029cfa4ea645270 · report
limit_virtual_memory yiqingxyq/RepoST/utils_exec.py official repository unverified MIT (permissive) · e0ec2aae48ea0c51 · report
list_files yiqingxyq/RepoST/utils.py official repository unverified MIT (permissive) · f9144be15f4f516e · report
make_code_block_str yiqingxyq/RepoST/RepoST/improve_coverage.py official repository unverified MIT (permissive) · 83a52f31a2151a62 · report
reindent_func yiqingxyq/RepoST/RepoST/improve_coverage.py official repository unverified MIT (permissive) · 82c2cd331aa5fd1f · report
replace_test_function yiqingxyq/RepoST/RepoST/improve_coverage.py official repository unverified MIT (permissive) · 41ba2522b7581d57 · report
run_program yiqingxyq/RepoST/utils_exec.py official repository unverified MIT (permissive) · 1fde51e64cde49da · report
safe_parse yiqingxyq/RepoST/utils.py official repository unverified MIT (permissive) · 059a4f9c0b756eac · report
sanity_check yiqingxyq/RepoST/RepoST/debug.py official repository unverified MIT (permissive) · a7905fec7f88bb69 · report
sanity_check yiqingxyq/RepoST/RepoST/sandboxing.py official repository unverified MIT (permissive) · dda16da5d86b85db · report
skip_non_target_functions yiqingxyq/RepoST/RepoST/execution.py official repository unverified MIT (permissive) · 94b750b73f312f6a · report
truncate_documentation yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py official repository unverified MIT (permissive) · 5dbae161e828ae94 · report
truncate_text yiqingxyq/RepoST/CodeRAGBench_evaluation/chunk.py official repository unverified MIT (permissive) · efd84bdfa4cd0bb2 · report

Tasks

Code GenerationHumanEval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections