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 challenging development tasks that can be used to assess and train AI-driven solutions. Our preliminary 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.
Donato, B., Mariani, L., Micucci, D., Riganelli, O. (2026). PR4Code: A Pull Requests Dataset for AI Code Generation. IEEE ACCESS, 14, 108479-108491 [10.1109/access.2026.3713096].
PR4Code: A Pull Requests Dataset for AI Code Generation
Donato, Benedetta;Mariani, Leonardo;Micucci, Daniela;Riganelli, Oliviero
2026
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 challenging development tasks that can be used to assess and train AI-driven solutions. Our preliminary 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.| File | Dimensione | Formato | |
|---|---|---|---|
|
Donato et al-2026-IEEE Access-VoR.pdf
accesso aperto
Tipologia di allegato:
Publisher’s Version (Version of Record, VoR)
Licenza:
Creative Commons
Dimensione
607.58 kB
Formato
Adobe PDF
|
607.58 kB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


