代码变更中抽取类重构模式的识别
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金(61502259)


Identifying Extract Class Refactoring Patterns from Code Changes
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    在现代软件开发和维护中,重构是提高软件可维护性和软件质量的常用手段.而大量重构模式掺杂在日常的bug修复、功能增加等代码变更中,使得变更理解变得非常复杂.识别重构模式可以将重构与其它类型的代码变更隔离,利于变更理解.目前在识别重构模式的相关研究中,并没有结合变更类型和相似性比较的识别重构模式的方法及工具.为此,提出了一种基于细粒度变更类型和文本相似性比较识别重构模式的方法.将该方法应用于抽取类重构模式,并在4个开源项目中进行了实验,其平均准确率在82.6%左右.

    Abstract:

    Refactoring is a common way of improving software maintainability and software quality in modern software development and maintenance. In daily revision, refactoring patterns usually mix with code changes accomplishing other tasks such as bug fixing and feature addition, which makes the change understanding very complicated. It facilitates changes understanding to identify refactoring patterns that can isolate refactoring from other types of code changes. As far as I am concerned, there is no method and tool which have been proposed to identify code refactoring by code change types and similarity comparison. We proposed An identifying algorithm for refactoring patterns, based on fine-grained changes type and text similarity. The algorithm is used for refactoring patterns of extract class. The algorithm has been tested on 4 open source projects, with an average 82.6% accuracy.

    参考文献
    相似文献
    引证文献
引用本文

孙美荣,杨春花.代码变更中抽取类重构模式的识别.计算机系统应用,2018,27(9):188-192

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2018-01-21
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2018-08-17
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号