Java方法名称建议的实证研究:我们还在吗?
An empirical study on Java method name suggestion: are we there yet?
摘要:
一个大规模的评估,目前的命名方法证实,这种方法是准确的。然而,它是鲜为人知的,哪些类别的方法名称的工作以及通过这样的命名方法的性能。为了指出当前命名方法的优越性,本文在一个新的数据集上对这些方法进行了实证研究。此外,我们分析了上述成功的命名方法,发现:(1)大约60%的被接受的推荐名称是在get,set,is和test中使用前缀的。(2)成功推荐的方法名称中有很大一部分(19.3%)可以从给定的方法体中派生出来。比较也表明了实证研究的优越性能。
英文摘要:
A large-scale evaluation for current naming approaches substantiates that such approaches are accurate. However, it is less known about which categories of method names work well via such naming approaches and how's the performance of naming approaches. To point out the superiority of the current naming approach, in this paper, we conduct an empirical study on such approaches in a new dataset. Moreover, we analyze the successful naming approaches above and find that: (1) around 60% of the accepted recommendation names are made on prefixes within get, set, is, and test. (2) A large portion (19.3%) of method names successfully recommended could be derived from the given method bodies. The comparisons also demonstrate the superior performance of the empirical study.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。