Jason-ice-SCUT commited on
Commit
8fbb5c2
·
verified ·
1 Parent(s): dc663ba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -37
README.md CHANGED
@@ -380,35 +380,6 @@ task_ids:
380
 
381
  # Dataset Card for GitHub Issues without Comments
382
 
383
- ## Table of Contents
384
- - [Dataset Card Creation Guide](#dataset-card-creation-guide)
385
- - [Table of Contents](#table-of-contents)
386
- - [Dataset Description](#dataset-description)
387
- - [Dataset Summary](#dataset-summary)
388
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
389
- - [Languages](#languages)
390
- - [Dataset Structure](#dataset-structure)
391
- - [Data Instances](#data-instances)
392
- - [Data Fields](#data-fields)
393
- - [Data Splits](#data-splits)
394
- - [Dataset Creation](#dataset-creation)
395
- - [Curation Rationale](#curation-rationale)
396
- - [Source Data](#source-data)
397
- - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
398
- - [Who are the source language producers?](#who-are-the-source-language-producers)
399
- - [Annotations](#annotations)
400
- - [Annotation process](#annotation-process)
401
- - [Who are the annotators?](#who-are-the-annotators)
402
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
403
- - [Considerations for Using the Data](#considerations-for-using-the-data)
404
- - [Social Impact of Dataset](#social-impact-of-dataset)
405
- - [Discussion of Biases](#discussion-of-biases)
406
- - [Other Known Limitations](#other-known-limitations)
407
- - [Additional Information](#additional-information)
408
- - [Dataset Curators](#dataset-curators)
409
- - [Licensing Information](#licensing-information)
410
- - [Citation Information](#citation-information)
411
- - [Contributions](#contributions)
412
 
413
  ## Dataset Description
414
 
@@ -418,17 +389,106 @@ task_ids:
418
 
419
  The GitHub Issues dataset contains issues and pull requests from the 🤗 Datasets [repository](https://github.com/huggingface/datasets) ,but it does not include the comments.It supports tasks like Text classification and text retrieval. Each entry is an English-language discussion centered around NLP, computer vision, and other machine learning datasets.
420
 
421
- ### Supported Tasks and Leaderboards
422
- [More Information Needed.]
 
 
 
 
 
 
 
 
 
 
 
423
 
424
- ## Dataset Structure
 
425
 
426
- [More Information Needed.]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
 
428
- ### Data Instances
 
 
 
 
 
429
 
430
- [More Information Needed.]
 
431
 
432
- ### Data Fields
 
 
 
 
433
 
434
- [More Information Needed.]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
 
381
  # Dataset Card for GitHub Issues without Comments
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
 
384
  ## Dataset Description
385
 
 
389
 
390
  The GitHub Issues dataset contains issues and pull requests from the 🤗 Datasets [repository](https://github.com/huggingface/datasets) ,but it does not include the comments.It supports tasks like Text classification and text retrieval. Each entry is an English-language discussion centered around NLP, computer vision, and other machine learning datasets.
391
 
392
+ ## Dataset Metadata
393
+ | Attribute | Value |
394
+ |--------------------------|-----------------------------------------------------------------------|
395
+ | **Modalities** | Tabular, Text |
396
+ | **Data Formats** | parquet |
397
+ | **Dataset Size** | 1K – 10K samples (7.74k rows in total) |
398
+ | **Supported Libraries** | Datasets, pandas, Croissant |
399
+ | **Language** | English (issue titles, bodies, and metadata are in English) |
400
+ | **Original Source** | https://huggingface.co/datasets/Jason-ice-SCUT/github-issues |
401
+ | **License** | Not specified (refer to original GitHub repository and Hugging Face terms for usage permissions) |
402
+ | **Primary Task** | Text Classification, Text Retrieval |
403
+ | **Sub-tasks** | Multi-class classification, Multi-label classification, Document retrieval |
404
+ | **Data Split** | Single split (`train`: 7.74k rows) |
405
 
406
+ ## Data Structure
407
+ The dataset includes over 30 columns covering issue metadata, content, contributor info, and interaction data. Key columns are detailed below (full schema includes additional nested fields):
408
 
409
+ | Column Name | Data Type | Description |
410
+ |---------------------|-----------------|-----------------------------------------------------------------------------|
411
+ | `id` | int64 | Unique GitHub issue ID (range: 599M – 3.53B) |
412
+ | `node_id` | string | GitHub node ID for the issue/pull request |
413
+ | `number` | int64 | Repository-specific issue/pull request number (range: 1 – 7.82k) |
414
+ | `title` | string | Issue/pull request title (length: 1 – 290 characters) |
415
+ | `body` | string | Detailed content of the issue/pull request (length: 0 – 228k characters) |
416
+ | `user` | dict | Contributor information (avatar URL, login, ID, profile URL, etc.) |
417
+ | `labels` | list | Issue labels (length: 0 – 4; e.g., "enhancement", "bug") |
418
+ | `state` | string | Issue state (2 values: "open" or "closed") |
419
+ | `locked` | bool | Whether the issue is locked (1 class: `false`) |
420
+ | `comments` | int64 | Number of comments (range: 0 – 70) |
421
+ | `created_at` | string (date) | Creation timestamp (range: 2020-04-14 – 2025-10-20) |
422
+ | `updated_at` | string (date) | Last update timestamp |
423
+ | `closed_at` | string | Closure timestamp (length: 3 – 25 characters; `NaT` if open) |
424
+ | `author_association`| string | Contributor's association with the repo (4 values: MEMBER, CONTRIBUTOR, NONE, etc.) |
425
+ | `is_pull_request` | bool | Whether the entry is a pull request (2 classes: `true`/`false`) |
426
+ | `pull_request` | dict | Pull request details (diff URL, HTML URL, merged timestamp, etc.) |
427
+ | `reactions` | dict | User reactions (e.g., "+1", "heart", "rocket"; includes total count) |
428
 
429
+ ### Sample Data
430
+ | id | number | title | state | is_pull_request | created_at | comments |
431
+ |--------------|--------|----------------------------------------|-------|-----------------|----------------------|----------|
432
+ | 3531240254 | 7824 | Fix batch_size default description in to_polars docstrings | open | true | 2025-10-20 06:41:20 | 1 |
433
+ | 3525440347 | 7823 | Fix random seed on shuffle and interleave_datasets | open | true | 2025-10-17 14:11:18 | 0 |
434
+ | 3520913195 | 7821 | Building a dataset with large variable size arrays results in error | open | false | 2025-10-17 09:52:05 | 0 |
435
 
436
+ ## Content Categories
437
+ The dataset’s entries can be categorized by type and purpose, reflecting common GitHub workflow activities:
438
 
439
+ ### 1. Pull Requests (Majority of Samples)
440
+ - **Bug Fixes**: Resolve technical issues (e.g., "Fix random seed on shuffle", "Fix nested data conversions error in parquet loading").
441
+ - **Feature Additions**: Introduce new functionality (e.g., "Add nifti support", "Allow streaming hdf5 files", "Add `num_proc` argument to `Dataset.to_sql`").
442
+ - **Documentation Updates**: Improve docs (e.g., "Fix batch_size default description in docstrings", "Docs: fix typo, improve readability").
443
+ - **Dependency & CI Adjustments**: Update dependencies or CI configurations (e.g., "fix conda deps", "Define CI future").
444
 
445
+ ### 2. Issues
446
+ - **Bug Reports**: Report technical problems (e.g., "Audio dataset is not decoding on 4.1.1", "Cannot load dataset with nested data").
447
+ - **Feature Requests**: Propose new features (e.g., "Support scientific data formats", "Concatenate IterableDataset instances in RoundRobin manner").
448
+ - **Documentation Feedback**: Highlight missing or incorrect docs (e.g., "Missing documentation for `Dataset.from_dict`").
449
+
450
+ ## Dataset Characteristics
451
+ - **Rich Metadata**: Includes detailed contributor, timestamp, and interaction data for contextual analysis.
452
+ - **Real-World Relevance**: Captures authentic software development workflows and challenges in the Hugging Face ecosystem.
453
+ - **Structured & Unstructured Data**: Combines tabular metadata (e.g., `state`, `comments`) with unstructured text (e.g., `title`, `body`).
454
+ - **Time-Span Coverage**: Spans 5+ years, enabling trend analysis of project development and issue patterns.
455
+
456
+ ## Usage Scenarios
457
+ - **Text Classification**: Train models to classify issue types (bug vs. feature request), pull request purposes, or contributor roles.
458
+ - **Text Retrieval**: Build systems to retrieve similar issues/pull requests for duplicate detection or solution reference.
459
+ - **Software Engineering Research**: Analyze issue resolution times, contributor collaboration patterns, or bug frequency in open-source projects.
460
+ - **Sentiment Analysis**: Evaluate sentiment in issue discussions (e.g., frustration, approval) to inform community management.
461
+ - **Automated Issue Triage**: Develop tools to auto-label issues or assign contributors based on content and metadata.
462
+
463
+ ## Limitations
464
+ - **Repository-Specific**: Focuses exclusively on `huggingface/datasets`, limiting generalizability to other GitHub projects.
465
+ - **No Multilingual Support**: All content is in English, excluding non-English GitHub communities.
466
+ - **Nested Data Complexity**: Some columns (e.g., `user`, `pull_request`) are nested dictionaries, requiring preprocessing for simple analysis.
467
+ - **Missing Context**: May lack external context (e.g., linked commits, external references) that could enhance analysis.
468
+
469
+ ## Recommended Usage
470
+ - **Preprocessing**: Flatten nested columns (e.g., extract `user.login` from `user` dict) for tabular analysis.
471
+ - **Text Cleaning**: Remove code blocks, URLs, and markdown formatting from `body` for NLP tasks like classification.
472
+ - **Combination with Other Data**: Pair with GitHub commit or repository data to enrich analysis of issue-resolution workflows.
473
+ - **Filtering**: Subset data by `is_pull_request`, `state`, or `labels` to focus on specific task needs (e.g., bug fix classification).
474
+
475
+ ## Example Code Snippet
476
+ Load the dataset and explore key fields:
477
+ ```python
478
+ from datasets import load_dataset
479
+
480
+ # Load the dataset
481
+ dataset = load_dataset("Jason-ice-SCUT/github-issues", split="train")
482
+
483
+ # Inspect basic info
484
+ print(f"Dataset size: {len(dataset)}")
485
+ print(f"Column names: {dataset.column_names[:10]}") # Show first 10 columns
486
+
487
+ # Filter pull requests related to "bug fixes"
488
+ bug_fixes = dataset.filter(
489
+ lambda x: x["is_pull_request"] and "fix" in x["title"].lower()
490
+ )
491
+ print(f"Number of bug fix PRs: {len(bug_fixes)}")
492
+
493
+ # Extract issue titles and bodies for text classification
494
+ text_data = dataset.select_columns(["title", "body", "is_pull_request"])