Dataset Viewer
Auto-converted to Parquet Duplicate
after
dict
before
dict
domain
stringclasses
1 value
language
stringclasses
15 values
pair_id
stringlengths
12
93
repository
stringlengths
5
63
schema_version
int64
1
1
source_datasets
listlengths
1
3
type_labels
unknown
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ConsoleOutputUtils.bootstrapOutput", "path": "src/Tools/ConsoleOutputUtils.php", "revision": "a3a07dc6ba24a5a4d2760fcb14a6778fa302c443", "source": " public static function bootstrapOutput(OutputInterface $outputInterface)\n {\n $s...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ConsoleOutputUtils.bootstrapOutput", "path": "src/Tools/ConsoleOutputUtils.php", "revision": "16e689019c4f1f05554df6de08eaf634dde36d3d", "source": " public static function bootstrapOutput(OutputInterface $outputInterface)\n {\n $s...
bug
php
benign-bug:023533e3765d6cb849715105
knuckleswtf/scribe
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "BasicFormat.requiresLeadingNewline", "path": "Sources/SwiftBasicFormat/BasicFormat.swift", "revision": "5e27d464a84bec63c5b325feb97e3eee76c5f449", "source": " open func requiresLeadingNewline(_ token: TokenSyntax) -> Bool {\n // We don't w...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "BasicFormat.requiresLeadingNewline", "path": "Sources/SwiftBasicFormat/BasicFormat.swift", "revision": "7fbb726decd9666d34573e9ccd57a78b96842ec6", "source": " open func requiresLeadingNewline(_ token: TokenSyntax) -> Bool {\n // We don't w...
bug
swift
benign-bug:088c373f55c7c1dc24ea551c
apple/swift-syntax
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ReflectionEnumProperty.setValue", "path": "lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php", "revision": "e396b59bb65e3535691e9c96e4263be99a42c856", "source": " public function setValue($object, $value = null): void\n {\n if (...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ReflectionEnumProperty.setValue", "path": "lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php", "revision": "c0a1404e4cd4ac23382388700a594621e10ff6b7", "source": " public function setValue($object, $value = null): void\n {\n if (...
bug
php
benign-bug:0c725361791fc179bd19ac51
doctrine/orm
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "RenderContentCompiler.resolveTopicReference", "path": "Sources/SwiftDocC/Model/Rendering/RenderContentCompiler.swift", "revision": "56040ea51da7c6a28127bfa0af707f77624e6fd3", "source": " mutating func resolveTopicReference(_ destination: St...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "RenderContentCompiler.resolveTopicReference", "path": "Sources/SwiftDocC/Model/Rendering/RenderContentCompiler.swift", "revision": "2026dccea2d5b5e158f495ecf2f12d49f3babea3", "source": " mutating func resolveTopicReference(_ destination: St...
bug
swift
benign-bug:10f20d487ee1a3e717401bdf
apple/swift-docc
1
[ "canonical train pair source revision anchor" ]
{ "bug_api_contract": { "after": 0, "before": 0 }, "bug_boundary": { "after": 0, "before": 0 }, "bug_concurrency": { "after": 0, "before": 0 }, "bug_error_handling": { "after": 0, "before": 0 }, "bug_iteration": { "after": 0, "before": 0 }, "bug_missing_valu...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Regex.isValid", "path": "src/Regex.php", "revision": "208c8af678955a025b99ac6cde98bddca7bd4c97", "source": " public function isValid(mixed $value): bool\n {\n if (! is_string($value)) {\n $this->error(self::INVALID);\n ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Regex.isValid", "path": "src/Regex.php", "revision": "571e6245c72b832001ed3c122498060f6dfa9708", "source": " public function isValid(mixed $value): bool\n {\n if (! is_string($value)) {\n $this->error(self::INVALID);\n ...
bug
php
benign-bug:13ba3e655f10011f7af4e2d7
laminas/laminas-validator
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "StubbedPropertySetup.StubbedPropertySetup", "path": "src/Moq/StubbedPropertySetup.cs", "revision": "392e902a34e827594329be73bad8f99e608b16d3", "source": "\t\tpublic StubbedPropertySetup(Mock mock, LambdaExpression expression, MethodInfo getter...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "StubbedPropertySetup.StubbedPropertySetup", "path": "src/Moq/StubbedPropertySetup.cs", "revision": "20eb04a168fe447eb987a58c0d161e0b5d034361", "source": "\t\tpublic StubbedPropertySetup(Mock mock, LambdaExpression expression, MethodInfo getter...
bug
csharp
benign-bug:15307ea8f6b0bebe32c527c9
devlooped/moq
1
[ "canonical train pair source revision anchor" ]
{ "bug_api_contract": { "after": 0, "before": 0 }, "bug_boundary": { "after": 0, "before": 0 }, "bug_concurrency": { "after": 0, "before": 0 }, "bug_error_handling": { "after": 0, "before": 0 }, "bug_iteration": { "after": 0, "before": 0 }, "bug_missing_valu...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "has", "path": "index.js", "revision": "299834656d9fd8d28a5d22663697632f380a119d", "source": "\thas(object, path) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst pathArray = getPathSegments(path...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "has", "path": "index.js", "revision": "614e74abdfb49d59637155e77ea651af8f7988e3", "source": "\thas(object, path) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst pathArray = getPathSegments(path...
bug
javascript
benign-bug:159e87c154b6762631818fc9
sindresorhus/dot-prop
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "QueueMessageViewer.onEditKeyPress", "path": "src/components/QueueMessageViewer.js", "revision": "c6b83affbef881c7ebb16a551e2e863499753bd4", "source": " const onEditKeyPress = e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stop...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "QueueMessageViewer.onEditKeyPress", "path": "src/components/QueueMessageViewer.js", "revision": "a588b835697d562e2afbf2b02906a330ae05661e", "source": " const onEditKeyPress = e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stop...
bug
javascript
benign-bug:16543a356f058fbf47da2140
illinois/queue
1
[ "canonical train pair source revision anchor" ]
{ "bug_api_contract": { "after": 0, "before": 0 }, "bug_boundary": { "after": 0, "before": 0 }, "bug_concurrency": { "after": 0, "before": 0 }, "bug_error_handling": { "after": 0, "before": 0 }, "bug_iteration": { "after": 0, "before": 0 }, "bug_missing_valu...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "init", "path": "commands.go", "revision": "d9d07138058027a3b2aab09229df3d8c99d037c9", "source": "func init() {\n\tcommands = []command{\n\t\t{\n\t\t\tname: commandName(\"i[mport]\"),\n\t\t\taction: actionImport,\n\t\t\tcomplete: complete...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "init", "path": "commands.go", "revision": "e8b9c1ee7bddc2971291a86a32c2af8513ee9831", "source": "func init() {\n\tcommands = []command{\n\t\t{\n\t\t\tname: commandName(\"i[mport]\"),\n\t\t\taction: actionImport,\n\t\t\tcomplete: complete...
bug
go
benign-bug:170e5cfaa530919e72145ef0
motemen/gore
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "get_cache", "path": "includes/syslog.php", "revision": "c5e69a038b604b25102cb087a0f1eb8bc778899a", "source": "function get_cache($host, $value) {\n global $dev_cache;\n\n if (!isset($dev_cache[$host][$value])) {\n switch ($value) ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "get_cache", "path": "includes/syslog.php", "revision": "f1912cca7b3f30ca9485e9da40f4e3ecb32b3e28", "source": "function get_cache($host, $value) {\n global $dev_cache;\n\n if (!isset($dev_cache[$host][$value])) {\n switch ($value) ...
bug
php
benign-bug:191b0ad6cc759d3600c602f4
librenms/librenms
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ra.data.models.ValidateLeaderboardCondSet", "path": "src/data/models/TriggerValidation.cpp", "revision": "50e962f17e7fac654f8077e52ce5636d921552a7", "source": "static bool ValidateLeaderboardCondSet(const rc_condset_t* pCondSet, std::wstring& ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ra.data.models.ValidateLeaderboardCondSet", "path": "src/data/models/TriggerValidation.cpp", "revision": "1594d6c40149739ccfadbc4fa113979e48506995", "source": "static bool ValidateLeaderboardCondSet(const rc_condset_t* pCondSet, std::wstring& ...
bug
cpp
benign-bug:1a8998f2f8dc80b4faa74bad
retroachievements/raintegration
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "dumpopenobjects", "path": "libhdf5/hdf5file.c", "revision": "ae7f7e6a4c37ce9c5a9b5360ce09aa0a76fc6dbf", "source": "static void\ndumpopenobjects(NC_FILE_INFO_T* h5)\n{\n NC_HDF5_FILE_INFO_T *hdf5_info;\n int nobjs;\n\n assert(h5 && h5-...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "dumpopenobjects", "path": "libhdf5/hdf5file.c", "revision": "933a8979c1f2b32c3d73ec4a390106f1a592d1c3", "source": "static void\ndumpopenobjects(NC_FILE_INFO_T* h5)\n{\n NC_HDF5_FILE_INFO_T *hdf5_info;\n int nobjs;\n\n assert(h5 && h5-...
bug
c
benign-bug:1ae6e0e0162922ea2cdf7d6e
unidata/netcdf-c
1
[ "canonical train pair source revision anchor" ]
{ "bug_api_contract": { "after": 0, "before": 0 }, "bug_boundary": { "after": 0, "before": 0 }, "bug_concurrency": { "after": 0, "before": 0 }, "bug_error_handling": { "after": 0, "before": 0 }, "bug_iteration": { "after": 0, "before": 0 }, "bug_missing_valu...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "SerializeTable<'a, 'b>.serialize_field", "path": "src/ser.rs", "revision": "4ce1b68369c6570bf55cdf221b070a05d8d8c0b3", "source": " fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T)\n -> ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "SerializeTable<'a, 'b>.serialize_field", "path": "src/ser.rs", "revision": "95e1c738467c87f4072ac29923e7df399ebfe9ea", "source": " fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T)\n -> ...
bug
rust
benign-bug:1b861b08c829eec3c387ebcb
alexcrichton/toml-rs
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "removeKernelDirective", "path": "packages/unplugin-typegpu/src/index.ts", "revision": "48ffbb6ee2990e2c3ef9bd86d9982ff699bc53ba", "source": "function removeKernelDirective(node: FunctionNode) {\n const cloned = structuredClone(node);\n\n if ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "removeKernelDirective", "path": "packages/unplugin-typegpu/src/index.ts", "revision": "b3720f812a877e6aa1185f8a3211a1b3927fa844", "source": "function removeKernelDirective(node: FunctionNode) {\n const cloned = structuredClone(node);\n\n if ...
bug
typescript
benign-bug:1e6ee6d4b30f1af407aa8a19
software-mansion/typegpu
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "NumberTypeRule.getSuggestions", "path": "yagi/src/main/java/org/raml/yagi/framework/grammar/rule/NumberTypeRule.java", "revision": "cbdc4d30b92a885c9f05efc52b5c304645bf4bbc", "source": " @Nonnull\n @Override\n public List<Suggestion> ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "NumberTypeRule.getSuggestions", "path": "yagi/src/main/java/org/raml/yagi/framework/grammar/rule/NumberTypeRule.java", "revision": "155ab5a50dd31097eb85dc4d895e014ab5c78626", "source": " @Nonnull\n @Override\n public List<Suggestion> ...
bug
java
benign-bug:1f0d6d316f8a5b72324dbc25
raml-org/raml-java-parser
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "SimpleSpillableMap.SimpleSpillableMap", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "f7f85dc33fe2db4d86ed5f5e08f869e90cfea0b1", "source": " protected SimpleSpillableMap(Long maxInMemorySizeIn...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "SimpleSpillableMap.SimpleSpillableMap", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "9ae4406a01cc55a7826239eb36ed6de197872f6d", "source": " protected SimpleSpillableMap(Long maxInMemorySizeIn...
bug
java
benign-bug:1f98f1241a7cf2ec7b64469f
netease/arctic
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "handle_image", "path": "feed-rs/src/parser/rss2/mod.rs", "revision": "e1c9a88c6b7f38507a20f5c52a7a3a6354425bd5", "source": "fn handle_image<R: BufRead>(element: Element<R>) -> ParseFeedResult<Option<Image>> {\n let mut image = Image::new(\"...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "handle_image", "path": "feed-rs/src/parser/rss2/mod.rs", "revision": "ba7c6d08bd13f7bb8fb32cec1b7b66621537e8fb", "source": "fn handle_image<R: BufRead>(element: Element<R>) -> ParseFeedResult<Option<Image>> {\n let mut image = Image::new(\"...
bug
rust
benign-bug:20d778601a4ebb15623fd3c8
feed-rs/feed-rs
1
[ "unknown" ]
{ "bug_any": { "after": 0, "before": 0 }, "bug_api_contract": { "after": null, "before": null }, "bug_boundary": { "after": null, "before": null }, "bug_concurrency": { "after": null, "before": null }, "bug_error_handling": { "after": null, "before": null }, ...
End of preview. Expand in Data Studio

Perch Bug Pairs — Public

File: benchmark.jsonl — 2,220 JSONL records, one before/after method pair per record (4,440 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 Bug-type 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.bug is 1 for an issue in that method side and 0 otherwise.

Label counts

Side Issue = 1 Issue = 0
Before 1,820 400
After 41 2,179

Languages

Language Pairs
python 464
rust 256
go 239
javascript 223
java 199
php 198
typescript 197
kotlin 102
csharp 95
scala 67
cpp 59
swift 50
c 27
ruby 25
lua 19

File SHA-256: 32bc68bc85d5535ad28e103adbfa0c09c73e09d0f53a53f7ca35ec219a96e6e2

Downloads last month
45