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

SOTorrent:研究堆栈溢出代码段的起源,演变和使用

SOTorrent: Studying the Origin, Evolution, and Usage of Stack Overflow Code Snippets

Sebastian Baltes, Christoph Treude, Stephan Diehl

摘要:

Stack Overflow(SO)是最受软件开发人员欢迎的问答网站,提供了大量可复制的代码片段。像其他软件工件一样,SO上的代码会随着时间的推移而演变,例如,当bug被修复或API被更新到最新版本时。为了能够分析SO上的代码和周围的文本是如何演变的,我们构建了SOTorrent,这是一个基于官方SO数据转储的开放数据集。SOTorrent提供了对整个帖子以及单个文本和代码块级别的SO内容的版本历史的访问。它通过聚合来自周围文本块和评论的URL,以及通过收集来自GitHub文件的引用来将SO帖子中的代码片段连接到其他平台。我们的愿景是,研究人员将使用SOTorrent来调查和了解SO上代码的演变和维护,以及它与其他平台(如GitHub)的关系。

英文摘要:

Stack Overflow (SO) is the most popular question-and-answer website for software developers, providing a large amount of copyable code snippets. Like other software artifacts, code on SO evolves over time, for example when bugs are fixed or APIs are updated to the most recent version. To be able to analyze how code and the surrounding text on SO evolves, we built SOTorrent, an open dataset based on the official SO data dump. SOTorrent provides access to the version history of SO content at the level of whole posts and individual text and code blocks. It connects code snippets from SO posts to other platforms by aggregating URLs from surrounding text blocks and comments, and by collecting references from GitHub files to SO posts. Our vision is that researchers will use SOTorrent to investigate and understand the evolution and maintenance of code on SO and its relation to other platforms such as GitHub.

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

↑