Add dataset card (README) and manifest
Browse filesDataset card with metadata tags and Task 4 documentation; manifest with version and SHA-256 checksums.
- README.md +334 -0
- data/manifest.json +18 -0
README.md
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: psf/requests GitHub Issues (Nov 2023 – Oct 2026)
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: other
|
| 6 |
+
license_name: github-user-content
|
| 7 |
+
license_link: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
|
| 8 |
+
annotations_creators:
|
| 9 |
+
- machine-generated
|
| 10 |
+
language_creators:
|
| 11 |
+
- found
|
| 12 |
+
multilinguality:
|
| 13 |
+
- monolingual
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
source_datasets:
|
| 17 |
+
- original
|
| 18 |
+
task_categories:
|
| 19 |
+
- text-classification
|
| 20 |
+
- text-retrieval
|
| 21 |
+
- sentence-similarity
|
| 22 |
+
task_ids:
|
| 23 |
+
- sentiment-classification
|
| 24 |
+
- document-retrieval
|
| 25 |
+
tags:
|
| 26 |
+
- github
|
| 27 |
+
- github-issues
|
| 28 |
+
- software-engineering
|
| 29 |
+
- python
|
| 30 |
+
- requests
|
| 31 |
+
- semantic-search
|
| 32 |
+
- faiss
|
| 33 |
+
- education
|
| 34 |
+
configs:
|
| 35 |
+
- config_name: default
|
| 36 |
+
data_files:
|
| 37 |
+
- split: train
|
| 38 |
+
path: data/requests_issues.jsonl
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
# psf/requests GitHub Issues (Nov 2023 – Oct 2026)
|
| 42 |
+
|
| 43 |
+
A small, real, documented dataset of **324 user-reported GitHub issues** and their **870 comments** from the
|
| 44 |
+
[`psf/requests`](https://github.com/psf/requests) repository (the most widely used Python HTTP library).
|
| 45 |
+
It was built for a TAFE/VET assessment (Assessment Task F122A12: *create and publish a dataset → apply a
|
| 46 |
+
Transformers pipeline → semantic search with FAISS*) and is meant for learning and small experiments.
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
from datasets import load_dataset
|
| 50 |
+
ds = load_dataset("htno/psf-requests-github-issues", split="train")
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
| | |
|
| 54 |
+
|---|---|
|
| 55 |
+
| Rows | 324 issues (one row per issue, comments stored as a list) |
|
| 56 |
+
| Time window | issues created 2023-11-05 to 2026-10-29 |
|
| 57 |
+
| Comments | 870 (98.8% of issues have all of their comments) |
|
| 58 |
+
| Language | English |
|
| 59 |
+
| Version | 1.0.0 (see [Versioning](#8-storage-locations-and-versioning)) |
|
| 60 |
+
| Personal data | user names pseudonymised; e-mails, URLs and @mentions masked |
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## 1. Dataset structure
|
| 65 |
+
|
| 66 |
+
### Files
|
| 67 |
+
|
| 68 |
+
| Path | Content |
|
| 69 |
+
|---|---|
|
| 70 |
+
| `data/requests_issues.jsonl` | the dataset (default config, one JSON record per line) |
|
| 71 |
+
| `data/manifest.json` | version, row count, source, SHA-256 checksums |
|
| 72 |
+
| `README.md` | this dataset card |
|
| 73 |
+
|
| 74 |
+
The three notebooks that built and used this dataset (`01_collect_augment_publish.ipynb`,
|
| 75 |
+
`02_transformers_pipeline.ipynb`, `03_semantic_search_faiss.ipynb`), their outputs and a CSV copy of the table
|
| 76 |
+
are submitted with the assessment and kept in the private working folder (see section 8).
|
| 77 |
+
|
| 78 |
+
### Example record (shortened)
|
| 79 |
+
|
| 80 |
+
```json
|
| 81 |
+
{"number": 6566, "html_url": "https://github.com/psf/requests/issues/6566",
|
| 82 |
+
"title": "Import error with werkzeug",
|
| 83 |
+
"text": "Import error with werkzeug. When I run `make ci` on the main branch, it throws this import ...",
|
| 84 |
+
"comments": ["..."], "state": "closed", "state_reason": "completed", "issue_type": "bug",
|
| 85 |
+
"n_comments_collected": 1, "maintainer_replied": false, "days_to_close": 0.18,
|
| 86 |
+
"author_id": "user_0467", "author_association": "CONTRIBUTOR", "has_traceback": false}
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### Data fields
|
| 90 |
+
|
| 91 |
+
**Original fields (from the GitHub API, cleaned)**
|
| 92 |
+
|
| 93 |
+
| Field | Type | Description |
|
| 94 |
+
|---|---|---|
|
| 95 |
+
| `number` | int | issue number in `psf/requests` (unique key) |
|
| 96 |
+
| `html_url` | str | link to the original issue (attribution) |
|
| 97 |
+
| `title` | str | issue title (masked) |
|
| 98 |
+
| `body_clean` | str | issue body; HTML comments removed; e-mails → `[EMAIL]`, URLs → `[URL]`, @mentions → `@[USER]`; code kept |
|
| 99 |
+
| `state`, `state_reason` | str | `open`/`closed`; `completed`, `not_planned`, `duplicate` or empty |
|
| 100 |
+
| `created_at`, `closed_at`, `updated_at` | str (ISO-8601, UTC) | timestamps |
|
| 101 |
+
| `labels` | list[str] | maintainer labels |
|
| 102 |
+
| `comments_reported` | int | number of comments according to GitHub |
|
| 103 |
+
| `reactions_total` | int | total emoji reactions |
|
| 104 |
+
| `author_association` | str | author's role in the repo (`NONE`, `CONTRIBUTOR`, `MEMBER`, ...) |
|
| 105 |
+
| `locked` | bool | conversation locked by maintainers |
|
| 106 |
+
|
| 107 |
+
**Augmented / derived fields (added in Notebook 1)**
|
| 108 |
+
|
| 109 |
+
| Field | Type | How it was made |
|
| 110 |
+
|---|---|---|
|
| 111 |
+
| `body_prose` | str | `body_clean` with code blocks replaced by `[CODE]` (for language models) |
|
| 112 |
+
| `text` | str | `title + ". " + body_prose` – one input text per issue |
|
| 113 |
+
| `comments` | list[str] | cleaned comment texts, oldest first, joined from the comments endpoint |
|
| 114 |
+
| `comment_author_ids` | list[str] | pseudonym of each commenter |
|
| 115 |
+
| `comment_author_roles` | list[str] | role of each commenter (`MEMBER`, `CONTRIBUTOR`, `NONE`, ...) |
|
| 116 |
+
| `comment_by_issue_author` | list[bool] | whether each comment was written by the issue author |
|
| 117 |
+
| `n_comments_collected` | int | comments found in this dataset |
|
| 118 |
+
| `comments_complete` | bool | `n_comments_collected >= comments_reported` |
|
| 119 |
+
| `maintainer_replied` | bool | at least one comment by OWNER / MEMBER / COLLABORATOR |
|
| 120 |
+
| `hours_to_first_response` | float | hours until the first comment by someone other than the author |
|
| 121 |
+
| `is_closed`, `days_to_close` | bool, float | lifecycle fields |
|
| 122 |
+
| `created_year_month` | str | e.g. `2025-03` |
|
| 123 |
+
| `issue_type` | str | **rule-based** label: `bug`, `feature_request`, `question`, `documentation`, `security`, `other` (maintainer labels first, then title key words) |
|
| 124 |
+
| `has_code_block`, `has_traceback` | bool | pattern search in the body |
|
| 125 |
+
| `title_words`, `body_words` | int | word counts |
|
| 126 |
+
| `author_id` | str | pseudonym of the issue author (`user_0001`, ...) |
|
| 127 |
+
|
| 128 |
+
### Splits
|
| 129 |
+
|
| 130 |
+
One `train` split with all 324 rows. No test split is defined because the dataset is used for
|
| 131 |
+
exploration and retrieval, not for training a model.
|
| 132 |
+
|
| 133 |
+
### Summary statistics (v1.0.0)
|
| 134 |
+
|
| 135 |
+
| Measure | Value |
|
| 136 |
+
|---|---|
|
| 137 |
+
| Issue types (rule-based) | bug 121 · feature_request 65 · question 59 · other 50 · documentation 22 · security 7 |
|
| 138 |
+
| Closed issues | 88.3% (286 closed, 38 open) |
|
| 139 |
+
| Issues with ≥ 1 comment | 93.5% |
|
| 140 |
+
| Issues with a maintainer reply | 34.9% |
|
| 141 |
+
| Issues with a code block / Python traceback | 60.5% / 10.2% |
|
| 142 |
+
| Unique (pseudonymous) issue authors | 292 |
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
## 2. Data collection process (Task 1 / Task 4)
|
| 147 |
+
|
| 148 |
+
**Why this source.** `psf/requests` is a mature, public, very widely used project. Its issues are real
|
| 149 |
+
support questions and bug reports about common HTTP problems (SSL, proxies, timeouts, encodings), which suits
|
| 150 |
+
sentiment analysis (Task 2) and "find similar problems" search (Task 3). It follows the method of the course
|
| 151 |
+
tutorial (GitHub Issues) but uses a different repository.
|
| 152 |
+
|
| 153 |
+
**How it was collected** (code: Notebook 1, `01_collect_augment_publish.ipynb`):
|
| 154 |
+
|
| 155 |
+
1. The official **GitHub REST API** was called with the Python `requests` library on 29 Oct 2026
|
| 156 |
+
(05:21–05:23 UTC). No web pages were scraped.
|
| 157 |
+
- `GET /repos/psf/requests/issues?state=all&sort=created&direction=desc` – 10 pages × 100 = 1,000 items
|
| 158 |
+
(GitHub does not return list results after the first 1,000 items; a request for page 11 returned HTTP 422).
|
| 159 |
+
- `GET /repos/psf/requests/issues/comments?since=2023-11-05T07:13:53Z` – 18 pages, 1,767 comments.
|
| 160 |
+
- 30 API calls in total (28 × HTTP 200, 2 × HTTP 422), all recorded in a collection log
|
| 161 |
+
(time, URL, status, remaining rate limit). No access token was used (public 60-requests-per-hour limit).
|
| 162 |
+
2. Every API page was cached to disk, so the notebook can be re-run without calling the API again.
|
| 163 |
+
3. The 1,000 items contained **644 pull requests**, which were removed (they are code changes, not issues),
|
| 164 |
+
leaving 356 issues.
|
| 165 |
+
4. Cleaning: **31 spam issues** (renamed `<spam>` or labelled `spam` by maintainers) and **1 exact duplicate
|
| 166 |
+
post** were removed → **324 issues**. No bot-authored issues were found. Missing `closed_at` values belong to
|
| 167 |
+
open issues and are expected.
|
| 168 |
+
5. Privacy processing and augmentation (see fields above). 4 issues (1.2%) have fewer comments than GitHub
|
| 169 |
+
reports (marked `comments_complete = false`).
|
| 170 |
+
6. Files were saved with SHA-256 checksums in `data/manifest.json` and uploaded to this repository through the
|
| 171 |
+
logged-in Hugging Face website session (Hub commit API).
|
| 172 |
+
|
| 173 |
+
**Reliability of the source.** The API is GitHub's authoritative record, so the text and dates are exact copies
|
| 174 |
+
at collection time. Limits: issues can be edited or deleted later; labels are used inconsistently by maintainers,
|
| 175 |
+
which is why `issue_type` is derived by rules and should be treated as an approximate label.
|
| 176 |
+
|
| 177 |
+
---
|
| 178 |
+
|
| 179 |
+
## 3. Uses
|
| 180 |
+
|
| 181 |
+
**Intended uses:** teaching and practice in data collection, NLP pipelines, embeddings and semantic search;
|
| 182 |
+
exploring how users report problems in an open-source project.
|
| 183 |
+
|
| 184 |
+
**Out-of-scope uses:** identifying, profiling or contacting individual users; recruitment or marketing lists;
|
| 185 |
+
judging the behaviour of named people; any decision about a person. These uses are also not allowed by the
|
| 186 |
+
GitHub Acceptable Use Policies (see Compliance).
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
## 4. Bias, risks and limitations
|
| 191 |
+
|
| 192 |
+
- **Small sample and short window:** one repository, Nov 2023 – Oct 2026 only. Older, classic problems
|
| 193 |
+
(e.g. Python 2) are missing, so search results for them are misleading.
|
| 194 |
+
- **Self-selection:** only people who chose to open an issue are represented; most are first-time posters
|
| 195 |
+
(`author_association = NONE` for 94% of issues).
|
| 196 |
+
- **Language:** English only. Notebook 3 shows that a Japanese query gets about half the similarity score of
|
| 197 |
+
the same English query.
|
| 198 |
+
- **Rule-based labels:** `issue_type` comes from simple rules; small groups (security n = 7) are unreliable.
|
| 199 |
+
- **Model findings in the notebooks** (e.g. 97% of issues predicted NEGATIVE by an SST-2 sentiment model) show the
|
| 200 |
+
limits of general-purpose models on technical text; they are not facts about the community's mood.
|
| 201 |
+
- **Re-identification:** pseudonyms reduce risk but do not make the data anonymous – the `html_url` links and the
|
| 202 |
+
text itself can lead back to a GitHub account (see risk table).
|
| 203 |
+
|
| 204 |
+
---
|
| 205 |
+
|
| 206 |
+
## 5. Licensing, attribution and usage
|
| 207 |
+
|
| 208 |
+
- **Licence:** `other`. The issue and comment texts belong to their authors and are made available on GitHub under the
|
| 209 |
+
[GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service). They are **not**
|
| 210 |
+
covered by the Apache-2.0 licence of the `requests` source code. The compilation, cleaning and derived fields
|
| 211 |
+
in this repository may be reused for non-commercial educational and research purposes with attribution.
|
| 212 |
+
- **Attribution:** every row keeps `html_url`, the link to the original issue. Please cite the original repository
|
| 213 |
+
and this dataset.
|
| 214 |
+
- **Removal requests:** if you wrote one of these issues and want it removed, open a discussion on this repository;
|
| 215 |
+
the row will be deleted in the next version.
|
| 216 |
+
|
| 217 |
+
---
|
| 218 |
+
|
| 219 |
+
## 6. Compliance with legislation, codes and policy (Task 4)
|
| 220 |
+
|
| 221 |
+
| Requirement | How this project complies |
|
| 222 |
+
|---|---|
|
| 223 |
+
| **GitHub Terms of Service – API Terms (Section H)** | Data collected only through the official API, within rate limits, with an identifying `User-Agent`; no attempt to bypass limits. |
|
| 224 |
+
| **GitHub Acceptable Use Policies – Information Usage & Privacy** | Collection through the API is not "scraping" under the policy; the information is not used for spamming or sold (e.g. to recruiters); personal information is minimised and secured; use is limited to education/research. |
|
| 225 |
+
| **Privacy Act 1988 (Cth) & Australian Privacy Principles** | Treats user names and text as personal information even though public. **APP 3 / data minimisation:** only fields needed for the task were kept (no avatars, profile links, e-mails). **APP 6 (use):** used only for the stated educational purpose. **APP 8 (cross-border):** the dataset is stored on Hugging Face servers outside Australia, so only pseudonymised, masked data is published; the identifying mapping stays on the student's computer. **APP 11 (security):** see storage section. |
|
| 226 |
+
| **GDPR (EU) – for EU-based GitHub users** | Data minimisation and pseudonymisation (Art. 5, Art. 25); public-interest/educational purpose; removal on request (Art. 17 spirit). |
|
| 227 |
+
| **Copyright Act 1968 (Cth)** | Original texts remain the authors' work; they are reproduced for research/study with attribution and links, under GitHub's ToS, and not for commercial use. |
|
| 228 |
+
| **Australia's AI Ethics Principles** | Fairness, privacy protection, transparency and contestability are addressed through the bias analysis, masking, this documentation and the removal process. |
|
| 229 |
+
| **Open data documentation standard** | This card follows the structure of *Datasheets for Datasets* (Gebru et al.) and the Hugging Face dataset card template: motivation, composition, collection, preprocessing, uses, distribution, maintenance. |
|
| 230 |
+
| **Institute policy: Data Storage, Management and Compliance (LMS)** | Raw and identifying data kept only in the student's private project folder; no credentials in code; published data checked for personal details before upload (Notebook 2, section 2); versioned with checksums; work files submitted through the LMS. |
|
| 231 |
+
|
| 232 |
+
---
|
| 233 |
+
|
| 234 |
+
## 7. Risks and mitigation (Task 4)
|
| 235 |
+
|
| 236 |
+
| # | Risk | Likelihood / impact | Mitigation done | Further action / future mitigation |
|
| 237 |
+
|---|---|---|---|---|
|
| 238 |
+
| 1 | Re-identification of users through `html_url` or quoted text | Medium / Medium | Names pseudonymised; e-mails, URLs, @mentions masked; mapping not published | Offer removal on request; consider dropping `html_url` in a "privacy" config if a request is received |
|
| 239 |
+
| 2 | Personal data left inside free text (e.g. names in signatures, log files with IPs) | Low–Medium / Medium | Automatic scan before publishing (0 e-mails, 0 tokens, 0 unmasked mentions found) | Add IP-address and person-name detection (NER) to the cleaning step |
|
| 240 |
+
| 3 | Secrets accidentally published (API tokens) | Low / High | Tokens only in environment variables; scan for `ghp_`, `github_pat_`, `hf_` patterns | Re-run the scan before every upload; revoke and replace any token that is ever exposed |
|
| 241 |
+
| 4 | Biased or misleading conclusions (small sample, English only, rule-based labels) | High / Medium | Limitations documented here and in each notebook | Collect a longer time window with a token; hand-label a sample to measure accuracy |
|
| 242 |
+
| 5 | Licence misunderstanding (text treated as Apache-2.0) | Medium / Low | Licence set to `other` with explanation | Review with the institute before any wider reuse |
|
| 243 |
+
| 6 | Data becomes outdated or issues are deleted upstream | Medium / Low | Collection date and version recorded | Re-collect on a schedule and publish v1.1 with a changelog |
|
| 244 |
+
| 7 | Loss of files or untracked changes | Low / Medium | Hub repository keeps every commit; checksums in manifest | Keep a second copy in the institute's approved storage (e.g. OneDrive) |
|
| 245 |
+
| 8 | Misuse for profiling or contacting people | Low / High | Out-of-scope uses stated; GitHub AUP referenced | Switch the repository to gated access if misuse is reported |
|
| 246 |
+
|
| 247 |
+
**Corrective actions already taken during the project:** the first collection run requested page 11 and received
|
| 248 |
+
HTTP 422 → the page limit was corrected to 10; spam posts and a duplicate post found by the quality checks were removed;
|
| 249 |
+
a mis-ordered labelling rule (the label "Question/Not a bug" was being read as "bug") was fixed.
|
| 250 |
+
|
| 251 |
+
---
|
| 252 |
+
|
| 253 |
+
## 8. Storage, locations and versioning
|
| 254 |
+
|
| 255 |
+
| Item | Location | Access |
|
| 256 |
+
|---|---|---|
|
| 257 |
+
| Published dataset and card | this repository: `https://huggingface.co/datasets/htno/psf-requests-github-issues` | public |
|
| 258 |
+
| Working copy of the project (notebooks, outputs, CSV copy) | student's computer: `Documents/Claude/HF_Assessment_F122A12/` | private |
|
| 259 |
+
| Notebooks and outputs as assessment evidence | institute LMS | institute staff |
|
| 260 |
+
| Raw API pages + collection log | `data/raw/` in the working copy | private (in `.gitignore`) |
|
| 261 |
+
| Pseudonym mapping (real user names) | `data/private/user_id_map.csv` in the working copy | private (in `.gitignore`), never uploaded |
|
| 262 |
+
|
| 263 |
+
**Versioning**
|
| 264 |
+
|
| 265 |
+
- Semantic version in `data/manifest.json` (`1.0.0`). A new collection or changed cleaning rules → minor version
|
| 266 |
+
(`1.1.0`); fixes to documentation only → patch (`1.0.1`).
|
| 267 |
+
- Every upload is a commit in this Hugging Face (Git-based) repository; the commit history is the change log.
|
| 268 |
+
- Model versions are pinned by commit hash in the notebooks
|
| 269 |
+
(`distilbert/distilbert-base-uncased-finetuned-sst-2-english@714eb0f`, `sentence-transformers/all-MiniLM-L6-v2@1110a24`).
|
| 270 |
+
- File integrity (v1.0.0):
|
| 271 |
+
|
| 272 |
+
| File | Bytes | SHA-256 |
|
| 273 |
+
|---|---|---|
|
| 274 |
+
| `data/requests_issues.jsonl` | 2,073,986 | `50d9121e7d956e0468622141b5ef72edfcd295eee0db65b7d50547cc3a8bd04c` |
|
| 275 |
+
| `requests_issues.csv` (local copy, not published) | 1,868,817 | `e0a59bf0d6a7586eff8f0d7536395026af8a892271118104c3e6a30ea6963864` |
|
| 276 |
+
|
| 277 |
+
**Change log**
|
| 278 |
+
|
| 279 |
+
| Date | Version | Change |
|
| 280 |
+
|---|---|---|
|
| 281 |
+
| 2026-11-19 | 1.0.0 | Dataset file, manifest and this card published to the Hub. The data file is the same build as 29 Oct 2026 (same SHA-256). |
|
| 282 |
+
| 2026-10-29 | 1.0.0 | Dataset collected, cleaned and checked (Notebook 1). |
|
| 283 |
+
|
| 284 |
+
**Reproducibility:** run the three notebooks in order. Notebook 1 reads the cached API pages if they exist;
|
| 285 |
+
set the environment variable `GITHUB_TOKEN` to collect more pages. Libraries: `requests`, `pandas`, `numpy`,
|
| 286 |
+
`matplotlib`, `seaborn`, `datasets`, `transformers`, `torch`, `faiss-cpu`.
|
| 287 |
+
|
| 288 |
+
---
|
| 289 |
+
|
| 290 |
+
## 9. Results from the notebooks (short)
|
| 291 |
+
|
| 292 |
+
- **Task 2 – sentiment pipeline:** 314 of 324 issue openings (97%) are predicted NEGATIVE; replies are more positive
|
| 293 |
+
(15% of comments by issue authors, 7% of maintainer comments). Neutral technical sentences are also labelled
|
| 294 |
+
NEGATIVE → the SST-2 model mostly detects "describes a problem", not emotion.
|
| 295 |
+
- **Task 3 – FAISS search:** 1,007 documents (issues + comments of ≥ 15 words) embedded with all-MiniLM-L6-v2 in a
|
| 296 |
+
`faiss.IndexFlatIP` (cosine). Common problems (SSL, timeouts, proxies, uploads, encoding, retries) return on-topic
|
| 297 |
+
issues (best scores 0.61–0.72). Self-retrieval recall@5 = 100%. Gaps found: time window, English-only, and high
|
| 298 |
+
scores for topics that are not really covered.
|
| 299 |
+
|
| 300 |
+
---
|
| 301 |
+
|
| 302 |
+
## 10. References
|
| 303 |
+
|
| 304 |
+
- GitHub REST API – Issues: https://docs.github.com/en/rest/issues/issues
|
| 305 |
+
- GitHub REST API – Issue comments: https://docs.github.com/en/rest/issues/comments
|
| 306 |
+
- GitHub Terms of Service (incl. Section H, API Terms): https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
|
| 307 |
+
- GitHub Acceptable Use Policies: https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies
|
| 308 |
+
- Source repository: https://github.com/psf/requests
|
| 309 |
+
- Hugging Face LLM Course – Creating your own dataset: https://huggingface.co/learn/llm-course/chapter5/5?fw=pt
|
| 310 |
+
- Hugging Face LLM Course – Behind the pipeline: https://huggingface.co/learn/llm-course/chapter2/2?fw=pt
|
| 311 |
+
- Hugging Face LLM Course – Semantic search with FAISS: https://huggingface.co/learn/llm-course/chapter5/6?fw=pt
|
| 312 |
+
- Hugging Face dataset cards: https://huggingface.co/docs/hub/datasets-cards
|
| 313 |
+
- Model: https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english
|
| 314 |
+
- Model: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
|
| 315 |
+
- FAISS: https://github.com/facebookresearch/faiss
|
| 316 |
+
- Gebru, T. et al. (2021). *Datasheets for Datasets*. Communications of the ACM, 64(12). https://arxiv.org/abs/1803.09010
|
| 317 |
+
- Office of the Australian Information Commissioner – Australian Privacy Principles: https://www.oaic.gov.au/privacy/australian-privacy-principles
|
| 318 |
+
- OAIC – APP Guidelines, Chapter 8 (cross-border disclosure): https://www.oaic.gov.au/privacy/australian-privacy-principles-guidelines/chapter-8-app-8-cross-border-disclosure-of-personal-information
|
| 319 |
+
- Privacy Act 1988 (Cth): https://www.legislation.gov.au/C2004A03712/latest
|
| 320 |
+
- Copyright Act 1968 (Cth): https://www.legislation.gov.au/C1968A00063/latest
|
| 321 |
+
- Australia's AI Ethics Principles: https://www.industry.gov.au/publications/australias-artificial-intelligence-ethics-principles/australias-ai-ethics-principles
|
| 322 |
+
- GDPR (Regulation (EU) 2016/679): https://eur-lex.europa.eu/eli/reg/2016/679/oj
|
| 323 |
+
|
| 324 |
+
## Citation
|
| 325 |
+
|
| 326 |
+
```bibtex
|
| 327 |
+
@misc{htno_psf_requests_issues_2026,
|
| 328 |
+
title = {psf/requests GitHub Issues (Nov 2023 -- Oct 2026)},
|
| 329 |
+
author = {Kyu-Vi (htno)},
|
| 330 |
+
year = {2026},
|
| 331 |
+
publisher = {Hugging Face},
|
| 332 |
+
howpublished = {\url{https://huggingface.co/datasets/htno/psf-requests-github-issues}}
|
| 333 |
+
}
|
| 334 |
+
```
|
data/manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": "htno/psf-requests-github-issues",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"created_utc": "2026-10-29T05:46:12+00:00",
|
| 5 |
+
"source": "https://api.github.com/repos/psf/requests/issues and /issues/comments",
|
| 6 |
+
"collection_window_start": "2023-11-05T07:13:53Z",
|
| 7 |
+
"rows": 324,
|
| 8 |
+
"files": {
|
| 9 |
+
"requests_issues.jsonl": {
|
| 10 |
+
"bytes": 2073986,
|
| 11 |
+
"sha256": "50d9121e7d956e0468622141b5ef72edfcd295eee0db65b7d50547cc3a8bd04c"
|
| 12 |
+
},
|
| 13 |
+
"requests_issues.csv": {
|
| 14 |
+
"bytes": 1868817,
|
| 15 |
+
"sha256": "e0a59bf0d6a7586eff8f0d7536395026af8a892271118104c3e6a30ea6963864"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|