arrow
返回

Detecting refactoring type of software commit messages based on ensemble machine learning algorithms

delete2024-09-12
delete1
delete
OA
AI
D
Dimah Al-Fraihat *
Y
Yousef Sharrab
A
Abdel-Rahman Al-Ghuwairi
N
Nour Sbaih
A
Ayman Qahmash
DOI:10.1038/s41598-024-72307-0delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Refactoring is a well-established topic in contemporary software engineering, focusing on enhancing software's structural design without altering its external behavior. Commit messages play a vital role in tracking changes to the codebase. However, determining the exact refactoring required in the code can be challenging due to various refactoring types. Prior studies have attempted to classify refactoring documentation by type, achieving acceptable results in accuracy, precision, recall, F1-Score, and other performance metrics. Nevertheless, there is room for improvement. To address this, we propose a novel approach using four ensemble Machine Learning algorithms to detect refactoring types. Our experimentation utilized a dataset containing 573 commits, with text cleaning and preprocessing applied to address data imbalances. Various techniques, including hyperparameter optimization, feature engineering with TF-IDF and bag-of-words, and binary transformation using one-vs-one and one-vs-rest classifiers, were employed to enhance accuracy. Results indicate that the experiment involving feature engineering using the TF-IDF technique outperformed other methods. Notably, the XGBoost algorithm with the same technique achieved superior performance across all metrics, attaining 100% accuracy. Moreover, our results surpass the current state-of-the-art performance using the same dataset. Our proposed approach bears significant implications for software engineering, particularly in enhancing the internal quality of software.
Keyword:
Refactoring
Ensemble boosting machine learning
Documentation
Commits classification
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Scientific Reports 封面图
Scientific Reports
IF:
3.9
论文数:
27.8W
被引数:
83.5W

机构

Hashemite University 封面图
Hashemite University
学者数:
2.0K
论文数: 1.9K
被引数: 1.5K
I
Isra University
学者数:
366
论文数: 544
被引数: 702
K
King Khalid University
学者数:
1.1W
论文数: 1.3W
被引数: 1.5W
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
An ensemble learning framework for convolutional neural network based on multiple classifiers
err2019-06-20
err37
PREAI
errGuo, Yanyan; Wang, Xin; Xiao, Pengcheng; Xu, Xinzheng
err分享
err收藏
err
IF0
err
err0
PREAI
err
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收藏
Recombination between an expressed immunoglobulin heavy-chain gene and a germline variable gene segment in a Ly 1+ B-cell lymphoma
err1986-08-01
err0
PREAI
errRobert Kleinfield; Richard R. Hardy; David Tarlinton; Jeffery Dangl; Leonard A. Herzenberg; Martin Weigert
err分享
err收藏
Hyperparameter Optimization for Software Bug Prediction Using Ensemble Learning基于集成学习的软件Bug预测超参数优化
err2024-01-01
err1
errOAAI
errAl-Fraihat, Dimah; Sharrab, Yousef; Al-Ghuwairi, Abdel-Rahman; Alshishani, Hamzeh; Algarni, Abdulmohsen
err分享
err收藏
Remarkable strain-induced magnetic anisotropy in epitaxial Co2MnGa (001) films
err2005-02-01
err0
PREAI
errMichael J. Pechan; Chengtao Yu; David Carr; Chris J. Palmstrøm
err分享
err收藏
学者 查看更多内容