Manuscript Offprint

arXiv:2610.39890

PR4Code: A Pull Requests Dataset for AI Code Generation

Benedetta Donato, Leonardo Mariani, Daniela Micucci, Oliviero Riganelli

29 Oct 2026

arXiv:2610.39890v1 [cs.SE]

IEEE Access Multidisciplinary Rapid Review Open Access Journal

Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.

Digital Object Identifier 10.1109/ACCESS.2024.0429000

PR4Code: A Pull Requests Dataset for AI Code Generation

BENEDETTA DONATO 1^{1} (Student Member, IEEE), LEONARDO MARIANI 2^{2} (Senior Member, IEEE), DANIELA MICUCCI 3^{3} (Member, IEEE), and OLIVIERO RIGANELLI 4^{4}

1^{1}University of Milano-Bicocca (e-mail: benedetta.donato@unimib.it)

2^{2}University of Milano-Bicocca (e-mail: leonardo.mariani@unimib.it)

3^{3}University of Milano-Bicocca (e-mail: daniela.micucci@unimib.it)

4^{4}University of Milano-Bicocca (e-mail: oliviero.riganelli@unimib.it)

Corresponding author: Benedetta Donato (e-mail: benedetta.donato@unimib.it).

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.

INDEX TERMS Pull Requests, Feature Development, AI-driven Code Generation, LLMs, AI Assistants, Commits, Code Changes.

References (26)