pipette
ESEspañol

PR4Code: A Pull Requests Dataset for AI Code Generation

Benedetta Donato, Leonardo Mariani, Daniela Micucci, Oliviero Riganelli

Preprint with a published version

In the authors' words

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.

Main resultThe abstract does not state a limitation.

Appeared: Friday, October 30. arXiv. Preprint with a published version.

DOI: 10.1109/ACCESS.2026.3713096

Published version: IEEE Access, vol. 14, pp. 108479-108491, 2026

Authors' comment: Published in IEEE Access