CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models
Not on the map. Why?
Abstract (arXiv)
Code generation models based on the pre-training and fine-tuning paradigm have been increasingly attempted by both academia and industry, resulting in well-known industrial models such as Codex, CodeGen, and PanGu-Coder. To evaluate the effectiveness of these models, multiple existing benchmarks are proposed, including only cases of generating a standalone function, i.e., a function that may invoke or access only built-in functions and standard libraries. However, non-standalone functions, which typically are not included in the existing benchmarks, constitute more than 70% of the functions in popular open-source projects, and evaluating models' effectiveness on standalone functions cannot reflect these models' effectiveness on pragmatic code generation scenarios. To help bridge the preceding gap, in this paper, we propose a benchmark named CoderEval, consisting of 230 Python and 230 Java code generation tasks carefully curated from popular real-world open-source projects and a self-contained execution platform to automatically assess the functional correctness of generated code. CoderEval supports code generation tasks from six levels of context dependency, where context refers to code elements such as types, APIs, variables, and consts defined outside the function under generation but within the dependent third-party libraries, current class, file, or project. CoderEval can be used to evaluate the effectiveness of models in generating code beyond only standalone functions. By evaluating three code generation models on CoderEval, we find that the effectiveness of these models in generating standalone functions is substantially higher than that in generating non-standalone functions. Our analysis highlights the current progress and pinpoints future directions to further improve a model's effectiveness by leveraging contextual information for pragmatic code generation.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Feb 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 9; 2024: 10; 2025: 6; 2026: 3.
28 papers.
Sort:
By area:
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 246
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptionscited by 14
- 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
16 more
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
- 2024PatentGPT: A Large Language Model for Intellectual Propertycited by 8
- 2024CodeShell Technical Reportcited by 6
- 2024DCA-Bench: A Benchmark for Dataset Curation Agentscited by 6
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stackscited by 6
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
- 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMscited by 4
- 2023Neural Machine Translation for Code Generationcited by 3
- 2023Pop Quiz! Do Pre-trained Code Models Possess Knowledge of Correct API Names?cited by 3
- 2024Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-4cited by 3
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
- 2024GUI Test Migration via Abstraction and Concretizationcited by 1
- 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluationcited by 1
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migrationcited by 0
- 2026An Empirical Study for Android-to-OpenHarmony GUI Test Migrationcited by 0
- 2026An Empirical Study for Android-to-OpenHarmony GUI Test Migration13 Jul 2026
- 2026IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migration24 Jun 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration6 Oct 2025
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation29 Sep 2025
- 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluation29 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generation10 Mar 2025
- 2024GUI Test Migration via Abstraction and Concretization8 Sep 2024
- 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs26 Jun 2024
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stacks21 Jun 2024
16 more
- 2024DCA-Bench: A Benchmark for Dataset Curation Agents11 Jun 2024
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models3 Jun 2024
- 2024PatentGPT: A Large Language Model for Intellectual Property28 Apr 2024
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarks31 Mar 2024
- 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMs24 Mar 2024
- 2024CodeShell Technical Report23 Mar 2024
- 2024Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-420 Feb 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?10 Oct 2023
- 2023Pop Quiz! Do Pre-trained Code Models Possess Knowledge of Correct API Names?14 Sep 2023
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generation14 Sep 2023
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation3 Aug 2023
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedback27 Jul 2023
- 2023Guiding Language Models of Code with Global Context using Monitors19 Jun 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptions7 Apr 2023
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
- 2024DCA-Bench: A Benchmark for Dataset Curation Agentscited by 6
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migrationcited by 0
- 2026IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migration24 Jun 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration6 Oct 2025
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generation10 Mar 2025
- 2024DCA-Bench: A Benchmark for Dataset Curation Agents11 Jun 2024
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 246
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptionscited by 14
- 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
12 most cited of 23 All 23 (JSON)
- 2026An Empirical Study for Android-to-OpenHarmony GUI Test Migration13 Jul 2026
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation29 Sep 2025
- 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluation29 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2024GUI Test Migration via Abstraction and Concretization8 Sep 2024
- 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs26 Jun 2024
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stacks21 Jun 2024
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models3 Jun 2024
- 2024PatentGPT: A Large Language Model for Intellectual Property28 Apr 2024
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarks31 Mar 2024
- 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMs24 Mar 2024
12 newest of 23 All 23 (JSON)