arrow
Return

Pre-implementation Method Name Prediction for Object-oriented Programming

delete2023-09-29
delete0
PRE
AI
S
Shangwen Wang
文
文明 (Ming Wen) *
B
Bo Lin *
Y
Yepang Liu
T
Tegawendé F. Bissyandé
X
Xiaoguang Mao
DOI:10.1145/3597203delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Method naming is a challenging development task in object-oriented programming. In recent years, several research efforts have been undertaken to provide automated tool support for assisting developers in this task. In general, literature approaches assume the availability of method implementation to infer its name. Methods, however, are usually named before their implementations. In this work, we fill the gap in the literature about method name prediction by developing an approach that predicts the names of all methods to be implemented within a class. Our work considers the class name as the input: The overall intuition is that classes with semantically similar names tend to provide similar functionalities, and hence similar method names. We first conduct a large-scale empirical analysis on 258K+ classes from real-world projects to validate our hypotheses. Then, we propose a hybrid big code-driven approach, Mario, to predict method names based on the class name: We combine a deep learning model with heuristics summarized from code analysis. Extensive experiments on 22K+ classes yielded promising results: compared to the state-of-the-art code2seq model (which leverages method implementation data), our approach achieves comparable results in terms of F-score at token-level prediction; our approach, additionally, outperforms code2seq in prediction at the name level. We further show that our approach significantly outperforms several other baselines.
Keywords:
Method name prediction
naming convention
A hybrid code representation learning approach for predicting method names
err2021-10-01
err6
PREAI
errZhang, Fengyi; Chen, Bihuan; Li, Rongfan; Peng, Xin
errShare
errSave
Shortening Overlong Method Names with Abbreviations
err2024-11-22
err0
PREAI
errJiang, Yanjie; Liu, Hui; Cheung, Shing Chi; Zhang, Lu
errShare
errSave
A boosted-trees method for name disambiguation
err2012-02-29
err130
PREAI
errWang, Jian; Berzins, Kaspars; Hicks, Diana; Melkers, Julia; Xiao, Fang; Pinheiro, Diogo
errShare
errSave
A named entity topic model for news popularity prediction
err2020-11-01
err12
PREAI
errYang, Yang; Liu, Yang; Lu, Xiaoling; Xu, Jin; Wang, Feifei
errShare
errSave
Timed action and object naming
errCORTEX
IF3.3
err2005-01-01
err194
PREAI
errSzekely, A; D'Amicol, S; Devescovi, A; Federmeier, K; Herron, D; Iyer, G; Jacobsen, T; Arévalo, AL; Vargha, A; Bates, E
errShare
errSave
Lightweight Named Object: An ICN-Based Abstraction for IoT Device Programming and Management
err2019-06-01
err21
PREAI
errBracciale, Lorenzo; Loreti, Pierpaolo; Detti, Andrea; Paolillo, Riccardo; Melazzi, Nicola Blefari
errShare
errSave
Neural correlates of object and action naming practice
errCORTEX
IF3.3
err2020-10-01
err5
errOAAI
errDelikishkina, Ekaterina; Lingnau, Angelika; Miceli, Gabriele
errShare
errSave
Conduction Aphasia with Intact Visual Object Naming
err2014-06-01
err8
PREAI
errPandey, Ajay Kumar; Heilman, Kenneth M.
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

U
university of luxembourg
Scholars:
457
Papers: 209
Citations: 4.2K
N
national university of defense technology - china
Scholars:
1.8W
Papers: 1.4W
Citations: 1.7W
Cited Papers

Cited Papers

Homeobox Gene Involvement in Normal Hematopoiesis and in the Pathogenesis of Childhood Leukemias
err2017-01-01
err0
PREAI
errMaria Adamaki; Maria Goulielmaki; Ioannis Christodoulou; Spiros Vlahopoulos; Vassilis Zoumpourlis
errShare
errSave
errShare
errSave
The impact of identifier style on effort and comprehension
err2012-05-03
err113
PREAI
errBinkley, Dave; Davis, Marcia; Lawrie, Dawn; Maletic, Jonathan I.; Morrell, Christopher; Sharif, Bonita
errShare
errSave
errShare
errSave
High-Throughput Liquid Chromatography–Tandem Mass Spectrometry Quantification of Glycosaminoglycans as Biomarkers of Mucopolysaccharidosis II
err2020-07-30
err0
errOAAI
errJunhua Wang; Akhil Bhalla; Julie C. Ullman; Meng Fang; Ritesh Ravi; Annie Arguello; Elliot Thomsen; Buyankhishig Tsogtbaatar; Jing L. Guo; Lukas L. Skuja; Jason C. Dugas; Sonnet S. Davis; Suresh B. Poda; Kannan Gunasekaran; Simona Costanzo; Zachary K. Sweeney; Anastasia G. Henry; Jeffrey M. Harris; Kirk R. Henne; Giuseppe Astarita
errShare
errSave
researcher View more