arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.03897cs.SE
收藏

Stack Overflow:一个代码清洗平台?

Stack Overflow: A Code Laundering Platform?

Le An, Ons Mlouki, Foutse Khomh, Giuliano Antoniol

摘要:

开发人员使用问答(Q&A)网站来交流知识和专业知识。Stack Overflow是一个流行的Q&A网站,开发人员在这里讨论编码问题并分享代码示例。虽然所有Stack Overflow帖子都可以免费访问,但Stack Overflow上的代码示例受Creative Commons Attribute-ShareAlike 3.0 Unported许可证的约束,开发人员在重用Stack Overflow的代码或将代码发布到Stack Overflow时应遵守该许可证。在本文中,我们对399个Android应用程序进行了案例研究,以调查开发人员在重用Stack Overflow帖子中的代码时是否尊重许可条款(反之亦然)。我们在数据集中的62个Android应用程序中发现了232个代码片段,这些代码片段可能会从Stack Overflow中重复使用,还有1,226个Stack Overflow帖子包含的代码示例是68个Android应用程序中发布的代码的克隆,这表明开发人员可能复制了这些应用程序的代码来回答Stack Overflow问题。我们调查了这些代码的许可证,并观察到1,279个潜在的许可证违规案例(与发布到堆栈溢出的代码或堆栈溢出的代码重用有关)。本文旨在提高软件工程社区对Stack Overflow等问答网站上潜在的不道德代码重用活动的认识。

英文摘要:

Developers use Question and Answer (Q&A) websites to exchange knowledge and expertise. Stack Overflow is a popular Q&A website where developers discuss coding problems and share code examples. Although all Stack Overflow posts are free to access, code examples on Stack Overflow are governed by the Creative Commons Attribute-ShareAlike 3.0 Unported license that developers should obey when reusing code from Stack Overflow or posting code to Stack Overflow. In this paper, we conduct a case study with 399 Android apps, to investigate whether developers respect license terms when reusing code from Stack Overflow posts (and the other way around). We found 232 code snippets in 62 Android apps from our dataset that were potentially reused from Stack Overflow, and 1,226 Stack Overflow posts containing code examples that are clones of code released in 68 Android apps, suggesting that developers may have copied the code of these apps to answer Stack Overflow questions. We investigated the licenses of these pieces of code and observed 1,279 cases of potential license violations (related to code posting to Stack overflow or code reuse from Stack overflow). This paper aims to raise the awareness of the software engineering community about potential unethical code reuse activities taking place on Q&A websites like Stack Overflow.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑