期刊文献+

基于支持向量机的克隆代码有害性评价方法

Code clone harmfulness evaluation based on support vectors machine
下载PDF
导出
摘要 克隆代码是软件中彼此相似的代码片段。传统观点认为克隆代码是有害的,会降低软件质量,但最近研究发现克隆代码不一定是有害的。如何评估克隆代码的有害性是一个值得研究的问题。本文提出了一种基于支持向量机的克隆代码有害性评价方法,可以以较高的准确性和查准率评价其有害性。为验证方法有效性,本文在6个系统上进行实验,结果表明本文方法可以有效地评价克隆代码的有害性,并且所提出的静态度量和演化度量对评价克隆代码有效性具有积极意义。 Code clone( also known as duplicated code) has always been a popular research field in software engineering. Traditional view is that code clone is harmful,because clone can decrease the quality of software. However,considering the clone evolution,some studies find that not all the clones are harmful. So how to evaluate the clone harmfulness is a problem. This paper proposes a method which can evaluate the clone harmfulness based on support vectors machine,and makes several experiments on six open-source software systems which were written in three kinds of programming languages. The results show that the proposed method has an applicability and higher accuracy. It is a meaningful attempt to evaluate the clone harmfulness.
出处 《智能计算机与应用》 2016年第4期112-115,118,共5页 Intelligent Computer and Applications
基金 国家自然科学基金(61173021)
关键词 克隆代码 克隆有害性评价 克隆度量 支持向量机 克隆演化 code clone harmfulness evaluation clone metrics support vector machine clone evolution
  • 相关文献

参考文献18

  • 1THUMMALAPENTA S, CERULO L, AVERSANO L, et al. An empirical study on the maintenance of source code clones [ J ]. Empirical Software Engineering, 2010,15( 1 ) : 1-34.
  • 2ROY C K, CORDY J R, KOSCHKE R. Comparison and evaluation of code clone detection techniques and tools: A qualitative approach [ J]. Science of Computer Programming, 2009,74: 470-495.
  • 3CHOI E, YOSHIDA N, ISHIO T, et al. Extracting code clones for refactoring using combinations of clone metrics [ C ]//Proceedings of the 5th International Workshop on Software Clones. New York, USA: ACM, 2011: 7-13.
  • 4BOUKTIF S, ANTONIOL G, MERLO E, et al. A novel approach to optimize clone refactoring activity[ C ]//Proceedings of the 8th annual conference on Genetic and evolutionary computation. New York, USA: ACM, 2006: 1885-1892.
  • 5BALAZINSKA M, MERLO E, DAGENAIS M, et al. Advanced clone-analysis to support object-oriented system refactoring [ C]// Reverse Engineering, Proceedings. Seventh Working Conference on. Brisbane: IEEE, 2000: 98-107.
  • 6GRAVES T L, KARR A F, MARRON J S, et al. Predicting fault incidence using software change history [ J ]. Software Engineering, IEEE Transactions on, 2000, 26(7) : 653-661.
  • 7JIANG L, SU Z, CH1U E. Context-based detection of clone-related bugs[ C ]// Proceedings of the 6th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on The foundations of software engineering. New York : ACM, 2007 : 55-64.
  • 8HASSAN A E. Predicting faults using the complexity of code changes [ C ]//Proceedings of the 3!st International Conference on Software Engineering. Washington : IEEE Computer Society, 2009 : 78-88.
  • 9AVERSANO L, CERULO L, DIP M. How clones are maintained: An empirical study[ C ]// Software Maintenance and Reengineering, 2007. CSMR'07. llth European Conference on. Amsterdam: IEEE, 2007 : 81-90.2000.
  • 10GODE N, KOSCHKE R. Frequency and risks of changes to clones [ C]//Proceedings of the 33rd International Conference on Software Engineering. New York, USA: ACM, 2011: 311-320.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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