arrow
返回

GitHub Copilot AI pair programmer: Asset or Liability?

delete2023-09-01
delete117
delete
OA
AI
A
Arghavan Moradi Dakhel
V
Vahid Majdinasab *
A
Amin Nikanjam
F
Foutse Khomh
M
Michel C. Desmarais
Zhen Ming Jiang 封面图
Zhen Ming Jiang (Zhen Ming Jiang)
DOI:10.1016/j.jss.2023.111734delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Automatic program synthesis is a long-lasting dream in software engineering. Recently, a promising Deep Learning (DL) based solution, called Copilot, has been proposed by OpenAI and Microsoft as an industrial product. Although some studies evaluate the correctness of Copilot solutions and report its issues, more empirical evaluations are necessary to understand how developers can benefit from it effectively. In this paper, we study the capabilities of Copilot in two different programming tasks: (i) generating (and reproducing) correct and efficient solutions for fundamental algorithmic problems, and (ii) comparing Copilot's proposed solutions with those of human programmers on a set of programming tasks. For the former, we assess the performance and functionality of Copilot in solving selected fundamental problems in computer science, like sorting and implementing data structures. In the latter, a dataset of programming problems with human-provided solutions is used. The results show that Copilot is capable of providing solutions for almost all fundamental algorithmic problems, however, some solutions are buggy and non-reproducible. Moreover, Copilot has some difficulties in combining multiple methods to generate a solution. Comparing Copilot to humans, our results show that the correct ratio of humans' solutions is greater than Copilot's suggestions, while the buggy solutions generated by Copilot require less effort to be repaired. Based on our findings, if Copilot is used by expert developers in software projects, it can become an asset since its suggestions could be comparable to humans' contributions in terms of quality. However, Copilot can become a liability if it is used by novice developers who may fail to filter its buggy or non-optimal solutions due to a lack of expertise. (c) 2023 Elsevier Inc. All rights reserved.
Keyword:
Code completion
Language model
GitHub copilot
Testing
AI总结

AI总结

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

err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

P
Polytechnique Montréal
学者数:
194
论文数: 87
被引数: 2.2K
U
université de montréal
学者数:
1.0K
论文数: 435
被引数: 2.3W
引用论文

引用论文

err分享
err收藏
Automatically Assessing Code Understandability自动评估代码可理解性
err2021-03-01
err48
errOAAI
errScalabrino, Simone; Bavota, Gabriele; Vendome, Christopher; Linares-Vasquez, Mario; Poshyvanyk, Denys; Oliveto, Rocco
err分享
err收藏
Autophagic Gene Polymorphisms in Liquid Biopsies and Outcome of Patients with Metastatic Clear Cell Renal Cell Carcinoma自噬基因多态性在转移性透明细胞肾细胞癌患者的液体活检和预后中的作用
err2018-10-01
err0
errOAAI
errMATTEO SANTONI; FRANCESCO PIVA; UGO DE GIORGI; ALESSANDRA MOSCA; UMBERTO BASSO; DANIELE SANTINI; SEBASTIANO BUTI; CRISTIAN LOLLI; CARLO TERRONE; MARCO MARUZZO; MICHELE IULIANI; MELISSA BERSANELLI; ALESSANDRO CONTI; ROBERTA MAZZUCCHELLI; RODOLFO MONTIRONI; LUCIANO BURATTINI; ROSSANA BERARDI
err分享
err收藏
Cyclomatic Complexity
err2016-11-01
err65
PREAI
errEbert, Christof
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
学者 查看更多内容