mlsanityData to 7 Oct 2026

CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models

arXiv 2302.00288 ↗First posted 1 Feb 2023cs.SEcited by 28

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 9; 2024: 10; 2025: 6; 2026: 3.

28 papers.

Sort:

By area:

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  2. 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 246
  3. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  4. 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
  5. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  6. 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
  7. 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
  8. 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
  9. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
  10. 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptionscited by 14
  11. 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
  12. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
16 more
  1. 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
  2. 2024PatentGPT: A Large Language Model for Intellectual Propertycited by 8
  3. 2024CodeShell Technical Reportcited by 6
  4. 2024DCA-Bench: A Benchmark for Dataset Curation Agentscited by 6
  5. 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stackscited by 6
  6. 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
  7. 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMscited by 4
  8. 2023Neural Machine Translation for Code Generationcited by 3
  9. 2023Pop Quiz! Do Pre-trained Code Models Possess Knowledge of Correct API Names?cited by 3
  10. 2024Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-4cited by 3
  11. 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
  12. 2024GUI Test Migration via Abstraction and Concretizationcited by 1
  13. 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluationcited by 1
  14. 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
  15. 2026IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migrationcited by 0
  16. 2026An Empirical Study for Android-to-OpenHarmony GUI Test Migrationcited by 0