MIRROR: multi-objective refactoring recommendation via correlation analysis

被引:0
|
作者
Yang Zhang
Ke Guan
Lining Fang
机构
[1] Hebei University of Science and Technology,School of Information Science and Engineering
[2] Hebei Technology Innovation Center of Intelligent IoT,undefined
来源
关键词
Refactoring; Multi-objective optimization; Refactoring recommendation; Correlation analysis;
D O I
暂无
中图分类号
学科分类号
摘要
Refactoring is a critical but complex process to improve code quality by altering software structure without changing the observable behavior. Search-based approaches have been proposed to recommend refactoring solutions. However, existing works tend to leverage all the sub-attributes in an objective and ignore the relationship between the sub-attributes. Furthermore, the types of refactoring operations in the existing works can be further augmented. To this end, this paper proposes a novel approach, called MIRROR, to recommend refactoring by employing a multi-objective optimization across three objectives: (i) improving quality, (ii) removing code smell, and (iii) maximizing the similarity to refactoring history. Unlike previous works, MIRROR provides a way to further optimize attributes in each objective. To be more specific, given an objective, MIRROR investigates the possible correlations among attributes and selects those attributes with low correlations as the representation of this objective. MIRROR is evaluated on 6 real-world projects by answering 6 research questions. The experimental results demonstrate that MIRROR recommends an average of 43 solutions for each project. Furthermore, we compare MIRROR against existing tools JMove and QMove, and show that the F1 of MIRROR is 5.63% and 3.75% higher than that of JMove and QMove, demonstrating the effectiveness of MIRROR.
引用
收藏
相关论文
共 50 条
  • [21] Identification of Web Service Refactoring Opportunities as a Multi-Objective Problem
    Wang, Hanzhang
    Ouni, Ali
    Kessentini, Marouane
    Maxim, Bruce
    Grosky, William I.
    2016 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS), 2016, : 586 - 593
  • [22] The Optimal Refactoring Selection Problem - A Multi-Objective Evolutionary Approach
    Chisalita-Cretu, Camelia
    PROCEEDINGS OF THE 5TH INTERNATIONAL CONFERENCE ON VIRTUAL LEARNING, ICVL 2010, 2010, : 410 - 417
  • [23] Multi-objective optimization for long tail recommendation
    Wang, Shanfeng
    Gong, Maoguo
    Li, Haoliang
    Yang, Junwei
    KNOWLEDGE-BASED SYSTEMS, 2016, 104 : 145 - 155
  • [24] Personalised Multi-Objective Travel Route Recommendation Based on Super Multi-Objective Optimization Algorithm
    Zhang, Xiang-Rong
    Wang, Xue-Ying
    Ebara, Takeshi
    Journal of Network Intelligence, 2024, 9 (03): : 1625 - 1640
  • [25] On the impact of Performance Antipatterns in multi-objective software model refactoring optimization
    Cortellessa, Vittorio
    Di Pompeo, Daniele
    Stoico, Vincenzo
    Tucci, Michele
    2021 47TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2021), 2021, : 224 - 233
  • [26] Multi-Objective Optimization Techniques for Software Refactoring: A Systematic Literature Review
    Rafique, Muhammad Zaid
    Alam, Khubaib Amjab
    Iqbal, Umer
    2019 13TH INTERNATIONAL CONFERENCE ON MATHEMATICS, ACTUARIAL SCIENCE, COMPUTER SCIENCE AND STATISTICS (MACS-13), 2019,
  • [27] A robust multi-objective approach to balance severity and importance of refactoring opportunities
    Mkaouer, Mohamed Wiem
    Kessentini, Marouane
    Cinneide, Mel O.
    Hayashi, Shinpei
    Deb, Kalyanmoy
    EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (02) : 894 - 927
  • [28] A robust multi-objective approach to balance severity and importance of refactoring opportunities
    Mohamed Wiem Mkaouer
    Marouane Kessentini
    Mel Ó Cinnéide
    Shinpei Hayashi
    Kalyanmoy Deb
    Empirical Software Engineering, 2017, 22 : 894 - 927
  • [29] Analyzing the sensitivity of multi-objective software architecture refactoring to configuration characteristics
    Cortellessa, Vittorio
    Di Pompeo, Daniele
    INFORMATION AND SOFTWARE TECHNOLOGY, 2021, 135
  • [30] Revisit Targeted Model Poisoning on Federated Recommendation: Optimize via Multi-objective Transport
    Su, Jiajie
    Chen, Chaochao
    Liu, Weiming
    Lin, Zibin
    Shen, Shuheng
    Wang, Weiqiang
    Zheng, Xiaolin
    PROCEEDINGS OF THE 47TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, SIGIR 2024, 2024, : 1722 - 1732