Datasets:
|
Download README.md from professor3333/patchsight: direct link, hf CLI and curl.
- Browser
- Download file 3.4 kB
-
https://huggingface.co/datasets/professor3333/patchsight/resolve/main/README.md
- Command line
-
hf download hf://datasets/professor3333/patchsight/README.md
-
curl -L -o README.md https://huggingface.co/datasets/professor3333/patchsight/resolve/main/README.md
3.4 kB
| license: cc-by-4.0 | |
| pretty_name: PatchSight symbol database | |
| language: | |
| - en | |
| tags: | |
| - security | |
| - vulnerabilities | |
| - python | |
| - pypi | |
| - osv | |
| size_categories: | |
| - 1K<n<10K | |
| configs: | |
| - config_name: records | |
| data_files: records.jsonl | |
| default: true | |
| - config_name: aliases | |
| data_files: aliases.jsonl | |
| # PatchSight symbol database | |
| For each PyPI security advisory with a fix on GitHub, the functions and classes its fix changed, and the ones a language model picked as vulnerable, with the hunks it cites. [PatchSight](https://github.com/professor3333/PatchSight) uses it to tell which dependency alerts your code actually calls, with no model at scan time. | |
| This is version **2026.11.22** (tag `db-2026.11.22`), the same as the [GitHub release](https://github.com/professor3333/PatchSight/releases/tag/db-2026.11.22). | |
| - **3,649 vulnerabilities, 3,809 records.** 22,572 advisory IDs and aliases point at them. | |
| - `patchsight-db-2026.11.22.sqlite.gz`: SHA-256 `4f282f3d1da6c128b7675bbd8ed20bf35488731ec8923ac5f2ac751412c2a456`. | |
| | Records by source and confidence | Records | | |
| |---|---:| | |
| | fallback, low | 179 | | |
| | llm, low | 3,630 | | |
| **Every record is low confidence, by policy.** It lists every definition the fix changed; the model's picks are kept as evidence. A low-confidence record can mark an alert as called, never as "imported, not called". See the [dataset card](https://github.com/professor3333/PatchSight/blob/main/docs/dataset_card.md) and the [model card](https://github.com/professor3333/PatchSight/blob/main/docs/model_card.md) for how records are made, what the tiers mean and what is measured. | |
| ## Use | |
| ```bash | |
| pip install patchsight | |
| patchsight db update # the latest database, SHA-256 checked | |
| patchsight scan . | |
| ``` | |
| Or read the records directly, at a fixed version: | |
| ```python | |
| from datasets import load_dataset | |
| records = load_dataset("professor3333/patchsight", "records", revision="db-2026.11.22", split="train") | |
| ``` | |
| ## Files | |
| - `records.jsonl`: one record per line: vulnerability, package, confidence, source, import roots, symbols, entry points, fix commits, model and prompt version, input hash, the advisory's `modified` time, truncation, the tier reason and, for model picks, each symbol's rationale and cited hunks (commit, path and line ranges). | |
| - `aliases.jsonl`: every advisory ID and alias (GHSA, PYSEC, CVE, ...) with the vulnerability it belongs to. | |
| - `patchsight-db-2026.11.22.sqlite.gz`: the SQLite database the CLI downloads. | |
| No third-party source code is included. | |
| ## Attribution and licence | |
| Advisory identifiers and affected-package data come from [OSV.dev](https://osv.dev), which aggregates the [GitHub Advisory Database](https://github.com/github/advisory-database) and the [PyPA Advisory Database](https://github.com/pypa/advisory-database). All three are licensed CC BY 4.0. | |
| **Changes made:** PatchSight resolved each advisory's fix commit on GitHub, mapped the changed lines to function names with tree-sitter, and, where shown, had language models choose the vulnerable ones. It stores those names with file paths, line ranges and commit SHAs. No third-party source code is included. | |
| **Licence:** the PatchSight symbol database is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). If you share it, or data derived from it, credit "PatchSight symbol database" with the release, keep the attribution above, and say what you changed. | |