Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -368,4 +368,151 @@ configs:
|
|
| 368 |
data_files:
|
| 369 |
- split: train
|
| 370 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
data_files:
|
| 369 |
- split: train
|
| 370 |
path: data/train-*
|
| 371 |
+
license: apache-2.0
|
| 372 |
+
task_categories:
|
| 373 |
+
- text-classification
|
| 374 |
+
- summarization
|
| 375 |
+
language:
|
| 376 |
+
- en
|
| 377 |
+
tags:
|
| 378 |
+
- github
|
| 379 |
+
- issues
|
| 380 |
+
- bug-report
|
| 381 |
+
- pull-request
|
| 382 |
+
- software-engineering
|
| 383 |
+
- datasets
|
| 384 |
+
- huggingface
|
| 385 |
+
pretty_name: HuggingFace Datasets Library GitHub Issues
|
| 386 |
+
size_categories:
|
| 387 |
+
- 1K<n<10K
|
| 388 |
---
|
| 389 |
+
|
| 390 |
+
# HuggingFace Datasets Library GitHub Issues Dataset
|
| 391 |
+
|
| 392 |
+
## Dataset Description
|
| 393 |
+
|
| 394 |
+
This dataset contains **all issues and pull requests** (open and closed) from the [`huggingface/datasets`](https://github.com/huggingface/datasets) GitHub repository, along with their comment threads. It was collected on **July 20, 2026** via the [GitHub REST API](https://docs.github.com/en/rest/issues/issues) and follows the workflow described in the [Hugging Face NLP course — Creating your own dataset](https://huggingface.co/learn/nlp-course/chapter5/6).
|
| 395 |
+
|
| 396 |
+
- **Repository:** [huggingface/datasets](https://github.com/huggingface/datasets)
|
| 397 |
+
- **Total rows:** 8,084 (issues + pull requests)
|
| 398 |
+
- **Date range:** April 14, 2020 → July 19, 2026
|
| 399 |
+
- **Format:** Parquet (single shard, `train` split)
|
| 400 |
+
|
| 401 |
+
## Dataset Structure
|
| 402 |
+
|
| 403 |
+
### Splits
|
| 404 |
+
|
| 405 |
+
| Split | Num examples |
|
| 406 |
+
|-------|-------------:|
|
| 407 |
+
| train | 8,084 |
|
| 408 |
+
|
| 409 |
+
### Composition
|
| 410 |
+
|
| 411 |
+
| Type | Count |
|
| 412 |
+
|-----------------|-------:|
|
| 413 |
+
| Issues | 3,293 |
|
| 414 |
+
| Pull requests | 4,791 |
|
| 415 |
+
| Open | 1,162 |
|
| 416 |
+
| Closed | 6,922 |
|
| 417 |
+
| With labels | 1,791 |
|
| 418 |
+
| With comments | 6,108 |
|
| 419 |
+
| Total comments | 20,791 |
|
| 420 |
+
|
| 421 |
+
### Key Columns
|
| 422 |
+
|
| 423 |
+
| Column | Type | Description |
|
| 424 |
+
|---------------------|-----------|-----------------------------------------------------------------------------|
|
| 425 |
+
| `number` | int64 | GitHub issue/PR number (unique, no duplicates) |
|
| 426 |
+
| `title` | string | Issue/PR title |
|
| 427 |
+
| `body` | string | Issue/PR body (Markdown; 417 nulls — normal) |
|
| 428 |
+
| `state` | string | `open` or `closed` |
|
| 429 |
+
| `is_pull_request` | bool | `True` if this row is a PR, `False` if it's an issue |
|
| 430 |
+
| `labels` | list | List of label objects (`name`, `color`, `id`, ...) — 1,791 rows have labels |
|
| 431 |
+
| `comments` | int64 | Number of comments on the issue |
|
| 432 |
+
| `comments_text` | list[str] | The body text of each comment (fetched separately via the comments API) |
|
| 433 |
+
| `user` | struct | The author (login, id, avatar_url, type, ...) |
|
| 434 |
+
| `created_at` | timestamp | When the issue/PR was created |
|
| 435 |
+
| `updated_at` | timestamp | When it was last updated |
|
| 436 |
+
| `closed_at` | timestamp | When it was closed (null for 1,162 open issues) |
|
| 437 |
+
| `reactions` | struct | Reaction counts (+1, -1, laugh, heart, rocket, eyes, ...) |
|
| 438 |
+
| `pull_request` | struct | PR metadata (url, diff_url, patch_url, merged_at) — null for issues |
|
| 439 |
+
| `milestone` | struct | Milestone info (url, title, creator, state, ...) |
|
| 440 |
+
| `assignees` | list | Assigned users |
|
| 441 |
+
|
| 442 |
+
### Top Labels
|
| 443 |
+
|
| 444 |
+
| Label | Count |
|
| 445 |
+
|-----------------------|------:|
|
| 446 |
+
| bug | 710 |
|
| 447 |
+
| enhancement | 516 |
|
| 448 |
+
| dataset request | 163 |
|
| 449 |
+
| dataset-viewer | 90 |
|
| 450 |
+
| dataset bug | 74 |
|
| 451 |
+
| dataset contribution | 74 |
|
| 452 |
+
| documentation | 67 |
|
| 453 |
+
| good first issue | 53 |
|
| 454 |
+
| duplicate | 30 |
|
| 455 |
+
| generic discussion | 27 |
|
| 456 |
+
| question | 24 |
|
| 457 |
+
| vision | 24 |
|
| 458 |
+
| streaming | 22 |
|
| 459 |
+
| speech | 20 |
|
| 460 |
+
| maintenance | 19 |
|
| 461 |
+
|
| 462 |
+
## Collection Methodology
|
| 463 |
+
|
| 464 |
+
The dataset was collected using a custom Python script ([`prepare_dataset.py`](https://github.com/)) that:
|
| 465 |
+
|
| 466 |
+
1. **Fetched all issues + PRs** using the GitHub REST API with `since`-based pagination (sorted by `updated_at` ascending) to bypass GitHub's 10,000-record page-number cap. Issues were written incrementally to a JSONL file for crash recovery.
|
| 467 |
+
2. **Added an `is_pull_request` flag** based on whether the `pull_request` field is present.
|
| 468 |
+
3. **Pushed the issues-only dataset to the Hub** (as a safety checkpoint before the long comment fetch).
|
| 469 |
+
4. **Fetched comment bodies** for every issue with `comments > 0` (1,975 zero-comment issues were skipped as an optimization). Comments were fetched with `per_page=100` to minimize pagination requests.
|
| 470 |
+
5. **Pushed the final dataset** (issues + comments) to the Hub.
|
| 471 |
+
|
| 472 |
+
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.
|
| 473 |
+
|
| 474 |
+
## Known Limitations
|
| 475 |
+
|
| 476 |
+
- **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.
|
| 477 |
+
- **6 minor mismatches** between the `comments` count field and the length of `comments_text`: these occur when comments were added or deleted between the issue fetch and the comment fetch. The `comments` field reflects the count at fetch time; `comments_text` reflects the actual comments retrieved.
|
| 478 |
+
- **`body` has 417 nulls** — some issues/PRs simply have no body text.
|
| 479 |
+
- The dataset includes **both issues and pull requests** (GitHub's issues endpoint returns both). Use the `is_pull_request` column to filter.
|
| 480 |
+
|
| 481 |
+
## Potential Use Cases
|
| 482 |
+
|
| 483 |
+
- **Issue classification:** Train a model to categorize issues (bug, enhancement, question, dataset request) based on title + body.
|
| 484 |
+
- **Bug triage:** Predict which label an issue should have, or whether it's likely to be closed.
|
| 485 |
+
- **Duplicate detection:** Find semantically similar issues using embeddings of title + body.
|
| 486 |
+
- **Pull request summarization:** Summarize long PR bodies or comment threads.
|
| 487 |
+
- **Software engineering research:** Analyze issue lifecycle, response times, contributor activity, label distributions, etc.
|
| 488 |
+
- **LLM fine-tuning:** Build instruction-tuning datasets for "classify this issue" or "summarize this thread" tasks.
|
| 489 |
+
|
| 490 |
+
## Licensing
|
| 491 |
+
|
| 492 |
+
The dataset is derived from public GitHub issue data from the [`huggingface/datasets`](https://github.com/huggingface/datasets) repository, which is licensed under [Apache 2.0](https://github.com/huggingface/datasets/blob/main/LICENSE). The dataset is provided under the same license.
|
| 493 |
+
|
| 494 |
+
## Citation
|
| 495 |
+
|
| 496 |
+
If you use this dataset, please cite:
|
| 497 |
+
|
| 498 |
+
```bibtex
|
| 499 |
+
@misc{datasets-issues-dataset,
|
| 500 |
+
author = {Noamaan Mulla},
|
| 501 |
+
title = {HuggingFace Datasets Library GitHub Issues Dataset},
|
| 502 |
+
year = {2026},
|
| 503 |
+
url = {https://huggingface.co/datasets/noamaanMulla-03/datasets-issues},
|
| 504 |
+
note = {Collected via the GitHub REST API on July 20, 2026}
|
| 505 |
+
}
|
| 506 |
+
```
|
| 507 |
+
|
| 508 |
+
Also cite the original repository:
|
| 509 |
+
|
| 510 |
+
```bibtex
|
| 511 |
+
@misc{lhoest2021datasets,
|
| 512 |
+
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},
|
| 513 |
+
title = {Datasets: A Community Library for Natural Language Processing Datasets},
|
| 514 |
+
year = {2021},
|
| 515 |
+
publisher = {GitHub},
|
| 516 |
+
howpublished = {\url{https://github.com/huggingface/datasets}}
|
| 517 |
+
}
|
| 518 |
+
```
|