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

ReviewRanker:一种基于半监督学习的代码审查质量评估方法

ReviewRanker: A Semi-Supervised Learning Based Approach for Code Review Quality Estimation

Saifullah Mahbub, Md. Easin Arafat, Chowdhury Rafeed Rahman, Zannatul Ferdows, Masum Hasan

AI总结:

本文提出半监督学习系统 ReviewRanker,利用开发者提供的低代价标签为代码审查分配置信度分数,以减少人工偏见和工作量,提升代码审查质量检查效率。

摘要:

代码审查在软件行业中被视为减少缺陷和提高代码质量的关键流程。对审查过程有效性的检查以及持续改进能够提升开发生产力,但此类检查是一项耗时且容易受到人为偏见影响的任务。我们提出了一种基于半监督学习的系统 ReviewRanker,旨在为每次代码审查分配一个置信度分数,该分数预期能够反映审查的质量。我们提出的方法基于开发者提供的简单且定义明确的标签进行训练。标注任务几乎不需要开发者付出额外努力,并且与最终目标(即审查置信度分数的分配)之间仅存在间接关系。ReviewRanker 有望通过减少此类任务中的人为偏见和所需工作量,来改进整个行业范围内的代码审查质量检查。该系统具有减少开发与审查过程中存在的反复往返循环的潜力。本研究的可用代码和数据集可在以下地址获取:https://github.com/saifarnab/code_review

英文摘要:

Code review is considered a key process in the software industry for minimizing bugs and improving code quality. Inspection of review process effectiveness and continuous improvement can boost development productivity. Such inspection is a time-consuming and human-bias-prone task. We propose a semi-supervised learning based system ReviewRanker which is aimed at assigning each code review a confidence score which is expected to resonate with the quality of the review. Our proposed method is trained based on simple and and well defined labels provided by developers. The labeling task requires little to no effort from the developers and has an indirect relation to the end goal (assignment of review confidence score). ReviewRanker is expected to improve industry-wide code review quality inspection through reducing human bias and effort required for such task. The system has the potential of minimizing the back-and-forth cycle existing in the development and review process. Usable code and dataset for this research can be found at: https://github.com/saifarnab/code_review

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

↑