AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation
Not on the map. Why?
Abstract (arXiv)
Recent advancements in large language models (LLMs) have automated various software engineering tasks, with benchmarks emerging to evaluate their capabilities. However, for adaptation, a critical activity during code reuse, there is no benchmark to assess LLMs' performance, leaving their practical utility in this area unclear. To fill this gap, we propose AdaptEval, a benchmark designed to evaluate LLMs on code snippet adaptation. Unlike existing benchmarks, AdaptEval incorporates the following three distinctive features: First, Practical Context. Tasks in AdaptEval are derived from developers' practices, preserving rich contextual information from Stack Overflow and GitHub communities. Second, Multi-granularity Annotation. Each task is annotated with requirements at both task and adaptation levels, supporting the evaluation of LLMs across diverse adaptation scenarios. Third, Fine-grained Evaluation. AdaptEval includes a two-tier testing framework combining adaptation-level and function-level tests, which enables evaluating LLMs' performance across various individual adaptations. Based on AdaptEval, we conduct the first empirical study to evaluate six instruction-tuned LLMs and especially three reasoning LLMs on code snippet adaptation. Experimental results demonstrate that AdaptEval enables the assessment of LLMs' adaptation capabilities from various perspectives. It also provides critical insights into their current limitations, particularly their struggle to follow explicit instructions. We hope AdaptEval can facilitate further investigation and enhancement of LLMs' capabilities in code snippet adaptation, supporting their real-world applications.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 50 of its 86 references that are in the map. First posted on arXiv 8 Jan 2026.
Builds on
50 of 86 references.
References · 50
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023A Survey of Large Language Modelscited by 2,537
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
38 more
- 2023Self-collaboration Code Generation via ChatGPTcited by 255
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 119
- 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 84
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 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
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
- 2023A Survey of Learning-based Automated Program Repaircited by 55
- 2025When Thinking Fails: The Pitfalls of Reasoning for Instruction-Following in LLMscited by 51
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
- 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2025Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Modelscited by 28
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
- 2021Sampling Projects in GitHub for MSR Studiescited by 20
- 2024ComplexCodeEval: A Benchmark for Evaluating Large Code Models on More Complex Codecited by 18
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
- 2022Piloting Copilot, Codex, and StarCoder2: Hot Temperature, Cold Prompts, or Black Magic?cited by 14
- 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repositorycited by 14
- 2024CoderUJB: An Executable and Unified Java Benchmark for Practical Programming Scenarioscited by 11
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
- 2019Analyzing and Supporting Adaptation of Online Code Examplescited by 8
- 2024OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Modelscited by 8
- 2024Unseen Horizons: Unveiling the Real Capability of LLM Code Generation Beyond the Familiarcited by 7
- 2018Usage and Attribution of Stack Overflow Code Snippets in GitHub Projectscited by 6
- 2021APIzation: Generating Reusable APIs from StackOverflow Code Snippetscited by 6
- 2024Instruct or Interact? Exploring and Eliciting LLMs' Capability in Code Snippet Adaptation Through Prompt Engineeringcited by 6
- 2017Stack Overflow in Github: Any Snippets There?cited by 5
- 2022Towards Exploring the Code Reuse from Stack Overflow during Software Developmentcited by 5
- 2024Revisiting Unnaturalness for Automated Program Repair in the Era of Large Language Modelscited by 5
- 2025LLM Code Customization with Visual Results: A Benchmark on TikZcited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Large Language Model Critics for Execution-Free Evaluation of Code Changes
- 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models
- 2026Evaluating LLMs Code Reasoning Under Real-World Context
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML