AI-to-AI Code Review Dataset
收藏资源简介:
该数据集由蒙特利尔高等技术学院与特伦特大学联合构建,专门用于研究AI闭环代码审查现象。它整合了来自CodAGE的GitHub事件,通过签名框架精准识别AI撰写的拉取请求(PR)及其对应的AI审查事件,最终形成包含248,641个独特AI属性PR的审查对。其中,跨产品审查对占45,269个,同产品审查对占208,145个,另有4,773个PR同时被两种方式审查。数据集创建过程历经候选事件筛选、双重签名验证、清洗去重和隔离过滤,确保高置信度。该数据集旨在揭示AI代理间代码审查的规模与增长趋势,并分析不同作者-审查者组合下的审查行为差异,为理解自动化软件工程中的AI交互提供实证基础。
This dataset was jointly developed by the École de technologie supérieure of Montreal and Trent University, specifically designed for research on the phenomenon of AI-powered closed-loop code review. It integrates GitHub events sourced from CodAGE, utilizes a signature framework to accurately identify AI-generated pull requests (PRs) and their corresponding AI review events, and ultimately forms review pairs containing 248,641 unique AI-attributed PRs. Among these, 45,269 are cross-product review pairs, 208,145 are within-product review pairs, and an additional 4,773 PRs were reviewed using both methods. The dataset creation process underwent candidate event screening, dual signature verification, data cleaning and deduplication, as well as isolation filtering to ensure high confidence in the dataset. This dataset aims to uncover the scale and growth trends of code review between AI Agents, analyze variations in review behavior across different author-reviewer pairings, and provide an empirical basis for understanding AI interactions in automated software engineering.
数据集概述
该数据集是论文《AI-to-AI Code Reviews of GitHub Pull Requests》的复制包,发表于 ESEM 2026(LIPIcs Vol. 394, Article 74),由 Niruthiha Selvanayagam(ÉTS Montréal)和 Taher A. Ghaleb(Trent University)撰写。
核心内容
数据集中包含闭环 AI 到 AI 代码审查数据,即由 AI 代理编写且由 AI 代理审查的 GitHub Pull Request(PR)。每个 PR 通过签名识别其作者代理和审查代理。数据源为 GitHub Archive(GHArchive),时间范围为 2024-01-01 至 2026-04-15。数据集中包含的两类主要数据文件:
| 文件 | 论文名称 | 行数(对) | 唯一PR数 |
|---|---|---|---|
cohorts/axb_cross.parquet |
A×B-跨产品 | 47,259 | 45,269 |
cohorts/axb_self.parquet |
A×B-同产品 | 208,144 | 208,144 |
数据集的关键列为 (repo_name, pr_number),包含作者代理、审查代理、时间戳、签名强度、审查数量、事件时间等信息。PR 若同时被同产品和跨产品代理审查,会出现在两个文件中(4,773 个 PR 同时存在于两者)。
关联数据集 CodAGE
论文的原始语料库为 CodAGE(Coding Agent-generated GitHub Events),托管在 Hugging Face 上(https://huggingface.co/datasets/taher-ghaleb/CodAGE)。CodAGE 包含:
- CodAGE-PRs:2,830,431 行,每个 PR 的作者代理信息
- CodAGE-Reviews:4,141,107 行,代理审查决定
- CodAGE-ReviewComments:8,560,237 行,代理审查评论
- coderabbit_severity.parquet:3,549,430 行,CodeRabbit 评论类别标签
注意: 审查评论数据仅包含元数据,不含评论正文。
研究方法
代理归因方法采用两级签名:
- S1(高置信度正文签名):代理在 PR 中生成的机器可读标记,如
Co-Authored-By: Claude、cursor.com/agents、chatgpt.com/codex等 - S2(厂商控制账户签名):如
coderabbitai[bot]、devin-ai-integration[bot]、gemini-code-assist[bot]
产品归因层级为产品级(而非公司或基础模型级),例如 Google 旗下的 Jules 和 Gemini Code Assist 被视为不同产品。
覆盖的代理包括:CodeRabbit、Copilot、Gemini Code Assist、OpenAI Codex、Amazon Q、Devin、Claude Code、Sweep AI、PR-Agent、Kiro、Cursor、Aider(审查侧);Google Jules(作者侧额外覆盖)。
关键统计数字
| 指标 | 数值 |
|---|---|
| 唯一AI代理编写PR数 | 2,830,284 |
| 获得至少一次AI审查的PR数 | 248,640 |
| A×B跨产品PR数 | 45,269 |
| A×B跨产品作者-审查者对 | 47,259 |
| A×B同产品PR数 | 208,144 |
文档中特别指出,数据集构建与论文存在一处差异(248,640 vs 248,641 个 PR),原因已定位为排序稳定性问题,当前版本已通过稳定排序保证确定性。
使用与复现
- 快速开始:安装依赖后直接运行
scripts/plot_rq1_quarterly.py和scripts/make_tables.py即可复现论文图表,无需额外下载 - 可选重建数据:从 CodAGE 下载原始数据,使用
scripts/build_cohorts.py可重建所有队列 - 输出文件:
figures/rq1_quarterly.pdf、figures/rq2_severity_mix.pdf(图1和图2),results/tables.txt(论文表格逐字输出)
数据构建流程
作者侧(pr_filtered = 谁写了PR)和审查者侧(reviews_filtered + review_comments_filtered = 谁审查了PR)独立从 GHArchive 挖掘,通过 (repo_name, pr_number) 内连接形成闭环群体,再根据 same_vendor 布尔列(即作者代理是否等于审查代理)区分为同产品或跨产品。
许可与引用
- 代码:MIT 许可
- 数据(
cohorts/和 CodAGE):CC BY 4.0 - 引用方式:论文引用见 README 中提供的 BibTeX 条目(ESEM 2026)
联系信息
- Niruthiha Selvanayagam:niruthiha.selvanayagam.1@ens.etsmtl.ca
- Taher A. Ghaleb:taherghaleb@trentu.ca

- 1AI-to-AI Code Reviews of GitHub Pull Requests蒙特利尔高等技术学院; 特伦特大学 · 2026年



