Dataset Viewer
Auto-converted to Parquet Duplicate
FAIL_TO_PASS
stringclasses
1 value
PASS_TO_PASS
stringclasses
1 value
base_commit
stringlengths
40
40
base_commit_source
stringclasses
2 values
bug_metadata_json
stringlengths
2
4.6k
build_artifacts_json
stringclasses
3 values
build_command
stringlengths
0
121
build_config_json
stringlengths
37
1.27k
build_templates_json
stringclasses
32 values
cached_commit_json
stringlengths
2
280k
cached_sources_json
stringlengths
2
2.44M
commit_message
stringlengths
0
3.13k
commit_url
stringlengths
74
95
created_at
timestamp[s]date
2014-12-07 17:56:16
2024-02-07 19:50:04
environment_setup_commit
stringlengths
40
40
full_patch
stringlengths
0
260k
has_build_artifacts
bool
2 classes
has_original_error
bool
2 classes
head_commit
stringlengths
40
40
hints_text
stringclasses
1 value
instance_id
stringlengths
49
70
omitted_patch_files
stringclasses
68 values
original_error
stringlengths
0
4.1k
original_errors
stringlengths
2
4.19k
patch
stringlengths
0
13.7k
patch_is_exact
bool
2 classes
patch_source
stringclasses
4 values
problem_statement
stringlengths
149
4.24k
project
stringclasses
44 values
project_metadata_json
stringclasses
48 values
repair_prompts_json
stringlengths
2
96k
repair_records_json
stringlengths
2
270k
repo
stringclasses
44 values
source_collection
stringclasses
3 values
source_files
stringlengths
2
66
test_classification_available
bool
2 classes
test_files
stringlengths
2
1.71k
test_outcomes_verified
bool
1 class
test_patch
stringlengths
0
259k
version
stringclasses
1 value
[]
[]
1beb048316d50a0e7ed7d1c0e9a07b9ac7fe8bba
project_metadata
[{"path": "projects/ARMmbed___mbedtls/bugs_list_new.json", "record": {"c_compile": {"build": null, "build_flags": null, "clean": null, "test": null, "test_flags": null}, "commit_after": "d15795acd5074e0b44e71f7ede8bdfe1b48591fc", "commit_before": "1beb048316d50a0e7ed7d1c0e9a07b9ac7fe8bba", "commit_date": "2017-06-22 12...
{}
python3 checkout_build.py ARMmbed___mbedtls d15795acd5074e0b44e71f7ede8bdfe1b48591fc --projects-dir projects
{"build": "build_tpl.jinja", "build_flags": [], "clean": "git", "test": "test_tpl.jinja", "test_flags": []}
{"../workflow_cmake_rebuild_tpl.jinja": "export CXX=clang++ \nexport CC=clang \n\n\npatch_files=$1\n\n\n\n{%for env_item in env %}\n\texport {{env_item}}\n{%endfor%}\n\n\ncd {{repo_dir}}\n\n\n\n\n\ntest_log_dirname=$(dirname \"{{test_log}}\" )\nmkdir -p $test_log_dirname\n\n\nsrc_file=\"{{src_file}}\"\n\n\n#if [[ -e $...
{"author": {"avatar_url": "https://avatars.githubusercontent.com/u/60640?v=4", "events_url": "https://api.github.com/users/mpg/events{/privacy}", "followers_url": "https://api.github.com/users/mpg/followers", "following_url": "https://api.github.com/users/mpg/following{/other_user}", "gists_url": "https://api.github.co...
[{"commit": "https://api.github.com/repos/ARMmbed/mbedtls/commits/d15795acd5074e0b44e71f7ede8bdfe1b48591fc", "content": "/*\n * X.509 certificate parsing and verification\n *\n * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache Licen...
Improve behaviour on fatal errors If we didn't walk the whole chain, then there may be any kind of errors in the part of the chain we didn't check, so setting all flags looks like the safe thing to do.
https://github.com/Mbed-TLS/mbedtls/commit/d15795acd5074e0b44e71f7ede8bdfe1b48591fc
2017-07-06T09:58:41
1beb048316d50a0e7ed7d1c0e9a07b9ac7fe8bba
diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ mbed TLS ChangeLog (Sorted per branch, date) += mbed TLS 2.y.z released YYYY-MM-DD + +Changes + * Certificate verification functions now set flags to -1 in case the full + chain was not verified due to an internal error (includ...
false
true
d15795acd5074e0b44e71f7ede8bdfe1b48591fc
ARMmbed__mbedtls-d15795acd5074e0b44e71f7ede8bdfe1b48591fc
[]
flags == (uint32_t) flags_chk at line 534, /out/ARMmbed___mbedtls/git_repo_dir_d15795acd5074e0b44e71f7ede8bdfe1b48591fc/tests/suites/test_suite_x509parse.function X509 Certificate information #1 ................................... PASS X509 Certificate information #2 ................................... PASS X509...
[" flags == (uint32_t) flags_chk\n at line 534, /out/ARMmbed___mbedtls/git_repo_dir_d15795acd5074e0b44e71f7ede8bdfe1b48591fc/tests/suites/test_suite_x509parse.function\n\n", "X509 Certificate information #1 ................................... PASS\nX509 Certificate information #2 ................................... P...
diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ mbed TLS ChangeLog (Sorted per branch, date) += mbed TLS 2.y.z released YYYY-MM-DD + +Changes + * Certificate verification functions now set flags to -1 in case the full + chain was not verified due to an internal error (includ...
false
cached_api_unverified
Repair the recorded defect in ARMmbed/mbedtls at commit 1beb048316d50a0e7ed7d1c0e9a07b9ac7fe8bba. Original recorded diagnostic: flags == (uint32_t) flags_chk at line 534, /out/ARMmbed___mbedtls/git_repo_dir_d15795acd5074e0b44e71f7ede8bdfe1b48591fc/tests/suites/test_suite_x509parse.function X509 Certificate inf...
ARMmbed___mbedtls
{"before_install": [], "c_compile": {"build": "build_tpl.jinja", "build_flags": [], "clean": "git", "test": "test_tpl.jinja", "test_flags": []}, "env": [], "homepage": "https://github.com/ARMmbed/mbedtls", "language": null, "main_repo": "https://github.com/ARMmbed/mbedtls", "repo_name": "ARMmbed___mbedtls"}
[{"idx": "d15795acd5074e0b44e71f7ede8bdfe1b48591fc___x509_crt.c", "prompt": [{"content": "You are a C/CPP code program repair expert", "role": "system"}, {"content": "\nThe following function contains bugs:```cpp\nint mbedtls_x509_crt_verify_with_profile( mbedtls_x509_crt *crt,\n mbedtls_x509_crt *t...
[{"dataset": "data/buggy_errmsg/single_function_repair.json", "key": "d15795acd5074e0b44e71f7ede8bdfe1b48591fc___x509_crt.c", "record": {"buggy": "int mbedtls_x509_crt_verify_with_profile( mbedtls_x509_crt *crt,\n mbedtls_x509_crt *trust_ca,\n mbedtls_x509_crl *ca_crl,\n ...
ARMmbed/mbedtls
projects
["library/x509_crt.c"]
true
["tests/suites/test_suite_x509parse.data"]
false
diff --git a/tests/suites/test_suite_x509parse.data b/tests/suites/test_suite_x509parse.data --- a/tests/suites/test_suite_x509parse.data +++ b/tests/suites/test_suite_x509parse.data @@ -1204,7 +1204,7 @@ mbedtls_x509_crt_verify_max:"data_files/test-ca2.crt":"data_files/dir-maxpath":M X509 CRT verify long chain (max...
[]
[]
3957b3370afc80ea33720dae9049a9a8d2df238b
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/12510224?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/140ede9c075c604632a87ee3bf0e881(...TRUNCATED)
"tree data UPDATE use strict instead of opaq for op parsing\n\nOpaque nodes are actually not expecte(...TRUNCATED)
https://github.com/CESNET/libyang/commit/140ede9c075c604632a87ee3bf0e881fb485d0e7
2022-05-10T07:27:30
3957b3370afc80ea33720dae9049a9a8d2df238b
"diff --git a/src/tree_data.c b/src/tree_data.c\n--- a/src/tree_data.c\n+++ b/src/tree_data.c\n@@ -5(...TRUNCATED)
false
true
140ede9c075c604632a87ee3bf0e881fb485d0e7
CESNET__libyang-140ede9c075c604632a87ee3bf0e881fb485d0e7
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_140ede9c075c604632a87ee3(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_140ede9c075c604632a87(...TRUNCATED)
"diff --git a/src/tree_data.c b/src/tree_data.c\n--- a/src/tree_data.c\n+++ b/src/tree_data.c\n@@ -5(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 3957b3370afc80ea33720dae9049a9a8d2df238b.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"140ede9c075c604632a87ee3bf0e881fb485d0e7___tree_data.c\", \"prompt\": [{\"content\": \(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"140ede9c07(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_data.c"]
true
["tests/utests/data/test_validation.c"]
false
"diff --git a/tests/utests/data/test_validation.c b/tests/utests/data/test_validation.c\n--- a/tests(...TRUNCATED)
[]
[]
fd86c5c742590679c4d0731e516fb6674363a003
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/12510224?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/24bd22f5e40f37fb6ae796bb8eebc9d(...TRUNCATED)
xpath BUGFIX evaluation of * on schema All modules of the nodes must match. Refs #1780
https://github.com/CESNET/libyang/commit/24bd22f5e40f37fb6ae796bb8eebc9de58bae00e
2022-02-02T10:16:56
fd86c5c742590679c4d0731e516fb6674363a003
"diff --git a/src/xpath.c b/src/xpath.c\n--- a/src/xpath.c\n+++ b/src/xpath.c\n@@ -5472,7 +5472,7 @@(...TRUNCATED)
false
true
24bd22f5e40f37fb6ae796bb8eebc9de58bae00e
CESNET__libyang-24bd22f5e40f37fb6ae796bb8eebc9de58bae00e
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_24bd22f5e40f37fb6ae796bb(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_24bd22f5e40f37fb6ae79(...TRUNCATED)
"diff --git a/src/xpath.c b/src/xpath.c\n--- a/src/xpath.c\n+++ b/src/xpath.c\n@@ -5472,7 +5472,7 @@(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit fd86c5c742590679c4d0731e516fb6674363a003.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"24bd22f5e40f37fb6ae796bb8eebc9de58bae00e___xpath.c\", \"prompt\": [{\"content\": \"You(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"24bd22f5e4(...TRUNCATED)
CESNET/libyang
projects_v1
["src/xpath.c"]
true
["tests/utests/schema/test_tree_schema_compile.c"]
false
"diff --git a/tests/utests/schema/test_tree_schema_compile.c b/tests/utests/schema/test_tree_schema_(...TRUNCATED)
[]
[]
95485ea4036af9c93ac3bd756c8c20509a717d4e
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/13786495?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/350a6bf69e03d19fe996cba992b4955(...TRUNCATED)
"json BUGFIX in lyjson_number\n\nThe minus sign was taken as part of the number, which is not correc(...TRUNCATED)
https://github.com/CESNET/libyang/commit/350a6bf69e03d19fe996cba992b49556ae2ce8ab
2021-05-25T06:50:09
95485ea4036af9c93ac3bd756c8c20509a717d4e
"diff --git a/src/json.c b/src/json.c\n--- a/src/json.c\n+++ b/src/json.c\n@@ -428,7 +428,7 @@ lyjso(...TRUNCATED)
false
true
350a6bf69e03d19fe996cba992b49556ae2ce8ab
CESNET__libyang-350a6bf69e03d19fe996cba992b49556ae2ce8ab
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_350a6bf69e03d19fe996cba9(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_350a6bf69e03d19fe996c(...TRUNCATED)
"diff --git a/src/json.c b/src/json.c\n--- a/src/json.c\n+++ b/src/json.c\n@@ -428,7 +428,7 @@ lyjso(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 95485ea4036af9c93ac3bd756c8c20509a717d4e.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"350a6bf69e03d19fe996cba992b49556ae2ce8ab___json.c\", \"prompt\": [{\"content\": \"You (...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"350a6bf69e(...TRUNCATED)
CESNET/libyang
projects_v1
["src/json.c"]
true
["tests/utests/basic/test_json.c"]
false
"diff --git a/tests/utests/basic/test_json.c b/tests/utests/basic/test_json.c\n--- a/tests/utests/ba(...TRUNCATED)
[]
[]
39ed7a2d6756aba40eff2e2f6e2b7c96449aab1f
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/12510224?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/509d721c2b61088c1e491c330c48b0c(...TRUNCATED)
tree data BUGFIX possible freed memory access
https://github.com/CESNET/libyang/commit/509d721c2b61088c1e491c330c48b0cc01dc191e
2022-02-21T09:00:03
39ed7a2d6756aba40eff2e2f6e2b7c96449aab1f
"diff --git a/src/tree_data.c b/src/tree_data.c\n--- a/src/tree_data.c\n+++ b/src/tree_data.c\n@@ -8(...TRUNCATED)
false
true
509d721c2b61088c1e491c330c48b0cc01dc191e
CESNET__libyang-509d721c2b61088c1e491c330c48b0cc01dc191e
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_509d721c2b61088c1e491c33(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_509d721c2b61088c1e491(...TRUNCATED)
"diff --git a/src/tree_data.c b/src/tree_data.c\n--- a/src/tree_data.c\n+++ b/src/tree_data.c\n@@ -8(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 39ed7a2d6756aba40eff2e2f6e2b7c96449aab1f.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"509d721c2b61088c1e491c330c48b0cc01dc191e___tree_data.c\", \"prompt\": [{\"content\": \(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"509d721c2b(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_data.c"]
true
["tests/utests/types/yang_types.c"]
false
"diff --git a/tests/utests/types/yang_types.c b/tests/utests/types/yang_types.c\n--- a/tests/utests/(...TRUNCATED)
[]
[]
613bc03456b9716408ba87184c266b9850f979ac
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": null, \"comments_url\": \"https://api.github.com/repos/CESNET/libyang/commits/7c7783df(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/7c7783df75b9a5dfc6cc22c70b9467d(...TRUNCATED)
"schema compile BUGFIX applying augments only with uses statemtns\n\nThere is a case when parsed dat(...TRUNCATED)
https://github.com/CESNET/libyang/commit/7c7783df75b9a5dfc6cc22c70b9467d47aa913d2
2020-04-08T13:34:39
613bc03456b9716408ba87184c266b9850f979ac
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
true
7c7783df75b9a5dfc6cc22c70b9467d47aa913d2
CESNET__libyang-7c7783df75b9a5dfc6cc22c70b9467d47aa913d2
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_7c7783df75b9a5dfc6cc22c7(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_7c7783df75b9a5dfc6cc2(...TRUNCATED)
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 613bc03456b9716408ba87184c266b9850f979ac.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"7c7783df75b9a5dfc6cc22c70b9467d47aa913d2___tree_schema_compile.c\", \"prompt\": [{\"co(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"7c7783df75(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_schema_compile.c"]
true
["tests/src/test_tree_schema_compile.c"]
false
"diff --git a/tests/src/test_tree_schema_compile.c b/tests/src/test_tree_schema_compile.c\n--- a/tes(...TRUNCATED)
[]
[]
b5bc93ee6e0edfc3fb4e9ffbd972037bac42a13a
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": null, \"comments_url\": \"https://api.github.com/repos/CESNET/libyang/commits/812a5bff(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/812a5bff4857a485db96fe7269af944(...TRUNCATED)
schema compile BUGFIX memory leak Fixes #872
https://github.com/CESNET/libyang/commit/812a5bff4857a485db96fe7269af944d0bdb91b3
2019-09-09T07:18:05
b5bc93ee6e0edfc3fb4e9ffbd972037bac42a13a
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
true
812a5bff4857a485db96fe7269af944d0bdb91b3
CESNET__libyang-812a5bff4857a485db96fe7269af944d0bdb91b3
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_812a5bff4857a485db96fe72(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_812a5bff4857a485db96f(...TRUNCATED)
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit b5bc93ee6e0edfc3fb4e9ffbd972037bac42a13a.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"812a5bff4857a485db96fe7269af944d0bdb91b3___tree_schema_compile.c\", \"prompt\": [{\"co(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_hunk_repair.json\", \"key\": \"812a5bff48(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_schema_compile.c"]
true
["tests/src/test_tree_schema_compile.c"]
false
"diff --git a/tests/src/test_tree_schema_compile.c b/tests/src/test_tree_schema_compile.c\n--- a/tes(...TRUNCATED)
[]
[]
ca6801feadf5efff84bd2786893af293c770741e
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/12510224?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/823fbe0f7a7b50b7c80cfd948eb3c18(...TRUNCATED)
"schema tree BUGFIX removing not-supported deviation from augment\n\nTest for this also added.\nFixe(...TRUNCATED)
https://github.com/CESNET/libyang/commit/823fbe0f7a7b50b7c80cfd948eb3c189579126ab
2017-12-14T10:01:40
ca6801feadf5efff84bd2786893af293c770741e
"diff --git a/src/tree_schema.c b/src/tree_schema.c\n--- a/src/tree_schema.c\n+++ b/src/tree_schema.(...TRUNCATED)
false
true
823fbe0f7a7b50b7c80cfd948eb3c189579126ab
CESNET__libyang-823fbe0f7a7b50b7c80cfd948eb3c189579126ab
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_823fbe0f7a7b50b7c80cfd94(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_823fbe0f7a7b50b7c80cf(...TRUNCATED)
"diff --git a/src/tree_schema.c b/src/tree_schema.c\n--- a/src/tree_schema.c\n+++ b/src/tree_schema.(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit ca6801feadf5efff84bd2786893af293c770741e.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"823fbe0f7a7b50b7c80cfd948eb3c189579126ab___tree_schema.c\", \"prompt\": [{\"content\":(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_hunk_repair.json\", \"key\": \"823fbe0f7a(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_schema.c"]
true
["tests/schema/test_deviation.c"]
false
"diff --git a/tests/schema/test_deviation.c b/tests/schema/test_deviation.c\n--- a/tests/schema/test(...TRUNCATED)
[]
[]
1b1e925e40396609cadfe4e780f2adef2896d37a
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": null, \"comments_url\": \"https://api.github.com/repos/CESNET/libyang/commits/92cc8517(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/92cc8517fcb85dcfbb93842758571f7(...TRUNCATED)
"schema compilation BUGFIX nodes mentioned in leafref path's predicates must be implemented\n\nNot o(...TRUNCATED)
https://github.com/CESNET/libyang/commit/92cc8517fcb85dcfbb93842758571f721c49c9cb
2019-04-25T07:57:06
1b1e925e40396609cadfe4e780f2adef2896d37a
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
true
92cc8517fcb85dcfbb93842758571f721c49c9cb
CESNET__libyang-92cc8517fcb85dcfbb93842758571f721c49c9cb
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_92cc8517fcb85dcfbb938427(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_92cc8517fcb85dcfbb938(...TRUNCATED)
"diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c\n--- a/src/tree_schema_compile.c(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 1b1e925e40396609cadfe4e780f2adef2896d37a.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"92cc8517fcb85dcfbb93842758571f721c49c9cb___tree_schema_compile.c\", \"prompt\": [{\"co(...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_repair.json\", \"key\": \"92cc8517fcb85dcfbb9384(...TRUNCATED)
CESNET/libyang
projects_v1
["src/tree_schema_compile.c"]
true
["tests/src/test_tree_schema_compile.c"]
false
"diff --git a/tests/src/test_tree_schema_compile.c b/tests/src/test_tree_schema_compile.c\n--- a/tes(...TRUNCATED)
[]
[]
5057c2e0181de68cd43ebcc9059121bab8602107
project_metadata
"[{\"path\": \"projects_v1/CESNET___libyang/bugs_list_new.json\", \"record\": {\"c_compile\": {\"bui(...TRUNCATED)
{}
"{\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"git\", \"test\": \"ctest\", \"test_flags\"(...TRUNCATED)
"{\"../common_build_tpl.jinja\": \"build_dir=$1\\ntest_log=$2\\n\\n\\n\\n\\n{%if not is_rebuild %}\\(...TRUNCATED)
"{\"author\": {\"avatar_url\": \"https://avatars.githubusercontent.com/u/13786495?v=4\", \"events_ur(...TRUNCATED)
"[{\"commit\": \"https://api.github.com/repos/CESNET/libyang/commits/9cdb9e6f60d6bae42675bc3b46f5741(...TRUNCATED)
"parser xml BUGFIX in function lydxml_data_skip\n\nThe xml children's elements are skipped to the pa(...TRUNCATED)
https://github.com/CESNET/libyang/commit/9cdb9e6f60d6bae42675bc3b46f5741e50b62e68
2021-05-18T08:51:54
5057c2e0181de68cd43ebcc9059121bab8602107
"diff --git a/src/parser_xml.c b/src/parser_xml.c\n--- a/src/parser_xml.c\n+++ b/src/parser_xml.c\n@(...TRUNCATED)
false
true
9cdb9e6f60d6bae42675bc3b46f5741e50b62e68
CESNET__libyang-9cdb9e6f60d6bae42675bc3b46f5741e50b62e68
[]
"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_9cdb9e6f60d6bae42675bc3b(...TRUNCATED)
"[\"Internal ctest changing into directory: /out/CESNET___libyang/git_repo_dir_9cdb9e6f60d6bae42675b(...TRUNCATED)
"diff --git a/src/parser_xml.c b/src/parser_xml.c\n--- a/src/parser_xml.c\n+++ b/src/parser_xml.c\n@(...TRUNCATED)
false
cached_api_unverified
"Repair the recorded defect in CESNET/libyang at commit 5057c2e0181de68cd43ebcc9059121bab8602107.\n\(...TRUNCATED)
CESNET___libyang
"{\"before_install\": [], \"c_compile\": {\"build\": \"ninja\", \"build_flags\": [], \"clean\": \"gi(...TRUNCATED)
"[{\"idx\": \"9cdb9e6f60d6bae42675bc3b46f5741e50b62e68___parser_xml.c\", \"prompt\": [{\"content\": (...TRUNCATED)
"[{\"dataset\": \"data/buggy_errmsg/single_function_single_line_repair.json\", \"key\": \"9cdb9e6f60(...TRUNCATED)
CESNET/libyang
projects_v1
["src/parser_xml.c"]
true
["tests/utests/data/test_parser_xml.c"]
false
"diff --git a/tests/utests/data/test_parser_xml.c b/tests/utests/data/test_parser_xml.c\n--- a/tests(...TRUNCATED)
End of preview. Expand in Data Studio

Defects4C SWE-bench-style export

One instance per repository and fixing commit, joined from the local Defects4C export. all includes projects, legacy projects_v1, and additional cached commits. projects restricts to projects/. Duplicate metadata is retained in bug_metadata_json. Cached-only instances use the first parent as base_commit. The single test split is an organizational choice, not a validated benchmark split. No repository-disjoint training partition is claimed.

Load

from datasets import load_dataset
ds = load_dataset("json", data_files="data/all.jsonl", split="train")
# Once this folder is uploaded to a Hugging Face dataset repository:
# ds = load_dataset("YOUR_NAME/DATASET_NAME", "projects", split="test")

Fields and limitations

Core fields follow the SWE-bench dataset structure. base_commit is the buggy revision; head_commit is the fixed revision. patch contains changes outside the recorded test-file list; test_patch contains changes to that list; full_patch contains both. The test-file list is metadata, not an independently validated exhaustive classification. Cached-only rows have no classification: their patch contains all changes.

patch_source=local_git and patch_is_exact=true mean a binary-capable diff was generated directly between the two Git commits. API patches are reconstructed text hunks and are not guaranteed complete or applyable: mode changes, binary data, truncated hunks, or API file pagination may be absent. Known missing file hunks are recorded in omitted_patch_files and flagged cached_api_partial; other cached patches are cached_api_unverified. Missing patches or base mismatches remain explicit. Empty patches do not imply no fix.

problem_statement uses a neutral repair request and the original diagnostic; it does not insert the fixing commit message or gold code. The original errors may be runtime/test output rather than compiler errors. No upstream issue text is invented. original_errors preserves distinct messages; commit_message and cached repair records are reference material that can leak the solution.

FAIL_TO_PASS and PASS_TO_PASS are JSON-encoded empty lists because test transitions were not measured. test_outcomes_verified is false, and version is empty because package versions were not established. This dataset needs repository-specific environments, test runners, and result parsers before it can be scored by the SWE-bench harness. Build success is not test validation.

build_command is provided for projects/ rows supported by checkout_build.py. Legacy and cached-only rows retain available templates/configuration but have no claimed runnable build command. build_artifacts_json includes existing pre/post build scripts, logs, and summaries; no new builds are performed during export. build_templates_json retains project and shared Jinja templates.

Fields ending in _json, plus original_errors, source_files, test_files, omitted_patch_files and the test-transition fields, are JSON strings; decode them with json.loads. This preserves heterogeneous source schemas in Arrow. Other availability fields are booleans and all remaining columns are strings.

source_data.tar.gz preserves the complete original data/, projects/, and projects_v1/ inputs and reproduction/export scripts, including unjoined records. Cached source snapshots retain their original provenance; no revision identity is asserted beyond the source record. checksums.json contains file SHA-256 sums.

Coverage

{
  "instances": 365,
  "repositories": 44,
  "collections": {
    "projects": 119,
    "projects_v1": 241,
    "cached_only": 5
  },
  "patch_sources": {
    "cached_api_unverified": 295,
    "cached_api_partial": 67,
    "local_git": 2,
    "missing": 1
  },
  "with_original_error": 362,
  "with_build_artifacts": 2,
  "verified_test_outcomes": 0
}

Reproduce

From the original export (or after extracting source_data.tar.gz):

python3 export_hf_dataset.py --output /path/to/new/dataset

The exporter uses the Python standard library and performs no downloads. Put existing builds under build/PROJECT/COMMIT/ before exporting to include their artifacts and derive exact patches from their Git objects. Use a new destination for each export. The archive does not include cloned repositories or binaries.

The JSONL files and this card use the Hugging Face repository layout. Upload this directory as a dataset repository to publish it. No upload is performed by the exporter.

Licensing

This export does not assign a new license to upstream code or cached content. Each project's original license and attribution requirements continue to apply. The source export does not establish a single dataset-wide redistribution license.

Downloads last month
34