Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Languages:
English
Size:
10K - 100K
License:
TS-PRGuard: labeled code changes for pull request review
Browse files- README.md +296 -0
- breaking/test.jsonl.gz +3 -0
- breaking/train.jsonl.gz +3 -0
- breaking_api/test.jsonl.gz +3 -0
- breaking_api/train.jsonl.gz +3 -0
- change_type/test.jsonl.gz +3 -0
- change_type/train.jsonl.gz +3 -0
- complexity/test.jsonl.gz +3 -0
- complexity/train.jsonl.gz +3 -0
- description_match/test.jsonl.gz +3 -0
- description_match/train.jsonl.gz +3 -0
- figures/banner.png +3 -0
- figures/coverage.png +3 -0
- security_fix/test.jsonl.gz +3 -0
- security_fix/train.jsonl.gz +3 -0
- security_fix_mobile/test.jsonl.gz +3 -0
- security_synthetic/test.jsonl.gz +3 -0
- security_synthetic/train.jsonl.gz +3 -0
- tests/test.jsonl.gz +3 -0
- tests/train.jsonl.gz +3 -0
README.md
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: TS-PRGuard
|
| 6 |
+
size_categories:
|
| 7 |
+
- 10K<n<100K
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-classification
|
| 10 |
+
tags:
|
| 11 |
+
- typestrict
|
| 12 |
+
- code
|
| 13 |
+
- code-review
|
| 14 |
+
- pull-requests
|
| 15 |
+
- security
|
| 16 |
+
- cwe
|
| 17 |
+
- breaking-changes
|
| 18 |
+
- git
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: description_match
|
| 21 |
+
data_files: [{split: train, path: description_match/train.jsonl.gz}, {split: test, path: description_match/test.jsonl.gz}]
|
| 22 |
+
- config_name: complexity
|
| 23 |
+
data_files: [{split: train, path: complexity/train.jsonl.gz}, {split: test, path: complexity/test.jsonl.gz}]
|
| 24 |
+
- config_name: change_type
|
| 25 |
+
data_files: [{split: train, path: change_type/train.jsonl.gz}, {split: test, path: change_type/test.jsonl.gz}]
|
| 26 |
+
- config_name: breaking
|
| 27 |
+
data_files: [{split: train, path: breaking/train.jsonl.gz}, {split: test, path: breaking/test.jsonl.gz}]
|
| 28 |
+
- config_name: breaking_api
|
| 29 |
+
data_files: [{split: train, path: breaking_api/train.jsonl.gz}, {split: test, path: breaking_api/test.jsonl.gz}]
|
| 30 |
+
- config_name: tests
|
| 31 |
+
data_files: [{split: train, path: tests/train.jsonl.gz}, {split: test, path: tests/test.jsonl.gz}]
|
| 32 |
+
- config_name: security_fix
|
| 33 |
+
data_files: [{split: train, path: security_fix/train.jsonl.gz}, {split: test, path: security_fix/test.jsonl.gz}]
|
| 34 |
+
- config_name: security_fix_mobile
|
| 35 |
+
data_files: [{split: test, path: security_fix_mobile/test.jsonl.gz}]
|
| 36 |
+
- config_name: security_synthetic
|
| 37 |
+
data_files: [{split: train, path: security_synthetic/train.jsonl.gz}, {split: test, path: security_synthetic/test.jsonl.gz}]
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
<p align="center">
|
| 41 |
+
<a href="https://typestrict.ai"><img src="https://huggingface.co/datasets/typestrict/TS-PRGuard/resolve/main/figures/banner.png" width="100%" alt="TS-PRGuard by typestrict.ai"></a>
|
| 42 |
+
</p>
|
| 43 |
+
|
| 44 |
+
<p align="center">
|
| 45 |
+
<a href="https://typestrict.ai"><b>Train your own on typestrict.ai</b></a> |
|
| 46 |
+
<a href="https://docs.typestrict.ai">Docs</a> |
|
| 47 |
+
<a href="https://github.com/typestrict-lab/cli">CLI</a> |
|
| 48 |
+
<a href="https://huggingface.co/typestrict">All TS models</a>
|
| 49 |
+
<br>
|
| 50 |
+
<b>License</b>: CC BY 4.0 for the labels, each row's code under its repository's license |
|
| 51 |
+
<b>Authors</b>: <a href="https://typestrict.ai">typestrict.ai</a>
|
| 52 |
+
</p>
|
| 53 |
+
|
| 54 |
+
# TS-PRGuard
|
| 55 |
+
|
| 56 |
+
**37,048 labeled code changes for pull request review**, in 11 programming languages and 9 configs. Each row is a real diff from a permissively licensed repository with one answer: does the message describe the change, how big is it, what kind of change is it, does it break compatibility, do the tests cover it, does it fix a vulnerability (and which CWE).
|
| 57 |
+
|
| 58 |
+
We built it to train the PR Guard decision models on [typestrict.ai](https://typestrict.ai), and we publish it because the open data for these questions was either non-commercial, noisy, or missing the languages of mobile apps.
|
| 59 |
+
|
| 60 |
+
- **Commercial use**: every source and every repository allows it. Non-commercial and research-only sources were left out, without exception.
|
| 61 |
+
- **Measured labels**: an independent review of 300 fresh rows found 297 correct (upper 95% bound on the error of about 2.4%). Every config has its own check, listed below.
|
| 62 |
+
- **No easy shortcuts**: the hints that give the answer away were removed from the text (details in [Leakage](#-leakage-we-removed)).
|
| 63 |
+
- **Mobile included**: Kotlin, Swift and Dart in every question, with a public API rule for breaking changes and a checked synthetic set for vulnerabilities.
|
| 64 |
+
|
| 65 |
+
<p align="center">
|
| 66 |
+
<img src="https://huggingface.co/datasets/typestrict/TS-PRGuard/resolve/main/figures/coverage.png" width="100%" alt="Examples per task and language">
|
| 67 |
+
</p>
|
| 68 |
+
|
| 69 |
+
## 🧭 Configs
|
| 70 |
+
|
| 71 |
+
<div class="dark:hidden" style="overflow-x:auto;">
|
| 72 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 73 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Config</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Question</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Labels</th><th scope="col" style="padding:12px;text-align:right;background:#1A1806;color:#FFD400;">Train</th><th scope="col" style="padding:12px;text-align:right;background:#1A1806;color:#FFD400;">Test</th></tr></thead>
|
| 74 |
+
<tbody>
|
| 75 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>description_match</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Does the commit message describe this diff?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>matches</code>, <code>does_not_match</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">5,723</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">682</td></tr>
|
| 76 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>complexity</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">How large and spread out is the change?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">bands <code>0</code> to <code>4</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">6,056</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">673</td></tr>
|
| 77 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>change_type</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">What kind of change is it?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>feat</code>, <code>fix</code>, <code>refactor</code>, <code>perf</code>, <code>test</code>, <code>build</code>, <code>chore</code>, <code>style</code>, <code>docs</code>, <code>ci</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">2,961</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">330</td></tr>
|
| 78 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Does the pull request break compatibility?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking</code>, <code>not_breaking</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">5,337</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">594</td></tr>
|
| 79 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking_api</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Does the commit break the public API of a Kotlin, Swift or Dart library?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking</code>, <code>not_breaking</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">2,950</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">335</td></tr>
|
| 80 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>tests</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Do the tests in the change cover it?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>covered</code>, <code>not_covered</code>, <code>not_applicable</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">5,927</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">709</td></tr>
|
| 81 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_fix</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Which vulnerability does this commit fix?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">first CWE id, or <code>unspecified</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">3,267</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">363</td></tr>
|
| 82 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_fix_mobile</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Same, real fixes in Kotlin, Swift and Dart (test only)</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CWE id</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">0</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">67</td></tr>
|
| 83 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_synthetic</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Does this change introduce a vulnerability?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>introduces</code>, <code>safe</code> (537 pairs)</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">960</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">114</td></tr>
|
| 84 |
+
</tbody>
|
| 85 |
+
</table>
|
| 86 |
+
</div>
|
| 87 |
+
<div class="hidden dark:block" style="overflow-x:auto;">
|
| 88 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 89 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Config</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Question</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Labels</th><th scope="col" style="padding:12px;text-align:right;background:#FFD400;color:#1A1806;">Train</th><th scope="col" style="padding:12px;text-align:right;background:#FFD400;color:#1A1806;">Test</th></tr></thead>
|
| 90 |
+
<tbody>
|
| 91 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>description_match</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Does the commit message describe this diff?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>matches</code>, <code>does_not_match</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">5,723</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">682</td></tr>
|
| 92 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>complexity</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">How large and spread out is the change?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">bands <code>0</code> to <code>4</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">6,056</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">673</td></tr>
|
| 93 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>change_type</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">What kind of change is it?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>feat</code>, <code>fix</code>, <code>refactor</code>, <code>perf</code>, <code>test</code>, <code>build</code>, <code>chore</code>, <code>style</code>, <code>docs</code>, <code>ci</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">2,961</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">330</td></tr>
|
| 94 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Does the pull request break compatibility?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking</code>, <code>not_breaking</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">5,337</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">594</td></tr>
|
| 95 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking_api</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Does the commit break the public API of a Kotlin, Swift or Dart library?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking</code>, <code>not_breaking</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">2,950</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">335</td></tr>
|
| 96 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>tests</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Do the tests in the change cover it?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>covered</code>, <code>not_covered</code>, <code>not_applicable</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">5,927</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">709</td></tr>
|
| 97 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_fix</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Which vulnerability does this commit fix?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">first CWE id, or <code>unspecified</code></td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">3,267</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">363</td></tr>
|
| 98 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_fix_mobile</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Same, real fixes in Kotlin, Swift and Dart (test only)</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CWE id</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">0</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">67</td></tr>
|
| 99 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_synthetic</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Does this change introduce a vulnerability?</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>introduces</code>, <code>safe</code> (537 pairs)</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">960</td><td style="padding:10px 12px;text-align:right;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">114</td></tr>
|
| 100 |
+
</tbody>
|
| 101 |
+
</table>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
In the security configs `label` is the first CWE and `cwe` holds all of them; 175 rows of `security_fix` are confirmed fixes whose advisory names no specific CWE (`unspecified`). In `security_synthetic`, `cwe` is the flaw of the pair, in both halves.
|
| 105 |
+
|
| 106 |
+
```python
|
| 107 |
+
from datasets import load_dataset
|
| 108 |
+
|
| 109 |
+
ds = load_dataset("typestrict/TS-PRGuard", "tests")
|
| 110 |
+
row = ds["train"][0]
|
| 111 |
+
print(row["label"], row["language"], row["repo"])
|
| 112 |
+
print(row["diff"][:500])
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
### Splits
|
| 116 |
+
|
| 117 |
+
The test split holds about 10% of the rows of each config, chosen by **whole repository**: no repository has rows in both splits of a config, so a model cannot pass the test by remembering a codebase. The two halves of a synthetic pair are always on the same side. `security_fix_mobile` is test only, and so are the 73 Kotlin, Swift and Dart rows of `security_fix`: real vulnerability fixes in these languages are rare, so they measure the models trained on `security_synthetic` instead of feeding them.
|
| 118 |
+
|
| 119 |
+
## 🗂️ Fields
|
| 120 |
+
|
| 121 |
+
<div class="dark:hidden" style="overflow-x:auto;">
|
| 122 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 123 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Field</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Type</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Meaning</th></tr></thead>
|
| 124 |
+
<tbody>
|
| 125 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>id</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Stable row id</td></tr>
|
| 126 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>config</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">One of the configs above</td></tr>
|
| 127 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>label</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">The answer (see the table above)</td></tr>
|
| 128 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>language</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Main language of the change</td></tr>
|
| 129 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>repo</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>owner/name</code> on GitHub</td></tr>
|
| 130 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>license</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">SPDX id of the repository's license</td></tr>
|
| 131 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>source</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Where the row comes from (see <a href="#-sources">Sources</a>)</td></tr>
|
| 132 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>ref</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Commit SHA, pull request number, or SWE-rebench instance id</td></tr>
|
| 133 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>message</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Commit message or pull request text, with the leaks removed</td></tr>
|
| 134 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>files</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">list of strings</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Changed files</td></tr>
|
| 135 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>n_files</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">int</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Number of changed files</td></tr>
|
| 136 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>diff</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Unified diff, code files first, cut at 5,000 characters</td></tr>
|
| 137 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>cwe</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">list of strings</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CWE ids (security configs only)</td></tr>
|
| 138 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>cve</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CVE id when there is one (<code>security_fix</code>)</td></tr>
|
| 139 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>advisory</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Advisory title, kept out of <code>message</code> (<code>security_fix</code>)</td></tr>
|
| 140 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>pair_id</code>, <code>version</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">The two halves of a synthetic pair: <code>vulnerable</code> and <code>safe</code> (<code>security_synthetic</code>)</td></tr>
|
| 141 |
+
</tbody>
|
| 142 |
+
</table>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="hidden dark:block" style="overflow-x:auto;">
|
| 145 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 146 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Field</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Type</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Meaning</th></tr></thead>
|
| 147 |
+
<tbody>
|
| 148 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>id</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Stable row id</td></tr>
|
| 149 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>config</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">One of the configs above</td></tr>
|
| 150 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>label</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">The answer (see the table above)</td></tr>
|
| 151 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>language</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Main language of the change</td></tr>
|
| 152 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>repo</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>owner/name</code> on GitHub</td></tr>
|
| 153 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>license</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">SPDX id of the repository's license</td></tr>
|
| 154 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>source</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Where the row comes from (see <a href="#-sources">Sources</a>)</td></tr>
|
| 155 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>ref</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Commit SHA, pull request number, or SWE-rebench instance id</td></tr>
|
| 156 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>message</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Commit message or pull request text, with the leaks removed</td></tr>
|
| 157 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>files</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">list of strings</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Changed files</td></tr>
|
| 158 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>n_files</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">int</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Number of changed files</td></tr>
|
| 159 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>diff</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Unified diff, code files first, cut at 5,000 characters</td></tr>
|
| 160 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>cwe</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">list of strings</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CWE ids (security configs only)</td></tr>
|
| 161 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>cve</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CVE id when there is one (<code>security_fix</code>)</td></tr>
|
| 162 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>advisory</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Advisory title, kept out of <code>message</code> (<code>security_fix</code>)</td></tr>
|
| 163 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>pair_id</code>, <code>version</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">string</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">The two halves of a synthetic pair: <code>vulnerable</code> and <code>safe</code> (<code>security_synthetic</code>)</td></tr>
|
| 164 |
+
</tbody>
|
| 165 |
+
</table>
|
| 166 |
+
</div>
|
| 167 |
+
|
| 168 |
+
## 🏗️ How it was built
|
| 169 |
+
|
| 170 |
+
1. **Mining.** Commits from the git histories of permissively licensed repositories (including 27 security focused Kotlin, Swift and Dart projects), CommitPack, pull requests labeled as breaking, the GitHub Advisory Database, MoreFixes, and SWE-rebench-V2.
|
| 171 |
+
2. **Rules.** Each question has deterministic rules: only repositories with a known permissive license, no generated or vendored files, the complexity band computed on the full diff before the cut, a public API comparison over the whole diff for `breaking_api` (default parameters and moved code do not count; apps, examples, generated code and internal packages are excluded).
|
| 172 |
+
3. **Independent checks.** Every row was checked by a decision model. `change_type`, `security_fix`, `security_fix_mobile`, the `breaking` side of `breaking_api` and `security_synthetic` also went through a second, independent LLM classifier. A row stays only when every check agrees with the label.
|
| 173 |
+
4. **Review.** Fresh samples of every config were reviewed independently after the filters, and the rules were changed until the error was low (the results are below).
|
| 174 |
+
|
| 175 |
+
### `tests`
|
| 176 |
+
|
| 177 |
+
`covered` and `not_covered` come from **execution**: SWE-rebench-V2 runs the tests of each change, and a change is `covered` when its FAIL_TO_PASS tests are part of it. `not_applicable` rows are changes that do not ask for a test (docs, configuration, formatting), selected by rules and checked.
|
| 178 |
+
|
| 179 |
+
### `security_synthetic`
|
| 180 |
+
|
| 181 |
+
Real vulnerability fixes in Kotlin, Swift and Dart are too few to train on. Each pair takes a real commit with no security relevance and adds, in the same code, one flaw from a catalog of CWEs (`vulnerable`) and the safe version of the same lines (`safe`). The rows were written by an LLM and kept only when:
|
| 182 |
+
|
| 183 |
+
- a blind check, which did not know which half it was reading, found the flaw with the right CWE in the vulnerable half and nothing in the safe half;
|
| 184 |
+
- a decision model confirmed that something is really at stake (a test file or unused data does not count).
|
| 185 |
+
|
| 186 |
+
CWE-208 (timing) and CWE-601 (open redirect) were removed after the final review: on the client side the generator got them wrong most of the time. The 10 CWEs left are 532, 798, 295, 22, 330, 319, 89, 922, 327 and 749. The real fixes of `security_fix_mobile` are the test that tells whether a model learned the flaw or the style of the generator.
|
| 187 |
+
|
| 188 |
+
## 📏 Label quality
|
| 189 |
+
|
| 190 |
+
Every check below was made on rows the filters had already accepted, by a reviewer that did not take part in the labeling.
|
| 191 |
+
|
| 192 |
+
<div class="dark:hidden" style="overflow-x:auto;">
|
| 193 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 194 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Config</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Check</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Result</th></tr></thead>
|
| 195 |
+
<tbody>
|
| 196 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">The six main questions</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">300 fresh rows, 50 per question</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">297 correct, 2 wrong, 1 unsure</td></tr>
|
| 197 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking_api</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">50 fresh rows</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">49 correct</td></tr>
|
| 198 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_fix_mobile</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">50 rows</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">48 correct</td></tr>
|
| 199 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_synthetic</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">52 pairs</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">50 correct, 1 wrong, 1 unsure</td></tr>
|
| 200 |
+
</tbody>
|
| 201 |
+
</table>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="hidden dark:block" style="overflow-x:auto;">
|
| 204 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 205 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Config</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Check</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Result</th></tr></thead>
|
| 206 |
+
<tbody>
|
| 207 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">The six main questions</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">300 fresh rows, 50 per question</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">297 correct, 2 wrong, 1 unsure</td></tr>
|
| 208 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking_api</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">50 fresh rows</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">49 correct</td></tr>
|
| 209 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_fix_mobile</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">50 rows</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">48 correct</td></tr>
|
| 210 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_synthetic</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">52 pairs</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">50 correct, 1 wrong, 1 unsure</td></tr>
|
| 211 |
+
</tbody>
|
| 212 |
+
</table>
|
| 213 |
+
</div>
|
| 214 |
+
|
| 215 |
+
The known wrong rows: a feature commit linked to a CVE, a test in a `testdata/` folder outside the usual pattern, and a breaking change in an internal package of the Dart SDK.
|
| 216 |
+
|
| 217 |
+
## 🧹 Leakage we removed
|
| 218 |
+
|
| 219 |
+
- `change_type`: the conventional commit prefix (`feat:`, `fix(api):`) is removed from the message.
|
| 220 |
+
- `breaking`: every form of "break" ("breaking change", "[breaking]", "BC break", "non-breaking") and "major version" is masked as `[...]` in the pull request text, on both labels, so the mask itself gives nothing away.
|
| 221 |
+
- `security_fix`: the advisory text and the CVE are in their own fields, never in `message`.
|
| 222 |
+
- `description_match`: the negative message is a specific message from another commit of the same repository with no file in common, so the repository's vocabulary does not give the answer.
|
| 223 |
+
- `security_synthetic`: both halves come from the same commit and differ only in the changed lines; the blind check found no style that gives the half away.
|
| 224 |
+
- `diff`: code files come first and the cut is at 5,000 characters; the complexity band is computed before the cut.
|
| 225 |
+
|
| 226 |
+
## 📚 Sources
|
| 227 |
+
|
| 228 |
+
<div class="dark:hidden" style="overflow-x:auto;">
|
| 229 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 230 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Source</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">License</th><th scope="col" style="padding:12px;text-align:left;background:#1A1806;color:#FFD400;">Configs</th></tr></thead>
|
| 231 |
+
<tbody>
|
| 232 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Git histories of permissive repositories</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Each repository's license</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>description_match</code>, <code>complexity</code>, <code>breaking_api</code>, <code>tests</code>, <code>security_fix_mobile</code>, <code>security_synthetic</code></td></tr>
|
| 233 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><a href="https://huggingface.co/datasets/bigcode/commitpack">bigcode/commitpack</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">MIT (code under each repository's license)</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>description_match</code>, <code>complexity</code>, <code>change_type</code>, <code>breaking_api</code></td></tr>
|
| 234 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Pull requests labeled as breaking on GitHub</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Each repository's license</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking</code></td></tr>
|
| 235 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">Flutter pull requests labeled <code>c: API break</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">BSD-3-Clause</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>breaking_api</code></td></tr>
|
| 236 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><a href="https://huggingface.co/datasets/nebius/SWE-rebench-V2">nebius/SWE-rebench-V2</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>tests</code></td></tr>
|
| 237 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><a href="https://github.com/github/advisory-database">GitHub Advisory Database</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_fix</code></td></tr>
|
| 238 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><a href="https://zenodo.org/records/20776007">MoreFixes</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #E8E2C0;color:#1A1806;font-weight:400;"><code>security_fix</code></td></tr>
|
| 239 |
+
</tbody>
|
| 240 |
+
</table>
|
| 241 |
+
</div>
|
| 242 |
+
<div class="hidden dark:block" style="overflow-x:auto;">
|
| 243 |
+
<table align="center" style="display:table;width:auto;max-width:100%;margin-left:auto;margin-right:auto;border-collapse:collapse;">
|
| 244 |
+
<thead><tr><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Source</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">License</th><th scope="col" style="padding:12px;text-align:left;background:#FFD400;color:#1A1806;">Configs</th></tr></thead>
|
| 245 |
+
<tbody>
|
| 246 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Git histories of permissive repositories</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Each repository's license</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>description_match</code>, <code>complexity</code>, <code>breaking_api</code>, <code>tests</code>, <code>security_fix_mobile</code>, <code>security_synthetic</code></td></tr>
|
| 247 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><a href="https://huggingface.co/datasets/bigcode/commitpack">bigcode/commitpack</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">MIT (code under each repository's license)</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>description_match</code>, <code>complexity</code>, <code>change_type</code>, <code>breaking_api</code></td></tr>
|
| 248 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Pull requests labeled as breaking on GitHub</th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Each repository's license</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking</code></td></tr>
|
| 249 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">Flutter pull requests labeled <code>c: API break</code></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">BSD-3-Clause</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>breaking_api</code></td></tr>
|
| 250 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><a href="https://huggingface.co/datasets/nebius/SWE-rebench-V2">nebius/SWE-rebench-V2</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>tests</code></td></tr>
|
| 251 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><a href="https://github.com/github/advisory-database">GitHub Advisory Database</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_fix</code></td></tr>
|
| 252 |
+
<tr><th scope="row" style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><a href="https://zenodo.org/records/20776007">MoreFixes</a></th><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;">CC BY 4.0</td><td style="padding:10px 12px;text-align:left;border-bottom:1px solid #2E2B14;color:#E8E4CF;font-weight:400;"><code>security_fix</code></td></tr>
|
| 253 |
+
</tbody>
|
| 254 |
+
</table>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
Repository licenses in the rows: MIT (17,854), Apache-2.0 (10,712), BSD-3-Clause (7,988), BSD-2-Clause (207), ISC (169), Unlicense (56), CC0-1.0 (31), MIT-0 (22), Zlib (4), UPL-1.0 (3), PostgreSQL (1), 0BSD (1). Every row keeps `repo`, `ref` and `license`, so you can trace any diff to its origin and keep its notice.
|
| 258 |
+
|
| 259 |
+
## ⚠️ Limitations
|
| 260 |
+
|
| 261 |
+
- Diffs are cut at 5,000 characters, so a very large change is seen only in part.
|
| 262 |
+
- `breaking` follows the maintainers' own label, which is not always applied the same way across projects.
|
| 263 |
+
- `security_fix` has fixes only: read in reverse, the same diff introduces the flaw, which is how we use it for the "introduces" side.
|
| 264 |
+
- `description_match` has no PHP and `change_type` has no Java or PHP: the sources had too few clean rows.
|
| 265 |
+
- The natural language text is in English.
|
| 266 |
+
|
| 267 |
+
## 🚀 Train your own on typestrict.ai
|
| 268 |
+
|
| 269 |
+
<p align="center">
|
| 270 |
+
<a href="https://typestrict.ai"><img src="https://huggingface.co/typestrict/TS-moBERTo-150M/resolve/main/figures/train-on-typestrict.png" width="100%" alt="Train a decision model on your data with typestrict.ai"></a>
|
| 271 |
+
</p>
|
| 272 |
+
|
| 273 |
+
Every config here is one decision. On [typestrict.ai](https://typestrict.ai) you can train a small model on any of them, or on your own pull requests, and get it measured on examples held out from training. The trained model is a small ONNX package that runs on a CPU, in your CI or on your own servers.
|
| 274 |
+
|
| 275 |
+
```bash
|
| 276 |
+
curl -fsSL https://typestrict.ai/install.sh | sh && typestrict login
|
| 277 |
+
typestrict train --hf typestrict/TS-PRGuard:tests/train.jsonl.gz,tests/test.jsonl.gz \
|
| 278 |
+
--goal "Do the tests in the change cover it?" --watch
|
| 279 |
+
```
|
| 280 |
+
|
| 281 |
+
## Links
|
| 282 |
+
|
| 283 |
+
- **typestrict.ai**: [typestrict.ai](https://typestrict.ai), the docs at [docs.typestrict.ai](https://docs.typestrict.ai)
|
| 284 |
+
- **Open source**: [CLI and MCP server](https://github.com/typestrict-lab/cli), [skills for AI assistants](https://github.com/typestrict-lab/skills)
|
| 285 |
+
- **Contact**: [typestrict.ai/contact](https://typestrict.ai/contact)
|
| 286 |
+
|
| 287 |
+
## Citation
|
| 288 |
+
|
| 289 |
+
```bibtex
|
| 290 |
+
@misc{typestrict2026prguard,
|
| 291 |
+
author = {{typestrict.ai}},
|
| 292 |
+
title = {TS-PRGuard: labeled code changes for pull request review},
|
| 293 |
+
year = {2026},
|
| 294 |
+
url = {https://huggingface.co/datasets/typestrict/TS-PRGuard}
|
| 295 |
+
}
|
| 296 |
+
```
|
breaking/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5993ef69ef048452d1532e5454788274edc64cd8bc72f1bfa74a2f79bc1c7a8
|
| 3 |
+
size 921328
|
breaking/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e4a5840fafe596f929605d6212b7aa04a31afa387dd3b37b28e399f1e38dad8
|
| 3 |
+
size 8400594
|
breaking_api/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b09c820365a1d0461c3f7d6fdc73ae065cd5fbd2a3871a765f71851509efb88
|
| 3 |
+
size 366613
|
breaking_api/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1ab58d96977beb7a0cb6c151cccec498a19bee264c8329514f99936a4ae65dd
|
| 3 |
+
size 2536968
|
change_type/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c093c3a4f54bbee4fbee0e0d59ed90e6ee6db349e9539494ee9c8336938ee96
|
| 3 |
+
size 143731
|
change_type/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41efc7fd78be31a87c6c933b211f1b06188ac4406fe6d6c05d61b15da9c4a33f
|
| 3 |
+
size 1421538
|
complexity/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c05fa850831211a8f310d0b427da6200f33eb1675e6eee200f948475fddf927
|
| 3 |
+
size 548581
|
complexity/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91501679aa83ac7be6eedddcdbd3eb2e181eba71252459d3ae0c3cd8ba3b707c
|
| 3 |
+
size 6758744
|
description_match/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dffcf89970cb2ea376defbac42b6207ed01489d8e9eadbe472091a042ae80a31
|
| 3 |
+
size 478637
|
description_match/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf0da41471e9be84b2f8ee7383ece4b8d7484892f277737253046b8106c3e1b1
|
| 3 |
+
size 3210589
|
figures/banner.png
ADDED
|
Git LFS Details
|
figures/coverage.png
ADDED
|
Git LFS Details
|
security_fix/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51a1d49c8a988dbf880785c2e028e5828828452ee07dcf8d99caba827272c9c5
|
| 3 |
+
size 469609
|
security_fix/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4168ad1ca89e869acae48cbcd4172e30fe381dc8b93631aa580af7b33d6fb5ba
|
| 3 |
+
size 3934975
|
security_fix_mobile/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:166282b3f848e6b328300802ef8a3bed3e49166bf8463dbe8881e69b946d39b5
|
| 3 |
+
size 99713
|
security_synthetic/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0096df8c4aaffda8bd145a527b7abdc07e003bc55b365b314964509adae0b774
|
| 3 |
+
size 88248
|
security_synthetic/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cfcaf115a4e97d3305d2908fd21f200d86a30cdb60cd336828119285a4e05e0
|
| 3 |
+
size 713972
|
tests/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a00532e35e70387c391380dc8bdd385d8141b6bf916825a9bdcb7a6da5e87f6c
|
| 3 |
+
size 754070
|
tests/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a59a3b588e734761e8d8bfdc91f2910a529d8ca1837b9855ff58b22b1c459342
|
| 3 |
+
size 6378762
|