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

等等!我的反馈有用吗?评估代码审查评论的有用性

Hold On! Is My Feedback Useful? Evaluating the Usefulness of Code Review Comments

Sharif Ahmed, Nasir U. Eisty

AI总结:

本研究通过文本特征和无特征方法评估代码审查评论的有用性,实验表明GPT-4o和TF-IDF词袋方法最有效,显著提升预测性能。

摘要:

背景:在协作软件开发中,同行代码审查过程只有在审查者提供有用的评论时才被证明是有益的。目标:本文通过基于文本特征和无特征的方法来研究代码审查评论(CR评论)的有用性。方法:我们从开源和商业项目中选择三个可用的数据集。此外,我们引入了来自软件和非软件领域的新特征。而且,我们实验了CR评论中行话、语态和代码的存在,并通过特征化、词袋和迁移学习技术对CR评论的有用性进行分类。结果:我们的模型通过实现最先进的性能超越了基线。此外,结果表明,商业巨型LLM GPT-4o或非商业朴素无特征方法(带TF-IDF的词袋)在预测CR评论的有用性方面更为有效。结论:仅从CR评论中预测有用性的显著改进提升了该任务的研究。我们的分析描绘了在预测CR评论有用性时领域、项目、数据集、模型和特征的相似性和差异性。

英文摘要:

Context: In collaborative software development, the peer code review process proves beneficial only when the reviewers provide useful comments. Objective: This paper investigates the usefulness of Code Review Comments (CR comments) through textual feature-based and featureless approaches. Method: We select three available datasets from both open-source and commercial projects. Additionally, we introduce new features from software and non-software domains. Moreover, we experiment with the presence of jargon, voice, and codes in CR comments and classify the usefulness of CR comments through featurization, bag-of-words, and transfer learning techniques. Results: Our models outperform the baseline by achieving state-of-the-art performance. Furthermore, the result demonstrates that the commercial gigantic LLM, GPT-4o, or non-commercial naive featureless approach, Bag-of-Word with TF-IDF, is more effective for predicting the usefulness of CR comments. Conclusion: The significant improvement in predicting usefulness solely from CR comments escalates research on this task. Our analyses portray the similarities and differences of domains, projects, datasets, models, and features for predicting the usefulness of CR comments.

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

↑