Paper published in a book (Scientific congresses, symposiums and conference proceedings)
Learning to Spot and Refactor Inconsistent Method Names
Liu, Kui; Kim, Dongsun; Bissyande, Tegawendé François D Assise et al.
2019In 41st ACM/IEEE International Conference on Software Engineering (ICSE)
Peer reviewed
 

Files


Full Text
camera-ready-version.pdf
Author preprint (1.15 MB)
Download

All documents in ORBilu are protected by a user license.

Send to



Details



Keywords :
Code refactoring; inconsistent method names; deep learning; code embedding
Abstract :
[en] To ensure code readability and facilitate software maintenance, program methods must be named properly. In particular, method names must be consistent with the corresponding method implementations. Debugging method names remains an important topic in the literature, where various approaches analyze commonalities among method names in a large dataset to detect inconsistent method names and suggest better ones. We note that the state-of-the-art does not analyze the implemented code itself to assess consistency. We thus propose a novel automated approach to debugging method names based on the analysis of consistency between method names and method code. The approach leverages deep feature representation techniques adapted to the nature of each artifact. Experimental results on over 2.1 million Java methods show that we can achieve up to 15 percentage points improvement over the state-of-the-art, establishing a record performance of 67.9% F1-measure in identifying inconsistent method names. We further demonstrate that our approach yields up to 25% accuracy in suggesting full names, while the state-of-the-art lags far behind at 1.1% accuracy. Finally, we report on our success in fixing 66 inconsistent method names in a live study on projects in the wild.
Research center :
Interdisciplinary Centre for Security, Reliability and Trust (SnT) > Security Design and Validation Research Group (SerVal)
Disciplines :
Computer science
Author, co-author :
Liu, Kui ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
Kim, Dongsun
Bissyande, Tegawendé François D Assise  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
Kim, Taeyoung
Kim, Kisub ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
Koyuncu, Anil ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
Kim, Suntae
Le Traon, Yves ;  University of Luxembourg > Faculty of Science, Technology and Communication (FSTC) > Computer Science and Communications Research Unit (CSC)
External co-authors :
yes
Language :
English
Title :
Learning to Spot and Refactor Inconsistent Method Names
Publication date :
May 2019
Event name :
41st ACM/IEEE International Conference on Software Engineering
Event date :
from 25-05-2019 to 31-05-2019
Audience :
International
Main work title :
41st ACM/IEEE International Conference on Software Engineering (ICSE)
Publisher :
IEEE, Montreal, Canada
Peer reviewed :
Peer reviewed
FnR Project :
FNR10449467 - Automatic Bug Fix Recommendation: Improving Software Repair And Reducing Time-to-fix Delays In Software Development Projects, 2015 (01/02/2016-31/01/2019) - Tegawendé François D'assise Bissyandé
Funders :
FNR - Fonds National de la Recherche [LU]
Available on ORBilu :
since 12 March 2019

Statistics


Number of views
312 (22 by Unilu)
Number of downloads
981 (19 by Unilu)

Scopus citations®
 
87
Scopus citations®
without self-citations
75

Bibliography


Similar publications



Contact ORBilu