Attribution Required: Stack Overflow Code Snippets in GitHub Projects

被引:22
作者
Baltes, Sebastian [1 ]
Kiefer, Richard [1 ]
Diehl, Stephan [1 ]
机构
[1] Univ Trier, Software Engn Grp, Trier, Germany
来源
PROCEEDINGS OF THE 2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING COMPANION (ICSE-C 2017) | 2017年
关键词
empirical study; code snippets; copy-and-paste programming; licensing; stack overflow; github; survey;
D O I
10.1109/ICSE-C.2017.99
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Stack Overflow (SO) is the largest Q&A website for developers, providing a huge amount of copyable code snippets. Using these snippets raises various maintenance and legal issues. The SO license requires attribution, i.e., referencing the original question or answer, and requires derived work to adopt a compatible license. While there is a heated debate on SO's license model for code snippets and the required attribution, little is known about the extent to which snippets are copied from SO without proper attribution. In this paper, we present the research design and summarized results of an empirical study analyzing attributed and unattributed usages of SO code snippets in GitHub projects. On average, 3.22% of all analyzed repositories and 7.33% of the popular ones contained a reference to SO. Further, we found that developers rather refer to the whole thread on SO than to a specific answer. For Java, at least two thirds of the copied snippets were not attributed.
引用
收藏
页码:161 / 163
页数:3
相关论文
共 16 条
[1]  
BALTES S, STACK OVERFLOW CODE
[2]  
Brandt J, 2010, CHI2010: PROCEEDINGS OF THE 28TH ANNUAL CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS, VOLS 1-4, P513
[3]  
*CC CORP, COMP LIC
[4]  
Exchange Stack, STACK EXCH DAT EXPL
[5]  
*GITH INC, GITHUB DEV API
[6]  
Gousios G., 2013, 10 WORK C MIN SOFTW
[7]  
GOUSIOS G, GHTORRENT GOOGLE CLO
[8]  
RUPORT S, 2015, CAN WE GET SOME EXPL
[9]  
*STACK EXCH, STACK EXCH API V2 2
[10]  
Stack Exchange, STACK EXCH DAT DUMP