Methodbook: Recommending Move Method Refactorings via Relational Topic Models

被引:111
|
作者
Bavota, Gabriele [1 ]
Oliveto, Rocco [2 ,3 ]
Gethers, Malcom [4 ]
Poshyvanyk, Denys [5 ]
De Lucia, Andrea [6 ]
机构
[1] Univ Sannio, Dept Engn, Benevento, Italy
[2] Univ Molise, Dept Biosci & Terr, Pesche, IS, Italy
[3] Univ Molise, Lab Comp Sci & Sci Computat, Pesche, IS, Italy
[4] Univ Maryland Baltimore Cty, Dept Informat Syst, Baltimore, MD 21250 USA
[5] Coll William & Mary, Williamsburg, VA 23185 USA
[6] Univ Salerno, Dept Management & Informat Technol, Fisciano, SA, Italy
关键词
Refactoring; relational topic models; empirical studies; COHESION; VALIDATION; METRICS;
D O I
10.1109/TSE.2013.60
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
During software maintenance and evolution the internal structure of the software system undergoes continuous changes. These modifications drift the source code away from its original design, thus deteriorating its quality, including cohesion and coupling of classes. Several refactoring methods have been proposed to overcome this problem. In this paper we propose a novel technique to identify Move Method refactoring opportunities and remove the Feature Envy bad smell from source code. Our approach, coined as Methodbook, is based on relational topic models (RTM), a probabilistic technique for representing and modeling topics, documents (in our case methods) and known relationships among these. Methodbook uses RTM to analyze both structural and textual information gleaned from software to better support move method refactoring. We evaluated Methodbook in two case studies. The first study has been executed on six software systems to analyze if the move method operations suggested by Methodbook help to improve the design quality of the systems as captured by quality metrics. The second study has been conducted with eighty developers that evaluated the refactoring recommendations produced by Methodbook. The achieved results indicate that Methodbook provides accurate and meaningful recommendations for move method refactoring operations.
引用
收藏
页码:671 / 694
页数:24
相关论文
共 50 条
  • [21] Prediction Focused Topic Models via Feature Selection
    Ren, Jason
    Kunes, Russell
    Doshi-Velez, Finale
    INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 108, 2020, 108 : 4420 - 4428
  • [22] Model Selection for Topic Models via Spectral Decomposition
    Cheng, Dehua
    He, Xinran
    Liu, Yan
    ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 38, 2015, 38 : 183 - 191
  • [23] Towards Privacy-Preserving Relational Data Synthesis via Probabilistic Relational Models
    Luttermann, Malte
    Moeller, Ralf
    Hartwig, Mattis
    KI 2024: ADVANCES IN ARTIFICIAL INTELLIGENCE, KI 2024, 2024, 14992 : 175 - 189
  • [24] Evaluating Tag Quality for Blogger Modelling via Topic Models
    Shan, Lili
    Sun, Chengjie
    Lin, Lei
    Liu, Ming
    Wang, Xiaolong
    Liu, Bingquan
    2015 12TH INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS AND KNOWLEDGE DISCOVERY (FSKD), 2015, : 1770 - 1776
  • [25] Learning graphical models for relational data via lattice search
    Schulte, Oliver
    Khosravi, Hassan
    MACHINE LEARNING, 2012, 88 (03) : 331 - 368
  • [26] Learning graphical models for relational data via lattice search
    Oliver Schulte
    Hassan Khosravi
    Machine Learning, 2012, 88 : 331 - 368
  • [27] Method of Moments for Topic Models with Mixed Discrete and Continuous Features
    Giesen, Joachim
    Kahlmeyer, Paul
    Laue, Soeren
    Mitterreiter, Matthias
    Nussbaum, Frank
    Staudt, Christoph
    Zarriess, Sina
    PROCEEDINGS OF THE THIRTIETH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2021, 2021, : 2418 - 2424
  • [28] A Flexible Stochastic Method for Solving the MAP Problem in Topic Models
    Tu Vu
    Xuan Bui
    Khoat Than
    Ichise, Ryutaro
    COMPUTACION Y SISTEMAS, 2018, 22 (04): : 1317 - 1327
  • [29] A method of refining topic models based on term and document frequencies
    Higashi K.
    Takahashi H.
    Nakagawa H.
    Tsuchiya T.
    Computer Software, 2019, 36 (04) : 25 - 31
  • [30] CoTE: A Flexible Method for Joint Learning of Topic and Embedding Models
    Zhao, Bo
    Yuan, Chunfeng
    Huang, Yihua
    WEB AND BIG DATA, PT IV, APWEB-WAIM 2023, 2024, 14334 : 406 - 421