arrow
Return

Generating class name in sequential manner using convolution attentionneural network

delete2022-08-01
delete1
PRE
AI
S
Sawan Rai *
R
Ramesh Chandra Belwal
A
Atul Gupta
DOI:10.1016/j.eswa.2022.116854delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Software code comprehension is strongly dependent on identifier names; therefore, software developers spenda lot of time assigning suitable names to identifiers. Manually suggesting a good name is a time takingand hard problem for developers. For automatic identifiers name recommendation, various techniques havebeen proposed. Most of the work has been done for method name prediction. We found very few researchworks on class name recommendation. A good class name communicates the class's intent, whereas bad onescreate confusion and frustration in the developer's mind. In this paper, we first analyze the existing classname recommendation approach for dynamically typed language. In this approach, we represent the natureor behavior of python classes in quantitative form using the embedding concept for heterogeneous graphs.Next, we use these embeddings to suggest class names. The first approach can only suggest the existing classnames. Therefore, we propose a new approach, which is based on the convolution attention model. In the newapproach, we try to generate class name as a token sequence, instead of whole class name at once. We use twovariants of the attention mechanism: simple attention and copy attention. Copy attention based model is ableto predict out-of-vocab tokens during prediction. Experimental results suggest that the convolution attentionmodel can predict accurate class name tokens.
Keywords:
Class name
Source code
Graph embeddings
Recommendation
Convolution network
Name prediction

Journal

Expert Systems with Applications cover
Expert Systems with Applications
IF:
7.5
Papers:
2.9W
Citations:
10.2W

Organization

Cited Papers

Cited Papers

The Puerto Rico Gap Analysis Project Volume 1: land cover, vertebrate species distributions, and land stewardship
err
IF0
err2008-01-01
err0
errOAAI
errW. A. Gould; C. Alarcon; B. Fevold; M.E. Jimenez; S. Martinuzzi; G. Potts; M. Quinones; M. Solórzano; E. Ventosa
errShare
errSave
A Critical Role for Purinergic Signalling in the Mechanisms Underlying Generation of BOLD fMRI Responses
err2015-04-01
err0
errOAAI
errJack A. Wells; Isabel N. Christie; Patrick S. Hosford; Robert T.R. Huckstepp; Plamena R. Angelova; Pirkko Vihko; Simon C. Cork; Andrey Y. Abramov; Anja G. Teschemacher; Sergey Kasparov; Mark F. Lythgoe; Alexander V. Gourine
errShare
errSave
errShare
errSave
Influence of the Total Porosity on the Properties of Sintered Materials—A Review
err2021-04-28
err0
errOAAI
errFátima Ternero; Luís Guerra Rosa; Petr Urban; Juan Manuel Montes; Francisco G. Cuevas
errShare
errSave
Linguistic antipatterns: what they are and how developers perceive them
err2015-01-29
err86
PREAI
errArnaoudova, Venera; Di Penta, Massimiliano; Antoniol, Giuliano
errShare
errSave
no more