• Home
  • About
  • Repositories
  • Search
  • Web API
  • Feedback
<< Go Back

Metadata

Name
TDMentions: A Dataset of Technical Debt Mentions in Online Posts
Repository
ZENODO
Identifier
doi:10.5281/zenodo.2593142
Description
# TDMentions: A Dataset of Technical Debt Mentions in Online Posts (version 1.0)

TDMentions is a dataset that contains mentions of technical debt from Reddit, Hacker News, and Stack Exchange. It also contains a list of blog posts on Medium that were tagged as technical debt. The dataset currently contains approximately 35,000 items.&nbsp;

## Data collection and processing

The dataset is mainly collected from existing datasets. We used data from:

- the archive of Reddit posts by Jason Baumgartner (available at [https://pushshift.io](https://pushshift.io),&nbsp;
- the archive of Hacker News available at Google&#39;s BigQuery (available at [https://console.cloud.google.com/marketplace/details/y-combinator/hacker-news](https://console.cloud.google.com/marketplace/details/y-combinator/hacker-news)), and the Stack Exchange data dump (available at [https://archive.org/details/stackexchange](https://archive.org/details/stackexchange)).&nbsp;
- the [GHTorrent](http://ghtorrent.org) project&nbsp;
- the [GH Archive](https://www.gharchive.org)

The data set currently contains data from the start of each source/service until 2018-12-31. For GitHub, we currently only include data from 2015-01-01.

We use the regular expression `tech(nical)?[\s\-_]*?debt` to find mentions in all sources except for Medium. We decided to limit our matches to variations of technical debt and tech debt. Other shorter forms, such as TD, can result in too many false positives. For Medium, we used the tag `technical-debt`.&nbsp;

## Data Format

The dataset is stored as a compressed (bzip2) JSON file with one JSON object per line. Each mention is represented as a JSON object with the following keys.

- `id`: the id used in the original source. We use the URL path to identify Medium posts.
- `body`: the text that contains the mention. This is either the comment or the title of the post. For Medium posts this is the title and subtitle (which might not mention technical debt, since posts are identified by the tag).
- `created_utc`: the time the item was posted in seconds since epoch in UTC.&nbsp;
- `author`: the author of the item. We use the username or userid from the source.
- `source`: where the item was posted. Valid sources are:
&nbsp;&nbsp; &nbsp;- HackerNews Comment
&nbsp;&nbsp; &nbsp;- HackerNews Job
&nbsp;&nbsp; &nbsp;- HackerNews Submission
&nbsp;&nbsp; &nbsp;- Reddit Comment
&nbsp;&nbsp; &nbsp;- Reddit Submission
&nbsp;&nbsp; &nbsp;- StackExchange Answer
&nbsp;&nbsp; &nbsp;- StackExchange Comment
&nbsp;&nbsp; &nbsp;- StackExchange Question
&nbsp;&nbsp; &nbsp;- Medium Post
- `meta`: Additional information about the item specific to the source. This includes, e.g., the subreddit a Reddit submission or comment was posted to, the score, etc. We try to use the same names, e.g., `score` and `num_comments` for keys that have the same meaning/information across multiple sources.

This is a sample item from Reddit:

```JSON
{
&nbsp; &quot;id&quot;: &quot;ab8auf&quot;,
&nbsp; &quot;body&quot;: &quot;Technical Debt Explained (x-post r/Eve)&quot;,
&nbsp; &quot;created_utc&quot;: 1546271789,
&nbsp; &quot;author&quot;: &quot;totally_100_human&quot;,
&nbsp; &quot;source&quot;: &quot;Reddit Submission&quot;,
&nbsp; &quot;meta&quot;: {
&nbsp; &nbsp; &quot;title&quot;: &quot;Technical Debt Explained (x-post r/Eve)&quot;,
&nbsp; &nbsp; &quot;score&quot;: 1,
&nbsp; &nbsp; &quot;num_comments&quot;: 0,
&nbsp; &nbsp; &quot;url&quot;: &quot;http://jestertrek.com/eve/technical-debt-2.png&quot;,
&nbsp; &nbsp; &quot;subreddit&quot;: &quot;RCBRedditBot&quot;
&nbsp; }
}
```

## Sample Analyses

We decided to use JSON to store the data, since it is easy to work with from multiple programming languages. In the following examples, we use [`jq`](https://stedolan.github.io/jq/) to process the JSON.

### How many items are there for each source?

```
lbzip2 -cd postscomments.json.bz2 | jq &#39;.source&#39; | sort | uniq -c
```

### How many submissions that mentioned technical debt were posted each month?

```
lbzip2 -cd postscomments.json.bz2 | jq &#39;select(.source == &quot;Reddit Submission&quot;) | .created_utc | strftime(&quot;%Y-%m&quot;)&#39; | sort | uniq -c
```

### What are the titles of items that link (`meta.url`) to PDF documents?

```
lbzip2 -cd postscomments.json.bz2 | jq &#39;. as $r | select(.meta.url?) | .meta.url | select(endswith(&quot;.pdf&quot;)) | $r.body&#39;
```

### Please, I want CSV!

```
lbzip2 -cd postscomments.json.bz2 | jq -r &#39;[.id, .body, .author] | @csv&#39;
```

Note that you need to specify the keys you want to include for the CSV, so it is easier to either ignore the meta information or process each source.

Please see [https://github.com/sse-lnu/tdmentions](https://github.com/sse-lnu/tdmentions) for more analyses

# Limitations and Future updates

The current version of the dataset lacks GitHub data and Medium comments. GitHub data will be added in the next update. Medium comments (responses) will be added in a future update if we find a good way to represent these.
Data or Study Types
multiple
Source Organization
Unknown
Access Conditions
available
Year
2019
Access Hyperlink
https://doi.org/10.5281/zenodo.2593142

Distributions

  • Encoding Format: HTML ; URL: https://doi.org/10.5281/zenodo.2593142
This project was funded in part by grant U24AI117966 from the NIH National Institute of Allergy and Infectious Diseases as part of the Big Data to Knowledge program. We thank all members of the bioCADDIE community for their valuable input on the overall project.