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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,900 | swe_smith::train::46400 | swe_smith | train | 46,400 | conan-io__conan.86f29e13.pr_16327 | swesmith/conan-io__conan.86f29e13 | conan-io/conan | python | null | Negation in `--build=missing` not working as expected
While working with the `--build=missing` option, I encountered an issue where negation patterns are not being respected. Specifically, when using a command like `create pkg --build=missing:~dep/*`, the expected behavior is that the `dep` package should not be built... | diff --git a/conans/client/graph/build_mode.py b/conans/client/graph/build_mode.py
index 0426520..3e818e9 100644
--- a/conans/client/graph/build_mode.py
+++ b/conans/client/graph/build_mode.py
@@ -15,7 +15,6 @@ class BuildMode:
self.editable = False
self.patterns = []
self.build_missing_patte... | ["test/integration/command/create_test.py::test_create_build_missing_negation"] | ["test/integration/command/create_test.py::test_dependencies_order_matches_requires", "test/integration/command/create_test.py::test_create", "test/integration/command/create_test.py::test_error_create_name_version", "test/integration/command/create_test.py::test_create_user_channel", "test/integration/command/create_t... | jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13 | true | null | 1 | 14 | 1 | 1,386 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,901 | swe_smith::train::20798 | swe_smith | train | 20,798 | tobymao__sqlglot.036601ba.func_pm_op_swap__52fwbtes | swesmith/tobymao__sqlglot.036601ba | tobymao/sqlglot | python | null | Subquery unnesting fails with AttributeError on certain SQL patterns
#### Description
When processing certain SQL queries with subqueries, the optimizer's unnest_subqueries function encounters an AttributeError. This appears to happen when the function tries to access attributes on None objects during the unnesting p... | diff --git a/sqlglot/optimizer/unnest_subqueries.py b/sqlglot/optimizer/unnest_subqueries.py
index dcb2f59..a4ec348 100644
--- a/sqlglot/optimizer/unnest_subqueries.py
+++ b/sqlglot/optimizer/unnest_subqueries.py
@@ -42,9 +42,9 @@ def unnest(select, parent_select, next_alias_name):
predicate = select.find_ancest... | ["tests/test_optimizer.py::TestOptimizer::test_unnest_subqueries"] | ["tests/test_optimizer.py::TestOptimizer::test_aggfunc_annotation", "tests/test_optimizer.py::TestOptimizer::test_annotate_funcs", "tests/test_optimizer.py::TestOptimizer::test_annotate_types", "tests/test_optimizer.py::TestOptimizer::test_binary_annotation", "tests/test_optimizer.py::TestOptimizer::test_bracket_annota... | jyangballin/swesmith.x86_64.tobymao_1776_sqlglot.036601ba | true | null | 1 | 11 | 1 | 1,446 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,902 | swe_smith::train::42412 | swe_smith | train | 42,412 | r1chardj0n3s__parse.30da9e4f.func_pm_remove_cond__zl1k1hum | swesmith/r1chardj0n3s__parse.30da9e4f | r1chardj0n3s/parse | python | null | Parser returns empty regex pattern causing all parsing to fail
#### Description
When creating a Parser object, the internal regex pattern generation is broken and returns an empty string instead of the proper regex pattern. This causes all parsing operations to fail with various errors like `TypeError: 'NoneType' obj... | diff --git a/parse.py b/parse.py
index 80242e1..6c60eae 100644
--- a/parse.py
+++ b/parse.py
@@ -602,20 +602,8 @@ class Parser(object):
# turn my _format attribute into the _expression attribute
e = []
for part in PARSE_RE.split(self._format):
- if not part:
- contin... | ["README.rst::README.rst", "tests/test_bugs.py::test_named_date_issue7", "tests/test_bugs.py::test_dotted_type_conversion_pull_8", "tests/test_bugs.py::test_pm_overflow_issue16", "tests/test_bugs.py::test_pm_handling_issue57", "tests/test_bugs.py::test_user_type_with_group_count_issue60", "tests/test_bugs.py::test_unus... | ["parse.py::parse.with_pattern", "tests/test_bugs.py::test_tz_compare_to_None", "tests/test_bugs.py::test_unmatched_brace_doesnt_match", "tests/test_bugs.py::test_pickling_bug_110", "tests/test_parse.py::test_no_match", "tests/test_parse.py::test_hexadecimal", "tests/test_parse.py::test_typed_fail", "tests/test_parse.p... | jyangballin/swesmith.x86_64.r1chardj0n3s_1776_parse.30da9e4f | true | null | 1 | 14 | 83 | 1,386 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,903 | swe_smith::train::36105 | swe_smith | train | 36,105 | stanfordnlp__dspy.651a4c71.pr_826 | swesmith/stanfordnlp__dspy.651a4c71 | stanfordnlp/dspy | python | null | # Bug in num_generations handling in Predict module
## Description
There's an issue with how the `num_generations` parameter is handled in the `Predict` module. The current implementation is causing errors in multiple tests where comparison operations are attempted on `None` values.
When using the `Predict` module w... | diff --git a/dspy/predict/predict.py b/dspy/predict/predict.py
index 9f78ca8..c9c0603 100644
--- a/dspy/predict/predict.py
+++ b/dspy/predict/predict.py
@@ -103,7 +103,9 @@ class Predict(Module, Parameter):
# If temperature is unset or <=0.15, and n > 1, set temperature to 0.7 to keep randomness.
te... | ["tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/adapters/test_json_adapter.py::test_json_adapter_on_pydantic_model", "tests/clients/test_inspect_global_history.py::test_inspect_history_basic", "tests/clients/test_inspect_global_history.py::tes... | ["tests/adapters/test_chat_adapter.py::test_chat_adapter_sync_call", "tests/adapters/test_chat_adapter.py::test_chat_adapter_async_call", "tests/adapters/test_json_adapter.py::test_json_adapter_sync_call", "tests/adapters/test_json_adapter.py::test_json_adapter_async_call", "tests/adapters/test_json_adapter.py::test_js... | jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71 | true | null | 1 | 6 | 57 | 1,546 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,904 | swe_smith::train::51178 | swe_smith | train | 51,178 | marshmallow-code__apispec.8b421526.func_basic__e6jhyhtp | swesmith/marshmallow-code__apispec.8b421526 | marshmallow-code/apispec | python | null | Parameter validation broken for path parameters
When defining path parameters, the required attribute is not being set correctly and duplicate parameter detection is not working as expected.
#### Steps/Code to Reproduce
```python
from apispec import APISpec
spec = APISpec(title='Test', version='1.0.0', openapi_vers... | diff --git a/src/apispec/core.py b/src/apispec/core.py
index e9ccb40..f0a4d45 100644
--- a/src/apispec/core.py
+++ b/src/apispec/core.py
@@ -564,27 +564,19 @@ class APISpec:
"""
seen = set()
for parameter in [p for p in parameters if isinstance(p, dict)]:
- # check missing name / l... | ["tests/test_core.py::TestPath::test_path_ensures_path_parameters_required[2.0]", "tests/test_core.py::TestPath::test_path_ensures_path_parameters_required[3.0.0]", "tests/test_core.py::TestPath::test_path_invalid_parameter[2.0-parameters0]", "tests/test_core.py::TestPath::test_path_invalid_parameter[2.0-parameters1]",... | ["tests/test_core.py::TestAPISpecInit::test_raises_wrong_apispec_version", "tests/test_core.py::TestMetadata::test_openapi_metadata[2.0]", "tests/test_core.py::TestMetadata::test_openapi_metadata[3.0.0]", "tests/test_core.py::TestMetadata::test_openapi_metadata_merge_v3[3.0.0]", "tests/test_core.py::TestTags::test_tag[... | jyangballin/swesmith.x86_64.marshmallow-code_1776_apispec.8b421526 | true | null | 1 | 26 | 18 | 1,146 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,905 | swe_smith::train::24887 | swe_smith | train | 24,887 | marshmallow-code__marshmallow.9716fc62.func_pm_remove_assign__ahgcduek | swesmith/marshmallow-code__marshmallow.9716fc62 | marshmallow-code/marshmallow | python | null | Nested field schema property returns None after recent changes
#### Description
When using Nested fields, the schema property is returning None instead of the expected schema instance. This affects serialization and deserialization operations.
#### Steps/Code to Reproduce
```python
from marshmallow import Schema, f... | diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py
index e83ba19..6020108 100644
--- a/src/marshmallow/fields.py
+++ b/src/marshmallow/fields.py
@@ -582,18 +582,14 @@ class Nested(Field):
Renamed from `serializer` to `schema`.
"""
if not self._schema:
- # Inheri... | ["tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_invalid_data", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_schema_error", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_field_error", "tests/test_decorators.... | ["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 | 22 | 132 | 1,226 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277667 | 81.108 | |||
5,906 | swe_smith::train::23850 | swe_smith | train | 23,850 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_invert_if__coyuelyc | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | Scraper._check_timerange logic inverted for old vs new format patterns
#### Description
The `_check_timerange` method in the Scraper class has its logic inverted - it's using the new format parsing logic when `use_old_format` is True and the old format logic when `use_old_format` is False.
#### Steps/Code to Reprodu... | diff --git a/sunpy/net/scraper.py b/sunpy/net/scraper.py
index 202638e..178c79c 100644
--- a/sunpy/net/scraper.py
+++ b/sunpy/net/scraper.py
@@ -416,16 +416,6 @@ class Scraper:
`True` if URL's valid time range overlaps the given timerange, else `False`.
"""
if self.use_old_format:
- ... | ["sunpy/net/tests/test_scraper.py::test_files_range_same_directory_local", "sunpy/net/tests/test_scraper.py::test_files_range_same_directory_local_new_format", "sunpy/net/tests/test_scraper.py::test_check_timerange", "sunpy/net/tests/test_scraper.py::test_check_timerange_new_pattern"] | ["sunpy/net/tests/test_scraper.py::test_directory_date_pattern", "sunpy/net/tests/test_scraper.py::test_directory_date_pattern_new_format", "sunpy/net/tests/test_scraper.py::test_directory_date_pattern_false", "sunpy/net/tests/test_scraper.py::test_directory_date_patternFalse_new_format", "sunpy/net/tests/test_scraper.... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 21 | 4 | 1,245 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2775 | 81.1075 | |||
5,907 | swe_smith::train::28366 | swe_smith | train | 28,366 | encode__starlette.db5063c2.combine_file__s1oq6nvi | swesmith/encode__starlette.db5063c2 | encode/starlette | python | null | Exception handler lookup returns exception instead of None when no handler found
#### Description
When no exception handler is found for a given exception, the `_lookup_exception_handler` function incorrectly returns the exception itself instead of `None`. This breaks the expected behavior where `None` should be retu... | diff --git a/starlette/_exception_handler.py b/starlette/_exception_handler.py
index baf6e2f..bf999da 100644
--- a/starlette/_exception_handler.py
+++ b/starlette/_exception_handler.py
@@ -14,10 +14,12 @@ StatusHandlers = typing.Dict[int, ExceptionHandler]
def _lookup_exception_handler(exc_handlers: ExceptionHandl... | ["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/test_base.py::test_custom_middleware[trio]", "tests/middleware/test_base.py::test_fully_evaluated_response[trio]", "tests/test_applications.py::test_400[asyncio]"... | ["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_contextvars[asyncio-CustomMiddlewareWithoutBaseHTTPMiddleware]", "tests/middleware/test_base.py::test_run_background_tasks_... | jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2 | true | null | 1 | 22 | 66 | 1,225 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2775 | 81.1075 | |||
5,908 | swe_smith::train::42391 | swe_smith | train | 42,391 | r1chardj0n3s__parse.30da9e4f.func_pm_ctrl_shuffle__8fnj91wk | swesmith/r1chardj0n3s__parse.30da9e4f | r1chardj0n3s/parse | python | null | Parser initialization order causes AttributeError on _type_conversions access
#### Description
When creating a Parser instance, accessing certain attributes or methods results in AttributeError because `_type_conversions` is not initialized before other initialization code that may reference it.
#### Steps/Code to R... | diff --git a/parse.py b/parse.py
index 80242e1..3724ab1 100644
--- a/parse.py
+++ b/parse.py
@@ -405,36 +405,35 @@ class Parser(object):
"""Encapsulate a format string that may be used to parse other strings."""
def __init__(self, format, extra_types=None, case_sensitive=False):
+ self.__search_re = ... | ["README.rst::README.rst", "tests/test_bugs.py::test_named_date_issue7", "tests/test_bugs.py::test_dotted_type_conversion_pull_8", "tests/test_bugs.py::test_pm_overflow_issue16", "tests/test_bugs.py::test_pm_handling_issue57", "tests/test_bugs.py::test_user_type_with_group_count_issue60", "tests/test_bugs.py::test_pick... | ["parse.py::parse.with_pattern", "tests/test_bugs.py::test_tz_compare_to_None", "tests/test_bugs.py::test_unmatched_brace_doesnt_match", "tests/test_bugs.py::test_match_trailing_newline", "tests/test_findall.py::test_findall", "tests/test_findall.py::test_no_evaluate_result", "tests/test_findall.py::test_case_sensitivi... | jyangballin/swesmith.x86_64.r1chardj0n3s_1776_parse.30da9e4f | true | null | 1 | 37 | 71 | 925 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2775 | 81.1075 | |||
5,909 | swe_smith::train::10027 | swe_smith | train | 10,027 | google__textfsm.c31b6007.lm_rewrite__eybburbg | swesmith/google__textfsm.c31b6007 | google/textfsm | python | null | [Bug]: Indentation error in KeyValue method of CliTable class
### Bug summary
There appears to be an indentation error in the `KeyValue` method of the `CliTable` class. The method is defined outside the class scope, making it inaccessible as a class method.
### Code for reproduction
```python
from textfsm import cl... | diff --git a/textfsm/clitable.py b/textfsm/clitable.py
index c7ad7a7..c2b8870 100755
--- a/textfsm/clitable.py
+++ b/textfsm/clitable.py
@@ -388,20 +388,16 @@ class CliTable(texttable.TextTable):
sorted_list.append(header)
return sorted_list
- def KeyValue(self, row=None):
+def KeyValue(self, row=None)... | ["tests/clitable_test.py::UnitTestCliTable::testKeyValue", "tests/clitable_test.py::UnitTestCliTable::testTableSort"] | ["tests/clitable_test.py::UnitTestIndexTable::testCopy", "tests/clitable_test.py::UnitTestIndexTable::testGetRowMatch", "tests/clitable_test.py::UnitTestIndexTable::testParseIndex", "tests/clitable_test.py::UnitTestCliTable::testAddKey", "tests/clitable_test.py::UnitTestCliTable::testCliCompile", "tests/clitable_test.p... | jyangballin/swesmith.x86_64.google_1776_textfsm.c31b6007 | true | null | 1 | 28 | 2 | 1,105 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2775 | 81.1075 | |||
5,910 | swe_smith::train::7863 | swe_smith | train | 7,863 | cantools__cantools.0c6a7871.func_pm_class_rm_funcs__8jlr71i2 | swesmith/cantools__cantools.0c6a7871 | cantools/cantools | python | null | Tester class missing start() and flush_input() methods
#### Description
The Tester class is missing the `start()` and `flush_input()` methods, causing AttributeError when trying to use basic tester functionality.
#### Steps/Code to Reproduce
```python
import cantools
# Load a database and create a tester
db = cant... | diff --git a/src/cantools/tester.py b/src/cantools/tester.py
index c2ad9f2..808b4a6 100644
--- a/src/cantools/tester.py
+++ b/src/cantools/tester.py
@@ -360,24 +360,6 @@ class Tester:
self._notifier = can.Notifier(can_bus, [listener])
self._messages._frozen = True
- def start(self):
- """S... | ["tests/test_tester.py::CanToolsTesterTest::test_bad_message_name", "tests/test_tester.py::CanToolsTesterTest::test_enable_disable", "tests/test_tester.py::CanToolsTesterTest::test_expect", "tests/test_tester.py::CanToolsTesterTest::test_flush_input", "tests/test_tester.py::CanToolsTesterTest::test_on_message", "tests/... | ["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 | 30 | 8 | 1,065 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2775 | 81.1075 | |||
5,911 | swe_smith::train::52543 | swe_smith | train | 52,543 | pydicom__pydicom.7d361b3d.func_pm_remove_cond__5a3s79dg | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | Reading undefined length values fails with NameError
#### Description
When reading DICOM files with undefined length values, the code fails with a `NameError: name 'bytes_format' is not defined` error. This affects reading of sequences and encapsulated pixel data with undefined lengths.
#### Steps/Code to Reproduce
... | diff --git a/src/pydicom/fileutil.py b/src/pydicom/fileutil.py
index 46a4611..cd3f356 100644
--- a/src/pydicom/fileutil.py
+++ b/src/pydicom/fileutil.py
@@ -168,11 +168,6 @@ def read_undefined_length_value(
return value
search_rewind = 3
-
- if is_little_endian:
- bytes_format = b"<HH"
- ... | ["tests/test_filereader.py::TestReader::test_tag_with_unknown_length_tag_too_short", "tests/test_filereader.py::TestReader::test_tag_with_unknown_length_tag_too_short_strict", "tests/test_filereader.py::TestReader::test_un_sequence_dont_infer", "tests/test_rawread.py::TestRawReaderExplVRTests::testExplVRLittleEndianUnd... | ["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 | 40 | 8 | 864 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,912 | swe_smith::train::47014 | swe_smith | train | 47,014 | python-trio__trio.cfbbe2c1.func_basic__wcczf99t | swesmith/python-trio__trio.cfbbe2c1 | python-trio/trio | python | null | SocketStream accepts SOCK_DGRAM sockets when it should only accept SOCK_STREAM
#### Description
SocketStream is incorrectly accepting SOCK_DGRAM sockets instead of rejecting them. The validation logic appears to be inverted - it's only rejecting SOCK_DGRAM sockets when it should be rejecting everything except SOCK_ST... | diff --git a/src/trio/_highlevel_socket.py b/src/trio/_highlevel_socket.py
index c04e66e..ee28052 100644
--- a/src/trio/_highlevel_socket.py
+++ b/src/trio/_highlevel_socket.py
@@ -71,7 +71,7 @@ class SocketStream(HalfCloseableStream):
def __init__(self, socket: SocketType) -> None:
if not isinstance(sock... | ["src/trio/_tests/test_highlevel_socket.py::test_SocketStream_basics"] | ["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 | 18 | 1 | 1,304 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,913 | swe_smith::train::9317 | swe_smith | train | 9,317 | jaraco__inflect.c079a96a.func_basic__cey00xv0 | swesmith/jaraco__inflect.c079a96a | jaraco/inflect | python | null | # Bug in number_to_words function with threshold parameter
### Problem
I've found a bug in the `number_to_words` function when using the threshold parameter. The function is converting numbers incorrectly when they are compared against the threshold.
### Reproduction
Here's a simple example that demonstrates the is... | diff --git a/inflect/__init__.py b/inflect/__init__.py
index 3eef486..26b4d15 100644
--- a/inflect/__init__.py
+++ b/inflect/__init__.py
@@ -3858,7 +3858,7 @@ class engine:
num = str(num)
# Handle "stylistic" conversions (up to a given threshold)...
- if threshold is not None and float(num) >... | ["tests/test_inflections.py::test_inflect_keyword_args", "tests/test_numwords.py::test_loop", "tests/test_numwords.py::test_lines", "tests/test_numwords.py::test_array", "tests/test_numwords.py::test_issue_131", "tests/test_pwd.py::Test::test_inflect", "tests/test_pwd.py::Test::test_numwords", "tests/test_pwd.py::Test:... | ["inflect/__init__.py::inflect.bysize", "inflect/__init__.py::inflect.engine._handle_long_compounds", "inflect/__init__.py::inflect.engine._handle_prepositional_phrase", "inflect/__init__.py::inflect.engine.compare", "inflect/__init__.py::inflect.engine.ordinal", "inflect/__init__.py::inflect.engine.singular_noun", "in... | jyangballin/swesmith.x86_64.jaraco_1776_inflect.c079a96a | true | null | 1 | 18 | 8 | 1,304 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,914 | swe_smith::train::50147 | swe_smith | train | 50,147 | facebookresearch__fvcore.a491d5b9.lm_rewrite__i1stgf65 | swesmith/facebookresearch__fvcore.a491d5b9 | facebookresearch/fvcore | python | null | # COMPUTED_ attributes in CfgNode can be overwritten without raising KeyError
I found an issue with the `CfgNode` class in the config module. When setting a computed attribute (prefixed with "COMPUTED_") multiple times with different values, it doesn't raise a KeyError as expected.
## Steps to reproduce:
```python
f... | diff --git a/fvcore/common/config.py b/fvcore/common/config.py
index cef5ba9..c4c18e2 100644
--- a/fvcore/common/config.py
+++ b/fvcore/common/config.py
@@ -144,16 +144,18 @@ class CfgNode(_CfgNode):
), "The reserved key '{}' can only be used in files!".format(BASE_KEY)
return super().merge_from_list(... | ["tests/test_common.py::TestCfgNode::test_setattr"] | ["io_tests/test_file_io.py::TestNativeIO::test_bad_args", "io_tests/test_file_io.py::TestNativeIO::test_copy", "io_tests/test_file_io.py::TestNativeIO::test_exists", "io_tests/test_file_io.py::TestNativeIO::test_get_local_path", "io_tests/test_file_io.py::TestNativeIO::test_isdir", "io_tests/test_file_io.py::TestNative... | jyangballin/swesmith.x86_64.facebookresearch_1776_fvcore.a491d5b9 | true | null | 1 | 24 | 1 | 1,184 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,915 | swe_smith::train::27958 | swe_smith | train | 27,958 | jsvine__pdfplumber.02ff4313.func_pm_remove_assign__lcnu1h93 | swesmith/jsvine__pdfplumber.02ff4313 | jsvine/pdfplumber | python | null | WordExtractor missing attributes after initialization
#### Description
When creating a WordExtractor instance, several attributes that are expected to be available are not being set during initialization, causing AttributeError when trying to access them.
#### Steps/Code to Reproduce
```python
import pdfplumber
fro... | diff --git a/pdfplumber/utils/text.py b/pdfplumber/utils/text.py
index 8edafa1..97019a2 100644
--- a/pdfplumber/utils/text.py
+++ b/pdfplumber/utils/text.py
@@ -439,14 +439,10 @@ class WordExtractor:
split_at_punctuation: Union[bool, str] = False,
expand_ligatures: bool = True,
):
- self.x... | ["tests/test_basics.py::Test::test_outside_bbox", "tests/test_basics.py::Test::test_unicode_normalization", "tests/test_ca_warn_report.py::Test::test_parse", "tests/test_convert.py::Test::test_cli_text", "tests/test_dedupe_chars.py::Test::test_extra_attrs", "tests/test_dedupe_chars.py::Test::test_extract_table", "tests... | ["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_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::te... | jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313 | true | null | 1 | 13 | 58 | 1,404 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,916 | swe_smith::train::29176 | swe_smith | train | 29,176 | tox-dev__pipdeptree.c31b6418.func_pm_ctrl_shuffle__q14vbxhf | swesmith/tox-dev__pipdeptree.c31b6418 | tox-dev/pipdeptree | python | null | # Mermaid node ID generation broken in render_mermaid function
#### Description
The `mermaid_id` function in `render_mermaid` is not working correctly. When trying to generate Mermaid diagrams, the function fails with an `UnboundLocalError` because it's trying to access a variable that doesn't exist yet.
#### Steps/... | diff --git a/src/pipdeptree/_render/mermaid.py b/src/pipdeptree/_render/mermaid.py
index 05a24b3..fb513d2 100644
--- a/src/pipdeptree/_render/mermaid.py
+++ b/src/pipdeptree/_render/mermaid.py
@@ -47,23 +47,22 @@ def render_mermaid(tree: PackageDAG) -> str: # noqa: C901
node_ids_map: dict[str, str] = {}
de... | ["tests/render/test_mermaid.py::test_render_mermaid", "tests/render/test_mermaid.py::test_mermaid_reserved_ids"] | ["tests/_models/test_dag.py::test_package_dag_get_node_as_parent", "tests/_models/test_dag.py::test_package_dag_filter_fnmatch_include_a", "tests/_models/test_dag.py::test_package_dag_filter_fnmatch_include_b", "tests/_models/test_dag.py::test_package_dag_filter_fnmatch_exclude_c", "tests/_models/test_dag.py::test_pack... | jyangballin/swesmith.x86_64.tox-dev_1776_pipdeptree.c31b6418 | true | null | 1 | 17 | 2 | 1,324 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277333 | 81.107 | |||
5,917 | swe_smith::train::21469 | swe_smith | train | 21,469 | rubik__radon.54b88e58.func_pm_ctrl_invert_if__i4cbfwxq | swesmith/rubik__radon.54b88e58 | rubik/radon | python | null | CodeClimate issue generation broken for error cases
When using `dict_to_codeclimate_issues` with error results, the function fails to properly handle error cases and throws a TypeError.
#### Steps/Code to Reproduce
```python
from radon.cli import tools
# This should work but throws an error
error_result = {'error':... | diff --git a/radon/cli/tools.py b/radon/cli/tools.py
index cc8d4fa..aaafcfc 100644
--- a/radon/cli/tools.py
+++ b/radon/cli/tools.py
@@ -387,31 +387,6 @@ def dict_to_codeclimate_issues(results, threshold='B'):
for path in results:
info = results[path]
if type(info) is dict and info.get('error'):
... | ["radon/tests/test_cli_tools.py::test_cc_error_to_codeclimate", "radon/tests/test_cli_tools.py::test_cc_to_codeclimate"] | ["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 | 1 | 51 | 2 | 643 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277167 | 81.1065 | |||
5,918 | swe_smith::train::2693 | swe_smith | train | 2,693 | cknd__stackprinter.219fcc52.func_basic__fpkmoqtu | swesmith/cknd__stackprinter.219fcc52 | cknd/stackprinter | python | null | TypeError when formatting stack traces with variable assignments
#### Description
When using stackprinter to format stack traces, a `TypeError: unhashable type` error occurs during the formatting process. This appears to be related to how variable assignments are being processed in the frame formatting logic.
#### S... | diff --git a/stackprinter/frame_formatting.py b/stackprinter/frame_formatting.py
index 136920e..8f036f8 100644
--- a/stackprinter/frame_formatting.py
+++ b/stackprinter/frame_formatting.py
@@ -199,27 +199,25 @@ class FrameFormatter():
if len(fi.source_map) > 0:
minl, maxl = min(fi.source_map), max... | ["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 | 34 | 2 | 983 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277167 | 81.1065 | |||
5,919 | swe_smith::train::52834 | swe_smith | train | 52,834 | stanfordnlp__string2string.c4a72f59.func_pm_op_change_const__lvai25rx | swesmith/stanfordnlp__string2string.c4a72f59 | stanfordnlp/string2string | python | null | ### Unexpected IndexError in Needleman-Wunsch Alignment
#### Describe the Bug
When using the `NeedlemanWunsch` class for string alignment, an `IndexError` is raised unexpectedly. This occurs during the initialization of the score matrix and the dynamic programming steps of the algorithm. The error seems to be related... | diff --git a/string2string/alignment/classical.py b/string2string/alignment/classical.py
index 86c8039..abaed7b 100644
--- a/string2string/alignment/classical.py
+++ b/string2string/alignment/classical.py
@@ -445,22 +445,22 @@ class NeedlemanWunsch(StringAlignment):
score_matrix = np.zeros((len1 + 1, len2 + 1)... | ["tests/test_alignment.py::AlignmentTestCase::test_hiirschberg", "tests/test_alignment.py::AlignmentTestCase::test_needleman_wunsch"] | ["tests/test_alignment.py::AlignmentTestCase::test_dtw", "tests/test_alignment.py::AlignmentTestCase::test_longest_common_subsequence", "tests/test_alignment.py::AlignmentTestCase::test_longest_common_subsubtring", "tests/test_alignment.py::AlignmentTestCase::test_parallelization", "tests/test_alignment.py::AlignmentTe... | jyangballin/swesmith.x86_64.stanfordnlp_1776_string2string.c4a72f59 | true | null | 1 | 20 | 2 | 1,263 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277167 | 81.1065 | |||
5,920 | swe_smith::train::33233 | swe_smith | train | 33,233 | django-money__django-money.835c1ab8.func_pm_class_rm_funcs__nod6kl9o | swesmith/django-money__django-money.835c1ab8 | django-money/django-money | python | null | [Bug]: MoneyLocalizeNode __init__ method missing in djmoney template tags
### Description
The `MoneyLocalizeNode` class in the `djmoney.templatetags.djmoney` module is missing its `__init__` method. This causes all template tags that use money localization to fail.
When trying to use the `money_localize` template ta... | diff --git a/djmoney/templatetags/djmoney.py b/djmoney/templatetags/djmoney.py
index 32e1a3a..a49c0b0 100644
--- a/djmoney/templatetags/djmoney.py
+++ b/djmoney/templatetags/djmoney.py
@@ -14,16 +14,6 @@ class MoneyLocalizeNode(template.Node):
def __repr__(self):
return "<MoneyLocalizeNode %d %s>" % (self... | ["tests/test_tags.py::TestMoneyLocalizeNode::test_repr", "tests/test_tags.py::TestMoneyLocalizeNode::test_invalid_instance"] | ["tests/contrib/exchange/test_admin.py::test_last_update", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup0]", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup1]", "tests/contrib/exchange/test_backends.py::TestBackends::test_initial_update_rates[setup0]", "tests/... | jyangballin/swesmith.x86_64.django-money_1776_django-money.835c1ab8 | true | null | 1 | 11 | 2 | 1,443 | 0 | 0.6 | 1 | 0.75 | 1 | 0.277167 | 81.1065 | |||
5,921 | swe_smith::train::5779 | swe_smith | train | 5,779 | luozhouyang__python-string-similarity.115acaac.func_pm_class_rm_funcs__c79l98k5 | swesmith/luozhouyang__python-string-similarity.115acaac | luozhouyang/python-string-similarity | python | null | Missing tokenizer methods in SIFT4Options class
#### Description
When using the SIFT4 string distance algorithm, it fails with an AttributeError when trying to calculate the distance between two strings. The issue appears to be related to missing tokenizer methods that were removed from the SIFT4Options class.
#### S... | diff --git a/strsimpy/sift4.py b/strsimpy/sift4.py
index 76adc52..04a1c43 100644
--- a/strsimpy/sift4.py
+++ b/strsimpy/sift4.py
@@ -73,22 +73,6 @@ class SIFT4Options(MetricStringDistance):
self.transpositioncostevaluator = self.options['transpositioncostevaluator']
self.transpositionsevaluator = self... | ["strsimpy/sift4_test.py::SIFT4Test::testSIFT4"] | ["strsimpy/cosine_test.py::TestCosine::test_cosine", "strsimpy/damerau_test.py::TestDamerau::test_damerau", "strsimpy/jaccard_test.py::TestJaccard::test_jaccard", "strsimpy/jaro_winkler_test.py::TestJaroWinkler::test_jarowinkler", "strsimpy/levenshtein_test.py::TestLevenshtein::test_levenshtein", "strsimpy/longest_comm... | jyangballin/swesmith.x86_64.luozhouyang_1776_python-string-similarity.115acaac | true | null | 1 | 17 | 1 | 1,321 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276833 | 81.1055 | |||
5,922 | swe_smith::train::52734 | swe_smith | train | 52,734 | pydicom__pydicom.7d361b3d.lm_rewrite__ugr4c03y | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | # Private block element offset validation inconsistency
## Description
I found an issue with the `PrivateBlock` class in pydicom. When trying to access a private tag with an element offset greater than 255, the error message is inconsistent with the actual validation logic.
For example, the following code raises an ... | diff --git a/src/pydicom/dataset.py b/src/pydicom/dataset.py
index e7abffd..7ce78ee 100644
--- a/src/pydicom/dataset.py
+++ b/src/pydicom/dataset.py
@@ -141,9 +141,11 @@ class PrivateBlock:
If `element_offset` is too large.
"""
if element_offset > 0xFF:
- raise ValueError("Elem... | ["tests/test_dataset.py::TestDataset::test_private_block", "tests/test_dataset.py::TestDataset::test_delete_private_tag"] | ["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 | 6 | 2 | 1,541 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276833 | 81.1055 | |||
5,923 | r2e_gym::train::5143 | r2e_gym | train | 5,143 | pyramid__bedd5f21f6f2c7660824cf901c24a31cad8f737d | pyramid | pylons/pyramid | python | bedd5f21f6f2c7660824cf901c24a31cad8f737d | **Title:** `temporary_response` Context Manager Fails to Restore `request.response` on Exception and When Set to `None`
**Description:**
When using the `temporary_response` context manager, the original `request.response` is not properly restored if an exception is raised within the context or when setting `request.re... | diff --git a/RELEASING.txt b/RELEASING.txt
--- a/RELEASING.txt
+++ b/RELEASING.txt
@@ -24,7 +24,9 @@
communicate with contributors).
- Copy relevant changes (delta bug fixes) from CHANGES.txt to
- docs/whatsnew-X.X (if it's a major release).
+ docs/whatsnew-X.X (if it's a major release). Minor releases should
... | diff --git a/pyramid/tests/test_renderers.py b/pyramid/tests/test_renderers.py
--- a/pyramid/tests/test_renderers.py
+++ b/pyramid/tests/test_renderers.py
@@ -592,6 +592,48 @@
self.assertEqual(result.body, b'{"a": 1}')
self.assertFalse('response' in request.__dict__)
+class Test_temporary_response(u... | null | null | namanjain12/pyramid_final:bedd5f21f6f2c7660824cf901c24a31cad8f737d | true | null | 2 | 33 | null | 1,713 | 0 | 0.75 | 1 | 0.6375 | 1 | 0.3955 | 81.10525 | ||
5,924 | swe_smith::train::24275 | swe_smith | train | 24,275 | sunpy__sunpy.f8edfd5c.func_pm_remove_assign__vpytw7wr | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | Map rotation fails with NameError: name 'c' is not defined
#### Description
When trying to rotate a map using the `rotate()` method, the operation fails with a `NameError` indicating that the variable `c` is not defined. This affects all rotation operations regardless of the angle or parameters used.
#### Steps/Code... | diff --git a/sunpy/map/mapbase.py b/sunpy/map/mapbase.py
index bdcac77..b851da4 100644
--- a/sunpy/map/mapbase.py
+++ b/sunpy/map/mapbase.py
@@ -1850,25 +1850,14 @@ class GenericMap(NDData):
# Copy meta data
new_meta = self.meta.copy()
if angle is not None:
- # Calculate the parame... | ["sunpy/map/tests/test_mapbase.py::test_rotate", "sunpy/map/tests/test_mapbase.py::test_rotate_with_incompatible_missing_dtype_error", "sunpy/map/tests/test_mapbase.py::test_rotate_crpix_zero_degrees", "sunpy/map/tests/test_mapbase.py::test_rotate_pad_crpix", "sunpy/map/tests/test_mapbase.py::test_rotate_recenter", "su... | ["sunpy/map/tests/test_mapbase.py::test_notes_combined", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_references", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_existing_notes", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_notes_no_references", "sunpy/map/tests/test_mapbase.py::test_f... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 26 | 11 | 1,140 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276667 | 81.105 | |||
5,925 | swe_bench::test::1181 | swe_bench | test | 1,181 | psf__requests-2148 | psf/requests | psf/requests | python | fe693c492242ae532211e0c173324f09ca8cf227 | socket.error exception not caught/wrapped in a requests exception (ConnectionError perhaps?)
I just noticed a case where I had a socket reset on me, and was raised to me as a raw socket error as opposed to something like a requests.exceptions.ConnectionError:
```
File "/home/rtdean/***/***/***/***/***/***.py", line ... | No, this looks like an error.
`iter_content` doesn't seem to expect any socket errors, but it should. We need to fix this.
| diff --git a/requests/models.py b/requests/models.py
--- a/requests/models.py
+++ b/requests/models.py
@@ -9,6 +9,7 @@
import collections
import datetime
+import socket
from io import BytesIO, UnsupportedOperation
from .hooks import default_hooks
@@ -22,7 +23,7 @@
from .packages.urllib3.exceptions import Decod... | diff --git a/test_requests.py b/test_requests.py
--- a/test_requests.py
+++ b/test_requests.py
@@ -18,7 +18,7 @@
from requests.compat import (
Morsel, cookielib, getproxies, str, urljoin, urlparse, is_py3, builtin_str)
from requests.cookies import cookiejar_from_dict, morsel_to_cookie
-from requests.exceptions i... | ["test_requests.py::RequestsTestCase::test_DIGEST_AUTH_RETURNS_COOKIE", "test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_ALTERNATIVE", "test_requests.py::RequestsTestCase::test_HTTP_200_OK_HEAD", "test_requests.py::RequestsTestCase::test_POSTBIN_GET_POST_FILES", "test_requests.py::RequestsTestCase::test_auth_i... | ["test_requests.py::RequestsTestCase::test_BASICAUTH_TUPLE_HTTP_200_OK_GET", "test_requests.py::RequestsTestCase::test_DIGESTAUTH_QUOTES_QOP_VALUE", "test_requests.py::RequestsTestCase::test_DIGESTAUTH_WRONG_HTTP_401_GET", "test_requests.py::RequestsTestCase::test_DIGEST_AUTH_SETS_SESSION_COOKIES", "test_requests.py::R... | null | true | 2014-07-24T21:03:03Z | 1 | 5 | 10 | 2,309 | 0 | 0.8 | 1 | 0.7 | 0.8 | 0.4015 | 81.1045 | |
5,926 | swe_smith::train::28326 | swe_smith | train | 28,326 | encode__starlette.db5063c2.combine_file__f2eg8n4d | swesmith/encode__starlette.db5063c2 | encode/starlette | python | null | Debug error pages broken after recent changes
#### Description
The debug error middleware is not working correctly. When an exception occurs in debug mode, the error response is malformed and shows incorrect content.
#### Steps/Code to Reproduce
```python
from starlette.applications import Starlette
from starlette.... | diff --git a/starlette/middleware/errors.py b/starlette/middleware/errors.py
index 76ad776..25c037e 100644
--- a/starlette/middleware/errors.py
+++ b/starlette/middleware/errors.py
@@ -187,16 +187,15 @@ class ServerErrorMiddleware:
raise exc
def format_line(self, index: int, line: str, frame_lineno:... | ["tests/middleware/test_errors.py::test_debug_text[asyncio]", "tests/middleware/test_errors.py::test_debug_html[asyncio]", "tests/middleware/test_errors.py::test_debug_after_response_sent[asyncio]", "tests/middleware/test_errors.py::test_debug_text[trio]", "tests/middleware/test_errors.py::test_debug_html[trio]", "test... | ["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "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/tes... | jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2 | true | null | 1 | 27 | 8 | 1,119 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2765 | 81.1045 | |||
5,927 | swe_smith::train::5023 | swe_smith | train | 5,023 | bottlepy__bottle.a8dfef30.lm_rewrite__5p49bnct | swesmith/bottlepy__bottle.a8dfef30 | bottlepy/bottle | python | null | ### Issue with SimpleTemplate Code Property
#### Description
It seems that the recent changes to the `SimpleTemplate` class have introduced a significant issue. The `code` property, which is supposed to compile the template source into executable code, is now returning a string that appears to be unrelated to the tem... | diff --git a/bottle.py b/bottle.py
index 286b5bc..ee73bcc 100755
--- a/bottle.py
+++ b/bottle.py
@@ -4204,19 +4204,8 @@ class SimpleTemplate(BaseTemplate):
@cached_property
def code(self):
- source = self.source
- if not source:
- with open(self.filename, 'rb') as f:
- ... | ["test/test_auth.py::TestBasicAuth::test__header", "test/test_exc.py::TestAppException::test_noncatched_error", "test/test_exc.py::TestAppException::test_other_error", "test/test_mount.py::TestAppMounting::test_mount", "test/test_mount.py::TestAppMounting::test_no_slash_prefix", "test/test_outputfilter.py::TestOutputFi... | ["test/test_app.py::TestApplicationObject::test_setattr", "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", "test/test_config.py::TestConfDict::test_meta", ... | jyangballin/swesmith.x86_64.bottlepy_1776_bottle.a8dfef30 | true | null | 1 | 15 | 71 | 1,359 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2765 | 81.1045 | |||
5,928 | swe_smith::train::49406 | swe_smith | train | 49,406 | mozilla__bleach.73871d76.func_pm_class_rm_funcs__z00qrfja | swesmith/mozilla__bleach.73871d76 | mozilla/bleach | python | null | HTML parser methods missing after recent changes
#### Description
After some recent changes to the HTML parser, several methods in the `InTablePhase` class are missing, causing `NameError` exceptions when processing HTML content. The missing methods include `startTagColgroup`, `startTagTable`, `startTagInput`, and `i... | diff --git a/bleach/_vendor/html5lib/html5parser.py b/bleach/_vendor/html5lib/html5parser.py
index 5427b7d..bfaf488 100644
--- a/bleach/_vendor/html5lib/html5parser.py
+++ b/bleach/_vendor/html5lib/html5parser.py
@@ -1728,24 +1728,12 @@ def getPhases(debug):
self.parser.phase.originalPhase = originalPhase
... | ["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 | 30 | 185 | 1,058 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276333 | 81.104 | |||
5,929 | swe_smith::train::43779 | swe_smith | train | 43,779 | pydata__patsy.a5d16484.combine_file__bugd07zb | swesmith/pydata__patsy.a5d16484 | pydata/patsy | python | null | Comments not allowed in formula expressions
#### Description
When using formula expressions that contain comments, patsy incorrectly raises a "comments are not allowed" error even for valid Python expressions.
#### Steps/Code to Reproduce
```python
import patsy
# This should work but raises an error
try:
patsy... | diff --git a/patsy/tokens.py b/patsy/tokens.py
index 34d8efc..56968d4 100644
--- a/patsy/tokens.py
+++ b/patsy/tokens.py
@@ -23,44 +23,28 @@ __all__ = ["python_tokenize", "pretty_untokenize", "normalize_token_spacing"]
# A convenience wrapper around tokenize.generate_tokens. yields tuples
# (tokenize type, token st... | ["patsy/desc.py::test_ModelDesc_from_formula", "patsy/desc.py::test_eval_formula", "patsy/desc.py::test_eval_formula_error_reporting", "patsy/desc.py::test_formula_factor_origin", "patsy/eval.py::test_EvalFactor_basics", "patsy/eval.py::test_EvalFactor_memorize_passes_needed", "patsy/eval.py::test_EvalFactor_end_to_end... | ["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 | 40 | 37 | 858 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276333 | 81.104 | |||
5,930 | swe_smith::train::6925 | swe_smith | train | 6,925 | cantools__cantools.0c6a7871.combine_file__1w4tyzon | swesmith/cantools__cantools.0c6a7871 | cantools/cantools | python | null | # TypeError in Did.length property: 'int' object is not iterable
## Description
There's an issue with the `Did` class in the diagnostics module where the `length` property is returning an invalid value. When trying to load CDD files, the code fails with the error `TypeError: 'int' object is not iterable`.
## How to ... | diff --git a/src/cantools/database/diagnostics/did.py b/src/cantools/database/diagnostics/did.py
index 5a0712c..543e66c 100644
--- a/src/cantools/database/diagnostics/did.py
+++ b/src/cantools/database/diagnostics/did.py
@@ -52,7 +52,7 @@ class Did:
"""
- return self._length
+ return len(self... | ["tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_cdd_add", "tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_example_cdd", "tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_example_cdd_repr", "tests/test_diagnostics_database.py::CanTo... | ["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 | 20 | 7 | 1,258 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276333 | 81.104 | |||
5,931 | swe_smith::train::38055 | swe_smith | train | 38,055 | weaveworks__grafanalib.5c3b17ed.func_basic__704yxtfz | swesmith/weaveworks__grafanalib.5c3b17ed | weaveworks/grafanalib | python | null | [Bug]: Alert triggers order is reversed in AlertGroup validation
### Bug summary
The validation for AlertGroup triggers seems to be reversed. The validator expects a list of tuples in the format `[(Target, AlertCondition)]` but the actual validation code is checking for `[AlertCondition, Target]` order.
### Code for... | diff --git a/grafanalib/core.py b/grafanalib/core.py
index 79849fe..38b16f1 100644
--- a/grafanalib/core.py
+++ b/grafanalib/core.py
@@ -1516,13 +1516,13 @@ class AlertGroup(object):
def is_valid_triggers(instance, attribute, value):
"""Validator for AlertRule triggers"""
for trigger in value:
- if no... | ["grafanalib/tests/test_core.py::test_alertgroup", "grafanalib/tests/test_core.py::test_alertrulev8", "grafanalib/tests/test_examples.py::test_examples"] | ["grafanalib/tests/test_azuredataexplorer.py::test_serialization_azuredataexplorer_metrics_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_azure_metrics_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_azure_logs_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_... | jyangballin/swesmith.x86_64.weaveworks_1776_grafanalib.5c3b17ed | true | null | 1 | 6 | 3 | 1,537 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276167 | 81.1035 | |||
5,932 | swe_smith::train::10014 | swe_smith | train | 10,014 | google__textfsm.c31b6007.func_pm_ctrl_shuffle__81t1uwal | swesmith/google__textfsm.c31b6007 | google/textfsm | python | null | # ANSI command function in terminal.py has incorrect order of operations
It seems that the `_AnsiCmd` function in `textfsm/terminal.py` has an issue with the order of operations. When trying to use this function with invalid SGR names, it doesn't properly validate the input before attempting to use it.
## Reproductio... | diff --git a/textfsm/terminal.py b/textfsm/terminal.py
index 32252a4..796472b 100755
--- a/textfsm/terminal.py
+++ b/textfsm/terminal.py
@@ -111,6 +111,10 @@ class UsageError(Error):
def _AnsiCmd(command_list):
+ # Convert to numerical strings.
+ command_str = [str(SGR[x.lower()]) for x in command_list]
+ if no... | ["tests/terminal_test.py::TerminalTest::testAnsiCmd"] | ["tests/clitable_test.py::UnitTestIndexTable::testCopy", "tests/clitable_test.py::UnitTestIndexTable::testGetRowMatch", "tests/clitable_test.py::UnitTestIndexTable::testParseIndex", "tests/clitable_test.py::UnitTestCliTable::testAddKey", "tests/clitable_test.py::UnitTestCliTable::testCliCompile", "tests/clitable_test.p... | jyangballin/swesmith.x86_64.google_1776_textfsm.c31b6007 | true | null | 1 | 13 | 1 | 1,397 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276167 | 81.1035 | |||
5,933 | swe_smith::train::25891 | swe_smith | train | 25,891 | pylint-dev__astroid.b114f6b5.func_basic__pd5i8u9d | swesmith/pylint-dev__astroid.b114f6b5 | pylint-dev/astroid | python | null | #### Description
When using `extract_node` with transient function calls, the AST extraction is not working correctly and causes inference failures across multiple parts of the codebase.
#### Steps/Code to Reproduce
```python
from astroid import builder
# This should work but fails with inference errors
code = """
... | diff --git a/astroid/builder.py b/astroid/builder.py
index b80090b..ab6ea00 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -317,23 +317,18 @@ def _extract_expressions(node: nodes.NodeNG) -> Iterator[nodes.NodeNG]:
and isinstance(node.func, nodes.Name)
and node.func.name == _TRANSIENT_FUNC... | ["tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_advanced_inference", "tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_inference_failure", "tests/test_inference.py::InferenceTest::test_exc_ancestors", "tests/test_inference.py::InferenceTest::test_float_complex_ambiguity", "tests/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 | 15 | 16 | 1,356 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276 | 81.103 | |||
5,934 | swe_smith::train::24877 | swe_smith | train | 24,877 | marshmallow-code__marshmallow.9716fc62.func_pm_ctrl_shuffle__x8etp89r | swesmith/marshmallow-code__marshmallow.9716fc62 | marshmallow-code/marshmallow | python | null | Schema decorators not working - hooks not being registered
#### Description
Schema decorators like `@validates`, `@pre_load`, `@post_load`, etc. are not working properly. The decorated methods are not being called during schema operations.
#### Steps/Code to Reproduce
```python
from marshmallow import Schema, field... | diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py
index e21768e..a9605a0 100644
--- a/src/marshmallow/schema.py
+++ b/src/marshmallow/schema.py
@@ -147,15 +147,11 @@ class SchemaMeta(ABCMeta):
cls._hooks = cls.resolve_hooks()
def resolve_hooks(cls) -> dict[str, list[tuple[str, bool, dic... | ["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... | ["tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_invalid_data", "tests/test_decorators.py::test_decorator_post_dump_with_nested_original_and_pass_many[data0-expected_data0-expected_original_data0]", "tests/test_decorators.py::test_decorator_post_load_with_nested_original_and_pass_man... | jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62 | true | null | 1 | 15 | 42 | 1,356 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276 | 81.103 | |||
5,935 | swe_smith::train::22562 | swe_smith | train | 22,562 | graphql-python__graphene.82903263.combine_file__cq99nov7 | swesmith/graphql-python__graphene.82903263 | graphql-python/graphene | python | null | # Bug: UnmountedType.Field() returns the Field class instead of a field instance
## Description
I discovered a bug in the `UnmountedType` class where calling the `Field()` method returns the `Field` class itself instead of a field instance. This breaks code that expects to get a field instance back.
Additionally, th... | diff --git a/graphene/types/unmountedtype.py b/graphene/types/unmountedtype.py
index 83a6afe..9c06b47 100644
--- a/graphene/types/unmountedtype.py
+++ b/graphene/types/unmountedtype.py
@@ -60,7 +60,9 @@ class UnmountedType(OrderedType):
"""
from .field import Field
- return self.mount_as(Fiel... | ["graphene/types/tests/test_enum.py::test_enum_value_as_unmounted_field", "graphene/types/tests/test_enum.py::test_enum_value_as_unmounted_inputfield"] | ["examples/starwars/tests/test_query.py::test_hero_name_query", "examples/starwars/tests/test_query.py::test_hero_name_and_friends_query", "examples/starwars/tests/test_query.py::test_nested_query", "examples/starwars/tests/test_query.py::test_fetch_luke_query", "examples/starwars/tests/test_query.py::test_fetch_some_i... | jyangballin/swesmith.x86_64.graphql-python_1776_graphene.82903263 | true | null | 1 | 6 | 2 | 1,536 | 0 | 0.6 | 1 | 0.75 | 1 | 0.276 | 81.103 | |||
5,936 | swe_smith::train::51751 | swe_smith | train | 51,751 | pydicom__pydicom.7d361b3d.func_basic__4gf3967v | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | Value representation validation returns incorrect results for string types
#### Description
When validating DICOM value representations (VR) for string and bytes types, the validation function returns incorrect results. Valid string values are being rejected as invalid, and the validation logic appears to be inverted... | diff --git a/src/pydicom/valuerep.py b/src/pydicom/valuerep.py
index c81f96d..ddb0ab1 100644
--- a/src/pydicom/valuerep.py
+++ b/src/pydicom/valuerep.py
@@ -187,10 +187,10 @@ def validate_type_and_regex(vr: str, value: Any) -> tuple[bool, str]:
-------
A tuple of a boolean validation result and the error ... | ["tests/test_dataelem.py::TestDataElementValidation::test_invalid_as[12Y]", "tests/test_dataelem.py::TestDataElementValidation::test_invalid_as[0012Y]", "tests/test_dataelem.py::TestDataElementValidation::test_invalid_as[012B]", "tests/test_dataelem.py::TestDataElementValidation::test_invalid_as[Y012]", "tests/test_dat... | ["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 | 8 | 99 | 1,495 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275833 | 81.1025 | |||
5,937 | swe_smith::train::24848 | swe_smith | train | 24,848 | marshmallow-code__marshmallow.9716fc62.func_pm_ctrl_shuffle__5uqq7unq | swesmith/marshmallow-code__marshmallow.9716fc62 | marshmallow-code/marshmallow | python | null | List field deserialization fails with UnboundLocalError
#### Description
When deserializing data with a List field, an `UnboundLocalError: local variable 'result' referenced before assignment` is raised. This affects various scenarios including nested schemas, empty collections, and invalid input types.
#### Steps/C... | diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py
index e83ba19..3d05787 100644
--- a/src/marshmallow/fields.py
+++ b/src/marshmallow/fields.py
@@ -782,11 +782,12 @@ class List(Field):
return [self.inner._serialize(each, attr, obj, **kwargs) for each in value]
def _deserialize(self, val... | ["tests/test_deserialization.py::TestDeserializingNone::test_list_of_nested_allow_none_deserialize_none_to_none", "tests/test_deserialization.py::TestDeserializingNone::test_list_of_nested_non_allow_none_deserialize_none_to_validation_error", "tests/test_deserialization.py::TestFieldDeserialization::test_structured_dic... | ["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 | 13 | 23 | 1,395 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275833 | 81.1025 | |||
5,938 | swe_smith::train::164 | swe_smith | train | 164 | oauthlib__oauthlib.1fd52536.combine_file__wxxe1j7t | swesmith/oauthlib__oauthlib.1fd52536 | oauthlib/oauthlib | python | null | RequestValidator methods no longer raise NotImplementedError
#### Description
The `validate_client_id` and `validate_code` methods in `RequestValidator` are not raising `NotImplementedError` as expected. These methods should raise `NotImplementedError` to force subclasses to implement them, but they now return boolea... | diff --git a/oauthlib/oauth2/rfc6749/request_validator.py b/oauthlib/oauth2/rfc6749/request_validator.py
index 6d6ebaa..d8c1e1f 100644
--- a/oauthlib/oauth2/rfc6749/request_validator.py
+++ b/oauthlib/oauth2/rfc6749/request_validator.py
@@ -432,7 +432,15 @@ class RequestValidator:
- Authorization Code Gran... | ["tests/oauth2/rfc6749/test_request_validator.py::RequestValidatorTest::test_method_contracts"] | ["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth... | jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536 | true | null | 1 | 25 | 1 | 1,155 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275833 | 81.1025 | |||
5,939 | swe_smith::train::39396 | swe_smith | train | 39,396 | pallets__jinja.ada0a9a6.func_pm_ctrl_invert_if__ll021u5g | swesmith/pallets__jinja.ada0a9a6 | pallets/jinja | python | null | Finalize function with pass_arg decorators not working correctly
#### Description
When using finalize functions with decorators like `@pass_environment`, `@pass_context`, or `@pass_eval_context`, the finalize function is not receiving the correct arguments and raises a TypeError.
#### Steps/Code to Reproduce
```pyt... | diff --git a/src/jinja2/compiler.py b/src/jinja2/compiler.py
index 91720c5..9c4f17b 100644
--- a/src/jinja2/compiler.py
+++ b/src/jinja2/compiler.py
@@ -1425,21 +1425,19 @@ class CodeGenerator(NodeVisitor):
finalize = None
if pass_arg is None:
-
- def finalize(value: t.Any) ->... | ["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", "tests/test_api.py::TestExtendedAPI::test_eval_finalize", "tes... | ["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_cycler", "tests/test_api.py::TestExtendedAPI::test_expressions", "tests/test_api.py::TestExtendedAPI::test_template_passthrough", "tests/test_api.py::TestExtendedAPI::test_get_template_undefined", "tests/test_api.p... | jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6 | true | null | 1 | 10 | 6 | 1,455 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275833 | 81.1025 | |||
5,940 | swe_smith::train::7750 | swe_smith | train | 7,750 | cantools__cantools.0c6a7871.func_basic__tha4ukmm | swesmith/cantools__cantools.0c6a7871 | cantools/cantools | python | null | ARXML loader fails with "'bool' object has no attribute 'tag'" error
When loading ARXML files, the SystemLoader constructor has swapped the `root` and `strict` parameters internally, causing the XML root element to be assigned to `self._root` as a boolean value instead of the actual XML element. This results in failur... | diff --git a/src/cantools/database/can/formats/arxml/system_loader.py b/src/cantools/database/can/formats/arxml/system_loader.py
index f7aa786..bac6696 100644
--- a/src/cantools/database/can/formats/arxml/system_loader.py
+++ b/src/cantools/database/can/formats/arxml/system_loader.py
@@ -25,11 +25,11 @@ LOGGER = loggin... | ["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 | 41 | 23 | 835 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275833 | 81.1025 | |||
5,941 | r2e_gym::train::273 | r2e_gym | train | 273 | orange3__71b790662cfb5c712be16c067060eaddc671b034 | orange3 | biolab/orange3 | python | 71b790662cfb5c712be16c067060eaddc671b034 | **Title:** Scatterplot Graph Fails to Distinguish Subsets with Identical Colors
**Description:**
When using the Scatterplot Graph widget with a subset selection and assigning the same color to data points, the widget fails to differentiate between the subset and the rest of the data. This results in all data points a... | diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py
--- a/Orange/widgets/visualize/owscatterplotgraph.py
+++ b/Orange/widgets/visualize/owscatterplotgraph.py
@@ -1064,17 +1064,17 @@
Returns:
(tuple): a list of pens and list of brushes
... | diff --git a/Orange/widgets/visualize/tests/test_owscatterplotbase.py b/Orange/widgets/visualize/tests/test_owscatterplotbase.py
--- a/Orange/widgets/visualize/tests/test_owscatterplotbase.py
+++ b/Orange/widgets/visualize/tests/test_owscatterplotbase.py
@@ -681,8 +681,14 @@
data = graph.scatterplot_item.data
... | null | null | namanjain12/orange3_final:71b790662cfb5c712be16c067060eaddc671b034 | true | null | 1 | 14 | null | 2,087 | 0 | 0.75 | 1 | 0.6375 | 1 | 0.3945 | 81.10225 | ||
5,942 | swe_smith::train::51439 | swe_smith | train | 51,439 | spulec__freezegun.5f171db0.pr_533 | swesmith/spulec__freezegun.5f171db0 | spulec/freezegun | python | null | # Missing `tick` and `move_to` methods in `TickingDateTimeFactory` class
When using freezegun with `tick=True`, the `tick()` and `move_to()` methods are not available, causing AttributeError exceptions when trying to use them.
## Description
I'm trying to use the ticking functionality of freezegun to manipulate time... | diff --git a/freezegun/api.py b/freezegun/api.py
index d235292..3fabac1 100644
--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -509,20 +509,6 @@ class TickingDateTimeFactory:
def __call__(self) -> datetime.datetime:
return self.time_to_freeze + (real_datetime.now() - self.start)
- def tick(self, del... | ["tests/test_ticking.py::test_ticking_tick", "tests/test_ticking.py::test_ticking_move_to"] | ["tests/test_asyncio.py::test_datetime_in_coroutine", "tests/test_asyncio.py::test_freezing_time_in_coroutine", "tests/test_asyncio.py::test_freezing_time_before_running_coroutine", "tests/test_asyncio.py::test_asyncio_sleeping_not_affected_by_freeze_time", "tests/test_asyncio.py::test_asyncio_to_call_later_with_frozen... | jyangballin/swesmith.x86_64.spulec_1776_freezegun.5f171db0 | true | null | 1 | 14 | 2 | 1,374 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275667 | 81.102 | |||
5,943 | swe_smith::train::20313 | swe_smith | train | 20,313 | gruns__furl.da386f68.func_pm_class_rm_funcs__5fil4njo | swesmith/gruns__furl.da386f68 | gruns/furl | python | null | Query object missing params property and _extract_items_from_querystr method
#### Description
After recent changes, the Query class is missing the `params` property and the `_extract_items_from_querystr` method, causing AttributeError when trying to access query parameters.
#### Steps/Code to Reproduce
```python
im... | diff --git a/furl/furl.py b/furl/furl.py
index cd6d710..7c4a38e 100644
--- a/furl/furl.py
+++ b/furl/furl.py
@@ -961,18 +961,6 @@ class Query(object):
return self
- @property
- def params(self):
- return self._params
-
- @params.setter
- def params(self, params):
- items = self._i... | ["tests/test_furl.py::TestPath::test_add", "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::TestQuery::test_add", "tests/test_furl.py::TestQuery::test_asdict", "tests/test_furl.py::TestQuery::test_encode",... | ["tests/test_furl.py::TestPath::test_asdict", "tests/test_furl.py::TestPath::test_isdir_isfile", "tests/test_furl.py::TestPath::test_itruediv", "tests/test_furl.py::TestPath::test_leading_slash", "tests/test_furl.py::TestPath::test_load", "tests/test_furl.py::TestPath::test_none", "tests/test_furl.py::TestPath::test_no... | jyangballin/swesmith.x86_64.gruns_1776_furl.da386f68 | true | null | 1 | 41 | 52 | 834 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275667 | 81.102 | |||
5,944 | swe_smith::train::30434 | swe_smith | train | 30,434 | pyca__pyopenssl.04766a49.func_basic__zw6b88uq | swesmith/pyca__pyopenssl.04766a49 | pyca/pyopenssl | python | null | # [Bug]: get_elliptic_curve() returns incorrect curve instead of raising ValueError
## Description
When calling `get_elliptic_curve()` with a non-existent curve name, it returns the first available curve instead of raising a `ValueError` as expected. This can lead to silent failures and unexpected behavior in applica... | diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index 448a19a..70e7032 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -571,10 +571,16 @@ def get_elliptic_curve(name: str) -> _EllipticCurve:
If the named curve is not supported then :py:class:`ValueError` is raised.
"""
- for ... | ["tests/test_crypto.py::TestEllipticCurve::test_not_a_curve"] | ["tests/test_crypto.py::TestX509Ext::test_str", "tests/test_crypto.py::TestX509Ext::test_type", "tests/test_crypto.py::TestX509Ext::test_construction", "tests/test_crypto.py::TestX509Ext::test_invalid_extension[thisIsMadeUp-False-hi]", "tests/test_crypto.py::TestX509Ext::test_invalid_extension[proxyCertInfo-True-langua... | jyangballin/swesmith.x86_64.pyca_1776_pyopenssl.04766a49 | true | null | 1 | 12 | 1 | 1,414 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275667 | 81.102 | |||
5,945 | swe_smith::train::5098 | swe_smith | train | 5,098 | agronholm__exceptiongroup.0b4f4937.combine_module__dy8wk66i | swesmith/agronholm__exceptiongroup.0b4f4937 | agronholm/exceptiongroup | python | null | ExceptionGroup.subgroup() returns wrong results when filtering
#### Description
The `subgroup()` method on ExceptionGroup instances is returning incorrect results. When trying to filter exceptions by type or condition, it appears to be returning the opposite of what's expected - returning None when it should return a... | diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py
index a4a7ace..ecae479 100644
--- a/src/exceptiongroup/_exceptions.py
+++ b/src/exceptiongroup/_exceptions.py
@@ -142,7 +142,7 @@ class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
) -> BaseExceptionGroup[_BaseExc... | ["tests/test_exceptions.py::ExceptionGroupSubgroupTests::test_basics_subgroup_by_predicate__match", "tests/test_exceptions.py::ExceptionGroupSubgroupTests::test_basics_subgroup_by_predicate__no_match", "tests/test_exceptions.py::ExceptionGroupSubgroupTests::test_basics_subgroup_by_type__match", "tests/test_exceptions.p... | ["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 | 2 | 16 | 39 | 1,334 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275667 | 81.102 | |||
5,946 | swe_smith::train::28327 | swe_smith | train | 28,327 | encode__starlette.db5063c2.combine_file__f91w2vt0 | swesmith/encode__starlette.db5063c2 | encode/starlette | python | null | ExceptionMiddleware handlers not working correctly
I'm having issues with the ExceptionMiddleware where custom exception handlers don't seem to be working as expected. When I try to add custom handlers, they're not being called properly.
#### Steps/Code to Reproduce
```python
from starlette.applications import Starl... | diff --git a/starlette/middleware/exceptions.py b/starlette/middleware/exceptions.py
index d708929..e1fce37 100644
--- a/starlette/middleware/exceptions.py
+++ b/starlette/middleware/exceptions.py
@@ -22,25 +22,25 @@ class ExceptionMiddleware:
debug: bool = False,
) -> None:
self.app = app
- ... | ["tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[trio]", "tests/test_applications.py::test_400[asyncio]", "tests/test_applications.py::test_websocket_raise_websocket_exception[asyncio]", "tests/test_applications.py::test_websocket_ra... | ["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "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_contextvars[asyncio-CustomMiddlewareWithoutBaseHTTPMiddle... | jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2 | true | null | 1 | 12 | 58 | 1,413 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,947 | swe_smith::train::17290 | swe_smith | train | 17,290 | kennethreitz__records.5941ab27.func_pm_ctrl_shuffle__4ovmysba | swesmith/kennethreitz__records.5941ab27 | kennethreitz/records | python | null | isexception() function doesn't properly detect Exception instances and subclasses
I noticed a bug in the `isexception()` function that causes it to always return `False` regardless of the input. This affects the behavior of `RecordCollection.first()` and `RecordCollection.one()` methods when they're passed an exceptio... | diff --git a/records.py b/records.py
index b5b6766..ee1441d 100644
--- a/records.py
+++ b/records.py
@@ -12,15 +12,14 @@ from sqlalchemy import create_engine, exc, inspect, text
def isexception(obj):
+ return False
+ if isclass(obj) and issubclass(obj, Exception):
+ return True
"""Given an object... | ["tests/test_records.py::TestRecordCollection::test_first_raises_default_if_its_an_exception_subclass", "tests/test_records.py::TestRecordCollection::test_first_raises_default_if_its_an_exception_instance", "tests/test_records.py::TestRecordCollection::test_one_raises_default_if_its_an_exception_subclass", "tests/test_... | ["tests/test_105.py::test_issue105[sqlite_memory]", "tests/test_69.py::test_issue69[sqlite_memory]", "tests/test_records.py::TestRecordCollection::test_iter", "tests/test_records.py::TestRecordCollection::test_next", "tests/test_records.py::TestRecordCollection::test_iter_and_next", "tests/test_records.py::TestRecordCo... | jyangballin/swesmith.x86_64.kennethreitz_1776_records.5941ab27 | true | null | 1 | 7 | 4 | 1,513 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,948 | swe_smith::train::33632 | swe_smith | train | 33,632 | pallets__click.fde47b4b.func_basic__cd93a690 | swesmith/pallets__click.fde47b4b | pallets/click | python | null | # FileError class incorrectly swaps filename and hint parameters
### Description
The `FileError` class in the `click.exceptions` module appears to be incorrectly handling its parameters. When creating a `FileError` instance, the filename and hint parameters are being swapped in the constructor, causing incorrect erro... | diff --git a/src/click/exceptions.py b/src/click/exceptions.py
index c41c206..2349817 100644
--- a/src/click/exceptions.py
+++ b/src/click/exceptions.py
@@ -279,9 +279,9 @@ class FileError(ClickException):
if hint is None:
hint = _("unknown error")
- super().__init__(hint)
- self.u... | ["tests/test_types.py::test_file_error_surrogates"] | ["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 | 1 | 6 | 1 | 1,533 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,949 | swe_smith::train::14094 | swe_smith | train | 14,094 | python-openxml__python-docx.0cf6d71f.func_basic__ybcaqxj8 | swesmith/python-openxml__python-docx.0cf6d71f | python-openxml/python-docx | python | null | # StyleFactory returns incorrect style class for different style types
## Description
I've discovered an issue with the `StyleFactory` function in `docx/styles/style.py`. When creating style objects, it's returning the wrong style class for each style type.
For example, when I try to work with paragraph styles, I'm ... | diff --git a/src/docx/styles/style.py b/src/docx/styles/style.py
index aa175ea..079cc89 100644
--- a/src/docx/styles/style.py
+++ b/src/docx/styles/style.py
@@ -15,10 +15,10 @@ from docx.text.parfmt import ParagraphFormat
def StyleFactory(style_elm: CT_Style) -> BaseStyle:
"""Return `Style` object of appropriate ... | ["tests/styles/test_style.py::DescribeStyleFactory::it_constructs_the_right_type_of_style[paragraph]", "tests/styles/test_style.py::DescribeStyleFactory::it_constructs_the_right_type_of_style[character]", "tests/styles/test_style.py::DescribeStyleFactory::it_constructs_the_right_type_of_style[table]", "tests/styles/tes... | ["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 | 8 | 4 | 1,493 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,950 | swe_smith::train::877 | swe_smith | train | 877 | oauthlib__oauthlib.1fd52536.lm_rewrite__e551pdwl | swesmith/oauthlib__oauthlib.1fd52536 | oauthlib/oauthlib | python | null | # WWW-Authenticate header missing error details for OAuth 2.0 Bearer token
#### Description
The WWW-Authenticate header for 401 responses is missing required error details. According to RFC 6750, the WWW-Authenticate header for Bearer tokens should include error details, but currently it only includes a realm paramet... | diff --git a/oauthlib/oauth2/rfc6749/errors.py b/oauthlib/oauth2/rfc6749/errors.py
index 3b41574..e64f9f1 100644
--- a/oauthlib/oauth2/rfc6749/errors.py
+++ b/oauthlib/oauth2/rfc6749/errors.py
@@ -95,23 +95,11 @@ class OAuth2Error(Exception):
@property
def headers(self):
+ """Return a dict of headers... | ["tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py::IntrospectEndpointTest::test_introspect_token_client_authentication_failed", "tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py::IntrospectEndpointTest::test_introspect_token_public_client_authentication_failed", "tests/oauth2/rfc6749/endpoints/test... | ["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth... | jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536 | true | null | 1 | 16 | 4 | 1,333 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,951 | swe_smith::train::4463 | swe_smith | train | 4,463 | pygments__pygments.27649ebb.func_pm_remove_cond__21u5o4fm | swesmith/pygments__pygments.27649ebb | pygments/pygments | python | null | Red lexer word_callback function returns None instead of yielding tokens
#### Description
The Red lexer's `word_callback` function is not properly yielding tokens, causing a TypeError when trying to tokenize Red code. The function appears to be missing its implementation body.
#### Steps/Code to Reproduce
```python... | diff --git a/pygments/lexers/rebol.py b/pygments/lexers/rebol.py
index 94656f4..c887c2f 100644
--- a/pygments/lexers/rebol.py
+++ b/pygments/lexers/rebol.py
@@ -255,58 +255,6 @@ class RedLexer(RegexLexer):
def word_callback(lexer, match):
word = match.group()
-
- if re.match(".*:$", word):
- ... | ["tests/test_basic_api.py::test_random_input[RedLexer]", "tests/test_basic_api.py::test_lexer_options[RedLexer]", "tests/examplefiles/red/example.reds::", "tests/examplefiles/red/example.red::"] | ["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 | 52 | 4 | 613 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2755 | 81.1015 | |||
5,952 | r2e_gym::train::4571 | r2e_gym | train | 4,571 | numpy__3c4db4111947270b97ae032f02b6f60d8e20bbbd | numpy | numpy/numpy | python | 3c4db4111947270b97ae032f02b6f60d8e20bbbd | **Title:** MaskedArray creation fails with structured dtypes containing padding bytes
**Description:**
When attempting to create a `MaskedArray` from a NumPy `ndarray` that has a structured dtype with padding bytes, a `ValueError` is raised. This issue occurs because the presence of padding bytes in the dtype descript... | diff --git a/numpy/ma/core.py b/numpy/ma/core.py
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -371,24 +371,61 @@
raise TypeError(errmsg)
-def _recursive_set_default_fill_value(dtypedescr):
+def _recursive_set_default_fill_value(dt):
+ """
+ Creates the default fill value for structured dtypes
+
+... | diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -211,6 +211,12 @@
data = array((x, x[::-1]))
assert_equal(data, [[0, 1, 2, 3, 4], [4, 3, 2, 1, 0]])
self.assertTrue(data.mask is nomask)
+
+ def tes... | null | null | namanjain12/numpy_final:3c4db4111947270b97ae032f02b6f60d8e20bbbd | true | null | 1 | 65 | null | 1,065 | 0 | 0.75 | 1 | 0.6375 | 1 | 0.394167 | 81.10125 | ||
5,953 | swe_smith::train::46125 | swe_smith | train | 46,125 | conan-io__conan.86f29e13.pr_13526 | swesmith/conan-io__conan.86f29e13 | conan-io/conan | python | null | ### Issue: Deployment Path Errors with CMakeDeps
I've encountered an issue with the deployment paths when using the CMakeDeps generator. It seems that the paths are not being set correctly, which leads to errors during the deployment process.
#### Steps to Reproduce:
1. Create a Conan package with components and exp... | diff --git a/conan/tools/cmake/cmakedeps/templates/target_data.py b/conan/tools/cmake/cmakedeps/templates/target_data.py
index 1e5a6e2..511b41d 100644
--- a/conan/tools/cmake/cmakedeps/templates/target_data.py
+++ b/conan/tools/cmake/cmakedeps/templates/target_data.py
@@ -54,13 +54,7 @@ class ConfigDataTemplate(CMakeDe... | ["test/functional/command/test_install_deploy.py::test_install_deploy[False]", "test/functional/command/test_install_deploy.py::test_install_deploy[True]", "test/functional/command/test_install_deploy.py::test_install_full_deploy_layout", "test/functional/command/test_install_deploy.py::test_builtin_full_deploy", "test... | ["test/functional/command/test_install_deploy.py::test_copy_files_deploy", "test/functional/command/test_install_deploy.py::test_multi_deploy", "test/functional/command/test_install_deploy.py::test_deploy_local_import", "test/functional/command/test_install_deploy.py::test_deploy_reference", "test/functional/command/te... | jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13 | true | null | 2 | 20 | 6 | 1,252 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,954 | swe_smith::train::23987 | swe_smith | train | 23,987 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__c2ce71ie | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | UnboundLocalError in coordinate transformations between HGS and HGC frames
#### Description
When performing coordinate transformations between Heliographic Stonyhurst (HGS) and Heliographic Carrington (HGC) frames, an `UnboundLocalError` is raised indicating that the local variable `delta_time` cannot be accessed whe... | diff --git a/sunpy/coordinates/_transformations.py b/sunpy/coordinates/_transformations.py
index 5b18d02..f61e73d 100644
--- a/sunpy/coordinates/_transformations.py
+++ b/sunpy/coordinates/_transformations.py
@@ -353,6 +353,9 @@ def _rotation_matrix_hgs_to_hgc(obstime, observer_distance_from_sun):
"""
Return ... | ["sunpy/coordinates/tests/test_transformations.py::test_hgs_hgc_roundtrip", "sunpy/coordinates/tests/test_transformations.py::test_hgs_cartesian_rep_to_hgc", "sunpy/coordinates/tests/test_transformations.py::test_hgc_hgc", "sunpy/coordinates/tests/test_transformations.py::test_hgc_hgc_different_observers", "sunpy/coord... | ["sunpy/coordinates/tests/test_transformations.py::test_hcc_to_hgs", "sunpy/coordinates/tests/test_transformations.py::test_hpc_hpc", "sunpy/coordinates/tests/test_transformations.py::test_hpc_hpc_sc", "sunpy/coordinates/tests/test_transformations.py::test_hpc_hpc_null", "sunpy/coordinates/tests/test_transformations.py... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 13 | 15 | 1,392 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,955 | swe_smith::train::19372 | swe_smith | train | 19,372 | seperman__deepdiff.ed252022.func_pm_remove_cond__qy83rznw | swesmith/seperman__deepdiff.ed252022 | seperman/deepdiff | python | null | Delta initialization fails with AttributeError when creating from diff objects
#### Description
When creating a Delta object from a DeepDiff instance or other diff formats, the initialization process fails with an AttributeError. The Delta constructor appears to be missing essential initialization logic.
#### Steps/... | diff --git a/deepdiff/delta.py b/deepdiff/delta.py
index 8bafc9a..b7c45b4 100644
--- a/deepdiff/delta.py
+++ b/deepdiff/delta.py
@@ -93,17 +93,6 @@ class Delta:
else:
def _deserializer(obj, safe_to_import=None):
result = deserializer(obj)
- if result.get('_iterable_... | ["tests/test_command.py::TestCommands::test_deeppatch_command[t1.json-t2.json-args0-0]", "tests/test_command.py::TestCommands::test_deeppatch_command[t1.json-t2_json.csv-args2-0]", "tests/test_command.py::TestCommands::test_deeppatch_command[t2_json.csv-t1.json-args3-0]", "tests/test_command.py::TestCommands::test_deep... | ["tests/test_anyset.py::TestAnySet::test_anyset_init1", "tests/test_anyset.py::TestAnySet::test_anyset_init2", "tests/test_anyset.py::TestAnySet::test_anyset_init3_add", "tests/test_anyset.py::TestAnySet::test_anyset_pop1", "tests/test_anyset.py::TestAnySet::test_iter_anyset", "tests/test_cache.py::TestCache::test_cach... | jyangballin/swesmith.x86_64.seperman_1776_deepdiff.ed252022 | true | null | 1 | 23 | 120 | 1,192 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,956 | swe_smith::train::12008 | swe_smith | train | 12,008 | lepture__mistune.bf54ef67.combine_file__27rr3nzg | swesmith/lepture__mistune.bf54ef67 | lepture/mistune | python | null | # Tables in Markdown not rendering correctly
I'm having an issue with the table plugin in mistune. When I try to render markdown tables, they're not displaying correctly.
## Reproduction
Here's a simple example that demonstrates the issue:
```python
import mistune
from mistune.plugins import table
markdown = mistu... | diff --git a/src/mistune/plugins/table.py b/src/mistune/plugins/table.py
index 39e81f9..3c91501 100644
--- a/src/mistune/plugins/table.py
+++ b/src/mistune/plugins/table.py
@@ -46,25 +46,24 @@ def parse_table(
pos = m.end()
header = m.group('table_head')
align = m.group('table_align')
- thead, aligns ... | ["tests/test_plugins.py::TestPlugin1_table::test_align_table_001", "tests/test_plugins.py::TestPlugin1_table::test_align_table_002", "tests/test_plugins.py::TestPlugin1_table::test_misc_table_001", "tests/test_plugins.py::TestPlugin1_table::test_misc_table_002", "tests/test_plugins.py::TestPlugin1_table::test_misc_tabl... | ["tests/test_commonmark.py::TestCommonMark::test_atx_headings_062", "tests/test_commonmark.py::TestCommonMark::test_atx_headings_063", "tests/test_commonmark.py::TestCommonMark::test_atx_headings_064", "tests/test_commonmark.py::TestCommonMark::test_atx_headings_065", "tests/test_commonmark.py::TestCommonMark::test_atx... | jyangballin/swesmith.x86_64.lepture_1776_mistune.bf54ef67 | true | null | 1 | 31 | 20 | 1,032 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,957 | swe_smith::train::19588 | swe_smith | train | 19,588 | seperman__deepdiff.ed252022.lm_rewrite__zkqi9l5f | swesmith/seperman__deepdiff.ed252022 | seperman/deepdiff | python | null | # PathExtractionError when applying delta to incompatible object
When trying to apply a delta to an incompatible object, the error message is not helpful and doesn't provide enough information about what went wrong.
## Steps to reproduce
```python
from deepdiff import DeepDiff, Delta
# Create a delta from two dicti... | diff --git a/deepdiff/path.py b/deepdiff/path.py
index ee63b5b..119525b 100644
--- a/deepdiff/path.py
+++ b/deepdiff/path.py
@@ -116,14 +116,32 @@ def _path_to_elements(path, root_element=DEFAULT_FIRST_ELEMENT):
def _get_nested_obj(obj, elements, next_element=None):
- for (elem, action) in elements:
- if... | ["tests/test_delta.py::TestDeltaOther::test_apply_delta_to_incompatible_object1"] | ["tests/test_anyset.py::TestAnySet::test_anyset_init1", "tests/test_anyset.py::TestAnySet::test_anyset_init2", "tests/test_anyset.py::TestAnySet::test_anyset_init3_add", "tests/test_anyset.py::TestAnySet::test_anyset_pop1", "tests/test_anyset.py::TestAnySet::test_iter_anyset", "tests/test_cache.py::TestCache::test_cach... | jyangballin/swesmith.x86_64.seperman_1776_deepdiff.ed252022 | true | null | 1 | 30 | 1 | 1,052 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,958 | swe_smith::train::38586 | swe_smith | train | 38,586 | erikrose__parsimonious.0d3f5f93.combine_file__2j26m0c0 | swesmith/erikrose__parsimonious.0d3f5f93 | erikrose/parsimonious | python | null | ParseError attributes swapped causing incorrect error reporting
#### Description
When creating ParseError instances, the `text` and `expr` attributes are being assigned incorrectly, causing parse error messages to display wrong information and breaking error position calculations.
#### Steps/Code to Reproduce
```py... | diff --git a/parsimonious/exceptions.py b/parsimonious/exceptions.py
index b9e05bc..2a90f86 100644
--- a/parsimonious/exceptions.py
+++ b/parsimonious/exceptions.py
@@ -12,12 +12,9 @@ class ParseError(StrAndRepr, ParsimoniousError):
"""A call to ``Expression.parse()`` or ``match()`` didn't match."""
def __i... | ["parsimonious/tests/test_expressions.py::ErrorReportingTests::test_favoring_named_rules", "parsimonious/tests/test_expressions.py::ErrorReportingTests::test_inner_rule_succeeding", "parsimonious/tests/test_expressions.py::ErrorReportingTests::test_line_and_column", "parsimonious/tests/test_expressions.py::ErrorReporti... | ["parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_call_vs_inline", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_lists_vs_dicts", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_startswith_vs_regex", "parsimonious/tests/test_expressions.py::LengthTests::test_not", "parsimonious/t... | jyangballin/swesmith.x86_64.erikrose_1776_parsimonious.0d3f5f93 | true | null | 1 | 21 | 9 | 1,232 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275333 | 81.101 | |||
5,959 | swe_smith::train::46798 | swe_smith | train | 46,798 | python-trio__trio.cfbbe2c1.func_basic__3ibmf18h | swesmith/python-trio__trio.cfbbe2c1 | python-trio/trio | python | null | TaskStatus.started() raises RuntimeError when called once instead of twice
#### Description
When calling `TaskStatus.started()` on a task status object, it incorrectly raises a RuntimeError saying "called 'started' twice on the same task status" even when it's only been called once.
#### Steps/Code to Reproduce
```... | diff --git a/src/trio/_core/_run.py b/src/trio/_core/_run.py
index bfb38f4..cb036e6 100644
--- a/src/trio/_core/_run.py
+++ b/src/trio/_core/_run.py
@@ -943,55 +943,36 @@ class _TaskStatus(TaskStatus[StatusT]):
def started(self: _TaskStatus[StatusT], value: StatusT) -> None: ...
def started(self, value: Sta... | ["src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_breaker_registration", "src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_breaker_rebreak", "src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_multiple_breakers_exit", "src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_breaker_r... | ["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 | 41 | 49 | 831 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275167 | 81.1005 | |||
5,960 | swe_smith::train::23911 | swe_smith | train | 23,911 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__0v1v337w | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | carrington_rotation_time function broken due to variable scope issue
#### Description
The `carrington_rotation_time` function in `sunpy.coordinates.sun` is currently broken and raises `UnboundLocalError` when called. The function fails with "cannot access local variable 'estimate' where it is not associated with a va... | diff --git a/sunpy/coordinates/sun.py b/sunpy/coordinates/sun.py
index 2aa8476..bfe1e75 100644
--- a/sunpy/coordinates/sun.py
+++ b/sunpy/coordinates/sun.py
@@ -99,6 +99,14 @@ def sky_position(t='now', equinox_of_date=True):
@u.quantity_input
def carrington_rotation_time(crot, longitude: u.deg = None):
+ if long... | ["sunpy/coordinates/tests/test_sun.py::test_carrington_rotation_starttime[1-2398167.4]", "sunpy/coordinates/tests/test_sun.py::test_carrington_rotation_starttime[2-2398194.6756]", "sunpy/coordinates/tests/test_sun.py::test_carrington_rotation_starttime[1860-2448872.027509]", "sunpy/coordinates/tests/test_sun.py::test_c... | ["sunpy/coordinates/tests/test_sun.py::test_true_longitude", "sunpy/coordinates/tests/test_sun.py::test_apparent_longitude", "sunpy/coordinates/tests/test_sun.py::test_true_latitude", "sunpy/coordinates/tests/test_sun.py::test_apparent_latitude", "sunpy/coordinates/tests/test_sun.py::test_angular_radius", "sunpy/coordi... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 29 | 10 | 1,071 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275167 | 81.1005 | |||
5,961 | swe_smith::train::27879 | swe_smith | train | 27,879 | jsvine__pdfplumber.02ff4313.func_pm_ctrl_shuffle__et92o491 | swesmith/jsvine__pdfplumber.02ff4313 | jsvine/pdfplumber | python | null | # Table extraction fails with UnboundLocalError when using text-based strategies
I'm trying to extract tables from PDFs using pdfplumber, but I'm getting errors when using text-based strategies for table extraction.
## Steps to reproduce
Here's a simple script that demonstrates the issue:
```python
import pdfplumbe... | diff --git a/pdfplumber/table.py b/pdfplumber/table.py
index 0ba4445..0262aa6 100644
--- a/pdfplumber/table.py
+++ b/pdfplumber/table.py
@@ -101,19 +101,19 @@ def merge_edges(
def words_to_edges_h(
words: T_obj_list, word_threshold: int = DEFAULT_MIN_WORDS_HORIZONTAL
) -> T_obj_list:
+ max_x1 = max(map(itemge... | ["tests/test_display.py::Test::test_debug_tablefinder", "tests/test_nics_report.py::Test::test_explicit_horizontal", "tests/test_nics_report.py::Test::test_plain", "tests/test_nics_report.py::Test::test_text_only_strategy", "tests/test_table.py::Test::test_issue_466_mixed_strategy", "tests/test_table.py::Test::test_tex... | ["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_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::te... | jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313 | true | null | 1 | 17 | 7 | 1,311 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275167 | 81.1005 | |||
5,962 | swe_bench::test::1429 | swe_bench | test | 1,429 | pytest-dev__pytest-7151 | pytest-dev/pytest | pytest-dev/pytest | python | 2b51ed46d54be58da6bbcd28f68149b3fc2cd104 | unittest.TestCase cleanup functions not invoked on test failure
stdlib unittest style cleanup functions registered with `unittest.TestCase.addCleanup` are not invoked when a test fails. It appears this issue was introduced in pytest version 5.4.0, examples below for version 5.4.1.
### System Info
- Ubuntu 18.04.3 LT... | Here's a unit test to add to https://github.com/pytest-dev/pytest/blob/master/testing/test_unittest.py when the fix is ready. (Passes on ``5.3.5``, Fails on ``5.4.0``)
```python
def test_outcome_errors(testdir):
testpath = testdir.makepyfile(
"""
import unittest
class MyTestCase(unitte... | diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py
--- a/src/_pytest/debugging.py
+++ b/src/_pytest/debugging.py
@@ -272,11 +272,15 @@ def pytest_internalerror(self, excrepr, excinfo):
class PdbTrace:
@hookimpl(hookwrapper=True)
def pytest_pyfunc_call(self, pyfuncitem):
- _test_pytest_fu... | diff --git a/testing/test_unittest.py b/testing/test_unittest.py
--- a/testing/test_unittest.py
+++ b/testing/test_unittest.py
@@ -537,28 +537,24 @@ def f(_):
)
result.stdout.fnmatch_lines(
[
- "test_trial_error.py::TC::test_four SKIPPED",
+ "test_trial_error... | ["testing/test_unittest.py::test_cleanup_functions"] | ["testing/test_unittest.py::test_simple_unittest", "testing/test_unittest.py::test_runTest_method", "testing/test_unittest.py::test_isclasscheck_issue53", "testing/test_unittest.py::test_setup", "testing/test_unittest.py::test_setUpModule", "testing/test_unittest.py::test_setUpModule_failing_no_teardown", "testing/test... | null | true | 2020-05-01T20:35:40Z | 2 | 65 | 1 | 7,329 | 0 | 0.8 | 1 | 0.5 | 1 | 0.716667 | 81.1 | |
5,963 | swe_smith::train::51416 | swe_smith | train | 51,416 | spulec__freezegun.5f171db0.func_pm_remove_assign__qwl9nfwt | swesmith/spulec__freezegun.5f171db0 | spulec/freezegun | python | null | Incomplete cleanup in stop() method causes infinite recursion
When using freezegun's context manager or calling stop() manually, the cleanup process is incomplete and leaves some time functions in an inconsistent state. This causes infinite recursion when these functions are called after the freeze has ended.
#### St... | diff --git a/freezegun/api.py b/freezegun/api.py
index d235292..0927224 100644
--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -811,16 +811,11 @@ class _freeze_time:
if not freeze_factories:
datetime.datetime = real_datetime # type: ignore[misc]
- datetime.date = real_date # type: ... | ["tests/test_asyncio.py::test_datetime_in_coroutine", "tests/test_asyncio.py::test_freezing_time_in_coroutine", "tests/test_asyncio.py::test_freezing_time_before_running_coroutine", "tests/test_asyncio.py::test_asyncio_sleeping_not_affected_by_freeze_time", "tests/test_asyncio.py::test_asyncio_to_call_later_with_frozen... | ["tests/test_configure.py::test_default_ignore_list_is_overridden[ignorelist0]", "tests/test_configure.py::test_default_ignore_list_is_overridden[ignorelist1]", "tests/test_configure.py::test_extend_default_ignore_list[ignorelist0]", "tests/test_configure.py::test_extend_default_ignore_list[ignorelist1]", "tests/test_c... | jyangballin/swesmith.x86_64.spulec_1776_freezegun.5f171db0 | true | null | 1 | 11 | 75 | 1,430 | 0 | 0.6 | 1 | 0.75 | 1 | 0.275 | 81.1 | |||
5,964 | swe_smith::train::10508 | swe_smith | train | 10,508 | paramiko__paramiko.23f92003.func_basic__kusmpymy | swesmith/paramiko__paramiko.23f92003 | paramiko/paramiko | python | null | Channel initialization broken with incorrect default values
#### Description
Channel objects are being initialized with incorrect default values that break basic functionality. When creating a new channel, several critical attributes are set to wrong values causing failures in SSH operations.
#### Steps/Code to Repr... | diff --git a/paramiko/channel.py b/paramiko/channel.py
index 25326ca..20c725c 100644
--- a/paramiko/channel.py
+++ b/paramiko/channel.py
@@ -93,44 +93,39 @@ class Channel(ClosingContextManager):
"""
Create a new channel. The channel is not associated with any
particular session or `.Transpor... | ["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_channel_timeout", "tests/test_clien... | ["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 | 27 | 53 | 1,109 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,965 | swe_smith::train::24027 | swe_smith | train | 24,027 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__k618p37n | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | show_colormaps function broken when search term returns no results
#### Description
The `show_colormaps` function in `sunpy.visualization.colormaps.cm` crashes with an `UnboundLocalError` when called with a search term that doesn't match any colormaps.
#### Steps/Code to Reproduce
```python
import sunpy.visualizati... | diff --git a/sunpy/visualization/colormaps/cm.py b/sunpy/visualization/colormaps/cm.py
index 3d44c15..398b9b8 100644
--- a/sunpy/visualization/colormaps/cm.py
+++ b/sunpy/visualization/colormaps/cm.py
@@ -166,6 +166,24 @@ for name, cmap in cmlist.items():
def show_colormaps(search=None):
+
+ fig = plt.figure(fi... | ["sunpy/visualization/colormaps/tests/test_cm.py::test_invalid_show_cmaps"] | ["sunpy/visualization/colormaps/tests/test_cm.py::test_get_cmap"] | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 40 | 1 | 849 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,966 | swe_smith::train::9475 | swe_smith | train | 9,475 | marshmallow-code__webargs.dbde72fe.combine_file__8womqnkp | swesmith/marshmallow-code__webargs.dbde72fe | marshmallow-code/webargs | python | null | MultiDictProxy breaks with UnboundLocalError when accessing fields
#### Description
When using MultiDictProxy to wrap multidict objects, accessing field values raises an UnboundLocalError due to a variable being referenced before assignment.
#### Steps/Code to Reproduce
```python
from webargs.multidictproxy import ... | diff --git a/src/webargs/multidictproxy.py b/src/webargs/multidictproxy.py
index de9b82b..56372a4 100644
--- a/src/webargs/multidictproxy.py
+++ b/src/webargs/multidictproxy.py
@@ -6,7 +6,7 @@ from collections.abc import MutableMapping
import marshmallow as ma
-class MultiDictProxy(MutableMapping):
+class MultiDic... | ["tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_querystring_args", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_form", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json_or_form", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_querystring_default", "tests/test_aioh... | ["tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json_missing", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json_with_charset", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json_with_vendor_media_type", "tests/... | jyangballin/swesmith.x86_64.marshmallow-code_1776_webargs.dbde72fe | true | null | 1 | 25 | 172 | 1,149 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,967 | swe_smith::train::51618 | swe_smith | train | 51,618 | pydicom__pydicom.7d361b3d.combine_module__jg51in38 | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | dcmwrite fails with ValueError when no transfer syntax specified
#### Description
When calling `dcmwrite` without specifying a transfer syntax, the function now raises a `ValueError` instead of using fallback encoding logic. This breaks existing code that relied on the previous behavior of automatically determining e... | diff --git a/src/pydicom/datadict.py b/src/pydicom/datadict.py
index b4f9f3a..0064593 100644
--- a/src/pydicom/datadict.py
+++ b/src/pydicom/datadict.py
@@ -449,9 +449,12 @@ def keyword_for_tag(tag: TagType) -> str:
group length elements will always return ``'GroupLength'``.
"""
try:
- return ... | ["tests/test_dataelem.py::TestRawDataElement::test_read_known_private_tag_implicit", "tests/test_dataelem.py::TestRawDataElement::test_read_known_private_tag_explicit", "tests/test_dataelem.py::TestRawDataElement::test_read_known_private_tag_explicit_no_lookup", "tests/test_dataelem.py::TestDataElementValidation::test_... | ["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 | 2 | 23 | 65 | 1,189 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,968 | swe_smith::train::33567 | swe_smith | train | 33,567 | pallets__click.fde47b4b.func_basic__a3b8aad0 | swesmith/pallets__click.fde47b4b | pallets/click | python | null | File operations broken with stdin/stdout handling
When using Click's file handling with `-` (stdin/stdout), the streams are getting mixed up. Writing to stdout when expecting stdin and vice versa.
#### Steps to Reproduce
```python
import click
@click.command()
@click.argument('input', type=click.File('rb'))
@click.... | diff --git a/src/click/_compat.py b/src/click/_compat.py
index feb8366..b35c4fd 100644
--- a/src/click/_compat.py
+++ b/src/click/_compat.py
@@ -378,22 +378,18 @@ def open_stream(
binary = "b" in mode
filename = os.fspath(filename)
- # Standard streams first. These are simple because they ignore the
- ... | ["tests/test_arguments.py::test_file_args", "tests/test_arguments.py::test_file_atomics", "tests/test_arguments.py::test_stdout_default", "tests/test_chain.py::test_pipeline[args0-foo\\nbar-expect0]", "tests/test_testing.py::test_file_stdin_attrs", "tests/test_utils.py::test_open_file", "tests/test_utils.py::test_open_... | ["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 | 1 | 30 | 14 | 1,049 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,969 | swe_smith::train::1629 | swe_smith | train | 1,629 | Cog-Creators__Red-DiscordBot.33e0eac7.lm_rewrite__aicq62vq | swesmith/Cog-Creators__Red-DiscordBot.33e0eac7 | cog-creators/red-discordbot | python | null | # Config registration fails when trying to register a value under a group name
## Describe the bug
When trying to register a value under a name that already exists as a group, the error message is not clear and the function doesn't work as expected.
## Steps to Reproduce
```python
from redbot.core import Config
conf... | diff --git a/redbot/core/config.py b/redbot/core/config.py
index dc6bbed..16ada86 100644
--- a/redbot/core/config.py
+++ b/redbot/core/config.py
@@ -798,19 +798,21 @@ class Config(metaclass=ConfigMeta):
registered under the same name.
"""
for k, v in to_add.items():
- val_is_dict =... | ["tests/core/test_config.py::test_nested_group_value_badreg", "tests/core/test_config.py::test_nested_overlapping"] | ["tests/cogs/test_alias.py::test_is_valid_alias_name", "tests/cogs/test_alias.py::test_empty_guild_aliases", "tests/cogs/test_alias.py::test_empty_global_aliases", "tests/cogs/test_economy.py::test_bank_transfer", "tests/cogs/test_economy.py::test_bank_set", "tests/cogs/test_economy.py::test_bank_can_spend", "tests/cog... | jyangballin/swesmith.x86_64.cog-creators_1776_red-discordbot.33e0eac7 | true | null | 1 | 18 | 2 | 1,289 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,970 | swe_smith::train::39959 | swe_smith | train | 39,959 | scanny__python-pptx.278b47b1.combine_file__1un37hzw | swesmith/scanny__python-pptx.278b47b1 | scanny/python-pptx | python | null | Slide part methods returning wrong values after recent changes
#### Description
After some recent changes, several slide part methods are not working correctly. When trying to get images from slides or work with notes slides, the methods are returning unexpected values or None instead of the expected objects.
#### S... | diff --git a/src/pptx/parts/slide.py b/src/pptx/parts/slide.py
index 6650564..cb1a419 100644
--- a/src/pptx/parts/slide.py
+++ b/src/pptx/parts/slide.py
@@ -38,7 +38,9 @@ class BaseSlidePart(XmlPart):
Raises |KeyError| if no image is related by that id, which would generally indicate a
corrupted .pptx... | ["tests/parts/test_slide.py::DescribeBaseSlidePart::it_can_get_a_related_image_by_rId", "tests/parts/test_slide.py::DescribeNotesSlidePart::it_adds_a_notes_slide_part_to_help", "tests/parts/test_slide.py::DescribeSlidePart::it_knows_its_slide_id", "tests/parts/test_slide.py::DescribeSlidePart::it_adds_a_notes_slide_par... | ["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 | 18 | 4 | 1,289 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,971 | swe_smith::train::43006 | swe_smith | train | 43,006 | gawel__pyquery.811cd048.combine_file__ge0uxzm6 | swesmith/gawel__pyquery.811cd048 | gawel/pyquery | python | null | # HTTP requests broken in PyQuery
## Description
I've encountered several issues with HTTP requests in PyQuery. When trying to fetch content from a URL, the library is not working as expected.
## To Reproduce
I'm trying to use PyQuery to scrape a simple webpage:
```python
from pyquery import PyQuery as pq
# This ... | diff --git a/pyquery/openers.py b/pyquery/openers.py
index 22ee06b..7b9a9a3 100644
--- a/pyquery/openers.py
+++ b/pyquery/openers.py
@@ -26,7 +26,7 @@ def _query(url, method, kwargs):
data = urlencode(data)
if isinstance(method, basestring) and \
- method.lower() == 'get' and data:
+ method.... | ["tests/test_pyquery.py::TestWebScrapping::test_get", "tests/test_pyquery.py::TestWebScrapping::test_post", "tests/test_pyquery.py::TestWebScrapping::test_session", "tests/test_pyquery.py::TestWebScrappingEncoding::test_get", "tests/test_pyquery.py::TestWebScrappingTimeouts::test_get"] | ["README.rst::README.rst", "docs/attributes.rst::attributes.rst", "docs/css.rst::css.rst", "docs/manipulating.rst::manipulating.rst", "docs/pseudo_classes.rst::pseudo_classes.rst", "docs/scrap.rst::scrap.rst", "docs/tips.rst::tips.rst", "docs/traversing.rst::traversing.rst", "pyquery/cssselectpatch.py::pyquery.cssselec... | jyangballin/swesmith.x86_64.gawel_1776_pyquery.811cd048 | true | null | 1 | 10 | 5 | 1,449 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274833 | 81.0995 | |||
5,972 | swe_smith::train::45183 | swe_smith | train | 45,183 | modin-project__modin.8c7799fd.lm_rewrite__sg8bf6z1 | swesmith/modin-project__modin.8c7799fd | modin-project/modin | python | null | ### Issue: `transpose` Functionality Regression
#### Description
After the recent changes, it seems that the `transpose` function is not behaving as expected. When attempting to transpose arrays, the function raises a `TypeError` unexpectedly. This issue appears to affect arrays of various shapes, including simple 1D... | diff --git a/modin/numpy/array_shaping.py b/modin/numpy/array_shaping.py
index e96acf5..2bbb3f6 100644
--- a/modin/numpy/array_shaping.py
+++ b/modin/numpy/array_shaping.py
@@ -42,16 +42,27 @@ def shape(a):
def transpose(a, axes=None):
+ """
+ Permute the dimensions of an array.
+
+ Parameters
+ --... | ["modin/tests/numpy/test_array_shaping.py::test_transpose[100]", "modin/tests/numpy/test_array_shaping.py::test_transpose[operand_shape1]", "modin/tests/numpy/test_array_shaping.py::test_transpose[operand_shape2]"] | ["modin/tests/numpy/test_array_shaping.py::test_ravel[100]", "modin/tests/numpy/test_array_shaping.py::test_ravel[operand_shape1]", "modin/tests/numpy/test_array_shaping.py::test_ravel[operand_shape2]", "modin/tests/numpy/test_array_shaping.py::test_shape[100]", "modin/tests/numpy/test_array_shaping.py::test_shape[oper... | jyangballin/swesmith.x86_64.modin-project_1776_modin.8c7799fd | true | null | 1 | 23 | 3 | 1,188 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,973 | swe_smith::train::4556 | swe_smith | train | 4,556 | pygments__pygments.27649ebb.lm_rewrite__a4wa8411 | swesmith/pygments__pygments.27649ebb | pygments/pygments | python | null | ### AttributeError in HtmlFormatter with Specific Options
#### Description
It seems there's an issue with the `HtmlFormatter` when using certain combinations of options. Specifically, when attempting to format with options like `linenos=True`, `noclasses=True`, and `full=True`, an `AttributeError` is raised. This err... | diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 3330c1d..bfb63de 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -482,13 +482,15 @@ class HtmlFormatter(Formatter):
return cclass or ''
def _create_stylesheet(self):
- t2c = self.ttype2class... | ["tests/test_html_formatter.py::test_valid_output", "tests/test_html_formatter.py::test_all_options"] | ["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 | 11 | 2 | 1,428 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,974 | swe_smith::train::29914 | swe_smith | train | 29,914 | getnikola__nikola.0f4c230e.func_pm_ctrl_shuffle__wfh976b7 | swesmith/getnikola__nikola.0f4c230e | getnikola/nikola | python | null | generic_post_list_renderer broken after code reorganization
#### Description
The `generic_post_list_renderer` method appears to have broken functionality after some code was moved around. The method seems to have unreachable code and variables being used before they're defined.
#### Steps/Code to Reproduce
When try... | diff --git a/nikola/nikola.py b/nikola/nikola.py
index 6f80377..44d2114 100644
--- a/nikola/nikola.py
+++ b/nikola/nikola.py
@@ -2403,33 +2403,32 @@ class Nikola(object):
url_type=post.url_type)
def generic_post_list_renderer(self, lang, posts, output_name, template_name, fil... | ["tests/test_path_handlers.py::test_render_taxonomies_permalink[authors-base:]", "tests/test_path_handlers.py::test_render_taxonomies_permalink[authors-base:blog]", "tests/test_path_handlers.py::test_render_taxonomies_permalink[authors-base:path/with/trailing/slash/]", "tests/test_path_handlers.py::test_render_taxonomi... | ["tests/integration/test_dev_server_auto.py::test_serves_root_dir[https://example.org]", "tests/integration/test_dev_server_auto.py::test_serves_root_dir[https://example.org:1234/blog]", "tests/integration/test_dev_server_auto.py::test_serves_root_dir[https://example.org:3456/blog/]", "tests/integration/test_dev_server... | jyangballin/swesmith.x86_64.getnikola_1776_nikola.0f4c230e | true | null | 1 | 25 | 20 | 1,148 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,975 | swe_smith::train::1673 | swe_smith | train | 1,673 | agronholm__typeguard.b6a7e438.combine_file__o3wq34zr | swesmith/agronholm__typeguard.b6a7e438 | agronholm/typeguard | python | null | Type checking silently fails instead of raising exceptions
#### Description
Type checking functions are not properly raising TypeCheckError exceptions when type violations occur. Instead of failing with appropriate error messages, the functions appear to silently continue execution or return unexpected values.
#### ... | diff --git a/src/typeguard/_functions.py b/src/typeguard/_functions.py
index ca21c14..77e72fa 100644
--- a/src/typeguard/_functions.py
+++ b/src/typeguard/_functions.py
@@ -128,20 +128,20 @@ def check_argument_types(
exc = TypeCheckError(
f"{func_name}() was declared never to be called but... | ["tests/test_importhook.py::test_blanket_import", "tests/test_instrumentation.py::test_type_checked_func_error[typechecked]", "tests/test_instrumentation.py::test_type_checked_method[typechecked]", "tests/test_instrumentation.py::test_type_checked_classmethod[typechecked]", "tests/test_instrumentation.py::test_type_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 | 24 | 52 | 1,168 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,976 | swe_smith::train::24406 | swe_smith | train | 24,406 | sunpy__sunpy.f8edfd5c.lm_rewrite__mpel5c1c | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | # coordinate_system property returns a list instead of a SpatialPair
## Description
I've found that the `coordinate_system` property in `GenericMap` is now returning a list instead of a `SpatialPair` object. This is causing issues when trying to access the `axis1` and `axis2` attributes.
For example, when I try to a... | diff --git a/sunpy/map/mapbase.py b/sunpy/map/mapbase.py
index bdcac77..a7cbcb3 100644
--- a/sunpy/map/mapbase.py
+++ b/sunpy/map/mapbase.py
@@ -1266,29 +1266,13 @@ class GenericMap(NDData):
If not present, defaults to (HPLN-TAN, HPLT-TAN), and emits a warning.
"""
ctype1 = self.meta.get('cty... | ["sunpy/map/tests/test_mapbase.py::test_wcs", "sunpy/map/tests/test_mapbase.py::test_coordinate_system", "sunpy/map/tests/test_mapbase.py::test_default_coordinate_system", "sunpy/map/tests/test_mapbase.py::test_coordinate_system_solar_x_solar_y"] | ["sunpy/map/tests/test_mapbase.py::test_notes_combined", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_references", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_existing_notes", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_notes_no_references", "sunpy/map/tests/test_mapbase.py::test_f... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 28 | 4 | 1,088 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,977 | swe_smith::train::54023 | swe_smith | train | 54,023 | blevesearch__bleve.f2876b5e.func_pm_flip_operators__lur9ajcw | swesmith/blevesearch__bleve.f2876b5e | blevesearch/bleve | go | null | Index initialization fails with divide by zero panic
#### Description
When creating a new in-memory index, the initialization process crashes with a "runtime error: integer divide by zero" panic during the batch processing phase.
#### Steps/Code to Reproduce
```go
package main
import (
"github.com/blevesearch/... | diff --git a/index/upsidedown/upsidedown.go b/index/upsidedown/upsidedown.go
index 2400776..d5f882d 100644
--- a/index/upsidedown/upsidedown.go
+++ b/index/upsidedown/upsidedown.go
@@ -206,7 +206,7 @@ func (udc *UpsideDownCouch) batchRows(writer store.KVWriter, addRowsAll [][]Upsi
rowBuf.buf = make([]byte, tfr.Di... | ["TestInMemIndex", "TestDump", "Test_ipv4CidrQuery"] | ["TestBuilder", "TestIndexAliasSingle", "TestIndexAliasClosed", "TestIndexAliasEmpty", "TestIndexAliasMulti", "TestMultiSearchNoError", "TestMultiSearchSomeError", "TestMultiSearchAllError", "TestMultiSearchSecondPage", "TestMultiSearchTimeout", "TestMultiSearchTimeoutPartial", "TestIndexAliasMultipleLayer", "TestMulti... | jyangballin/swesmith.x86_64.blevesearch_1776_bleve.f2876b5e | true | null | 1 | 24 | 3 | 1,168 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,978 | swe_smith::train::30045 | swe_smith | train | 30,045 | getnikola__nikola.0f4c230e.func_pm_remove_cond__ep41tpxf | swesmith/getnikola__nikola.0f4c230e | getnikola/nikola | python | null | WordPress import fails to handle empty string values for image metadata
#### Description
When importing WordPress content, the import process crashes when encountering empty string values in image metadata fields that are expected to be numeric (int or float). The error occurs during the processing of image metadata ... | diff --git a/nikola/plugins/command/import_wordpress.py b/nikola/plugins/command/import_wordpress.py
index 9a8b130..88d1362 100644
--- a/nikola/plugins/command/import_wordpress.py
+++ b/nikola/plugins/command/import_wordpress.py
@@ -590,19 +590,11 @@ to
def add(our_key, wp_key, is_int=False, ig... | ["tests/integration/test_wordpress_import.py::test_filled_directories[pages]", "tests/integration/test_wordpress_import.py::test_filled_directories[posts]", "tests/test_command_import_wordpress.py::test_importing_posts_and_attachments"] | ["tests/integration/test_archive_full.py::test_avoid_double_slash_in_rss", "tests/integration/test_archive_full.py::test_check_files", "tests/integration/test_archive_full.py::test_check_links", "tests/integration/test_archive_full.py::test_index_in_sitemap", "tests/integration/test_archive_full.py::test_full_archive[o... | jyangballin/swesmith.x86_64.getnikola_1776_nikola.0f4c230e | true | null | 1 | 9 | 3 | 1,468 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274667 | 81.099 | |||
5,979 | swe_smith::train::44599 | swe_smith | train | 44,599 | mahmoud__glom.fb3c4e76.combine_file__k4r4gpv8 | swesmith/mahmoud__glom.fb3c4e76 | mahmoud/glom | python | null | Iter spec breaks with incorrect path indexing and control flow
#### Description
The `Iter` streaming spec has several issues with path indexing and control flow handling that cause unexpected behavior when processing iterables.
#### Steps/Code to Reproduce
```python
from glom import glom, Iter, T, SKIP, STOP
from i... | diff --git a/glom/streaming.py b/glom/streaming.py
index 4da5fb5..b7bc48c 100644
--- a/glom/streaming.py
+++ b/glom/streaming.py
@@ -93,21 +93,18 @@ class Iter:
def _iterate(self, target, scope):
iterate = scope[TargetRegistry].get_handler('iterate', target, path=scope[Path])
try:
- it... | ["glom/test/test_streaming.py::test_iter", "glom/test/test_streaming.py::test_filter", "glom/test/test_streaming.py::test_map", "glom/test/test_streaming.py::test_split_flatten", "glom/test/test_streaming.py::test_chunked", "glom/test/test_streaming.py::test_windowed", "glom/test/test_streaming.py::test_unique", "glom/... | ["glom/test/test_basic.py::test_initial_integration", "glom/test/test_basic.py::test_list_item_lift_and_access", "glom/test/test_basic.py::test_coalesce", "glom/test/test_basic.py::test_skip", "glom/test/test_basic.py::test_stop", "glom/test/test_basic.py::test_top_level_default", "glom/test/test_basic.py::test_val", "... | jyangballin/swesmith.x86_64.mahmoud_1776_glom.fb3c4e76 | true | null | 1 | 19 | 13 | 1,267 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2745 | 81.0985 | |||
5,980 | swe_smith::train::24034 | swe_smith | train | 24,034 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__lak3zfo7 | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | UnboundLocalError in header_to_xml function when writing JP2 files
#### Description
When trying to write JP2 files, the `header_to_xml` function throws an `UnboundLocalError` because the `already_added` variable is referenced before being defined.
#### Steps/Code to Reproduce
```python
import sunpy.io._jp2 as _jp2
... | diff --git a/sunpy/io/_jp2.py b/sunpy/io/_jp2.py
index 9653685..cb01b84 100644
--- a/sunpy/io/_jp2.py
+++ b/sunpy/io/_jp2.py
@@ -87,6 +87,22 @@ def get_header(filepath):
def header_to_xml(header):
+ fits = ET.Element("fits")
+ for key in header:
+ # Some headers span multiple lines and get duplicated ... | ["sunpy/io/tests/test_jp2.py::test_simple_write"] | ["sunpy/io/tests/test_jp2.py::test_read", "sunpy/io/tests/test_jp2.py::test_read_header", "sunpy/io/tests/test_jp2.py::test_read_memmap"] | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 33 | 1 | 987 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2745 | 81.0985 | |||
5,981 | swe_smith::train::22503 | swe_smith | train | 22,503 | tweepy__tweepy.91a41c6e.func_pm_remove_assign__a5fwva1i | swesmith/tweepy__tweepy.91a41c6e | tweepy/tweepy | python | null | ### RecursionError when accessing tweet-related endpoints
**Describe the bug**
Encountering a `RecursionError` when trying to access certain tweet-related endpoints using the Tweepy client. This seems to occur when attempting to retrieve tweets or mentions for a user, as well as when fetching quote tweets.
**To Repro... | diff --git a/tweepy/tweet.py b/tweepy/tweet.py
index e6947d1..07e17c5 100644
--- a/tweepy/tweet.py
+++ b/tweepy/tweet.py
@@ -159,9 +159,7 @@ class Tweet(HashableID, DataMapping):
)
def __init__(self, data):
- self.data = data
self.id = int(data["id"])
- self.text = data["text"]
... | ["tests/test_asyncclient.py::TweepyAsyncClientTests::test_bookmarks", "tests/test_asyncclient.py::TweepyAsyncClientTests::test_get_home_timeline", "tests/test_asyncclient.py::TweepyAsyncClientTests::test_get_liked_tweets", "tests/test_asyncclient.py::TweepyAsyncClientTests::test_get_list_tweets", "tests/test_asyncclien... | ["tests/test_api.py::TweepyAPITests::test_indicate_direct_message_typing", "tests/test_api.py::TweepyAPITests::testaddremovelistmember", "tests/test_api.py::TweepyAPITests::testaddremovelistmembers", "tests/test_api.py::TweepyAPITests::testcachedifferentqueryparameters", "tests/test_api.py::TweepyAPITests::testcachedre... | jyangballin/swesmith.x86_64.tweepy_1776_tweepy.91a41c6e | true | null | 1 | 22 | 22 | 1,207 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2745 | 81.0985 | |||
5,982 | swe_smith::train::38426 | swe_smith | train | 38,426 | dbader__schedule.82a43db1.func_pm_remove_assign__p3fap6yd | swesmith/dbader__schedule.82a43db1 | dbader/schedule | python | null | # Job.until() method fails when using string format for until time
## Description
I've discovered an issue with the `until()` method in the `Job` class when using a string format for the until time. When trying to schedule a job with a string-formatted end time, the code crashes with an `UnboundLocalError`.
## Steps... | diff --git a/schedule/__init__.py b/schedule/__init__.py
index 8e12eeb..30e417d 100644
--- a/schedule/__init__.py
+++ b/schedule/__init__.py
@@ -611,16 +611,6 @@ class Job:
datetime.datetime.now(), until_time
)
elif isinstance(until_time, str):
- cancel_after = self._de... | ["test_schedule.py::SchedulerTests::test_until_time"] | ["test_schedule.py::SchedulerTests::test_align_utc_offset_after_fold_fixate", "test_schedule.py::SchedulerTests::test_align_utc_offset_no_change", "test_schedule.py::SchedulerTests::test_align_utc_offset_no_timezone", "test_schedule.py::SchedulerTests::test_align_utc_offset_with_dst_fold", "test_schedule.py::SchedulerT... | jyangballin/swesmith.x86_64.dbader_1776_schedule.82a43db1 | true | null | 1 | 12 | 1 | 1,407 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2745 | 81.0985 | |||
5,983 | swe_smith::train::24026 | swe_smith | train | 24,026 | sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__k0mtn26h | swesmith/sunpy__sunpy.f8edfd5c | sunpy/sunpy | python | null | Observer coordinate validation fails when using SkyCoord with frame attribute
#### Description
When passing a SkyCoord object with a valid Heliographic frame to functions that set WCS auxiliary observer coordinates, the validation incorrectly fails with "obs_coord must be in a Stonyhurst or Carrington frame" error.
... | diff --git a/sunpy/coordinates/wcs_utils.py b/sunpy/coordinates/wcs_utils.py
index 72706d7..2e99071 100644
--- a/sunpy/coordinates/wcs_utils.py
+++ b/sunpy/coordinates/wcs_utils.py
@@ -123,6 +123,13 @@ def _sunpy_frame_class_from_ctypes(ctypes):
def _set_wcs_aux_obs_coord(wcs, obs_frame):
+
+ if isinstance(obs_... | ["sunpy/coordinates/tests/test_wcs_utils.py::test_wcs_aux"] | ["sunpy/coordinates/tests/test_wcs_utils.py::test_wcs_frame_mapping[ctype0-Helioprojective]", "sunpy/coordinates/tests/test_wcs_utils.py::test_wcs_frame_mapping[ctype1-Helioprojective]", "sunpy/coordinates/tests/test_wcs_utils.py::test_wcs_frame_mapping[ctype2-HeliographicStonyhurst]", "sunpy/coordinates/tests/test_wcs... | jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c | true | null | 1 | 19 | 1 | 1,267 | 0 | 0.6 | 1 | 0.75 | 1 | 0.2745 | 81.0985 | |||
5,984 | swe_smith::train::18223 | swe_smith | train | 18,223 | msiemens__tinydb.10644a0e.func_basic__6bs7n17y | swesmith/msiemens__tinydb.10644a0e | msiemens/tinydb | python | null | Update operations fail with KeyError when 'id' field is missing
#### Description
When performing update operations on documents, TinyDB now unexpectedly requires an 'id' field to be present in the update data, even when updating existing documents that don't need ID changes. This breaks existing functionality where u... | diff --git a/tinydb/table.py b/tinydb/table.py
index c562d02..cb2db44 100644
--- a/tinydb/table.py
+++ b/tinydb/table.py
@@ -473,13 +473,12 @@ class Table:
# Define the function that will perform the update
def perform_update(fields, table, doc_id):
if callable(fields):
- #... | ["tests/test_tinydb.py::test_update_multiple[memory]", "tests/test_tinydb.py::test_update_multiple[json]", "tests/test_tinydb.py::test_update_multiple_operation[memory]", "tests/test_tinydb.py::test_update_multiple_operation[json]"] | ["tests/test_middlewares.py::test_caching", "tests/test_middlewares.py::test_caching_read", "tests/test_middlewares.py::test_caching_write_many", "tests/test_middlewares.py::test_caching_flush", "tests/test_middlewares.py::test_caching_flush_manually", "tests/test_middlewares.py::test_caching_write", "tests/test_middle... | jyangballin/swesmith.x86_64.msiemens_1776_tinydb.10644a0e | true | null | 1 | 7 | 4 | 1,506 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274333 | 81.098 | |||
5,985 | swe_smith::train::675 | swe_smith | train | 675 | oauthlib__oauthlib.1fd52536.func_basic__yw3qv1if | swesmith/oauthlib__oauthlib.1fd52536 | oauthlib/oauthlib | python | null | Authorization endpoint returns wrong credentials key and doesn't raise InvalidClientError
#### Description
The authorization endpoint's `get_realms_and_credentials` method is returning the wrong key in the credentials dictionary and not properly raising `InvalidClientError` when token verification fails.
#### Steps/... | diff --git a/oauthlib/oauth1/rfc5849/endpoints/authorization.py b/oauthlib/oauth1/rfc5849/endpoints/authorization.py
index 00d9576..230f333 100644
--- a/oauthlib/oauth1/rfc5849/endpoints/authorization.py
+++ b/oauthlib/oauth1/rfc5849/endpoints/authorization.py
@@ -146,13 +146,13 @@ class AuthorizationEndpoint(BaseEndpo... | ["tests/oauth1/rfc5849/endpoints/test_authorization.py::AuthorizationEndpointTest::test_get_realms_and_credentials", "tests/oauth1/rfc5849/endpoints/test_authorization.py::AuthorizationEndpointTest::test_verify_token"] | ["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth... | jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536 | true | null | 1 | 10 | 2 | 1,446 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274333 | 81.098 | |||
5,986 | swe_smith::train::35683 | swe_smith | train | 35,683 | stanfordnlp__dspy.651a4c71.func_pm_remove_assign__6dvxwl2p | swesmith/stanfordnlp__dspy.651a4c71 | stanfordnlp/dspy | python | null | # Callback functionality broken due to undefined 'inputs' variable
### Describe the bug
When using callbacks with DSPy functions, the code fails with a `NameError` because the `inputs` variable is referenced before it's defined in the `_execute_start_callbacks` function.
### How to Reproduce
Create a simple program... | diff --git a/dspy/utils/callback.py b/dspy/utils/callback.py
index 2753c8f..2e6dac0 100644
--- a/dspy/utils/callback.py
+++ b/dspy/utils/callback.py
@@ -260,7 +260,6 @@ def with_callbacks(fn):
def _execute_start_callbacks(instance, fn, call_id, callbacks, args, kwargs):
"""Execute all start callbacks fo... | ["tests/callback/test_callback.py::test_callback_injection[args0-kwargs0]", "tests/callback/test_callback.py::test_callback_injection[args1-kwargs1]", "tests/callback/test_callback.py::test_callback_injection[args2-kwargs2]", "tests/callback/test_callback.py::test_callback_injection[args3-kwargs3]", "tests/callback/tes... | ["tests/adapters/test_chat_adapter.py::test_chat_adapter_sync_call", "tests/adapters/test_chat_adapter.py::test_chat_adapter_async_call", "tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/adapters/test_json_adapter.py::test_json_adapter_sync_call... | jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71 | true | null | 1 | 6 | 22 | 1,525 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274167 | 81.0975 | |||
5,987 | swe_smith::train::38596 | swe_smith | train | 38,596 | erikrose__parsimonious.0d3f5f93.combine_file__m5cn7lix | swesmith/erikrose__parsimonious.0d3f5f93 | erikrose/parsimonious | python | null | # Line and column calculation incorrect in ParseError
## Description
The line and column calculation in ParseError is incorrect, causing issues when trying to parse text.
When parsing text that doesn't match the grammar, the error message shows incorrect line and column numbers. This makes it difficult to debug pars... | diff --git a/parsimonious/exceptions.py b/parsimonious/exceptions.py
index b9e05bc..0ade2a4 100644
--- a/parsimonious/exceptions.py
+++ b/parsimonious/exceptions.py
@@ -34,20 +34,17 @@ class ParseError(StrAndRepr, ParsimoniousError):
def line(self):
"""Return the 1-based line number where the expression c... | ["parsimonious/tests/test_expressions.py::ErrorReportingTests::test_favoring_named_rules", "parsimonious/tests/test_expressions.py::ErrorReportingTests::test_inner_rule_succeeding", "parsimonious/tests/test_expressions.py::ErrorReportingTests::test_line_and_column", "parsimonious/tests/test_expressions.py::ErrorReporti... | ["parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_call_vs_inline", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_lists_vs_dicts", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_startswith_vs_regex", "parsimonious/tests/test_expressions.py::LengthTests::test_not", "parsimonious/t... | jyangballin/swesmith.x86_64.erikrose_1776_parsimonious.0d3f5f93 | true | null | 1 | 11 | 5 | 1,425 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274167 | 81.0975 | |||
5,988 | swe_smith::train::44412 | swe_smith | train | 44,412 | pydata__patsy.a5d16484.func_pm_remove_assign__clcw5wo0 | swesmith/pydata__patsy.a5d16484 | pydata/patsy | python | null | NameError in test__examine_factor_types after code cleanup
#### Description
After some code cleanup in the `test__examine_factor_types` function, the test is now failing with a `NameError` for undefined variables. The test is trying to reference variables that were removed during the cleanup process.
#### Steps/Code... | diff --git a/patsy/build.py b/patsy/build.py
index cbe2524..324ece2 100644
--- a/patsy/build.py
+++ b/patsy/build.py
@@ -519,8 +519,6 @@ def test__examine_factor_types():
# You should check this using 'is', not '=='
from patsy.origin import Origin
- self.origin = Origin("MOCK", 1,... | ["patsy/build.py::test__examine_factor_types"] | ["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/builtins.py::test_... | jyangballin/swesmith.x86_64.pydata_1776_patsy.a5d16484 | true | null | 1 | 19 | 1 | 1,265 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274167 | 81.0975 | |||
5,989 | r2e_gym::train::132 | r2e_gym | train | 132 | orange3__65b195a8a1f18858c0412407782dbaa48a1f6795 | orange3 | biolab/orange3 | python | 65b195a8a1f18858c0412407782dbaa48a1f6795 | **Title:** `table_from_frame` Raises ValueError with Non-Integer String Indices
**Description:**
When converting a pandas DataFrame to an Orange Table using `table_from_frame`, the function fails if the DataFrame's index contains non-integer strings. This issue arises because the function attempts to convert parts of ... | diff --git a/Orange/data/pandas_compat.py b/Orange/data/pandas_compat.py
--- a/Orange/data/pandas_compat.py
+++ b/Orange/data/pandas_compat.py
@@ -2,6 +2,7 @@
from unittest.mock import patch
import numpy as np
+from pandas.core.dtypes.common import is_string_dtype
from scipy import sparse as sp
from scipy.sparse ... | diff --git a/Orange/data/tests/test_pandas.py b/Orange/data/tests/test_pandas.py
--- a/Orange/data/tests/test_pandas.py
+++ b/Orange/data/tests/test_pandas.py
@@ -68,6 +68,15 @@
types = [type(var) for var in table.domain.attributes]
self.assertEqual(names, ['index', '1', '2'])
self.assertEqua... | null | null | namanjain12/orange3_final:65b195a8a1f18858c0412407782dbaa48a1f6795 | true | null | 1 | 47 | null | 1,417 | 0 | 0.75 | 1 | 0.6375 | 1 | 0.392833 | 81.09725 | ||
5,990 | swe_smith::train::31455 | swe_smith | train | 31,455 | benoitc__gunicorn.bacbf8aa.combine_module__wib0l214 | swesmith/benoitc__gunicorn.bacbf8aa | benoitc/gunicorn | python | null | Config initialization fails with swapped parameters
#### Description
When initializing a Gunicorn application, the configuration setup fails due to incorrect parameter assignment in the BaseApplication constructor. The `usage` and `prog` parameters are being swapped during initialization, causing the Config object to... | diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py
index 9bf7a4f..b6f4205 100644
--- a/gunicorn/app/base.py
+++ b/gunicorn/app/base.py
@@ -19,10 +19,10 @@ class BaseApplication:
the various necessities for any given web framework.
"""
def __init__(self, usage=None, prog=None):
- self.usage =... | ["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_worker_class", "tests/test_config.py::test_defaults", "tests/test_config.py::test_property_access", "tests/test_config.py::test_bool_validation", "tests/test_config.py::test_pos_int_validation", "tests/test_config.py::test_str_validation", "tests/test_config.py::test_str_to_addr_list_valida... | jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa | true | null | 2 | 24 | 43 | 1,164 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274 | 81.097 | |||
5,991 | swe_smith::train::52352 | swe_smith | train | 52,352 | pydicom__pydicom.7d361b3d.func_pm_class_rm_funcs__h8sv4elo | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | DSdecimal missing __str__ and __hash__ methods after refactoring
#### Description
After some recent changes, DSdecimal objects are no longer properly handling string representation and hashing. The `__str__` method seems to have been removed, causing string formatting to fall back to the parent class behavior instead... | diff --git a/src/pydicom/valuerep.py b/src/pydicom/valuerep.py
index c81f96d..2533549 100644
--- a/src/pydicom/valuerep.py
+++ b/src/pydicom/valuerep.py
@@ -1233,26 +1233,15 @@ class DSdecimal(Decimal):
return super().__eq__(other)
- def __hash__(self) -> int:
- return super().__hash__()
-
d... | ["tests/test_valuerep.py::TestDSdecimal::test_DSdecimal", "tests/test_valuerep.py::TestDSdecimal::test_auto_format[True]", "tests/test_valuerep.py::TestDSdecimal::test_auto_format[False]", "tests/test_valuerep.py::TestDSdecimal::test_auto_format_from_invalid_DS", "tests/test_valuerep.py::TestDSdecimal::test_auto_format... | ["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 | 11 | 1,424 | 0 | 0.6 | 1 | 0.75 | 1 | 0.274 | 81.097 | |||
5,992 | swe_smith::train::47632 | swe_smith | train | 47,632 | sqlfluff__sqlfluff.50a1c4b6.combine_module__mk3tb8pz | swesmith/sqlfluff__sqlfluff.50a1c4b6 | sqlfluff/sqlfluff | python | null | Plugin manager initialization broken after recent changes
#### Description
The plugin manager fails to initialize properly, causing `UnboundLocalError` when trying to access the `plugin_manager` variable. This affects plugin loading and registration functionality.
#### Steps/Code to Reproduce
```python
from sqlfluf... | diff --git a/src/sqlfluff/core/helpers/dict.py b/src/sqlfluff/core/helpers/dict.py
index ae76dcd..108c7be 100644
--- a/src/sqlfluff/core/helpers/dict.py
+++ b/src/sqlfluff/core/helpers/dict.py
@@ -141,13 +141,12 @@ def dict_diff(
)
# Only include the difference if non-null.
if dif... | ["test/core/helpers/dict_test.py::test__helpers_dict__dict_diff", "test/core/plugin_test.py::test__plugin_handle_bad_load"] | ["test/core/helpers/dict_test.py::test_helpers_dict_doctests", "test/core/helpers/dict_test.py::test__helpers_dict__nested_combine", "test/core/helpers/dict_test.py::test__helpers_dict__nested_combine_copy_effect", "test/core/helpers/dict_test.py::test__config__iter_records_from_nested_dict", "test/core/plugin_test.py:... | jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6 | true | null | 2 | 28 | 2 | 1,083 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273833 | 81.0965 | |||
5,993 | swe_smith::train::51732 | swe_smith | train | 51,732 | pydicom__pydicom.7d361b3d.func_basic__3j0kxrf4 | swesmith/pydicom__pydicom.7d361b3d | pydicom/pydicom | python | null | RecordNode initialization fails with KeyError when creating FileSet
#### Description
When creating a FileSet or working with directory records, the RecordNode initialization is failing with a KeyError. This appears to be related to the validation logic in the RecordNode constructor.
#### Steps/Code to Reproduce
```... | diff --git a/src/pydicom/fileset.py b/src/pydicom/fileset.py
index 75976eb..c18084d 100644
--- a/src/pydicom/fileset.py
+++ b/src/pydicom/fileset.py
@@ -570,28 +570,28 @@ class RecordNode(Iterable["RecordNode"]):
"""
offset = getattr(ds, "seq_item_tell", None)
rtype = ds.get("DirectoryRecordT... | ["tests/test_fileset.py::TestRecordNode::test_root", "tests/test_fileset.py::TestRecordNode::test_leaf", "tests/test_fileset.py::TestRecordNode::test_add", "tests/test_fileset.py::TestRecordNode::test_key", "tests/test_fileset.py::TestRecordNode::test_key_raises", "tests/test_fileset.py::TestRecordNode::test_bad_record... | ["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 | 24 | 103 | 1,163 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273833 | 81.0965 | |||
5,994 | swe_smith::train::38130 | swe_smith | train | 38,130 | weaveworks__grafanalib.5c3b17ed.func_pm_remove_cond__symxkgpq | swesmith/weaveworks__grafanalib.5c3b17ed | weaveworks/grafanalib | python | null | # Template initialization is broken
Hi!
I've been working with grafanalib to create some dashboards programmatically and noticed that templates aren't working correctly anymore.
## Steps to reproduce:
1. Create a template with default values:
```python
from grafanalib import core as G
t = G.Template(name='test', qu... | diff --git a/grafanalib/core.py b/grafanalib/core.py
index 79849fe..88c956a 100644
--- a/grafanalib/core.py
+++ b/grafanalib/core.py
@@ -1059,31 +1059,7 @@ class Template(object):
autoMin = attr.ib(default=DEFAULT_MIN_AUTO_INTERVAL)
def __attrs_post_init__(self):
- if self.type == 'custom':
- ... | ["grafanalib/tests/test_core.py::test_template_defaults", "grafanalib/tests/test_core.py::test_custom_template_ok", "grafanalib/tests/test_core.py::test_custom_template_dont_override_options"] | ["grafanalib/tests/test_azuredataexplorer.py::test_serialization_azuredataexplorer_metrics_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_azure_metrics_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_azure_logs_target", "grafanalib/tests/test_azuremonitor.py::test_serialization_... | jyangballin/swesmith.x86_64.weaveworks_1776_grafanalib.5c3b17ed | true | null | 1 | 26 | 3 | 1,123 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273833 | 81.0965 | |||
5,995 | swe_smith::train::43632 | swe_smith | train | 43,632 | cloudpipe__cloudpickle.6220b0ce.func_pm_ctrl_shuffle__bw0dybmb | swesmith/cloudpipe__cloudpickle.6220b0ce | cloudpipe/cloudpickle | python | null | Function unpickling fails with UnboundLocalError after recent changes
#### Description
After some recent changes to the function state restoration logic, unpickling functions now fails with `UnboundLocalError: local variable 'obj_closure' referenced before assignment`. This affects all function pickling/unpickling op... | diff --git a/cloudpickle/cloudpickle.py b/cloudpickle/cloudpickle.py
index 8c50ba1..09916db 100644
--- a/cloudpickle/cloudpickle.py
+++ b/cloudpickle/cloudpickle.py
@@ -1114,17 +1114,6 @@ def _dataclass_field_base_reduce(obj):
def _function_setstate(obj, state):
- """Update the state of a dynamic function.
-
- ... | ["tests/cloudpickle_test.py::CloudPickleTest::test_NamedTuple", "tests/cloudpickle_test.py::CloudPickleTest::test_abc", "tests/cloudpickle_test.py::CloudPickleTest::test_abstracts", "tests/cloudpickle_test.py::CloudPickleTest::test_bound_classmethod", "tests/cloudpickle_test.py::CloudPickleTest::test_classmethod", "tes... | ["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 | 29 | 136 | 1,063 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273833 | 81.0965 | |||
5,996 | swe_bench::test::1800 | swe_bench | test | 1,800 | sphinx-doc__sphinx-8007 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 9175da437ed84e43b00ed4c28ccfe629260d3c13 | Option for not unfolding aliases
Would it be possible to add an option for autodoc not to unfold user-defined type aliases?
For example, if I introduce a type synonym Position = int and then define a method with argument pos: Position then I would like to see this typing in the documentation and not pos: int. For me, u... | How did you define the type? If you're using [type aliases](https://mypy.readthedocs.io/en/latest/kinds_of_types.html#type-aliases), it does not define a new type as mypy docs says:
>A type alias does not create a new type. It’s just a shorthand notation for another type – it’s equivalent to the target type except f... | diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py
--- a/sphinx/ext/autodoc/__init__.py
+++ b/sphinx/ext/autodoc/__init__.py
@@ -1213,7 +1213,8 @@ def format_args(self, **kwargs: Any) -> str:
try:
self.env.app.emit('autodoc-before-process-signature', self.object, False)... | diff --git a/tests/roots/test-ext-autodoc/target/annotations.py b/tests/roots/test-ext-autodoc/target/annotations.py
new file mode 100644
--- /dev/null
+++ b/tests/roots/test-ext-autodoc/target/annotations.py
@@ -0,0 +1,25 @@
+from __future__ import annotations
+from typing import overload
+
+
+myint = int
+
+
+def sum... | ["tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases"] | ["tests/test_ext_autodoc_configs.py::test_autoclass_content_class", "tests/test_ext_autodoc_configs.py::test_autoclass_content_init", "tests/test_ext_autodoc_configs.py::test_autoclass_content_both", "tests/test_ext_autodoc_configs.py::test_autodoc_inherit_docstrings", "tests/test_ext_autodoc_configs.py::test_autodoc_d... | null | true | 2020-07-26T17:21:43Z | 3 | 49 | 1 | 462 | 0 | 0.8 | 1 | 0.55 | 1 | 0.240333 | 81.096 | |
5,997 | swe_smith::train::32013 | swe_smith | train | 32,013 | davidhalter__parso.338a5760.func_basic__nd14utrx | swesmith/davidhalter__parso.338a5760 | davidhalter/parso | python | null | Error recovery in parser produces incorrect results for incomplete code
#### Description
When parsing incomplete Python code, the parser's error recovery mechanism is not working correctly and produces unexpected results. This affects parsing of various incomplete constructs including function definitions, lambda exp... | diff --git a/parso/python/parser.py b/parso/python/parser.py
index fa45e8b..9d817a3 100644
--- a/parso/python/parser.py
+++ b/parso/python/parser.py
@@ -140,19 +140,13 @@ class Parser(BaseParser):
return super().error_recovery(token)
def current_suite(stack):
- # For now just discard ... | ["test/test_diff_parser.py::test_open_parentheses", "test/test_diff_parser.py::test_open_parentheses_at_end", "test/test_diff_parser.py::test_wrong_whitespace", "test/test_diff_parser.py::test_unfinished_nodes", "test/test_diff_parser.py::test_word_before_def", "test/test_diff_parser.py::test_classes_with_error_leaves"... | ["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 | 97 | 1,282 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273667 | 81.096 | |||
5,998 | swe_smith::train::35846 | swe_smith | train | 35,846 | stanfordnlp__dspy.651a4c71.func_pm_remove_wrapper__cxsxj57n | swesmith/stanfordnlp__dspy.651a4c71 | stanfordnlp/dspy | python | null | # API documentation generation fails when module import fails
I've discovered an issue with the API documentation generation script. When a module fails to import, the script continues execution but then fails later with an undefined variable error.
## Steps to Reproduce
1. Have a module that can't be imported (e.g.... | diff --git a/docs/scripts/generate_api_docs.py b/docs/scripts/generate_api_docs.py
index 3b21897..83748ba 100644
--- a/docs/scripts/generate_api_docs.py
+++ b/docs/scripts/generate_api_docs.py
@@ -257,12 +257,6 @@ def generate_md_docs_submodule(module_path: str, output_dir: Path, objects_proce
if excluded_modules ... | ["tests/signatures/test_adapter_image.py::test_pdf_url_support", "tests/signatures/test_adapter_image.py::test_different_mime_types", "tests/signatures/test_adapter_image.py::test_mime_type_from_response_headers", "tests/signatures/test_adapter_image.py::test_pdf_from_file"] | ["tests/adapters/test_chat_adapter.py::test_chat_adapter_sync_call", "tests/adapters/test_chat_adapter.py::test_chat_adapter_async_call", "tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/adapters/test_json_adapter.py::test_json_adapter_sync_call... | jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71 | true | null | 1 | 7 | 4 | 1,502 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273667 | 81.096 | |||
5,999 | swe_smith::train::7454 | swe_smith | train | 7,454 | cantools__cantools.0c6a7871.func_basic__c7lvejm3 | swesmith/cantools__cantools.0c6a7871 | cantools/cantools | python | null | Container message encoding produces incorrect header format
#### Description
When encoding container messages, the header format is incorrect. The header ID is encoded as 2 bytes instead of 3 bytes, and the byte order logic is inverted.
#### Steps/Code to Reproduce
```python
import cantools
db = cantools.db.load_f... | diff --git a/src/cantools/database/can/message.py b/src/cantools/database/can/message.py
index 942b2cc..a3b59f6 100644
--- a/src/cantools/database/can/message.py
+++ b/src/cantools/database/can/message.py
@@ -814,20 +814,16 @@ class Message:
result = b""
+ swap_padding_scaling = not (scaling or padd... | ["tests/test_database.py::CanToolsDatabaseTest::test_encode_decode_containers"] | ["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 | 33 | 1 | 982 | 0 | 0.6 | 1 | 0.75 | 1 | 0.273667 | 81.096 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.