RepoMasterEval: Evaluating Code Completion via Real-World Repositories
Not on the map. Why?
Abstract (arXiv)
With the growing reliance on automated code completion tools in software development, the need for comprehensive evaluation benchmarks has become critical. Existing benchmarks focus more on code completion in function and class level by providing text descriptions to prompt the model. By contrast, such descriptive prompt is commonly unavailable in real development and code completion can occur in wider range of situations such as in the middle of a function or a code block. These limitations makes existing evaluation benchmarks poorly align with the practical scenarios of code completion tools. In this paper, we propose RepoMasterEval, a novel benchmark for evaluating code completion models constructed from real-world repositories. Each benchmark datum is generated by masking a code snippet (ground truth) from one source code file with existing test suites. To improve test accuracy of model generated code, we employ mutation testing to measure the effectiveness of the test cases and we manually crafted new test cases for those test suites with low mutation score. Our empirical evaluation on 10 state-of-the-art models shows that test argumentation is critical in improving the accuracy of the benchmark and RepoMasterEval is able to report variance in model performance in real-world scenarios. The deployment of RepoMasterEval also revealed that the benchmark is useful to give accurate feedback during model training and the score is in high correlation with the model's performance in practice.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 36 of its 46 references that are in the map. First posted on arXiv 7 Aug 2024.
Builds on
36 of 46 references.
References · 36
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
24 more
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2023Self-planning Code Generation with Large Language Modelscited by 121
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
- 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2023An Empirical Comparison of Pre-Trained Models of Source Codecited by 25
- 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 3.
10 papers.
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2024Codev-Bench: How Do LLMs Understand Developer-Centric Code Completion?cited by 17
- 2025DependEval: Benchmarking LLMs for Repository Dependency Understandingcited by 16
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluationcited by 9
- 2026DevBench: A Realistic, Developer-Informed Benchmark for Code Generation Modelscited by 8
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scalecited by 7
- 2026ClarEval: A Benchmark for Evaluating Clarification Skills of Code Agents under Ambiguous Instructionscited by 5
- 2025Benchmarking LLMs for Fine-Grained Code Review with Enriched Context in Practicecited by 4
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbationscited by 3
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations25 May 2026
- 2026ClarEval: A Benchmark for Evaluating Clarification Skills of Code Agents under Ambiguous Instructions27 Feb 2026
- 2026DevBench: A Realistic, Developer-Informed Benchmark for Code Generation Models17 Jan 2026
- 2025Benchmarking LLMs for Fine-Grained Code Review with Enriched Context in Practice10 Nov 2025
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation28 Oct 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025DependEval: Benchmarking LLMs for Repository Dependency Understanding9 Mar 2025
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scale19 Feb 2025
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scale23 Jan 2025
- 2024Codev-Bench: How Do LLMs Understand Developer-Centric Code Completion?2 Oct 2024