---
license: cc-by-4.0
language:
- en
pretty_name: TS-PRGuard
size_categories:
- 10K
Train your own on typestrict.ai |
Docs |
CLI |
All TS models
License: CC BY 4.0 for the labels, each row's code under its repository's license |
Authors: typestrict.ai
| Config | Question | Labels | Train | Test |
|---|---|---|---|---|
description_match | Does the commit message describe this diff? | matches, does_not_match | 5,723 | 682 |
complexity | How large and spread out is the change? | bands 0 to 4 | 6,056 | 673 |
change_type | What kind of change is it? | feat, fix, refactor, perf, test, build, chore, style, docs, ci | 2,961 | 330 |
breaking | Does the pull request break compatibility? | breaking, not_breaking | 5,337 | 594 |
breaking_api | Does the commit break the public API of a Kotlin, Swift or Dart library? | breaking, not_breaking | 2,950 | 335 |
tests | Do the tests in the change cover it? | covered, not_covered, not_applicable | 5,927 | 709 |
security_fix | Which vulnerability does this commit fix? | first CWE id, or unspecified | 3,267 | 363 |
security_fix_mobile | Same, real fixes in Kotlin, Swift and Dart (test only) | CWE id | 0 | 67 |
security_synthetic | Does this change introduce a vulnerability? | introduces, safe (537 pairs) | 960 | 114 |
| Config | Question | Labels | Train | Test |
|---|---|---|---|---|
description_match | Does the commit message describe this diff? | matches, does_not_match | 5,723 | 682 |
complexity | How large and spread out is the change? | bands 0 to 4 | 6,056 | 673 |
change_type | What kind of change is it? | feat, fix, refactor, perf, test, build, chore, style, docs, ci | 2,961 | 330 |
breaking | Does the pull request break compatibility? | breaking, not_breaking | 5,337 | 594 |
breaking_api | Does the commit break the public API of a Kotlin, Swift or Dart library? | breaking, not_breaking | 2,950 | 335 |
tests | Do the tests in the change cover it? | covered, not_covered, not_applicable | 5,927 | 709 |
security_fix | Which vulnerability does this commit fix? | first CWE id, or unspecified | 3,267 | 363 |
security_fix_mobile | Same, real fixes in Kotlin, Swift and Dart (test only) | CWE id | 0 | 67 |
security_synthetic | Does this change introduce a vulnerability? | introduces, safe (537 pairs) | 960 | 114 |
| Field | Type | Meaning |
|---|---|---|
id | string | Stable row id |
config | string | One of the configs above |
label | string | The answer (see the table above) |
language | string | Main language of the change |
repo | string | owner/name on GitHub |
license | string | SPDX id of the repository's license |
source | string | Where the row comes from (see Sources) |
ref | string | Commit SHA, pull request number, or SWE-rebench instance id |
message | string | Commit message or pull request text, with the leaks removed |
files | list of strings | Changed files |
n_files | int | Number of changed files |
diff | string | Unified diff, code files first, cut at 5,000 characters |
cwe | list of strings | CWE ids (security configs only) |
cve | string | CVE id when there is one (security_fix) |
advisory | string | Advisory title, kept out of message (security_fix) |
pair_id, version | string | The two halves of a synthetic pair: vulnerable and safe (security_synthetic) |
| Field | Type | Meaning |
|---|---|---|
id | string | Stable row id |
config | string | One of the configs above |
label | string | The answer (see the table above) |
language | string | Main language of the change |
repo | string | owner/name on GitHub |
license | string | SPDX id of the repository's license |
source | string | Where the row comes from (see Sources) |
ref | string | Commit SHA, pull request number, or SWE-rebench instance id |
message | string | Commit message or pull request text, with the leaks removed |
files | list of strings | Changed files |
n_files | int | Number of changed files |
diff | string | Unified diff, code files first, cut at 5,000 characters |
cwe | list of strings | CWE ids (security configs only) |
cve | string | CVE id when there is one (security_fix) |
advisory | string | Advisory title, kept out of message (security_fix) |
pair_id, version | string | The two halves of a synthetic pair: vulnerable and safe (security_synthetic) |
| Config | Check | Result |
|---|---|---|
| The six main questions | 300 fresh rows, 50 per question | 297 correct, 2 wrong, 1 unsure |
breaking_api | 50 fresh rows | 49 correct |
security_fix_mobile | 50 rows | 48 correct |
security_synthetic | 52 pairs | 50 correct, 1 wrong, 1 unsure |
| Config | Check | Result |
|---|---|---|
| The six main questions | 300 fresh rows, 50 per question | 297 correct, 2 wrong, 1 unsure |
breaking_api | 50 fresh rows | 49 correct |
security_fix_mobile | 50 rows | 48 correct |
security_synthetic | 52 pairs | 50 correct, 1 wrong, 1 unsure |
| Source | License | Configs |
|---|---|---|
| Git histories of permissive repositories | Each repository's license | description_match, complexity, breaking_api, tests, security_fix_mobile, security_synthetic |
| bigcode/commitpack | MIT (code under each repository's license) | description_match, complexity, change_type, breaking_api |
| Pull requests labeled as breaking on GitHub | Each repository's license | breaking |
Flutter pull requests labeled c: API break | BSD-3-Clause | breaking_api |
| nebius/SWE-rebench-V2 | CC BY 4.0 | tests |
| GitHub Advisory Database | CC BY 4.0 | security_fix |
| MoreFixes | CC BY 4.0 | security_fix |
| Source | License | Configs |
|---|---|---|
| Git histories of permissive repositories | Each repository's license | description_match, complexity, breaking_api, tests, security_fix_mobile, security_synthetic |
| bigcode/commitpack | MIT (code under each repository's license) | description_match, complexity, change_type, breaking_api |
| Pull requests labeled as breaking on GitHub | Each repository's license | breaking |
Flutter pull requests labeled c: API break | BSD-3-Clause | breaking_api |
| nebius/SWE-rebench-V2 | CC BY 4.0 | tests |
| GitHub Advisory Database | CC BY 4.0 | security_fix |
| MoreFixes | CC BY 4.0 | security_fix |