TY - GEN
T1 - Deep semantic-based feature envy identification
AU - Guo, Xueliang
AU - Shi, Chongyang
AU - Jiang, He
N1 - Publisher Copyright:
© 2019 Association for Computing Machinery.
PY - 2019/10/28
Y1 - 2019/10/28
N2 - Code smells regularly cause potential software quality problems in software development. Thus, code smell detection has attracted the attention of many researchers. A number of approaches have been suggested in order to improve the accuracy of code smell detection. Most of these approaches rely solely on structural information (code metrics) extracted from source code and heuristic rules designed by people. In this paper, We propose a method-representation based model to represent the methods in textual code, which can effectively reflect the semantic relationships embedded in textual code. We also propose a deep learning based approach that combines method-representation and a CNN model to detect feature envy. The proposed approach can automatically extract semantic and features from textual code and code metrics, and can also automatically build complex mapping between these features and predictions. Evaluation results on open-source projects demonstrate that our proposed approach achieves better performance than the state-of-the-art in detecting feature envy.
AB - Code smells regularly cause potential software quality problems in software development. Thus, code smell detection has attracted the attention of many researchers. A number of approaches have been suggested in order to improve the accuracy of code smell detection. Most of these approaches rely solely on structural information (code metrics) extracted from source code and heuristic rules designed by people. In this paper, We propose a method-representation based model to represent the methods in textual code, which can effectively reflect the semantic relationships embedded in textual code. We also propose a deep learning based approach that combines method-representation and a CNN model to detect feature envy. The proposed approach can automatically extract semantic and features from textual code and code metrics, and can also automatically build complex mapping between these features and predictions. Evaluation results on open-source projects demonstrate that our proposed approach achieves better performance than the state-of-the-art in detecting feature envy.
KW - Code Smell
KW - Deep Learning
KW - Deep Semantic
KW - Feature Envy
KW - Software Refactoring
UR - http://www.scopus.com/inward/record.url?scp=85074849764&partnerID=8YFLogxK
U2 - 10.1145/3361242.3361257
DO - 10.1145/3361242.3361257
M3 - Conference contribution
AN - SCOPUS:85074849764
T3 - ACM International Conference Proceeding Series
BT - 11th Asia-Pacific Symposium on Internetware, Internetware 2019
PB - Association for Computing Machinery
T2 - 11th Asia-Pacific Symposium on Internetware, Internetware 2019
Y2 - 28 October 2019 through 29 October 2019
ER -