2016 · 53 citations · 30 references
MedicineCardiologyInternal MedicineCardiothoracic RadiologyCardiovascular GeneticsClinical CardiologyCardiovascular DiseaseCardiovascular PathologyFibrosisGenetic DisordersInherited CardiomyopathiesFabry DiseaseGlobal Ventricular FunctionMagnetic ResonancePapillary MusclesVentricular Ejection Fraction Assessment
Programmer-provided identifier names convey information about the semantics of a program. This information can complement traditional program analyses in various software engineering tasks, such as bug finding, code completion, and documentation. Even though identifier names appear to be a rich source of information, little is known about their properties and their potential usefulness. This paper presents an empirical study of the lexical similarity between arguments and parameters of methods, which is one prominent situation where names can provide otherwise missing information. The study involves 60 real-world Java programs. We find that, for most arguments, the similarity is either very high or very low, and that short and generic names often cause low similarities. Furthermore, we show that inferring a set of low-similarity parameter names from one set of programs allows for pruning such names in another set of programs. Finally, the study shows that many arguments are more similar to the corresponding parameter than any alternative argument available in the call site's scope. As applications of our findings, we present an anomaly detection technique that identifies 144 renaming opportunities and incorrect arguments in 14 programs, and a code recommendation system that suggests correct arguments with a precision of 83%.
30
George A. Miller · Communications of the ACM · 1995 · 14.1K citations · Full text
Suggesting accurate method and class names
Miltiadis Allamanis, Earl T. Barr, Christian Bird et al. · 2015 · 386 citations · Full text