Jon-Paul commited on
Commit
60a3217
·
verified ·
1 Parent(s): ffb2fc5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +115 -0
README.md CHANGED
@@ -44,4 +44,119 @@ configs:
44
  data_files:
45
  - split: train
46
  path: data/train-*
 
 
 
 
 
 
47
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  data_files:
45
  - split: train
46
  path: data/train-*
47
+ tags:
48
+ - comments
49
+ - semantic_search
50
+ - pull_requests
51
+ - github_issues
52
+ pretty_name: Github Issues
53
  ---
54
+
55
+ # GitHub Issues Dataset (huggingface/datasets)
56
+
57
+ ## Dataset Description
58
+
59
+ This dataset contains GitHub issues and pull requests from the `huggingface/datasets` repository. It was created using the GitHub REST API and processed into a machine-learning-friendly format using the Hugging Face `datasets` library.
60
+
61
+ Each record represents either:
62
+ - a GitHub issue, or
63
+ - a pull request (which GitHub treats as a special type of issue)
64
+
65
+ The dataset includes cleaned metadata fields and derived features to support NLP and machine learning tasks such as classification, summarisation, and exploratory analysis.
66
+
67
+ ---
68
+
69
+ ## Dataset Summary
70
+
71
+ - **Source:** GitHub REST API (`huggingface/datasets` repository)
72
+ - **Format:** JSONL
73
+ - **Total samples:** ~8,000 (issues + pull requests combined)
74
+ - **Language:** English
75
+ - **Created using:** Python, Hugging Face `datasets`, GitHub API
76
+
77
+ ---
78
+
79
+ ## Dataset Fields
80
+
81
+ Each entry contains the following fields:
82
+
83
+ - `url`: Direct GitHub URL to the issue or pull request
84
+ - `number`: Issue or PR number
85
+ - `title`: Title of the issue
86
+ - `body`: Full text content of the issue
87
+ - `state`: Issue state (`open` or `closed`)
88
+ - `created_at`: Creation timestamp
89
+ - `comments_url`: API URL for comments
90
+ - `pull_request`: If present, indicates the issue is a pull request (otherwise `null`)
91
+ - `is_pull_request`: Derived boolean flag (`true` if pull request, else `false`)
92
+ - `text`: Combined field of `title + body` for NLP tasks
93
+
94
+ ---
95
+
96
+ ## Data Processing Pipeline
97
+
98
+ The dataset was built using the following steps:
99
+
100
+ 1. Extracted issues using GitHub REST API
101
+ 2. Saved raw responses into JSONL format
102
+ 3. Cleaned nested and inconsistent fields
103
+ 4. Removed problematic timestamp/nested structures when necessary
104
+ 5. Created derived features:
105
+ - `is_pull_request`
106
+ - `text` (concatenated title and body)
107
+ 6. Loaded using Hugging Face `datasets.load_dataset`
108
+
109
+ ---
110
+
111
+ ## Intended Uses
112
+
113
+ This dataset is suitable for:
114
+
115
+ - Issue vs pull request classification
116
+ - NLP text classification tasks
117
+ - Summarisation of GitHub issues
118
+ - Repository analytics and insights
119
+ - Learning and experimenting with Hugging Face datasets
120
+
121
+ ---
122
+
123
+ ## Limitations
124
+
125
+ - Contains data from only one repository (`huggingface/datasets`)
126
+ - Includes both issues and pull requests (must be filtered if not needed)
127
+ - Subject to GitHub API rate limits during data collection
128
+ - Text quality varies depending on user input in issues
129
+ - Not representative of all GitHub repositories
130
+
131
+ ---
132
+
133
+ ## Ethical Considerations
134
+
135
+ - All data is publicly available on GitHub
136
+ - No private or sensitive user data is included beyond public usernames and contributions
137
+ - This dataset should not be used for profiling individual developers
138
+ - This project is done with the following in mind
139
+ - Australian Privacy Act 1988 (Cyber + Data Protection) https://www.oaic.gov.au/privacy/the-privacy-act
140
+ - ISO/IEC 27001 https://www.iso.org/isoiec-27001-information-security.html
141
+ - ISO/IEC 27002 – Security Controls Guidance https://www.iso.org/standard/75652.html
142
+
143
+
144
+ ---
145
+
146
+ ## License
147
+
148
+ This dataset inherits the license of the original GitHub repository content (`MIT License` where applicable). Users should verify licensing constraints before commercial use.
149
+
150
+ ---
151
+
152
+ ## Citation
153
+
154
+ If you use this dataset, please cite:
155
+
156
+ ```bibtex
157
+ @dataset{github_issues_hf_datasets,
158
+ author = {Jon-Paul Fitzgerald},
159
+ title = {GitHub Issues Dataset (huggingface/datasets)},
160
+ year = {2026},
161
+ url = {https://github.com/huggingface/datasets}
162
+ }