Datasets:
Document Hugging Face GitHub issues dataset
Browse files12323467591061213789161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767710111213141516171819202180222382242584262786282988899091929330319532333435363738394041424344974546994748101102103104105106107108109495011151521135354115555657585960616263641176566676869707172737475119767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123121124125126127128129130131132133134135136137138139140141142143144126127145146147148149129150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448---annotations_creators:- unknownpretty_name: Hugging Face Datasets — GitHub Issues & Pull Requestslanguage:- enlanguage_creators:- foundlicense: mitmultilinguality: monolingualpretty_name: GitHub Issues Dataset - HuggingFace/datasetssize_categories:- 10K<n<100Ksource_datasets: []- 1K<n<10Ktask_categories:- text-classificationtask_ids:- topic-classification- extractive-qaconfigs:- config_name: default data_files: - split: train path: data/train-*dataset_info: features: - name: id dtype: int64 - name: number dtype: int64 - name: title dtype: string - name: state dtype: string - name: body dtype: string - name: is_pull_request dtype: bool - name: created_at dtype: string - name: updated_at dtype: string - name: closed_at dtype: string - name: user_login dtype: string - name: author_association dtype: string - name: pr_url dtype: string - name: pr_merged_at dtype: string - name: comments_count dtype: int64 - name: reactions_total dtype: int64 - name: reactions_plus1 dtype: int64 - name: reactions_heart dtype: int64 - name: draft dtype: bool - name: locked dtype: bool - name: labels sequence: string - name: html_url dtype: string - name: is_pr_url dtype: bool - name: comments sequence: string splits: - name: train num_bytes: 28585585 num_examples: 7474 download_size: 10749935 dataset_size: 28585585tags:- github- github-issues- pull-requests- software-engineering- bug-tracking- developer-data- nlp- huggingface- datasets---
# 📊 GitHub Issues Dataset (HuggingFace/datasets Repository)# Hugging Face Datasets — GitHub Issues & Pull Requests
This dataset contains structured GitHub issues scraped from the [`huggingface/datasets`](https://api.github.com/repos/huggingface/datasets/issues?page=1&per_page=1) repository. It is intended for **NLP tasks**, **topic modeling**, **issue classification**, and **software engineering research**.A structured snapshot of **7,474 GitHub issues and pull requests** collected from the public [`huggingface/datasets`](https://github.com/huggingface/datasets) repository.
---The dataset combines issue/PR text with lifecycle information, authorship metadata, labels, reactions, comments, timestamps, and URLs, making it useful for **software-engineering analytics and NLP experiments on real developer discussions**.
## 📌 Dataset Summary> This is a historical snapshot of public GitHub activity, not a live mirror of the repository.
- **Repository Source**: `huggingface/datasets`- **Scraped via**: GitHub REST API v3- **Total Issues**: ~7,465- **Collected On**: June 25, 2025- **Format**: `JSONL` → loaded via Arrow for Hugging Face- **Language**: English## Dataset Overview
---| Property | Value ||---|---|| Source repository | `huggingface/datasets` || Records | **7,474** || Language | Primarily English || Split | `train` || Collection method | GitHub REST API || Collection date | June 2025 || Temporal coverage | 2020–2025 || Content | Issues + Pull Requests || Format | Hugging Face Dataset / Arrow / Parquet || License metadata | MIT |
## 📂 Fields IncludedThe stored dataset metadata confirms **7,474 examples** in the single training split.
Each entry contains:## What Is Included?
- `title` — Issue title - `body` — Issue body text - `state` — Open or closed - `created_at`, `updated_at`, `closed_at` — Timestamps - `is_pull_request` — Boolean flag - `user.login` — Author - `comments` — Count of comments - `html_url` — URL to the issue - `pull_request.*` — Nested fields when issue is a PREach record represents an item returned through GitHub's issues API.
---GitHub's issues endpoint can include both ordinary issues and pull requests, so the dataset preserves fields that allow the two to be distinguished.
## ⚙️ How It Was CreatedThe corpus contains examples such as:
Issues were scraped using Python’s `requests` library with pagination (`per_page=100`). The dataset was flattened to remove deep nesting and improve usability with machine learning models.```textGitHub issue├── title├── body├── state├── labels├── reactions├── comments└── lifecycle timestamps
All entries were saved to `.jsonl`, loaded into a Hugging Face DatasetDict using `load_dataset`, and then pushed to the 🤗 Hub.GitHub pull request├── title├── body├── state├── PR URL├── merge timestamp├── draft status├── comments└── lifecycle timestamps```
---The actual dataset preview contains both regular issues and PR records.
## Schema
The dataset contains **21 fields**.
| Field | Type | Description ||---|---|---|| `id` | integer | GitHub item ID || `number` | integer | Repository issue/PR number || `title` | string | Issue or PR title || `state` | string | Open/closed state || `body` | string | Main issue/PR description || `is_pull_request` | boolean | Whether the record represents a PR || `created_at` | string | Creation timestamp || `updated_at` | string | Last-update timestamp || `closed_at` | string | Closure timestamp when applicable || `user_login` | string | GitHub username of the author || `author_association` | string | Author's relationship to the repository || `pr_url` | string | Pull-request API URL when applicable || `pr_merged_at` | string | Merge timestamp when applicable || `comments_count` | integer | Number of comments || `reactions_total` | integer | Total recorded reactions || `reactions_plus1` | integer | 👍 reaction count || `reactions_heart` | integer | ❤️ reaction count || `draft` | boolean | Whether a PR is/was marked draft || `locked` | boolean | Whether the conversation is locked || `labels` | list[string] | GitHub labels || `html_url` | string | Public GitHub page || `is_pr_url` | boolean | URL-derived PR indicator || `comments` | list[string] | Retrieved discussion comments |
The serialized dataset metadata preserves these fields and their types.
## Collection
The data was collected from the public:
**`huggingface/datasets` GitHub repository**
using the **GitHub REST API** with paginated requests.
The original collection workflow used pagination with:
```textper_page = 100```
## 💡 Example Usageand transformed the returned GitHub objects into a flatter tabular representation suitable for Hugging Face Datasets.
The resulting records were stored as JSONL during processing, loaded into Hugging Face Datasets, and uploaded to the Hub.
## Temporal Coverage
The current viewer shows records spanning approximately:
**April 2020 → June 2025**
based on the stored creation/update timestamps.
Because this is a snapshot, GitHub activity after collection is not represented.
Likewise, older records may reflect their state at collection time rather than their present-day state.
## Load the Dataset
```pythonfrom datasets import load_dataset
# Load the dataset from the Hugging Face Hubds = load_dataset("rIsHu009/github-issues-updated", split="train")ds = load_dataset( "rIsHu009/huggingface-datasets-github-issues", split="train",)
# Access a sample recordprint(ds)print(ds[0])```
## Issues Only
```pythonissues = ds.filter( lambda row: not row["is_pull_request"])
print(issues)```
## Pull Requests Only
```pythonpull_requests = ds.filter( lambda row: row["is_pull_request"])
print(pull_requests)```
## Explore Open Issues
```pythonopen_issues = ds.filter( lambda row: row["state"] == "open" and not row["is_pull_request"])
for row in open_issues.select(range(5)): print(row["number"], row["title"])```
## Explore Labels
```pythonfrom collections import Counter
label_counts = Counter()
for labels in ds["labels"]: label_counts.update(labels)
print(label_counts.most_common(20))```
## Explore Engagement
```pythonpopular = ds.sort( "reactions_total", reverse=True,)
for row in popular.select(range(10)): print( row["reactions_total"], row["title"], row["html_url"], )```
## Potential Uses
The dataset can support experiments in:
- issue classification;- bug-report analysis;- topic modeling;- duplicate-issue research;- issue/PR distinction;- developer-discussion analysis;- label prediction;- issue triage;- repository analytics;- comment analysis;- software-maintenance research;- retrieval and semantic search;- text embeddings;- summarization experiments.
It can also be useful for teaching how real software-development data differs from clean benchmark datasets.
## Example ML Workflow
One possible workflow is:
```textGitHub issue / PR ↓title + body ↓text preprocessing ↓embedding / Transformer ↓classification or retrieval ↓label / topic / similar issue```
For example, the `labels` field can potentially be used to construct supervised classification targets after appropriate filtering and label-frequency analysis.
## Important Task-Metadata Note
This dataset is **not inherently an extractive question-answering dataset**.
The records do not contain canonical QA fields such as:
```textquestioncontextanswersanswer_start```
Instead, they contain GitHub issue and pull-request data.
Accordingly, the dataset is better viewed as a general **software-engineering text corpus** from which users may construct downstream NLP tasks.
## Data Quality
The dataset preserves real-world developer content rather than normalized benchmark text.
Users should expect:
- Markdown;- code blocks;- stack traces;- URLs;- usernames;- issue templates;- incomplete descriptions;- very short and very long bodies;- duplicate or related discussions;- bot-generated comments;- technical terminology;- multilingual fragments despite English being dominant.
These properties can be useful for realistic NLP research but require appropriate preprocessing.
## Issues vs Pull Requests
The `is_pull_request` field should be used when separating the two record types.
For example:
```pythonissue_count = sum( not x for x in ds["is_pull_request"])
pr_count = sum( ds["is_pull_request"])
print("Issues:", issue_count)print("Pull requests:", pr_count)```
This distinction matters because GitHub's issues API exposes pull requests alongside issues.
## Comments
The dataset includes a `comments` sequence in addition to the top-level issue/PR body.
This enables experiments involving:
```textinitial report ↓discussion ↓maintainer response ↓resolution / merge / closure```
However, not every record contains comments.
## Reactions and Engagement
Several fields preserve lightweight engagement signals:
- `reactions_total`- `reactions_plus1`- `reactions_heart`- `comments_count`
These can support exploratory analysis of developer engagement, although they should not automatically be interpreted as measures of issue importance or technical quality.
## Limitations
This dataset has several important limitations:
- it represents **one GitHub repository**, not software development generally;- it is a historical snapshot rather than live data;- issue and PR states may have changed after collection;- GitHub users can edit or delete content after collection;- API collection may not preserve every aspect of the original GitHub objects;- flattened fields lose some of GitHub's nested structure;- text can contain noise, Markdown and code;- author information reflects public GitHub usernames;- labels are repository-specific;- comments may include bots or automated systems;- no predefined train/validation/test benchmark split is provided.
Any derived ML benchmark should document its own splitting strategy to avoid leakage between related issues and pull requests.
## Privacy and Public Data
The dataset was collected from publicly accessible GitHub repository activity.
Nevertheless, public availability does not eliminate privacy considerations.
The corpus may contain:
- usernames;- links;- quoted conversations;- personal statements;- contact information voluntarily included in issue text.
Users should avoid using the dataset to profile individuals or infer sensitive characteristics.
## Provenance
```texthuggingface/datasets GitHub repository ↓ GitHub REST API ↓ paginated retrieval ↓ field flattening ↓ JSONL ↓ Hugging Face Dataset ↓ Hub publication```
This repository is a derived snapshot and is **not an official dataset release by Hugging Face**.
## Repository Contents
The repository contains:
- dataset shards under `data/`;- historical Arrow representation;- `dataset_info.json`;- dataset state metadata;- this dataset card.
The historical state metadata references the stored Arrow dataset artifact.
## Learning Context
This dataset was created during hands-on exploration of **Hugging Face Datasets, GitHub APIs, data collection and software-engineering NLP**.
Together with the Argilla workspace on this profile, it represents the data side of the ML workflow:
```textexternal data source ↓API collection ↓structured dataset ↓data exploration ↓annotation / preprocessing ↓modeling```
## Dataset Curator
**Naman Chanana**
- Hugging Face: `rIsHu009`- GitHub: `Rishy-09`
## Source
Original repository:
**Hugging Face `datasets` — GitHub repository**
The underlying GitHub content belongs to its respective authors and contributors.
---
*Educational software-engineering dataset preserved as part of an ongoing study of NLP, dataset engineering, APIs, and the Hugging Face ecosystem.*README.md+418-101