A Two-phase Recommendation Framework for Consistent Java Method Names

01/24/2022
by   Weidong Wang, et al.
0

In software engineering (SE) tasks, the naming approach is so important that it attracts many scholars from all over the world to study how to improve the quality of method names. To accurately recommend method names, we employ a novel framework to handle this problem. In our expeirments, nearly 8 million Java methods are collected from open source organizations as our evaluation dataset. In the first-phase recommendation, we introduce a fast and simple classifier based on the fast text neural network for reccomending potential method category. In the second-phase recomendation, we employ both two Long Short Term Memory Networks to reccomend consitent method names from each classification. Evaluation results prove that the proposed approach significantly outperforms state-of-the-art approach.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/28/2022

Understanding Digits in Identifier Names: An Exploratory Study

Before any software maintenance can occur, developers must read the iden...
research
07/22/2017

Predicting the Gender of Indonesian Names

We investigated a way to predict the gender of a name using character-le...
research
08/24/2023

How are We Detecting Inconsistent Method Names? An Empirical Study from Code Review Perspective

Proper naming of methods can make program code easier to understand, and...
research
04/06/2020

Embedding Java Classes with code2vec: Improvements from Variable Obfuscation

Automatic source code analysis in key areas of software engineering, suc...
research
07/12/2019

Mercem: Method Name Recommendation Based on Call Graph Embedding

Comprehensibility of source code is strongly affected by identifier name...
research
08/25/2021

Recommending Extract Method Refactoring Based on Confidence of Predicted Method Name

Refactoring is an important activity that is frequently performed in sof...
research
01/03/2022

'Moving On' – Investigating Inventors' Ethnic Origins Using Supervised Learning

Patent data provides rich information about technical inventions, but do...

Please sign up or login with your details

Forgot password? Click here to reset