In software engineering (SE), improving the quality of code and design by relying on pre-established restructuring (refactoring), such as detection and injection of a design pattern are still challenging problems. In ...
详细信息
ISBN:
(纸本)9783031162107;9783031162091
In software engineering (SE), improving the quality of code and design by relying on pre-established restructuring (refactoring), such as detection and injection of a design pattern are still challenging problems. In this article, we focus on the Singleton design pattern, in which we indicate its variants implementation and define 33 features that can identify this pattern in its standard and non-standard form. Significant information can be extracted by applying the structural and semantic analysis of the source code. So use this information;it becomes easier to identify a pattern and inject it. We created specific data using 20,000 code snippets. This data is used to train deep learning models called RNN-LSTM classifiers to extract information from object-oriented software systems. The empirical result proves that our proposed LSTM-RNN Classifier can successfully extract proposed information with excellent results in terms of prediction recall and F1-score.
暂无评论