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

基于版本间克隆映射的演化模式识别及谱系构建
引用本文:张久杰,翟晔,王春晖,张丽萍,刘东升.基于版本间克隆映射的演化模式识别及谱系构建[J].计算机应用,2016,36(7):2021-2030.
作者姓名:张久杰  翟晔  王春晖  张丽萍  刘东升
作者单位:内蒙古师范大学 计算机与信息工程学院, 呼和浩特 010022
基金项目:国家自然科学基金资助项目(61363017,61462071);内蒙古自然科学基金资助项目(2014MS0613,2015MS0606);内蒙古自治区高等学校科学研究项目(NJZY14039,NJZY16046)。
摘    要:针对当前克隆谱系的构建方法较为复杂、演化模式亟需扩充等问题,提出了新的克隆代码演化模式,并根据软件版本间的克隆代码映射关系自动构建了克隆谱系。首先,针对软件每一版本进行克隆检测并利用潜在狄利克雷分配(LDA)抽取克隆代码的主题信息;然后,根据克隆代码主题的相似度确定版本间克隆代码的映射关系;进而,根据已有的映射关系为克隆代码添加演化模式并分析演化特征;最终,结合映射信息与演化模式信息完成克隆谱系的构建。针对4款开源软件进行了克隆谱系的构建实验,实验结果表明所提克隆谱系构建方法可行,证实了新提出的演化模式在克隆代码演化过程中确实存在。实验发现约90%的克隆代码在软件演化过程中比较稳定,约67%的克隆群经历的发布版本数不超过发布版本总数的一半。实验结论及理论分析将为克隆代码的后续研究及克隆代码的维护与管理提供有力支持。

关 键 词:克隆代码  主题建模  软件演化  演化模式  克隆谱系  软件维护  
收稿时间:2016-01-08
修稿时间:2016-03-14

Evolution pattern recognition and genealogy construction based on clone mapping of versions
ZHANG Jiujie,ZHAI Ye,WANG Chunhui,ZHANG Liping,LIU Dongsheng.Evolution pattern recognition and genealogy construction based on clone mapping of versions[J].journal of Computer Applications,2016,36(7):2021-2030.
Authors:ZHANG Jiujie  ZHAI Ye  WANG Chunhui  ZHANG Liping  LIU Dongsheng
Affiliation:College of Computer and Information Engineering, Inner Mongolia Normal University, Hohhot Nei Mongol 010022, China
Abstract:To solve the problems that the method of building clone genealogy is complicated, as well as evolution patterns need urgently expanding, new clone evolution patterns were proposed, and clone genealogy was built automatically based on the mapping relationships of code clones between versions. First, topics of code clones were extracted using Latent Dirichlet Allocation (LDA) from clone detection results in each released software version. Second, mapping relationships of code clones between of versions were confirmed by similarities of the topics. Third, evolution patterns were appended to code clones according to the existing mapping relationships, and evolution features were analyzed. Finally, clone genealogy was built by integrating mapping relationships and evolution patterns together. Experiments of building clone genealogy was conducted on four open source systems. The experimental results show that the proposed approach is feasible, and the proposed evolution patterns really exist in the procedure of software evolution. Further more, it is found that about 90% of code clones in the software systems are stable during evolution, and approximately 67% of clone groups live through less than half of the release versions. The experimental conclusions and relevant analysis provide strongly support for the future research as well as maintenance and management of code clones.
Keywords:code clone  topic modeling  software evolution  evolving pattern  clone genealogy  software maintenance  
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号