dataset_info:
features:
- name: url
dtype: large_string
- name: repository_url
dtype: large_string
- name: labels_url
dtype: large_string
- name: comments_url
dtype: large_string
- name: events_url
dtype: large_string
- name: html_url
dtype: large_string
- name: id
dtype: int64
- name: node_id
dtype: large_string
- name: number
dtype: int64
- name: title
dtype: large_string
- name: user
struct:
- name: login
dtype: string
- name: id
dtype: int64
- name: node_id
dtype: string
- name: avatar_url
dtype: string
- name: gravatar_id
dtype: string
- name: url
dtype: string
- name: html_url
dtype: string
- name: followers_url
dtype: string
- name: following_url
dtype: string
- name: gists_url
dtype: string
- name: starred_url
dtype: string
- name: subscriptions_url
dtype: string
- name: organizations_url
dtype: string
- name: repos_url
dtype: string
- name: events_url
dtype: string
- name: received_events_url
dtype: string
- name: type
dtype: string
- name: user_view_type
dtype: string
- name: site_admin
dtype: bool
- name: labels
list:
- name: id
dtype: int64
- name: node_id
dtype: string
- name: url
dtype: string
- name: name
dtype: string
- name: color
dtype: string
- name: default
dtype: bool
- name: description
dtype: string
- name: state
dtype: large_string
- name: locked
dtype: bool
- name: assignees
list:
- name: login
dtype: string
- name: id
dtype: int64
- name: node_id
dtype: string
- name: avatar_url
dtype: string
- name: gravatar_id
dtype: string
- name: url
dtype: string
- name: html_url
dtype: string
- name: followers_url
dtype: string
- name: following_url
dtype: string
- name: gists_url
dtype: string
- name: starred_url
dtype: string
- name: subscriptions_url
dtype: string
- name: organizations_url
dtype: string
- name: repos_url
dtype: string
- name: events_url
dtype: string
- name: received_events_url
dtype: string
- name: type
dtype: string
- name: user_view_type
dtype: string
- name: site_admin
dtype: bool
- name: milestone
struct:
- name: url
dtype: string
- name: html_url
dtype: string
- name: labels_url
dtype: string
- name: id
dtype: float64
- name: node_id
dtype: string
- name: number
dtype: float64
- name: title
dtype: string
- name: description
dtype: string
- name: creator
struct:
- name: login
dtype: string
- name: id
dtype: float64
- name: node_id
dtype: string
- name: avatar_url
dtype: string
- name: gravatar_id
dtype: string
- name: url
dtype: string
- name: html_url
dtype: string
- name: followers_url
dtype: string
- name: following_url
dtype: string
- name: gists_url
dtype: string
- name: starred_url
dtype: string
- name: subscriptions_url
dtype: string
- name: organizations_url
dtype: string
- name: repos_url
dtype: string
- name: events_url
dtype: string
- name: received_events_url
dtype: string
- name: type
dtype: string
- name: user_view_type
dtype: string
- name: site_admin
dtype: bool
- name: open_issues
dtype: float64
- name: closed_issues
dtype: float64
- name: state
dtype: string
- name: created_at
dtype: string
- name: updated_at
dtype: string
- name: due_on
dtype: string
- name: closed_at
dtype: string
- name: comments
dtype: int64
- name: created_at
dtype: timestamp[us, tz=UTC]
- name: updated_at
dtype: timestamp[us, tz=UTC]
- name: closed_at
dtype: timestamp[us, tz=UTC]
- name: assignee
struct:
- name: login
dtype: string
- name: id
dtype: float64
- name: node_id
dtype: string
- name: avatar_url
dtype: string
- name: gravatar_id
dtype: string
- name: url
dtype: string
- name: html_url
dtype: string
- name: followers_url
dtype: string
- name: following_url
dtype: string
- name: gists_url
dtype: string
- name: starred_url
dtype: string
- name: subscriptions_url
dtype: string
- name: organizations_url
dtype: string
- name: repos_url
dtype: string
- name: events_url
dtype: string
- name: received_events_url
dtype: string
- name: type
dtype: string
- name: user_view_type
dtype: string
- name: site_admin
dtype: bool
- name: author_association
dtype: large_string
- name: issue_field_values
list: 'null'
- name: type
dtype: float64
- name: active_lock_reason
dtype: float64
- name: draft
dtype: float64
- name: pull_request
struct:
- name: url
dtype: string
- name: html_url
dtype: string
- name: diff_url
dtype: string
- name: patch_url
dtype: string
- name: merged_at
dtype: string
- name: body
dtype: large_string
- name: closed_by
struct:
- name: login
dtype: string
- name: id
dtype: float64
- name: node_id
dtype: string
- name: avatar_url
dtype: string
- name: gravatar_id
dtype: string
- name: url
dtype: string
- name: html_url
dtype: string
- name: followers_url
dtype: string
- name: following_url
dtype: string
- name: gists_url
dtype: string
- name: starred_url
dtype: string
- name: subscriptions_url
dtype: string
- name: organizations_url
dtype: string
- name: repos_url
dtype: string
- name: events_url
dtype: string
- name: received_events_url
dtype: string
- name: type
dtype: string
- name: user_view_type
dtype: string
- name: site_admin
dtype: bool
- name: reactions
struct:
- name: url
dtype: string
- name: total_count
dtype: int64
- name: '+1'
dtype: int64
- name: '-1'
dtype: int64
- name: laugh
dtype: int64
- name: hooray
dtype: int64
- name: confused
dtype: int64
- name: heart
dtype: int64
- name: rocket
dtype: int64
- name: eyes
dtype: int64
- name: timeline_url
dtype: large_string
- name: performed_via_github_app
dtype: float64
- name: state_reason
dtype: large_string
- name: sub_issues_summary
struct:
- name: total
dtype: float64
- name: completed
dtype: float64
- name: percent_completed
dtype: float64
- name: issue_dependencies_summary
struct:
- name: blocked_by
dtype: float64
- name: total_blocked_by
dtype: float64
- name: blocking
dtype: float64
- name: total_blocking
dtype: float64
- name: pinned_comment
dtype: float64
- name: is_pull_request
dtype: bool
- name: comments_text
list: string
splits:
- name: train
num_bytes: 50812005
num_examples: 8084
download_size: 39325983
dataset_size: 50812005
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
license: apache-2.0
task_categories:
- text-classification
- summarization
language:
- en
tags:
- github
- issues
- bug-report
- pull-request
- software-engineering
- datasets
- huggingface
pretty_name: HuggingFace Datasets Library GitHub Issues
size_categories:
- 1K<n<10K
HuggingFace Datasets Library GitHub Issues Dataset
Dataset Description
This dataset contains all issues and pull requests (open and closed) from the huggingface/datasets GitHub repository, along with their comment threads. It was collected on July 20, 2026 via the GitHub REST API and follows the workflow described in the Hugging Face NLP course — Creating your own dataset.
- Repository: huggingface/datasets
- Total rows: 8,084 (issues + pull requests)
- Date range: April 14, 2020 → July 19, 2026
- Format: Parquet (single shard,
trainsplit)
Dataset Structure
Splits
| Split | Num examples |
|---|---|
| train | 8,084 |
Composition
| Type | Count |
|---|---|
| Issues | 3,293 |
| Pull requests | 4,791 |
| Open | 1,162 |
| Closed | 6,922 |
| With labels | 1,791 |
| With comments | 6,108 |
| Total comments | 20,791 |
Key Columns
| Column | Type | Description |
|---|---|---|
number |
int64 | GitHub issue/PR number (unique, no duplicates) |
title |
string | Issue/PR title |
body |
string | Issue/PR body (Markdown; 417 nulls — normal) |
state |
string | open or closed |
is_pull_request |
bool | True if this row is a PR, False if it's an issue |
labels |
list | List of label objects (name, color, id, ...) — 1,791 rows have labels |
comments |
int64 | Number of comments on the issue |
comments_text |
list[str] | The body text of each comment (fetched separately via the comments API) |
user |
struct | The author (login, id, avatar_url, type, ...) |
created_at |
timestamp | When the issue/PR was created |
updated_at |
timestamp | When it was last updated |
closed_at |
timestamp | When it was closed (null for 1,162 open issues) |
reactions |
struct | Reaction counts (+1, -1, laugh, heart, rocket, eyes, ...) |
pull_request |
struct | PR metadata (url, diff_url, patch_url, merged_at) — null for issues |
milestone |
struct | Milestone info (url, title, creator, state, ...) |
assignees |
list | Assigned users |
Top Labels
| Label | Count |
|---|---|
| bug | 710 |
| enhancement | 516 |
| dataset request | 163 |
| dataset-viewer | 90 |
| dataset bug | 74 |
| dataset contribution | 74 |
| documentation | 67 |
| good first issue | 53 |
| duplicate | 30 |
| generic discussion | 27 |
| question | 24 |
| vision | 24 |
| streaming | 22 |
| speech | 20 |
| maintenance | 19 |
Collection Methodology
The dataset was collected using a custom Python script (prepare_dataset.py) that:
- Fetched all issues + PRs using the GitHub REST API with
since-based pagination (sorted byupdated_atascending) to bypass GitHub's 10,000-record page-number cap. Issues were written incrementally to a JSONL file for crash recovery. - Added an
is_pull_requestflag based on whether thepull_requestfield is present. - Pushed the issues-only dataset to the Hub (as a safety checkpoint before the long comment fetch).
- Fetched comment bodies for every issue with
comments > 0(1,975 zero-comment issues were skipped as an optimization). Comments were fetched withper_page=100to minimize pagination requests. - Pushed the final dataset (issues + comments) to the Hub.
GitHub's authenticated rate limit (5,000 requests/hour) was respected throughout — the script sleeps until the rate-limit window resets when the budget is exhausted, with a one-hour fallback sleep if the reset header is missing. Transient network errors (ConnectionError, Timeout) and HTTP 5xx responses are retried with exponential backoff.
Known Limitations
- 262 missing issue numbers in the range 1–8,346: these correspond to deleted issues/PRs on GitHub that cannot be retrieved via the API. This is expected and unavoidable.
- 6 minor mismatches between the
commentscount field and the length ofcomments_text: these occur when comments were added or deleted between the issue fetch and the comment fetch. Thecommentsfield reflects the count at fetch time;comments_textreflects the actual comments retrieved. bodyhas 417 nulls — some issues/PRs simply have no body text.- The dataset includes both issues and pull requests (GitHub's issues endpoint returns both). Use the
is_pull_requestcolumn to filter.
Potential Use Cases
- Issue classification: Train a model to categorize issues (bug, enhancement, question, dataset request) based on title + body.
- Bug triage: Predict which label an issue should have, or whether it's likely to be closed.
- Duplicate detection: Find semantically similar issues using embeddings of title + body.
- Pull request summarization: Summarize long PR bodies or comment threads.
- Software engineering research: Analyze issue lifecycle, response times, contributor activity, label distributions, etc.
- LLM fine-tuning: Build instruction-tuning datasets for "classify this issue" or "summarize this thread" tasks.
Licensing
The dataset is derived from public GitHub issue data from the huggingface/datasets repository, which is licensed under Apache 2.0. The dataset is provided under the same license.
Citation
If you use this dataset, please cite:
@misc{datasets-issues-dataset,
author = {Noamaan Mulla},
title = {HuggingFace Datasets Library GitHub Issues Dataset},
year = {2026},
url = {https://huggingface.co/datasets/noamaanMulla-03/datasets-issues},
note = {Collected via the GitHub REST API on July 20, 2026}
}
Also cite the original repository:
@misc{lhoest2021datasets,
author = {Quentin Lhoest and Albert Villanova del Moral and Patrick von Platen and Thomas Wolf and Leandro von Werra and Jannis Bulian and Albert Webson and Mario Šimko and Moustafa AlAkhras and Sharif Rahman and Clément Delangue and Lewis Tunstall and Sylvain Gugger and Pedro Cisneros and Anthony Moi and Jonathan Tow and Sara Charte and Marc Sun and Sagnik Ray and Teven Le Scao and Nicholas Broad and Alexander M. Rush and Sasha Luccioni and Maria Lomeli and Patrick Altmeyer and Vilson Rodrigues and Fabio Ciccone and Andrea Sottana},
title = {Datasets: A Community Library for Natural Language Processing Datasets},
year = {2021},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/datasets}}
}