instance_id stringlengths 35 71 | patch stringlengths 300 17k | FAIL_TO_PASS listlengths 1 5.06k | PASS_TO_PASS listlengths 0 17.8k | image_name stringlengths 51 70 | repo stringlengths 28 47 | problem_statement stringlengths 702 1.85k |
|---|---|---|---|---|---|---|
paramiko__paramiko.23f92003.func_basic__8snnsxzv | diff --git a/paramiko/pipe.py b/paramiko/pipe.py
index 65944fa..087ee02 100644
--- a/paramiko/pipe.py
+++ b/paramiko/pipe.py
@@ -41,9 +41,9 @@ def make_pipe():
class PosixPipe:
def __init__(self):
self._rfd, self._wfd = os.pipe()
- self._set = False
- self._forever = False
- self._cl... | [
"tests/test_buffered_pipe.py::BufferedPipeTest::test_or_pipe",
"tests/test_transport.py::TransportTest::test_select",
"tests/test_transport.py::TransportTest::test_select_after_close",
"tests/test_transport.py::TransportTest::test_stderr_select",
"tests/test_transport.py::ServiceRequestingTransportTest::tes... | [
"tests/agent.py::AgentKey_::str_is_repr",
"tests/agent.py::AgentKey_::init::needs_at_least_two_arguments",
"tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob",
"tests/agent.py::AgentKey_::init::comment_optional",
"tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]",
"tests... | jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003 | swesmith/paramiko__paramiko.23f92003 | PosixPipe initialization broken - pipe operations fail immediately
#### Description
The PosixPipe class is initializing its internal state flags incorrectly, causing pipe operations to fail immediately after creation. When creating a new pipe, the `_set`, `_forever`, and `_closed` flags are being set to `True` instea... |
pdfminer__pdfminer.six.1a8bd2f7.func_basic__nr23x620 | diff --git a/pdfminer/arcfour.py b/pdfminer/arcfour.py
index cc78e36..22f183c 100644
--- a/pdfminer/arcfour.py
+++ b/pdfminer/arcfour.py
@@ -24,10 +24,10 @@ class Arcfour:
s = self.s
r = b""
for c in iter(data):
- i = (i + 1) % 256
- j = (j + s[i]) % 256
+ i =... | [
"tests/test_converter.py::TestColorSpace::test_do_rg",
"tests/test_highlevel_extracttext.py::TestExtractText::test_issue_625_identity_cmap",
"tests/test_pdfdocument.py::TestPdfDocument::test_encrypted_no_id",
"tests/test_pdfminer_crypto.py::TestArcfour::test",
"tests/test_tools_dumppdf.py::TestDumpPDF::test... | [
"tests/test_converter.py::TestPaintPath::test_paint_path",
"tests/test_converter.py::TestPaintPath::test_paint_path_mlllh",
"tests/test_converter.py::TestPaintPath::test_paint_path_multiple_mlllh",
"tests/test_converter.py::TestPaintPath::test_paint_path_quadrilaterals",
"tests/test_converter.py::TestPaintP... | jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7 | swesmith/pdfminer__pdfminer.six.1a8bd2f7 | Arcfour encryption produces incorrect output
#### Description
The Arcfour cipher implementation is producing incorrect encrypted/decrypted output. When testing with known test vectors, the results don't match expected values.
#### Steps/Code to Reproduce
```python
from pdfminer.arcfour import Arcfour
# Test with k... |
marshmallow-code__marshmallow.9716fc62.func_pm_ctrl_invert_if__g3c3btlp | diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py
index e21768e..6a5bd21 100644
--- a/src/marshmallow/schema.py
+++ b/src/marshmallow/schema.py
@@ -1205,18 +1205,17 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
if many and not pass_many:
if pass_original:
- ... | [
"tests/test_decorators.py::test_decorated_processors[True]",
"tests/test_decorators.py::test_decorated_processors[False]",
"tests/test_decorators.py::test_decorated_processor_returning_none[exclude]",
"tests/test_decorators.py::test_decorated_processor_returning_none[include]",
"tests/test_decorators.py::te... | [
"tests/test_decorators.py::TestValidatesDecorator::test_validates",
"tests/test_decorators.py::TestValidatesDecorator::test_validates_with_attribute",
"tests/test_decorators.py::TestValidatesDecorator::test_validates_decorator",
"tests/test_decorators.py::TestValidatesDecorator::test_field_not_present",
"te... | jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62 | swesmith/marshmallow-code__marshmallow.9716fc62 | Schema processors with `pass_original=True` and `many=True` receive incorrect arguments
#### Description
When using schema processors (like `@post_load`) with both `pass_original=True` and `many=True`, the processor methods are being called with incorrect argument patterns. This causes `TypeError` exceptions about mi... |
jawah__charset_normalizer.1fdd6463.func_basic__t7ubds8b | diff --git a/charset_normalizer/models.py b/charset_normalizer/models.py
index 09492a9..809a001 100644
--- a/charset_normalizer/models.py
+++ b/charset_normalizer/models.py
@@ -203,7 +203,7 @@ class CharsetMatch:
encoding.
This list does include the encoding available in property 'encoding'.
... | [
"tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\\xfe\\xff-utf_16]",
"tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\\x841\\x953-gb18030]",
"tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\\xff\\xfe\\x00\\x00-utf_32]",
"tests/test_base_detection.py::test_content_with... | [
"tests/test_base_detection.py::test_empty",
"tests/test_base_detection.py::test_bool_matches",
"tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\\xef\\xbb\\xbf-utf_8]",
"tests/test_base_detection.py::test_content_with_bom_or_sig[\\xef\\xbb\\xbf\\xe6\\x88\\x91\\xe6\\xb2\\xa1\\xe6\\x9c\\x89\\xe5\\x... | jyangballin/swesmith.x86_64.jawah_1776_charset_normalizer.1fdd6463 | swesmith/jawah__charset_normalizer.1fdd6463 | CharsetMatch.encoding_aliases property excludes main encoding
#### Description
The `encoding_aliases` property on `CharsetMatch` objects is not including the main encoding from the `encoding` property in its returned list. This breaks compatibility with code that expects all possible encodings to be listed in the ali... |
tobymao__sqlglot.036601ba.combine_module__ewa121a6 | diff --git a/sqlglot/executor/context.py b/sqlglot/executor/context.py
index a411c18..a3071f8 100644
--- a/sqlglot/executor/context.py
+++ b/sqlglot/executor/context.py
@@ -59,12 +59,10 @@ class Context:
return self.table.columns
def __iter__(self):
- self.env["scope"] = self.row_readers
- ... | [
"tests/test_executor.py::TestExecutor::test_correlated_count",
"tests/test_executor.py::TestExecutor::test_execute_callable",
"tests/test_executor.py::TestExecutor::test_execute_subqueries",
"tests/test_executor.py::TestExecutor::test_execute_tables",
"tests/test_executor.py::TestExecutor::test_execute_tpcd... | [
"tests/test_executor.py::TestExecutor::test_agg_order",
"tests/test_executor.py::TestExecutor::test_aggregate_without_group_by",
"tests/test_executor.py::TestExecutor::test_case_sensitivity",
"tests/test_executor.py::TestExecutor::test_execute_catalog_db_table",
"tests/test_executor.py::TestExecutor::test_n... | jyangballin/swesmith.x86_64.tobymao_1776_sqlglot.036601ba | swesmith/tobymao__sqlglot.036601ba | Context iterator returns wrong tuple format
#### Description
The Context `__iter__` method is returning `(row_readers, range_readers)` instead of the expected `(reader, context)` format, causing SQL execution to fail.
#### Steps/Code to Reproduce
```python
from sqlglot import execute
# Simple query that should wor... |
python-openxml__python-docx.0cf6d71f.func_basic__8rybi7tp | "diff --git a/src/docx/styles/style.py b/src/docx/styles/style.py\nindex aa175ea..e1e5999 100644\n--(...TRUNCATED) | ["tests/styles/test_style.py::DescribeBaseStyle::it_knows_its_name[name_get_fixture0]","tests/styles(...TRUNCATED) | ["tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture0]","tests/dml/t(...TRUNCATED) | jyangballin/swesmith.x86_64.python-openxml_1776_python-docx.0cf6d71f | swesmith/python-openxml__python-docx.0cf6d71f | "Style name property returns incorrect value for empty string names\n\n#### Description\n\nWhen a st(...TRUNCATED) |
marshmallow-code__webargs.dbde72fe.lm_rewrite__3wxzav1f | "diff --git a/src/webargs/testing.py b/src/webargs/testing.py\nindex 0d7bf0f..f112c83 100644\n--- a/(...TRUNCATED) | ["tests/test_aiohttpparser.py::TestAIOHTTPParser::test_use_args_with_validation","tests/test_bottlep(...TRUNCATED) | ["tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_querystring_args","tests/test_aiohttppa(...TRUNCATED) | jyangballin/swesmith.x86_64.marshmallow-code_1776_webargs.dbde72fe | swesmith/marshmallow-code__webargs.dbde72fe | "### [bug] Validation Error Handling in `use_args` Decorator\n\n#### Description\n\nIt seems there's(...TRUNCATED) |
sqlfluff__sqlfluff.50a1c4b6.combine_module__m0019a9z | "diff --git a/src/sqlfluff/utils/reflow/config.py b/src/sqlfluff/utils/reflow/config.py\nindex 71a31(...TRUNCATED) | ["test/utils/reflow/reindent_test.py::test_reflow__crawl_indent_points[select\\n1-raw-points_out2]",(...TRUNCATED) | ["test/utils/reflow/depthmap_test.py::test_reflow_depthmap_from_parent","test/utils/reflow/depthmap_(...TRUNCATED) | jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6 | swesmith/sqlfluff__sqlfluff.50a1c4b6 | "Reflow configuration logic inverted causing incorrect spacing behavior\n\n#### Description\n\nThe r(...TRUNCATED) |
cantools__cantools.0c6a7871.func_pm_op_change_const__21ku0kht | "diff --git a/src/cantools/database/can/formats/arxml/system_loader.py b/src/cantools/database/can/f(...TRUNCATED) | ["tests/test_database.py::CanToolsDatabaseTest::test_no_compu_method_category_arxml","tests/test_dat(...TRUNCATED) | ["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2","tests/test_autosar.py::Ca(...TRUNCATED) | jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871 | swesmith/cantools__cantools.0c6a7871 | "ARXML cycle time calculation incorrect for time periods\n\nWhen loading ARXML files, the cycle time(...TRUNCATED) |
spulec__freezegun.5f171db0.combine_file__f3rcc5ea | "diff --git a/freezegun/api.py b/freezegun/api.py\nindex d235292..7f8bade 100644\n--- a/freezegun/ap(...TRUNCATED) | ["tests/test_asyncio.py::test_datetime_in_coroutine","tests/test_asyncio.py::test_freezing_time_in_c(...TRUNCATED) | ["tests/test_configure.py::test_default_ignore_list_is_overridden[ignorelist0]","tests/test_configur(...TRUNCATED) | jyangballin/swesmith.x86_64.spulec_1776_freezegun.5f171db0 | swesmith/spulec__freezegun.5f171db0 | "Tick method behavior changed for integer and float values\n\nWhen using the `tick()` method with in(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6