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

超越变更本身的审查:智能体与人类提交请求中代码仓库规模及现有代码的研究

Reviewing Beyond the Change: Repository Size and Existing Code Across Agent and Human Pull Requests

University of East London(东伦敦大学)

Sabry E. Farrag

AI总结:

本研究探究智能体与人类提交请求中,审查者提及变更外现有仓库条目的情况,发现该提及频率随代码文件规模增大而升高,且两类提交请求模式相似,智能体提及仅呈微小可忽略超额。

摘要:

审查者有时会提及所审查变更之外的现有仓库条目。本研究探究此类提及在更大规模代码仓库中是否更常见,以及智能体提交请求(agent-authored pull requests)与人类提交请求(human-authored pull requests)之间是否存在模式差异。研究使用工具将内联审查评论中的名称与基准提交仓库进行匹配,采用规模匹配的阴性对照估计偶然匹配的概率。在2034个GitHub仓库中针对智能体提交请求的92042条评论里,有6.5%提及了变更之外的现有条目。内部预先指定的对数线性模型发现,代码文件数量每增加10倍,优势比为1.35(区间为1.15至1.59),且规模匹配的阴性对照表明偶然匹配无法解释该增长。探索性分析显示,该关联集中在小型至中型仓库,在大型仓库中则不精确。在这些仓库的1845个中,人类提交请求呈现出类似关联。预先指定的比较发现,智能体提及的微小超额仅处于可忽略的界限内,但证据未确立智能体特有的稳健差异。由于工具遗漏了许多提及,报告的比例可能低估了流行程度,且验证无法估计召回率随仓库规模的变化情况。

英文摘要:

Reviewers sometimes name existing repository items outside the change under review. We ask whether such references are more common in larger repositories, and whether the pattern differs between agent-authored and human-authored pull requests. An instrument resolves names in inline review comments against the base-commit repository; size-matched negative controls estimate chance matches. Among 92,042 comments on agent pull requests in 2,034 GitHub repositories, 6.5 per cent name an existing item outside the change. An internally pre-specified log-linear model finds an odds ratio of 1.35 per tenfold increase in code files (interval 1.15 to 1.59), and size-matched negative controls indicate that chance matching does not account for the rise. Exploratory analyses suggest that the association is concentrated from small to mid-sized repositories and is imprecise among large ones. Human pull requests in 1,845 of these repositories show a similar association. A pre-specified comparison finds a small agent excess just within the bound set as negligible, but the evidence does not establish a robust agent-specific difference. The instrument misses many references, so reported shares likely understate prevalence, and the validation cannot estimate how recall changes with repository size.

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

↑