Toward an accurate method renaming approach via structural and lexical analyses
Toward an accurate method renaming approach via structural and lexical analyses
复制标题
通过结构和词法分析实现准确的方法重命名方法
DOI:
10.1631/fitee.2100470
复制
发表时间:
2022-05
影响因子:
3
通讯作者:
Chenxing Sun
中科院分区:
文献类型:
--
作者:
Junpeng Luo;Jingxuan Zhang;Zhiqiu Huang;Yong Xu;Chenxing Sun
Methods in programs must be accurately named to facilitate source code analysis and comprehension.With the evolution of software,method names may be inconsistent with their implemented method bodies,leading to inaccurate or buggy method names.Debugging method names remains an important topic in the literature.Although researchers have proposed several approaches to suggest accurate method names once the method bodies have been modified,two main drawbacks remain to be solved:there is no analysis of method name structure,and the programming context information is not captured efficiently.To resolve these drawbacks and suggest more accurate method names,we propose a novel automated approach based on the analysis of the method name structure and lexical analysis with the programming context information.Our approach first leverages deep feature representation to embed method names and method bodies in vectors.Then,it obtains useful verb-tokens from a large method corpus through structural analysis and noun-tokens from method bodies through lexical analysis.Finally,our approach dynamically combines these tokens to form and recommend high-quality and project-specific method names.Experimental results over 2111 Java testing methods show that the proposed approach can achieve a Hit Ratio,or Hit@5,of 33.62% and outperform the state-of-the-art approach by 14.12% in suggesting accurate method names.We also demonstrate the effectiveness of structural and lexical analyses in our approach.
登录
查看更多内容
影响因子:
4.1
作者:
Suntae Kim;Dongsun Kim
通讯作者:
Suntae Kim;Dongsun Kim
影响因子:
7.4
作者:
Venera Arnaoudova;L. Eshkevari;M. D. Penta;Rocco Oliveto;G. Antoniol;Yann-Gaël Guéhéneuc
通讯作者:
Venera Arnaoudova;L. Eshkevari;M. D. Penta;Rocco Oliveto;G. Antoniol;Yann-Gaël Guéhéneuc
DOI:
10.1109/msr.2013.6624056
发表时间:
2013-05
期刊:
2013 10th Working Conference on Mining Software Repositories (MSR)
影响因子:
--
作者:
Simon Butler;M. Wermelinger;Y. Yu;H. Sharp
通讯作者:
Simon Butler;M. Wermelinger;Y. Yu;H. Sharp
DOI:
10.1007/978-3-642-35527-1_20
发表时间:
2012-12
期刊:
--
影响因子:
--
作者:
Shusi Yu;Ruichang Zhang;J. Guan
通讯作者:
Shusi Yu;Ruichang Zhang;J. Guan
DOI:
10.1109/icsm.2011.6080776
发表时间:
2011-09
期刊:
2011 27th IEEE International Conference on Software Maintenance (ICSM)
影响因子:
--
作者:
Simon Butler;M. Wermelinger;Y. Yu;H. Sharp
通讯作者:
Simon Butler;M. Wermelinger;Y. Yu;H. Sharp