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 条
  • [31] Multi-objective uncertain project selection considering synergy
    Huang, Xiaoxia
    Hong, Kwon Ryong
    Kim, Jang Su
    Choe, Il Jong
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2022, 13 (08) : 2383 - 2402
  • [32] 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
  • [33] Multi-objective Distribution Network Planning Considering Invulnerability
    Chen, Jueyu
    Peng, Minfang
    Gao, Xiang
    Li, Guangming
    PROCEEDINGS OF 2017 IEEE 2ND INFORMATION TECHNOLOGY, NETWORKING, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (ITNEC), 2017, : 888 - 891
  • [34] Multi-Objective Model Updating Optimization Considering Orthogonality
    Warwick, Braden T.
    Kim, Il Yong
    Mechefske, Chris K.
    JOURNAL OF COMPUTATIONAL AND NONLINEAR DYNAMICS, 2019, 14 (06):
  • [35] Multi-objective optimization of cordon sanitaire considering operation cost and queueing equity
    Lin, Hong-Zhi
    Zhang, Yongping
    TRANSPORTATION LETTERS-THE INTERNATIONAL JOURNAL OF TRANSPORTATION RESEARCH, 2023, 15 (10): : 1289 - 1299
  • [36] Designing an Integrated Multi-objective Supply Chain Network Considering Volume Flexibility
    Shahparvari, Shahrooz
    Chiniforooshan, Payam
    Abareshi, Ahmad
    WORLD CONGRESS ON ENGINEERING AND COMPUTER SCIENCE, WCECS 2013, VOL II, 2013, Ao, : 1168 - +
  • [37] Multi-objective open shop scheduling by considering human error and preventive maintenance
    Sheikhalishahi, M.
    Eskandari, N.
    Mashayekhi, A.
    Azadeh, A.
    APPLIED MATHEMATICAL MODELLING, 2019, 67 : 573 - 587
  • [38] Multi-Objective Sizing Optimization Method of Microgrid Considering Cost and Carbon Emissions
    Zhu, Xiang
    Ruan, Guangchun
    Geng, Hua
    Liu, Honghai
    Bai, Mingfei
    Peng, Chao
    IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, 2024, 60 (04) : 5565 - 5576
  • [39] Multi-objective transmission expansion planning considering minimization of curtailed wind energy
    Ugranli, Faruk
    Karatepe, Engin
    INTERNATIONAL JOURNAL OF ELECTRICAL POWER & ENERGY SYSTEMS, 2015, 65 : 348 - 356
  • [40] A Niching Multi-objective Harmony Search Algorithm for Multimodal Multi-objective Problems
    Qu, B. Y.
    Li, G. S.
    Guo, Q. Q.
    Yan, L.
    Chai, X. Z.
    Guo, Z. Q.
    2019 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2019, : 1267 - 1274