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 条
  • [41] Transfer Knowledge via Relational K-Means Method
    Zhang, Peng
    Zhang, Lingling
    Nie, Guangli
    Zhang, Yuejin
    Shi, Yong
    2009 INTERNATIONAL CONFERENCE ON BUSINESS INTELLIGENCE AND FINANCIAL ENGINEERING, PROCEEDINGS, 2009, : 656 - 659
  • [42] A new method for mining information of gut microbiome with probabilistic topic models
    Xin Xiong
    Minrui Li
    Yuyan Ren
    Xusheng Yao
    Yuhui Du
    Qingsong Huang
    Xiangyang Kong
    Jianfeng He
    Multimedia Tools and Applications, 2023, 82 : 16081 - 16104
  • [43] A new method for mining information of gut microbiome with probabilistic topic models
    Xiong, Xin
    Li, Minrui
    Ren, Yuyan
    Yao, Xusheng
    Du, Yuhui
    Huang, Qingsong
    Kong, Xiangyang
    He, Jianfeng
    MULTIMEDIA TOOLS AND APPLICATIONS, 2023, 82 (11) : 16081 - 16104
  • [44] Topic Models: A Novel Method for Modeling Couple and Family Text Data
    Atkins, David C.
    Rubin, Timothy N.
    Steyvers, Mark
    Doeden, Michelle A.
    Baucom, Brian R.
    Christensen, Andrew
    JOURNAL OF FAMILY PSYCHOLOGY, 2012, 26 (05) : 816 - 827
  • [45] GeneTopics - interpretation of gene sets via literature-driven topic models
    Wang, Vicky
    Xi, Li
    Enayetallah, Ahmed
    Fauman, Eric
    Ziemek, Daniel
    BMC SYSTEMS BIOLOGY, 2013, 7
  • [46] Analyzing LDA and NMF Topic Models for Urdu Tweets via Automatic Labeling
    Zoya
    Latif, Seemab
    Shafait, Faisal
    Latif, Rabia
    IEEE ACCESS, 2021, 9 : 127531 - 127547
  • [47] Improving LDA Topic Models for Microblogs via Tweet Pooling and Automatic Labeling
    Mehrotra, Rishabh
    Sanner, Scott
    Buntine, Wray
    Xie, Lexing
    SIGIR'13: THE PROCEEDINGS OF THE 36TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH & DEVELOPMENT IN INFORMATION RETRIEVAL, 2013, : 889 - 892
  • [48] A Topic-Sensitive Method for Mashup Tag Recommendation Utilizing Multi-Relational Service Data
    Shi, Min
    Liu, Jianxun
    Zhou, Dong
    Tang, Yufei
    IEEE TRANSACTIONS ON SERVICES COMPUTING, 2021, 14 (02) : 342 - 355
  • [49] Text classification method based on self-training and LDA topic models
    Pavlinek, Miha
    Podgorelec, Vili
    EXPERT SYSTEMS WITH APPLICATIONS, 2017, 80 : 83 - 93
  • [50] A method of query expansion based on topic models and user profile for search in folksonomy
    Gou, Zhinan
    Li, Yan
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2021, 41 (01) : 1701 - 1711