计算机工程与应用2023,Vol.59Issue(24):147-154,8.DOI:10.3778/j.issn.1002-8331.2209-0442
用户评论中基于事件图谱的代码质量分析
Code Quality Analysis Based on Event Graph in User Reviews
摘要
Abstract
Research on user comments in the code hosting platform shows that the code quality information reflected in user comments can help users quickly select open source code that meets their needs,and can help software developers improve code quality.However,in view of the problems of incomplete and inaccurate extraction of code quality informa-tion in current research,a code quality analysis method based on event graph is proposed to analyze the code quality infor-mation in user comments.Firstly,a code quality hierarchy diagram is constructed to represent the various code quality information structures.Then this paper analyzes user comments and builds an event map for code user comments.Secondly,the method of mapping event map to code quality hierarchy diagram is proposed.Finally,the code quality information in the code quality hierarchy diagram is identified.The experimental results show that the average accuracy of this method in identifying code quality information in code review texts is 86.9%,so this method can effectively identify and analyze code quality information.关键词
代码质量/代码质量属性/用户评论/事件图谱Key words
code quality/code quality attributes/user comments/event map分类
信息技术与安全科学引用本文复制引用
张培园,姜瑛..用户评论中基于事件图谱的代码质量分析[J].计算机工程与应用,2023,59(24):147-154,8.基金项目
国家自然科学基金(62162038,61462049,61063006,60703116) (62162038,61462049,61063006,60703116)
国家重点研发计划(2018YFB1003904) (2018YFB1003904)
云南省应用基础研究计划重点项目(2017FA033) (2017FA033)
云南省计算机技术应用重点实验室开放基金(2020101). (2020101)