摘要
针对代码审查过程中的代码审查意见对于开发者可能无价值的问题,文中提出了一种基于深度学习长短期记忆网络的代码审查意见有效性评估方法。该方法通过提取代码审查意见中与审查意见有效性相关的特征,并根据这些特征构建评估模型,从而评估审查意见对于开发人员是否有价值。为了验证方法的有效性,文中选取了GitHub上开源Eclipse项目中的审查信息作为实验数据,并将所提方法与其它机器学习方法对比。实验结果表明,该方法可以有效评估审查意见的价值。
Aiming at the code review comments during the code review process may be of no value to developers,a code review comments evaluation method based on deep learning Long Short-Term Memory networks was proposed,which can effectively extract the features related to validity of the code review comments,then a code review comments evaluation model based on these features was built to judge whether the review comments are useful to the developer.In order to verify the method,the extensive experiments were conducted based on the open source Eclipse project on GitHub as experimental data,and this paper compared the method with other machine learning methods.The experimental results demonstrated that the method effectively evaluate whether the review comment is meaningful and significantly better than the comparison methods.
作者
段雨佳
鞠婷
DUAN Yujia;JU Ting(School of Computer Science and Technology,Hangzhou Dianzi University,Hangzhou 310000,China)
出处
《电子科技》
2020年第1期39-45,共7页
Electronic Science and Technology
基金
浙江省自然科学基金(LQ17F020003)~~
关键词
软件工程
代码审查
深度学习
长短期记忆模型
词向量
自然语言处理
software engineering
code review
deep learning
long short-term memory
word embedding
natural language processing