首页 | 官方网站   微博 | 高级检索  
     

Stack Overflow的缺陷代码特征分析与相似缺陷检测
引用本文:亢振兴,赵逢禹,刘亚. Stack Overflow的缺陷代码特征分析与相似缺陷检测[J]. 小型微型计算机系统, 2021, 0(3): 661-665
作者姓名:亢振兴  赵逢禹  刘亚
作者单位:上海理工大学光电信息与计算机工程学院
基金项目:国家自然科学基金项目(61803264)资助。
摘    要:目前在软件代码缺陷审查以及缺陷预测中,研究人员对源代码进行分析研究却忽略了代码的缺陷信息.本文通过对缺陷信息进行分析,发现缺陷信息对于相似缺陷的检测有着重要的参考价值.基于这一思想,本文分析软件缺陷社区Stack Over-flow中关于缺陷代码的信息,提出一种基于缺陷代码特征分析的相似缺陷检测方法.该方法首先对缺陷报...

关 键 词:StackOverflow  LDA  缺陷代码特征  特征相似度  相似缺陷检测

Defective Code Characteristics Analysis of Stack Overflow and Similar Defect Detection
KANG Zhen-xing,ZHAO Feng-yu,LIU Ya. Defective Code Characteristics Analysis of Stack Overflow and Similar Defect Detection[J]. Mini-micro Systems, 2021, 0(3): 661-665
Authors:KANG Zhen-xing  ZHAO Feng-yu  LIU Ya
Affiliation:(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
Abstract:At present,in the software code defect review and defect prediction,the researchers analyze the source code but ignore the code defect information.This paper analyzes the defect information and finds that the defect information has important reference value for the detection of similar defects.Based on this idea,this paper analyzes the information about the defect code in the software defect community Stack Overflow,and proposes a similar defect detection method based on the defect code feature analysis.First,this method analyzes the topic of the defect report by LDA model and classifies the defect report into different topics(categories) to statistically obtain the high-frequency defect categories;second,extracts features for the defect codes of the high-frequency defect categories;and finally constructs similarities based on the characteristics of the defect codes.Defect detection model.In order to verify the validity of the similar defect detection model,a diagnostic model is constructed based on the data defect data and the model is verified.The experimental results show that the method has a good effect on detecting similar defects in other codes.
Keywords:Stack Overflow  LDA  defective code characteristics  feature similarity  similar defect detection
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号