professor3333 commited on
Commit
2d26402
·
verified ·
1 Parent(s): 5463775

Symbol database 2026.11.21.1

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ records.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,68 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ pretty_name: PatchSight symbol database
4
+ language:
5
+ - en
6
+ tags:
7
+ - security
8
+ - vulnerabilities
9
+ - python
10
+ - pypi
11
+ - osv
12
+ size_categories:
13
+ - 1K<n<10K
14
+ configs:
15
+ - config_name: records
16
+ data_files: records.jsonl
17
+ default: true
18
+ - config_name: aliases
19
+ data_files: aliases.jsonl
20
  ---
21
+
22
+ # PatchSight symbol database
23
+
24
+ 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.
25
+
26
+ This is version **2026.11.21.1** (tag `db-2026.11.21.1`), the same as the [GitHub release](https://github.com/professor3333/PatchSight/releases/tag/db-2026.11.21.1).
27
+
28
+ - **3,649 vulnerabilities, 3,809 records.** 22,572 advisory IDs and aliases point at them.
29
+ - `patchsight-db-2026.11.21.1.sqlite.gz`: SHA-256 `bd5018ae0387b99938bf2f255ce2da0149da98bbdd5aaf796ff69af66efb5102`.
30
+
31
+ | Records by source and confidence | Records |
32
+ |---|---:|
33
+ | fallback, low | 204 |
34
+ | llm, low | 3,605 |
35
+
36
+ **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.
37
+
38
+ ## Use
39
+
40
+ ```bash
41
+ pip install patchsight
42
+ patchsight db update # the latest database, SHA-256 checked
43
+ patchsight scan .
44
+ ```
45
+
46
+ Or read the records directly, at a fixed version:
47
+
48
+ ```python
49
+ from datasets import load_dataset
50
+
51
+ records = load_dataset("professor3333/patchsight", "records", revision="db-2026.11.21.1", split="train")
52
+ ```
53
+
54
+ ## Files
55
+
56
+ - `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).
57
+ - `aliases.jsonl`: every advisory ID and alias (GHSA, PYSEC, CVE, ...) with the vulnerability it belongs to.
58
+ - `patchsight-db-2026.11.21.1.sqlite.gz`: the SQLite database the CLI downloads.
59
+
60
+ No third-party source code is included.
61
+
62
+ ## Attribution and licence
63
+
64
+ 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.
65
+
66
+ **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.
67
+
68
+ **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.
aliases.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
patchsight-db-2026.11.21.1.sqlite.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5018ae0387b99938bf2f255ce2da0149da98bbdd5aaf796ff69af66efb5102
3
+ size 4068914
records.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38deaec7cef20b1960e2f8eab49dba2ad0894cdaa0251ec1180537280777ecd6
3
+ size 13506164