Datasets:
Document Hugging Face GitHub issues dataset
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131---annotations_creators:- unknownlanguage:- enlanguage_creators:- foundlicense: mitmultilinguality: monolingualpretty_name: GitHub Issues Dataset - HuggingFace/datasetssize_categories:- 10K<n<100Ksource_datasets: []task_categories:- text-classificationtask_ids:- topic-classification- extractive-qaconfigs:- config_name: defaultdata_files:- split: trainpath: data/train-*dataset_info:features:- name: iddtype: int64- name: numberdtype: int64- name: titledtype: string- name: statedtype: string- name: bodydtype: string- name: is_pull_requestdtype: bool- name: created_atdtype: string- name: updated_atdtype: string- name: closed_atdtype: string- name: user_logindtype: string- name: author_associationdtype: string- name: pr_urldtype: string- name: pr_merged_atdtype: string- name: comments_countdtype: int64- name: reactions_totaldtype: int64- name: reactions_plus1dtype: int64- name: reactions_heartdtype: int64- name: draftdtype: bool- name: lockeddtype: bool- name: labelssequence: string- name: html_urldtype: string- name: is_pr_urldtype: bool- name: commentssequence: stringsplits:- name: trainnum_bytes: 28585585num_examples: 7474download_size: 10749935dataset_size: 28585585---# 📊 GitHub Issues Dataset (HuggingFace/datasets Repository)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**.---## 📌 Dataset Summary- **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---## 📂 Fields IncludedEach entry contains:- `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 PR---## ⚙️ How It Was CreatedIssues 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.All entries were saved to `.jsonl`, loaded into a Hugging Face DatasetDict using `load_dataset`, and then pushed to the 🤗 Hub.---## 💡 Example Usage```pythonfrom datasets import load_dataset# Load the dataset from the Hugging Face Hubds = load_dataset("rIsHu009/github-issues-updated", split="train")# Access a sample recordprint(ds[0])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448---pretty_name: Hugging Face Datasets — GitHub Issues & Pull Requestslanguage:- enlicense: mitsize_categories:- 1K<n<10Ktask_categories:- text-classificationtags:- github- github-issues- pull-requests- software-engineering- bug-tracking- developer-data- nlp- huggingface- datasets---# Hugging Face Datasets — GitHub Issues & Pull RequestsA 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**.> This is a historical snapshot of public GitHub activity, not a live mirror of the repository.## 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 |The stored dataset metadata confirms **7,474 examples** in the single training split.## What Is Included?Each 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.The corpus contains examples such as:```textGitHub issue├── title├── body├── state├── labels├── reactions├── comments└── lifecycle timestampsGitHub 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.## SchemaThe 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.## CollectionThe 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```and 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 CoverageThe 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_datasetds = load_dataset("rIsHu009/huggingface-datasets-github-issues",split="train",)print(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 Counterlabel_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 UsesThe 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 WorkflowOne 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 NoteThis 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 QualityThe 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 RequestsThe `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.## CommentsThe 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 EngagementSeveral 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.## LimitationsThis 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 DataThe 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 ContentsThe 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 ContextThis 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`## SourceOriginal 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