Automating Code Review

代码评审 计算机科学 编码(集合论) KPI驱动的代码分析 软件工程 源代码 变压器 自动化 数据科学 静态程序分析 机器学习 人工智能 程序设计语言 软件 软件开发 工程类 电压 集合(抽象数据类型) 电气工程 机械工程
作者
Rosalia Tufano
标识
DOI:10.1109/icse-companion58688.2023.00053
摘要

Code reviews are popular in both industrial and open source projects. The benefits of code reviews are widely recognized and include better code quality and lower likelihood of introducing bugs. However, code review comes at the cost of spending developers' time on reviewing their teammates' code. The goal of this research is to investigate the possibility of using Deep Learning (DL) to automate specific code review tasks. We started by training vanilla Transformer models to learn code changes performed by developers during real code review activities. This gives the models the possibility to automatically (i) revise the code submitted for review without any input from the reviewer; and (ii) implement changes required to address a specific reviewer's comment. While the preliminary results were encouraging, in this first work we tested DL models in rather simple code review scenarios, substantially simplifying the targeted problem. This was also due to the choices we made when designing both the technique and the experiments. Thus, in a subsequent work, we exploited a pre-trained Text- To- Text-Transfer-Transformer (T5) to overcome some of these limitations and experiment DL models for code review automation in more realistic and challenging scenarios. The achieved results show the improvements brought by T5 both in terms of applicability (i.e., scenarios in which it can be applied) and performance. Despite this, we are still far from performance levels making these techniques deployable in practice, thus calling for additional research in this area, as we discuss in our future work agenda.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
赘婿应助lomo采纳,获得100
3秒前
eee发布了新的文献求助10
5秒前
MalowZhang发布了新的文献求助10
7秒前
薄荷完成签到 ,获得积分10
7秒前
布鲁斯李发布了新的文献求助10
7秒前
量子星尘发布了新的文献求助10
8秒前
陈多多在努力完成签到,获得积分10
9秒前
Hao发布了新的文献求助10
10秒前
汉堡包应助czb666采纳,获得10
12秒前
小糊涂仙儿完成签到 ,获得积分10
13秒前
烟花应助茶色采纳,获得10
15秒前
16秒前
英俊鼠标完成签到 ,获得积分10
16秒前
ZRT134完成签到,获得积分20
17秒前
eee完成签到,获得积分10
19秒前
vv发布了新的文献求助10
21秒前
早日发文章完成签到 ,获得积分10
21秒前
22秒前
23秒前
24秒前
量子星尘发布了新的文献求助10
25秒前
英勇发布了新的文献求助10
26秒前
豆小豆发布了新的文献求助10
27秒前
28秒前
Hao完成签到,获得积分10
28秒前
搜集达人应助坚定镜子采纳,获得10
28秒前
yoyo20012623完成签到,获得积分10
29秒前
29秒前
wenwen完成签到,获得积分10
29秒前
29秒前
浮游应助linmo采纳,获得10
30秒前
czb666发布了新的文献求助10
31秒前
Lucas应助猪猪hero采纳,获得10
33秒前
33秒前
房天川发布了新的文献求助10
34秒前
归尘发布了新的文献求助10
34秒前
MalowZhang完成签到,获得积分10
35秒前
不是假笑女王完成签到,获得积分10
35秒前
蘑菇发布了新的文献求助10
35秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Iron toxicity and hematopoietic cell transplantation: do we understand why iron affects transplant outcome? 2000
Teacher Wellbeing: Noticing, Nurturing, Sustaining, and Flourishing in Schools 1200
List of 1,091 Public Pension Profiles by Region 1041
A Technologist’s Guide to Performing Sleep Studies 500
EEG in Childhood Epilepsy: Initial Presentation & Long-Term Follow-Up 500
Latent Class and Latent Transition Analysis: With Applications in the Social, Behavioral, and Health Sciences 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5490133
求助须知:如何正确求助?哪些是违规求助? 4588844
关于积分的说明 14421594
捐赠科研通 4520646
什么是DOI,文献DOI怎么找? 2476796
邀请新用户注册赠送积分活动 1462282
关于科研通互助平台的介绍 1435188