Predicting Code Modifications using BERT Model and Code Histories

The use of deep learning-based techniques has emerged in various code analysis tasks. One of the most important tasks for refactoring and vulnerability detection is to identify points in the code that are likely to change. This study aims to develop a deep learning-based system for code modification detection. A pre-trained BERT model and recurrent neural networks were used to detect the type of code modification. We created an experimental dataset by collecting code from open-source GitHub repositories. The proposed system achieves an average accuracy of about 87%, and the use of history information increases the accuracy by 1.5 points. These results suggest that the BERT model can improve the accuracy of code modification detection by using code history information. Thus, DNN techniques can guide developers through detecting software code changes.

Authors

Institutions

Publication Details

Published
2024-10-16
DOI
https://doi.org/10.1109/asyu62119.2024.10757077
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Code Modifications using BERT Model and Code Histories

Ali Nizam, Ertuğrul İslamoğlu, Hüdayi Aşık
Software Engineering Research
article

Predicting Code Modifications using BERT Model and Code Histories

Ali Nizam, Ertuğrul İslamoğlu, Hüdayi Aşık
article en

Abstract

The use of deep learning-based techniques has emerged in various code analysis tasks. One of the most important tasks for refactoring and vulnerability detection is to identify points in the code that are likely to change. This study aims to develop a deep learning-based system for code modification detection. A pre-trained BERT model and recurrent neural networks were used to detect the type of code modification. We created an experimental dataset by collecting code from open-source GitHub repositories. The proposed system achieves an average accuracy of about 87%, and the use of history information increases the accuracy by 1.5 points. These results suggest that the BERT model can improve the accuracy of code modification detection by using code history information. Thus, DNN techniques can guide developers through detecting software code changes.

Fatih Sultan Mehmet Waqf University (TR)
Türkiye Bilimsel ve Teknolojik Araştırma Kurumu
Openalex Percentile: Top 60%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Predicting Code Modifications using BERT Model and Code Histories — Ali Nizam, Ertuğrul İslamoğlu, et al. · (2024) | TGRS Research Map | TGRS