selection_rank
int64
0
10k
uid
stringlengths
17
29
source
stringclasses
7 values
split
stringclasses
3 values
row_idx
int64
0
58.9k
instance_id
stringlengths
14
120
repo
stringclasses
246 values
repo_canon
stringclasses
232 values
language
stringclasses
8 values
base_commit
stringlengths
40
40
⌀
problem_statement
stringlengths
84
23.6k
extra_context
stringclasses
626 values
hints
stringlengths
0
59.3k
patch
stringlengths
252
175k
test_patch
stringlengths
0
358k
f2p
stringlengths
10
155k
⌀
p2p
stringlengths
2
1.75M
⌀
env_image
stringlengths
41
154
⌀
env_available
bool
1 class
created_at
stringlengths
10
20
⌀
n_src_files
int64
1
15
src_lines
int64
1
1.48k
n_f2p
float64
1
1.87k
⌀
ps_chars
int64
84
23.6k
leak_ratio
float64
0
0.6
s_prior
float64
0.6
1
s_verif
float64
0.75
1
s_ps
float64
0.04
1
s_patch
float64
0.07
1
s_tiebreak
float64
0.02
1
score
float64
47.9
98.6
7,800
swe_smith::train::24758
swe_smith
train
24,758
marshmallow-code__marshmallow.9716fc62.func_basic__r046s9de
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
IP field deserialization returns None instead of raising ValidationError for invalid inputs #### Description The IP field in marshmallow is not properly validating invalid IP addresses and instead returns None for malformed inputs. This breaks expected validation behavior where invalid IP addresses should raise a Val...
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py index e83ba19..b773b61 100644 --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1774,11 +1774,11 @@ class IP(Field): if value is None: return None try: - return (self.DESERIALIZATION_CLASS or i...
["tests/test_deserialization.py::TestFieldDeserialization::test_ip_field_deserialization", "tests/test_deserialization.py::TestFieldDeserialization::test_invalid_ip_deserialization[malformed]", "tests/test_deserialization.py::TestFieldDeserialization::test_invalid_ip_deserialization[123]", "tests/test_deserialization.p...
["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::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
6
13
1,162
0
0.6
1
0.75
1
0.213667
80.916
7,801
swe_smith::train::50776
swe_smith
train
50,776
python-hyper__h11.bed0dd4a.combine_file__bunvpdfe
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
HTTP/1.0 trailer validation logic inverted #### Description When sending an EndOfMessage event to an HTTP/1.0 client, the trailer validation logic is backwards. The code currently raises an error when there are no trailers, but should raise an error when trailers are present (since HTTP/1.0 doesn't support trailers)....
diff --git a/h11/_writers.py b/h11/_writers.py index 939cdb9..354b39d 100644 --- a/h11/_writers.py +++ b/h11/_writers.py @@ -63,11 +63,10 @@ class BodyWriter: def __call__(self, event: Event, write: Writer) -> None: if type(event) is Data: self.send_data(event.data, write) - elif type(...
["h11/tests/test_against_stdlib_http.py::test_h11_as_client", "h11/tests/test_against_stdlib_http.py::test_h11_as_server", "h11/tests/test_connection.py::test_Connection_basics_and_content_length", "h11/tests/test_connection.py::test_chunked", "h11/tests/test_connection.py::test_client_talking_to_http10_server", "h11/t...
["h11/tests/test_connection.py::test__keep_alive", "h11/tests/test_connection.py::test__body_framing", "h11/tests/test_connection.py::test_chunk_boundaries", "h11/tests/test_connection.py::test_100_continue", "h11/tests/test_connection.py::test_close_simple", "h11/tests/test_connection.py::test_errors", "h11/tests/test...
jyangballin/swesmith.x86_64.python-hyper_1776_h11.bed0dd4a
true
null
1
13
18
1,021
0
0.6
1
0.75
1
0.2135
80.9155
7,802
swe_smith::train::7512
swe_smith
train
7,512
cantools__cantools.0c6a7871.func_basic__f1m6y56b
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
Tester.send() method corrupts signal values when called with dict #### Description When using the `Tester.send()` method with signal values passed as a dictionary, the signal values get corrupted and become negative, causing overflow errors when trying to send CAN messages. #### Steps/Code to Reproduce ```python im...
diff --git a/src/cantools/tester.py b/src/cantools/tester.py index c2ad9f2..19a9d3b 100644 --- a/src/cantools/tester.py +++ b/src/cantools/tester.py @@ -446,6 +446,15 @@ class Tester: """ + if signals is None: + signals = {} + + self._messages[message_name].send(signals) + + ...
["tests/test_tester.py::CanToolsTesterTest::test_send"]
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
9
1
1,101
0
0.6
1
0.75
1
0.2135
80.9155
7,803
swe_smith::train::48556
swe_smith
train
48,556
sqlfluff__sqlfluff.50a1c4b6.func_pm_remove_wrapper__5z9zebsb
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
Parse command fails with NameError when processing files #### Description The `sqlfluff parse` command is throwing a `NameError` when trying to process SQL files. The command appears to be missing the actual parsing logic that handles both file paths and stdin input. #### Steps/Code to Reproduce ```bash sqlfluff pa...
diff --git a/src/sqlfluff/cli/commands.py b/src/sqlfluff/cli/commands.py index 14e3c3e..47e6852 100644 --- a/src/sqlfluff/cli/commands.py +++ b/src/sqlfluff/cli/commands.py @@ -1358,29 +1358,6 @@ def parse( t0 = time.monotonic() - # handle stdin if specified via lone '-' - with PathAndUserErrorHandler(fo...
["test/cli/commands_test.py::test__cli__command_no_dialect[command1]", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_implicit_warning", "test/cli/commands_test.py::test__cli__command_lint_parse[command9]", "test/c...
["test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect[command0]", "test/cli/commands_test.py::test__cli__command_no_dialect[command2]", "test/cli/commands_test.py::test__cli__command_no_dialect[comman...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
24
17
801
0
0.6
1
0.75
1
0.2135
80.9155
7,804
swe_smith::train::31648
swe_smith
train
31,648
benoitc__gunicorn.bacbf8aa.func_pm_remove_cond__71ka0l9v
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
parse_address function broken for most address formats When trying to parse network addresses, the `parse_address` function in `gunicorn/util.py` is not working correctly for most common address formats. It seems like the address parsing logic has been removed or broken. #### Steps/Code to Reproduce ```python from g...
diff --git a/gunicorn/util.py b/gunicorn/util.py index e66dbeb..5920c05 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -234,14 +234,6 @@ def parse_address(netloc, default_port='8000'): netloc = netloc.split("tcp://")[1] host, port = netloc, default_port - if '[' in netloc and ']' in netloc: ...
["tests/test_config.py::test_property_access", "tests/test_config.py::test_statsd_host", "tests/test_util.py::test_parse_address[tcp://localhost:5000-expected3]", "tests/test_util.py::test_parse_address[-expected4]", "tests/test_util.py::test_parse_address[[::1]:8000-expected5]", "tests/test_util.py::test_parse_address...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
1
9
10
1,101
0
0.6
1
0.75
1
0.2135
80.9155
7,805
swe_smith::train::4967
swe_smith
train
4,967
bottlepy__bottle.a8dfef30.func_pm_ctrl_shuffle__yoxwescj
swesmith/bottlepy__bottle.a8dfef30
bottlepy/bottle
python
null
Request.params property broken after recent changes #### Description The `request.params` property is throwing an `UnboundLocalError` when accessed. This appears to be related to recent changes in the BaseRequest class. #### Steps/Code to Reproduce ```python import wsgiref.util from bottle import BaseRequest, tob ...
diff --git a/bottle.py b/bottle.py index 286b5bc..8b866dd 100755 --- a/bottle.py +++ b/bottle.py @@ -1241,15 +1241,14 @@ class BaseRequest(object): @DictProperty('environ', 'bottle.request.params', read_only=True) def params(self): - """ A :class:`FormsDict` with the combined values of :attr:`query` ...
["test/test_environ.py::TestRequest::test_params"]
["test/test_app.py::TestApplicationObject::test_setattr", "test/test_auth.py::TestBasicAuth::test__header", "test/test_config.py::TestConfDict::test_gc_overlays", "test/test_config.py::TestConfDict::test_isadict", "test/test_config.py::TestConfDict::test_load_dict", "test/test_config.py::TestConfDict::test_load_module"...
jyangballin/swesmith.x86_64.bottlepy_1776_bottle.a8dfef30
true
null
1
13
1
1,020
0
0.6
1
0.75
1
0.213333
80.915
7,806
swe_smith::train::14398
swe_smith
train
14,398
python-openxml__python-docx.0cf6d71f.lm_rewrite__mpj44qbs
swesmith/python-openxml__python-docx.0cf6d71f
python-openxml/python-docx
python
null
### Issue with Table Cell Spanning Hello, I've encountered an issue with table cell spanning in the latest update. When attempting to create a span between two cells, the operation fails under certain conditions, which previously worked fine. Here's a minimal example to reproduce the issue: ```python from docx impor...
diff --git a/src/docx/oxml/table.py b/src/docx/oxml/table.py index e38d585..d8136f8 100644 --- a/src/docx/oxml/table.py +++ b/src/docx/oxml/table.py @@ -664,11 +664,15 @@ class CT_Tc(BaseOxmlElement): extents.""" def raise_on_inverted_L(a: CT_Tc, b: CT_Tc): - if a.top == b.top and a.botto...
["tests/oxml/test_table.py::DescribeCT_Tc::it_raises_on_invalid_span[1-0-0-1-0]", "tests/oxml/test_table.py::DescribeCT_Tc::it_raises_on_invalid_span[1-1-0-0-0]", "tests/oxml/test_table.py::DescribeCT_Tc::it_raises_on_invalid_span[2-0-2-0-1]"]
["tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture0]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture1]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture2]", "tests/dml/test_color.py::DescribeColorFormat::it_knows...
jyangballin/swesmith.x86_64.python-openxml_1776_python-docx.0cf6d71f
true
null
1
12
3
1,040
0
0.6
1
0.75
1
0.213333
80.915
7,807
swe_smith::train::38473
swe_smith
train
38,473
amueller__word_cloud.ec24191c.func_basic__b5q81acm
swesmith/amueller__word_cloud.ec24191c
amueller/word_cloud
python
null
WordCloud generation fails with broadcasting error in IntegralOccupancyMap #### Description When generating word clouds, the code crashes with a ValueError about operands not being able to broadcast together. This happens during the word placement process when the IntegralOccupancyMap tries to update its internal sta...
diff --git a/wordcloud/wordcloud.py b/wordcloud/wordcloud.py index 1622c03..af60f40 100644 --- a/wordcloud/wordcloud.py +++ b/wordcloud/wordcloud.py @@ -52,19 +52,17 @@ class IntegralOccupancyMap(object): def update(self, img_array, pos_x, pos_y): partial_integral = np.cumsum(np.cumsum(img_array[pos_x:,...
["test/test_wordcloud.py::test_collocations", "test/test_wordcloud.py::test_collocation_stopwords", "test/test_wordcloud.py::test_collocation_stopwords_uppercase", "test/test_wordcloud.py::test_plurals_numbers", "test/test_wordcloud.py::test_multiple_s", "test/test_wordcloud.py::test_default", "test/test_wordcloud.py::...
["test/test_wordcloud.py::test_empty_text", "test/test_wordcloud.py::test_stopwords_lowercasing", "test/test_wordcloud.py::test_check_errors", "test/test_wordcloud.py::test_single_color_func", "test/test_wordcloud.py::test_single_color_func_grey", "test/test_wordcloud.py::test_process_text", "test/test_wordcloud.py::te...
jyangballin/swesmith.x86_64.amueller_1776_word_cloud.ec24191c
true
null
1
14
24
1,000
0
0.6
1
0.75
1
0.213333
80.915
7,808
swe_smith::train::47761
swe_smith
train
47,761
sqlfluff__sqlfluff.50a1c4b6.func_basic__698d5c52
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
Linter exception handling broken for ValueError exceptions #### Description When the linter encounters a ValueError during file processing, the exception handling is not working correctly. The error is being silently swallowed instead of being properly logged as a warning. #### Steps/Code to Reproduce ```python fro...
diff --git a/src/sqlfluff/core/linter/runner.py b/src/sqlfluff/core/linter/runner.py index 3ebe1db..a8d10a8 100644 --- a/src/sqlfluff/core/linter/runner.py +++ b/src/sqlfluff/core/linter/runner.py @@ -94,14 +94,14 @@ class BaseRunner(ABC): @staticmethod def _handle_lint_path_exception(fname: Optional[str], ...
["test/core/linter/linter_test.py::test__linter__linting_unexpected_error_handled_gracefully"]
["test/core/linter/discovery_test.py::test__linter__path_from_paths__dir", "test/core/linter/discovery_test.py::test__linter__path_from_paths__default", "test/core/linter/discovery_test.py::test__linter__path_from_paths__exts", "test/core/linter/discovery_test.py::test__linter__path_from_paths__file", "test/core/linter...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
14
1
1,000
0
0.6
1
0.75
1
0.213333
80.915
7,809
swe_smith::train::39100
swe_smith
train
39,100
pallets__jinja.ada0a9a6.func_basic__khj7emhu
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
Slice parsing broken for empty start/stop expressions #### Description Template slicing syntax with empty start or stop expressions is not working correctly. When using slice notation like `[:]` or `[::-1]`, the parser fails to handle the empty expressions properly. #### Steps/Code to Reproduce ```python from jinja...
diff --git a/src/jinja2/parser.py b/src/jinja2/parser.py index 817abec..7728394 100644 --- a/src/jinja2/parser.py +++ b/src/jinja2/parser.py @@ -834,8 +834,7 @@ class Parser: args: t.List[t.Optional[nodes.Expr]] if self.stream.current.type == "colon": - next(self.stream) - args...
["tests/test_async.py::TestAsyncForLoop::test_awaitable_property_slicing", "tests/test_async.py::test_getitem_after_filter", "tests/test_async.py::test_getitem_after_call", "tests/test_lexnparse.py::TestSyntax::test_slicing"]
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
21
4
860
0
0.6
1
0.75
1
0.213333
80.915
7,810
swe_smith::train::35113
swe_smith
train
35,113
django__daphne.32ac73e1.func_basic__kydjpirt
swesmith/django__daphne.32ac73e1
django/daphne
python
null
CLI argument parsing broken after recent changes #### Description The command line interface is failing to parse arguments correctly. When trying to use basic CLI options like `-p` for port or `-b` for bind address, the application crashes with type errors. #### Steps/Code to Reproduce ```python from daphne.cli imp...
diff --git a/daphne/cli.py b/daphne/cli.py index a036821..a553fbb 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -28,7 +28,7 @@ class CommandLineInterface: def __init__(self): self.parser = argparse.ArgumentParser(description=self.description) self.parser.add_argument( - "-p", "--po...
["tests/test_cli.py::TestCLIInterface::testCLIBasics", "tests/test_cli.py::TestCLIInterface::testUnixSockets", "tests/test_cli.py::TestCLIInterface::test_custom_proxyhost", "tests/test_cli.py::TestCLIInterface::test_custom_proxyport", "tests/test_cli.py::TestCLIInterface::test_custom_servername", "tests/test_cli.py::Te...
["tests/test_checks.py::test_check_daphne_installed", "tests/test_cli.py::TestEndpointDescriptions::testBasics", "tests/test_cli.py::TestEndpointDescriptions::testFileDescriptorBinding", "tests/test_cli.py::TestEndpointDescriptions::testMultipleEnpoints", "tests/test_cli.py::TestEndpointDescriptions::testTcpPortBinding...
jyangballin/swesmith.x86_64.django_1776_daphne.32ac73e1
true
null
1
10
7
1,080
0
0.6
1
0.75
1
0.213333
80.915
7,811
swe_smith::train::49185
swe_smith
train
49,185
mozilla__bleach.73871d76.combine_module__flweka36
swesmith/mozilla__bleach.73871d76
mozilla/bleach
python
null
HTML fragment parsing returns None instead of fragment #### Description When parsing HTML fragments using bleach's HTML parser, the `getFragment()` method returns `None` instead of the expected fragment object. This breaks HTML cleaning and linkification functionality. #### Steps/Code to Reproduce ```python import ...
diff --git a/bleach/_vendor/html5lib/treebuilders/base.py b/bleach/_vendor/html5lib/treebuilders/base.py index 2869da0..9746b11 100644 --- a/bleach/_vendor/html5lib/treebuilders/base.py +++ b/bleach/_vendor/html5lib/treebuilders/base.py @@ -403,10 +403,9 @@ class TreeBuilder(object): def getFragment(self): ...
["tests/test_clean.py::test_clean_idempotent[text<em>]", "tests/test_clean.py::test_clean_idempotent_img", "tests/test_clean.py::test_only_text_is_cleaned", "tests/test_clean.py::test_content_has_no_html", "tests/test_clean.py::test_html_is_lowercased", "tests/test_clean.py::test_comments[<!--comment-->text-True-text]"...
["tests/test_callbacks.py::TestNofollowCallback::test_blank", "tests/test_callbacks.py::TestNofollowCallback::test_no_href", "tests/test_callbacks.py::TestNofollowCallback::test_basic", "tests/test_callbacks.py::TestNofollowCallback::test_mailto", "tests/test_callbacks.py::TestNofollowCallback::test_has_nofollow_alread...
jyangballin/swesmith.x86_64.mozilla_1776_bleach.73871d76
true
null
2
21
183
860
0
0.6
1
0.75
1
0.213333
80.915
7,812
swe_smith::train::31487
swe_smith
train
31,487
benoitc__gunicorn.bacbf8aa.func_basic__7l57q4wx
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
chdir validation logic inverted - raises error when path exists #### Description The `validate_chdir` function in gunicorn's config validation has inverted logic. It now raises a ConfigError when the specified directory *exists* instead of when it doesn't exist, and returns only the basename of the path instead of th...
diff --git a/gunicorn/config.py b/gunicorn/config.py index 402a26b..ff457c9 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -498,17 +498,14 @@ def validate_post_request(val): def validate_chdir(val): - # valid if the value is a string val = validate_string(val) - # transform relative paths...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
["tests/test_config.py::test_callable_validation_for_string", "tests/test_http.py::test_method_pattern", "tests/test_http.py::test_readline_empty_body", "tests/test_http.py::test_readline_zero_size", "tests/test_http.py::test_readline_new_line_before_size", "tests/test_http.py::test_readline_new_line_after_size", "test...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
1
7
170
1,139
0
0.6
1
0.75
1
0.213167
80.9145
7,813
swe_smith::train::6805
swe_smith
train
6,805
joke2k__faker.8b401a7d.func_pm_remove_cond__caqhgtf3
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
Finnish SSN century code function returns undefined variable #### Description The `_get_century_code` method in the Finnish SSN provider is broken and returns an undefined variable `separator` for years outside the 2000-2999 range. #### Steps/Code to Reproduce ```python from faker import Faker from faker.providers....
diff --git a/faker/providers/ssn/fi_FI/__init__.py b/faker/providers/ssn/fi_FI/__init__.py index 016782c..968e150 100644 --- a/faker/providers/ssn/fi_FI/__init__.py +++ b/faker/providers/ssn/fi_FI/__init__.py @@ -48,14 +48,7 @@ class Provider(SsnProvider): """Returns the century code for a given year""" ...
["tests/providers/test_ssn.py::TestFiFI::test_artifical_ssn", "tests/providers/test_ssn.py::TestFiFI::test_century_code", "tests/providers/test_ssn.py::TestFiFI::test_ssn_sanity", "tests/providers/test_ssn.py::TestFiFI::test_ssn_without_age_range", "tests/providers/test_ssn.py::TestFiFI::test_valid_ssn"]
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
7
5
1,139
0
0.6
1
0.75
1
0.213167
80.9145
7,814
swe_smith::train::10567
swe_smith
train
10,567
paramiko__paramiko.23f92003.func_basic__pfx0rxss
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SecurityOptions cipher validation broken - accepts invalid ciphers #### Description When setting ciphers on SecurityOptions, the validation logic is inverted and now accepts invalid/unknown ciphers while rejecting valid ones. #### Steps/Code to Reproduce ```python import paramiko # Create a transport and get secur...
diff --git a/paramiko/transport.py b/paramiko/transport.py index f0fcb97..c4e2da1 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -3203,15 +3203,15 @@ class SecurityOptions: return "<paramiko.SecurityOptions for {!r}>".format(self._transport) def _set(self, name, orig, x): - if ...
["tests/test_transport.py::TransportTest::test_security_options", "tests/test_transport.py::TransportTest::testb_security_options_reset", "tests/test_transport.py::ServiceRequestingTransportTest::test_security_options", "tests/test_transport.py::ServiceRequestingTransportTest::testb_security_options_reset"]
["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/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
12
4
1,039
0
0.6
1
0.75
1
0.213167
80.9145
7,815
swe_smith::train::1746
swe_smith
train
1,746
agronholm__typeguard.b6a7e438.func_basic__33dmmkz7
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
Set and frozenset type checking incorrectly raises errors for valid types #### Description Type checking for sets and frozensets is incorrectly rejecting valid instances. When checking a regular set against `Set[int]` or a frozenset against `FrozenSet[int]`, the checker raises a `TypeCheckError` even when the types s...
diff --git a/src/typeguard/_checkers.py b/src/typeguard/_checkers.py index 5e34036..a9db617 100644 --- a/src/typeguard/_checkers.py +++ b/src/typeguard/_checkers.py @@ -330,19 +330,19 @@ def check_set( memo: TypeCheckMemo, ) -> None: if origin_type is frozenset: - if not isinstance(value, frozenset): ...
["tests/test_checkers.py::TestAbstractSet::test_custom_type", "tests/test_checkers.py::TestAbstractSet::test_bad_type", "tests/test_checkers.py::TestAbstractSet::test_first_check_fail", "tests/test_checkers.py::TestAbstractSet::test_full_check_fail", "tests/test_checkers.py::TestSet::test_bad_type", "tests/test_checker...
["tests/mypy/test_type_annotations.py::test_positive", "tests/mypy/test_type_annotations.py::test_negative", "tests/test_checkers.py::TestAnyStr::test_valid[str]", "tests/test_checkers.py::TestAnyStr::test_valid[bytes]", "tests/test_checkers.py::TestAnyStr::test_bad_type", "tests/test_checkers.py::TestBytesLike::test_v...
jyangballin/swesmith.x86_64.agronholm_1776_typeguard.b6a7e438
true
null
1
12
16
1,039
0
0.6
1
0.75
1
0.213167
80.9145
7,816
swe_smith::train::11267
swe_smith
train
11,267
rsalmei__alive-progress.35853799.func_pm_remove_assign__b6bftiyt
swesmith/rsalmei__alive-progress.35853799
rsalmei/alive-progress
python
null
NameError in hook manager after recent changes #### Description After some recent changes to the hook manager code, several functions are throwing `NameError` exceptions for undefined variables. The hook manager seems to be missing some variable definitions that were accidentally removed. #### Steps/Code to Reproduc...
diff --git a/alive_progress/core/hook_manager.py b/alive_progress/core/hook_manager.py index 5b43fff..bb583d6 100644 --- a/alive_progress/core/hook_manager.py +++ b/alive_progress/core/hook_manager.py @@ -37,12 +37,9 @@ def buffered_hook_manager(header_template, get_pos, offset, cond_refresh, term): def write(stre...
["tests/core/test_hook_manager.py::test_hook_manager_captures_stdout[print_data0]", "tests/core/test_hook_manager.py::test_hook_manager_captures_stdout[print_data1]", "tests/core/test_hook_manager.py::test_hook_manager_captures_stdout[print_data2]", "tests/core/test_hook_manager.py::test_hook_manager_captures_stdout[pr...
["tests/animations/test_bars.py::test_bar_tip_background[--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[=--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[_-=--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[-0.0-Fa...
jyangballin/swesmith.x86_64.rsalmei_1776_alive-progress.35853799
true
null
1
6
39
1,159
0
0.6
1
0.75
1
0.213167
80.9145
7,817
swe_smith::train::4878
swe_smith
train
4,878
bottlepy__bottle.a8dfef30.func_basic__v4qseagq
swesmith/bottlepy__bottle.a8dfef30
bottlepy/bottle
python
null
Import hook module creation broken after recent changes #### Description The import hook system is not working correctly. When trying to import modules through the import hook mechanism, it's failing to create proper module objects and causing import errors. #### Steps/Code to Reproduce ```python import bottle # T...
diff --git a/bottle.py b/bottle.py index 286b5bc..fefc60f 100755 --- a/bottle.py +++ b/bottle.py @@ -2048,16 +2048,16 @@ class TemplatePlugin(object): class _ImportRedirect(object): def __init__(self, name, impmask): """ Create a virtual package that redirects imports (see PEP 302). """ - self.nam...
["test/test_importhook.py::TestImportHooks::test_data_import", "test/test_importhook.py::TestImportHooks::test_direkt_import", "test/test_importhook.py::TestImportHooks::test_ext_isfile", "test/test_importhook.py::TestImportHooks::test_from_import"]
["test/test_app.py::TestApplicationObject::test_setattr", "test/test_auth.py::TestBasicAuth::test__header", "test/test_config.py::TestConfDict::test_gc_overlays", "test/test_config.py::TestConfDict::test_isadict", "test/test_config.py::TestConfDict::test_load_dict", "test/test_config.py::TestConfDict::test_load_module"...
jyangballin/swesmith.x86_64.bottlepy_1776_bottle.a8dfef30
true
null
1
12
4
1,039
0
0.6
1
0.75
1
0.213167
80.9145
7,818
r2e_gym::train::5042
r2e_gym
train
5,042
datalad__7c3d4767f5bb9434738e28e706522503127609f7
datalad
datalad/datalad
python
7c3d4767f5bb9434738e28e706522503127609f7
**Title:** Unicode Symbols in LS Output Cause Encoding Errors When `stdout` Encoding is Unsupported **Description:** When running the `ls` command in environments where `sys.stdout.encoding` does not support Unicode (e.g., set to 'ascii'), the output includes Unicode symbols like "✓". This leads to `UnicodeEncodeErro...
diff --git a/datalad/interface/ls.py b/datalad/interface/ls.py --- a/datalad/interface/ls.py +++ b/datalad/interface/ls.py @@ -381,15 +381,25 @@ # reveals that Python uses ascii encoding when stdout is a pipe, so we shouldn't force it to be # unicode then # TODO: we might want to just ignore and force ut...
diff --git a/datalad/interface/tests/test_ls.py b/datalad/interface/tests/test_ls.py --- a/datalad/interface/tests/test_ls.py +++ b/datalad/interface/tests/test_ls.py @@ -1,4 +1,4 @@ -# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- +# emacs: -*- mode: python; py-indent-offset: 4;...
null
null
namanjain12/datalad_final:7c3d4767f5bb9434738e28e706522503127609f7
true
null
1
37
null
1,251
0
0.75
1
0.6375
1
0.331833
80.91425
7,819
swe_smith::train::31384
swe_smith
train
31,384
benoitc__gunicorn.bacbf8aa.combine_file__ka303djs
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
WSGIApplication class broken after recent changes #### Description The WSGIApplication class is no longer working properly. When trying to create a WSGIApplication instance, it fails with a TypeError about missing required positional arguments. #### Steps/Code to Reproduce ```python from gunicorn.app.wsgiapp import...
diff --git a/gunicorn/app/wsgiapp.py b/gunicorn/app/wsgiapp.py index 1b0ba96..22599e6 100644 --- a/gunicorn/app/wsgiapp.py +++ b/gunicorn/app/wsgiapp.py @@ -9,11 +9,11 @@ from gunicorn.app.base import Application from gunicorn import util -class WSGIApplication(Application): +class WSGIApplication(): def init...
["tests/test_config.py::test_wsgi_app_config[options0-app:app]", "tests/test_config.py::test_wsgi_app_config[options1-app:app]", "tests/test_config.py::test_wsgi_app_config[options2-app:app]", "tests/test_config.py::test_wsgi_app_config[options3-app1:app1]", "tests/test_config.py::test_non_wsgi_app[options0]", "tests/t...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
1
19
6
898
0
0.6
1
0.75
1
0.213
80.914
7,820
swe_smith::train::24305
swe_smith
train
24,305
sunpy__sunpy.f8edfd5c.func_pm_remove_cond__842zlrtw
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
Scraper initialization fails when using format parameter #### Description When initializing a Scraper with the `format` parameter instead of the deprecated `pattern` parameter, the object fails to initialize properly and raises an AttributeError when trying to access the `use_old_format` attribute. #### Steps/Code t...
diff --git a/sunpy/net/scraper.py b/sunpy/net/scraper.py index 202638e..81fe8cb 100644 --- a/sunpy/net/scraper.py +++ b/sunpy/net/scraper.py @@ -114,11 +114,6 @@ class Scraper: if pattern is not None and format is None: self.use_old_format = True self.pattern = pattern - elif p...
["sunpy/net/tests/test_scraper.py::test_directory_date_pattern_new_format", "sunpy/net/tests/test_scraper.py::test_directory_date_patternFalse_new_format", "sunpy/net/tests/test_scraper.py::test_directory_obs_pattern_new_format", "sunpy/net/tests/test_scraper.py::test_directory_range_new_format", "sunpy/net/tests/test_...
["sunpy/net/tests/test_scraper.py::test_directory_date_pattern", "sunpy/net/tests/test_scraper.py::test_directory_date_pattern_false", "sunpy/net/tests/test_scraper.py::test_directory_obs_pattern", "sunpy/net/tests/test_scraper.py::test_directory_range", "sunpy/net/tests/test_scraper.py::test_directory_regex", "sunpy/n...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
9
17
1,098
0
0.6
1
0.75
1
0.213
80.914
7,821
swe_smith::train::23502
swe_smith
train
23,502
pyparsing__pyparsing.533adf47.func_basic__a2bscwf4
swesmith/pyparsing__pyparsing.533adf47
pyparsing/pyparsing
python
null
Date conversion parse action returns None instead of raising ParseException #### Description When using `pyparsing_common.convert_to_date()` with invalid date strings, the parse action silently returns `None` instead of raising a `ParseException` as expected. This causes date parsing to fail silently rather than prov...
diff --git a/pyparsing/common.py b/pyparsing/common.py index e465110..968b3a4 100644 --- a/pyparsing/common.py +++ b/pyparsing/common.py @@ -257,7 +257,7 @@ class pyparsing_common: "MAC address xx:xx:xx:xx:xx (may also have '-' or '.' delimiters)" @staticmethod - def convert_to_date(fmt: str = "%Y-%m-%d"...
["tests/test_unit.py::Test02_WithoutPackrat::testCommonExpressions", "tests/test_unit.py::Test02_WithoutPackrat::testConvertToDateErr", "tests/test_unit.py::Test04_WithPackrat::testCommonExpressions", "tests/test_unit.py::Test04_WithPackrat::testConvertToDateErr", "tests/test_unit.py::Test06_WithBoundedPackrat::testCom...
["examples/test_bibparse.py::TestBibparse::test_bib1", "examples/test_bibparse.py::TestBibparse::test_bibfile", "examples/test_bibparse.py::TestBibparse::test_comments", "examples/test_bibparse.py::TestBibparse::test_entry", "examples/test_bibparse.py::TestBibparse::test_macro", "examples/test_bibparse.py::TestBibparse...
jyangballin/swesmith.x86_64.pyparsing_1776_pyparsing.533adf47
true
null
1
6
12
1,158
0
0.6
1
0.75
1
0.213
80.914
7,822
swe_smith::train::7871
swe_smith
train
7,871
cantools__cantools.0c6a7871.func_pm_class_rm_funcs__woidrd0k
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
DbcSpecifics value_tables property missing after recent changes #### Description After some recent changes to the DbcSpecifics class, accessing the `value_tables` property on DbcSpecifics objects now raises an AttributeError. This breaks existing code that relies on this property. #### Steps/Code to Reproduce ```py...
diff --git a/src/cantools/database/can/formats/dbc_specifics.py b/src/cantools/database/can/formats/dbc_specifics.py index 3617921..55e0f78 100644 --- a/src/cantools/database/can/formats/dbc_specifics.py +++ b/src/cantools/database/can/formats/dbc_specifics.py @@ -46,10 +46,6 @@ class DbcSpecifics: return se...
["tests/test_command_line.py::CanToolsCommandLineTest::test_convert", "tests/test_convert.py::CanToolsConvertFullTest::test_dbc_dump_default_sort_signals", "tests/test_convert.py::CanToolsConvertFullTest::test_dbc_dump_default_sort_signals2", "tests/test_convert.py::CanToolsConvertFullTest::test_dbc_dump_sort_signals_b...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
15
39
978
0
0.6
1
0.75
1
0.213
80.914
7,823
swe_smith::train::3255
swe_smith
train
3,255
Suor__funcy.207a7810.lm_rewrite__k68y697t
swesmith/Suor__funcy.207a7810
suor/funcy
python
null
# zip_dicts() doesn't raise TypeError when called with no arguments ## Description The `zip_dicts()` function is supposed to raise a TypeError when called with no arguments, but it silently returns an empty generator instead. ## Steps to reproduce ```python from funcy import zip_dicts # This should raise TypeError...
diff --git a/funcy/colls.py b/funcy/colls.py index 6acfd53..b07cb25 100644 --- a/funcy/colls.py +++ b/funcy/colls.py @@ -251,11 +251,14 @@ def zip_dicts(*dicts): """Yields tuples like (key, (val1, val2, ...)) for each common key in all given dicts.""" if len(dicts) < 1: - raise TypeError('zip_d...
["tests/test_colls.py::test_zip_dicts"]
["tests/test_calc.py::test_memoize", "tests/test_calc.py::test_memoize_args_kwargs", "tests/test_calc.py::test_memoize_skip", "tests/test_calc.py::test_memoize_memory", "tests/test_calc.py::test_memoize_key_func", "tests/test_calc.py::test_make_lookuper", "tests/test_calc.py::test_make_lookuper_nested", "tests/test_cal...
jyangballin/swesmith.x86_64.suor_1776_funcy.207a7810
true
null
1
9
1
1,098
0
0.6
1
0.75
1
0.213
80.914
7,824
swe_smith::train::8057
swe_smith
train
8,057
cantools__cantools.0c6a7871.func_pm_remove_assign__f7ih6lah
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
ARXML loader fails with "local variable 'pdu_groups_spec' referenced before assignment" for AUTOSAR 4+ files #### Description When loading AUTOSAR 4.x ARXML files, the system loader crashes with an UnboundLocalError for the variable `pdu_groups_spec`. This affects all AUTOSAR 4+ files and prevents proper loading of C...
diff --git a/src/cantools/database/can/formats/arxml/system_loader.py b/src/cantools/database/can/formats/arxml/system_loader.py index f7aa786..d9ebac3 100644 --- a/src/cantools/database/can/formats/arxml/system_loader.py +++ b/src/cantools/database/can/formats/arxml/system_loader.py @@ -347,10 +347,7 @@ class SystemLo...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_database.py::CanToolsDataba...
["tests/test_command_line.py::CanToolsCommandLineTest::test_convert", "tests/test_command_line.py::CanToolsCommandLineTest::test_convert_bad_outfile", "tests/test_command_line.py::CanToolsCommandLineTest::test_decode", "tests/test_command_line.py::CanToolsCommandLineTest::test_decode_can_fd", "tests/test_command_line.p...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
12
11
1,038
0
0.6
1
0.75
1
0.213
80.914
7,825
swe_smith::train::49086
swe_smith
train
49,086
mozilla__bleach.73871d76.combine_file__1i64kagr
swesmith/mozilla__bleach.73871d76
mozilla/bleach
python
null
HTMLSerializer constructor fails when no keyword arguments provided #### Description The HTMLSerializer class now requires at least one keyword argument to be passed during initialization, which breaks existing code that creates instances without any arguments. #### Steps/Code to Reproduce ```python from bleach._ve...
diff --git a/bleach/_vendor/html5lib/serializer.py b/bleach/_vendor/html5lib/serializer.py index 5666f49..53acc09 100644 --- a/bleach/_vendor/html5lib/serializer.py +++ b/bleach/_vendor/html5lib/serializer.py @@ -212,21 +212,21 @@ class HTMLSerializer(object): """ unexpected_args = frozenset(kwargs)...
["tests/test_clean.py::test_clean_idempotent[text<em>]", "tests/test_clean.py::test_clean_idempotent_img", "tests/test_clean.py::test_only_text_is_cleaned", "tests/test_clean.py::test_empty", "tests/test_clean.py::test_content_has_no_html", "tests/test_clean.py::test_html_is_lowercased", "tests/test_clean.py::test_comm...
["tests/test_callbacks.py::TestNofollowCallback::test_blank", "tests/test_callbacks.py::TestNofollowCallback::test_no_href", "tests/test_callbacks.py::TestNofollowCallback::test_basic", "tests/test_callbacks.py::TestNofollowCallback::test_mailto", "tests/test_callbacks.py::TestNofollowCallback::test_has_nofollow_alread...
jyangballin/swesmith.x86_64.mozilla_1776_bleach.73871d76
true
null
1
12
185
1,037
0
0.6
1
0.75
1
0.212833
80.9135
7,826
swe_smith::train::5127
swe_smith
train
5,127
agronholm__exceptiongroup.0b4f4937.func_basic__anibr8sf
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
Exception formatting broken with generator objects #### Description When formatting exceptions, the code tries to reverse a generator object which causes a `TypeError: 'generator' object is not reversible`. This breaks exception display and makes debugging difficult. #### Steps/Code to Reproduce ```python import ex...
diff --git a/src/exceptiongroup/_formatting.py b/src/exceptiongroup/_formatting.py index 4c52d77..8f13de8 100644 --- a/src/exceptiongroup/_formatting.py +++ b/src/exceptiongroup/_formatting.py @@ -53,16 +53,16 @@ class _ExceptionPrintContext: def emit(self, text_gen, margin_char=None): if margin_char is...
["tests/test_formatting.py::test_exceptionhook", "tests/test_formatting.py::test_exceptiongroup_as_cause", "tests/test_formatting.py::test_exceptiongroup_loop", "tests/test_formatting.py::test_exceptionhook_format_exception_only", "tests/test_formatting.py::test_formatting_syntax_error", "tests/test_formatting.py::test...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
1
12
28
1,037
0
0.6
1
0.75
1
0.212833
80.9135
7,827
swe_smith::train::14192
swe_smith
train
14,192
python-openxml__python-docx.0cf6d71f.func_pm_ctrl_shuffle__321zvtt9
swesmith/python-openxml__python-docx.0cf6d71f
python-openxml/python-docx
python
null
Setting datetime properties on CoreProperties fails with UnboundLocalError #### Description When trying to set datetime properties like `created`, `modified`, or `last_printed` on a CoreProperties object, the operation fails with an `UnboundLocalError` because the `element` variable is referenced before assignment. ...
diff --git a/src/docx/oxml/coreprops.py b/src/docx/oxml/coreprops.py index 8ba9ff4..764af68 100644 --- a/src/docx/oxml/coreprops.py +++ b/src/docx/oxml/coreprops.py @@ -258,12 +258,6 @@ class CT_CoreProperties(BaseOxmlElement): return dt_.replace(tzinfo=dt.timezone.utc) def _set_element_datetime(self, p...
["tests/opc/parts/test_coreprops.py::DescribeCorePropertiesPart::it_can_create_a_default_core_properties_part", "tests/opc/test_coreprops.py::DescribeCoreProperties::it_can_change_the_date_property_values[last_printed-cp:lastPrinted-value1-2014-06-04T04:00:00Z-]"]
["tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture0]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture1]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture2]", "tests/dml/test_color.py::DescribeColorFormat::it_knows...
jyangballin/swesmith.x86_64.python-openxml_1776_python-docx.0cf6d71f
true
null
1
13
2
1,017
0
0.6
1
0.75
1
0.212833
80.9135
7,828
swe_smith::train::25885
swe_smith
train
25,885
pylint-dev__astroid.b114f6b5.func_basic__p06cqj1i
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Builtin container inference broken after recent changes #### Description Something seems to have broken with builtin container inference. When trying to infer types for basic Python containers like `list()`, `tuple()`, `frozenset()`, etc., I'm getting unexpected errors. #### Steps/Code to Reproduce ```python import...
diff --git a/astroid/brain/brain_builtin_inference.py b/astroid/brain/brain_builtin_inference.py index a56b152..e72e4bd 100644 --- a/astroid/brain/brain_builtin_inference.py +++ b/astroid/brain/brain_builtin_inference.py @@ -321,11 +321,11 @@ def _infer_builtin_container( _container_generic_transform, ...
["tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_invalid-True]", "tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_invalid-False]", "tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_where-True]", "t...
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
6
29
1,156
0
0.6
1
0.75
1
0.212667
80.913
7,829
swe_smith::train::17713
swe_smith
train
17,713
pyasn1__pyasn1.0f07d724.func_basic__oi4nh6ve
swesmith/pyasn1__pyasn1.0f07d724
pyasn1/pyasn1
python
null
RelativeOID decoder fails with simple tag format error #### Description The RelativeOID decoder is throwing an unexpected error when trying to decode valid RelativeOID data. Instead of properly decoding the relative object identifier, it raises a "Complex tag format expected" error. #### Steps/Code to Reproduce ```...
diff --git a/pyasn1/codec/ber/decoder.py b/pyasn1/codec/ber/decoder.py index 7e69ca1..777bc2b 100644 --- a/pyasn1/codec/ber/decoder.py +++ b/pyasn1/codec/ber/decoder.py @@ -463,30 +463,30 @@ class RelativeOIDPayloadDecoder(AbstractSimplePayloadDecoder): tagSet=None, length=None, state=None, ...
["tests/codec/ber/test_decoder.py::RelativeOIDDecoderTestCase::testLarge", "tests/codec/ber/test_decoder.py::RelativeOIDDecoderTestCase::testNonLeading0x80", "tests/codec/ber/test_decoder.py::RelativeOIDDecoderTestCase::testOne", "tests/codec/ber/test_decoder.py::RelativeOIDDecoderTestCase::testThree", "tests/codec/ber...
["tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLargeTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLongTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testTagsEquivalence", "tests/codec/ber/test_decoder.py::DecoderCacheTestCase::testCache", "tests/codec/ber/test_d...
jyangballin/swesmith.x86_64.pyasn1_1776_pyasn1.0f07d724
true
null
1
22
5
836
0
0.6
1
0.75
1
0.212667
80.913
7,830
swe_smith::train::4980
swe_smith
train
4,980
bottlepy__bottle.a8dfef30.func_pm_op_swap__2m5bvubv
swesmith/bottlepy__bottle.a8dfef30
bottlepy/bottle
python
null
static_file function breaks with string formatting errors #### Description The `static_file` function is throwing `TypeError` exceptions when handling downloads and range requests due to incorrect string formatting operations. #### Steps/Code to Reproduce ```python import bottle from bottle import static_file # Th...
diff --git a/bottle.py b/bottle.py index 286b5bc..cb90ba0 100755 --- a/bottle.py +++ b/bottle.py @@ -2887,7 +2887,7 @@ def static_file(filename, root, if download: download = download.replace('"','') - headers['Content-Disposition'] = 'attachment; filename="%s"' % download + headers['Conte...
["test/test_sendfile.py::TestSendFile::test_download", "test/test_sendfile.py::TestSendFile::test_range"]
["test/test_app.py::TestApplicationObject::test_setattr", "test/test_auth.py::TestBasicAuth::test__header", "test/test_config.py::TestConfDict::test_gc_overlays", "test/test_config.py::TestConfDict::test_isadict", "test/test_config.py::TestConfDict::test_load_dict", "test/test_config.py::TestConfDict::test_load_module"...
jyangballin/swesmith.x86_64.bottlepy_1776_bottle.a8dfef30
true
null
1
7
2
1,136
0
0.6
1
0.75
1
0.212667
80.913
7,831
swe_smith::train::31381
swe_smith
train
31,381
benoitc__gunicorn.bacbf8aa.combine_file__hpf0y6v0
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
Unreader class breaks with string/bytes type mismatch #### Description The Unreader class in gunicorn/http/unreader.py has issues with string and bytes handling that causes HTTP request parsing to fail. #### Steps/Code to Reproduce ```python from gunicorn.http.unreader import Unreader # Create an unreader instance...
diff --git a/gunicorn/http/unreader.py b/gunicorn/http/unreader.py index 9aadfbc..7d16904 100644 --- a/gunicorn/http/unreader.py +++ b/gunicorn/http/unreader.py @@ -11,7 +11,7 @@ import os class Unreader: def __init__(self): - self.buf = io.BytesIO() + self.buf = io.StringIO() def chunk(sel...
["tests/test_http.py::test_unreader_unread", "tests/test_http.py::test_unreader_read_with_nonzero_size", "tests/test_http.py::test_socket_unreader_chunk", "tests/test_http.py::test_length_reader_read", "tests/test_invalid_requests.py::test_http_parser[/testbed/tests/requests/invalid/chunked_10.http]", "tests/test_inval...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
1
10
66
1,076
0
0.6
1
0.75
1
0.212667
80.913
7,832
swe_smith::train::2946
swe_smith
train
2,946
madzak__python-json-logger.5f85723f.func_pm_ctrl_invert_if__ummk04wn
swesmith/madzak__python-json-logger.5f85723f
madzak/python-json-logger
python
null
JsonFormatter produces invalid JSON when logging dict messages #### Description When logging a dictionary as the message, the JsonFormatter produces invalid JSON output that cannot be parsed. #### Steps/Code to Reproduce ```python import logging import json from pythonjsonlogger import jsonlogger # Set up logger w...
diff --git a/src/pythonjsonlogger/jsonlogger.py b/src/pythonjsonlogger/jsonlogger.py index 519a64d..a80e2c8 100644 --- a/src/pythonjsonlogger/jsonlogger.py +++ b/src/pythonjsonlogger/jsonlogger.py @@ -259,10 +259,10 @@ class JsonFormatter(logging.Formatter): # FIXME: logging.LogRecord.msg and logging.LogRecord...
["tests/test_jsonlogger.py::TestJsonLogger::test_add_static_fields", "tests/test_jsonlogger.py::TestJsonLogger::test_custom_object_serialization", "tests/test_jsonlogger.py::TestJsonLogger::test_default_format", "tests/test_jsonlogger.py::TestJsonLogger::test_ensure_ascii_false", "tests/test_jsonlogger.py::TestJsonLogg...
["tests/test_jsonlogger.py::TestJsonLogger::test_merge_record_extra", "tests/test_jsonlogger.py::TestJsonLogger::test_unknown_format_key"]
jyangballin/swesmith.x86_64.madzak_1776_python-json-logger.5f85723f
true
null
1
6
18
1,156
0
0.6
1
0.75
1
0.212667
80.913
7,833
swe_smith::train::31938
swe_smith
train
31,938
davidhalter__parso.338a5760.func_basic__e1a6a2ip
swesmith/davidhalter__parso.338a5760
davidhalter/parso
python
null
Param.star_count returns incorrect values for function parameters #### Description The `star_count` property of function parameters is returning incorrect values. For regular parameters without stars, it returns `1` instead of `0`, and for starred parameters it's accessing the wrong child index causing errors. #### ...
diff --git a/parso/python/tree.py b/parso/python/tree.py index 0624e67..36ab3d3 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -1100,10 +1100,10 @@ class Param(PythonBaseNode): Is `0` in case of `foo`, `1` in case of `*foo` or `2` in case of `**foo`. """ - first = self...
["test/test_file_python_errors.py::test_on_itself[3.6]", "test/test_file_python_errors.py::test_on_itself[3.7]", "test/test_file_python_errors.py::test_on_itself[3.8]", "test/test_file_python_errors.py::test_on_itself[3.9]", "test/test_file_python_errors.py::test_on_itself[3.10]", "test/test_normalizer_issues_files.py:...
["parso/__init__.py::parso", "parso/python/tree.py::parso.python.tree", "parso/tree.py::parso.tree.NodeOrLeaf.dump", "test/test_cache.py::test_modulepickling_change_cache_dir", "test/test_cache.py::test_modulepickling_simulate_deleted_cache", "test/test_cache.py::test_cache_limit", "test/test_cache.py::test_cache_last_...
jyangballin/swesmith.x86_64.davidhalter_1776_parso.338a5760
true
null
1
6
36
1,156
0
0.6
1
0.75
1
0.212667
80.913
7,834
swe_smith::train::43580
swe_smith
train
43,580
cloudpipe__cloudpickle.6220b0ce.func_basic__bi3204b9
swesmith/cloudpipe__cloudpickle.6220b0ce
cloudpipe/cloudpickle
python
null
Class pickling fails with KeyError when using cloudpickle #### Description When trying to pickle and unpickle dynamically created classes, cloudpickle raises a KeyError during the unpickling process. This affects various class-related operations including basic class definitions, dataclasses, and other dynamic class ...
diff --git a/cloudpickle/cloudpickle.py b/cloudpickle/cloudpickle.py index 8c50ba1..50e7fe2 100644 --- a/cloudpickle/cloudpickle.py +++ b/cloudpickle/cloudpickle.py @@ -656,16 +656,16 @@ def _make_dict_items(obj, is_ordered=False): def _class_getnewargs(obj): type_kwargs = {} - if "__module__" in obj.__dict_...
["tests/cloudpickle_test.py::CloudPickleTest::test_NamedTuple", "tests/cloudpickle_test.py::CloudPickleTest::test_abc", "tests/cloudpickle_test.py::CloudPickleTest::test_abc_cache_not_pickled", "tests/cloudpickle_test.py::CloudPickleTest::test_abstracts", "tests/cloudpickle_test.py::CloudPickleTest::test_always_use_up_...
["tests/cloudpickle_file_test.py::CloudPickleFileTests::test_closed_file", "tests/cloudpickle_file_test.py::CloudPickleFileTests::test_empty_file", "tests/cloudpickle_file_test.py::CloudPickleFileTests::test_pickling_special_file_handles", "tests/cloudpickle_file_test.py::CloudPickleFileTests::test_plus_mode", "tests/c...
jyangballin/swesmith.x86_64.cloudpipe_1776_cloudpickle.6220b0ce
true
null
1
6
67
1,156
0
0.6
1
0.75
1
0.212667
80.913
7,835
swe_smith::train::2806
swe_smith
train
2,806
pudo__dataset.5c2dc8d3.combine_file__wxwkl5tn
swesmith/pudo__dataset.5c2dc8d3
pudo/dataset
python
null
# ChunkedInsert not working correctly I found a bug in the `ChunkedInsert` class that prevents it from working properly. ## To reproduce: ```python from dataset import chunked # Create a table # (assuming you have a database connection and table already set up) table = db['my_table'] # Try to use ChunkedInsert wit...
diff --git a/dataset/chunked.py b/dataset/chunked.py index a5ca158..bf6efce 100644 --- a/dataset/chunked.py +++ b/dataset/chunked.py @@ -23,7 +23,7 @@ class _Chunker(object): self.flush() def __enter__(self): - return self + return None def __exit__(self, exc_type, exc_val, exc_...
["test/test_dataset.py::TableTestCase::test_chunked_insert", "test/test_dataset.py::TableTestCase::test_chunked_insert_callback"]
["test/test_dataset.py::DatabaseTestCase::test_contains", "test/test_dataset.py::DatabaseTestCase::test_create_table", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id1", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id2", "test/test_dataset.py::DatabaseTestCase::test_create_tabl...
jyangballin/swesmith.x86_64.pudo_1776_dataset.5c2dc8d3
true
null
1
6
2
1,155
0
0.6
1
0.75
1
0.2125
80.9125
7,836
swe_smith::train::18512
swe_smith
train
18,512
HIPS__autograd.ac044f0d.lm_rewrite__3lvf5hot
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
I encountered an issue with the `flatten` function in the `autograd.misc.flatten` module. It seems that the function is now raising a `TypeError` for certain input types that were previously handled without error. Specifically, when attempting to flatten a dictionary or other non-array-like structures, the function thr...
diff --git a/autograd/misc/flatten.py b/autograd/misc/flatten.py index 7a600d7..bd5b406 100644 --- a/autograd/misc/flatten.py +++ b/autograd/misc/flatten.py @@ -18,14 +18,17 @@ def flatten(value): def _flatten(value): - t = type(value) - if t in (list, tuple): - return _concatenate(map(_flatten, value...
["tests/test_misc.py::test_flatten_dict", "tests/test_misc.py::test_flatten_nodes_in_containers", "tests/test_misc.py::test_flatten", "tests/test_misc.py::test_flatten_empty", "tests/test_scipy.py::test_odeint"]
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
17
5
935
0
0.6
1
0.75
1
0.2125
80.9125
7,837
swe_smith::train::4305
swe_smith
train
4,305
pygments__pygments.27649ebb.func_pm_ctrl_invert_if__c2xmtwpd
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
Julia console lexer incorrectly highlights error messages #### Description The Julia console lexer is not properly highlighting error messages in Julia REPL output. Error lines that start with "ERROR: " are being highlighted as regular output instead of being marked as errors. #### Steps/Code to Reproduce ```python...
diff --git a/pygments/lexers/julia.py b/pygments/lexers/julia.py index ce717a1..831df0d 100644 --- a/pygments/lexers/julia.py +++ b/pygments/lexers/julia.py @@ -282,13 +282,13 @@ class JuliaConsoleLexer(Lexer): curcode = '' insertions = [] if line.startswith('E...
["tests/examplefiles/jlcon/console::", "tests/snippets/julia-repl/test_repl.txt::"]
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
6
2
1,155
0
0.6
1
0.75
1
0.2125
80.9125
7,838
swe_smith::train::3444
swe_smith
train
3,444
pygments__pygments.27649ebb.combine_file__nw28scag
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
TNT lexer crashes with AttributeError when tokenizing variables #### Description The TNT lexer is throwing `AttributeError: 'NoneType' object has no attribute 'append'` when trying to tokenize variables and other TNT syntax elements. #### Steps/Code to Reproduce ```python from pygments.lexers.tnt import TNTLexer l...
diff --git a/pygments/lexers/tnt.py b/pygments/lexers/tnt.py index bb444fd..1da6474 100644 --- a/pygments/lexers/tnt.py +++ b/pygments/lexers/tnt.py @@ -53,8 +53,8 @@ class TNTLexer(Lexer): COMMENT = re.compile(r'\[[^\n\]]+\]') def __init__(self, *args, **kwargs): - Lexer.__init__(self, *args, **kwar...
["tests/test_tnt.py::test_multiterm_positive_matches[(c+d)]", "tests/test_tnt.py::test_quantifier_negative_matches[Eba=b]", "tests/test_tnt.py::test_multiterm_positive_matches[(b.a)]", "tests/test_tnt.py::test_compound_negative_matches[<a=b/b=a>]", "tests/test_tnt.py::test_error_till_line_end[asdf]", "tests/test_tnt.py...
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
14
20
995
0
0.6
1
0.75
1
0.2125
80.9125
7,839
swe_smith::train::24676
swe_smith
train
24,676
marshmallow-code__marshmallow.9716fc62.func_basic__bk8nhdcf
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
Schema.load() silently returns None instead of processing data #### Description When calling `Schema.load()` on any schema, the method returns `None` instead of processing and returning the loaded data. This affects all schema loading operations and breaks basic functionality. #### Steps/Code to Reproduce ```python...
diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py index e21768e..6197996 100644 --- a/src/marshmallow/schema.py +++ b/src/marshmallow/schema.py @@ -468,7 +468,16 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta): .. versionchanged:: 3.0.0rc9 Receives `many` and `partial` (on d...
["tests/test_fields.py::TestListNested::test_list_nested_partial_propagated_to_nested", "tests/test_fields.py::TestTupleNested::test_tuple_nested_partial_propagated_to_nested", "tests/test_fields.py::TestDictNested::test_dict_nested_partial_propagated_to_nested", "tests/test_schema.py::test_custom_error_messages_with_i...
["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::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
11
4
1,055
0
0.6
1
0.75
1
0.2125
80.9125
7,840
swe_smith::train::2749
swe_smith
train
2,749
cknd__stackprinter.219fcc52.func_pm_op_swap__knb6qp06
swesmith/cknd__stackprinter.219fcc52
cknd/stackprinter
python
null
String formatting broken for function and method representations #### Description When formatting function and method objects, the string formatting operation fails with a TypeError. The format string and arguments are in the wrong order, causing the % operator to fail. #### Steps/Code to Reproduce ```python import...
diff --git a/stackprinter/prettyprinting.py b/stackprinter/prettyprinting.py index 6e17f97..ac05032 100644 --- a/stackprinter/prettyprinting.py +++ b/stackprinter/prettyprinting.py @@ -49,7 +49,7 @@ def format_value(value, indent=0, truncation=None, wrap=60, reason = "# %s" % (value.exc_type) val_tpl ...
["tests/test_formatting.py::test_frame_formatting", "tests/test_formatting.py::test_exception_formatting"]
["tests/test_formatting.py::test_none_tuple_formatting", "tests/test_formatting.py::test_none_value_formatting", "tests/test_frame_inspection.py::test_frameinfo", "tests/test_source_inspection.py::test_source_annotation", "tests/test_utils.py::test_match"]
jyangballin/swesmith.x86_64.cknd_1776_stackprinter.219fcc52
true
null
1
9
2
1,095
0
0.6
1
0.75
1
0.2125
80.9125
7,841
swe_smith::train::2090
swe_smith
train
2,090
pdfminer__pdfminer.six.1a8bd2f7.func_basic__8d261k1a
swesmith/pdfminer__pdfminer.six.1a8bd2f7
pdfminer/pdfminer.six
python
null
PDFPageInterpreter curpath attribute causes AttributeError when used as tuple #### Description After recent changes to PDFPageInterpreter initialization, the `curpath` attribute is now a tuple instead of a list, which breaks code that expects list methods like `append()`. #### Steps/Code to Reproduce ```python from...
diff --git a/pdfminer/pdfinterp.py b/pdfminer/pdfinterp.py index ae1c46a..3e86994 100644 --- a/pdfminer/pdfinterp.py +++ b/pdfminer/pdfinterp.py @@ -417,17 +417,20 @@ class PDFPageInterpreter: # gstack: stack for graphical states. self.gstack: List[Tuple[Matrix, PDFTextState, PDFGraphicState]] = [] ...
["tests/test_converter.py::TestPaintPath::test_paint_path_quadrilaterals", "tests/test_converter.py::TestColorSpace::test_do_rg", "tests/test_font_size.py::test_font_size", "tests/test_highlevel_extracttext.py::TestExtractText::test_issue_495_pdfobjref_iterable", "tests/test_highlevel_extracttext.py::TestExtractText::t...
["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_beziers", "tests/test_converter.py::TestPaintPath::test_paint_pa...
jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7
true
null
1
9
39
1,095
0
0.6
1
0.75
1
0.2125
80.9125
7,842
swe_smith::train::18151
swe_smith
train
18,151
pndurette__gTTS.dbcda4f3.func_pm_class_rm_funcs__zk5idgc8
swesmith/pndurette__gTTS.dbcda4f3
pndurette/gtts
python
null
`write_to_fp` method missing from gTTS class #### Description The `write_to_fp` method has been removed from the gTTS class, breaking existing code that relies on this functionality to write TTS audio data directly to file-like objects. #### Steps/Code to Reproduce ```python from gtts import gTTS import io # Creat...
diff --git a/gtts/tts.py b/gtts/tts.py index eae351f..6c16049 100644 --- a/gtts/tts.py +++ b/gtts/tts.py @@ -300,27 +300,6 @@ class gTTS: raise gTTSError(tts=self, response=r) log.debug("part-%i created", idx) - def write_to_fp(self, fp): - """Do the TTS API request(s) ...
["gtts/tests/test_cli.py::test_lang_nocheck", "gtts/tests/test_cli.py::test_params_set", "gtts/tests/test_cli.py::test_stdin_text", "gtts/tests/test_cli.py::test_stdin_text_unicode", "gtts/tests/test_cli.py::test_stdin_file", "gtts/tests/test_cli.py::test_stdin_file_unicode", "gtts/tests/test_cli.py::test_text", "gtts/...
["gtts/tests/test_cli.py::test_text_no_text_or_file", "gtts/tests/test_cli.py::test_text_text_and_file", "gtts/tests/test_cli.py::test_text_empty", "gtts/tests/test_cli.py::test_file_not_exists", "gtts/tests/test_cli.py::test_all", "gtts/tests/test_cli.py::test_lang_not_valid", "gtts/tests/test_lang.py::test_main_langs...
jyangballin/swesmith.x86_64.pndurette_1776_gtts.dbcda4f3
true
null
1
22
78
835
0
0.6
1
0.75
1
0.2125
80.9125
7,843
r2e_gym::train::5401
r2e_gym
train
5,401
aiohttp__7e16dd198ea5042bd127a0d0417c40348ac1d158
aiohttp
aio-libs/aiohttp
python
7e16dd198ea5042bd127a0d0417c40348ac1d158
**Title:** Creating ClientSession with invalid timeout triggers "Unclosed client session" warning **Description:** When initializing a `ClientSession` with an invalid timeout value, a `ValueError` is correctly raised. However, an additional warning about an unclosed client session is also logged, which should not occu...
diff --git a/CHANGES/8253.bugfix b/CHANGES/8253.bugfix --- a/CHANGES/8253.bugfix +++ b/CHANGES/8253.bugfix @@ -0,0 +1 @@ +Fixed "Unclosed client session" when initialization of ClientSession fails -- by :user:`NewGlad`. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -2...
diff --git a/tests/test_client_session.py b/tests/test_client_session.py --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -885,3 +885,13 @@ ) -> None: session = await create_session(base_url) assert session._build_url(url) == expected_url + + +async def test_instantiation_with_invalid...
null
null
namanjain12/aiohttp_final:7e16dd198ea5042bd127a0d0417c40348ac1d158
true
null
3
53
null
927
0
0.75
1
0.6375
1
0.331167
80.91225
7,844
r2e_gym::train::6056
r2e_gym
train
6,056
pillow__fa9e85cd1f0fcd0dedc235929ba89acaeb9d6839
pillow
python-pillow/pillow
python
fa9e85cd1f0fcd0dedc235929ba89acaeb9d6839
**Title:** `thumbnail()` method raises TypeError when using `max_reduce` parameter **Description:** When attempting to resize an image using the `thumbnail()` method with the `max_reduce` argument, a `TypeError` is raised because the method does not recognize the `max_reduce` keyword. This prevents users from optimizi...
diff --git a/src/PIL/IcoImagePlugin.py b/src/PIL/IcoImagePlugin.py --- a/src/PIL/IcoImagePlugin.py +++ b/src/PIL/IcoImagePlugin.py @@ -63,8 +63,9 @@ fp.write(struct.pack("<H", 32)) # wBitCount(2) image_io = BytesIO() + # TODO: invent a more convenient method for proportional scalings than th...
diff --git a/Tests/test_image_thumbnail.py b/Tests/test_image_thumbnail.py --- a/Tests/test_image_thumbnail.py +++ b/Tests/test_image_thumbnail.py @@ -60,7 +60,8 @@ im.paste(Image.new("RGB", (235, 235)), (11, 11)) thumb = fromstring(tostring(im, "JPEG", quality=99, subsampling=0)) - thumb.thu...
null
null
namanjain12/pillow_final:fa9e85cd1f0fcd0dedc235929ba89acaeb9d6839
true
null
2
59
null
807
0
0.75
1
0.6375
1
0.331167
80.91225
7,845
swe_smith::train::10197
swe_smith
train
10,197
paramiko__paramiko.23f92003.combine_file__ufj1kcj3
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSHConfig.from_file returns None instead of SSHConfig object #### Description When using `SSHConfig.from_file()` to load SSH configuration from a file, the method returns `None` instead of the expected `SSHConfig` object. This breaks existing code that expects to receive a valid configuration object. #### Steps/Code...
diff --git a/paramiko/config.py b/paramiko/config.py index 8ab55c6..393b6dd 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -117,8 +117,9 @@ class SSHConfig: .. versionadded:: 2.7 """ obj = cls() - obj.parse(flo) - return obj + if flo.readable(): + ...
["tests/test_config.py::TestSSHConfig::test_from_text", "tests/test_config.py::TestSSHConfig::test_from_file", "tests/test_config.py::TestSSHConfig::test_from_path", "tests/test_config.py::TestSSHConfig::test_parse_config", "tests/test_config.py::TestSSHConfig::test_host_config[irc.danger.com-values0]", "tests/test_con...
["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/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
9
89
1,094
0
0.6
1
0.75
1
0.212333
80.912
7,846
swe_smith::train::46573
swe_smith
train
46,573
python-trio__trio.cfbbe2c1.combine_file__5inz9j8m
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
MockClock initialization broken with rate parameter #### Description When creating a MockClock with a rate parameter, the clock fails to initialize properly and raises a ValueError. #### Steps/Code to Reproduce ```python import trio # This should work but raises an error clock = trio.testing.MockClock(rate=2.0) ``...
diff --git a/src/trio/_core/_mock_clock.py b/src/trio/_core/_mock_clock.py index 7e85df2..2a3ace1 100644 --- a/src/trio/_core/_mock_clock.py +++ b/src/trio/_core/_mock_clock.py @@ -69,13 +69,13 @@ class MockClock(Clock): # seconds per real second. self._real_base = 0.0 self._virtual_base = 0....
["src/trio/_core/_tests/test_guest_mode.py::test_guest_mode_autojump_clock_threshold_changing", "src/trio/_core/_tests/test_mock_clock.py::test_mock_clock", "src/trio/_core/_tests/test_mock_clock.py::test_mock_clock_autojump_preset", "src/trio/_tests/test_testing.py::test_trio_test"]
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
22
4
834
0
0.6
1
0.75
1
0.212333
80.912
7,847
swe_smith::train::20299
swe_smith
train
20,299
gruns__furl.da386f68.func_basic__uc7j5ayh
swesmith/gruns__furl.da386f68
gruns/furl
python
null
Port validation logic inverted - valid ports rejected, invalid ports accepted #### Description The `is_valid_port()` function is incorrectly rejecting valid port numbers and accepting invalid ones. When trying to create URLs with standard ports like 80, 443, or 999, they are being treated as invalid. #### Steps/Code...
diff --git a/furl/furl.py b/furl/furl.py index cd6d710..032f8ff 100644 --- a/furl/furl.py +++ b/furl/furl.py @@ -130,9 +130,9 @@ def idna_decode(o): def is_valid_port(port): port = str(port) - if not port.isdigit() or not 0 < int(port) <= 65535: - return False - return True + if not port.isdigit...
["tests/test_furl.py::TestFurl::test_basic_manipulation", "tests/test_furl.py::TestFurl::test_basics", "tests/test_furl.py::TestFurl::test_is_valid_port", "tests/test_furl.py::TestFurl::test_netloc", "tests/test_furl.py::TestFurl::test_odd_urls", "tests/test_furl.py::TestFurl::test_origin", "tests/test_furl.py::TestFur...
["tests/test_furl.py::TestPath::test_add", "tests/test_furl.py::TestPath::test_asdict", "tests/test_furl.py::TestPath::test_encoding", "tests/test_furl.py::TestPath::test_equality", "tests/test_furl.py::TestPath::test_isabsolute", "tests/test_furl.py::TestPath::test_isdir_isfile", "tests/test_furl.py::TestPath::test_it...
jyangballin/swesmith.x86_64.gruns_1776_furl.da386f68
true
null
1
6
9
1,154
0
0.6
1
0.75
1
0.212333
80.912
7,848
swe_smith::train::10317
swe_smith
train
10,317
paramiko__paramiko.23f92003.func_basic__5j7v317m
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH connection fails with TypeError after key exchange #### Description After establishing an SSH connection, operations that should work normally are failing with `TypeError: argument of type 'NoneType' is not iterable` or similar type errors. This appears to be happening during or after the key exchange process. #...
diff --git a/paramiko/transport.py b/paramiko/transport.py index f0fcb97..6c4c126 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1993,10 +1993,10 @@ class Transport(threading.Thread, ClosingContextManager): """ Used by a kex obj to set the K (root key) and H (exchange hash). ...
["tests/auth.py::AuthHandler_::bad_auth_type", "tests/auth.py::AuthHandler_::bad_password", "tests/auth.py::AuthHandler_::multipart_auth", "tests/auth.py::AuthHandler_::interactive_auth", "tests/auth.py::AuthHandler_::interactive_fallback", "tests/auth.py::AuthHandler_::utf8", "tests/auth.py::AuthHandler_::non_utf8", "...
["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/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
8
120
1,114
0
0.6
1
0.75
1
0.212333
80.912
7,849
swe_smith::train::24258
swe_smith
train
24,258
sunpy__sunpy.f8edfd5c.func_pm_remove_assign__pzg90l59
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
HECClient search method fails with UnboundLocalError when hec_client is None #### Description When the HECClient's `hec_client` attribute is None (which can happen during SSL errors or other initialization failures), the search method raises an `UnboundLocalError` because it tries to return a variable `table` that wa...
diff --git a/sunpy/net/helio/hec.py b/sunpy/net/helio/hec.py index 8b84536..b007c55 100644 --- a/sunpy/net/helio/hec.py +++ b/sunpy/net/helio/hec.py @@ -145,7 +145,6 @@ class HECClient(BaseClient): <BLANKLINE> """ if self.hec_client is None: - table = HECResponse([], client=self) ...
["sunpy/net/helio/tests/test_helio.py::test_ssl_verify_error"]
["sunpy/net/helio/tests/test_helio.py::test_webservice_parser_no_content", "sunpy/net/helio/tests/test_helio.py::test_webservice_parser_get_links", "sunpy/net/helio/tests/test_helio.py::test_endpoint_parser_no_content", "sunpy/net/helio/tests/test_helio.py::test_endpoint_parser_get_links", "sunpy/net/helio/tests/test_h...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
6
1
1,154
0
0.6
1
0.75
1
0.212333
80.912
7,850
swe_smith::train::27323
swe_smith
train
27,323
tkrajina__gpxpy.09fc46b3.func_pm_remove_assign__71fsuxqi
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
NameError when using gpx variable after file parsing #### Description When parsing a GPX file and then trying to use the parsed gpx object, a NameError occurs because the variable is not defined in the current scope. #### Steps/Code to Reproduce ```python import gpxpy as mod_gpxpy with open('test_files/cerknicko-j...
diff --git a/test.py b/test.py index 7dd6f44..adb9cc6 100644 --- a/test.py +++ b/test.py @@ -529,18 +529,15 @@ class GPXTests(mod_unittest.TestCase): def test_reduce_by_min_distance(self) -> None: with open('test_files/cerknicko-jezero.gpx') as f: - gpx = mod_gpxpy.parse(f) + pass ...
["test.py::GPXTests::test_reduce_by_min_distance"]
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
6
1
1,154
0
0.6
1
0.75
1
0.212333
80.912
7,851
swe_smith::train::32361
swe_smith
train
32,361
davidhalter__parso.338a5760.lm_rewrite__up0grf3h
swesmith/davidhalter__parso.338a5760
davidhalter/parso
python
null
Unexpected behavior with yield expressions After the recent changes, there seems to be an issue with how yield expressions are being processed. The function `get_yield_exprs` is not returning the expected results, leading to a `ValueError` due to insufficient values being unpacked. Here's a simple reproduction of the...
diff --git a/parso/python/tree.py b/parso/python/tree.py index 0624e67..0520739 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -576,22 +576,12 @@ class Function(ClassOrFunc): """ def scan(children): for element in children: - if element.type in ('classdef',...
["test/test_parser_tree.py::test_yields[3.6]", "test/test_parser_tree.py::test_yields[3.7]", "test/test_parser_tree.py::test_yields[3.8]", "test/test_parser_tree.py::test_yields[3.9]", "test/test_parser_tree.py::test_yields[3.10]", "test/test_parser_tree.py::test_yield_from"]
["parso/__init__.py::parso", "parso/python/tree.py::parso.python.tree", "parso/tree.py::parso.tree.NodeOrLeaf.dump", "test/test_cache.py::test_modulepickling_change_cache_dir", "test/test_cache.py::test_modulepickling_simulate_deleted_cache", "test/test_cache.py::test_cache_limit", "test/test_cache.py::test_cache_last_...
jyangballin/swesmith.x86_64.davidhalter_1776_parso.338a5760
true
null
1
18
6
914
0
0.6
1
0.75
1
0.212333
80.912
7,852
swe_smith::train::32758
swe_smith
train
32,758
pydantic__pydantic.acb0f10f.lm_rewrite__3opooqar
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
model_json_schema() fails when called on BaseModel directly #### Description When calling `model_json_schema()` directly on the `BaseModel` class, the function no longer raises the expected `AttributeError` and instead fails with an assertion error or other unexpected behavior. #### Steps/Code to Reproduce ```pytho...
diff --git a/pydantic/json_schema.py b/pydantic/json_schema.py index ca031ea..2f91dd8 100644 --- a/pydantic/json_schema.py +++ b/pydantic/json_schema.py @@ -2326,13 +2326,10 @@ class GenerateJsonSchema: # ##### Start JSON Schema Generation Functions ##### -def model_json_schema( - cls: type[BaseModel] | type[Py...
["tests/test_docs.py::test_docstrings_examples[pydantic/json_schema.py:2586-2620]"]
["tests/benchmarks/test_attribute_access.py::test_setattr", "tests/benchmarks/test_attribute_access.py::test_getattr", "tests/benchmarks/test_discriminated_unions.py::test_schema_build", "tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples", "tests/benchmarks/test_fastapi_startup_...
jyangballin/swesmith.x86_64.pydantic_1776_pydantic.acb0f10f
true
null
1
25
1
774
0
0.6
1
0.75
1
0.212333
80.912
7,853
swe_smith::train::8950
swe_smith
train
8,950
pyupio__safety.7654596b.func_pm_remove_assign__v4d8xn24
swesmith/pyupio__safety.7654596b
pyupio/safety
python
null
Scan command fails with UnboundLocalError when using --debug flag #### Description When running the scan command with the `--debug` flag, the CLI crashes with an `UnboundLocalError` because the `result` variable is referenced before being assigned. #### Steps/Code to Reproduce ```python from safety.cli import cli f...
diff --git a/safety/scan/decorators.py b/safety/scan/decorators.py index 72d7e4e..41578fc 100644 --- a/safety/scan/decorators.py +++ b/safety/scan/decorators.py @@ -62,7 +62,7 @@ def scan_project_command_init(func): ctx.params.pop("console", None) if output.is_silent(): - console.quiet = ...
["tests/test_cli.py::TestSafetyCLI::test_debug_flag"]
["tests/test_cli.py::TestSafetyCLI::test_announcements_if_is_not_tty", "tests/test_cli.py::TestSafetyCLI::test_basic_html_output_pass", "tests/test_cli.py::TestSafetyCLI::test_check_continue_on_error", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_format_backward_compatible", "tests/test_cli.py::TestSafetyCLI::t...
jyangballin/swesmith.x86_64.pyupio_1776_safety.7654596b
true
null
1
18
1
913
0
0.6
1
0.75
1
0.212167
80.9115
7,854
swe_smith::train::1785
swe_smith
train
1,785
agronholm__typeguard.b6a7e438.func_basic__kot02922
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
Type checking for lists silently passes when non-list values are provided #### Description When using typeguard to check if a value is a list, the type checker is not raising TypeCheckError for non-list values. Instead, it silently passes the check, which breaks the expected type validation behavior. #### Steps/Code...
diff --git a/src/typeguard/_checkers.py b/src/typeguard/_checkers.py index 5e34036..7f24050 100644 --- a/src/typeguard/_checkers.py +++ b/src/typeguard/_checkers.py @@ -292,18 +292,19 @@ def check_list( memo: TypeCheckMemo, ) -> None: if not isinstance(value, list): - raise TypeCheckError("is not a li...
["tests/test_checkers.py::TestList::test_bad_type", "tests/test_checkers.py::TestList::test_first_check_fail", "tests/test_checkers.py::TestList::test_full_check_fail", "tests/test_checkers.py::TestTypevar::test_collection_constraints_fail", "tests/test_checkers.py::TestNewType::test_generic_bad_value", "tests/test_che...
["tests/mypy/test_type_annotations.py::test_positive", "tests/mypy/test_type_annotations.py::test_negative", "tests/test_checkers.py::TestAnyStr::test_valid[str]", "tests/test_checkers.py::TestAnyStr::test_valid[bytes]", "tests/test_checkers.py::TestAnyStr::test_bad_type", "tests/test_checkers.py::TestBytesLike::test_v...
jyangballin/swesmith.x86_64.agronholm_1776_typeguard.b6a7e438
true
null
1
7
11
1,133
0
0.6
1
0.75
1
0.212167
80.9115
7,855
swe_smith::train::27116
swe_smith
train
27,116
tkrajina__gpxpy.09fc46b3.func_pm_ctrl_invert_if__po909tsq
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
GPXTrackSegment.reduce_points() fails with IndexError when min_distance is specified #### Description When calling `reduce_points()` with a `min_distance` parameter on a GPX track segment, the method raises an `IndexError: list index out of range`. This appears to happen because the logic for handling the first point...
diff --git a/gpxpy/gpx.py b/gpxpy/gpx.py index 73e2024..2dc2f6e 100644 --- a/gpxpy/gpx.py +++ b/gpxpy/gpx.py @@ -720,15 +720,14 @@ class GPXTrackSegment: reduced_points: List[GPXTrackPoint] = [] for point in self.points: if reduced_points: + # Leave first point: + ...
["test.py::GPXTests::test_clone_and_smooth", "test.py::GPXTests::test_moving_stopped_times", "test.py::GPXTests::test_reduce_by_min_distance", "test.py::GPXTests::test_reduce_gpx_file"]
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
7
4
1,133
0
0.6
1
0.75
1
0.212167
80.9115
7,856
swe_smith::train::24742
swe_smith
train
24,742
marshmallow-code__marshmallow.9716fc62.func_basic__nimnki9z
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
Enum field deserialization broken for by_value mode #### Description The Enum field deserialization is not working correctly when `by_value=True` or when using a field for `by_value`. The logic for handling enum lookups by value vs by name appears to be swapped. #### Steps/Code to Reproduce ```python from marshmall...
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py index e83ba19..e336908 100644 --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1925,13 +1925,13 @@ class Enum(Field): val = self.field._deserialize(value, attr, data, **kwargs) if self.by_value: try: - ...
["tests/test_deserialization.py::TestFieldDeserialization::test_enum_field_by_symbol_deserialization", "tests/test_deserialization.py::TestFieldDeserialization::test_enum_field_by_symbol_invalid_value", "tests/test_deserialization.py::TestFieldDeserialization::test_enum_field_by_value_true_deserialization", "tests/test...
["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::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
10
7
1,073
0
0.6
1
0.75
1
0.212167
80.9115
7,857
swe_smith::train::4962
swe_smith
train
4,962
bottlepy__bottle.a8dfef30.func_pm_ctrl_shuffle__rviul2pa
swesmith/bottlepy__bottle.a8dfef30
bottlepy/bottle
python
null
load() function fails with UnboundLocalError when target contains colon #### Description The `load()` function in bottle.py throws an `UnboundLocalError: local variable 'module' referenced before assignment` when called with a target string that contains a colon. #### Steps/Code to Reproduce ```python from bottle i...
diff --git a/bottle.py b/bottle.py index 286b5bc..c4021ee 100755 --- a/bottle.py +++ b/bottle.py @@ -3835,6 +3835,13 @@ server_names = { def load(target, **namespace): + if module not in sys.modules: __import__(module) + if not target: return sys.modules[module] + if target.isalnum(): return getattr(sys.m...
["test/test_config.py::TestConfDict::test_load_module"]
["test/test_app.py::TestApplicationObject::test_setattr", "test/test_auth.py::TestBasicAuth::test__header", "test/test_config.py::TestConfDict::test_gc_overlays", "test/test_config.py::TestConfDict::test_isadict", "test/test_config.py::TestConfDict::test_load_dict", "test/test_config.py::TestConfDict::test_meta", "test...
jyangballin/swesmith.x86_64.bottlepy_1776_bottle.a8dfef30
true
null
1
15
1
973
0
0.6
1
0.75
1
0.212167
80.9115
7,858
swe_smith::train::50892
swe_smith
train
50,892
python-hyper__h11.bed0dd4a.func_pm_ctrl_shuffle__htcqd4os
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
Connection state reset happens too early in start_next_cycle() #### Description When calling `start_next_cycle()` on a connection, the state gets reset to `{CLIENT: IDLE, SERVER: IDLE}` before the validation checks are performed. This causes the validation to always pass even when the connection is not in a reusable ...
diff --git a/h11/_state.py b/h11/_state.py index 3ad444b..8945f5b 100644 --- a/h11/_state.py +++ b/h11/_state.py @@ -354,12 +354,12 @@ class ConnectionState: return def start_next_cycle(self) -> None: + self.states = {CLIENT: IDLE, SERVER: IDLE} if self.states != {CLIENT: DONE, S...
["h11/tests/test_connection.py::test_max_incomplete_event_size_countermeasure", "h11/tests/test_connection.py::test_reuse_simple", "h11/tests/test_connection.py::test_pipelining", "h11/tests/test_connection.py::test_protocol_switch", "h11/tests/test_connection.py::test_pipelined_close", "h11/tests/test_state.py::test_C...
["h11/tests/test_against_stdlib_http.py::test_h11_as_client", "h11/tests/test_against_stdlib_http.py::test_h11_as_server", "h11/tests/test_connection.py::test__keep_alive", "h11/tests/test_connection.py::test__body_framing", "h11/tests/test_connection.py::test_Connection_basics_and_content_length", "h11/tests/test_conn...
jyangballin/swesmith.x86_64.python-hyper_1776_h11.bed0dd4a
true
null
1
6
6
1,153
0
0.6
1
0.75
1
0.212167
80.9115
7,859
swe_smith::train::33373
swe_smith
train
33,373
pallets__click.fde47b4b.combine_module__iwyn0t03
swesmith/pallets__click.fde47b4b
pallets/click
python
null
LazyFile open() returns None instead of file object When using Click's LazyFile with certain configurations, the `open()` method returns `None` instead of the expected file object, causing AttributeError when trying to use file methods. #### Steps/Code to Reproduce ```python import click @click.command() @click.arg...
diff --git a/src/click/shell_completion.py b/src/click/shell_completion.py index c8655b1..2df0a66 100644 --- a/src/click/shell_completion.py +++ b/src/click/shell_completion.py @@ -620,12 +620,6 @@ def _resolve_incomplete( params = ctx.command.get_params(ctx) - # If the last complete arg is an option name w...
["tests/test_arguments.py::test_file_args", "tests/test_arguments.py::test_file_atomics", "tests/test_basic.py::test_file_option", "tests/test_context.py::test_global_context_object", "tests/test_shell_completion.py::test_type_choice", "tests/test_shell_completion.py::test_choice_special_characters", "tests/test_shell_...
["tests/test_arguments.py::test_nargs_star", "tests/test_arguments.py::test_argument_unbounded_nargs_cant_have_default", "tests/test_arguments.py::test_nargs_tup", "tests/test_arguments.py::test_nargs_tup_composite[opts0]", "tests/test_arguments.py::test_nargs_tup_composite[opts1]", "tests/test_arguments.py::test_nargs...
jyangballin/swesmith.x86_64.pallets_1776_click.fde47b4b
true
null
2
16
18
953
0
0.6
1
0.75
1
0.212167
80.9115
7,860
swe_smith::train::52538
swe_smith
train
52,538
pydicom__pydicom.7d361b3d.func_pm_remove_cond__1egsnjah
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
FileSet to_dicomdir() method fails with KeyError and ValueError after recent changes #### Description The `FileSet.to_dicomdir()` method is broken and raises various errors when trying to create DICOMDIR files. This affects both copying existing filesets and creating new ones. #### Steps/Code to Reproduce ```python...
diff --git a/src/pydicom/fileset.py b/src/pydicom/fileset.py index 75976eb..bd91f17 100644 --- a/src/pydicom/fileset.py +++ b/src/pydicom/fileset.py @@ -2215,19 +2215,6 @@ class FileSet: ds.DirectoryRecordSequence = [] for node in self._tree: record = node._record - if not copy...
["tests/test_fileset.py::TestRecordNode::test_encoding", "tests/test_fileset.py::TestRecordNode::test_file_id_singleton", "tests/test_fileset.py::TestFileInstance::test_path", "tests/test_fileset.py::TestFileInstance::test_load", "tests/test_fileset.py::TestFileInstance::test_for_moving", "tests/test_fileset.py::TestFi...
["tests/pixels/test_common.py::TestRunnerBase::test_init", "tests/pixels/test_common.py::TestRunnerBase::test_del_option", "tests/pixels/test_common.py::TestRunnerBase::test_option_properties", "tests/pixels/test_common.py::TestRunnerBase::test_planar_configuration", "tests/pixels/test_common.py::TestRunnerBase::test_s...
jyangballin/swesmith.x86_64.pydicom_1776_pydicom.7d361b3d
true
null
1
14
46
992
0
0.6
1
0.75
1
0.212
80.911
7,861
swe_smith::train::27127
swe_smith
train
27,127
tkrajina__gpxpy.09fc46b3.func_pm_ctrl_shuffle__1icowsud
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
get_duration() method raises UnboundLocalError when GPX has tracks #### Description The `get_duration()` method in the GPX class is throwing an `UnboundLocalError: local variable 'result' referenced before assignment` when called on a GPX object that contains tracks. #### Steps/Code to Reproduce ```python import gp...
diff --git a/gpxpy/gpx.py b/gpxpy/gpx.py index 73e2024..1bb6cee 100644 --- a/gpxpy/gpx.py +++ b/gpxpy/gpx.py @@ -2339,16 +2339,8 @@ class GPX: return result def get_duration(self) -> Optional[float]: - """ - Calculates duration of GPX file - Returns - ------- - durat...
["test.py::GPXTests::test_get_duration"]
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
21
1
852
0
0.6
1
0.75
1
0.212
80.911
7,862
swe_smith::train::4076
swe_smith
train
4,076
pygments__pygments.27649ebb.func_basic__t16x2daj
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
LexerContext constructor arguments swapped causing TypeError #### Description When creating a LexerContext instance, the text and pos arguments appear to be swapped internally, causing a TypeError when trying to access string methods on what should be the text parameter. #### Steps/Code to Reproduce ```python from ...
diff --git a/pygments/lexer.py b/pygments/lexer.py index 3061964..50a9da8 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -765,10 +765,10 @@ class LexerContext: """ def __init__(self, text, pos, stack=None, end=None): - self.text = text - self.pos = pos - self.end = end or len...
["tests/test_ruby.py::test_positive_method_names[\\u306fA__9]", "tests/test_ruby.py::test_positive_method_names[\\uffff]", "tests/test_ruby.py::test_negative_method_names[1]", "tests/test_ruby.py::test_negative_method_names[_]", "tests/test_ruby.py::test_positive_method_names[<=]", "tests/test_ruby.py::test_positive_me...
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
8
175
1,112
0
0.6
1
0.75
1
0.212
80.911
7,863
swe_smith::train::2376
swe_smith
train
2,376
pdfminer__pdfminer.six.1a8bd2f7.func_pm_class_rm_funcs__8zn56igz
swesmith/pdfminer__pdfminer.six.1a8bd2f7
pdfminer/pdfminer.six
python
null
PDFContentParser fails after removing seek and fillbuf methods #### Description After recent changes to PDFContentParser, PDF processing fails with AttributeError when trying to access methods that were removed. The parser can no longer seek to specific positions or fill its buffer, causing failures when processing P...
diff --git a/pdfminer/pdfinterp.py b/pdfminer/pdfinterp.py index ae1c46a..069300c 100644 --- a/pdfminer/pdfinterp.py +++ b/pdfminer/pdfinterp.py @@ -266,22 +266,6 @@ class PDFContentParser(PSStackParser[Union[PSKeyword, PDFStream]]): raise PSEOF("Unexpected EOF, file truncated?") self.fp =...
["tests/test_converter.py::TestPaintPath::test_paint_path_quadrilaterals", "tests/test_converter.py::TestColorSpace::test_do_rg", "tests/test_font_size.py::test_font_size", "tests/test_highlevel_extracttext.py::TestExtractText::test_issue_495_pdfobjref_iterable", "tests/test_highlevel_extracttext.py::TestExtractText::t...
["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_beziers", "tests/test_converter.py::TestPaintPath::test_paint_pa...
jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7
true
null
1
17
57
932
0
0.6
1
0.75
1
0.212
80.911
7,864
swe_smith::train::46450
swe_smith
train
46,450
conan-io__conan.86f29e13.pr_17020
swesmith/conan-io__conan.86f29e13
conan-io/conan
python
null
I encountered an issue with the `PkgConfig` class in the Conan tools for GNU. When attempting to generate package configuration for a non-existent package, the expected error handling seems to be missing. Here's a simple way to reproduce the problem: ```python from conan import ConanFile from conan.tools.gnu import P...
diff --git a/conan/tools/gnu/pkgconfig.py b/conan/tools/gnu/pkgconfig.py index fb911ba..011ee0c 100644 --- a/conan/tools/gnu/pkgconfig.py +++ b/conan/tools/gnu/pkgconfig.py @@ -1,4 +1,3 @@ -import textwrap from io import StringIO from conan.tools.build import cmd_args_to_string @@ -31,13 +30,8 @@ class PkgConfig: ...
["test/functional/toolchains/gnu/test_pkg_config.py::TestPkgConfig::test_negative"]
["test/functional/toolchains/gnu/test_pkg_config.py::TestPkgConfig::test_pc", "test/functional/toolchains/gnu/test_pkg_config.py::test_pkg_config_round_tripe_cpp_info"]
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
true
null
1
12
1
1,031
0
0.6
1
0.75
1
0.211833
80.9105
7,865
swe_smith::train::49118
swe_smith
train
49,118
mozilla__bleach.73871d76.combine_file__g1vcn4u7
swesmith/mozilla__bleach.73871d76
mozilla/bleach
python
null
HTML parsing returns None instead of fragment #### Description When using bleach to clean HTML content, the parser is returning `None` instead of the expected cleaned HTML fragment. This affects all cleaning operations and causes `AttributeError` when trying to access methods on the returned `None` object. #### Step...
diff --git a/bleach/_vendor/html5lib/treebuilders/base.py b/bleach/_vendor/html5lib/treebuilders/base.py index 2869da0..fa46e87 100644 --- a/bleach/_vendor/html5lib/treebuilders/base.py +++ b/bleach/_vendor/html5lib/treebuilders/base.py @@ -195,8 +195,6 @@ class TreeBuilder(object): def elementInScope(self, targ...
["tests/test_clean.py::test_clean_idempotent[text<em>]", "tests/test_clean.py::test_clean_idempotent_img", "tests/test_clean.py::test_only_text_is_cleaned", "tests/test_clean.py::test_content_has_no_html", "tests/test_clean.py::test_html_is_lowercased", "tests/test_clean.py::test_comments[<!--comment-->text-True-text]"...
["tests/test_callbacks.py::TestNofollowCallback::test_blank", "tests/test_callbacks.py::TestNofollowCallback::test_no_href", "tests/test_callbacks.py::TestNofollowCallback::test_basic", "tests/test_callbacks.py::TestNofollowCallback::test_mailto", "tests/test_callbacks.py::TestNofollowCallback::test_has_nofollow_alread...
jyangballin/swesmith.x86_64.mozilla_1776_bleach.73871d76
true
null
1
17
183
931
0
0.6
1
0.75
1
0.211833
80.9105
7,866
swe_smith::train::38234
swe_smith
train
38,234
john-kurkowski__tldextract.3d1bf184.func_pm_remove_assign__sbpjbtx7
swesmith/john-kurkowski__tldextract.3d1bf184
john-kurkowski/tldextract
python
null
# CLI command fails with NameError when using arguments ## Description I found an issue with the CLI command in tldextract. When trying to use the command with arguments, it fails with a NameError. ## Steps to reproduce 1. Run the CLI command with any arguments: ``` tldextract example.com ``` or with named argume...
diff --git a/tldextract/cli.py b/tldextract/cli.py index e9aa6ce..5b54087 100644 --- a/tldextract/cli.py +++ b/tldextract/cli.py @@ -68,16 +68,10 @@ def main() -> None: args = parser.parse_args() - obj_kwargs = { - "include_psl_private_domains": args.include_psl_private_domains, - "fallback_to...
["tests/cli_test.py::test_cli_no_input", "tests/cli_test.py::test_cli_posargs", "tests/cli_test.py::test_cli_namedargs", "tests/cli_test.py::test_cli_json_output"]
["tests/cli_test.py::test_cli_parses_args", "tests/custom_suffix_test.py::test_private_extraction", "tests/custom_suffix_test.py::test_suffix_which_is_not_in_custom_list", "tests/custom_suffix_test.py::test_custom_suffixes", "tests/custom_suffix_test.py::test_suffix_which_is_not_in_extra_list", "tests/custom_suffix_tes...
jyangballin/swesmith.x86_64.john-kurkowski_1776_tldextract.3d1bf184
true
null
1
11
4
1,051
0
0.6
1
0.75
1
0.211833
80.9105
7,867
swe_smith::train::4341
swe_smith
train
4,341
pygments__pygments.27649ebb.func_pm_ctrl_shuffle__6u46iopf
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
ansiformat function returns incorrect output due to code reordering #### Description The `ansiformat` function in `pygments/console.py` produces incorrect ANSI escape sequences when formatting text with color and style attributes. #### Steps/Code to Reproduce ```python from pygments.console import ansiformat # Thi...
diff --git a/pygments/console.py b/pygments/console.py index 4c1a062..b49246b 100644 --- a/pygments/console.py +++ b/pygments/console.py @@ -46,6 +46,8 @@ def colorize(color_key, text): def ansiformat(attr, text): + return ''.join(result) + result.append(codes[attr]) """ Format ``text`` with a colo...
["tests/test_util.py::test_console_ansiformat", "tests/test_cmdline.py::test_stream_opt", "tests/test_basic_api.py::test_formatter_public_api[TerminalFormatter]", "tests/test_basic_api.py::test_formatter_unicode_handling[TerminalFormatter]", "tests/test_terminal_formatter.py::test_reasonable_output", "tests/test_termin...
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
16
6
951
0
0.6
1
0.75
1
0.211833
80.9105
7,868
swe_smith::train::7802
swe_smith
train
7,802
cantools__cantools.0c6a7871.func_basic__wh4a2296
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
Monitor initialization broken - AttributeError on message handling #### Description The CAN monitor fails to handle incoming messages properly, throwing AttributeError when trying to process CAN frames. #### Steps/Code to Reproduce ```python import cantools import can # Load a DBC file and try to monitor CAN messa...
diff --git a/src/cantools/subparsers/monitor.py b/src/cantools/subparsers/monitor.py index 043a1fa..2060080 100644 --- a/src/cantools/subparsers/monitor.py +++ b/src/cantools/subparsers/monitor.py @@ -28,18 +28,18 @@ class Monitor(can.Listener): frame_id_mask=args.frame_id_mask...
["tests/test_monitor.py::CanToolsMonitorTest::test_bad_message_length_error", "tests/test_monitor.py::CanToolsMonitorTest::test_display_muxed_data", "tests/test_monitor.py::CanToolsMonitorTest::test_display_muxed_data_multiple_single_line", "tests/test_monitor.py::CanToolsMonitorTest::test_display_muxed_data_single_lin...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
10
14
1,071
0
0.6
1
0.75
1
0.211833
80.9105
7,869
swe_smith::train::51498
swe_smith
train
51,498
pydicom__pydicom.7d361b3d.combine_file__dra50vp3
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
dicomfile context manager returns None instead of self #### Description The `dicomfile` context manager in `pydicom.util.leanread` is returning `None` instead of `self` when used with the `with` statement, causing `AttributeError` when trying to access methods or attributes on the returned object. #### Steps/Code to...
diff --git a/src/pydicom/util/leanread.py b/src/pydicom/util/leanread.py index 605e507..bdbc2a2 100644 --- a/src/pydicom/util/leanread.py +++ b/src/pydicom/util/leanread.py @@ -38,7 +38,7 @@ class dicomfile: fobj.seek(0) def __enter__(self) -> "dicomfile": - return self + return None ...
["tests/test_util.py::TestLeanRead::test_explicit_little", "tests/test_util.py::TestLeanRead::test_implicit_little", "tests/test_util.py::TestLeanRead::test_explicit_big", "tests/test_util.py::TestLeanRead::test_no_tsyntax", "tests/test_util.py::TestLeanRead::test_no_meta", "tests/test_util.py::TestLeanRead::test_UN_se...
["tests/pixels/test_common.py::TestRunnerBase::test_init", "tests/pixels/test_common.py::TestRunnerBase::test_del_option", "tests/pixels/test_common.py::TestRunnerBase::test_option_properties", "tests/pixels/test_common.py::TestRunnerBase::test_planar_configuration", "tests/pixels/test_common.py::TestRunnerBase::test_s...
jyangballin/swesmith.x86_64.pydicom_1776_pydicom.7d361b3d
true
null
1
20
6
871
0
0.6
1
0.75
1
0.211833
80.9105
7,870
r2e_gym::train::110
r2e_gym
train
110
orange3__838e5fa723e9ee6b76acfada9e3c4dccee2476c1
orange3
biolab/orange3
python
838e5fa723e9ee6b76acfada9e3c4dccee2476c1
**Title:** ReplaceUnknownsModel Fails with DomainTransformationError When Class Variables Are Present **Description** When using `ReplaceUnknownsModel` for imputing missing values in a dataset that includes class variables, an error occurs because the model attempts to process the class variables, which it shouldn't. ...
diff --git a/Orange/preprocess/impute.py b/Orange/preprocess/impute.py --- a/Orange/preprocess/impute.py +++ b/Orange/preprocess/impute.py @@ -160,19 +160,20 @@ def __call__(self, data): if isinstance(data, Orange.data.Instance): - column = np.array([float(data[self.variable])]) - else...
diff --git a/Orange/tests/test_impute.py b/Orange/tests/test_impute.py --- a/Orange/tests/test_impute.py +++ b/Orange/tests/test_impute.py @@ -229,9 +229,12 @@ domain = data.Domain( (data.DiscreteVariable("A", values=("0", "1", "2")), data.ContinuousVariable("B"), - data....
null
null
namanjain12/orange3_final:838e5fa723e9ee6b76acfada9e3c4dccee2476c1
true
null
1
17
null
1,643
0
0.75
1
0.6375
1
0.3305
80.91025
7,871
swe_smith::train::25346
swe_smith
train
25,346
pylint-dev__astroid.b114f6b5.func_basic__4cfcmqon
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
ExceptHandler attributes swapped causing incorrect exception handling #### Description When parsing try/except blocks, the ExceptHandler node incorrectly assigns the exception type and name attributes. The exception type gets assigned to the name field and vice versa, causing issues with exception inference and handl...
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index fde3239..d686f13 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -2626,9 +2626,9 @@ class ExceptHandler( name: AssignName | None, body: list[NodeNG], ) -> None: - self.type = ...
["tests/brain/test_brain.py::test_oserror_model", "tests/test_inference.py::InferenceTest::test_except_inference", "tests/test_inference.py::test_exception_lookup_last_except_handler_wins", "tests/test_inference.py::test_infer_exception_instance_attributes", "tests/test_nodes.py::AsStringTest::test_3k_as_string", "test...
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
6
16
1,150
0
0.6
1
0.75
1
0.211667
80.91
7,872
swe_smith::train::14314
swe_smith
train
14,314
python-openxml__python-docx.0cf6d71f.func_pm_ctrl_shuffle__nlra9e5p
swesmith/python-openxml__python-docx.0cf6d71f
python-openxml/python-docx
python
null
# Function definition moved after its usage in ImageParts.next_partname ## Description I've discovered an issue with the `next_partname` method in the `ImageParts` class. When trying to add images to a document, I'm getting a `NameError` because the `image_partname` function is being called before it's defined. ## S...
diff --git a/src/docx/package.py b/src/docx/package.py index 7ea47e6..8428694 100644 --- a/src/docx/package.py +++ b/src/docx/package.py @@ -100,11 +100,11 @@ class ImageParts: not include the leading period. """ - def image_partname(n: int) -> PackURI: - return PackURI("/word/medi...
["tests/test_package.py::DescribeImageParts::it_knows_the_next_available_image_partname[next_partname_fixture0]", "tests/test_package.py::DescribeImageParts::it_knows_the_next_available_image_partname[next_partname_fixture1]", "tests/test_package.py::DescribeImageParts::it_knows_the_next_available_image_partname[next_p...
["tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture0]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture1]", "tests/dml/test_color.py::DescribeColorFormat::it_knows_its_color_type[type_fixture2]", "tests/dml/test_color.py::DescribeColorFormat::it_knows...
jyangballin/swesmith.x86_64.python-openxml_1776_python-docx.0cf6d71f
true
null
1
6
3
1,150
0
0.6
1
0.75
1
0.211667
80.91
7,873
swe_smith::train::24903
swe_smith
train
24,903
marshmallow-code__marshmallow.9716fc62.func_pm_remove_cond__rcbd3q7a
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
ISO datetime parsing broken for timezone-aware strings #### Description When parsing ISO datetime strings with timezone information, the `from_iso_datetime` function fails with a TypeError. The function appears to be passing raw timezone strings directly to the datetime constructor instead of proper timezone objects....
diff --git a/src/marshmallow/utils.py b/src/marshmallow/utils.py index a5fe726..e3f2d29 100644 --- a/src/marshmallow/utils.py +++ b/src/marshmallow/utils.py @@ -155,19 +155,10 @@ def from_iso_datetime(value): kw = match.groupdict() kw["microsecond"] = kw["microsecond"] and kw["microsecond"].ljust(6, "0") ...
["tests/test_deserialization.py::TestFieldDeserialization::test_iso_datetime_field_deserialization[2013-11-10T01:23:45+00:00-expected1-True-iso]", "tests/test_deserialization.py::TestFieldDeserialization::test_iso_datetime_field_deserialization[2013-11-10T01:23:45+00:00-expected1-True-iso8601]", "tests/test_deserializa...
["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::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
9
16
1,090
0
0.6
1
0.75
1
0.211667
80.91
7,874
swe_smith::train::40674
swe_smith
train
40,674
scanny__python-pptx.278b47b1.func_basic__6u0wp40n
swesmith/scanny__python-pptx.278b47b1
scanny/python-pptx
python
null
Shape.auto_shape_type returns wrong value for autoshapes #### Description The `auto_shape_type` property on Shape objects is returning `None` for actual autoshapes instead of the expected shape type constant. Additionally, it's returning a boolean value instead of raising a ValueError for non-autoshapes. #### Steps/...
diff --git a/src/pptx/shapes/autoshape.py b/src/pptx/shapes/autoshape.py index c7f8cd9..9100983 100644 --- a/src/pptx/shapes/autoshape.py +++ b/src/pptx/shapes/autoshape.py @@ -274,9 +274,9 @@ class Shape(BaseShape): Like `MSO_SHAPE.ROUNDED_RECTANGLE`. Raises |ValueError| if this shape is not an auto shape. ...
["tests/shapes/test_autoshape.py::DescribeShape::it_knows_its_autoshape_type", "tests/shapes/test_autoshape.py::DescribeShape::but_it_raises_when_auto_shape_type_called_on_non_autoshape"]
["tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:catAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:dateAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:valAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_pr...
jyangballin/swesmith.x86_64.scanny_1776_python-pptx.278b47b1
true
null
1
6
2
1,150
0
0.6
1
0.75
1
0.211667
80.91
7,875
swe_smith::train::18519
swe_smith
train
18,519
HIPS__autograd.ac044f0d.lm_rewrite__7tep5jb7
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
# Description It seems there's an issue with the `np.dot` and `np.outer` functions after the recent changes. When using these functions, a `ValueError` is raised due to a shape mismatch during summation. This is causing unexpected behavior in operations that rely on these functions. # Reproduction Steps Here's a min...
diff --git a/autograd/numpy/numpy_vjps.py b/autograd/numpy/numpy_vjps.py index 08d4e1b..98010d6 100644 --- a/autograd/numpy/numpy_vjps.py +++ b/autograd/numpy/numpy_vjps.py @@ -610,16 +610,18 @@ defvjp(anp.matmul, matmul_vjp_0, matmul_vjp_1) @primitive def dot_adjoint_0(B, G, A_meta, B_meta): + """Adjoint of the...
["tests/test_numpy.py::test_dot", "tests/test_scipy.py::test_solve_sylvester", "tests/test_jacobian.py::test_jacobian_higher_order", "tests/test_wrappers.py::test_hessian", "tests/test_systematic.py::test_dot", "tests/test_systematic.py::test_outer"]
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
10
6
1,070
0
0.6
1
0.75
1
0.211667
80.91
7,876
swe_smith::train::24335
swe_smith
train
24,335
sunpy__sunpy.f8edfd5c.func_pm_remove_cond__sdz1krva
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
HECClient.search() fails with AttributeError when hec_client is None #### Description When the HECClient fails to initialize (e.g., due to SSL errors), the `search()` method raises an `AttributeError: 'NoneType' object has no attribute 'service'` instead of handling the case gracefully. #### Steps/Code to Reproduce ...
diff --git a/sunpy/net/helio/hec.py b/sunpy/net/helio/hec.py index 8b84536..93c543a 100644 --- a/sunpy/net/helio/hec.py +++ b/sunpy/net/helio/hec.py @@ -144,20 +144,10 @@ class HECClient(BaseClient): <BLANKLINE> <BLANKLINE> """ - if self.hec_client is None: - table = HECResp...
["sunpy/net/helio/tests/test_helio.py::test_ssl_verify_error"]
["sunpy/net/helio/tests/test_helio.py::test_webservice_parser_no_content", "sunpy/net/helio/tests/test_helio.py::test_webservice_parser_get_links", "sunpy/net/helio/tests/test_helio.py::test_endpoint_parser_no_content", "sunpy/net/helio/tests/test_helio.py::test_endpoint_parser_get_links", "sunpy/net/helio/tests/test_h...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
11
1
1,050
0
0.6
1
0.75
1
0.211667
80.91
7,877
swe_smith::train::44324
swe_smith
train
44,324
pydata__patsy.a5d16484.func_pm_ctrl_shuffle__7h042fth
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
Cubic regression spline function returns undefined variable #### Description When using cubic regression splines with constraints, the function fails with an `UnboundLocalError` because the variable `dm` is referenced before being defined. #### Steps/Code to Reproduce ```python import numpy as np from patsy.mgcv_cu...
diff --git a/patsy/mgcv_cubic_splines.py b/patsy/mgcv_cubic_splines.py index 5f93680..639a2af 100644 --- a/patsy/mgcv_cubic_splines.py +++ b/patsy/mgcv_cubic_splines.py @@ -352,6 +352,11 @@ def _get_free_crs_dmatrix(x, knots, cyclic=False): def _get_crs_dmatrix(x, knots, constraints=None, cyclic=False): + if co...
["patsy/mgcv_cubic_splines.py::test_crs_compat", "patsy/mgcv_cubic_splines.py::test_crs_with_specific_constraint", "patsy/mgcv_cubic_splines.py::test_te_1smooth", "patsy/mgcv_cubic_splines.py::test_te_2smooths", "patsy/mgcv_cubic_splines.py::test_te_3smooths"]
["patsy/build.py::test__max_allowed_dim", "patsy/build.py::test__eval_factor_numerical", "patsy/build.py::test__eval_factor_categorical", "patsy/build.py::test__column_combinations", "patsy/build.py::test__subterm_column_names_iter_and__build_subterm", "patsy/build.py::test__factors_memorize", "patsy/build.py::test__ex...
jyangballin/swesmith.x86_64.pydata_1776_patsy.a5d16484
true
null
1
11
5
1,049
0
0.6
1
0.75
1
0.2115
80.9095
7,878
swe_smith::train::30947
swe_smith
train
30,947
mido__mido.a0158ff9.func_pm_remove_cond__tuq22r75
swesmith/mido__mido.a0158ff9
mido/mido
python
null
decode_message fails on empty bytes and sysex messages #### Description The `decode_message` function crashes when trying to decode empty byte arrays or sysex messages. This breaks basic MIDI message parsing functionality. #### Steps/Code to Reproduce ```python import mido from mido.messages.decode import decode_me...
diff --git a/mido/messages/decode.py b/mido/messages/decode.py index ddb3f27..402b3b4 100644 --- a/mido/messages/decode.py +++ b/mido/messages/decode.py @@ -71,10 +71,6 @@ def decode_message(msg_bytes, time=0, check=True): This is not a part of the public API. """ - # TODO: this function is getting long....
["../dev/tests/test_parser.py::test_realtime_inside_sysex", "../dev/tests/test_parser.py::test_undefined_realtime_inside_sysex", "../dev/tests/test_parser.py::test_encode_and_parse_all", "../dev/tests/test_syx.py::test_read", "../dev/tests/test_syx.py::test_handle_any_whitespace", "../dev/tests/messages/test_decode.py:...
["../dev/tests/test_frozen.py::test_hashability", "../dev/tests/test_frozen.py::test_freeze_and_thaw", "../dev/tests/test_frozen.py::test_thawed_message_is_copy", "../dev/tests/test_frozen.py::test_is_frozen", "../dev/tests/test_frozen.py::test_frozen_repr", "../dev/tests/test_frozen.py::test_frozen_meta_repr", "../dev...
jyangballin/swesmith.x86_64.mido_1776_mido.a0158ff9
true
null
1
16
12
949
0
0.6
1
0.75
1
0.2115
80.9095
7,879
swe_smith::train::7563
swe_smith
train
7,563
cantools__cantools.0c6a7871.func_basic__hjzhk40j
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
SYM parser incorrectly handles {SENDRECEIVE} section #### Description When parsing SYM files containing `{SENDRECEIVE}` message sections, the parser throws an unexpected error claiming the section is not recognized, even though `{SENDRECEIVE}` is a valid section type in SYM format. #### Steps/Code to Reproduce ```p...
diff --git a/src/cantools/database/can/formats/sym.py b/src/cantools/database/can/formats/sym.py index 4bdc121..38ac2ed 100644 --- a/src/cantools/database/can/formats/sym.py +++ b/src/cantools/database/can/formats/sym.py @@ -647,13 +647,13 @@ def _get_senders(section_name: str) -> list[str]: other file formats spe...
["tests/test_command_line.py::CanToolsCommandLineTest::test_generate_c_source_sym", "tests/test_convert.py::CanToolsConvertFullTest::test_sym_to_dbc__compare_databases", "tests/test_convert.py::CanToolsConvertFullTest::test_sym_to_dbc__compare_files", "tests/test_database.py::CanToolsDatabaseTest::test_big_endian", "te...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
8
20
1,109
0
0.6
1
0.75
1
0.2115
80.9095
7,880
swe_smith::train::28226
swe_smith
train
28,226
Mimino666__langdetect.a1598f1a.func_basic__4wtf33vg
swesmith/Mimino666__langdetect.a1598f1a
mimino666/langdetect
python
null
Language detection fails with exactly 2 profiles #### Description When loading exactly 2 language profiles, the detector factory incorrectly rejects them with a "Need more than 2 profiles" error, even though 2 profiles should be sufficient for language detection. #### Steps/Code to Reproduce ```python from langdete...
diff --git a/langdetect/detector_factory.py b/langdetect/detector_factory.py index e026161..5af92b6 100644 --- a/langdetect/detector_factory.py +++ b/langdetect/detector_factory.py @@ -65,17 +65,16 @@ class DetectorFactory(object): def load_json_profile(self, json_profiles): langsize, index = len(json_p...
["langdetect/tests/test_detector.py::DetectorTest::test_factory_from_json_string"]
["langdetect/tests/test_detector.py::DetectorTest::test_detector1", "langdetect/tests/test_detector.py::DetectorTest::test_detector2", "langdetect/tests/test_detector.py::DetectorTest::test_detector3", "langdetect/tests/test_detector.py::DetectorTest::test_detector4", "langdetect/tests/test_detector.py::DetectorTest::t...
jyangballin/swesmith.x86_64.mimino666_1776_langdetect.a1598f1a
true
null
1
9
1
1,089
0
0.6
1
0.75
1
0.2115
80.9095
7,881
swe_smith::train::24650
swe_smith
train
24,650
marshmallow-code__marshmallow.9716fc62.func_basic__76txszjp
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
Url field parameters incorrectly assigned #### Description The Url field constructor is incorrectly assigning parameter values, causing URL validation to behave unexpectedly. When creating a Url field with specific parameters like `relative`, `absolute`, or `require_tld`, the values get mixed up internally. #### Ste...
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py index e83ba19..75d277b 100644 --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1713,9 +1713,9 @@ class Url(String): ): super().__init__(**kwargs) - self.relative = relative - self.absolute = absolute - ...
["tests/test_deserialization.py::TestFieldDeserialization::test_url_field_deserialization", "tests/test_deserialization.py::TestSchemaDeserialization::test_multiple_errors_can_be_stored_for_a_url_field", "tests/test_schema.py::TestLoadOnly::test_url_field_requre_tld_false"]
["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::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
8
3
1,109
0
0.6
1
0.75
1
0.2115
80.9095
7,882
swe_smith::train::38952
swe_smith
train
38,952
pallets__jinja.ada0a9a6.func_basic__b8uqu2r8
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
UndefinedError raised for loop variables and macro arguments #### Description Template compilation is incorrectly identifying valid loop variables and macro arguments as undefined, causing UndefinedError exceptions during template rendering. #### Steps/Code to Reproduce ```python from jinja2 import Template # Loop...
diff --git a/src/jinja2/compiler.py b/src/jinja2/compiler.py index 91720c5..147438a 100644 --- a/src/jinja2/compiler.py +++ b/src/jinja2/compiler.py @@ -279,12 +279,12 @@ class UndeclaredNameVisitor(NodeVisitor): self.undeclared: t.Set[str] = set() def visit_Name(self, node: nodes.Name) -> None: - ...
["tests/test_api.py::TestStreaming::test_basic_streaming", "tests/test_api.py::TestStreaming::test_buffered_streaming", "tests/test_async.py::test_async_blocks[asyncio]", "tests/test_async.py::test_async_blocks[trio]", "tests/test_async.py::test_async_iteration_in_templates_extended", "tests/test_async.py::TestAsyncFor...
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
6
48
1,149
0
0.6
1
0.75
1
0.2115
80.9095
7,883
swe_smith::train::8909
swe_smith
train
8,909
pyupio__safety.7654596b.func_pm_remove_assign__5q0g6gl5
swesmith/pyupio__safety.7654596b
pyupio/safety
python
null
scan command fails with UnboundLocalError when using --debug flag #### Description When running the `safety scan` command with the `--debug` flag, the command fails with an `UnboundLocalError` because some variables are referenced before being assigned. #### Steps/Code to Reproduce ```python from safety.cli import ...
diff --git a/safety/scan/decorators.py b/safety/scan/decorators.py index 72d7e4e..519d04b 100644 --- a/safety/scan/decorators.py +++ b/safety/scan/decorators.py @@ -83,7 +83,6 @@ def scan_project_command_init(func): session = ctx.obj.auth.client git_data = GIT(root=target).build_git_data() or...
["tests/test_cli.py::TestSafetyCLI::test_debug_flag"]
["tests/test_cli.py::TestSafetyCLI::test_announcements_if_is_not_tty", "tests/test_cli.py::TestSafetyCLI::test_basic_html_output_pass", "tests/test_cli.py::TestSafetyCLI::test_check_continue_on_error", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_format_backward_compatible", "tests/test_cli.py::TestSafetyCLI::t...
jyangballin/swesmith.x86_64.pyupio_1776_safety.7654596b
true
null
1
16
1
949
0
0.6
1
0.75
1
0.2115
80.9095
7,884
swe_smith::train::48148
swe_smith
train
48,148
sqlfluff__sqlfluff.50a1c4b6.func_pm_ctrl_invert_if__gf9peede
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
PlaceholderTemplater parameter replacement logic inverted #### Description The PlaceholderTemplater has inverted logic when checking for parameter names and replacement values. When a parameter name is found in the context, it uses the parameter name itself as the replacement instead of the context value. When the pa...
diff --git a/src/sqlfluff/core/templaters/placeholder.py b/src/sqlfluff/core/templaters/placeholder.py index de708a8..65253a1 100644 --- a/src/sqlfluff/core/templaters/placeholder.py +++ b/src/sqlfluff/core/templaters/placeholder.py @@ -151,15 +151,15 @@ class PlaceholderTemplater(RawTemplater): for found_para...
["test/core/templaters/placeholder_test.py::test__templater_param_style[colon_simple_substitution]", "test/core/templaters/placeholder_test.py::test__templater_param_style[colon_accept_block_at_end]", "test/core/templaters/placeholder_test.py::test__templater_param_style[colon_tuple_substitution]", "test/core/templater...
["test/core/templaters/base_test.py::test__indices_of_newlines[-positions0]", "test/core/templaters/base_test.py::test__indices_of_newlines[foo-positions1]", "test/core/templaters/base_test.py::test__indices_of_newlines[foo\\nbar-positions2]", "test/core/templaters/base_test.py::test__indices_of_newlines[\\nfoo\\n\\nba...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
10
19
1,069
0
0.6
1
0.75
1
0.2115
80.9095
7,885
swe_smith::train::21368
swe_smith
train
21,368
rubik__radon.54b88e58.combine_module__qns11ue7
swesmith/rubik__radon.54b88e58
rubik/radon
python
null
RawHarvester.as_xml() returns placeholder XML instead of raising NotImplementedError #### Description The `RawHarvester.as_xml()` method is supposed to raise a `NotImplementedError` to indicate that XML export functionality is not implemented. However, it now returns a placeholder XML string instead. #### Steps/Code...
diff --git a/radon/cli/harvest.py b/radon/cli/harvest.py index ac14fe5..7b74998 100644 --- a/radon/cli/harvest.py +++ b/radon/cli/harvest.py @@ -271,7 +271,7 @@ class RawHarvester(Harvester): def as_xml(self): '''Placeholder method. Currently not implemented.''' - raise NotImplementedError('RawHa...
["radon/tests/test_cli_harvest.py::test_raw_as_xml", "radon/tests/test_cli_tools.py::test_cc_to_md"]
["radon/tests/test_cli.py::test_config_base_behavior", "radon/tests/test_cli.py::test_config_exceptions", "radon/tests/test_cli.py::test_config_str", "radon/tests/test_cli.py::test_config_eq", "radon/tests/test_cli.py::test_config_for", "radon/tests/test_cli.py::test_config_converts_types", "radon/tests/test_cli.py::te...
jyangballin/swesmith.x86_64.rubik_1776_radon.54b88e58
true
null
2
18
2
909
0
0.6
1
0.75
1
0.2115
80.9095
7,886
swe_smith::train::39048
swe_smith
train
39,048
pallets__jinja.ada0a9a6.func_basic__glnkp979
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
symbols_for_node returns None instead of Symbols object #### Description The `symbols_for_node` function in `idtracking.py` is returning `None` instead of the expected `Symbols` object, causing template analysis to fail. #### Steps/Code to Reproduce ```python from jinja2 import nodes from jinja2.idtracking import s...
diff --git a/src/jinja2/idtracking.py b/src/jinja2/idtracking.py index d6cb635..fdc4d3a 100644 --- a/src/jinja2/idtracking.py +++ b/src/jinja2/idtracking.py @@ -23,8 +23,11 @@ def symbols_for_node( node: nodes.Node, parent_symbols: t.Optional["Symbols"] = None ) -> "Symbols": sym = Symbols(parent=parent_symb...
["tests/test_idtracking.py::test_basics", "tests/test_idtracking.py::test_complex", "tests/test_idtracking.py::test_if_branching_stores", "tests/test_idtracking.py::test_if_branching_stores_undefined", "tests/test_idtracking.py::test_if_branching_multi_scope"]
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
7
5
1,129
0
0.6
1
0.75
1
0.2115
80.9095
7,887
swe_smith::train::22329
swe_smith
train
22,329
tweepy__tweepy.91a41c6e.func_basic__chyl1iv6
swesmith/tweepy__tweepy.91a41c6e
tweepy/tweepy
python
null
### Issue with add_list_members and remove_list_members API Methods #### Description There seems to be an issue with the `add_list_members` and `remove_list_members` methods in the Tweepy API. When attempting to add or remove multiple members from a list using these methods, a `KeyError` is raised. #### Steps/Code to...
diff --git a/tweepy/api.py b/tweepy/api.py index 37caf07..a9650b9 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1883,11 +1883,11 @@ class API: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy_all """ if '...
["tests/test_api.py::TweepyAPITests::testaddremovelistmembers"]
["tests/test_api.py::TweepyAPITests::test_indicate_direct_message_typing", "tests/test_api.py::TweepyAPITests::testaddremovelistmember", "tests/test_api.py::TweepyAPITests::testcachedifferentqueryparameters", "tests/test_api.py::TweepyAPITests::testcachedresult", "tests/test_api.py::TweepyAPITests::testcreatedestroyblo...
jyangballin/swesmith.x86_64.tweepy_1776_tweepy.91a41c6e
true
null
1
6
1
1,148
0
0.6
1
0.75
1
0.211333
80.909
7,888
swe_smith::train::4445
swe_smith
train
4,445
pygments__pygments.27649ebb.func_pm_remove_assign__qkxgxweb
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
Perl6 lexer crashes with NameError on bracket constructs #### Description The Perl6 lexer throws a `NameError: name 'groups' is not defined` when processing certain bracket constructs in Perl6 code. This affects syntax highlighting for valid Perl6 files. #### Steps/Code to Reproduce ```python from pygments import h...
diff --git a/pygments/lexers/perl.py b/pygments/lexers/perl.py index 3ec1944..7a58a58 100644 --- a/pygments/lexers/perl.py +++ b/pygments/lexers/perl.py @@ -503,7 +503,6 @@ class Perl6Lexer(ExtendedRegexLexer): def brackets_callback(token_class): def callback(lexer, match, context): - groups ...
["tests/examplefiles/perl6/RoleQ.pm6::", "tests/examplefiles/perl6/grammar-test.p6::", "tests/examplefiles/perl6/test.p6::"]
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
9
3
1,088
0
0.6
1
0.75
1
0.211333
80.909
7,889
swe_smith::train::44289
swe_smith
train
44,289
pydata__patsy.a5d16484.func_pm_ctrl_invert_if__mxskp0q0
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
BS spline bounds logic swapped causing comparison errors When using BS splines with explicit `lower_bound` or `upper_bound` parameters, the bounds assignment logic appears to be incorrect, leading to `TypeError: '>' not supported between instances of 'NoneType' and 'float'` errors. #### Steps/Code to Reproduce ```py...
diff --git a/patsy/splines.py b/patsy/splines.py index a6735e5..f9c4962 100644 --- a/patsy/splines.py +++ b/patsy/splines.py @@ -230,13 +230,13 @@ class BS(object): if args["knots"] is not None: inner_knots = args["knots"] if args["lower_bound"] is not None: - lower_bound = arg...
["patsy/mgcv_cubic_splines.py::test_te_1smooth", "patsy/splines.py::test_bs_compat", "patsy/splines.py::test_bs_0degree", "patsy/splines.py::test_bs_errors"]
["patsy/build.py::test__max_allowed_dim", "patsy/build.py::test__eval_factor_numerical", "patsy/build.py::test__eval_factor_categorical", "patsy/build.py::test__column_combinations", "patsy/build.py::test__subterm_column_names_iter_and__build_subterm", "patsy/build.py::test__factors_memorize", "patsy/build.py::test__ex...
jyangballin/swesmith.x86_64.pydata_1776_patsy.a5d16484
true
null
1
9
4
1,088
0
0.6
1
0.75
1
0.211333
80.909
7,890
swe_smith::train::10249
swe_smith
train
10,249
paramiko__paramiko.23f92003.func_basic__1dkf41em
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH connections fail with "Channel is not active" error #### Description SSH connections are failing immediately after channel setup with a "Channel is not active" error. This affects all SSH operations including exec_command, invoke_shell, and SFTP operations. #### Steps/Code to Reproduce ```python import paramiko...
diff --git a/paramiko/channel.py b/paramiko/channel.py index 25326ca..8615e07 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -1011,13 +1011,13 @@ class Channel(ClosingContextManager): def _set_remote_channel(self, chanid, window_size, max_packet_size): self.remote_chanid = chanid - ...
["tests/test_client.py::SSHClientTest::test_auth_trickledown", "tests/test_client.py::SSHClientTest::test_certs_allowed_as_key_filename_values", "tests/test_client.py::SSHClientTest::test_certs_implicitly_loaded_alongside_key_filename_keys", "tests/test_client.py::SSHClientTest::test_client", "tests/test_client.py::SSH...
["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/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
8
43
1,108
0
0.6
1
0.75
1
0.211333
80.909
7,891
swe_smith::train::38451
swe_smith
train
38,451
amueller__word_cloud.ec24191c.combine_file__3ebhp167
swesmith/amueller__word_cloud.ec24191c
amueller/word_cloud
python
null
CLI argument parsing broken after recent changes #### Description The command line interface is completely broken and throws `TypeError: hasattr(): attribute name must be string` errors when trying to parse arguments. #### Steps/Code to Reproduce ```python from wordcloud import wordcloud_cli as cli # Try to parse ...
diff --git a/wordcloud/wordcloud_cli.py b/wordcloud/wordcloud_cli.py index 4ddd3db..01e6b8f 100644 --- a/wordcloud/wordcloud_cli.py +++ b/wordcloud/wordcloud_cli.py @@ -49,22 +49,20 @@ class FileType(object): self._bufsize = bufsize def __call__(self, string): - # the special argument "-" means s...
["test/test_wordcloud_cli.py::test_parse_args_are_passed_along[option0]", "test/test_wordcloud_cli.py::test_parse_args_are_passed_along[option1]", "test/test_wordcloud_cli.py::test_parse_args_are_passed_along[option2]", "test/test_wordcloud_cli.py::test_parse_args_are_passed_along[option3]", "test/test_wordcloud_cli.py...
["test/test_wordcloud.py::test_collocations", "test/test_wordcloud.py::test_collocation_stopwords", "test/test_wordcloud.py::test_collocation_stopwords_uppercase", "test/test_wordcloud.py::test_plurals_numbers", "test/test_wordcloud.py::test_multiple_s", "test/test_wordcloud.py::test_empty_text", "test/test_wordcloud.p...
jyangballin/swesmith.x86_64.amueller_1776_word_cloud.ec24191c
true
null
1
23
37
807
0
0.6
1
0.75
1
0.211167
80.9085
7,892
swe_smith::train::28700
swe_smith
train
28,700
encode__starlette.db5063c2.func_basic__vogs3v57
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
WebSocket test client context manager returns wrong object #### Description When using the WebSocket test client with a context manager, the `websocket_connect()` method returns an unexpected object instead of the WebSocket session, causing AttributeError when trying to call WebSocket methods. #### Steps/Code to Rep...
diff --git a/starlette/testclient.py b/starlette/testclient.py index 645ca10..d593e6f 100644 --- a/starlette/testclient.py +++ b/starlette/testclient.py @@ -109,13 +109,14 @@ class WebSocketTestSession: _: Future[None] = self.portal.start_task_soon(self._run) self.send({"type": "websocket.conn...
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_custom_middleware[trio]", "tests/test_applications.py::test_websocket_route[asyncio]", "tests/test_applications.py::test_websocket_raise_websocket_exception[asyncio]", "tests/test_applications.py::test_websocket_rais...
["tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/test_base.py::test_contextvars[asyncio-CustomMiddlewareWithoutBaseHTT...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
1
7
94
1,127
0
0.6
1
0.75
1
0.211167
80.9085
7,893
swe_smith::train::26462
swe_smith
train
26,462
pylint-dev__astroid.b114f6b5.func_pm_remove_cond__xvumrmli
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Dict getitem method always raises AstroidIndexError #### Description When trying to access dictionary items using the `getitem` method on Dict nodes, it always raises `AstroidIndexError` regardless of whether the key exists in the dictionary or not. #### Steps/Code to Reproduce ```python import astroid # Simple di...
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index fde3239..b9b3ba8 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -2425,14 +2425,10 @@ class Dict(NodeNG, Instance): continue for inferredkey in key.infer(context): - ...
["tests/test_inference.py::InferenceTest::test_simple_subscript", "tests/test_inference.py::InferenceTest::test_stop_iteration_leak", "tests/test_inference.py::ArgumentsTest::test_kwargs_access_by_name", "tests/test_object_model.py::InstanceModelTest::test_instance_special_model", "tests/test_object_model.py::FunctionM...
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
6
9
1,147
0
0.6
1
0.75
1
0.211167
80.9085
7,894
swe_smith::train::27169
swe_smith
train
27,169
tkrajina__gpxpy.09fc46b3.func_pm_ctrl_shuffle__e05b9s60
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
GPXTrack.get_moving_data() returns None instead of MovingData #### Description When calling `get_moving_data()` on a GPXTrack object, the method returns `None` instead of the expected `MovingData` named tuple containing moving time, stopped time, distances, and max speed. #### Steps/Code to Reproduce ```python impo...
diff --git a/gpxpy/gpx.py b/gpxpy/gpx.py index 73e2024..aa16433 100644 --- a/gpxpy/gpx.py +++ b/gpxpy/gpx.py @@ -1671,6 +1671,14 @@ class GPXTrack: self.segments = new_segments def get_moving_data(self, stopped_speed_threshold: Optional[float]=None, raw: bool=False, speed_extreemes_percentiles: float=IG...
["test.py::GPXTests::test_ignore_maximums_for_max_speed", "test.py::GPXTests::test_moving_stopped_times", "test.py::GPXTests::test_named_tuples_values_moving_data", "test.py::GPXTests::test_raw_max_speed", "test.py::GPXTests::test_speed_ignore_top_speed_percentiles"]
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
17
5
927
0
0.6
1
0.75
1
0.211167
80.9085
7,895
swe_smith::train::51575
swe_smith
train
51,575
pydicom__pydicom.7d361b3d.combine_file__z6q8lfst
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
Tag comparison operators broken after recent changes #### Description Tag comparison operations are failing when comparing with tuples or other non-Tag objects. The comparison methods seem to have been modified incorrectly, causing the logic to execute before proper type checking. #### Steps/Code to Reproduce ```py...
diff --git a/src/pydicom/tag.py b/src/pydicom/tag.py index aeaa17f..1993dc1 100644 --- a/src/pydicom/tag.py +++ b/src/pydicom/tag.py @@ -29,8 +29,8 @@ def tag_in_exception(tag: "BaseTag") -> Iterator[None]: yield except Exception as exc: stack_trace = traceback.format_exc() - msg = f"With ...
["tests/test_dataset.py::TestDataset::test_tag_exception_print", "tests/test_dataset.py::TestDataset::test_tag_exception_walk", "tests/test_dataset.py::TestDatasetSaveAs::test_save_as_compressed_no_encaps", "tests/test_filewriter.py::TestWriteAmbiguousVR::test_write_explicit_vr_raises", "tests/test_filewriter.py::TestW...
["tests/pixels/test_common.py::TestRunnerBase::test_init", "tests/pixels/test_common.py::TestRunnerBase::test_del_option", "tests/pixels/test_common.py::TestRunnerBase::test_option_properties", "tests/pixels/test_common.py::TestRunnerBase::test_planar_configuration", "tests/pixels/test_common.py::TestRunnerBase::test_s...
jyangballin/swesmith.x86_64.pydicom_1776_pydicom.7d361b3d
true
null
1
11
15
1,046
0
0.6
1
0.75
1
0.211
80.908
7,896
swe_smith::train::18488
swe_smith
train
18,488
HIPS__autograd.ac044f0d.func_pm_remove_assign__9f8hixe6
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
NameError in scipy.signal.convolve functions after recent changes #### Description The `scipy.signal.convolve` and related convolution functions are throwing a `NameError` when called. The error indicates that the variable `axes` is not defined, which suggests there was an issue with variable initialization in the si...
diff --git a/autograd/scipy/signal.py b/autograd/scipy/signal.py index 49b7619..72fc734 100644 --- a/autograd/scipy/signal.py +++ b/autograd/scipy/signal.py @@ -68,22 +68,8 @@ def parse_axes(A_shape, B_shape, conv_axes, dot_axes, mode): tuple(range(A_ndim)), tuple(range(A_ndim)), ) - ...
["tests/test_scipy.py::test_convolve", "tests/test_scipy.py::test_convolve_2d", "tests/test_scipy.py::test_convolve_ignore", "tests/test_scipy.py::test_convolve_ignore_dot"]
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
19
4
886
0
0.6
1
0.75
1
0.211
80.908
7,897
swe_smith::train::27998
swe_smith
train
27,998
jsvine__pdfplumber.02ff4313.func_pm_remove_cond__yfuhllun
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
Page.annots property returns None instead of list #### Description The `annots` property on Page objects is returning `None` instead of an empty list or list of annotations. This breaks code that expects to iterate over annotations or check their length. #### Steps/Code to Reproduce ```python import pdfplumber # O...
diff --git a/pdfplumber/page.py b/pdfplumber/page.py index 71330d8..a2a303c 100644 --- a/pdfplumber/page.py +++ b/pdfplumber/page.py @@ -313,19 +313,7 @@ class Page(Container): "contents": annot.get("Contents"), } for k, v in extras.items(): - if v is not None: ...
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_convert.py::Test::test_cli_csv", "tests/test_convert.py::Test::test_cli_csv_exclude", "tests/test_convert.py::Test::test_cli_csv_include", "tests/test_convert.py:...
["tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::test_invalid_crops", "tests/test_basics.py::Test::test_load_with_custom_laparams", "tests/test_basics.py::Test::test_loading_fileobj", "tests/test_...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
19
12
886
0
0.6
1
0.75
1
0.211
80.908
7,898
swe_smith::train::18017
swe_smith
train
18,017
pyasn1__pyasn1.0f07d724.func_pm_remove_wrapper__mf92spt2
swesmith/pyasn1__pyasn1.0f07d724
pyasn1/pyasn1
python
null
NameError when parsing time strings with timezone offsets #### Description When parsing time strings that contain timezone offset information (like `+0200`, `+0000`, etc.), a `NameError` occurs because the variable `minutes` is referenced but not defined. #### Steps/Code to Reproduce ```python from pyasn1.type impo...
diff --git a/pyasn1/type/useful.py b/pyasn1/type/useful.py index a8ae874..5becc14 100644 --- a/pyasn1/type/useful.py +++ b/pyasn1/type/useful.py @@ -82,14 +82,6 @@ class TimeMixIn(object): if len(tz) != 4: raise error.PyAsn1Error('malformed time zone offset %s' % tz) - try: - ...
["tests/type/test_useful.py::GeneralizedTimeTestCase::testCopy", "tests/type/test_useful.py::GeneralizedTimeTestCase::testToDateTime4", "tests/type/test_useful.py::GeneralizedTimeTestCase::testToDateTime5", "tests/type/test_useful.py::GeneralizedTimeTestCase::testToDateTime6", "tests/type/test_useful.py::UTCTimeTestCas...
["tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLargeTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLongTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testTagsEquivalence", "tests/codec/ber/test_decoder.py::DecoderCacheTestCase::testCache", "tests/codec/ber/test_d...
jyangballin/swesmith.x86_64.pyasn1_1776_pyasn1.0f07d724
true
null
1
9
6
1,086
0
0.6
1
0.75
1
0.211
80.908
7,899
swe_smith::train::7952
swe_smith
train
7,952
cantools__cantools.0c6a7871.func_pm_ctrl_shuffle__8hfbuhjz
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
UnboundLocalError in tester.py when using expect method #### Description When calling the `expect` method on a tester instance, an `UnboundLocalError` is raised indicating that the local variable `decoded` is referenced before assignment. #### Steps/Code to Reproduce ```python import cantools import can # Setup a ...
diff --git a/src/cantools/tester.py b/src/cantools/tester.py index c2ad9f2..c30bac3 100644 --- a/src/cantools/tester.py +++ b/src/cantools/tester.py @@ -181,6 +181,13 @@ class Message(UserDict): def _expect_input_list(self, signals, discard_other_messages): other_messages = [] + if not discard_ot...
["tests/test_tester.py::CanToolsTesterTest::test_expect", "tests/test_tester.py::CanToolsTesterTest::test_flush_input"]
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
15
2
966
0
0.6
1
0.75
1
0.211
80.908