arrow
返回

Deep learning with class-level abstract syntax tree and code histories for detecting code modification requirements

delete2023-12-01
delete1
PRE
AI
O
Oguzhan Oktay Buyuk
A
Ali Nizam *
DOI:10.1016/j.jss.2023.111851delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Improving code quality is one of the most significant issues in the software industry. Deep learning is an emerging area of research for detecting code smells and addressing refactoring requirements. The aim of this study is to develop a deep learning-based system for code modification analysis to predict the locations and types of code modifications, while significantly reducing the need for manual labeling. We created an experimental dataset by collecting historical code data from open -source project repositories on the Internet. We introduce a novel class-level abstract syntax tree-based code embedding method for code analysis. A recurrent neural network was employed to effectively identify code modification requirements. Our system achieves an average accuracy of approximately 83% across different repositories and 86% for the entire dataset. These findings indicate that our system provides higher performance than the method-based and text-based code embedding approaches. In addition, we performed a comparative analysis with a static code analysis tool to justify the readiness of the proposed model for deployment. The correlation coefficient between the outputs demonstrates a significant correlation of 67%. Consequently, this research highlights that the deep learning-based analysis of code histories empowers software teams in identifying potential code modification requirements.(c) 2023 Elsevier Inc. All rights reserved.
Keyword:
Refactoring
Code smell
Recurrent neural network
Abstract syntax tree
Code embedding

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.4K
被引数:
8.4K

机构

F
Fatih Sultan Mehmet Vakif University
学者数:
185
论文数: 200
被引数: 8
引用论文

引用论文

err分享
err收藏
FindICI: Using machine learning to detect linguistic inconsistencies between code and natural language descriptions in infrastructure-as-code
err2022-09-20
err7
errOAAI
errBorovits, Nemania; Kumara, Indika; Di Nucci, Dario; Krishnan, Parvathy; Dalla Palma, Stefano; Palomba, Fabio; Tamburri, Damian A.; van den Heuvel, Willem-Jan
err分享
err收藏
Revisiting the refactoring mechanics重新审视重构机制
err2019-06-01
err20
PREAI
errOliveira, Jonhnanthan; Gheyi, Rohit; Mongiovi, Melina; Soares, Gustavo; Ribeiro, Marcio; Garcia, Alessandro
err分享
err收藏
err分享
err收藏
A Framework for Evaluating the Results of the SZZ Approach for Identifying Bug-Introducing Changes
err2017-07-01
err139
PREAI
errda Costa, Daniel Alencar; McIntosh, Shane; Shang, Weiyi; Kulesza, Uira; Coelho, Roberta; Hassan, Ahmed E.
err分享
err收藏
学者 查看更多内容