RefDetect: A Multi-Language Refactoring Detection Tool Based on String Alignment

被引:5
|
作者
Moghadam, Iman Hemati [1 ]
Cinneide, Mel O. [2 ]
Zarepour, Faezeh [3 ]
Jahanmir, Mohamad Aref [1 ]
机构
[1] Vali E Asr Univ Rafsanjan, Dept Comp Engn, Rafsanjan 7718897111, Iran
[2] Natl Univ Ireland, Sch Comp Sci, Dublin D04 V1W8, Ireland
[3] Allameh Jafari Inst Rafsanjan, Dept Comp Engn, Rafsanjan 77181, Iran
来源
IEEE ACCESS | 2021年 / 9卷
基金
爱尔兰科学基金会;
关键词
Tools; !text type='Java']Java[!/text; Software; C plus plus languages; Measurement; Unified modeling language; Software algorithms; Refactoring; refactoring detection; alignment algorithm; empirical studies; C plus plus; CODE;
D O I
10.1109/ACCESS.2021.3086689
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Refactoring is performed to improve software quality while leaving the behaviour of the software unchanged. Identifying refactorings applied to a software system is an important activity that leads to a better understanding of the evolution of the software system, and several techniques have been proposed and implemented to address this issue. The vast majority of existing refactoring detection techniques are language-specific, including the accepted state of the art, RMiner, which is exclusively Java-based. Although impressive performance has been achieved to date, there is scope for improvement in refactoring detection and such improvement would enhance both refactoring research and practice. In this paper, we propose a novel, language-neutral technique to identify refactorings in commit histories. Our approach is motivated by a desire to explore the use of string alignment algorithms in refactoring detection, and to determine if such approaches are competitive with the state of the art. The proposed approach has been implemented in a tool called RefDetect, evaluated, and compared with the current state-of-the-art refactoring detection tool: RMiner. In experiments we applied RefDetect to 514 commits of 185 Java applications containing 5,058 true refactoring instances, achieving an f-score slightly better than that achieved by RMiner (87.3% vs. 86%). RefDetect clearly outperformed RMiner in method and class based refactorings, achieving f-scores respectively of 87.7% vs. 81.7% for method-level refactorings and 92.1% vs. 86.9% for class-level refactorings. To demonstrate the language-independence of RefDetect, we conducted a further study with four C++ applications, achieving high values for both precision (96.1%) and recall (94.1%). The achieved results indicate that RefDetect performs better than the current state of the art in refactoring detection and is demonstrably capable of handling different programming languages.
引用
收藏
页码:86698 / 86727
页数:30
相关论文
共 50 条
  • [41] A multi-language goal-tree based functional test planning system
    Mahajan, R
    Govindarajulu, R
    Armstrong, JR
    Gray, FG
    INTERNATIONAL TEST CONFERENCE 2002, PROCEEDINGS, 2002, : 472 - 481
  • [42] MSER Based Text Localization for Multi-language Using Double-Threshold Scheme
    Wiwatcharakoses, Chayut
    Patanukhom, Karn
    2015 1ST INTERNATIONAL CONFERENCE ON INDUSTRIAL NETWORKS AND INTELLIGENT SYSTEMS (INISCOM), 2015, : 62 - 71
  • [43] nMorph Framework: An Innovative Approach to Transpiler-Based Multi-Language Software Development
    Fuertes, Andres Bastidas
    Perez, Maria
    Meza, Jaime
    IEEE ACCESS, 2023, 11 : 124386 - 124429
  • [44] Multi-pipe string electromagnetic detection tool and its applications
    Zhong Xingfu
    Wu Yingxiang
    Li Qiang
    Yao Xiwei
    ICEMI 2007: PROCEEDINGS OF 2007 8TH INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS, VOL IV, 2007, : 423 - 427
  • [45] Parallel Prototyping for Multi-Language Service Design A case study on introducing a multilingual tool into a Japanese local restaurant
    Cho, Hiromichi
    Kinny, David
    Lin, Donghui
    2013 INTERNATIONAL CONFERENCE ON CULTURE AND COMPUTING (CULTURE AND COMPUTING 2013), 2013, : 86 - 91
  • [46] A multi-language writer identification method based on image mining and genetic algorithm techniques
    Mohsen Mohammadi
    Mohsen Ebrahimi Moghaddam
    Shabnam Saadat
    Soft Computing, 2019, 23 : 7655 - 7669
  • [47] Multi-language IoT Information Security Standard Item Matching based on Deep Learning
    Wei, Yu-Chi
    Chang, Yu-Chun
    Wu, Wei-Chen
    COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2024, 21 (02) : 663 - 683
  • [48] Further study on the design of multi-language web CBIR searching engine based on MAS
    Tang, ShiXi
    Wang, WeiLan
    Liu, HuaMing
    Xie, Hui
    ZhuoGa, YangJing
    2006 1ST INTERNATIONAL SYMPOSIUM ON PERVASIVE COMPUTING AND APPLICATIONS, PROCEEDINGS, 2006, : 658 - +
  • [49] A multi-language writer identification method based on image mining and genetic algorithm techniques
    Mohammadi, Mohsen
    Moghaddam, Mohsen Ebrahimi
    Saadat, Shabnam
    SOFT COMPUTING, 2019, 23 (17) : 7655 - 7669
  • [50] Design of multi-language trading system of ethnic characteristic agricultural products based on android
    Wu Huanqin
    Jin Yasheng
    Dai Yugang
    3RD INTERNATIONAL CONFERENCE ON ADVANCES IN ENERGY, ENVIRONMENT AND CHEMICAL ENGINEERING, 2017, 69