首页> 中文期刊> 《计算机应用研究》 >基于bugs的克隆代码稳定性评估方法

基于bugs的克隆代码稳定性评估方法

         

摘要

Focusing on that stability assessment methods of clone code have a few and low accuracy,this paper proposed a method for evaluating the stability of clone code based on the modification frequency of code files containing bugs.Firstly,it obtained the software bugs repair logs from software subversion management system and to standardize.Secondly,it obtained explicit description information about software bugs from bugs' management system,and distilled code files containing bugs which associated bug ID and the bug ID in repair logs.Thirdly,it obtained clone code in software system by using clone detection tools,and drew clone and non-clone code containing by corresponding bugs code file path containing bugs.Finally,it counted the modification frequency of clone and non-cloning code containing bugs by making use of SVN diff tool,and evaluated the stability of clone code.To 5 open source software with different languages test,experimental results show that clone code is more stable than non-clone code,and the resulting bugs hazard is relatively low,which provides the basis for management and maintenance of clone code.%针对克隆代码稳定性评价方法少且准确度低等问题,提出了一种以含bugs的代码文件修改频度为标准的评价克隆代码稳定性的方法.首先从软件版本管理系统中获取软件bugs的修复日志并进行标准化处理;其次从bugs管理系统中获取软件bugs的详细描述信息,并利用bug的ID号和修复日志中bug的ID号进行关联提取含bugs的代码文件;然后通过克隆检测工具检测获取软件系统中的克隆代码,并与含bugs的代码文件路径进行关联,提取出含bugs的克隆与非克隆代码;最后利用SVN diff工具统计含bugs的克隆代码和非克隆代码的修改频度,并对克隆代码的稳定性进行评估.对五款不同语言开发的软件系统进行实验,实验结果表明克隆代码修改频度较非克隆代码更少,且引起的bugs严重程度相对较低,同时表明此评估方法的可行性,为克隆代码的管理和维护提供了依据.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号