MORCoRA: Multi-Objective Refactoring Recommendation Considering Review Availability

被引:0
|
作者
Chen, Lei [1 ]
Hayashi, Shinpei [1 ]
机构
[1] Tokyo Inst Technol, Sch Comp, Ookayama 2-12-1,Meguro Ku, Tokyo 1528550, Japan
关键词
Search-based software engineering; multi-objective search; refactoring; review availability; NONDOMINATED SORTING APPROACH; GENETIC ALGORITHM; MODEL;
D O I
10.1142/S0218194024500438
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Background: Search-based refactoring involves searching for a sequence of refactorings to achieve specific objectives. Although a typical objective is improving code quality, a different perspective is also required; the searched sequence must undergo review before being applied and may not be applied if the review fails or is postponed due to no proper reviewers. Aim: Therefore, it is essential to ensure that the searched sequence of refactorings can be reviewed promptly by reviewers who meet two criteria: (1) having enough expertise and (2) being free of heavy workload. The two criteria are regarded as the review availability of the refactoring sequence. Method: We propose MORCoRA, a multi-objective search-based technique that can search for code quality improvable, semantic preserved, and high review availability possessed refactoring sequences and corresponding proper reviewers. Results: We evaluate MORCoRA on six open-source repositories. The quantitative analysis reveals that MORCoRA can effectively recommend refactoring sequences that fit the requirements. The qualitative analysis demonstrates that the refactorings recommended by MORCoRA can enhance code quality and effectively address code smells. Furthermore, the recommended reviewers for those refactorings possess high expertise and are available to review. Conclusions: We recommend that refactoring recommenders consider both the impact on quality improvement and the developer resources required for review when recommending refactorings.
引用
收藏
页码:1919 / 1947
页数:29
相关论文
共 50 条
  • [41] On the value of quality attributes for refactoring ATL model transformations: A multi-objective approach
    Alkhazi, Bader
    Abid, Chaima
    Kessentini, Marouane
    Wimmer, Manuel
    INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 120
  • [42] Model refactoring by example: A multi-objective search based software engineering approach
    Ghannem, Adnane
    Kessentini, Marouane
    Hamdi, Mohammad Salah
    El Boussaidi, Ghizlane
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2018, 30 (04)
  • [43] The Use of Development History in Software Refactoring Using a Multi-Objective Evolutionary Algorithm
    Ouni, Ali
    Kessentini, Marouane
    Sahraoui, Houari
    Hamdi, Mohamed Salah
    GECCO'13: PROCEEDINGS OF THE 2013 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2013, : 1461 - 1468
  • [44] Multi-view refactoring of class and activity diagrams using a multi-objective evolutionary algorithm
    Mansoor, Usman
    Kessentini, Marouane
    Wimmer, Manuel
    Deb, Kalyanmoy
    SOFTWARE QUALITY JOURNAL, 2017, 25 (02) : 473 - 501
  • [45] Multi-view refactoring of class and activity diagrams using a multi-objective evolutionary algorithm
    Usman Mansoor
    Marouane Kessentini
    Manuel Wimmer
    Kalyanmoy Deb
    Software Quality Journal, 2017, 25 : 473 - 501
  • [46] M-RS: A Systematic Literature Review on Multi-Objective Optimization along with Recommendation System
    Bin Muzammil, Muteeb
    Ajmal, Sahar
    Javed, Shahzeb
    Tariq, Arsalan
    Iqbal, Umer
    2021 7TH INTERNATIONAL CONFERENCE ON ENGINEERING AND EMERGING TECHNOLOGIES (ICEET 2021), 2021, : 573 - 580
  • [47] Multi-objective contextual bandits in recommendation systems for smart tourism
    Sara Qassimi
    Said Rakrak
    Scientific Reports, 15 (1)
  • [48] Multi-objective optimization of operation loop recommendation for kill web
    YANG Kewei
    XIA Boyuan
    CHEN Gang
    YANG Zhiwei
    LI Minghao
    Journal of Systems Engineering and Electronics, 2022, 33 (04) : 969 - 985
  • [49] Explainable recommendation based on knowledge graph and multi-objective optimization
    Xie, Lijie
    Hu, Zhaoming
    Cai, Xingjuan
    Zhang, Wensheng
    Chen, Jinjun
    COMPLEX & INTELLIGENT SYSTEMS, 2021, 7 (03) : 1241 - 1252
  • [50] Multi-objective optimization of operation loop recommendation for kill web
    Yang, Kewei
    Xia, Boyuan
    Chen, Gang
    Yang, Zhiwei
    Li, Minghao
    Journal of Systems Engineering and Electronics, 2022, 33 (04) : 969 - 985