Datasets:
|
Download README.md from rIsHu009/huggingface-datasets-github-issues: direct link, hf CLI and curl.
- Browser
- Download file 11.1 kB
-
https://huggingface.co/datasets/rIsHu009/huggingface-datasets-github-issues/resolve/main/README.md
- Command line
-
hf download hf://datasets/rIsHu009/huggingface-datasets-github-issues/README.md
-
curl -L -o README.md https://huggingface.co/datasets/rIsHu009/huggingface-datasets-github-issues/resolve/main/README.md
11.1 kB
| pretty_name: Hugging Face Datasets — GitHub Issues & Pull Requests | |
| language: | |
| - en | |
| license: mit | |
| size_categories: | |
| - 1K<n<10K | |
| task_categories: | |
| - text-classification | |
| tags: | |
| - github | |
| - github-issues | |
| - pull-requests | |
| - software-engineering | |
| - bug-tracking | |
| - developer-data | |
| - nlp | |
| - huggingface | |
| - datasets | |
| # Hugging Face Datasets — GitHub Issues & Pull Requests | |
| 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**. | |
| > 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: | |
| ```text | |
| GitHub issue | |
| ├── title | |
| ├── body | |
| ├── state | |
| ├── labels | |
| ├── reactions | |
| ├── comments | |
| └── lifecycle timestamps | |
| 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: | |
| ```text | |
| per_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 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 | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset( | |
| "rIsHu009/huggingface-datasets-github-issues", | |
| split="train", | |
| ) | |
| print(ds) | |
| print(ds[0]) | |
| ``` | |
| ## Issues Only | |
| ```python | |
| issues = ds.filter( | |
| lambda row: not row["is_pull_request"] | |
| ) | |
| print(issues) | |
| ``` | |
| ## Pull Requests Only | |
| ```python | |
| pull_requests = ds.filter( | |
| lambda row: row["is_pull_request"] | |
| ) | |
| print(pull_requests) | |
| ``` | |
| ## Explore Open Issues | |
| ```python | |
| open_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 | |
| ```python | |
| from collections import Counter | |
| label_counts = Counter() | |
| for labels in ds["labels"]: | |
| label_counts.update(labels) | |
| print(label_counts.most_common(20)) | |
| ``` | |
| ## Explore Engagement | |
| ```python | |
| popular = 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: | |
| ```text | |
| GitHub 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: | |
| ```text | |
| question | |
| context | |
| answers | |
| answer_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: | |
| ```python | |
| issue_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: | |
| ```text | |
| initial 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 | |
| ```text | |
| huggingface/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: | |
| ```text | |
| external 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.* |