arrow
返回

RefactorScore: Evaluating Refactor Prone Code

delete2023-11-01
delete1
PRE
AI
K
Kevin Jesse *
C
Christoph Kuhmuench
A
Anand Ashok Sawant
DOI:10.1109/TSE.2023.3324613delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

S
siemens ag
学者数:
5.6K
论文数: 4.6K
被引数: 3
U
university of california davis
学者数:
3.4W
论文数: 2.6W
被引数: 45
University of California System 封面图
University of California System
学者数:
37.7W
论文数: 33.8W
被引数: 6.6K
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
Television Viewing and Children's Health
err2007-02-23
err0
PREAI
errJyu‐Lin Chen; Christine M. Kennedy; Ann Froese‐Fretz
err分享
err收藏
Self‐Stabilized Hydrogenation of Amorphous InGaZnO Schottky Diode with Bilayer Passivation
err2022-06-23
err0
PREAI
errJitong Zhou; Wengao Pan; Dawei Zheng; Fayang Liu; Guijun Li; Xianda Zhou; Kai Wang; Shengdong Zhang; Lei Lu
err分享
err收藏
err分享
err收藏
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
Popping Balloons: A Case Study of Dynamical Fragmentation
err2015-10-30
err0
PREAI
errSébastien Moulinet; Mokhtar Adda-Bedia
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收藏
学者 查看更多内容