The SmartSHARK Repository Mining Data

Alexander Trautsch, Steffen HerboldarXiv 2021

TL;DR

The SmartSHARK dataset is a comprehensive, multi-source collection of software evolution data, integrating version control, issue tracking, CI/CD, and code review information. This rich dataset, with manual annotations and cross-tool links, empowers researchers to tackle complex questions about software development that were previously difficult to address due to data fragmentation.

What Problem Does This Paper Address?

Understanding the intricate evolution of software projects is crucial for improving development processes, predicting defects, and enhancing software quality. However, existing research often relies on fragmented data from disparate sources (e.g., only Git logs, or only issue trackers). This fragmentation makes it challenging to connect different aspects of the development lifecycle, such as how code changes relate to bug reports, or how CI/CD pipelines influence code quality. The SmartSHARK dataset aims to bridge this gap by providing a unified, detailed, and interconnected view of software evolution.

Methods

The SmartSHARK project employs a suite of specialized tools (vcsSHARK, coastSHARK, issueSHARK, prSHARK, travisSHARK, etc.) to collect and integrate data from various sources. These tools scrape data from Git repositories, Apache Jira and GitHub for issue tracking, GitHub for pull requests and code reviews, and Travis CI for continuous integration logs. A key aspect of their methodology is the creation of links between these different data sources (e.g., commits to issues, pull requests to commits) and the addition of manually validated annotations. This includes identifying bug-fixing changes, probable inducing changes, and refactorings. They also developed an identity merging algorithm to consolidate developer information.

Datasets

The primary dataset introduced is the SmartSHARK Repository Mining Data, version 2.1. This dataset is built upon data from the Apache Software Foundation, focusing on Java projects with 1,000 to 20,000 commits. It includes:

  • Version Control Data: Git commit messages, authors, dates, changed hunks, and a snapshot of the source code.
  • Code Metrics: Software metrics (size, complexity), static analysis warnings (PMD), and Abstract Syntax Tree (AST) node counts for Java code.
  • Change Analysis: Detection of change types (ChangeDistiller), refactorings (RefDiff, RefactoringMiner).
  • Issue Tracking Data: Jira and GitHub issues, comments, and issue updates.
  • Pull Request Data: GitHub pull requests, reviews, and comments.
  • Continuous Integration Data: Travis CI build logs and statuses.
  • Mailing List Data: Emails from developer and user mailing lists.
  • Annotations: Manually validated links between commits and bugs, bug-fixing change labels, and refactoring detection.

The dataset is available in a large MongoDB instance (1.2 TB) and a smaller version (40 GB) omitting code entity states and clone data.

Key Insights and Ideas

  • The Power of Interconnected Data: The core idea is that by linking data from different development activities (code, issues, reviews, CI), we can uncover deeper insights into software evolution that are impossible with isolated datasets.
  • Manual Validation is Crucial: The paper emphasizes the importance of manually validating heuristics and automatically derived labels. This manual validation significantly enhances the dataset's reliability for research.
  • Bridging the Gap Between Theory and Practice: The dataset aims to provide a realistic and comprehensive view of software development, enabling researchers to test theories and develop practical tools for improving software engineering.
  • Reproducibility is Key: The SmartSHARK platform is designed for replicable and reproducible research, with the database growing and future releases planned.

Key Results

The paper describes version 2.1 of the SmartSHARK dataset, which contains data for 77 projects. Manual validation is available for a subset of 38 projects. The dataset comprises:

  • 366,322 commits
  • 163,057 issues
  • 47,303 pull requests
  • 2,987,591 emails

The full MongoDB dataset is 1.2 TB, with a smaller version around 40 GB. The paper highlights its use in various research areas, including defect prediction, static analysis warning evolution, issue type prediction, and developer behavior modeling.

Limitations and Future Work

  • Project Scope: The current dataset is limited to Java projects from the Apache Software Foundation. This limits the external validity and generalizability of findings.
  • Computational Cost: The exclusion of static analysis for very large projects is due to the significant computational effort required.
  • Future Work: The authors plan to expand the dataset with more projects, potentially omitting static analysis to increase the number of projects. They also aim to include additional data sources and make future releases available. The bug inducing data for Maven is also planned for a future release.

Summary updated

BibTeX
@misc{trautsch2021smartshark,
  author = {Alexander Trautsch and Steffen Herbold},
  title = {{The SmartSHARK Repository Mining Data}},
  year = {2021},
  eprint = {2102.11540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.11540},
}
Figure