mlsanityData to 7 Oct 2026

RepoMasterEval: Evaluating Code Completion via Real-World Repositories

arXiv 2408.03519 ↗First posted 7 Aug 2024cs.SE cs.AIcited by 10

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  5. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  6. 2021Measuring Coding Challenge Competence With APPScited by 879
  7. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  8. 2024A Survey on Large Language Models for Code Generationcited by 646
  9. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  10. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  11. 2022CodeT: Code Generation with Generated Testscited by 369
  12. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
24 more
  1. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  2. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  3. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  4. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  5. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  6. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  7. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  8. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
  9. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  10. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  11. 2023Self-planning Code Generation with Large Language Modelscited by 121
  12. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  13. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  14. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  15. 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
  16. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  17. 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  18. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  19. 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
  20. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
  21. 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
  22. 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
  23. 2023An Empirical Comparison of Pre-Trained Models of Source Codecited by 25
  24. 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 3.

10 papers.