arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.15152cs.SE
收藏

预测软件代码审查中的专家评估

Predicting Expert Evaluations in Software Code Reviews

Yegor Denisov-Blanch, Igor Ciobanu, Simon Obstbaum, Michal Kosinski

AI总结:

本文提出一种算法模型,通过从代码提交预测编码时间、实现时间和代码复杂度等主观指标(与人类判断强相关),自动化处理耗时且易被忽视的代码审查任务,从而减轻审查者负担并支持数据驱动决策。

摘要:

手动代码审查是软件开发中不可或缺但耗时的环节,这常导致审查者优先关注技术问题而跳过有价值的评估。本文提出一种算法模型,能够自动化处理通常因复杂性或主观性而被规避的代码审查环节,例如评估编码时间、实现时间和代码复杂度。该模型并非取代手动审查,而是补充见解以帮助审查者专注于更具影响力的任务。该模型利用专家评估进行校准,通过代码提交预测关键指标,与人类判断具有强相关性(编码时间 r = 0.82,实现时间 r = 0.86)。通过自动化这些评估,我们减轻了人类审查者的负担,确保对耗时领域进行一致的分析,并提供了与手动审查并行的可扩展解决方案。本研究展示了自动化工具如何通过处理被忽视的任务来增强代码审查,支持数据驱动决策并改善审查流程。

英文摘要:

Manual code reviews are an essential but time-consuming part of software development, often leading reviewers to prioritize technical issues while skipping valuable assessments. This paper presents an algorithmic model that automates aspects of code review typically avoided due to their complexity or subjectivity, such as assessing coding time, implementation time, and code complexity. Instead of replacing manual reviews, our model adds insights that help reviewers focus on more impactful tasks. Calibrated using expert evaluations, the model predicts key metrics from code commits with strong correlations to human judgments (r = 0.82 for coding time, r = 0.86 for implementation time). By automating these assessments, we reduce the burden on human reviewers and ensure consistent analysis of time-consuming areas, offering a scalable solution alongside manual reviews. This research shows how automated tools can enhance code reviews by addressing overlooked tasks, supporting data-driven decisions and improving the review process.

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

↑