arrow
返回

Automated variable renaming: are we there yet?

delete2023-02-14
delete4
delete
OA
AI
A
Antonio Mastropaolo *
E
Emad Aghajani
L
Luca Pascarella
G
Gabriele Bavota
DOI:10.1007/s10664-022-10274-8delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Identifiers, such as method and variable names, form a large portion of source code. Therefore, low-quality identifiers can substantially hinder code comprehension. To support developers in using meaningful identifiers, several (semi-)automatic techniques have been proposed, mostly being data-driven (e.g., statistical language models, deep learning models) or relying on static code analysis. Still, limited empirical investigations have been performed on the effectiveness of such techniques for recommending developers with meaningful identifiers, possibly resulting in rename refactoring operations. We present a large-scale study investigating the potential of data-driven approaches to support automated variable renaming. We experiment with three state-of-the-art techniques: a statistical language model and two DL-based models. The three approaches have been trained and tested on three datasets we built with the goal of evaluating their ability to recommend meaningful variable identifiers. Our quantitative and qualitative analyses show the potential of such techniques that, under specific conditions, can provide valuable recommendations and are ready to be integrated in rename refactoring tools. Nonetheless, our results also highlight limitations of the experimented approaches that call for further research in this field.
Keyword:
Code comprehension
Empirical Study
Machine learning on code

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
Universita della Svizzera Italiana
学者数:
3.3K
论文数: 2.8K
被引数: 3
引用论文

引用论文

err分享
err收藏
?-1,4-Glucosidase activity in infertile oligoasthenozoospermic men with and without varicocele
err2007-02-01
err0
errOAAI
errM. M. F. Roaiah; T. Mostafa; D. Salem; A. R. El-Nashar; I. I. Kamel; M. S. El-Kashlan
err分享
err收藏
Intelligent Code Completion with Bayesian Networks
err2015-12-02
err54
PREAI
errProksch, Sebastian; Lerch, Johannes; Mezini, Mira
err分享
err收藏
Effect of tea consumption on oxidative stress and expression of DNA repair genes among metal press workers exposed to occupational noise
err2021-01-22
err0
errOAAI
errZahra Panjali; Behjat Jafari-Tehrani; Thomas Münzel; Omar Hahad; Mozhgan Tansaz; Mansoureh Hamidi; Behnam Hajipour-Verdom; Rezvan Zendehdel
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容