Spatial locality based identifier name recommendation
2021 International Conference on Information and Communication …, 2021•ieeexplore.ieee.org
Identifier names are used to represent concepts in the source code. Concise and consistent
identifier names are crucial to program comprehension. Identifier names reduce the effort to
understand the software, support software maintenance and improve source code quality.
Despite these benefits, many software systems are known to have meaningless and
inconsistent identifier names. One of the reasons that lead to inconsistent identifier names is
lack of knowledge of identifier names already used to represent concepts in the software. To …
identifier names are crucial to program comprehension. Identifier names reduce the effort to
understand the software, support software maintenance and improve source code quality.
Despite these benefits, many software systems are known to have meaningless and
inconsistent identifier names. One of the reasons that lead to inconsistent identifier names is
lack of knowledge of identifier names already used to represent concepts in the software. To …
Identifier names are used to represent concepts in the source code. Concise and consistent identifier names are crucial to program comprehension. Identifier names reduce the effort to understand the software, support software maintenance and improve source code quality. Despite these benefits, many software systems are known to have meaningless and inconsistent identifier names. One of the reasons that lead to inconsistent identifier names is lack of knowledge of identifier names already used to represent concepts in the software. To address this problem, this study proposes a new approach to automatically suggest part of identifier name. The approach aims to use spatial locality to identify and suggest next terms given identifier name prefix. Spatial locality, in this context, refers to the use of terms in close proximity of documents related to the software system. The performance of our proposed approach is evaluated using six open source software systems. The evaluation result shows that the spatial locality based approach suggests part of identifier names correctly with an average precision of 83.2% and average mean reciprocal rank (MRR) of 25.5%. Of the top four correct suggestions, more than half are ranked in the first and second place.
ieeexplore.ieee.org
以上显示的是最相近的搜索结果。 查看全部搜索结果