Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'
Shanchao Liang, Nan Jiang, Yiran Hu, Lin Tan
Abstract
Recently, a number of repository-level code generation benchmarks-such as CoderEval, DevEval, RepoEval, RepoBench, and Long-Code-Arena-have emerged to evaluate the capabilities of large language models (LLMs) beyond standalone benchmarks like HumanEval and MBPP. Thus, a natural question is, would LLMs have similar performance in real world coding tasks as their performance in these benchmarks? Unfortunately, one cannot answer this question, since these benchmarks consist of short completions, synthetic examples, or focus on limited scale repositories, failing to represent real-world coding tasks.
To address these challenges, we create RE-POCOD, a Python code-generation benchmark containing complex tasks with realistic dependencies in real-world large projects and appropriate metrics for evaluating source code. It includes 980 whole-function generation tasks from 11 popular projects, 50.8 % of which require repository-level context. REPOCOD includes 314 developer-written test cases per instance for better evaluation. We evaluate ten LLMs on REPOCOD and find that none achieves more than 30% pass@1 on REPOCOD, indicating the necessity of building stronger LLMs that can help developers in real-world software development. In addition, we found that retrieval-augmented generation achieves better results than using target function dependencies as context.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Unified Software Engineering Agent as AI Software Engineer cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Unified Software Engineering Agent as AI Software Engineer cites Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation
- RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- SWE-bench: Can Language Models Resolve Real-world Github Issues? cites Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation
- DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle cites RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems
- DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
- DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selection cites Unified Software Engineering Agent as AI Software Engineer
- Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selection cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
Cited by top-tier papers4
- DevOps-Gym: Benchmarking AI Agents in Software DevOps CycleYuheng Tang, Kaijie Zhu, Bonan Ruan, Chuqi Zhang et al.ICLR 2026 · 10 citations
- CodeTaste: Can LLMs Generate Human-Level Code Refactorings?Alex Thillen, Niels Mündler, Veselin Raychev, Martin VechevICML 2026 · 2 citations
- Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and SelectionToufique Ahmed, Jatin Ganhotra, Avraham Shinnar, Martin HirzelICSE 2026 · 2 citations
- Unified Software Engineering Agent as AI Software EngineerLeonhard Applis, Yuntong Zhang, Shanchao Liang, Nan Jiang et al.ICSE 2026
Builds on10
- Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code GenerationJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, Lingming ZhangNeurIPS 2023 · 2,317 citations
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
- RepoBench: Benchmarking Repository-Level Code Auto-Completion SystemsTianyang Liu, Canwen Xu, Julian J. McAuleyICLR 2024 · 338 citations
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu et al.ICLR 2023 · 234 citations
Related papers
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code RepositoriesJia Li, Ge Li, Yunfei Zhao, Yongmin Li et al.ACL Findings 2024 · 44 citations
- DependEval: Benchmarking LLMs for Repository Dependency UnderstandingJunjia Du, Yadi Liu, Hongcheng Guo, Jiawei Wang et al.ACL Findings 2025 · 2 citations
- RealBench: A Repo-Level Code Generation Benchmark Aligned with Real-World Software Development PracticesJia Li, Hongyi Deng, Yiran Zhang, Kechi Zhang et al.FSE 2026
- Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation BenchmarkDewu Zheng, Yanlin Wang, Ensheng Shi, Xilin Liu et al.ICSE 2026
- ComplexCodeEval: A Benchmark for Evaluating Large Code Models on More Complex CodeJia Feng, Jiachen Liu, Cuiyun Gao, Chun Yong Chong et al.ASE 2024 · 7 citations
