drcoolio commited on
Commit
3a66d9f
·
verified ·
1 Parent(s): 7589747

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +166 -373
README.md CHANGED
@@ -1,373 +1,166 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: url
5
- dtype: string
6
- - name: repository_url
7
- dtype: string
8
- - name: labels_url
9
- dtype: string
10
- - name: comments_url
11
- dtype: string
12
- - name: events_url
13
- dtype: string
14
- - name: html_url
15
- dtype: string
16
- - name: id
17
- dtype: int64
18
- - name: node_id
19
- dtype: string
20
- - name: number
21
- dtype: int64
22
- - name: title
23
- dtype: string
24
- - name: user
25
- struct:
26
- - name: login
27
- dtype: string
28
- - name: id
29
- dtype: int64
30
- - name: node_id
31
- dtype: string
32
- - name: avatar_url
33
- dtype: string
34
- - name: gravatar_id
35
- dtype: string
36
- - name: url
37
- dtype: string
38
- - name: html_url
39
- dtype: string
40
- - name: followers_url
41
- dtype: string
42
- - name: following_url
43
- dtype: string
44
- - name: gists_url
45
- dtype: string
46
- - name: starred_url
47
- dtype: string
48
- - name: subscriptions_url
49
- dtype: string
50
- - name: organizations_url
51
- dtype: string
52
- - name: repos_url
53
- dtype: string
54
- - name: events_url
55
- dtype: string
56
- - name: received_events_url
57
- dtype: string
58
- - name: type
59
- dtype: string
60
- - name: user_view_type
61
- dtype: string
62
- - name: site_admin
63
- dtype: bool
64
- - name: labels
65
- list:
66
- - name: id
67
- dtype: int64
68
- - name: node_id
69
- dtype: string
70
- - name: url
71
- dtype: string
72
- - name: name
73
- dtype: string
74
- - name: color
75
- dtype: string
76
- - name: default
77
- dtype: bool
78
- - name: description
79
- dtype: string
80
- - name: archived_at
81
- dtype: 'null'
82
- - name: archived_by
83
- dtype: 'null'
84
- - name: state
85
- dtype: string
86
- - name: locked
87
- dtype: bool
88
- - name: assignees
89
- list:
90
- - name: login
91
- dtype: string
92
- - name: id
93
- dtype: int64
94
- - name: node_id
95
- dtype: string
96
- - name: avatar_url
97
- dtype: string
98
- - name: gravatar_id
99
- dtype: string
100
- - name: url
101
- dtype: string
102
- - name: html_url
103
- dtype: string
104
- - name: followers_url
105
- dtype: string
106
- - name: following_url
107
- dtype: string
108
- - name: gists_url
109
- dtype: string
110
- - name: starred_url
111
- dtype: string
112
- - name: subscriptions_url
113
- dtype: string
114
- - name: organizations_url
115
- dtype: string
116
- - name: repos_url
117
- dtype: string
118
- - name: events_url
119
- dtype: string
120
- - name: received_events_url
121
- dtype: string
122
- - name: type
123
- dtype: string
124
- - name: user_view_type
125
- dtype: string
126
- - name: site_admin
127
- dtype: bool
128
- - name: milestone
129
- struct:
130
- - name: url
131
- dtype: string
132
- - name: html_url
133
- dtype: string
134
- - name: labels_url
135
- dtype: string
136
- - name: id
137
- dtype: int64
138
- - name: node_id
139
- dtype: string
140
- - name: number
141
- dtype: int64
142
- - name: title
143
- dtype: string
144
- - name: description
145
- dtype: string
146
- - name: creator
147
- struct:
148
- - name: login
149
- dtype: string
150
- - name: id
151
- dtype: int64
152
- - name: node_id
153
- dtype: string
154
- - name: avatar_url
155
- dtype: string
156
- - name: gravatar_id
157
- dtype: string
158
- - name: url
159
- dtype: string
160
- - name: html_url
161
- dtype: string
162
- - name: followers_url
163
- dtype: string
164
- - name: following_url
165
- dtype: string
166
- - name: gists_url
167
- dtype: string
168
- - name: starred_url
169
- dtype: string
170
- - name: subscriptions_url
171
- dtype: string
172
- - name: organizations_url
173
- dtype: string
174
- - name: repos_url
175
- dtype: string
176
- - name: events_url
177
- dtype: string
178
- - name: received_events_url
179
- dtype: string
180
- - name: type
181
- dtype: string
182
- - name: user_view_type
183
- dtype: string
184
- - name: site_admin
185
- dtype: bool
186
- - name: open_issues
187
- dtype: int64
188
- - name: closed_issues
189
- dtype: int64
190
- - name: state
191
- dtype: string
192
- - name: created_at
193
- dtype: timestamp[s]
194
- - name: updated_at
195
- dtype: timestamp[s]
196
- - name: due_on
197
- dtype: 'null'
198
- - name: closed_at
199
- dtype: 'null'
200
- - name: comments
201
- dtype: int64
202
- - name: created_at
203
- dtype: timestamp[s]
204
- - name: updated_at
205
- dtype: timestamp[s]
206
- - name: closed_at
207
- dtype: timestamp[s]
208
- - name: assignee
209
- struct:
210
- - name: login
211
- dtype: string
212
- - name: id
213
- dtype: int64
214
- - name: node_id
215
- dtype: string
216
- - name: avatar_url
217
- dtype: string
218
- - name: gravatar_id
219
- dtype: string
220
- - name: url
221
- dtype: string
222
- - name: html_url
223
- dtype: string
224
- - name: followers_url
225
- dtype: string
226
- - name: following_url
227
- dtype: string
228
- - name: gists_url
229
- dtype: string
230
- - name: starred_url
231
- dtype: string
232
- - name: subscriptions_url
233
- dtype: string
234
- - name: organizations_url
235
- dtype: string
236
- - name: repos_url
237
- dtype: string
238
- - name: events_url
239
- dtype: string
240
- - name: received_events_url
241
- dtype: string
242
- - name: type
243
- dtype: string
244
- - name: user_view_type
245
- dtype: string
246
- - name: site_admin
247
- dtype: bool
248
- - name: author_association
249
- dtype: string
250
- - name: issue_field_values
251
- sequence: 'null'
252
- - name: type
253
- dtype: 'null'
254
- - name: active_lock_reason
255
- dtype: 'null'
256
- - name: draft
257
- dtype: bool
258
- - name: pull_request
259
- struct:
260
- - name: url
261
- dtype: string
262
- - name: html_url
263
- dtype: string
264
- - name: diff_url
265
- dtype: string
266
- - name: patch_url
267
- dtype: string
268
- - name: merged_at
269
- dtype: timestamp[s]
270
- - name: body
271
- dtype: string
272
- - name: closed_by
273
- struct:
274
- - name: login
275
- dtype: string
276
- - name: id
277
- dtype: int64
278
- - name: node_id
279
- dtype: string
280
- - name: avatar_url
281
- dtype: string
282
- - name: gravatar_id
283
- dtype: string
284
- - name: url
285
- dtype: string
286
- - name: html_url
287
- dtype: string
288
- - name: followers_url
289
- dtype: string
290
- - name: following_url
291
- dtype: string
292
- - name: gists_url
293
- dtype: string
294
- - name: starred_url
295
- dtype: string
296
- - name: subscriptions_url
297
- dtype: string
298
- - name: organizations_url
299
- dtype: string
300
- - name: repos_url
301
- dtype: string
302
- - name: events_url
303
- dtype: string
304
- - name: received_events_url
305
- dtype: string
306
- - name: type
307
- dtype: string
308
- - name: user_view_type
309
- dtype: string
310
- - name: site_admin
311
- dtype: bool
312
- - name: reactions
313
- struct:
314
- - name: url
315
- dtype: string
316
- - name: total_count
317
- dtype: int64
318
- - name: '+1'
319
- dtype: int64
320
- - name: '-1'
321
- dtype: int64
322
- - name: laugh
323
- dtype: int64
324
- - name: hooray
325
- dtype: int64
326
- - name: confused
327
- dtype: int64
328
- - name: heart
329
- dtype: int64
330
- - name: rocket
331
- dtype: int64
332
- - name: eyes
333
- dtype: int64
334
- - name: timeline_url
335
- dtype: string
336
- - name: performed_via_github_app
337
- dtype: 'null'
338
- - name: state_reason
339
- dtype: string
340
- - name: sub_issues_summary
341
- struct:
342
- - name: total
343
- dtype: int64
344
- - name: completed
345
- dtype: int64
346
- - name: percent_completed
347
- dtype: int64
348
- - name: issue_dependencies_summary
349
- struct:
350
- - name: blocked_by
351
- dtype: int64
352
- - name: total_blocked_by
353
- dtype: int64
354
- - name: blocking
355
- dtype: int64
356
- - name: total_blocking
357
- dtype: int64
358
- - name: pinned_comment
359
- dtype: 'null'
360
- - name: is_pull_request
361
- dtype: bool
362
- splits:
363
- - name: train
364
- num_bytes: 19653397
365
- num_examples: 5000
366
- download_size: 4663700
367
- dataset_size: 19653397
368
- configs:
369
- - config_name: default
370
- data_files:
371
- - split: train
372
- path: data/train-*
373
- ---
 
1
+ Dataset Card for github-clean
2
+ Student Name: Faisal Durran Ahmed (Faisal D. Ahmed)
3
+ Student ID: 20163372
4
+ Institution: North Metropolitan TAFE (Koorliny Kaatijin)
5
+ Repository Link: https://huggingface.co/datasets/drcoolio/github-clean
6
+ Collection Date: 20 October 2026
7
+ Dataset summary
8
+ This dataset was created for my GitHub issues collection project for Assessment 1 at North Metropolitan TAFE. It contains 5,000 records of software issues and pull requests gathered directly from the official Hugging Face datasets repository on GitHub. The dataset is stored in Parquet format on the Hugging Face Hub under my account drcoolio/github-clean with a total file size of 4.67 MB.
9
+ I collected this dataset on 20 October 2026 to capture repository activity up to issue number 8858 and to support natural language processing tasks including text classification, sentiment analysis behind the pipeline, and semantic search using FAISS vector indexes. All records are in English and focus on technical discussions, bug reports, and code changes in data engineering and machine learning.
10
+ Metadata tags
11
+ • Modalities: Tabular, Text
12
+ • Formats: Parquet, JSON Lines
13
+ • Size Category: 1K to 10K (5,000 rows, 4.67 MB)
14
+ • Language: English (en)
15
+ • Libraries: Datasets, Pandas, Polars, PyTorch
16
+ • Task Categories: Text Classification, Text Retrieval, Document Retrieval, Sentiment Analysis
17
+ • Licence: other (the parent repository code is under Apache License 2.0, while issue text was written by individual GitHub contributors)
18
+ How to use
19
+ The dataset has one split, called train. You can load it directly into Python using the Hugging Face Datasets library:
20
+ from datasets import load_dataset
21
+ ds = load_dataset("drcoolio/github-clean")
22
+ print(ds)
23
+ If you want to load just the training split directly for pandas processing or model inference, you can run:
24
+ from datasets import load_dataset
25
+ ds = load_dataset("drcoolio/github-clean", split="train")
26
+ print(ds[0])
27
+ To convert the split into a pandas DataFrame:
28
+ df = ds.to_pandas()
29
+ The first 100 rows appear twice because of zero indexed page numbering during collection, see Reliability checks. This command keeps one row for each unique issue or pull request number:
30
+ df = df.drop_duplicates(subset="number")
31
+ Dataset details
32
+ Data instances
33
+ Each row in the dataset represents one GitHub issue or pull request record returned by the GitHub REST API from the huggingface/datasets repository, along with one derived boolean column that I created during data augmentation. Of the 5,000 rows, 2,878 are pull requests and 2,122 are issues, while 1,409 are open and 3,591 are closed. The items were created between 25 February 2022 and 20 October 2026, and their numbers run from 3,790 to 8,858. For example, record index 0 corresponds to issue number 8858, record index 1 corresponds to pull request number 8857, and the final row in the raw file corresponds to pull request number 3790.
34
+ Data fields
35
+ The dataset contains 37 columns in total (36 raw fields from the GitHub REST API response in October 2026 plus 1 derived feature):
36
+ • url (string): The API URL for the specific issue record.
37
+ • repository_url (string): The API URL for the parent huggingface/datasets repository.
38
+ • labels_url (string): The API template URL for issue labels.
39
+ • comments_url (string): The API URL used to fetch discussion comments for the issue.
40
+ • events_url (string): The API URL for issue lifecycle events.
41
+ • html_url (string): The direct web browser link to the GitHub issue or pull request.
42
+ • id (int64): The unique database identifier assigned by GitHub.
43
+ • node_id (string): The global GraphQL node identifier.
44
+ • number (int64): The sequential issue or pull request number in the repository.
45
+ • title (string): The summary title written by the person who opened the issue.
46
+ • user (struct): A nested dictionary containing public profile details of the author (login, id, node_id, avatar_url, html_url, type, user_view_type, site_admin).
47
+ • labels (list of structs): Tags attached to the issue to classify bug types or features.
48
+ • state (string): Whether the issue is currently open or closed.
49
+ • locked (bool): Whether the conversation has been locked by maintainers.
50
+ • assignees (list of structs): Developers assigned to resolve the issue.
51
+ • milestone (struct): Project milestone details and timestamps if assigned.
52
+ • comments (int64): The count of comments posted on the issue thread.
53
+ • created_at (timestamp[s]): The exact date and time when the issue was opened.
54
+ • updated_at (timestamp[s]): The date and time of the most recent update.
55
+ • closed_at (timestamp[s]): The date and time when the issue was closed, or None if still open.
56
+ • assignee (struct): The primary developer assigned to the issue.
57
+ • author_association (string): The author role in the repository, such as MEMBER, CONTRIBUTOR, COLLABORATOR, or NONE.
58
+ • issue_field_values (sequence): Custom repository field values returned by the GitHub API.
59
+ • type (null or string): The issue type classification field.
60
+ • active_lock_reason (null or string): The reason given if an issue thread is locked.
61
+ • draft (bool): Indicates if a pull request is still in draft status.
62
+ • pull_request (struct): A nested dictionary with url, html_url, diff_url, patch_url, and merged_at timestamps. This field is None when the record is a standard issue rather than a pull request.
63
+ • body (string): The main text description of the bug report, feature request, or pull request.
64
+ • closed_by (struct): Nested user profile dictionary showing who closed the issue.
65
+ • reactions (struct): Counts of community emoji reactions (plus 1, minus 1, laugh, hooray, confused, heart, rocket, eyes, and total_count).
66
+ • timeline_url (string): The API URL for timeline activity.
67
+ • performed_via_github_app (null or struct): Details if an automated GitHub App created the post.
68
+ • state_reason (string): Explanation for why an issue state changed, such as completed or not_planned.
69
+ • sub_issues_summary (struct): Summary counts of linked sub issues (total, completed, percent_completed).
70
+ • issue_dependencies_summary (struct): Counts of blocking or blocked issues (blocked_by, total_blocked_by, blocking, total_blocking).
71
+ • pinned_comment (null or struct): Details of any pinned comment on the thread.
72
+ • is_pull_request (bool): The derived feature I engineered using .map() to flag whether the record is a pull request (True) or a standard issue (False).
73
+ Data splits
74
+ One split, train, with 5,000 rows. The uncompressed dataset size in memory is 19,653,397 bytes and the auto converted Parquet file is 4,663,700 bytes (4.67 MB). I did not make a validation or test split.
75
+ Dataset creation
76
+ Curation rationale
77
+ I built this dataset for Assessment 1 at North Metropolitan TAFE to gather a real world collection of software issues and pull requests from the huggingface/datasets repository. My goal was to prepare a practical text dataset for downstream natural language processing tasks in Task 2 and Task 3, including sequence classification, sentiment analysis, and semantic search with FAISS vector indexes, while learning how to audit data quality, privacy obligations, and organisational policies.
78
+ Data collection process
79
+ I collected and published the data using my Kaggle notebook session-9-creating-your-own-dataset.ipynb running on Python 3.11.13, with internet on and no GPU, on 20 October 2026. The step by step process I followed in order is documented below:
80
+ 1. Initial API test: I sent one test GET request with the Python requests library to https://api.github.com/repos/huggingface/datasets/issues?page=2&per_page=50. I checked response.status_code to confirm a 200 status and verified that len(response.json()) returned 50 records.
81
+ 2. Sample inspection: I printed the first record of that test response to inspect its JSON shape. I printed only one record rather than all fifty so that fewer contributors' public profile details appeared in the notebook output.
82
+ 3. Secure authentication: Because unauthenticated GitHub requests have a strict rate limit, I kept the placeholder comment # DON'T PUT YOUR TOKEN DIRECTLY IN HERE in my code and stored my personal GitHub token in Kaggle Secrets under the label "github". I read it in the notebook using UserSecretsClient() and passed it in the request header as headers = {"Authorization": f"token {GITHUB_TOKEN}"}.
83
+ 4. Automated harvesting (`fetch_issues`): I wrote and ran the fetch_issues function to download num_issues=5_000 from the huggingface/datasets repository with per_page=100 and state="all", so open and closed items are both included. The function calculated num_pages = 50 using math.ceil() and looped through the pages with tqdm to track progress. Inside the loop, I included a rate limit check (if len(batch) > rate_limit and len(all_issues) < num_issues) that pauses the script for one hour plus one second (time.sleep(60*60 + 1)) so it never crashes from hitting GitHub's 5,000 requests per hour limit.
84
+ 5. Local serialisation: The function joined the pages into one list, converted the records into a pandas DataFrame using pd.DataFrame.from_records(all_issues), and saved it as a local JSON Lines file called ./datasets-issues.jsonl (orient="records", lines=True).
85
+ 6. Dataset loading and sample check: I loaded the local JSON Lines file with load_dataset("json", data_files="datasets-issues.jsonl", split="train"), which gave 5,000 rows, and then inspected three random records (issues_dataset.shuffle(seed=666).select(range(3)) and issues_dataset[1]) to see how the pull_request field differs between issues and pull requests.
86
+ 7. Feature engineering: I added the boolean is_pull_request column, see Augmentation below.
87
+ 8. Reading Hugging Face credentials: Before logging in, I read two secrets, one named dataset and one named GITHUB, into variables I did not end up using, and then read the dataset secret again into hf_secret, the variable I actually used to log in. That was three secret reads where one would do, left over from my testing in Kaggle.
88
+ 9. Publishing to Hugging Face Hub: I logged in to Hugging Face using login(token=hf_secret) and ran issues_dataset.push_to_hub("github-clean"). This created the repository and its initial upload commit, 7589747a041bb064d1f5581de2dc6c5984815722, with the commit message "Upload dataset".
89
+ Augmentation
90
+ The only feature I added is the is_pull_request boolean column, worked out from the pull_request field using .map(lambda x: {"is_pull_request": False if x["pull_request"] is None else True}). Pull requests have a populated dictionary in the pull_request column while standard issues have None. This column is True for 2,878 rows and False for 2,122 rows. I did not fetch or add the text of discussion comments during this step.
91
+ Source data producers
92
+ The text was written by the software developers and users who opened or managed issues and pull requests in the huggingface/datasets repository. Across the 5,000 rows, 2,104 rows have the author association NONE, 1,434 have MEMBER, 1,235 have CONTRIBUTOR, and 227 have COLLABORATOR. I did not annotate or label any text myself.
93
+ Personal and sensitive information
94
+ Every record carries the GitHub username, numeric id, avatar link, and profile links of its author, and for some records the assignee, the person who closed the item, and the milestone creator. My test request cell shows one contributor's public profile details, and two of my evidence cells further down show another contributor's profile, so three public profiles appear in the notebook outputs in total. In addition, developers pasting error tracebacks into the body text sometimes leave local file paths, email addresses, or server details. The Risks, corrective actions and future mitigation section below explains how I handle and remove these fields for downstream tasks.
95
+ Reliability checks
96
+ I checked this dataset myself using the Hugging Face dataset viewer, notebook inspections, and direct row lookups.
97
+ What matched: the table has 5,000 rows and 37 columns, matching what the notebook requested. Pull requests (2,878) plus issues (2,122) equal 5,000, and open items (1,409) plus closed items (3,591) equal 5,000. The 64 draft and 2,814 not draft pull request flags add up to the 2,878 pull requests. The first row is the most recently created item and the final row is the oldest item in the slice, which matches GitHub's default descending creation order.
98
+ What did not match: the newest 100 records appear twice. I checked this directly in the table: row 0 and row 100 are both issue number 8858 with the exact same id, and row 99 and row 199 are both number 8759 with the same id, while row 200 moves on to a new record, number 8758. This happened because for page in tqdm(range(num_pages)): starts requesting at page=0, and the GitHub REST API uses 1 based page indexing where page=0 and page=1 return the same first page of 100 records. As a result, the table holds 4,900 unique records rather than 5,000. Also, the issue numbers from 3,790 to 8,858 span 5,069 possible sequential values, meaning 169 numbers in that range do not appear in the API response (for example, deleted or transferred items). Finally, the body field is None in 385 rows (7.7 percent), and non empty bodies vary in length from 1 to 59,917 characters.
99
+ Bias and limitations of the data
100
+ The data comes from a single repository (huggingface/datasets), so its vocabulary is narrow and specific to Python data loading and machine learning libraries. It is written in English by people who have GitHub accounts and technical backgrounds. Furthermore, it represents the newest slice of 5,000 records at the time of collection rather than a balanced random sample across the whole history of the project, so it reflects what was worked on between February 2022 and October 2026. More than half of the rows (57.6 percent) are pull requests, which mostly describe code changes rather than user questions, and the comments column only stores the integer count of comments rather than the discussion text itself. It is a static snapshot captured on 20 October 2026.
101
+ Compliance with legislation and codes
102
+ Even though these records come from a public software repository, collecting and republishing them requires careful assessment against Australian and Western Australian privacy laws and open source rules. The records were public and I collected them in a lawful way, though I only partly meet privacy minimisation rules in the raw table because it still includes personal profile fields that I did not need for text analysis.
103
+ Privacy Act 1988 (Cth) and Australian Privacy Principles (APPs)
104
+ The Koorliny Kaatijin Privacy Policy states that the organisation follows the Privacy Act 1988 (Cth) and the Australian Privacy Principles, as well as the GDPR where applicable. I am a student working on an educational assessment, so I used the Australian Privacy Principles as my benchmark:
105
+ • Collection (APP 2 and APP 3): Under APP 2 (Anonymity and pseudonymity), contributors interact through GitHub handles. Under APP 3 (Collection of solicited personal information), I used GitHub's documented REST API and my own token to collect data needed for my TAFE assessment, which is a lawful and fair method. However, the raw API response returned nested profile fields (user, assignee, assignees, closed_by) that I did not need for text modelling, and I did not notify individual contributors (APP 5). Partly met.
106
+ • Use and disclosure (APP 6): Contributors opened these issues to discuss software bugs and features on GitHub, not to have their profile dictionaries copied into a separate dataset repository. Republishing the nested person fields is a secondary use that contributors might not expect, even though the records are public. In my downstream Task 2 and Task 3 notebooks, I strip out all user profile columns so only technical fields remain.
107
+ • Cross border disclosure (APP 8): Hugging Face Hub stores dataset files on servers in the United States, and I had not completed a formal overseas transfer check before pushing the raw table.
108
+ • Security of personal information (APP 11): My API tokens were kept in Kaggle Secrets rather than written in the notebook or stored in the dataset, and all API transfers used encrypted HTTPS connections.
109
+ • Openness, access, and correction (APP 1, APP 12, and APP 13): This Dataset Card provides a transparent public record of what I collected, how it is structured, and how any contributor can request access, correction, or removal of their records, see Dataset card authors and contact.
110
+ Western Australia Privacy and Responsible Information Sharing Act 2024 (PRIS Act 2024)
111
+ The Privacy and Responsible Information Sharing Act 2024 (WA) and its Information Privacy Principles (IPPs) apply primarily to Western Australian public sector bodies. While a student project on a personal Hugging Face account is not directly bound in the same way as a state agency, I reviewed my workflow against its core principles: IPP 1 (Collection) by using lawful, non intrusive API requests; IPP 2 (Use and Disclosure) by using bug reports for the related educational purpose of building software search tools; IPP 3 (Data Quality) by pulling directly from the official REST API and auditing duplicates; IPP 4 (Data Security) by protecting tokens in Kaggle Secrets and removing unneeded columns before model training; and IPP 5 (Openness) by publishing this Dataset Card.
112
+ Open source licensing and documentation standards
113
+ The huggingface/datasets source code repository is licensed under the Apache License 2.0, which covers the codebase published by the maintainers. Because the issue and pull request descriptions were written by hundreds of individual community members and I have not asked each author for permission to relicense their words, I set license: other in the dataset metadata while retaining the html_url column so every record links back to its original author and source page on GitHub. For structure and transparency, this card follows the principles of Datasheets for datasets (Gebru et al., 2021) and the official Hugging Face Dataset Card template and contribution guidelines (CONTRIBUTING.md).
114
+ Organisational policy alignment
115
+ I checked every stage of this project against the five Koorliny Kaatijin organisational policy documents provided on the LMS (effective 15 October 2025):
116
+ • Koorliny Kaatijin Privacy Policy: This aligns with the Privacy Act 1988 (Cth) assessment above. Keeping the nested contributor profile fields in the published raw table is the main compliance gap, since public availability on GitHub is not the same as explicit consent for republication. Under the policy, any privacy requests or complaints that I cannot resolve directly are escalated to the Koorliny Kaatijin Data Protection Officer and then to the Office of the Australian Information Commissioner (OAIC).
117
+ • Koorliny Kaatijin Data Access and Classification Policy: The policy defines four classification tiers: Public, Internal, Confidential, and Restricted. I labelled this dataset Public because every record originates from a public open source issue tracker on GitHub. However, because the nested user fields can identify individuals, a strict reading places the uncleaned table between Public and Restricted data. To follow data minimisation, I drop 33 metadata and user profile columns during my Task 2 and Task 3 preprocessing before running embeddings. I act as the data owner, and only my authenticated account has write access to the repository.
118
+ • Koorliny Kaatijin Information Security and Acceptable Use Policy: This policy requires individual accounts, bans sharing or hardcoding credentials inside source code, and requires respecting external platform rate limits. In my notebook, I kept the reminder # DON'T PUT YOUR TOKEN DIRECTLY IN HERE and loaded both my GitHub token and my Hugging Face token at runtime via kaggle_secrets.UserSecretsClient(). I also included the time.sleep(60*60 + 1) rate limit check and used HTTPS endpoints. The policy asks for a formal privacy and security check before adopting a third party cloud service, which I had not seen completed for Kaggle or Hugging Face prior to uploading, so that requirement is partly met.
119
+ • Koorliny Kaatijin Data Retention and Disposal Policy: In line with the institutional retention schedule, I keep my final Jupyter Notebooks, reliability checks, and this Dataset Card in my North Metropolitan TAFE OneDrive #Working File directory for five years after the project finishes. The temporary local raw file (./datasets-issues.jsonl) generated inside the Kaggle session is deleted when the container closes, and the public dataset repository will either be replaced with a deidentified copy or deleted once assessment marking is complete.
120
+ • Koorliny Kaatijin Data Breach Response Procedure: A data breach in this project would most likely involve an API token being accidentally exposed in code or a contributor having pasted a private credential, password, or personal email address inside an issue body. Under the procedure, any discovery of exposed credentials or private data requires immediate containment (such as switching the Hugging Face repository to private and revoking the token), scrubbing the affected record, and reporting the incident to Security and the Data Protection Officer (or lecturer) within 2 hours so it can be assessed under the Notifiable Data Breaches scheme.
121
+ Risks, corrective actions and future mitigation
122
+ During my audit of the collection notebook and published table, I identified six technical and compliance risks and set out concrete corrective actions:
123
+ 1. Duplicate records from zero indexed pagination: In fetch_issues(), my loop used for page in tqdm(range(num_pages)):, which starts at page=0 and ends at page=49. Because the GitHub REST API uses 1 based indexing, page=0 and page=1 return the exact same first 100 issues (numbers 8858 down to 8759), duplicating rows 0 to 99 in rows 100 to 199 and leaving 4,900 unique records. Corrective action: Change the collection loop to for page in tqdm(range(1, num_pages + 1)): and run drop_duplicates(subset="number") before model training or FAISS indexing.
124
+ 2. Unnecessary personal identifiers in the raw schema: The published table keeps the full raw JSON structure, including user, assignee, assignees, closed_by, and milestone creator dictionaries that hold contributor usernames, numeric IDs, and avatar URLs. Corrective action: Use issues_dataset.remove_columns() to strip all nested user profile objects and keep only the required technical fields (html_url, title, body, comments, author_association, and is_pull_request).
125
+ 3. Accidental personal details or credentials inside issue body text and empty bodies: Contributors pasting error logs into the body column sometimes leave local file paths containing real names (such as /Users/firstname_lastname/...), email addresses, IPv4 addresses, or tokens, and 385 rows (7.7 percent, including row 1, pull request 8857) have body: None. Corrective action: Filter out rows where body is None (issues_dataset.filter(lambda x: x["body"] is not None)) and apply a regular expression cleaning function via .map() to mask email addresses, IPv4 addresses, tokens, and local user directory paths before generating public embeddings.
126
+ 4. Mixed pull requests and missing comment text: The GitHub /issues endpoint returns both bug issues and pull requests (2,878 rows or 57.6 percent are pull requests), and the comments field only provides the integer comment count rather than the discussion text. Corrective action: Filter with issues_dataset.filter(lambda x: x["is_pull_request"] == False) when searching specifically for user bug reports, and either fetch comment text from comments_url or concatenate title and body for semantic search.
127
+ 5. Unclear contributor licensing and overseas hosting: Because issue text was written by many community contributors and the repository is stored on Hugging Face servers in the United States, republishing full raw records raises copyright and cross border storage questions. Corrective action: Act immediately on any contributor removal request submitted through the repository Community tab, and remove personal profile fields so that overseas storage holds only technical issue descriptions.
128
+ 6. Token and account misuse if credentials leak: If a GitHub, Kaggle, or Hugging Face token were leaked, an unauthorised user could push changes or exhaust API quotas. Corrective action: Keep all tokens exclusively in Kaggle Secrets, delete the GitHub personal access token when the assessment ends, and keep multi factor authentication enabled across my GitHub, Kaggle, and Hugging Face accounts.
129
+ Storage, locations and versioning
130
+ All project files, datasets, and outputs are stored and tracked in line with Koorliny Kaatijin organisational policies:
131
+ • Public Cloud Dataset Location: This dataset and card are stored in the public Hugging Face dataset repository https://huggingface.co/datasets/drcoolio/github-clean, which holds data/train-00000-of-00001.parquet (4,663,700 bytes / 4.67 MB, 5,000 rows, stored with Git LFS), README.md, and .gitattributes.
132
+ • Notebooks and Assessment Files Storage: Copies of my notebooks, this Dataset Card, and my working notes are stored securely in my North Metropolitan TAFE OneDrive folder (/OneDrive/NMTAFE_ICT40120/Analyse & Report Data) with institutional role based access control and multi factor authentication enabled:
133
+ • Task 1 Notebook: session-9-creating-your-own-dataset.ipynb
134
+ • Task 2 Notebook: working-with-the-model-and-tokenizer.ipynb
135
+ • Task 3 Notebook: semantic-search-with-faiss.ipynb
136
+ • Credentials Storage: Both my GitHub token and my Hugging Face write token are stored in Kaggle Secrets and are not saved in any notebook or local file. I own the repository as the data owner, and the retention schedule is set out in the Data Retention and Disposal Policy section above.
137
+ • Repository Commit History and Planned Updates:
138
+ • 20 October 2026 (Initial Dataset Upload): Uploaded the 5,000 row Parquet table with 37 columns and generated metadata to drcoolio/github-clean under Git commit 7589747a041bb064d1f5581de2dc6c5984815722 with the commit message "Upload dataset".
139
+ • Documentation Update (README Dataset Card): Added this complete Dataset Card to README.md in drcoolio/github-clean covering dataset structure, reliability checks, privacy legislation, Koorliny Kaatijin policy alignment, and risk mitigation. The underlying Parquet data is unchanged.
140
+ • Planned Cleaned Upload (Preprocessing Pipeline): Deduplicated on number to 4,900 unique records, filtered to remove None bodies and pull requests as needed, and stripped of nested contributor profile columns for downstream Transformer pipeline and FAISS indexing.
141
+ Licence, attribution and permitted use
142
+ The repository metadata sets license: other. While the huggingface/datasets source code repository is published under the Apache License 2.0, that licence covers the software repository as published by its maintainers, whereas the issue and pull request text was written by many individual contributors whose separate permission I have not requested.
143
+ Please use this dataset for educational learning and research. Keep the html_url column intact so every record can be traced and credited to its original author on GitHub, credit GitHub and the huggingface/datasets community as the source, and do not use the contributor profile fields for profiling or unsolicited contact.
144
+ Citation
145
+ Ahmed, F. D. (2026). GitHub Clean Issues [Data set]. Hugging Face. https://huggingface.co/datasets/drcoolio/github-clean
146
+ References
147
+ • Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2021). Datasheets for datasets. https://arxiv.org/abs/1803.09010
148
+ • GitHub. (n.d.). GitHub Acceptable Use Policies. https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies
149
+ • GitHub. (n.d.). GitHub Terms of Service. https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
150
+ • GitHub. (n.d.). Rate limits for the REST API. https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
151
+ • GitHub. (n.d.). REST API endpoints for issues. https://docs.github.com/en/rest/issues/issues
152
+ • Government of Western Australia. (n.d.). Privacy and Responsible Information Sharing. https://www.wa.gov.au/government/privacy-and-responsible-information-sharing
153
+ • Hugging Face. (n.d.). Content policy. https://huggingface.co/content-guidelines
154
+ • Hugging Face. (n.d.). Creating your own dataset. In LLM course, chapter 5. https://huggingface.co/learn/llm-course/chapter5/5
155
+ • Hugging Face. (n.d.). Dataset card template. https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md
156
+ • Hugging Face. (n.d.). Dataset cards. https://huggingface.co/docs/hub/datasets-cards
157
+ • Hugging Face. (n.d.). How to contribute to Datasets. https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md
158
+ • Hugging Face. (n.d.). huggingface/datasets [Source code repository, Apache License 2.0]. https://github.com/huggingface/datasets
159
+ • Koorliny Kaatijin. (2025). Data Access and Classification Policy. Koorliny Kaatijin.
160
+ • Koorliny Kaatijin. (2025). Data Breach Response Procedure. Koorliny Kaatijin.
161
+ • Koorliny Kaatijin. (2025). Data Retention and Disposal Policy. Koorliny Kaatijin.
162
+ • Koorliny Kaatijin. (2025). Information Security and Acceptable Use Policy. Koorliny Kaatijin.
163
+ • Koorliny Kaatijin. (2025). Privacy Policy. Koorliny Kaatijin.
164
+ • Office of the Australian Information Commissioner. (n.d.). Australian Privacy Principles quick reference. https://www.oaic.gov.au/privacy/australian-privacy-principles/australian-privacy-principles-quick-reference
165
+ • Office of the Australian Information Commissioner. (n.d.). Notifiable Data Breaches. https://www.oaic.gov.au/privacy/notifiable-data-breaches
166
+ • Privacy Act 1988 (Cth). https://www.legislation.gov.au/C2004A03712/latest/text