Ruslan10 commited on
Commit
f5ad56f
Β·
verified Β·
1 Parent(s): 9672fbf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +180 -0
README.md CHANGED
@@ -293,3 +293,183 @@ configs:
293
  - split: train
294
  path: data/train-*
295
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  - split: train
294
  path: data/train-*
295
  ---
296
+
297
+
298
+ # πŸ™ GitHub Issues Dataset
299
+
300
+ ![Dataset Size](https://img.shields.io/badge/Examples-1%2C000-blue)
301
+ ![Features](https://img.shields.io/badge/Features-30%2B-8A2BE2)
302
+ ![License](https://img.shields.io/badge/License-MIT-informational)
303
+
304
+ A curated dataset of GitHub issues and pull requests with rich metadata including comments, labels, reactions, assignees, and timeline information. Ideal for training models on software engineering tasks, issue classification, triage automation, and developer behavior analysis.
305
+
306
+ ---
307
+
308
+ ## πŸ“Š Dataset Overview
309
+
310
+ | Property | Value |
311
+ |----------|-------|
312
+ | **Examples** | 1,000 issues/PRs |
313
+ | **Source** | GitHub API (v3) |
314
+ | **Domains** | Open-source software repositories |
315
+ | **Languages** | Primarily English |
316
+ | **Date Range** | Collected in 2024–2025 |
317
+ | **Avg. Length** | ~1,200 characters per issue body |
318
+
319
+ ### ✨ Key Features
320
+ - βœ… Full issue metadata (title, body, state, timestamps)
321
+ - βœ… Author and assignee information with GitHub profiles
322
+ - βœ… Labels with colors and descriptions
323
+ - βœ… Nested comments (full conversation threads)
324
+ - βœ… Reaction counts (`+1`, `-1`, πŸš€, ❀️, etc.)
325
+ - βœ… Pull request detection (`is_pull_request` flag)
326
+ - βœ… Dependency tracking (`blocked_by` / `blocking` relationships)
327
+ - βœ… Sub-issue completion metrics
328
+
329
+ ---
330
+
331
+ ## 🧱 Schema
332
+
333
+ ### Top-Level Fields
334
+ | Field | Type | Description |
335
+ |-------|------|-------------|
336
+ | `url` | `string` | API URL of the issue |
337
+ | `html_url` | `string` | GitHub web URL |
338
+ | `id` / `node_id` | `int64` / `string` | GitHub identifiers |
339
+ | `number` | `int64` | Issue number within repository |
340
+ | `title` | `string` | Issue title |
341
+ | `body` | `string` | Full issue description (Markdown) |
342
+ | `state` | `string` | `open` \| `closed` |
343
+ | `state_reason` | `string` | Reason for closure (`completed`, `not_planned`, etc.) |
344
+ | `locked` | `bool` | Whether conversation is locked |
345
+ | `draft` | `bool` | Whether issue is a draft |
346
+ | `is_pull_request` | `bool` | `True` if this is a PR (not a regular issue) |
347
+ | `created_at` / `updated_at` / `closed_at` | `timestamp` | Lifecycle timestamps |
348
+ | `author_association` | `string` | Author's relationship to repo (`OWNER`, `MEMBER`, `CONTRIBUTOR`, etc.) |
349
+
350
+ ### Nested Structures
351
+ | Field | Structure | Key Subfields |
352
+ |-------|-----------|---------------|
353
+ | `user` | `struct` | `login`, `id`, `type` (`User`/`Bot`), `site_admin` |
354
+ | `assignee` / `assignees` | `struct` / `list` | GitHub user profiles of assignees |
355
+ | `closed_by` | `struct` | User who closed the issue |
356
+ | `labels` | `list` | `name`, `color`, `description`, `default` |
357
+ | `comments` | `list<string>` | Full comment texts in chronological order |
358
+ | `reactions` | `struct` | `total_count`, `+1`, `-1`, `heart`, `rocket`, `eyes`, etc. |
359
+ | `pull_request` | `struct` | PR-specific fields (`merged_at`, diff/patch URLs) |
360
+ | `sub_issues_summary` | `struct` | `total`, `completed`, `percent_completed` |
361
+ | `issue_dependencies_summary` | `struct` | `blocked_by`, `blocking` counts |
362
+
363
+ > πŸ’‘ **Note**: Fields like `milestone`, `type`, and `performed_via_github_app` may contain `null` values for issues where these features aren't used.
364
+
365
+ ---
366
+
367
+ ## πŸš€ Usage
368
+
369
+ ### Load with πŸ€— Datasets
370
+ ```python
371
+ from datasets import load_dataset
372
+
373
+ # Load the full dataset
374
+ dataset = load_dataset("Ruslan10/github-issues")
375
+
376
+ # Access the training split
377
+ train_data = dataset["train"]
378
+
379
+ # Example: Get first issue's title and body
380
+ print(train_data[0]["title"])
381
+ print(train_data[0]["body"][:200] + "...") # Preview first 200 chars
382
+ ```
383
+
384
+ ### Filter Pull Requests vs Issues
385
+ ```python
386
+ # Separate PRs from regular issues
387
+ pull_requests = [ex for ex in train_data if ex["is_pull_request"]]
388
+ regular_issues = [ex for ex in train_data if not ex["is_pull_request"]]
389
+
390
+ print(f"PRs: {len(pull_requests)}, Issues: {len(regular_issues)}")
391
+ ```
392
+
393
+ ### Analyze Labels Distribution
394
+ ```python
395
+ from collections import Counter
396
+
397
+ all_labels = []
398
+ for issue in train_data:
399
+ for label in issue["labels"]:
400
+ all_labels.append(label["name"])
401
+
402
+ label_counts = Counter(all_labels).most_common(10)
403
+ print("Top 10 labels:", label_counts)
404
+ ```
405
+
406
+ ### Extract Comment Threads
407
+ ```python
408
+ # Get all comments for a specific issue
409
+ issue = train_data[42]
410
+ for i, comment in enumerate(issue["comments"]):
411
+ print(f"Comment {i+1}: {comment[:100]}...") # Preview
412
+ ```
413
+
414
+ ---
415
+
416
+ ## πŸ’‘ Example Applications
417
+
418
+ - **Issue Triage**: Classify issues by priority/severity using labels and metadata
419
+ - **Auto-Tagging**: Predict appropriate labels based on title/body content
420
+ - **Duplicate Detection**: Find similar issues using semantic similarity
421
+ - **PR Prediction**: Forecast whether an issue will become a pull request
422
+ - **Sentiment Analysis**: Analyze developer emotions in comments/reactions
423
+ - **Knowledge Extraction**: Build QA systems over project documentation in issues
424
+
425
+ ---
426
+
427
+ ## ⚠️ Limitations & Considerations
428
+
429
+ | Aspect | Note |
430
+ |--------|------|
431
+ | **Bias** | Reflects patterns of active OSS projects; may underrepresent niche ecosystems |
432
+ | **Privacy** | All data is from public GitHub repositories (no private data included) |
433
+ | **Language** | Primarily English; limited multilingual support |
434
+ | **Temporal Scope** | Snapshot from collection period; doesn't reflect real-time GitHub state |
435
+ | **Rate Limits** | Original collection respected GitHub API rate limits |
436
+
437
+ ---
438
+
439
+ ## πŸ” License
440
+
441
+ - **Dataset**: MIT License
442
+ - **Source Data**: Subject to [GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service) and individual repository licenses
443
+ - **Usage Rights**: For research and educational purposes. Commercial use requires compliance with GitHub's ToS.
444
+
445
+ > ℹ️ This dataset contains only publicly available information. All rights to original content remain with issue authors and repository owners.
446
+
447
+ ---
448
+
449
+ ## πŸ“š Citation
450
+
451
+ If you use this dataset in your research, please cite:
452
+
453
+ ```bibtex
454
+ @dataset{github_issues_2025,
455
+ author = {Ruslan Prashchurovich},
456
+ title = {GitHub Issues Dataset},
457
+ year = {2025},
458
+ publisher = {Hugging Face},
459
+ journal = {Hugging Face Datasets},
460
+ url = {https://huggingface.co/datasets/your-username/github-issues}
461
+ }
462
+ ```
463
+
464
+ ---
465
+
466
+ ## πŸ™ Acknowledgements
467
+
468
+ - Data collected via [GitHub REST API v3](https://docs.github.com/en/rest)
469
+ - Inspired by prior work on software engineering datasets (e.g., [IssueSum](https://arxiv.org/abs/2106.06604), [PRSummarizer](https://arxiv.org/abs/2202.07324))
470
+ - Processed using πŸ€— Datasets library
471
+
472
+ ---
473
+
474
+ *Dataset prepared by [Ruslan Prashchurovich] β€’ Updated February 2026*
475
+ *⚠️ Not affiliated with GitHub Inc. or Microsoft Corporation*