###
计算机系统应用英文版:2018,27(9):188-192
本文二维码信息
码上扫一扫!
代码变更中抽取类重构模式的识别
(齐鲁工业大学(山东省科学院) 信息学院, 济南 250353)
Identifying Extract Class Refactoring Patterns from Code Changes
(School of Information, Qilu University of Technology(Shandong Academy of Sciences), Jinan 250353, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1576次   下载 2050
Received:January 21, 2018    
中文摘要: 在现代软件开发和维护中,重构是提高软件可维护性和软件质量的常用手段.而大量重构模式掺杂在日常的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.
文章编号:     中图分类号:    文献标志码:
基金项目:国家自然科学基金(61502259)
引用文本:
孙美荣,杨春花.代码变更中抽取类重构模式的识别.计算机系统应用,2018,27(9):188-192
SUN Mei-Rong,YANG Chun-Hua.Identifying Extract Class Refactoring Patterns from Code Changes.COMPUTER SYSTEMS APPLICATIONS,2018,27(9):188-192