Dataset Viewer
Auto-converted to Parquet Duplicate
after
dict
before
dict
domain
stringclasses
1 value
language
stringclasses
13 values
pair_id
stringlengths
24
107
repository
stringlengths
7
51
schema_version
int64
1
1
source_datasets
listlengths
1
1
type_labels
unknown
{ "labels": { "bug": 0, "security": 0 }, "method_name": "HPHP.FastCGIServer", "path": "hphp/runtime/server/fastcgi/fastcgi-server.cpp", "revision": "97ef580ec2cca9a54da6f9bd9fdd9a455f6d74ed", "source": "FastCGIServer::FastCGIServer(const std::string &address,\n int port,\...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "HPHP.FastCGIServer", "path": "hphp/runtime/server/fastcgi/fastcgi-server.cpp", "revision": "149c1e1562e122012cc08aada707bce577fb5f3a", "source": "FastCGIServer::FastCGIServer(const std::string &address,\n int port,\...
security
cpp
009ffed856a8788e2837bdaa
facebook/hhvm
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": null }, "cwe_120": { "after": 0, "before": null }, "cwe_121": { "after": 0, "before": null }, "cwe_122": { "after": 0, "before": null }, "cwe_125": { "after": 0, "before": null }, "cwe_190": { "after": 0, "before"...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "lmp_print_data_link_subobjs", "path": "print-lmp.c", "revision": "0b661e0aa61850234b64394585cf577aac570bf4", "source": "static int\nlmp_print_data_link_subobjs(netdissect_options *ndo, const u_char *obj_tptr,\n int t...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "lmp_print_data_link_subobjs", "path": "print-lmp.c", "revision": "d97e94223720684c6aa740ff219e0d19426c2220", "source": "static int\nlmp_print_data_link_subobjs(netdissect_options *ndo, const u_char *obj_tptr,\n int t...
security
c
00af7e3e9c7782d0f963dad2
the-tcpdump-group/tcpdump
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": 0 }, "cwe_120": { "after": 0, "before": 0 }, "cwe_121": { "after": 0, "before": 0 }, "cwe_122": { "after": 0, "before": 0 }, "cwe_125": { "after": 0, "before": 1 }, "cwe_190": { "after": 0, "before": 0 }, "cwe...
{ "labels": { "bug": null, "security": 0 }, "method_name": "imap_hcache_open", "path": "imap/util.c", "revision": "31eef6c766f47df8281942d19f76e35f475c781d", "source": "header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path)\n{\n IMAP_MBOX mx;\n ciss_url_t url;\n char cachepath[LONG...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "imap_hcache_open", "path": "imap/util.c", "revision": "6aed28b40a0410ec47d40c8c7296d8d10bae7576", "source": "header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path)\n{\n IMAP_MBOX mx;\n ciss_url_t url;\n char cachepath[LONG_ST...
security
c
015d5e44896fe6018e25e0ea
muttmua/mutt
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": null, "before": null }, "cwe_120": { "after": null, "before": null }, "cwe_121": { "after": null, "before": null }, "cwe_122": { "after": null, "before": null }, "cwe_125": { "after": null, "before": null }, "cwe_190": { "after": ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ospf6_decode_v3", "path": "print-ospf6.c", "revision": "88b2dac837e81cf56dce05e6e7b5989332c0092d", "source": "static int\nospf6_decode_v3(netdissect_options *ndo,\n register const struct ospf6hdr *op,\n register c...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "ospf6_decode_v3", "path": "print-ospf6.c", "revision": "571a6f33f47e7a2394fa08f925e534135c29cf1e", "source": "static int\nospf6_decode_v3(netdissect_options *ndo,\n register const struct ospf6hdr *op,\n register c...
security
c
038f185d2f8b3ee7a7a1ac47
the-tcpdump-group/tcpdump
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": 0 }, "cwe_120": { "after": 0, "before": 0 }, "cwe_121": { "after": 0, "before": 0 }, "cwe_122": { "after": 0, "before": 0 }, "cwe_125": { "after": 0, "before": 1 }, "cwe_190": { "after": 0, "before": 0 }, "cwe...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "flac_buffer_copy", "path": "src/flac.c", "revision": "60b234301adf258786d8b90be5c1d437fc8799e0", "source": "static sf_count_t\nflac_buffer_copy (SF_PRIVATE *psf)\n{\tFLAC_PRIVATE* pflac = (FLAC_PRIVATE*) psf->codec_data ;\n\tconst FLAC__Frame ...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "flac_buffer_copy", "path": "src/flac.c", "revision": "febad4673f294801dfcaadf9657dedf255f0789d", "source": "static sf_count_t\nflac_buffer_copy (SF_PRIVATE *psf)\n{\tFLAC_PRIVATE* pflac = (FLAC_PRIVATE*) psf->codec_data ;\n\tconst FLAC__Frame ...
security
c
04ca917fbec3ac7644115c56
erikd/libsndfile
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": null }, "cwe_120": { "after": 0, "before": null }, "cwe_121": { "after": 0, "before": null }, "cwe_122": { "after": 0, "before": null }, "cwe_125": { "after": 0, "before": null }, "cwe_190": { "after": 0, "before"...
{ "labels": { "bug": null, "security": 0 }, "method_name": "onig_new_deluxe", "path": "src/regext.c", "revision": "0f7f61ed1b7b697e283e37bd2d731d0bd57adb55", "source": "extern int\nonig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end,\n OnigCompileInfo* ci, On...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "onig_new_deluxe", "path": "src/regext.c", "revision": "c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c", "source": "extern int\nonig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end,\n OnigCompileInfo* ci, OnigE...
security
c
05346635f356557804b71b5b
kkos/oniguruma
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": null }, "cwe_120": { "after": 0, "before": null }, "cwe_121": { "after": 0, "before": null }, "cwe_122": { "after": 0, "before": null }, "cwe_125": { "after": 0, "before": null }, "cwe_190": { "after": 0, "before"...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "tftp_connect", "path": "lib/tftp.c", "revision": "facb0e4662415b5f28163e853dc6742ac5fafb3d", "source": "static CURLcode tftp_connect(struct connectdata *conn, bool *done)\n{\n tftp_state_data_t *state;\n int blksize;\n int need_blksize;\n\n...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "tftp_connect", "path": "lib/tftp.c", "revision": "82f3ba3806a34fe94dcf9e5c9b88deda6679ca1b", "source": "static CURLcode tftp_connect(struct connectdata *conn, bool *done)\n{\n tftp_state_data_t *state;\n int blksize;\n\n blksize = TFTP_BLKS...
security
c
06d65527e1365ae63de933af
curl/curl
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": 0 }, "cwe_120": { "after": 0, "before": 0 }, "cwe_121": { "after": 0, "before": 0 }, "cwe_122": { "after": 0, "before": 0 }, "cwe_125": { "after": 0, "before": 0 }, "cwe_190": { "after": 0, "before": 0 }, "cwe...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "aiff_read_chanmap", "path": "src/aiff.c", "revision": "f833c53cb596e9e1792949f762e0b33661822748", "source": "static int\naiff_read_chanmap (SF_PRIVATE * psf, unsigned dword)\n{\tconst AIFF_CAF_CHANNEL_MAP * map_info ;\n\tunsigned channel_bitma...
{ "labels": { "bug": 1, "security": 1 }, "method_name": "aiff_read_chanmap", "path": "src/aiff.c", "revision": "66aa47ffeea1f6010a5ab45d13fa53b5bcad4e6b", "source": "static int\naiff_read_chanmap (SF_PRIVATE * psf, unsigned dword)\n{\tconst AIFF_CAF_CHANNEL_MAP * map_info ;\n\tunsigned channel_bitma...
security
c
0fdf03c6c5e3da1ab02991a9
erikd/libsndfile
1
[ "PrimeVul-v0.1 train" ]
{ "cwe_119": { "after": 0, "before": 0 }, "cwe_120": { "after": 0, "before": 0 }, "cwe_121": { "after": 0, "before": 0 }, "cwe_122": { "after": 0, "before": 0 }, "cwe_125": { "after": 0, "before": 1 }, "cwe_190": { "after": 0, "before": 0 }, "cwe...
{"labels":{"bug":0,"security":0},"method_name":"sc_oberthur_read_file","path":"src/libopensc/pkcs15-(...TRUNCATED)
{"labels":{"bug":1,"security":1},"method_name":"sc_oberthur_read_file","path":"src/libopensc/pkcs15-(...TRUNCATED)
security
c
105fe03be99c099cbfa5eed5
opensc/opensc
1
[ "PrimeVul-v0.1 train" ]
{"cwe_119":{"after":0,"before":0},"cwe_120":{"after":0,"before":0},"cwe_121":{"after":0,"before":0},(...TRUNCATED)
{"labels":{"bug":0,"security":0},"method_name":"wb_prep","path":"print-wb.c","revision":"cc356512f51(...TRUNCATED)
{"labels":{"bug":1,"security":1},"method_name":"wb_prep","path":"print-wb.c","revision":"13ab8d18617(...TRUNCATED)
security
c
1af8d68290cf1ea185eb1c99
the-tcpdump-group/tcpdump
1
[ "PrimeVul-v0.1 train" ]
{"cwe_119":{"after":0,"before":0},"cwe_120":{"after":0,"before":0},"cwe_121":{"after":0,"before":0},(...TRUNCATED)
End of preview. Expand in Data Studio

Perch Security Pairs — Public

File: benchmark.jsonl — 1,311 JSONL records, one before/after method pair per record (2,622 method sides). Source code comes from open-source repositories; each repository's license applies to its code.

Record fields

Field Contents
pair_id Stable pair identifier
repository, language Source repository and code language
source_datasets Source collection names
before, after Method at the two source revisions
type_labels CWE labels by side; null means unknown

Each side contains revision, path, method_name, source, source_sha256, state, and labels. The state object holds the Perch method context, including imports, callers, callees, and static call-graph edges where available. Cross-file edges can be incomplete. labels.security is 1 for an issue in that method side and 0 otherwise.

Some security side labels are inferred from advisory fixing commits; method-level attribution has not been independently confirmed for every pair.

Label counts

Side Issue = 1 Issue = 0
Before 1,133 178
After 9 1,302

Languages

Language Pairs
csharp 275
go 189
python 158
java 133
c 127
rust 98
ruby 97
php 96
typescript 49
javascript 40
cpp 27
swift 21
scala 1

File SHA-256: 2407059caa3486371749884138b997d89043eec646e548ee8f44ba3ab08514b8

Downloads last month
43