SOTorrent: Reconstructing and Analyzing the Evolution of Stack Overflow Posts
arXiv:1803.07311 · doi:10.1145/3196398.3196430
Abstract
Stack Overflow (SO) is the most popular question-and-answer website for software developers, providing a large amount of code snippets and free-form text on a wide variety of topics. Like other software artifacts, questions and answers on SO evolve over time, for example when bugs in code snippets are fixed, code is updated to work with a more recent library version, or text surrounding a code snippet is edited for clarity. To be able to analyze how content 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 or code blocks. It connects SO posts to other platforms by aggregating URLs from text blocks and by collecting references from GitHub files to SO posts. In this paper, we describe how we built SOTorrent, and in particular how we evaluated 134 different string similarity metrics regarding their applicability for reconstructing the version history of text and code blocks. Based on a first analysis using the dataset, we present insights into the evolution of SO posts, e.g., that post edits are usually small, happen soon after the initial creation of the post, and that code is rarely changed without also updating the surrounding text. Further, our analysis revealed a close relationship between post edits and comments. Our vision is that researchers will use SOTorrent to investigate and understand the evolution of SO posts and their relation to other platforms such as GitHub.
arXiv comment12 pages, 9 figures, 15th International Conference on Mining Software Repositories (MSR 2018), ACM, 2018
References in corpus (3)
Cited by in corpus (15)
- SOTorrent: Reconstructing and Analyzing the Evolution of Stack Overflow Posts
- How Do I Refactor This? An Empirical Study on Refactoring Trends and Topics in Stack Overflow
- KGTorrent: A Dataset of Python Jupyter Notebooks from Kaggle
- Challenges in Docker Development: A Large-scale Study Using Stack Overflow
- An empirical study of question discussions on Stack Overflow
- An Empirical Study of Developers' Challenges in Implementing Workflows as Code: A Case Study on Apache Airflow
- Cross-Dataset Design Discussion Mining
- Broken External Links on Stack Overflow
- Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformer
- 18 Million Links in Commit Messages: Purpose, Evolution, and Decay
- Code Duplication on Stack Overflow
- An Empirical Study of Package Management Issues via Stack Overflow
- An Exploration of npm Package Co-Usage Examples from Stack Overflow: A Case Study
- An Exploratory Study on the Repeatedly Shared External Links on Stack Overflow
- Does Collaborative Editing Help Mitigate Security Vulnerabilities in Crowd-Shared IoT Code Examples?