PR4Code: A Pull Requests Dataset for AI Code Generation
Benedetta Donato, Leonardo Mariani, Daniela Micucci, Oliviero Riganelli
Abstract
AI-driven code generation is evolving from handling small, localized code-completion tasks toward supporting the implementation of full software features. To support this transition, this paper introduces PR4Code, a dataset of 4,508 Java and 8,831 Python curated Pull Requests (PRs) collected from GitHub, each enriched with metadata, commit histories, and detailed code changes. Unlike resources focused on isolated code fragments, PR4Code captures the feature implementation process, delivering a large and diverse collection of real-world development tasks that can be used to assess AI-driven solutions. Our analysis reveals substantial variability in PR structure, commit granularity, and textual content. In addition, we release scripts to regenerate and update the dataset, ensuring reproducibility and maintainability.
Create a lesson
Metadata
- Journal
- IEEE Access, vol. 14, pp. 108479-108491, 2026
- Comments
- Published in IEEE Access
Related papers
Testing with Coding Agents: A Large-Scale Comparison of Agent-Supported and Human-Authored Pull Requests
Shared title terminologycs.SERoberto Milanese, Francesco Salzano, Hovhannes Muradyan et al.
Do AI Coding Agents Write Infrastructure as Code Like Humans? An Empirical Study of GitHub Pull Requests
Shared title terminologycs.SEAmine Barrak, Emna Ksontini, Charles Wehbe
fx(hash): Salvaging The Source Code of 28k Generative Artworks
Shared title terminologycs.SEBenoit Baudry, Valeriia Bezklynska, Martin Monperrus
Micro Operational Robustness of LLMs on Code Generation
Shared title terminologycs.SEDebalina Ghosh Paul, Hong Zhu, Ian Bayley
From Observation to Explanation: Mechanistic Interpretability of LLM-Generated Code for Principled Repair
Shared title terminologycs.SEMusfiqur Rahman
Static Analysis Guidance for Secure LLM Code Generation
Shared title terminologycs.SEDaniele Lunghi, Alberick Euraste Djiré, Zacharie Chenail-Larcher et al.