Authors
Yi Li, Shaohua Wang, Tien N Nguyen
Publication date
2021/2/27
Conference
(ICSE 2021) International Conference on Software Engineering
Description
Misleading method names in software projects can confuse developers, which may lead to software defects and affect code understandability. In this paper, we present DeepName, a context-based, deep learning approach to detect method name inconsistencies and suggest a proper name for a method. The key departure point is the philosophy of "Show Me Your Friends, I'll Tell You Who You Are". Unlike the state-of-the-art approaches, in addition to the method's body, we also consider the interactions of the current method under study with the other ones including the caller and callee methods, and the sibling methods in the same enclosing class. The sequences of sub-tokens in the program entities' names in the contexts are extracted and used as the input for an RNN-based encoder-decoder to produce the representations for the current method. We modify that RNN model to integrate the copy mechanism and …
Total citations
2021202220232024371811
Scholar articles
Y Li, S Wang, T Nguyen - 2021 IEEE/ACM 43rd International Conference on …, 2021