期刊文献+

Stack Overflow的缺陷代码特征分析与相似缺陷检测 被引量:2

Defective Code Characteristics Analysis of Stack Overflow and Similar Defect Detection
下载PDF
导出
摘要 目前在软件代码缺陷审查以及缺陷预测中,研究人员对源代码进行分析研究却忽略了代码的缺陷信息.本文通过对缺陷信息进行分析,发现缺陷信息对于相似缺陷的检测有着重要的参考价值.基于这一思想,本文分析软件缺陷社区Stack Overflow中关于缺陷代码的信息,提出一种基于缺陷代码特征分析的相似缺陷检测方法.该方法首先对缺陷报告进行LDA主题分析并将缺陷报告分类到不同的主题(类别)中,统计得到高频缺陷类别;其次对于高频缺陷类别的缺陷代码提取特征;最后根据缺陷代码特征构建相似缺陷检测模型.为了验证相似缺陷检测模型的有效性,针对数据操作缺陷数据构建诊断模型并对该模型进行实证,实验结果表明该方法对检测其他代码中相似缺陷有较好的效果. 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.
作者 亢振兴 赵逢禹 刘亚 KANG Zhen-xing;ZHAO Feng-yu;LIU Ya(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
出处 《小型微型计算机系统》 CSCD 北大核心 2021年第3期661-665,共5页 Journal of Chinese Computer Systems
基金 国家自然科学基金项目(61803264)资助。
关键词 Stack Overflow LDA 缺陷代码特征 特征相似度 相似缺陷检测 Stack Overflow LDA defective code characteristics feature similarity similar defect detection
  • 相关文献

参考文献7

二级参考文献44

  • 1曾福萍,钟德明,张虹.一种软件代码审查方法的研究[C].第7届国际可靠性、维修性、安全性学术会议论文集(中国宇航学会等主办).2007.
  • 2Oliver Laitenberger. Studying the effects of code inspection and structural testing on software quality [ C ]// '98 Proceedings of the Ninth International Symposium on Software Reliability Engineering. Paderborn, Germany : IEEE, 1998:237 - 246.
  • 3GJB/Z141军用软件测试指南[S].
  • 4Fagan M E. Design and code inspections to reduce errors in program development [ J]. IBM Systems Journal, 1976, 15 (3) :182 -211.
  • 5Chan Kevin. An agent-based approach to computer assisted code inspections[ C ]//13 th Australian Software Engineering Conference ( ASWEC'01 ). Canberra, Australia : IEEE ,2001 : 147 - 152.
  • 6Jorge Bady de Almeida Jr,Joao Batista Camargo Jr, Bruno Abrantes basseto,et al. Best practices in code inspection for safety-critical software [ J ]. Software IEEE,2003,20 ( 3 ) : 56 - 63.
  • 7Les Hatton. Testing the value of checklists in code inspection [ J ]. Software IEEE ,2008 ,25 (4) :82 - 88.
  • 8McMeekin David A, yon Konsky Brian R, Robey Michael, et al. The significance of participant experience when evaluating software inspection techniques [ C ]//Software Engineering Conference. Gold Coast, Australia : 1EEE,2009 : 200 - 209.
  • 9Mantyla Mika V,Lassenius Casper. What types of defects are really discovered in code reviews? [ J ]. IEEE Transactions on Software Engineering ,2009,35 ( 3 ) :430 - 448.
  • 10Goddard P L,Troy Raytheon. Software FMEA techniques[ C]// Proceedings Annual Reliability and Maintainability Symposium 2000. Los Angeles, CA, USA : IEEE,2000 : 118 - 123.

共引文献31

同被引文献28

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部