首站-论文投稿智能助手
典型文献
Toward an accurate method renaming approach via structural and lexical analyses
文献摘要:
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.
文献关键词:
作者姓名:
Junpeng LUO;Jingxuan ZHANG;Zhiqiu HUANG;Yong XU;Chenxing SUN
作者机构:
College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China;Collaborative Innovation Center of Novel Software Technology and Industrialization,Nanjing 211106,China;Tencent Technology(Shenzhen)Company Limited,Shenzhen 518054,China
引用格式:
[1]Junpeng LUO;Jingxuan ZHANG;Zhiqiu HUANG;Yong XU;Chenxing SUN-.Toward an accurate method renaming approach via structural and lexical analyses)[J].信息与电子工程前沿(英文),2022(05):732-748
A类:
renaming,lexical,buggy,Debugging,noun
B类:
Toward,via,structural,analyses,Methods,programs,must,accurately,named,facilitate,source,code,analysis,comprehension,With,evolution,software,names,may,inconsistent,their,implemented,bodies,leading,inaccurate,remains,important,topic,literature,Although,researchers,have,proposed,several,approaches,once,been,modified,two,drawbacks,solved,there,structure,programming,context,information,not,captured,efficiently,resolve,these,more,we,novel,automated,Our,first,leverages,deep,feature,representation,embed,vectors,Then,obtains,useful,verb,tokens,from,large,corpus,through,Finally,dynamically,combines,recommend,high,quality,project,specific,Experimental,results,over,Java,testing,methods,show,that,can,achieve,Hit,Ratio,outperform,state,art,by,suggesting,We,also,demonstrate,effectiveness
AB值:
0.477463
相似文献
Data-driven design of high-performance MASnxPb1-xI3 perovskite materials by machine learning and experimental realization
Xia Cai;Fengcai Liu;Anran Yu;Jiajun Qin;Mohammad Hatamvand;Irfan Ahmed;Jiayan Luo;Yiming Zhang;Hao Zhang;Yiqiang Zhan-School of Information Science and Technology,Fudan University,Shanghai 200433,China;College of Information,Mechanical and Electrical Engineering,Shanghai Normal University,Shanghai 200234,China;Center of Micro-Nano System,Fudan University,Shanghai 200433,China;Department of Physics,Chemistry and Biology,Link?ping University,Link?ping SE-58183,Sweden;Key Laboratory of Micro and Nano Photonic Structures and Department of Optical Science and Engineering,Fudan University,Shanghai 200433,China;Yiwu Research Institute of Fudan University,Chengbei Road,Yiwu City,Zhejiang 322000,China
Data-driven design of high-performance MASnxPb1-xI3 perovskite materials by machine learning and experimental realization
Xia Cai;Fengcai Liu;Anran Yu;Jiajun Qin;Mohammad Hatamvand;Irfan Ahmed;Jiayan Luo;Yiming Zhang;Hao Zhang;Yiqiang Zhan-School of Information Science and Technology,Fudan University,Shanghai 200433,China;College of Information,Mechanical and Electrical Engineering,Shanghai Normal University,Shanghai 200234,China;Center of Micro-Nano System,Fudan University,Shanghai 200433,China;Department of Physics,Chemistry and Biology,Link?ping University,Link?ping SE-58183,Sweden;Key Laboratory of Micro and Nano Photonic Structures and Department of Optical Science and Engineering,Fudan University,Shanghai 200433,China;Yiwu Research Institute of Fudan University,Chengbei Road,Yiwu City,Zhejiang 322000,China
机标中图分类号,由域田数据科技根据网络公开资料自动分析生成,仅供学习研究参考。