--- pretty_name: psf/requests GitHub Issues (Nov 2023 – Oct 2026) language: - en license: other license_name: github-user-content license_link: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service annotations_creators: - machine-generated language_creators: - found multilinguality: - monolingual size_categories: - n<1K source_datasets: - original task_categories: - text-classification - text-retrieval - sentence-similarity task_ids: - sentiment-classification - document-retrieval tags: - github - github-issues - software-engineering - python - requests - semantic-search - faiss - education configs: - config_name: default data_files: - split: train path: data/requests_issues.jsonl --- # psf/requests GitHub Issues (Nov 2023 – Oct 2026) A small, real, documented dataset of **324 user-reported GitHub issues** and their **870 comments** from the [`psf/requests`](https://github.com/psf/requests) repository (the most widely used Python HTTP library). It was built for a TAFE/VET assessment (Assessment Task F122A12: *create and publish a dataset → apply a Transformers pipeline → semantic search with FAISS*) and is meant for learning and small experiments. ```python from datasets import load_dataset ds = load_dataset("htno/psf-requests-github-issues", split="train") ``` | | | |---|---| | Rows | 324 issues (one row per issue, comments stored as a list) | | Time window | issues created 2023-11-05 to 2026-10-29 | | Comments | 870 (98.8% of issues have all of their comments) | | Language | English | | Version | 1.0.0 (see [Versioning](#8-storage-locations-and-versioning)) | | Personal data | user names pseudonymised; e-mails, URLs and @mentions masked | --- ## 1. Dataset structure ### Files | Path | Content | |---|---| | `data/requests_issues.jsonl` | the dataset (default config, one JSON record per line) | | `data/manifest.json` | version, row count, source, SHA-256 checksums | | `README.md` | this dataset card | The three notebooks that built and used this dataset (`01_collect_augment_publish.ipynb`, `02_transformers_pipeline.ipynb`, `03_semantic_search_faiss.ipynb`), their outputs and a CSV copy of the table are submitted with the assessment and kept in the private working folder (see section 8). ### Example record (shortened) ```json {"number": 6566, "html_url": "https://github.com/psf/requests/issues/6566", "title": "Import error with werkzeug", "text": "Import error with werkzeug. When I run `make ci` on the main branch, it throws this import ...", "comments": ["..."], "state": "closed", "state_reason": "completed", "issue_type": "bug", "n_comments_collected": 1, "maintainer_replied": false, "days_to_close": 0.18, "author_id": "user_0467", "author_association": "CONTRIBUTOR", "has_traceback": false} ``` ### Data fields **Original fields (from the GitHub API, cleaned)** | Field | Type | Description | |---|---|---| | `number` | int | issue number in `psf/requests` (unique key) | | `html_url` | str | link to the original issue (attribution) | | `title` | str | issue title (masked) | | `body_clean` | str | issue body; HTML comments removed; e-mails → `[EMAIL]`, URLs → `[URL]`, @mentions → `@[USER]`; code kept | | `state`, `state_reason` | str | `open`/`closed`; `completed`, `not_planned`, `duplicate` or empty | | `created_at`, `closed_at`, `updated_at` | str (ISO-8601, UTC) | timestamps | | `labels` | list[str] | maintainer labels | | `comments_reported` | int | number of comments according to GitHub | | `reactions_total` | int | total emoji reactions | | `author_association` | str | author's role in the repo (`NONE`, `CONTRIBUTOR`, `MEMBER`, ...) | | `locked` | bool | conversation locked by maintainers | **Augmented / derived fields (added in Notebook 1)** | Field | Type | How it was made | |---|---|---| | `body_prose` | str | `body_clean` with code blocks replaced by `[CODE]` (for language models) | | `text` | str | `title + ". " + body_prose` – one input text per issue | | `comments` | list[str] | cleaned comment texts, oldest first, joined from the comments endpoint | | `comment_author_ids` | list[str] | pseudonym of each commenter | | `comment_author_roles` | list[str] | role of each commenter (`MEMBER`, `CONTRIBUTOR`, `NONE`, ...) | | `comment_by_issue_author` | list[bool] | whether each comment was written by the issue author | | `n_comments_collected` | int | comments found in this dataset | | `comments_complete` | bool | `n_comments_collected >= comments_reported` | | `maintainer_replied` | bool | at least one comment by OWNER / MEMBER / COLLABORATOR | | `hours_to_first_response` | float | hours until the first comment by someone other than the author | | `is_closed`, `days_to_close` | bool, float | lifecycle fields | | `created_year_month` | str | e.g. `2025-03` | | `issue_type` | str | **rule-based** label: `bug`, `feature_request`, `question`, `documentation`, `security`, `other` (maintainer labels first, then title key words) | | `has_code_block`, `has_traceback` | bool | pattern search in the body | | `title_words`, `body_words` | int | word counts | | `author_id` | str | pseudonym of the issue author (`user_0001`, ...) | ### Splits One `train` split with all 324 rows. No test split is defined because the dataset is used for exploration and retrieval, not for training a model. ### Summary statistics (v1.0.0) | Measure | Value | |---|---| | Issue types (rule-based) | bug 121 · feature_request 65 · question 59 · other 50 · documentation 22 · security 7 | | Closed issues | 88.3% (286 closed, 38 open) | | Issues with ≥ 1 comment | 93.5% | | Issues with a maintainer reply | 34.9% | | Issues with a code block / Python traceback | 60.5% / 10.2% | | Unique (pseudonymous) issue authors | 292 | --- ## 2. Data collection process (Task 1 / Task 4) **Why this source.** `psf/requests` is a mature, public, very widely used project. Its issues are real support questions and bug reports about common HTTP problems (SSL, proxies, timeouts, encodings), which suits sentiment analysis (Task 2) and "find similar problems" search (Task 3). It follows the method of the course tutorial (GitHub Issues) but uses a different repository. **How it was collected** (code: Notebook 1, `01_collect_augment_publish.ipynb`): 1. The official **GitHub REST API** was called with the Python `requests` library on 29 Oct 2026 (05:21–05:23 UTC). No web pages were scraped. - `GET /repos/psf/requests/issues?state=all&sort=created&direction=desc` – 10 pages × 100 = 1,000 items (GitHub does not return list results after the first 1,000 items; a request for page 11 returned HTTP 422). - `GET /repos/psf/requests/issues/comments?since=2023-11-05T07:13:53Z` – 18 pages, 1,767 comments. - 30 API calls in total (28 × HTTP 200, 2 × HTTP 422), all recorded in a collection log (time, URL, status, remaining rate limit). No access token was used (public 60-requests-per-hour limit). 2. Every API page was cached to disk, so the notebook can be re-run without calling the API again. 3. The 1,000 items contained **644 pull requests**, which were removed (they are code changes, not issues), leaving 356 issues. 4. Cleaning: **31 spam issues** (renamed `` or labelled `spam` by maintainers) and **1 exact duplicate post** were removed → **324 issues**. No bot-authored issues were found. Missing `closed_at` values belong to open issues and are expected. 5. Privacy processing and augmentation (see fields above). 4 issues (1.2%) have fewer comments than GitHub reports (marked `comments_complete = false`). 6. Files were saved with SHA-256 checksums in `data/manifest.json` and uploaded to this repository through the logged-in Hugging Face website session (Hub commit API). **Reliability of the source.** The API is GitHub's authoritative record, so the text and dates are exact copies at collection time. Limits: issues can be edited or deleted later; labels are used inconsistently by maintainers, which is why `issue_type` is derived by rules and should be treated as an approximate label. --- ## 3. Uses **Intended uses:** teaching and practice in data collection, NLP pipelines, embeddings and semantic search; exploring how users report problems in an open-source project. **Out-of-scope uses:** identifying, profiling or contacting individual users; recruitment or marketing lists; judging the behaviour of named people; any decision about a person. These uses are also not allowed by the GitHub Acceptable Use Policies (see Compliance). --- ## 4. Bias, risks and limitations - **Small sample and short window:** one repository, Nov 2023 – Oct 2026 only. Older, classic problems (e.g. Python 2) are missing, so search results for them are misleading. - **Self-selection:** only people who chose to open an issue are represented; most are first-time posters (`author_association = NONE` for 94% of issues). - **Language:** English only. Notebook 3 shows that a Japanese query gets about half the similarity score of the same English query. - **Rule-based labels:** `issue_type` comes from simple rules; small groups (security n = 7) are unreliable. - **Model findings in the notebooks** (e.g. 97% of issues predicted NEGATIVE by an SST-2 sentiment model) show the limits of general-purpose models on technical text; they are not facts about the community's mood. - **Re-identification:** pseudonyms reduce risk but do not make the data anonymous – the `html_url` links and the text itself can lead back to a GitHub account (see risk table). --- ## 5. Licensing, attribution and usage - **Licence:** `other`. The issue and comment texts belong to their authors and are made available on GitHub under the [GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service). They are **not** covered by the Apache-2.0 licence of the `requests` source code. The compilation, cleaning and derived fields in this repository may be reused for non-commercial educational and research purposes with attribution. - **Attribution:** every row keeps `html_url`, the link to the original issue. Please cite the original repository and this dataset. - **Removal requests:** if you wrote one of these issues and want it removed, open a discussion on this repository; the row will be deleted in the next version. --- ## 6. Compliance with legislation, codes and policy (Task 4) | Requirement | How this project complies | |---|---| | **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. | | **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. | | **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. | | **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). | | **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. | | **Australia's AI Ethics Principles** | Fairness, privacy protection, transparency and contestability are addressed through the bias analysis, masking, this documentation and the removal process. | | **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. | | **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. | --- ## 7. Risks and mitigation (Task 4) | # | Risk | Likelihood / impact | Mitigation done | Further action / future mitigation | |---|---|---|---|---| | 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 | | 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 | | 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 | | 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 | | 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 | | 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 | | 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) | | 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 | **Corrective actions already taken during the project:** the first collection run requested page 11 and received HTTP 422 → the page limit was corrected to 10; spam posts and a duplicate post found by the quality checks were removed; a mis-ordered labelling rule (the label "Question/Not a bug" was being read as "bug") was fixed. --- ## 8. Storage, locations and versioning | Item | Location | Access | |---|---|---| | Published dataset and card | this repository: `https://huggingface.co/datasets/htno/psf-requests-github-issues` | public | | Working copy of the project (notebooks, outputs, CSV copy) | student's computer: `Documents/Claude/HF_Assessment_F122A12/` | private | | Notebooks and outputs as assessment evidence | institute LMS | institute staff | | Raw API pages + collection log | `data/raw/` in the working copy | private (in `.gitignore`) | | Pseudonym mapping (real user names) | `data/private/user_id_map.csv` in the working copy | private (in `.gitignore`), never uploaded | **Versioning** - Semantic version in `data/manifest.json` (`1.0.0`). A new collection or changed cleaning rules → minor version (`1.1.0`); fixes to documentation only → patch (`1.0.1`). - Every upload is a commit in this Hugging Face (Git-based) repository; the commit history is the change log. - Model versions are pinned by commit hash in the notebooks (`distilbert/distilbert-base-uncased-finetuned-sst-2-english@714eb0f`, `sentence-transformers/all-MiniLM-L6-v2@1110a24`). - File integrity (v1.0.0): | File | Bytes | SHA-256 | |---|---|---| | `data/requests_issues.jsonl` | 2,073,986 | `50d9121e7d956e0468622141b5ef72edfcd295eee0db65b7d50547cc3a8bd04c` | | `requests_issues.csv` (local copy, not published) | 1,868,817 | `e0a59bf0d6a7586eff8f0d7536395026af8a892271118104c3e6a30ea6963864` | **Change log** | Date | Version | Change | |---|---|---| | 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). | | 2026-10-29 | 1.0.0 | Dataset collected, cleaned and checked (Notebook 1). | **Reproducibility:** run the three notebooks in order. Notebook 1 reads the cached API pages if they exist; set the environment variable `GITHUB_TOKEN` to collect more pages. Libraries: `requests`, `pandas`, `numpy`, `matplotlib`, `seaborn`, `datasets`, `transformers`, `torch`, `faiss-cpu`. --- ## 9. Results from the notebooks (short) - **Task 2 – sentiment pipeline:** 314 of 324 issue openings (97%) are predicted NEGATIVE; replies are more positive (15% of comments by issue authors, 7% of maintainer comments). Neutral technical sentences are also labelled NEGATIVE → the SST-2 model mostly detects "describes a problem", not emotion. - **Task 3 – FAISS search:** 1,007 documents (issues + comments of ≥ 15 words) embedded with all-MiniLM-L6-v2 in a `faiss.IndexFlatIP` (cosine). Common problems (SSL, timeouts, proxies, uploads, encoding, retries) return on-topic issues (best scores 0.61–0.72). Self-retrieval recall@5 = 100%. Gaps found: time window, English-only, and high scores for topics that are not really covered. --- ## 10. References - GitHub REST API – Issues: https://docs.github.com/en/rest/issues/issues - GitHub REST API – Issue comments: https://docs.github.com/en/rest/issues/comments - GitHub Terms of Service (incl. Section H, API Terms): https://docs.github.com/en/site-policy/github-terms/github-terms-of-service - GitHub Acceptable Use Policies: https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies - Source repository: https://github.com/psf/requests - Hugging Face LLM Course – Creating your own dataset: https://huggingface.co/learn/llm-course/chapter5/5?fw=pt - Hugging Face LLM Course – Behind the pipeline: https://huggingface.co/learn/llm-course/chapter2/2?fw=pt - Hugging Face LLM Course – Semantic search with FAISS: https://huggingface.co/learn/llm-course/chapter5/6?fw=pt - Hugging Face dataset cards: https://huggingface.co/docs/hub/datasets-cards - Model: https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english - Model: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 - FAISS: https://github.com/facebookresearch/faiss - Gebru, T. et al. (2021). *Datasheets for Datasets*. Communications of the ACM, 64(12). https://arxiv.org/abs/1803.09010 - Office of the Australian Information Commissioner – Australian Privacy Principles: https://www.oaic.gov.au/privacy/australian-privacy-principles - 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 - Privacy Act 1988 (Cth): https://www.legislation.gov.au/C2004A03712/latest - Copyright Act 1968 (Cth): https://www.legislation.gov.au/C1968A00063/latest - Australia's AI Ethics Principles: https://www.industry.gov.au/publications/australias-artificial-intelligence-ethics-principles/australias-ai-ethics-principles - GDPR (Regulation (EU) 2016/679): https://eur-lex.europa.eu/eli/reg/2016/679/oj ## Citation ```bibtex @misc{htno_psf_requests_issues_2026, title = {psf/requests GitHub Issues (Nov 2023 -- Oct 2026)}, author = {Kyu-Vi (htno)}, year = {2026}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/htno/psf-requests-github-issues}} } ```