首页 | 本学科首页   官方微博 | 高级检索  
     

基于用户评论的代码质量识别与分析
引用本文:徐海燕,姜瑛.基于用户评论的代码质量识别与分析[J].计算机科学,2020,47(3):41-47.
作者姓名:徐海燕  姜瑛
作者单位:云南省计算机技术应用重点实验室 昆明 650500;昆明理工大学信息工程与自动化学院 昆明 650500
基金项目:国家自然科学基金;云南省应用基础研究计划;国家重点研发计划
摘    要:随着IT社区和代码托管平台的发展,针对代码的用户评论数量急剧增加。用户在使用代码后给出的评论中包含丰富的静态和动态代码质量信息,对其进行提取与分析将有助于开发者了解用户关注的代码质量信息,以有针对性地提升代码质量,还有助于用户选择满足要求的代码。为此,文中提出了包含静态特性和动态特性的代码质量模型,以及识别并分析用户评论中代码质量信息的方法。首先,根据评价对象和评价句型规则识别出具有代码质量的用户评论;然后,应用评价对象和评价观点抽取代码质量属性表现;最后,通过分析代码质量属性表现和情感倾向给出代码静态和动态质量的相关结果。实验结果表明,所提方法能够有效地分析用户评论中的代码质量信息。

关 键 词:代码质量  用户评论  评价对象  评价观点  评价句型  质量属性表现

Code Quality Recognition and Analysis Based on User’s Comments
XU Hai-yan,JIANG Ying.Code Quality Recognition and Analysis Based on User’s Comments[J].Computer Science,2020,47(3):41-47.
Authors:XU Hai-yan  JIANG Ying
Affiliation:(Computer Technology Application Key Lab of Yunnan Province,Kunming 650500,China;Faculty of Information Engineering and Automation,Kunming University of Science and Technology,Kunming 650500,China)
Abstract:With the development of IT community and code hosting platforms,the number of user’s comment about the code increasings dramatically.The comments given by users after using the code contain plenty of static and dynamic code quality information.The extraction and analysis of code quality information will help developers to understand the code quality information concerned by users and improve the quality of code.It is also helpful to users choose the code to meet the requirements.To this end,this paper proposed a code quality model including static and dynamic characteristics and a method to identify and analyze the code quality information in user’s comments.Firstly,the users’comments with code quality are identified according to the evalua-tion objects and the evaluation sentence pattern rules.Secondly,the representations of the code quality attribute are extracted by using the evaluation objects and opinions.Finally,the related results of static and dynamic code quality are gained after analyzing the quality attributes representations and emotional tendency of code in user’s comments.The experimental results show that the proposed method can effectively analyze the code quality information in user’s comments.
Keywords:Code quality  User’s comments  Evaluation object  Evaluation opinion  Evaluation pattern  Quality Attribute Representation
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号