arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.39890cs.SE
收藏

PR4Code:用于AI代码生成的拉取请求数据集

PR4Code: A Pull Requests Dataset for AI Code Generation

University of Milano-Bicocca(米兰比可卡大学)

Benedetta Donato, Leonardo Mariani, Daniela Micucci, Oliviero Riganelli

AI总结:

本文介绍了PR4Code数据集,包含从GitHub收集的4508个Java和8831个Python精选拉取请求,用于支持AI代码生成从代码补全向完整软件功能实现的转变,可评估AI解决方案且具备可复现性。

摘要:

AI驱动的代码生成正从处理小型、局部的代码补全任务,向支持完整软件功能的实现方向发展。为推动这一转变,本文介绍PR4Code——一个从GitHub收集的包含4508个Java和8831个Python的精选拉取请求(PR)数据集,每个PR都补充了元数据、提交历史和详细的代码变更。与专注于孤立代码片段的资源不同,PR4Code捕捉了功能实现过程,提供了大量多样化的真实开发任务集合,可用于评估AI驱动的解决方案。我们的分析显示PR结构、提交粒度和文本内容存在显著差异。此外,我们发布了用于重新生成和更新该数据集的脚本,确保其可复现性和可维护性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑