返回
RefactorScore: Evaluating Refactor Prone Code
DOI:10.1109/TSE.2023.3324613.png)
摘要
En 中文
We propose RefactorScore, an automatic evaluation metric for code. RefactorScore computes the number of refactor prone locations on each token in a candidate file and maps the occurrences into a quantile to produce a score. RefactorScore is evaluated across 61,735 commits and uses a model called RefactorBERT trained to predict refactors on 1,111,246 commits. Finally, we validate RefactorScore on a set of industry leading projects providing each with a RefactorScore. We calibrate RefactorScore's detection of low quality code with human developers through a human subject study. RefactorBERT, the model driving the scoring mechanism, is capable of predicting defects and refactors predicted by RefDiff 2.0. To our knowledge, our approach, coupled with the use of large scale data for training and validated with human developers, is the first code quality scoring metric of its kind.
Keyword:
Codes
Java
Measurement
Unified modeling language
Predictive models
C plus plus languages
Computational modeling
Refactor
automatic evaluation
machine learning
software repositories
期刊
IF:
5.6
论文数:
2.9K
被引数:
1.1W
机构
引用论文
The Effectiveness of Supervised Machine Learning Algorithms in Predicting Software Refactoring监督机器学习算法在预测软件重构中的有效性
Comparing and experimenting machine learning techniques for code smell detection比较和实验用于代码气味检测的机器学习技术

