Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
30
79
patch
stringlengths
199
31.9k
FAIL_TO_PASS
listlengths
1
6.92k
PASS_TO_PASS
listlengths
0
7.23k
image_name
stringclasses
45 values
repo
stringclasses
45 values
problem_statement
stringlengths
0
12.4k
data_source
stringclasses
1 value
prompt
listlengths
1
1
env_class
stringclasses
1 value
instance
dict
cool-RR__PySnooper.57472b46.lm_rewrite__uhr0jtpa
diff --git a/pysnooper/utils.py b/pysnooper/utils.py index ff9b9e8..06ba6e7 100644 --- a/pysnooper/utils.py +++ b/pysnooper/utils.py @@ -79,13 +79,22 @@ def get_shortish_repr(item, custom_repr=(), max_length=None, normalize=False): def truncate(string, max_length): - if (max_length is None) or (len(string) <= m...
[ "tests/test_pysnooper.py::test_long_variable[True]", "tests/test_pysnooper.py::test_long_variable[False]", "tests/test_pysnooper.py::test_long_variable_with_custom_max_variable_length[True]", "tests/test_pysnooper.py::test_long_variable_with_custom_max_variable_length[False]", "tests/test_pysnooper.py::test...
[ "tests/test_chinese.py::test_chinese", "tests/test_mini_toolbox.py::test_output_capturer_doesnt_swallow_exceptions", "tests/test_multiple_files/test_multiple_files.py::test_multiple_files", "tests/test_not_implemented.py::test_rejecting_coroutine_functions", "tests/test_not_implemented.py::test_rejecting_as...
jyangballin/swesmith.x86_64.cool-rr_1776_pysnooper.57472b46
swesmith/cool-RR__PySnooper.57472b46
### Truncate Function Not Handling Long Strings Correctly #### Description The recent changes to the `truncate` function in `pysnooper/utils.py` seem to have introduced an issue where strings are not being truncated correctly when they exceed the specified maximum length. This is causing unexpected behavior in severa...
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[ { "content": "### Truncate Function Not Handling Long Strings Correctly\n\n#### Description\n\nThe recent changes to the `truncate` function in `pysnooper/utils.py` seem to have introduced an issue where strings are not being truncated correctly when they exceed the specified maximum length. This is causing une...
null
{ "FAIL_TO_PASS": [ "tests/test_pysnooper.py::test_long_variable[True]", "tests/test_pysnooper.py::test_long_variable[False]", "tests/test_pysnooper.py::test_long_variable_with_custom_max_variable_length[True]", "tests/test_pysnooper.py::test_long_variable_with_custom_max_variable_length[False]", ...
python-jsonschema__jsonschema.93e0caa5.combine_file__s1pr1weg
"diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py\nindex 54d28c0..d11ffeb 100644\n--- a/json(...TRUNCATED)
["jsonschema/tests/test_cli.py::TestCLI::test_invalid_explicit_base_uri","jsonschema/tests/test_cli.(...TRUNCATED)
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format","jsonschema/tests/test_cli.py::Te(...TRUNCATED)
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
swesmith/python-jsonschema__jsonschema.93e0caa5
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[ { "content": "", "role": "user" } ]
null
{"FAIL_TO_PASS":["jsonschema/tests/test_cli.py::TestCLI::test_invalid_explicit_base_uri","jsonschema(...TRUNCATED)
python-jsonschema__jsonschema.93e0caa5.func_basic__y8xnk11y
"diff --git a/jsonschema/validators.py b/jsonschema/validators.py\nindex b8ca3bd..3d759ea 100644\n--(...TRUNCATED)
["jsonschema/tests/test_cli.py::TestCLI::test_successful_validation_via_explicit_base_uri","jsonsche(...TRUNCATED)
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format","jsonschema/tests/test_cli.py::Te(...TRUNCATED)
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
swesmith/python-jsonschema__jsonschema.93e0caa5
"Schema resolution broken when using $ref with external schemas\n\n#### Description\n\nWhen trying t(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"Schema resolution broken when using $ref with external schemas\n\n#### Description\n\nW(...TRUNCATED)
null
{"FAIL_TO_PASS":["jsonschema/tests/test_cli.py::TestCLI::test_successful_validation_via_explicit_bas(...TRUNCATED)
jaraco__inflect.c079a96a.func_basic__icnm7xo6
"diff --git a/inflect/__init__.py b/inflect/__init__.py\nindex 3eef486..365795b 100644\n--- a/inflec(...TRUNCATED)
[ "tests/test_inflections.py::test_def", "tests/test_pwd.py::Test::test_user_input_fns" ]
["inflect/__init__.py::inflect.bysize","inflect/__init__.py::inflect.engine._handle_long_compounds",(...TRUNCATED)
jyangballin/swesmith.x86_64.jaraco_1776_inflect.c079a96a
swesmith/jaraco__inflect.c079a96a
"defadj method swaps singular and plural parameters\n\n#### Description\n\nThe `defadj` method appea(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"defadj method swaps singular and plural parameters\n\n#### Description\n\nThe `defadj` (...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/test_inflections.py::test_def","tests/test_pwd.py::Test::test_user_input_fns(...TRUNCATED)
getmoto__moto.694ce1f4.func_pm_remove_loop__z0i1pla7
"diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py\nindex 241b3ea..9a87d2a 100644(...TRUNCATED)
[ "tests/test_autoscaling/test_autoscaling.py::test_propogate_tags" ]
["tests/test_autoscaling/test_autoscaling.py::test_create_autoscaling_group_from_instance","tests/te(...TRUNCATED)
jyangballin/swesmith.x86_64.getmoto_1776_moto.694ce1f4
swesmith/getmoto__moto.694ce1f4
"AutoScaling group tags not propagating to EC2 instances\n\n#### Description\n\nWhen creating an Aut(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"AutoScaling group tags not propagating to EC2 instances\n\n#### Description\n\nWhen cre(...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/test_autoscaling/test_autoscaling.py::test_propogate_tags"],"PASS_TO_PASS":[(...TRUNCATED)
pdfminer__pdfminer.six.1a8bd2f7.func_basic__viqpsikz
"diff --git a/pdfminer/psparser.py b/pdfminer/psparser.py\nindex b486956..92a1ccf 100755\n--- a/pdfm(...TRUNCATED)
[ "tests/test_pdfminer_psparser.py::TestPSBaseParser::test_2" ]
["tests/test_converter.py::TestPaintPath::test_paint_path","tests/test_converter.py::TestPaintPath::(...TRUNCATED)
jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7
swesmith/pdfminer__pdfminer.six.1a8bd2f7
"PSStackParser do_keyword method breaks existing functionality\n\n#### Description\n\nThe PSStackPar(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"PSStackParser do_keyword method breaks existing functionality\n\n#### Description\n\nTh(...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/test_pdfminer_psparser.py::TestPSBaseParser::test_2"],"PASS_TO_PASS":["tests(...TRUNCATED)
marshmallow-code__apispec.8b421526.func_pm_remove_assign__17waiz3v
"diff --git a/src/apispec/core.py b/src/apispec/core.py\nindex e9ccb40..9d9f5e6 100644\n--- a/src/ap(...TRUNCATED)
["tests/test_core.py::TestComponents::test_response_lazy[2.0]","tests/test_core.py::TestComponents::(...TRUNCATED)
["tests/test_core.py::TestAPISpecInit::test_raises_wrong_apispec_version","tests/test_core.py::TestM(...TRUNCATED)
jyangballin/swesmith.x86_64.marshmallow-code_1776_apispec.8b421526
swesmith/marshmallow-code__apispec.8b421526
"Path operations not processing responses correctly\n\n#### Description\n\nWhen adding paths with op(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"Path operations not processing responses correctly\n\n#### Description\n\nWhen adding p(...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/test_core.py::TestComponents::test_response_lazy[2.0]","tests/test_core.py::(...TRUNCATED)
pyasn1__pyasn1.0f07d724.combine_module__kf88er7f
"diff --git a/pyasn1/codec/ber/decoder.py b/pyasn1/codec/ber/decoder.py\nindex 7e69ca1..3efd11a 1006(...TRUNCATED)
["tests/codec/ber/test_decoder.py::BitStringDecoderTestCase::testDefModeChunked","tests/codec/ber/te(...TRUNCATED)
["tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLargeTag","tests/codec/ber/test_deco(...TRUNCATED)
jyangballin/swesmith.x86_64.pyasn1_1776_pyasn1.0f07d724
swesmith/pyasn1__pyasn1.0f07d724
"BER/DER encoder producing incorrect output after recent changes\n\n#### Description\n\nThe BER and (...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"BER/DER encoder producing incorrect output after recent changes\n\n#### Description\n\n(...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/codec/ber/test_decoder.py::BitStringDecoderTestCase::testDefModeChunked","te(...TRUNCATED)
conan-io__conan.86f29e13.pr_14106
"diff --git a/conan/cli/commands/graph.py b/conan/cli/commands/graph.py\nindex e493b51..4aab4f3 1006(...TRUNCATED)
[ "test/integration/command/info/test_info_build_order.py::test_info_build_order_broken_recipe" ]
["test/integration/command/info/test_info_build_order.py::test_info_build_order","test/integration/c(...TRUNCATED)
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
swesmith/conan-io__conan.86f29e13
"Graph Build Order Command Fails with Broken Recipe\n\nDescription\n\nWhile working with the `graph (...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"Graph Build Order Command Fails with Broken Recipe\n\nDescription\n\nWhile working with(...TRUNCATED)
null
{"FAIL_TO_PASS":["test/integration/command/info/test_info_build_order.py::test_info_build_order_brok(...TRUNCATED)
gweis__isodate.17cb25eb.combine_file__4u5mlu9j
"diff --git a/src/isodate/isoduration.py b/src/isodate/isoduration.py\nindex eacb15b..15f73e0 100644(...TRUNCATED)
["tests/test_duration.py::test_parse[P18Y9M4DT11H9M8S-expectation0-P%P-None]","tests/test_duration.p(...TRUNCATED)
["tests/test_date.py::test_parse[4-19-expected0-%C]","tests/test_date.py::test_parse[4-1985-expected(...TRUNCATED)
jyangballin/swesmith.x86_64.gweis_1776_isodate.17cb25eb
swesmith/gweis__isodate.17cb25eb
"Duration parsing and formatting broken for positive durations\n\n#### Description\n\nWhen parsing I(...TRUNCATED)
/us3/yuandl/SWE_resource/CentOs/D/SWE/datasets/smith-passed-p-full-1600
[{"content":"Duration parsing and formatting broken for positive durations\n\n#### Description\n\nWh(...TRUNCATED)
null
{"FAIL_TO_PASS":["tests/test_duration.py::test_parse[P18Y9M4DT11H9M8S-expectation0-P%P-None]","tests(...TRUNCATED)
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
13