arrow
返回

Usage and attribution of Stack Overflow code snippets in GitHub projects

delete2018-10-01
delete55
delete
OA
AI
S
Sebastian Baltes *
Stephan Diehl 封面图
Stephan Diehl (Stephan Diehl)
DOI:10.1007/s10664-018-9650-5delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Stack Overflow (SO) is the most popular question-and-answer website for software developers, providing a large amount of copyable code snippets. Using those snippets raises maintenance and legal issues. SO's license (CC BY-SA 3.0) 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. We present results of a large-scale empirical study analyzing the usage and attribution of non-trivial Java code snippets from SO answers in public GitHub (GH) projects. We followed three different approaches to triangulate an estimate for the ratio of unattributed usages and conducted two online surveys with software developers to complement our results. For the different sets of projects that we analyzed, the ratio of projects containing files with a reference to SO varied between 3.3% and 11.9%. We found that at most 1.8% of all analyzed repositories containing code from SO used the code in a way compatible with CC BY-SA 3.0. Moreover, we estimate that at most a quarter of the copied code snippets from SO are attributed as required. Of the surveyed developers, almost one half admitted copying code from SO without attribution and about two thirds were not aware of the license of SO code snippets and its implications.
Keyword:
Code snippets
Licensing
Stack Overflow
GitHub
Online survey
Mining software repositories
AI总结

AI总结

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

Toxic Code Snippets on Stack Overflow堆栈溢出上的有毒代码段
err2021-03-01
err62
errOAAI
errRagkhitwetsagul, Chaiyong; Krinke, Jens; Paixao, Matheus; Bianco, Giuseppe; Oliveto, Rocco
err分享
err收藏
License usage and changes: a large-scale study on gitHub许可证使用和更改: gitHub上的大规模研究
err2016-06-06
err33
PREAI
errVendome, Christopher; Bavota, Gabriele; Di Penta, Massimiliano; Linares-Vasquez, Mario; German, Daniel; Poshyvanyk, Denys
err分享
err收藏
Curating GitHub for engineered software projects为工程软件项目策划GitHub
err2017-04-18
err249
PREAI
errMunaiah, Nuthan; Kroh, Steven; Cabrey, Craig; Nagappan, Meiyappan
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

U
universität trier
学者数:
17
论文数: 10
被引数: 950
引用论文

引用论文

err分享
err收藏
Dual Hole Transport Layers Heterojunction and Band Alignment Engineered Mo:BiVO4 Photoanodes for Efficient Water Splitting (Small 37/2024)
err2024-09-13
err0
PREAI
errGuilin Wang; Tongxin Tang; Kai‐Hang Ye; Xin Ding; Junwei Chen; WenHao Zou; Yushen Xiao; JieYu Li; Long Zhao; Chaojie Chen; Sitong Ge; Lei Li; Xiujuan Wei; Chao Chen; Yang Cao; Zhan Lin; Shanqing Zhang
err分享
err收藏
Programmed sample delivery on a pressurized paper
err2014-10-24
err0
errOAAI
errJoong Ho Shin; Juhwan Park; Seung Hoon Kim; Je-Kyun Park
err分享
err收藏
What do developers search for on the web?
err2017-04-09
err132
PREAI
errXia, Xin; Bao, Lingfeng; Lo, David; Kochhar, Pavneet Singh; Hassan, Ahmed E.; Xing, Zhenchang
err分享
err收藏
Glomerular morphometry in reflux nephropathy: functional and radiological correlations
err1993-02-01
err0
PREAI
errShoichi Yoshiara; Richard H. R. White; Faro Raafat; Nicholas C. Smith; Kishore J. Shah
err分享
err收藏
Severe cystic fibrosis associated with a DeltaF508/R347H+D979A compound heterozygous genotype
err1998-01-01
err0
PREAI
errSatoko Hojo; Jiro Fujita; Hiroshi Miyawaki; Yuka Obayashi; Jiro Takahara; Dennis W. Bartholomew
err分享
err收藏
学者 查看更多内容