Empirical study of abnormality in local variables and its application to fault‐prone Java method analysis
Empirical study of abnormality in local variables and its application to fault‐prone Java method analysis
复制标题
局部变量异常的实证研究及其在易错Java方法分析中的应用
DOI:
10.1002/smr.2220
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Kawahara Minoru
中科院分区:
文献类型:
--
作者:
Aman Hirohisa;Amasaki Sousuke;Yokogawa Tomoyuki;Kawahara Minoru
Programmers are familiar with local variables, and in many cases, they can freely define the local variables they use. Thus, the properties of these variables are widely diverse, and this may cause variations in the quality of code. Although variables are named in accordance with coding conventions, the following matters have not received much attention from an empirical viewpoint: automatically deciding whether a local variable is “abnormal” and determining the harmful effect of an abnormal variable. This study focuses on the trends in the name, type, and scope of local variables, then proposes the use of the Mahalanobis distance to evaluate their abnormality. The empirical study entailed collecting local variables from eight open‐source software projects, and the paper reports the following findings: (a) the trend in the variation of the names of variables according to their type; (b) the majority of variables have short names with narrow scopes, where a name is often a word or an abbreviation thereof; (c) methods with an abnormal variable are approximately 1.4 times more likely to be fault prone than methods that contain only normal variables; (d) the proposed abnormality metric can be useful in a random forest‐based fault‐prone method analysis model.
登录
查看更多内容
DOI:
10.1145/2024445.2024463
发表时间:
2011
影响因子:
23.6
作者:
Hideaki Hata;O. Mizuno;T. Kikuno
通讯作者:
T. Kikuno
DOI:
10.1109/msr.2013.6624055
发表时间:
2013
期刊:
2013 10th Working Conference on Mining Software Repositories (MSR)
影响因子:
--
作者:
D. Binkley;Dawn J Lawrie;L. Pollock;Emily Hill;K. Vijay
通讯作者:
K. Vijay
DOI:
10.4225/75/57b66f5a3477b
发表时间:
2010
期刊:
--
影响因子:
--
作者:
Aruna Jamdagni;Aruna Jamdagni;Zhiyuan Tan;P. Nanda;Xiangjian He;R. Liu
通讯作者:
R. Liu
DOI:
10.1109/cec.2008.4631321
发表时间:
2008
期刊:
2008 IEEE Congress on Evolutionary Computation (IEEE World Congress on Computational Intelligence)
影响因子:
--
作者:
A. Folleco;T. Khoshgoftaar;J. V. Hulse;Lofton A. Bullard
通讯作者:
Lofton A. Bullard
DOI:
--
发表时间:
2008
期刊:
影响因子:
--
作者:
Robert C. Martin
通讯作者:
Robert C. Martin