arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.06244cs.SEcs.LG
收藏

代码评审预测模型中的团队相关特征

Team-related Features in Code Review Prediction Models

Universidade Federal do Rio Grande do Sul(南里奥格兰德联邦大学);RWTH Aachen University(亚琛工业大学);University of Klagenfurt(克拉根福大学)

Eduardo Witter, Ingrid Nunes, Dietmar Jannach

AI总结:

本文研究代码评审者推荐中的参与与反馈量预测问题,提出融合代码所有权、工作负载和团队关系等团队相关特征,并评估历史数据窗口影响。

摘要:

现代代码评审(Modern Code Review,MCR)是一种非正式的、由工具辅助的质量保证实践。它依赖于代码变更作者与评审者之间的异步通信,其中评审者是提供反馈的开发人员。然而,在候选开发人员中,面对特定情境,有些人能够比其他人提供更好的反馈。因此,评审者选择是一项重要任务,可以从自动化支持中受益。已有许多方法沿此方向提出,例如利用代码评审仓库中的数据来推荐评审者。在本文中,我们提出使用团队相关特征来提升有助于构建代码评审者推荐器的预测性能,目标预测包括识别将参与评审的评审者以及其提供的反馈数量。我们评估了这些与代码所有权、工作负载和团队关系相关特征的预测能力。该评估通过谨慎处理MCR领域带来的挑战完成,例如数据集的时间因素和类别不平衡。此外,鉴于目前尚不清楚需要多少历史数据才能构建出性能可接受的MCR预测模型,我们探究了用于构建预测模型的历史数据量。结果表明,单独来看,与代码所有权相关的特征具有最佳预测能力。然而,基于特征选择,我们得出结论:所提出的全部特征连同代码行数能够对评审者参与情况和反馈数量均作出最佳预测。关于历史数据量,使用3、6、9和12个月数据的时间窗口产生了相似结果。因此,可以在训练模型时考虑较短时间窗口,从而降低计算成本,且对预测性能的影响可以忽略不计……

英文摘要:

Modern Code Review (MCR) is an informal tool-assisted quality assurance practice. It relies on the asynchronous communication among the authors of code changes and reviewers, who are developers that provide feedback. However, from candidate developers, some are able to provide better feedback than others given a particular context. The selection of reviewers is thus an important task, which can benefit from automated support. Many approaches have been proposed in this direction, using for example data from code review repositories to recommend reviewers. In this paper, we propose the use of team-related features to improve the performance of predictions that are helpful to build code reviewer recommenders, with our target predictions being the identification of reviewers that would participate in a review and the provided amount of feedback. We evaluate the prediction power of these features, which are related to code ownership, workload, and team relationship. This evaluation was done by carefully addressing challenges imposed by the MCR domain, such as temporal aspects of the dataset and unbalanced classes. Moreover, given that it is currently unknown how much past data is needed for building MCR prediction models with acceptable performance, we explore the amount of past data used to build prediction models. Our results show that, individually, features related to code ownership have the best prediction power. However, based on feature selection, we conclude that all proposed features together with lines of code can make the best predictions for both reviewer participation and amount of feedback. Regarding the amount of past data, the timeframes of 3, 6, 9, and 12 months of data produce similar results. Therefore, models can be trained considering short timeframes, thus reducing the computational costs with negligible impact in the prediction performance ...

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

↑