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
3,800
swe_smith::train::35116
swe_smith
train
35,116
django__daphne.32ac73e1.func_pm_class_rm_funcs__0vv9kfjo
swesmith/django__daphne.32ac73e1
django/daphne
python
null
CommandLineInterface missing __init__ method breaks instantiation #### Description The `CommandLineInterface` class is missing its `__init__` method, causing `AttributeError` when trying to access the `parser` attribute or instantiate the class. #### Steps/Code to Reproduce ```python from daphne.cli import CommandL...
diff --git a/daphne/cli.py b/daphne/cli.py index a036821..035e712 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -25,144 +25,6 @@ class CommandLineInterface: server_class = Server - def __init__(self): - self.parser = argparse.ArgumentParser(description=self.description) - self.parser.add_a...
["tests/test_cli.py::TestCLIInterface::testCLIBasics", "tests/test_cli.py::TestCLIInterface::testCustomEndpoints", "tests/test_cli.py::TestCLIInterface::testMixedCLIEndpointCreation", "tests/test_cli.py::TestCLIInterface::testUnixSockets", "tests/test_cli.py::TestCLIInterface::test_custom_proxyhost", "tests/test_cli.py...
["tests/test_checks.py::test_check_daphne_installed", "tests/test_cli.py::TestEndpointDescriptions::testBasics", "tests/test_cli.py::TestEndpointDescriptions::testFileDescriptorBinding", "tests/test_cli.py::TestEndpointDescriptions::testMultipleEnpoints", "tests/test_cli.py::TestEndpointDescriptions::testTcpPortBinding...
jyangballin/swesmith.x86_64.django_1776_daphne.32ac73e1
true
null
1
140
9
816
0
0.6
1
0.75
1
0.602667
82.083
3,801
swe_smith::train::45107
swe_smith
train
45,107
modin-project__modin.8c7799fd.combine_module__a5cji5qi
swesmith/modin-project__modin.8c7799fd
modin-project/modin
python
null
DataFrame interchange protocol methods missing after refactoring #### Description After recent changes to the dataframe interchange protocol implementation, several core methods are missing from the `PandasProtocolColumn` class, causing failures when trying to use the dataframe interchange functionality. #### Steps/...
diff --git a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py b/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py index 01a2e10..bf55697 100644 --- a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py +++ b/modin/core/dataframe/pandas/interchange/dataframe_protoc...
["modin/tests/interchange/dataframe_protocol/pandas/test_protocol.py::test_simple_import", "modin/tests/interchange/dataframe_protocol/pandas/test_protocol.py::test_categorical_from_dataframe", "modin/tests/interchange/dataframe_protocol/pandas/test_protocol.py::test_from_dataframe_with_empty_dataframe", "modin/tests/i...
["modin/tests/interchange/dataframe_protocol/base/test_sanity.py::test_sanity", "modin/tests/interchange/dataframe_protocol/base/test_sanity.py::test_basic_io", "modin/tests/interchange/dataframe_protocol/base/test_utils.py::test_dtype_to_arrow_c[pandas_dtype0-b]", "modin/tests/interchange/dataframe_protocol/base/test_...
jyangballin/swesmith.x86_64.modin-project_1776_modin.8c7799fd
true
null
2
122
18
1,173
0
0.6
1
0.75
1
0.602167
82.0815
3,802
swe_smith::train::26528
swe_smith
train
26,528
pylint-dev__astroid.b114f6b5.lm_rewrite__3d8gm627
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
### Issue: Inference Errors with Context Managers #### Description It seems that there is an issue with inferring context managers, particularly when dealing with unknown arguments or nested context managers. The inference process does not behave as expected, leading to unexpected results or errors. #### Steps/Code ...
diff --git a/astroid/protocols.py b/astroid/protocols.py index 8a837b8..6a7e258 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -579,12 +579,9 @@ def _infer_context_manager(self, mgr, context): @decorators.raise_if_nothing_inferred -def with_assigned_stmts( - self: nodes.With, - node: node_cl...
["tests/test_inference.py::InferenceTest::test_context_call_for_context_managers", "tests/test_inference.py::InferenceTest::test_inferring_context_manager_skip_index_error", "tests/test_inference.py::InferenceTest::test_inferring_context_manager_unpacking_inference_error", "tests/test_inference.py::InferenceTest::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
101
11
1,590
0
0.6
1
0.75
1
0.601667
82.08
3,803
swe_smith::train::38280
swe_smith
train
38,280
burnash__gspread.a8be3b96.func_pm_class_rm_funcs__9gg2j98k
swesmith/burnash__gspread.a8be3b96
burnash/gspread
python
null
Missing methods after recent changes I'm getting AttributeError when trying to use some basic spreadsheet functionality. It looks like several methods have been removed or are no longer accessible. #### Steps to Reproduce ```python import gspread # Authenticate and open a spreadsheet gc = gspread.service_account() ...
diff --git a/gspread/spreadsheet.py b/gspread/spreadsheet.py index 2363472..b0176ae 100644 --- a/gspread/spreadsheet.py +++ b/gspread/spreadsheet.py @@ -64,11 +64,6 @@ class Spreadsheet: self.update_drive_metadata() return self._properties["modifiedTime"] - @property - def timezone(self) -...
["tests/client_test.py::ClientTest::test_client_export_spreadsheet", "tests/client_test.py::ClientTest::test_import_csv", "tests/client_test.py::ClientTest::test_open_all_has_metadata", "tests/client_test.py::ClientTest::test_open_by_key_has_metadata", "tests/client_test.py::ClientTest::test_open_by_name_has_metadata",...
["tests/client_test.py::ClientTest::test_access_non_existing_spreadsheet", "tests/client_test.py::ClientTest::test_access_private_spreadsheet", "tests/client_test.py::ClientTest::test_add_timeout", "tests/client_test.py::ClientTest::test_copy", "tests/client_test.py::ClientTest::test_create", "tests/client_test.py::Cli...
jyangballin/swesmith.x86_64.burnash_1776_gspread.a8be3b96
true
null
1
109
11
1,426
0
0.6
1
0.75
1
0.601
82.078
3,804
swe_smith::train::45061
swe_smith
train
45,061
mahmoud__glom.fb3c4e76.lm_rewrite__enudkw5n
swesmith/mahmoud__glom.fb3c4e76
mahmoud/glom
python
null
#### Description There seems to be an issue with error handling in the `glom` library after recent changes. Specifically, certain operations that should raise specific exceptions are not behaving as expected, leading to unexpected errors or incorrect error messages. #### Steps/Code to Reproduce ```python from glom imp...
diff --git a/glom/core.py b/glom/core.py index cee71a3..6bc1b54 100644 --- a/glom/core.py +++ b/glom/core.py @@ -2328,38 +2328,63 @@ def _has_callable_glomit(obj): def _glom(target, spec, scope): - parent = scope - pmap = parent.maps[0] - scope = scope.new_child({ - T: target, - Spec: spec, ...
["glom/test/test_basic.py::test_spec_and_recursion", "glom/test/test_check.py::test_check_basic", "glom/test/test_check.py::test_check_multi", "glom/test/test_cli.py::test_main_basic", "glom/test/test_error.py::test_line_trace", "glom/test/test_error.py::test_regular_error_stack", "glom/test/test_error.py::test_glom_er...
["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
85
35
1,888
0
0.6
1
0.75
1
0.598
82.069
3,805
swe_smith::train::2897
swe_smith
train
2,897
seatgeek__thefuzz.8a05a3ee.combine_file__cr64afim
swesmith/seatgeek__thefuzz.8a05a3ee
seatgeek/thefuzz
python
null
TypeError when calling scorer functions in extractWithoutOrder and extractBests #### Description After recent changes, the fuzzy string matching functions are throwing TypeError when trying to call scorer functions. The scorer functions are being called with incorrect arguments, causing failures in basic string match...
diff --git a/thefuzz/process.py b/thefuzz/process.py index bdfe900..424ca97 100644 --- a/thefuzz/process.py +++ b/thefuzz/process.py @@ -77,7 +77,8 @@ def _preprocess_query(query, processor): return processed_query -def extractWithoutOrder(query, choices, processor=default_processor, scorer=default_scorer, sco...
["test_thefuzz.py::ProcessTest::testIssue57", "test_thefuzz.py::ProcessTest::test_dedupe", "test_thefuzz.py::ProcessTest::test_dict_like_extract", "test_thefuzz.py::ProcessTest::test_list_like_extract", "test_thefuzz.py::TestCodeFormat::test_pep8_conformance", "test_thefuzz_hypothesis.py::test_identical_strings_extract...
["test_thefuzz.py::StringProcessingTest::test_dont_condense_whitespace", "test_thefuzz.py::StringProcessingTest::test_replace_non_letters_non_numbers_with_whitespace", "test_thefuzz.py::UtilsTest::test_ascii_only", "test_thefuzz.py::UtilsTest::test_fullProcess", "test_thefuzz.py::UtilsTest::test_fullProcessForceAscii",...
jyangballin/swesmith.x86_64.seatgeek_1776_thefuzz.8a05a3ee
true
null
1
105
26
1,485
0
0.6
1
0.75
1
0.5975
82.0675
3,806
swe_smith::train::35814
swe_smith
train
35,814
stanfordnlp__dspy.651a4c71.func_pm_remove_loop__euqeg4sl
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# Random Search Teleprompter is broken after recent code changes ## Description I've discovered a critical issue with the `BootstrapFewShotWithRandomSearch` teleprompter. After recent changes, the teleprompter no longer works as expected. The main loop that processes different seeds and evaluates the resulting progra...
diff --git a/dspy/teleprompt/random_search.py b/dspy/teleprompt/random_search.py index caba147..1d01e91 100644 --- a/dspy/teleprompt/random_search.py +++ b/dspy/teleprompt/random_search.py @@ -61,86 +61,6 @@ class BootstrapFewShotWithRandomSearch(Teleprompter): all_subscores = [] score_data = [] - ...
["tests/teleprompt/test_random_search.py::test_basic_workflow"]
["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
81
1
1,961
0
0.6
1
0.75
1
0.596833
82.0655
3,807
swe_smith::train::49008
swe_smith
train
49,008
facebookresearch__hydra.0f03eb60.lm_rewrite__r0kyjrwf
swesmith/facebookresearch__hydra.0f03eb60
facebookresearch/hydra
python
null
### [bug] Incomplete Exception Traceback in `run_and_report` #### Problem Description When using the `run_and_report` function, exceptions are not being reported with the expected level of detail. The traceback is incomplete, which makes it difficult to diagnose issues effectively. This seems to occur when the functi...
diff --git a/hydra/_internal/utils.py b/hydra/_internal/utils.py index 941efc5..be45886 100644 --- a/hydra/_internal/utils.py +++ b/hydra/_internal/utils.py @@ -216,92 +216,33 @@ def _is_env_set(name: str) -> bool: def run_and_report(func: Any) -> Any: + """ + Run a function and report exceptions. + This ...
["tests/test_utils.py::TestRunAndReport::test_failure[simple_failure_full_traceback]", "tests/test_utils.py::TestRunAndReport::test_failure[strip_run_job_from_top_of_stack]", "tests/test_utils.py::TestRunAndReport::test_failure[strip_omegaconf_from_bottom_of_stack]", "tests/test_utils.py::TestRunAndReport::test_simplif...
["tests/test_utils.py::test_get_original_cwd", "tests/test_utils.py::test_get_original_cwd_without_hydra", "tests/test_utils.py::test_to_absolute_path[/home/omry/hydra-foo/bar-/home/omry/hydra/foo/bar]", "tests/test_utils.py::test_to_absolute_path[/home/omry/hydra/-foo/bar-/home/omry/hydra/foo/bar]", "tests/test_utils....
jyangballin/swesmith.x86_64.facebookresearch_1776_hydra.0f03eb60
true
null
1
103
5
1,520
0
0.6
1
0.75
1
0.596667
82.065
3,808
swe_smith::train::32392
swe_smith
train
32,392
pydantic__pydantic.acb0f10f.combine_file__td39yae6
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
# [Bug]: Pydantic v1 model validation broken for certain types ## Bug summary After a recent update, Pydantic v1 models fail to validate certain types of fields. This affects models using Json, TypeVar, Pattern, Literal, TypedDict, and various collection types like Sequence, Dict, Mapping, etc. ## Reproduction Steps...
diff --git a/pydantic/v1/fields.py b/pydantic/v1/fields.py index 002b60c..cbbdcc3 100644 --- a/pydantic/v1/fields.py +++ b/pydantic/v1/fields.py @@ -583,31 +583,12 @@ class ModelField(Representation): if lenient_issubclass(self.type_, JsonWrapper): self.type_ = self.type_.inner_type s...
["tests/test_docs.py::test_docs_examples[docs/migration.md:191-216]", "tests/test_docs.py::test_docs_examples[docs/migration.md:221-254]", "tests/test_main.py::test_nested_v1_model_warns", "tests/test_v1.py::test_root_validator", "tests/test_v1.py::test_isinstance_does_not_raise_deprecation_warnings"]
["tests/benchmarks/test_attribute_access.py::test_setattr", "tests/benchmarks/test_attribute_access.py::test_getattr", "tests/benchmarks/test_discriminated_unions.py::test_schema_build", "tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples", "tests/benchmarks/test_fastapi_startup_...
jyangballin/swesmith.x86_64.pydantic_1776_pydantic.acb0f10f
true
null
1
80
5
1,976
0
0.6
1
0.75
1
0.596
82.063
3,809
swe_smith::train::27091
swe_smith
train
27,091
tkrajina__gpxpy.09fc46b3.func_pm_class_rm_funcs__62ft1asw
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
GPXTrackSegment methods missing after recent changes #### Description Several methods on GPXTrackSegment appear to have been removed, causing AttributeError when trying to use them. Methods like `move()`, `split()`, `remove_point()`, `get_uphill_downhill()`, and `get_location_at()` are no longer available. #### Step...
diff --git a/gpxpy/gpx.py b/gpxpy/gpx.py index 73e2024..b4d4ca6 100644 --- a/gpxpy/gpx.py +++ b/gpxpy/gpx.py @@ -776,19 +776,6 @@ class GPXTrackSegment: """ return mod_geo.length_3d(self.points) # type: ignore - def move(self, location_delta: mod_geo.LocationDelta) -> None: - """ - ...
["test.py::GPXTests::test_get_location_at", "test.py::GPXTests::test_named_tuples_values_uphill_downhill", "test.py::GPXTests::test_remove_point_from_segment", "test.py::GPXTests::test_split", "test.py::GPXTests::test_split_and_join", "test.py::GPXTests::test_track_with_elevation_zero", "test.py::GPXTests::test_track_w...
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
91
9
1,756
0
0.6
1
0.75
1
0.596
82.063
3,810
swe_smith::train::35867
swe_smith
train
35,867
stanfordnlp__dspy.651a4c71.lm_rewrite__26eynsrd
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# Cache decorator breaks function calls when using dspy.cache ### Describe the bug After the recent changes to the `request_cache` decorator in `dspy/clients/cache.py`, I'm experiencing issues with caching functionality. The decorator is no longer properly handling function calls, causing various failures across the ...
diff --git a/dspy/clients/cache.py b/dspy/clients/cache.py index d3bad50..2bf4d73 100644 --- a/dspy/clients/cache.py +++ b/dspy/clients/cache.py @@ -195,67 +195,53 @@ def request_cache( ) def decorator(fn): + """Wraps a function to add caching functionality based on request parameters.""" ...
["tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/caching/test_litellm_cache.py::test_lm_calls_are_cached_across_lm_instances", "tests/caching/test_litellm_cache.py::test_lm_calls_are_cached_in_memory_when_expected", "tests/caching/test_litellm_...
["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
100
28
1,573
0
0.6
1
0.75
1
0.5955
82.0615
3,811
swe_smith::train::914
swe_smith
train
914
oauthlib__oauthlib.1fd52536.lm_rewrite__ub9osn7f
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
ImplicitGrant does not properly handle FatalClientError exceptions Description When using the ImplicitGrant flow, the create_authorization_response method doesn't properly handle FatalClientError exceptions. These errors should not be redirected to the client's redirect_uri since they indicate serious issues with the...
diff --git a/oauthlib/oauth2/rfc6749/grant_types/implicit.py b/oauthlib/oauth2/rfc6749/grant_types/implicit.py index cd3bfeb..c9fc48d 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/implicit.py +++ b/oauthlib/oauth2/rfc6749/grant_types/implicit.py @@ -207,48 +207,52 @@ class ImplicitGrant(GrantTypeBase): .. _...
["tests/oauth2/rfc6749/endpoints/test_client_authentication.py::ClientAuthenticationTest::test_client_id_authentication", "tests/oauth2/rfc6749/endpoints/test_credentials_preservation.py::PreservationTest::test_default_uri", "tests/oauth2/rfc6749/endpoints/test_credentials_preservation.py::PreservationTest::test_invali...
["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
84
31
1,884
0
0.6
1
0.75
1
0.594
82.057
3,812
swe_smith::train::34308
swe_smith
train
34,308
iterative__dvc.1d6ea681.lm_rewrite__6fuwviah
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
[bug] Incorrect reproduction count when using all_pipelines=True #### Problem Description When using `dvc.reproduce()` with `all_pipelines=True`, the function is not correctly collecting all stages to reproduce. This leads to incorrect behavior when trying to reproduce all pipelines in a project. #### MCVE Code Samp...
diff --git a/dvc/repo/reproduce.py b/dvc/repo/reproduce.py index 4c62fbd..4d6ecab 100644 --- a/dvc/repo/reproduce.py +++ b/dvc/repo/reproduce.py @@ -207,42 +207,78 @@ def _reproduce( @locked @scm_context -def reproduce( - self: "Repo", - targets: Union[Iterable[str], str, None] = None, - recursive: bool = ...
["tests/unit/repo/test_reproduce.py::test_number_reproduces"]
["tests/unit/repo/test_reproduce.py::test_active_graph", "tests/unit/repo/test_reproduce.py::test_repro_plan"]
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
1
110
1
1,345
0
0.6
1
0.75
1
0.590833
82.0475
3,813
swe_smith::train::50949
swe_smith
train
50,949
python-hyper__h11.bed0dd4a.lm_rewrite__r8wlo9mo
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
KeyError: 'none' in _body_framing function #### Description After the recent changes, it seems that the `_body_framing` function is encountering a `KeyError` when handling certain HTTP requests and responses. This issue arises when the function attempts to determine the body framing type and parameters, particularly w...
diff --git a/h11/_connection.py b/h11/_connection.py index e37d82a..6d90a58 100644 --- a/h11/_connection.py +++ b/h11/_connection.py @@ -90,56 +90,66 @@ def _keep_alive(event: Union[Request, Response]) -> bool: return True -def _body_framing( - request_method: bytes, event: Union[Request, Response] -) -> Tu...
["h11/tests/test_against_stdlib_http.py::test_h11_as_client", "h11/tests/test_against_stdlib_http.py::test_h11_as_server", "h11/tests/test_connection.py::test__body_framing", "h11/tests/test_connection.py::test_client_talking_to_http10_server", "h11/tests/test_connection.py::test_server_talking_to_http10_client", "h11/...
["h11/tests/test_connection.py::test__keep_alive", "h11/tests/test_connection.py::test_Connection_basics_and_content_length", "h11/tests/test_connection.py::test_chunked", "h11/tests/test_connection.py::test_chunk_boundaries", "h11/tests/test_connection.py::test_100_continue", "h11/tests/test_connection.py::test_close_...
jyangballin/swesmith.x86_64.python-hyper_1776_h11.bed0dd4a
true
null
1
106
16
1,423
0
0.6
1
0.75
1
0.5905
82.0465
3,814
swe_bench::dev::146
swe_bench
dev
146
pylint-dev__astroid-1978
pylint-dev/astroid
pylint-dev/astroid
python
0c9ab0fe56703fa83c73e514a1020d398d23fa7f
Deprecation warnings from numpy ### Steps to reproduce 1. Run pylint over the following test case: ``` """Test case""" import numpy as np value = np.random.seed(1234) ``` ### Current behavior ``` /home/bje/source/nemo/myenv/lib/python3.10/site-packages/astroid/raw_building.py:470: FutureWarning: In the future `np.l...
This seems very similar to https://github.com/PyCQA/astroid/pull/1514 that was fixed in 2.12.0. I'm running 2.12.13 (> 2.12.0), so the fix isn't working in this case? I don't know why #1514 did not fix this, I think we were capturing both stdout and stderr, so this will need some investigation. My guess would be that t...
diff --git a/astroid/raw_building.py b/astroid/raw_building.py --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -10,11 +10,14 @@ import builtins import inspect +import io +import logging import os import sys import types import warnings from collections.abc import Iterable +from contextlib import...
diff --git a/tests/unittest_raw_building.py b/tests/unittest_raw_building.py --- a/tests/unittest_raw_building.py +++ b/tests/unittest_raw_building.py @@ -8,8 +8,15 @@ # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt +from ...
["tests/unittest_raw_building.py::test_build_module_getattr_catch_output"]
["tests/unittest_raw_building.py::RawBuildingTC::test_attach_dummy_node", "tests/unittest_raw_building.py::RawBuildingTC::test_build_class", "tests/unittest_raw_building.py::RawBuildingTC::test_build_from_import", "tests/unittest_raw_building.py::RawBuildingTC::test_build_function", "tests/unittest_raw_building.py::Raw...
null
true
2023-01-28T06:14:39Z
1
27
1
898
0.125
0.8
1
0.85
1
0.239667
82.038063
3,815
swe_bench::test::1758
swe_bench
test
1,758
sphinx-doc__sphinx-11503
sphinx-doc/sphinx
sphinx-doc/sphinx
python
edd9ea0a3986156733be05e660d658931da379a9
linkcheck builder: begin using requests.Session functionality during linkchecking **Is your feature request related to a problem? Please describe.** At the moment, the `linkcheck` builder performs individual `request.get` (or similar HTTP request method) operations during linkchecking, without any explicit connection o...
> Confirmation that connection pooling is not currently in use would be a good starting point; in other words: we should confirm that linkchecking of multiple URLs on a single host results in multiple TCP connections. Ideally this should be written as a test case. I think that the [`mocket` socket-mocking library](...
diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -279,12 +279,16 @@ def __init__(self, config: Config, self.tls_verify = config.tls_verify self.tls_cacerts = config.tls_cacerts + self._session = r...
diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -104,7 +104,7 @@ def test_defaults(app): with http_server(DefaultsHandler): with ConnectionMeasurement() as m: app.build() - assert m.co...
["tests/test_build_linkcheck.py::test_raises_for_invalid_status", "tests/test_build_linkcheck.py::test_auth_header_uses_first_match", "tests/test_build_linkcheck.py::test_follows_redirects_on_HEAD", "tests/test_build_linkcheck.py::test_follows_redirects_on_GET", "tests/test_build_linkcheck.py::test_connect_to_selfsigne...
["tests/test_build_linkcheck.py::test_defaults", "tests/test_build_linkcheck.py::test_too_many_retries", "tests/test_build_linkcheck.py::test_raw_node", "tests/test_build_linkcheck.py::test_anchors_ignored", "tests/test_build_linkcheck.py::test_auth_header_no_match", "tests/test_build_linkcheck.py::test_linkcheck_reque...
null
true
2023-07-23T17:06:18Z
2
95
9
1,419
0
0.8
1
0.55
1
0.553167
82.0345
3,816
swe_smith::train::18376
swe_smith
train
18,376
msiemens__tinydb.10644a0e.lm_rewrite__cjiqoity
swesmith/msiemens__tinydb.10644a0e
msiemens/tinydb
python
null
# Update method fails when no condition or doc_ids are provided ## Description I've discovered an issue with the `update` method in TinyDB. When trying to update all documents in a table without specifying a condition or document IDs, the method raises a `RuntimeError` instead of updating all documents as expected. ...
diff --git a/tinydb/table.py b/tinydb/table.py index c562d02..8d624f6 100644 --- a/tinydb/table.py +++ b/tinydb/table.py @@ -367,12 +367,9 @@ class Table: raise RuntimeError('You have to pass either cond or doc_id') - def update( - self, - fields: Union[Mapping, Callable[[Mapping], None]],...
["tests/test_storages.py::test_yaml", "tests/test_tinydb.py::test_update_all[memory]", "tests/test_tinydb.py::test_update_all[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
108
3
1,353
0
0.6
1
0.75
1
0.5855
82.0315
3,817
swe_smith::train::49413
swe_smith
train
49,413
mozilla__bleach.73871d76.func_pm_class_shuffle_funcs__va8mu7rk
swesmith/mozilla__bleach.73871d76
mozilla/bleach
python
null
NameError when using bleach after recent changes #### Description After a recent update, bleach is throwing `NameError: name '_getName' is not defined` when trying to clean or linkify HTML content. This appears to be affecting basic functionality across the library. #### Steps/Code to Reproduce ```python import ble...
diff --git a/bleach/_vendor/html5lib/treebuilders/etree.py b/bleach/_vendor/html5lib/treebuilders/etree.py index 5ccfc4d..0cbe0b5 100644 --- a/bleach/_vendor/html5lib/treebuilders/etree.py +++ b/bleach/_vendor/html5lib/treebuilders/etree.py @@ -21,47 +21,53 @@ def getETreeBuilder(ElementTreeImplementation, fullTree=Fal...
["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
129
185
931
0
0.6
1
0.75
1
0.585167
82.0305
3,818
swe_smith::train::52741
swe_smith
train
52,741
pydicom__pydicom.7d361b3d.lm_rewrite__vxq7tp2k
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
### Issue: Handling of Unknown Escape Sequences in Encoded Strings #### Description After applying the recent changes, it seems that the handling of unknown escape sequences in encoded strings is not functioning as expected. When decoding a byte string with an unknown escape sequence, the behavior does not align with...
diff --git a/src/pydicom/charset.py b/src/pydicom/charset.py index 28a777e..bda8181 100644 --- a/src/pydicom/charset.py +++ b/src/pydicom/charset.py @@ -439,48 +439,60 @@ def _decode_fragment( return byte_str.decode(encodings[0], errors="replace") -def _decode_escaped_fragment( - byte_str: bytes, encodi...
["tests/test_charset.py::TestCharset::test_unknown_escape_sequence", "tests/test_charset.py::TestCharset::test_unknown_escape_sequence_enforce_standard"]
["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
88
2
1,748
0
0.6
1
0.75
1
0.584667
82.029
3,819
swe_smith::train::1630
swe_smith
train
1,630
Cog-Creators__Red-DiscordBot.33e0eac7.lm_rewrite__bdfrqykb
swesmith/Cog-Creators__Red-DiscordBot.33e0eac7
cog-creators/red-discordbot
python
null
# Exception formatting in dev commands is broken I noticed that the exception formatting in the dev commands is not working correctly. When I try to run code that raises an exception, the traceback is not displayed properly. ## What happened? After running some code in the dev commands that raises an exception, the ...
diff --git a/redbot/core/dev_commands.py b/redbot/core/dev_commands.py index b0deb5c..a9d3fdc 100644 --- a/redbot/core/dev_commands.py +++ b/redbot/core/dev_commands.py @@ -298,7 +298,7 @@ class DevOutput: def async_compile_with_eval(self) -> CodeType: return async_compile(self.compilable_source, self.fil...
["tests/core/test_dev_commands.py::test_regression_format_exception_from_previous_snippet"]
["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_alias.py::test_add_guild_alias", "tests/cogs/test_alias.py::test_translate_alias_message", "tests/cogs/test_alias.py::test_delete_guild_ali...
jyangballin/swesmith.x86_64.cog-creators_1776_red-discordbot.33e0eac7
true
null
1
119
1
1,114
0
0.6
1
0.75
1
0.582333
82.022
3,820
swe_smith::train::39652
swe_smith
train
39,652
tornadoweb__tornado.d5ac65c1.combine_file__o63ekiop
swesmith/tornadoweb__tornado.d5ac65c1
tornadoweb/tornado
python
null
OpenID authentication broken - missing variables cause NameError #### Description OpenID authentication is failing with NameError exceptions due to undefined variables in the authentication flow. When attempting to authenticate with OpenID, the process crashes because several variables that are referenced later in th...
diff --git a/tornado/auth.py b/tornado/auth.py index 64428c5..1a29567 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -219,15 +219,11 @@ class OpenIdMixin: handler = cast(RequestHandler, self) if b"is_valid:true" not in response.body: raise AuthError("Invalid OpenID response: %r" % ...
["test_facebook_login (tornado.test.auth_test.AuthTest)", "test_oauth10_get_user (tornado.test.auth_test.AuthTest)", "test_oauth10a_get_user (tornado.test.auth_test.AuthTest)", "test_openid_get_user (tornado.test.auth_test.AuthTest)", "test_twitter_get_user (tornado.test.auth_test.AuthTest)", "test_google_login (tornad...
["Doctest: tornado.httputil.HTTPHeaders", "Doctest: tornado.httputil.HTTPHeaders.parse", "Doctest: tornado.httputil.HTTPHeaders.parse_line", "Doctest: tornado.httputil._encode_header", "Doctest: tornado.httputil._get_content_range", "Doctest: tornado.httputil._normalize_header", "Doctest: tornado.httputil._parse_header...
jyangballin/swesmith.x86_64.tornadoweb_1776_tornado.d5ac65c1
true
null
1
91
6
1,671
0
0.6
1
0.75
1
0.581833
82.0205
3,821
swe_smith::train::14557
swe_smith
train
14,557
hukkin__tomli.443a0c1b.lm_rewrite__58grwkl8
swesmith/hukkin__tomli.443a0c1b
hukkin/tomli
python
null
# TOML parser fails to handle certain valid TOML files ## Description I've discovered an issue with the TOML parser in tomli. After making some changes to the parser implementation, it's failing to correctly parse valid TOML files. The parser seems to be incorrectly handling certain TOML syntax, particularly around w...
diff --git a/src/tomli/_parser.py b/src/tomli/_parser.py index 16c76cd..754c5c8 100644 --- a/src/tomli/_parser.py +++ b/src/tomli/_parser.py @@ -127,77 +127,42 @@ def load(__fp: IO[bytes], *, parse_float: ParseFloat = float) -> dict[str, Any]: return loads(s, parse_float=parse_float) -def loads(__s: str, *, pa...
["tests/test_data.py::TestData::test_invalid", "tests/test_data.py::TestData::test_valid", "tests/test_error.py::TestError::test_line_and_col", "tests/test_error.py::TestError::test_type_error"]
["tests/test_error.py::TestError::test_deprecated_tomldecodeerror", "tests/test_error.py::TestError::test_invalid_char_quotes", "tests/test_error.py::TestError::test_invalid_parse_float", "tests/test_error.py::TestError::test_missing_value", "tests/test_error.py::TestError::test_module_name", "tests/test_error.py::Test...
jyangballin/swesmith.x86_64.hukkin_1776_tomli.443a0c1b
true
null
1
95
4
1,589
0
0.6
1
0.75
1
0.5815
82.0195
3,822
swe_smith::train::18536
swe_smith
train
18,536
HIPS__autograd.ac044f0d.lm_rewrite__igr69pe7
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
`solve_banded` function returns incorrect gradient Description It seems that the `solve_banded` function is not computing the gradient correctly when used with certain banded matrices. This issue arises when attempting to calculate the derivative of a solution with respect to the banded matrix or the right-hand side ...
diff --git a/autograd/scipy/linalg.py b/autograd/scipy/linalg.py index d2cc886..164e779 100644 --- a/autograd/scipy/linalg.py +++ b/autograd/scipy/linalg.py @@ -51,55 +51,72 @@ defvjp( def grad_solve_banded(argnum, ans, l_and_u, a, b): - updim = lambda x: x if x.ndim == a.ndim else x[..., None] - - def trans...
["tests/test_scipy.py::test_solve_banded"]
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
111
1
1,267
0
0.6
1
0.75
1
0.581167
82.0185
3,823
swe_smith::train::3262
swe_smith
train
3,262
Suor__funcy.207a7810.lm_rewrite__vlmxryld
swesmith/Suor__funcy.207a7810
suor/funcy
python
null
# `make_lookuper` and `silent_lookuper` not working correctly after recent changes ## Description After recent changes to the `_make_lookuper` function, the `make_lookuper` and `silent_lookuper` decorators are not working correctly. They're not properly handling generator functions that return key-value pairs. ## To...
diff --git a/funcy/calc.py b/funcy/calc.py index 2966bdd..73401bf 100644 --- a/funcy/calc.py +++ b/funcy/calc.py @@ -102,44 +102,45 @@ class CacheMemory(dict): def _make_lookuper(silent): - def make_lookuper(func): - """ - Creates a single argument function looking up result in a memory. - - ...
["tests/test_calc.py::test_make_lookuper", "tests/test_calc.py::test_make_lookuper_nested", "tests/test_calc.py::test_silent_lookuper", "tests/test_calc.py::test_silnent_lookuper_nested", "tests/test_interface.py::test_docs"]
["tests/test_calc.py::test_memoize", "tests/test_calc.py::test_memoize_args_kwargs", "tests/test_calc.py::test_memoize_skip", "tests/test_calc.py::test_memoize_memory", "tests/test_calc.py::test_memoize_key_func", "tests/test_calc.py::test_cache[int]", "tests/test_calc.py::test_cache[timedelta]", "tests/test_calc.py::t...
jyangballin/swesmith.x86_64.suor_1776_funcy.207a7810
true
null
1
75
5
1,974
0
0.6
1
0.75
1
0.579
82.012
3,824
swe_smith::train::47013
swe_smith
train
47,013
python-trio__trio.cfbbe2c1.func_basic__wc0m7rwr
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
start_guest_run fails to initialize properly with inverted logic #### Description When using `trio.start_guest_run()`, the guest run fails to initialize correctly and raises `TrioInternalError` during setup. The function appears to have inverted logic in several key areas that prevents proper initialization. #### St...
diff --git a/src/trio/_core/_run.py b/src/trio/_core/_run.py index bfb38f4..365aab5 100644 --- a/src/trio/_core/_run.py +++ b/src/trio/_core/_run.py @@ -2433,85 +2433,26 @@ def start_guest_run( # type: ignore[misc] restrict_keyboard_interrupt_to_checkpoints: bool = False, strict_exception_groups: bool = True...
["src/trio/_core/_tests/test_guest_mode.py::test_guest_trivial", "src/trio/_core/_tests/test_guest_mode.py::test_guest_can_do_io", "src/trio/_core/_tests/test_guest_mode.py::test_guest_is_initialized_when_start_returns", "src/trio/_core/_tests/test_guest_mode.py::test_host_can_directly_wake_trio_task", "src/trio/_core/...
["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
105
17
1,372
0
0.6
1
0.75
1
0.578667
82.011
3,825
swe_smith::train::26582
swe_smith
train
26,582
pylint-dev__astroid.b114f6b5.lm_rewrite__hpzdwluw
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
### Description It seems there's an issue with the module resolution logic in the `_find_spec` function. When attempting to resolve certain module paths, an `ImportError` is raised unexpectedly. This is particularly noticeable when dealing with submodules or packages that should be resolvable but aren't due to the cur...
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py index e0c54d4..accd162 100644 --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -447,38 +447,64 @@ def find_spec(modpath: Iterable[str], path: Iterable[str] | None = None) -> Modu @lru_cache(...
["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_mul...
["tests/brain/numpy/test_core_function_base.py::BrainNumpyCoreFunctionBaseTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_bool", "tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest:...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
96
75
1,552
0
0.6
1
0.75
1
0.578667
82.011
3,826
swe_smith::train::52748
swe_smith
train
52,748
pydicom__pydicom.7d361b3d.lm_rewrite__xax655it
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
# ValueError when validating File Meta Information with empty required elements ## Description When validating DICOM file meta information with empty values for required elements, the error message is incorrect. Instead of raising an AttributeError with a message about missing or empty elements, it raises a ValueError...
diff --git a/src/pydicom/dataset.py b/src/pydicom/dataset.py index e7abffd..9e71bad 100644 --- a/src/pydicom/dataset.py +++ b/src/pydicom/dataset.py @@ -3464,9 +3464,8 @@ class FileDataset(Dataset): return result -def validate_file_meta( - file_meta: "FileMetaDataset", enforce_standard: bool = True -) -...
["tests/test_dataset.py::TestDatasetElements::test_validate_and_correct_file_meta", "tests/test_filewriter.py::TestDCMWrite_EnforceFileFormat::test_file_meta_no_syntax", "tests/test_filewriter.py::TestDCMWrite_EnforceFileFormat::test_file_meta_sop_class_sop_instance", "tests/test_filewriter.py::TestWriteFileMetaInfoToS...
["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
95
4
1,571
0
0.6
1
0.75
1
0.5785
82.0105
3,827
swe_smith::train::27441
swe_smith
train
27,441
tkrajina__gpxpy.09fc46b3.lm_rewrite__ar7f0i4u
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
### Issue: TypeError in `add_missing_speeds` Method #### Describe the Bug When attempting to add missing speeds to GPX track segments, a `TypeError` is encountered. This occurs when processing intervals between points with known speeds. #### How to Reproduce Here's a minimal example to reproduce the issue: ```pyth...
diff --git a/gpxpy/gpx.py b/gpxpy/gpx.py index 73e2024..6a6000c 100644 --- a/gpxpy/gpx.py +++ b/gpxpy/gpx.py @@ -2567,7 +2567,7 @@ class GPX: self.add_missing_data(get_data_function=lambda point: point.time, add_missing_function=_add) - def add_missing_speeds(self) -> None: ...
["test.py::GPXTests::test_add_missing_speeds"]
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_elevation", "test.py::GPXTests::test_add_missing_data_no_intervals", "test.py::GPXTests::test_add_missing_data_one_interval", "test.py::GPXTests::test_add_missing_data_one_interval_and_empty_points_on_start_and_end", "test.py::GPXTests::test_a...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
92
1
1,630
0
0.6
1
0.75
1
0.578333
82.01
3,828
swe_smith::train::3481
swe_smith
train
3,481
pygments__pygments.27649ebb.combine_file__qlu93fxb
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
Modula2Lexer crashes with NameError on undefined variables #### Description The Modula2Lexer is throwing NameError exceptions when trying to tokenize code. Several variables that should be initialized in the `set_dialect` method are not being properly defined, causing the lexer to crash when processing any Modula-2 s...
diff --git a/pygments/lexers/modula2.py b/pygments/lexers/modula2.py index 8f5a72a..f7f9280 100644 --- a/pygments/lexers/modula2.py +++ b/pygments/lexers/modula2.py @@ -1309,15 +1309,9 @@ class Modula2Lexer(RegexLexer): dialect = 'unknown' # default else: dialect = dialect_id - ...
["tests/test_basic_api.py::test_lexer_options[Modula2Lexer]", "tests/test_basic_api.py::test_lexer_classes[Modula2Lexer]", "tests/test_basic_api.py::test_random_input[Modula2Lexer]", "tests/test_basic_api.py::test_get_lexers", "tests/examplefiles/modula2/test.mod::", "tests/examplefiles/modula2/modula2_test_cases.def::...
["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
118
8
1,109
0
0.6
1
0.75
1
0.578167
82.0095
3,829
swe_smith::train::45417
swe_smith
train
45,417
dask__dask.5f61e423.lm_rewrite__ffd1xgql
swesmith/dask__dask.5f61e423
dask/dask
python
null
### Issue: ValueError in `pad_stats` Function #### Description When using the `pad_stats` function with certain padding modes, a `ValueError` is raised due to shape broadcasting issues. This occurs when attempting to pad arrays with specific dimensions and padding widths. #### Steps to Reproduce 1. Create a 3D arra...
diff --git a/dask/array/creation.py b/dask/array/creation.py index b906bc4..41ccc43 100644 --- a/dask/array/creation.py +++ b/dask/array/creation.py @@ -1150,64 +1150,60 @@ def pad_stats(array, pad_width, mode, stat_length): or all of the array, this function helps compute those statistics as requested and th...
["dask/array/tests/test_creation.py::test_pad[shape12-chunks12-pad_width12-maximum-kwargs12]", "dask/array/tests/test_creation.py::test_pad[shape13-chunks13-pad_width13-mean-kwargs13]", "dask/array/tests/test_creation.py::test_pad[shape14-chunks14-pad_width14-minimum-kwargs14]", "dask/array/tests/test_creation.py::test...
["dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-empty_like-numpy]", "dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-empty-numpy]", "dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-ones_like-numpy]", "das...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
1
104
63
1,388
0
0.6
1
0.75
1
0.578
82.009
3,830
swe_smith::train::31400
swe_smith
train
31,400
benoitc__gunicorn.bacbf8aa.combine_file__t3g6d98y
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
Logger initialization broken after recent changes #### Description The Logger class initialization is completely broken. When creating a Logger instance, it fails with AttributeError because the config object is being set to None instead of the passed configuration. #### Steps/Code to Reproduce ```python from gunic...
diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index e34fcd5..6dced21 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -181,15 +181,15 @@ class Logger: atoms_wrapper_class = SafeAtoms def __init__(self, cfg): - self.error_log = logging.getLogger("gunicorn.error") - sel...
["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
1
116
23
1,143
0
0.6
1
0.75
1
0.577167
82.0065
3,831
swe_smith::train::35891
swe_smith
train
35,891
stanfordnlp__dspy.651a4c71.lm_rewrite__c72cuyjo
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# Parallel execution module breaks with recent changes ## Description I've discovered an issue with the `Parallel` class in the `dspy.predict.parallel` module. After recent changes, the parallel execution functionality is completely broken. The module is unable to process examples correctly, resulting in AttributeErr...
diff --git a/dspy/predict/parallel.py b/dspy/predict/parallel.py index 03a4235..78eb22e 100644 --- a/dspy/predict/parallel.py +++ b/dspy/predict/parallel.py @@ -30,44 +30,60 @@ class Parallel: self.failed_examples = [] self.exceptions = [] - def forward(self, exec_pairs: List[Tuple[Any, Example]]...
["tests/predict/test_parallel.py::test_parallel_module", "tests/predict/test_parallel.py::test_batch_module", "tests/predict/test_parallel.py::test_nested_parallel_module", "tests/predict/test_parallel.py::test_nested_batch_method", "tests/signatures/test_adapter_image.py::test_pdf_url_support", "tests/signatures/test_...
["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
90
8
1,656
0
0.6
1
0.75
1
0.576
82.003
3,832
swe_smith::train::45064
swe_smith
train
45,064
mahmoud__glom.fb3c4e76.lm_rewrite__gjc9zqdd
swesmith/mahmoud__glom.fb3c4e76
mahmoud/glom
python
null
# Pattern matching in sets doesn't work correctly ## Description I found a bug in the pattern matching functionality when working with sets. When using a set pattern to match against a set target, the matching fails if the target set has the same number of elements as the pattern set. Here's a simple test case that ...
diff --git a/glom/matching.py b/glom/matching.py index 798ac40..3bcdf00 100644 --- a/glom/matching.py +++ b/glom/matching.py @@ -712,55 +712,68 @@ def _handle_dict(target, spec, scope): def _glom_match(target, spec, scope): + """ + Implementation of glom's pattern matching mode. + + Pattern specs are ...
["glom/test/test_match.py::test_basic", "glom/test/test_match.py::test_sample", "glom/test/test_match.py::test_json_ref", "glom/test/test_match.py::test_nested_struct", "glom/test/test_match.py::test_check_ported_tests"]
["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
89
5
1,669
0
0.6
1
0.75
1
0.574833
81.9995
3,833
swe_smith::train::34469
swe_smith
train
34,469
iterative__dvc.1d6ea681.pr_9044
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# Default cache directory not being set correctly in subrepos I'm having an issue with DVC where the default cache directory isn't being set correctly when working with repositories, especially subrepos. ## Steps to reproduce 1. Create a main repo with a subrepo 2. Initialize DVC in the subrepo 3. Try to access the ...
diff --git a/dvc/cachemgr.py b/dvc/cachemgr.py index 10e75e2..662f659 100644 --- a/dvc/cachemgr.py +++ b/dvc/cachemgr.py @@ -43,9 +43,23 @@ class CacheManager: self.config = config = repo.config["cache"] self._odb = {} + default = None + if repo and repo.dvc_dir: + if isinst...
["tests/unit/repo/test_open_repo.py::test_subrepo_is_constructed_properly[False]", "tests/unit/repo/test_open_repo.py::test_subrepo_is_constructed_properly[True]", "tests/unit/repo/test_repo.py::test_branch_config", "tests/unit/repo/test_repo.py::test_dynamic_cache_initialization"]
["tests/unit/repo/experiments/test_executor_status.py::test_executor_status_compatibility", "tests/unit/repo/experiments/test_utils.py::test_run_check_ref_format[name-True]", "tests/unit/repo/experiments/test_utils.py::test_run_check_ref_format[group/name-False]", "tests/unit/repo/experiments/test_utils.py::test_run_ch...
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
3
97
4
1,504
0
0.6
1
0.75
1
0.574
81.997
3,834
swe_smith::train::38439
swe_smith
train
38,439
dbader__schedule.82a43db1.lm_rewrite__is6eozky
swesmith/dbader__schedule.82a43db1
dbader/schedule
python
null
[Bug]: until() method with time parameter schedules for wrong day ### Bug summary When using the `until()` method with a `datetime.time` parameter, the job is incorrectly scheduled when the specified time is earlier than the current time. The job gets scheduled for the current day instead of the next day, causing it ...
diff --git a/schedule/__init__.py b/schedule/__init__.py index 8e12eeb..fee6a2c 100644 --- a/schedule/__init__.py +++ b/schedule/__init__.py @@ -573,10 +573,8 @@ class Job: self.latest = latest return self - def until( - self, - until_time: Union[datetime.datetime, datetime.timedelt...
["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
81
1
1,821
0
0.6
1
0.75
1
0.5735
81.9955
3,835
swe_smith::train::3577
swe_smith
train
3,577
pygments__pygments.27649ebb.combine_module__117mwm2o
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
# Multiple issues with LaTeX and RTF formatters ## Description I've found several issues with the LaTeX and RTF formatters that cause incorrect output and errors. ### LaTeX Formatter Issues When using the LaTeX formatter with line numbers, the `firstnumber` and `stepnumber` parameters are swapped. This causes incor...
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index 2f7971e..a2a6400 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -331,7 +331,6 @@ class LatexFormatter(Formatter): 'styles': '\n'.join(styles)} def format_unencoded(sel...
["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...
["tests/test_html_formatter.py::test_lineanchors_with_startnum", "tests/test_html_formatter.py::test_get_style_defs_contains_pre_style", "tests/test_html_formatter.py::test_get_style_defs_contains_default_line_numbers_styles", "tests/test_html_formatter.py::test_ctags", "tests/test_html_formatter.py::test_external_css"...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
2
37
29
2,699
0
0.6
1
0.75
1
0.573167
81.9945
3,836
swe_smith::train::8273
swe_smith
train
8,273
cantools__cantools.0c6a7871.lm_rewrite__gqq0dluw
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
### Unexpected Keyword Argument in Signal Initialization #### What happened? When attempting to load ARXML files, an error occurs due to an unexpected keyword argument `is_float` being passed to the `Signal` class initializer. This issue arises when processing certain ARXML files, causing the loading process to fail....
diff --git a/src/cantools/database/can/formats/arxml/system_loader.py b/src/cantools/database/can/formats/arxml/system_loader.py index f7aa786..3e85483 100644 --- a/src/cantools/database/can/formats/arxml/system_loader.py +++ b/src/cantools/database/can/formats/arxml/system_loader.py @@ -1444,92 +1444,71 @@ class Syste...
["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
101
15
1,417
0
0.6
1
0.75
1
0.572833
81.9935
3,837
swe_smith::train::9086
swe_smith
train
9,086
pyupio__safety.7654596b.lm_rewrite__w0oi8ko7
swesmith/pyupio__safety.7654596b
pyupio/safety
python
null
# API Key Authentication Not Working Correctly in SafetyAuthSession I've encountered an issue with the `SafetyAuthSession` class in the authentication module. When making requests without an API key, the authentication fails in an unexpected way. ## Steps to Reproduce 1. Create a `SafetyAuthSession` instance without...
diff --git a/safety/auth/utils.py b/safety/auth/utils.py index 4d42ddb..c84254a 100644 --- a/safety/auth/utils.py +++ b/safety/auth/utils.py @@ -164,7 +164,9 @@ class SafetyAuthSession(OAuth2Session): return AuthenticationType.none - def request(self, method: str, url: str, withhold_token: bool = False,...
["tests/test_cli.py::TestSafetyCLI::test_announcements_if_is_not_tty", "tests/test_safety.py::TestSafety::test_check_live", "tests/test_safety.py::TestSafety::test_check_live_cached", "tests/test_safety.py::TestSafety::test_get_packages_licenses_without_api_key"]
["tests/test_cli.py::TestSafetyCLI::test_basic_html_output_pass", "tests/test_cli.py::TestSafetyCLI::test_check_continue_on_error", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_format_backward_compatible", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_unpinned_requirements", "tests/test_cli.py::TestSafet...
jyangballin/swesmith.x86_64.pyupio_1776_safety.7654596b
true
null
1
91
4
1,613
0
0.6
1
0.75
1
0.572167
81.9915
3,838
swe_bench::test::1131
swe_bench
test
1,131
mwaskom__seaborn-2576
mwaskom/seaborn
mwaskom/seaborn
python
430c1bf1fcc690f0431e6fc87b481b7b43776594
lmplot(sharey=False) not working The following code behaves as if `sharey=True`. (edit: actually, it does not behave the same, but it is still not rescaling the plots individually the way it should) ``` df=pd.DataFrame({'x':[1,2,3,1,2,3], 'y':[4,5,2,400,500,200], 't':[1,1,1,2,2,2]}) sns.lmplot(data=df, x='x', y='y', c...
Worth noting: the y axes are not shared in the "wrong" plot, however the y axis autoscaling is off. My suspicion is that this line is the culprit: https://github.com/mwaskom/seaborn/blob/master/seaborn/regression.py#L611-L616 "the y axes are not shared in the "wrong" plot" You are right, the scales aren't actuall...
diff --git a/seaborn/regression.py b/seaborn/regression.py --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -419,7 +419,8 @@ def lineplot(self, ax, kws): # Draw the regression line and confidence interval line, = ax.plot(grid, yhat, **kws) - line.sticky_edges.x[:] = edges # Prevent...
diff --git a/seaborn/tests/test_regression.py b/seaborn/tests/test_regression.py --- a/seaborn/tests/test_regression.py +++ b/seaborn/tests/test_regression.py @@ -1,3 +1,4 @@ +from distutils.version import LooseVersion import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt @@ -596,6 +597,44 @@ d...
["seaborn/tests/test_regression.py::TestRegressionPlots::test_lmplot_facet_truncate[True]", "seaborn/tests/test_regression.py::TestRegressionPlots::test_lmplot_facet_truncate[False]", "seaborn/tests/test_regression.py::TestRegressionPlots::test_lmplot_facet_kws"]
["seaborn/tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_frame", "seaborn/tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_series", "seaborn/tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_array", "seaborn/tests/test_regression.py::TestLin...
null
true
2021-05-06T18:35:25Z
1
51
3
2,212
0
0.8
1
0.55
1
0.538667
81.991
3,839
swe_bench::test::1538
swe_bench
test
1,538
scikit-learn__scikit-learn-11391
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
526aede6a762ac6646211057d00a13304fb115b6
Cryptic error in imputers due to missing checking in _get_mask By working on the `MissingIndicator` it seems that there is a missing checking between `X` and `missing_values` dtype: ```python import numpy as np X = np.array([[1.6464405 , 2.145568 , 1.80829 , 1.6346495 , 1.2709644 ], [1.3127615 , 2.675...
diff --git a/sklearn/impute.py b/sklearn/impute.py --- a/sklearn/impute.py +++ b/sklearn/impute.py @@ -40,6 +40,15 @@ ] +def _check_inputs_dtype(X, missing_values): + if (X.dtype.kind in ("f", "i", "u") and + not isinstance(missing_values, numbers.Real)): + raise ValueError("'X' and 'missing_v...
diff --git a/sklearn/tests/test_impute.py b/sklearn/tests/test_impute.py --- a/sklearn/tests/test_impute.py +++ b/sklearn/tests/test_impute.py @@ -705,3 +705,25 @@ def test_chained_imputer_additive_matrix(): random_state=rng).fit(X_train) X_test_est = imputer.transform(X_test) as...
["sklearn/tests/test_impute.py::test_inconsistent_dtype_X_missing_values[-1--1-types"]
["sklearn/tests/test_impute.py::test_imputation_shape", "sklearn/tests/test_impute.py::test_imputation_error_invalid_strategy[const]", "sklearn/tests/test_impute.py::test_imputation_error_invalid_strategy[101]", "sklearn/tests/test_impute.py::test_imputation_error_invalid_strategy[None]", "sklearn/tests/test_impute.py:...
null
true
2018-06-29T13:52:07Z
1
12
1
3,516
0
0.8
1
0.62
1
0.54
81.99
3,840
swe_smith::train::35928
swe_smith
train
35,928
stanfordnlp__dspy.651a4c71.lm_rewrite__p3u1qyye
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# validate_data_format() raises ValueError instead of writing to log file I'm using DSPy and noticed an issue with the `validate_data_format()` function in the `dspy/clients/utils_finetune.py` module. The function now raises a ValueError immediately when it encounters an error instead of collecting all errors and writ...
diff --git a/dspy/clients/utils_finetune.py b/dspy/clients/utils_finetune.py index 7d83c74..a511602 100644 --- a/dspy/clients/utils_finetune.py +++ b/dspy/clients/utils_finetune.py @@ -61,40 +61,37 @@ def save_data( return file_path -def validate_data_format( - data: List[Dict[str, Any]], - data_format: ...
["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
63
4
2,165
0
0.6
1
0.75
1
0.570833
81.9875
3,841
swe_smith::train::5073
swe_smith
train
5,073
agronholm__exceptiongroup.0b4f4937.combine_file__ap097ezd
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
Exception handling broken after recent changes #### Description The `catch()` function is not working properly. When trying to catch exceptions with handlers, it's raising unexpected errors instead of properly handling the exceptions. #### Steps/Code to Reproduce ```python from exceptiongroup import catch, Exceptio...
diff --git a/src/exceptiongroup/_catch.py b/src/exceptiongroup/_catch.py index 0246568..57b71c2 100644 --- a/src/exceptiongroup/_catch.py +++ b/src/exceptiongroup/_catch.py @@ -48,55 +48,66 @@ class _Catcher: return False def handle_exception(self, exc: BaseException) -> BaseException | None: - e...
["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...
["tests/test_exceptions.py::TestExceptionGroupTypeHierarchy::test_exception_group_is_generic_type", "tests/test_exceptions.py::TestExceptionGroupTypeHierarchy::test_exception_group_types", "tests/test_exceptions.py::BadConstructorArgs::test_bad_EG_construction__bad_excs_sequence", "tests/test_exceptions.py::BadConstruc...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
1
121
17
996
0
0.6
1
0.75
1
0.569333
81.983
3,842
swe_smith::train::26520
swe_smith
train
26,520
pylint-dev__astroid.b114f6b5.lm_rewrite__22xb5ywg
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
### Bug: Attribute Access Fails with `six.moves` Imports #### Description It seems there's an issue with accessing attributes when using `six.moves` imports. This problem arises after the recent changes in the `InspectBuilder` class. The expected behavior is not being met, causing unexpected failures in attribute inf...
diff --git a/astroid/raw_building.py b/astroid/raw_building.py index c1f7ec1..eb3cbcd 100644 --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -523,63 +523,23 @@ class InspectBuilder: def imported_member(self, node, member, name: str) -> bool: """verify this is not an imported class or hand...
["tests/brain/test_brain.py::TypeBrain::test_builtin_subscriptable", "tests/brain/test_six.py::SixBrainTest::test_attribute_access", "tests/brain/test_six.py::SixBrainTest::test_attribute_access_with_six_moves_imported", "tests/test_raw_building.py::test_build_module_getattr_catch_output"]
["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
72
4
1,971
0
0.6
1
0.75
1
0.5685
81.9805
3,843
swe_smith::train::35085
swe_smith
train
35,085
django__daphne.32ac73e1.combine_file__3wn5w6n0
swesmith/django__daphne.32ac73e1
django/daphne
python
null
# Connection management issues in Daphne server While working on a project using Daphne, I noticed some strange behavior with connection management. There appear to be multiple issues with how connections are handled, particularly around disconnection tracking and header validation. ## Issue 1: Connections not being ...
diff --git a/daphne/server.py b/daphne/server.py index a6d3819..570501e 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -187,12 +187,8 @@ class Server: self.connections[protocol] = {"connected": time.time()} def protocol_disconnected(self, protocol): - # Set its disconnected time (the loo...
["tests/test_http_response.py::TestHTTPResponse::test_headers_type", "tests/test_websocket.py::TestWebsocket::test_http_timeout"]
["tests/test_checks.py::test_check_daphne_installed", "tests/test_cli.py::TestEndpointDescriptions::testBasics", "tests/test_cli.py::TestEndpointDescriptions::testFileDescriptorBinding", "tests/test_cli.py::TestEndpointDescriptions::testMultipleEnpoints", "tests/test_cli.py::TestEndpointDescriptions::testTcpPortBinding...
jyangballin/swesmith.x86_64.django_1776_daphne.32ac73e1
true
null
1
52
2
2,369
0
0.6
1
0.75
1
0.568167
81.9795
3,844
swe_smith::train::1959
swe_smith
train
1,959
agronholm__typeguard.b6a7e438.lm_rewrite__emy9fwdt
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
# [Bug]: Protocol compatibility checking is broken ## Description I've discovered an issue with the Protocol compatibility checking in typeguard. When checking if an object satisfies a Protocol, the implementation is incorrectly handling protocol members and method signatures. ## Steps to Reproduce Here's a simple ...
diff --git a/src/typeguard/_checkers.py b/src/typeguard/_checkers.py index 5e34036..635c0bb 100644 --- a/src/typeguard/_checkers.py +++ b/src/typeguard/_checkers.py @@ -791,56 +791,43 @@ def check_signature_compatible(subject: type, protocol: type, attrname: str) -> ) -def check_protocol( - value: A...
["tests/test_checkers.py::TestIntersectingProtocol::test_raises_for_non_member[generator]", "tests/test_checkers.py::TestProtocol::test_member_checks[False]", "tests/test_checkers.py::TestProtocol::test_missing_method", "tests/test_checkers.py::TestProtocol::test_too_many_posargs", "tests/test_checkers.py::TestProtocol...
["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
83
12
1,743
0
0.6
1
0.75
1
0.567167
81.9765
3,845
swe_smith::train::51665
swe_smith
train
51,665
pydicom__pydicom.7d361b3d.combine_module__z6qhxrn3
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
Pixel validation incorrectly rejects valid DICOM values #### Description The pixel data validation in `RunnerBase` is incorrectly rejecting valid DICOM values due to off-by-one errors and incorrect range checks. This affects several DICOM attributes including bits allocated, columns, number of frames, pixel represent...
diff --git a/src/pydicom/pixels/common.py b/src/pydicom/pixels/common.py index 10a4a93..4c3b44f 100644 --- a/src/pydicom/pixels/common.py +++ b/src/pydicom/pixels/common.py @@ -574,7 +574,7 @@ class RunnerBase: if self._opts.get("bits_allocated") is None: raise AttributeError(f"{prefix},0100) 'Bit...
["tests/pixels/test_common.py::TestRunnerBase::test_validate_options", "tests/pixels/test_decoder_base.py::TestDecodeRunner::test_validate_options", "tests/pixels/test_encoder_base.py::TestDatasetCompress::test_compress_inplace", "tests/pixels/test_encoder_base.py::TestDatasetCompress::test_encapsulate_extended", "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
74
15
1,918
0
0.6
1
0.75
1
0.566333
81.974
3,846
swe_smith::train::44600
swe_smith
train
44,600
mahmoud__glom.fb3c4e76.combine_file__myb75dj6
swesmith/mahmoud__glom.fb3c4e76
mahmoud/glom
python
null
T and S path evaluation broken after recent changes #### Description Something seems to have broken the core path evaluation logic for T (target) and S (scope) operations. Basic glom operations that were working before are now failing with IndexError exceptions. #### Steps/Code to Reproduce ```python from glom impo...
diff --git a/glom/core.py b/glom/core.py index cee71a3..6728907 100644 --- a/glom/core.py +++ b/glom/core.py @@ -148,22 +148,17 @@ class GlomError(Exception): self.__wrapped = exc def _finalize(self, scope): - # careful when changing how this functionality works; pytest seems to mess with - ...
["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", "...
["glom/test/test_basic.py::test_abstract_iterable", "glom/test/test_basic.py::test_glom_extra_kwargs", "glom/test/test_basic.py::test_api_repr", "glom/test/test_basic.py::test_bbformat", "glom/test/test_basic.py::test_bbrepr", "glom/test/test_check.py::test_check_signature", "glom/test/test_cli.py::test_usage_errors", ...
jyangballin/swesmith.x86_64.mahmoud_1776_glom.fb3c4e76
true
null
1
122
122
953
0
0.6
1
0.75
1
0.5655
81.9715
3,847
swe_smith::train::52643
swe_smith
train
52,643
pydicom__pydicom.7d361b3d.lm_rewrite__1ocdopxz
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
[Bug]: ICC transformation fails when both dataset and ICC profile are provided ### Bug summary When creating an ICC transformation using `create_icc_transform()`, providing both a dataset and an ICC profile causes the function to fail. ### Code for reproduction ```python from pydicom import Dataset from pydicom.pix...
diff --git a/src/pydicom/pixels/processing.py b/src/pydicom/pixels/processing.py index 62f26f8..31c6795 100644 --- a/src/pydicom/pixels/processing.py +++ b/src/pydicom/pixels/processing.py @@ -997,12 +997,9 @@ def _convert_YBR_FULL_to_RGB(arr: "np.ndarray") -> "np.ndarray": return arr.astype(orig_dtype) -def c...
["tests/pixels/test_processing.py::test_create_icc_transform_no_pillow_raises"]
["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
105
1
1,293
0
0.6
1
0.75
1
0.5655
81.9715
3,848
swe_smith::train::17241
swe_smith
train
17,241
prettytable__prettytable.ca90b055.lm_rewrite__vgc9sq7k
swesmith/prettytable__prettytable.ca90b055
prettytable/prettytable
python
null
# Custom format validation broken for dictionary values ## Description I've found an issue with the custom format validation in PrettyTable. When initializing a PrettyTable with a custom_format dictionary, the validation fails to properly check if the values are callable functions. ## Steps to Reproduce ```python f...
diff --git a/src/prettytable/prettytable.py b/src/prettytable/prettytable.py index 818a520..ebcf475 100644 --- a/src/prettytable/prettytable.py +++ b/src/prettytable/prettytable.py @@ -493,25 +493,25 @@ class PrettyTable: # persistent settings def _validate_option(self, option, val) -> None: + """Val...
["tests/test_prettytable.py::TestCustomFormatter::test_init_custom_format_set_value", "tests/test_prettytable.py::TestCustomFormatter::test_init_custom_format_throw_error_is_not_callable"]
["tests/test_colortable.py::TestColorTable::test_themeless", "tests/test_colortable.py::TestColorTable::test_theme_setter", "tests/test_colortable.py::TestFormatCode::test_basic", "tests/test_colortable.py::TestFormatCode::test_prefix", "tests/test_colortable.py::TestFormatCode::test_escapes", "tests/test_colortable.py...
jyangballin/swesmith.x86_64.prettytable_1776_prettytable.ca90b055
true
null
1
79
2
1,803
0
0.6
1
0.75
1
0.563833
81.9665
3,849
swe_smith::train::10330
swe_smith
train
10,330
paramiko__paramiko.23f92003.func_basic__62gbdj2h
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH connection fails when no authentication method provided #### Description When connecting to an SSH server using `Transport.connect()` without providing any authentication credentials (no password, no private key, and GSS authentication disabled), the connection now fails with an SSHException instead of allowing t...
diff --git a/paramiko/transport.py b/paramiko/transport.py index f0fcb97..f6cc73b 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1350,119 +1350,46 @@ class Transport(threading.Thread, ClosingContextManager): gss_deleg_creds=True, gss_trust_dns=True, ): - """ - Ne...
["tests/auth.py::AuthHandler_::bad_password", "tests/auth.py::AuthHandler_::multipart_auth", "tests/auth.py::AuthHandler_::interactive_auth", "tests/auth.py::AuthHandler_::interactive_fallback", "tests/auth.py::AuthHandler_::utf8", "tests/auth.py::AuthHandler_::non_utf8", "tests/auth.py::AuthHandler_::auth_exception_wh...
["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
109
21
1,200
0
0.6
1
0.75
1
0.563333
81.965
3,850
swe_smith::train::35952
swe_smith
train
35,952
stanfordnlp__dspy.651a4c71.lm_rewrite__wfotyaqk
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# SnowflakeRM returns incorrect response format ## Bug description The SnowflakeRM retriever is returning incorrect response format when querying Cortex Search. The retriever is not properly formatting the passages in the response, causing downstream issues when trying to access the retrieved content. ## Steps to re...
diff --git a/dspy/retrieve/snowflake_rm.py b/dspy/retrieve/snowflake_rm.py index 1404819..b4aa54b 100644 --- a/dspy/retrieve/snowflake_rm.py +++ b/dspy/retrieve/snowflake_rm.py @@ -58,13 +58,9 @@ class SnowflakeRM(dspy.Retrieve): self.optimized_filter_gen = SmartSearch() self.filter_lm = dspy....
["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
64
4
2,096
0
0.6
1
0.75
1
0.562667
81.963
3,851
swe_smith::train::1953
swe_smith
train
1,953
agronholm__typeguard.b6a7e438.lm_rewrite__8aboj0fv
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
# Mock objects not being recognized as valid for type checking **Describe the bug** When using Mock objects with typeguard, they are no longer recognized as valid for any type. Previously, Mock objects were automatically accepted for any type annotation, but now they're being rejected during type checking. **To Repro...
diff --git a/src/typeguard/_checkers.py b/src/typeguard/_checkers.py index 5e34036..02e7c2e 100644 --- a/src/typeguard/_checkers.py +++ b/src/typeguard/_checkers.py @@ -881,11 +881,8 @@ def check_paramspec( pass # No-op for now -def check_type_internal( - value: Any, - annotation: Any, - memo: TypeCh...
["tests/test_checkers.py::TestTuple::test_empty_tuple_fail[builtin]", "tests/test_checkers.py::TestUnion::test_typing_type_fail", "tests/test_checkers.py::TestUnion::test_union_fail[float-pep604]", "tests/test_checkers.py::TestUnion::test_union_fail[bytes-pep604]", "tests/test_checkers.py::TestTypevar::test_bound", "te...
["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
102
19
1,333
0
0.6
1
0.75
1
0.562167
81.9615
3,852
swe_bench::test::1145
swe_bench
test
1,145
mwaskom__seaborn-3202
mwaskom/seaborn
mwaskom/seaborn
python
d25872b0fc99dbf7e666a91f59bd4ed125186aa1
Objects interface raises if faceting on partially-crossed row and column In the objects interface, one can facet two variables using rows and columns. When the faceted categories are not fully crossed, it raises: ```python import seaborn as sns import seaborn.objects as so penguins = sns.load_dataset("penguins") ( ...
diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py --- a/seaborn/_core/plot.py +++ b/seaborn/_core/plot.py @@ -1466,8 +1466,6 @@ def _setup_split_generator( self, grouping_vars: list[str], df: DataFrame, subplots: list[dict[str, Any]], ) -> Callable[[], Generator]: - allow_empty = False ...
diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py --- a/tests/_core/test_plot.py +++ b/tests/_core/test_plot.py @@ -680,8 +680,9 @@ def test_matplotlib_object_creation(self): def test_empty(self): m = MockMark() - Plot().plot() + Plot().add(m).plot() assert m.n_spli...
["tests/_core/test_plot.py::TestPlotting::test_empty", "tests/_core/test_scales.py::TestNominal::test_empty_data"]
["tests/_core/test_plot.py::TestInit::test_empty", "tests/_core/test_plot.py::TestInit::test_data_only", "tests/_core/test_plot.py::TestInit::test_df_and_named_variables", "tests/_core/test_plot.py::TestInit::test_df_and_mixed_variables", "tests/_core/test_plot.py::TestInit::test_vector_variables_only", "tests/_core/te...
null
true
2022-12-23T02:15:50Z
2
9
2
4,250
0
0.8
1
0.62
1
0.53
81.96
3,853
swe_smith::train::4654
swe_smith
train
4,654
pygments__pygments.27649ebb.pr_2521
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
# OcamlLexer fails to initialize due to missing tokens dictionary ## Description I'm encountering an issue with the OcamlLexer in Pygments. When trying to use it, I get a KeyError with an empty string: ``` KeyError: '' ``` This happens when I try to use the lexer in my code: ```python from pygments.lexers import O...
diff --git a/pygments/lexers/ml.py b/pygments/lexers/ml.py index ff50c6f..b589282 100644 --- a/pygments/lexers/ml.py +++ b/pygments/lexers/ml.py @@ -365,13 +365,13 @@ class OcamlLexer(RegexLexer): version_added = '0.7' keywords = ( - 'and', 'as', 'assert', 'begin', 'class', 'constraint', 'do', 'done'...
["tests/test_basic_api.py::test_lexer_classes[OcamlLexer]", "tests/test_basic_api.py::test_lexer_options[OcamlLexer]", "tests/test_basic_api.py::test_random_input[OcamlLexer]", "tests/test_basic_api.py::test_get_lexers", "tests/examplefiles/ocaml/format.ml::"]
["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
105
5
1,264
0
0.6
1
0.75
1
0.560667
81.957
3,854
swe_smith::train::26577
swe_smith
train
26,577
pylint-dev__astroid.b114f6b5.lm_rewrite__gw6sqhu3
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
### ImportError when using custom module finders I've encountered an issue with the module import mechanism when using custom finders. It seems that the recent changes have affected the way modules are located, particularly when using custom finders that are not part of `sys.meta_path`. ### Description When attempti...
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py index e0c54d4..c627a73 100644 --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -372,59 +372,49 @@ def _search_zip( raise ImportError(f"No module named {'.'.join(modpath)}") -def _find_sp...
["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_mul...
["tests/brain/numpy/test_core_function_base.py::BrainNumpyCoreFunctionBaseTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_bool", "tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest:...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
94
100
1,478
0
0.6
1
0.75
1
0.559667
81.954
3,855
swe_smith::train::10946
swe_smith
train
10,946
paramiko__paramiko.23f92003.lm_rewrite__wmq525kc
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
File operations fail with "No such file" error Description It seems that file operations such as creating, writing, and reading files are failing with a "No such file" error. This issue occurs when attempting to perform various SFTP operations, including opening a file for writing or reading, appending to a file, and...
diff --git a/paramiko/sftp_server.py b/paramiko/sftp_server.py index cd3910d..013e669 100644 --- a/paramiko/sftp_server.py +++ b/paramiko/sftp_server.py @@ -374,43 +374,43 @@ class SFTPServer(BaseSFTP, SubsystemHandler): return flags def _process(self, t, request_number, msg): - self._log(DEBUG, ...
["tests/test_sftp.py::TestSFTP::test_file", "tests/test_sftp.py::TestSFTP::test_write", "tests/test_sftp.py::TestSFTP::test_sftp_file_can_be_used_as_context_manager", "tests/test_sftp.py::TestSFTP::test_append", "tests/test_sftp.py::TestSFTP::test_rename", "tests/test_sftp.py::TestSFTP::testa_posix_rename", "tests/test...
["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
109
40
1,168
0
0.6
1
0.75
1
0.558
81.949
3,856
swe_smith::train::34368
swe_smith
train
34,368
iterative__dvc.1d6ea681.pr_10243
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# `dvc experiments save` command no longer accepts targets parameter #### Description The `dvc experiments save` command no longer accepts targets parameter, which breaks the ability to save experiments with specific files. This functionality was previously working but appears to have been removed. #### Steps/Code to...
diff --git a/dvc/commands/experiments/save.py b/dvc/commands/experiments/save.py index 5355380..d0787bf 100644 --- a/dvc/commands/experiments/save.py +++ b/dvc/commands/experiments/save.py @@ -1,6 +1,6 @@ import argparse -from dvc.cli import completion, formatter +from dvc.cli import formatter from dvc.cli.command ...
["tests/func/experiments/test_save.py::test_exp_save_unchanged", "tests/func/experiments/test_save.py::test_exp_save[None]", "tests/func/experiments/test_save.py::test_exp_save[test]", "tests/func/experiments/test_save.py::test_exp_save_overwrite_experiment", "tests/func/experiments/test_save.py::test_exp_save_invalid_...
[]
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
3
96
18
1,427
0
0.6
1
0.75
1
0.557833
81.9485
3,857
swe_smith::train::44509
swe_smith
train
44,509
pydata__patsy.a5d16484.lm_rewrite__ett5m3p5
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
### Issue: Formula Evaluation Error with Tilde Operator #### Description There seems to be an issue with the formula evaluation when using the tilde (`~`) operator in certain scenarios. The error occurs when attempting to parse and evaluate formulas that include both left-hand side (LHS) and right-hand side (RHS) ter...
diff --git a/patsy/desc.py b/patsy/desc.py index 210350d..e389ae8 100644 --- a/patsy/desc.py +++ b/patsy/desc.py @@ -636,18 +636,90 @@ def _assert_terms_match(terms, expected_intercept, expecteds): # pragma: no cov assert term == expected -def _do_eval_formula_tests(tests): # pragma: no cover - fo...
["patsy/desc.py::test_eval_formula"]
["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
96
1
1,425
0
0.6
1
0.75
1
0.5575
81.9475
3,858
swe_smith::train::11973
swe_smith
train
11,973
andialbrecht__sqlparse.e57923b3.lm_rewrite__mkqk9f9r
swesmith/andialbrecht__sqlparse.e57923b3
andialbrecht/sqlparse
python
null
# stdin encoding issue with sqlparse CLI ## Description The CLI tool has an issue when reading from stdin with non-UTF-8 encodings. When trying to process SQL files with different character encodings through stdin, the tool fails to properly handle the encoding. ## Steps to reproduce 1. Create a SQL file with GBK e...
diff --git a/sqlparse/cli.py b/sqlparse/cli.py index 4e7e0d7..31cd14d 100755 --- a/sqlparse/cli.py +++ b/sqlparse/cli.py @@ -162,42 +162,64 @@ def _error(msg): def main(args=None): + """Parse command line arguments and format SQL statements.""" parser = create_parser() args = parser.parse_args(args) -...
["tests/test_cli.py::test_invalid_args", "tests/test_cli.py::test_invalid_outfile", "tests/test_cli.py::test_encoding_stdin[encoding_gbk.sql-gbk]"]
["tests/test_cli.py::test_cli_main_empty", "tests/test_cli.py::test_parser_empty", "tests/test_cli.py::test_main_help", "tests/test_cli.py::test_valid_args", "tests/test_cli.py::test_invalid_choice", "tests/test_cli.py::test_invalid_infile", "tests/test_cli.py::test_stdout", "tests/test_cli.py::test_script", "tests/tes...
jyangballin/swesmith.x86_64.andialbrecht_1776_sqlparse.e57923b3
true
null
1
86
3
1,619
0
0.6
1
0.75
1
0.5565
81.9445
3,859
swe_smith::train::18508
swe_smith
train
18,508
HIPS__autograd.ac044f0d.lm_rewrite__346224tb
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
**Issue: Unexpected Behavior with `np.einsum` in Certain Configurations** **Description** There seems to be an issue with the `np.einsum` function when using certain configurations, particularly involving ellipses and multiple arguments. The function is not handling these cases as expected, leading to errors. **Steps...
diff --git a/autograd/numpy/numpy_vjps.py b/autograd/numpy/numpy_vjps.py index 08d4e1b..1cd4f6a 100644 --- a/autograd/numpy/numpy_vjps.py +++ b/autograd/numpy/numpy_vjps.py @@ -809,50 +809,66 @@ defvjp(anp.atleast_3d, grad_reshape_list) def grad_einsum(argnum, ans, operands_, kwargs): - result_meta = anp.metada...
["tests/test_systematic.py::test_einsum_matmult_broadcast", "tests/test_systematic.py::test_einsum_ellipses_tail", "tests/test_systematic.py::test_einsum_matmult", "tests/test_systematic.py::test_einsum_ellipses_center", "tests/test_systematic.py::test_einsum_naked_sum", "tests/test_systematic.py::test_einsum_naked_sum...
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
98
13
1,374
0
0.6
1
0.75
1
0.555667
81.942
3,860
swe_smith::train::50938
swe_smith
train
50,938
python-hyper__h11.bed0dd4a.lm_rewrite__eaka9f9b
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
ChunkedReader Fails to Handle Trailers Correctly Description (last modified by [Your Name]) It seems there's an issue with the `ChunkedReader` class when processing chunked transfer encoding, particularly with handling trailers. According to RFC 7230 Section 4.1, trailers should be processed after the final zero-siz...
diff --git a/h11/_readers.py b/h11/_readers.py index 08a9574..badefe2 100644 --- a/h11/_readers.py +++ b/h11/_readers.py @@ -155,11 +155,21 @@ class ChunkedReader: self._reading_trailer = False def __call__(self, buf: ReceiveBuffer) -> Union[Data, EndOfMessage, None]: - if self._reading_trailer: ...
["h11/tests/test_connection.py::test_chunked", "h11/tests/test_connection.py::test_chunk_boundaries", "h11/tests/test_connection.py::test_automatic_transfer_encoding_in_response", "h11/tests/test_connection.py::test_100_continue", "h11/tests/test_connection.py::test_reuse_simple", "h11/tests/test_connection.py::test_pr...
["h11/tests/test_against_stdlib_http.py::test_h11_as_client", "h11/tests/test_against_stdlib_http.py::test_h11_as_server", "h11/tests/test_connection.py::test__keep_alive", "h11/tests/test_connection.py::test__body_framing", "h11/tests/test_connection.py::test_Connection_basics_and_content_length", "h11/tests/test_conn...
jyangballin/swesmith.x86_64.python-hyper_1776_h11.bed0dd4a
true
null
1
96
9
1,413
0
0.6
1
0.75
1
0.5555
81.9415
3,861
swe_smith::train::45598
swe_smith
train
45,598
conan-io__conan.86f29e13.combine_module__5ekddzfd
swesmith/conan-io__conan.86f29e13
conan-io/conan
python
null
Profile serialization and settings validation issues It seems that recent changes have introduced some unexpected behavior in the profile serialization and settings validation processes. Here's what I've observed: 1. **Profile Serialization**: When attempting to serialize a profile, the output does not include all ex...
diff --git a/conan/internal/model/profile.py b/conan/internal/model/profile.py index 54aa126..2e97c57 100644 --- a/conan/internal/model/profile.py +++ b/conan/internal/model/profile.py @@ -34,33 +34,23 @@ class Profile: return self.dumps() def serialize(self): - def _serialize_tool_requires(): - ...
["test/unittests/model/profile_test.py::ProfileTest::test_profile_subsettings_update", "test/unittests/model/profile_test.py::test_profile_serialize", "test/unittests/model/settings_test.py::SettingsLoadsTest::test_any", "test/unittests/model/settings_test.py::SettingsLoadsTest::test_getattr_none", "test/unittests/mode...
["test/unittests/model/profile_test.py::ProfileTest::test_apply", "test/unittests/model/profile_test.py::ProfileTest::test_package_settings_update", "test/unittests/model/profile_test.py::ProfileTest::test_profile_dump_order", "test/unittests/model/profile_test.py::ProfileTest::test_profile_settings_update", "test/unit...
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
true
null
2
65
19
2,031
0
0.6
1
0.75
1
0.555167
81.9405
3,862
swe_bench::test::1463
swe_bench
test
1,463
pytest-dev__pytest-8250
pytest-dev/pytest
pytest-dev/pytest
python
7f782c72ba157aaa26f74553ab328c898dab949c
Problem with faulthandler when used with Twisted Logger and "pytest --capture=no" Dear `pytest` developers, thanks a stack for conceiving and maintaining this excellent package. I never expected to file an issue or submit a patch here, but here we go. ### Introduction On behalf of https://github.com/daq-tools/kotori/...
diff --git a/src/_pytest/faulthandler.py b/src/_pytest/faulthandler.py --- a/src/_pytest/faulthandler.py +++ b/src/_pytest/faulthandler.py @@ -69,7 +69,12 @@ def pytest_unconfigure(self, config: Config) -> None: @staticmethod def _get_stderr_fileno(): try: - return sys.stderr.fileno() + ...
diff --git a/testing/test_faulthandler.py b/testing/test_faulthandler.py --- a/testing/test_faulthandler.py +++ b/testing/test_faulthandler.py @@ -1,3 +1,4 @@ +import io import sys import pytest @@ -135,3 +136,27 @@ def test(): result.stdout.no_fnmatch_line(warning_line) result.stdout.fnmatch_lines("*...
["testing/test_faulthandler.py::test_get_stderr_fileno_invalid_fd"]
["testing/test_faulthandler.py::test_cancel_timeout_on_hook[pytest_enter_pdb]", "testing/test_faulthandler.py::test_cancel_timeout_on_hook[pytest_exception_interact]", "testing/test_faulthandler.py::test_already_initialized[0]", "testing/test_faulthandler.py::test_already_initialized[2]", "testing/test_faulthandler.py:...
null
true
2021-01-17T19:08:35Z
1
7
1
4,487
0
0.8
1
0.62
1
0.523333
81.94
3,863
swe_smith::train::5197
swe_smith
train
5,197
agronholm__exceptiongroup.0b4f4937.lm_rewrite__6sjdesdr
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
Exception Handling Regression in _Catcher Class Description It seems there's a regression in the exception handling logic within the `_Catcher` class. When attempting to handle exceptions using the `catch` function, certain scenarios lead to unexpected behavior or errors. Reproduction Steps: 1. Define a handler fun...
diff --git a/src/exceptiongroup/_catch.py b/src/exceptiongroup/_catch.py index 0246568..acd2905 100644 --- a/src/exceptiongroup/_catch.py +++ b/src/exceptiongroup/_catch.py @@ -48,50 +48,61 @@ class _Catcher: return False def handle_exception(self, exc: BaseException) -> BaseException | None: - e...
["tests/test_catch.py::test_catch_ungrouped", "tests/test_catch.py::test_catch_no_match", "tests/test_catch.py::test_catch_handler_raises", "tests/test_catch.py::test_bare_raise_in_handler", "tests/test_catch.py::test_catch_subclass", "tests/test_catch.py::test_async_handler", "tests/test_catch.py::test_bare_reraise_fr...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
1
91
7
1,503
0
0.6
1
0.75
1
0.553833
81.9365
3,864
swe_smith::train::38
swe_smith
train
38
oauthlib__oauthlib.1fd52536.combine_file__868k2n2u
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
OAuth2 metadata validation logic inverted causing incorrect validation errors #### Description The metadata endpoint validation is throwing errors for valid configurations and accepting invalid ones. When creating a MetadataEndpoint with proper OAuth2 server configuration, validation errors are raised for correctly f...
diff --git a/oauthlib/oauth2/rfc6749/endpoints/metadata.py b/oauthlib/oauth2/rfc6749/endpoints/metadata.py index 34274cb..0f63d1d 100644 --- a/oauthlib/oauth2/rfc6749/endpoints/metadata.py +++ b/oauthlib/oauth2/rfc6749/endpoints/metadata.py @@ -64,24 +64,24 @@ class MetadataEndpoint(BaseEndpoint): return ...
["tests/oauth2/rfc6749/endpoints/test_metadata.py::MetadataEndpointTest::test_create_metadata_response", "tests/oauth2/rfc6749/endpoints/test_metadata.py::MetadataEndpointTest::test_mandatory_fields", "tests/oauth2/rfc6749/endpoints/test_metadata.py::MetadataEndpointTest::test_openid_oauth2_preconfigured", "tests/oauth...
["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
88
6
1,559
0
0.6
1
0.75
1
0.553167
81.9345
3,865
swe_smith::train::47696
swe_smith
train
47,696
sqlfluff__sqlfluff.50a1c4b6.func_basic__14cda9n0
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
Grammar copy method breaks element insertion and removal #### Description The `BaseGrammar.copy()` method has several issues that cause incorrect behavior when copying grammars with modifications: 1. Elements inserted with `at=None` are placed at the beginning instead of the end 2. Elements inserted with `at` parame...
diff --git a/src/sqlfluff/core/parser/grammar/base.py b/src/sqlfluff/core/parser/grammar/base.py index c6cc9e7..cbffb7f 100644 --- a/src/sqlfluff/core/parser/grammar/base.py +++ b/src/sqlfluff/core/parser/grammar/base.py @@ -223,93 +223,40 @@ class BaseGrammar(Matchable): remove: Optional[List[Matchable]] = No...
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar__oneof__copy"]
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[True]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[False]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof_templated", "test/core/parser/grammar/grammar_anyof_test.py::test__pars...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
75
1
1,812
0
0.6
1
0.75
1
0.552
81.931
3,866
swe_smith::train::48432
swe_smith
train
48,432
sqlfluff__sqlfluff.50a1c4b6.func_pm_remove_cond__3ofxxydg
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
Lexer fails to process SQL with NotImplementedError #### Description The lexer is throwing a `NotImplementedError` when processing SQL code. This appears to be related to the segment iteration logic in the lexer module. #### Steps/Code to Reproduce ```python from sqlfluff import parse # Simple SQL that triggers th...
diff --git a/src/sqlfluff/core/parser/lexer.py b/src/sqlfluff/core/parser/lexer.py index 1fbf312..b949661 100644 --- a/src/sqlfluff/core/parser/lexer.py +++ b/src/sqlfluff/core/parser/lexer.py @@ -521,123 +521,12 @@ def _iter_segments( for tfs_idx, tfs in enumerate(templated_file_slices[tfs_idx:], tfs_idx): ...
["test/core/parser/lexer_test.py::test__parser__lexer_obj[b.c-res1]", "test/core/parser/lexer_test.py::test__parser__lexer_obj[*-+bd/-res8]", "test/core/parser/lexer_test.py::test__parser__lexer_fail", "test/core/parser/lexer_test.py::test__parser__lexer_fail_via_parse"]
["test/core/parser/lexer_test.py::test__parser__lexer_string[.fsaljk-.]", "test/core/parser/lexer_test.py::test__parser__lexer_string[fsaljk-None]", "test/core/parser/lexer_test.py::test__parser__lexer_regex[fsaljk-f-f0]", "test/core/parser/lexer_test.py::test__parser__lexer_regex[fsaljk-f-f1]", "test/core/parser/lexer...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
126
4
790
0
0.6
1
0.75
1
0.551667
81.93
3,867
swe_smith::train::8290
swe_smith
train
8,290
cantools__cantools.0c6a7871.lm_rewrite__mofxuuam
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
### [Bug]: ARXML Parsing Fails with Dangling Reference Error #### Description After the recent changes, loading ARXML files results in an unexpected error related to dangling references. This issue seems to occur when attempting to parse certain ARXML files, specifically when dealing with `CONSTANT-REF` elements. The...
diff --git a/src/cantools/database/can/formats/arxml/system_loader.py b/src/cantools/database/can/formats/arxml/system_loader.py index f7aa786..596ad85 100644 --- a/src/cantools/database/can/formats/arxml/system_loader.py +++ b/src/cantools/database/can/formats/arxml/system_loader.py @@ -1990,68 +1990,44 @@ class Syste...
["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
88
10
1,541
0
0.6
1
0.75
1
0.550167
81.9255
3,868
r2e_gym::train::5158
r2e_gym
train
5,158
pyramid__b8b896b748ba5d4fd9c6d46db0d6f192cab264f3
pyramid
pylons/pyramid
python
b8b896b748ba5d4fd9c6d46db0d6f192cab264f3
**Title:** Session Factory Fails to Accept 'signed_serialize' and 'signed_deserialize' Parameters **Description:** After merging the latest changes, attempting to configure the `UnencryptedCookieSessionFactoryConfig` with custom `signed_serialize` and `signed_deserialize` functions results in a `TypeError`. This preve...
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -177,4 +177,6 @@ - Jeff Cook, 2012/06/16 +- Ian Wilson, 2012/06/17 + - Roman Kozlovskyi, 2012/08/11 diff --git a/pyramid/session.py b/pyramid/session.py --- a/pyramid/session.py +++ b/pyramid/session.py @@ -33,6 +33,...
diff --git a/pyramid/tests/test_session.py b/pyramid/tests/test_session.py --- a/pyramid/tests/test_session.py +++ b/pyramid/tests/test_session.py @@ -205,6 +205,48 @@ self.assertTrue(token) self.assertTrue('_csrft_' in session) + def test_serialize_option(self): + from pyramid.response im...
null
null
namanjain12/pyramid_final:b8b896b748ba5d4fd9c6d46db0d6f192cab264f3
true
null
2
108
null
1,853
0
0.75
1
0.6375
1
0.668833
81.92525
3,869
swe_smith::train::34080
swe_smith
train
34,080
iterative__dvc.1d6ea681.combine_file__c2un48g5
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
Stage creation fails with TypeError when passing keyword arguments #### Description When creating stages using the `StageLoad.create()` method, a `TypeError` is raised due to incorrect parameter handling in the method signature. #### Steps/Code to Reproduce ```python from dvc.repo import Repo from dvc.repo.stage im...
diff --git a/dvc/repo/stage.py b/dvc/repo/stage.py index 102a8eb..34e41b9 100644 --- a/dvc/repo/stage.py +++ b/dvc/repo/stage.py @@ -37,22 +37,26 @@ StageIter = Iterable["Stage"] StageSet = set["Stage"] -def _collect_with_deps(stages: StageList, graph: "DiGraph") -> StageSet: - from dvc.exceptions import StageN...
["tests/func/test_stage.py::test_reload", "tests/func/test_stage.py::test_default_wdir_ignored_in_checksum", "tests/func/test_stage.py::test_external_remote_output_resolution", "tests/func/test_stage.py::test_external_remote_dependency_resolution", "tests/func/test_stage.py::test_md5_ignores_comments", "tests/func/test...
["tests/func/test_stage.py::test_cmd_obj", "tests/func/test_stage.py::test_no_cmd", "tests/func/test_stage.py::test_object", "tests/func/test_stage.py::test_none", "tests/func/test_stage.py::test_empty_list", "tests/func/test_stage.py::test_list", "tests/func/test_stage.py::test_md5_ignores_annotations", "tests/func/te...
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
1
107
12
1,160
0
0.6
1
0.75
1
0.55
81.925
3,870
swe_smith::train::45241
swe_smith
train
45,241
dask__dask.5f61e423.combine_module__msplitqr
swesmith/dask__dask.5f61e423
dask/dask
python
null
DataFrame.shuffle() raises NameError when called without arguments #### Description When calling `shuffle()` on a DataFrame without any arguments, it raises a `NameError` instead of the expected behavior or a proper error message. #### Steps/Code to Reproduce ```python import dask.dataframe as dd import pandas as p...
diff --git a/dask/dataframe/dask_expr/_collection.py b/dask/dataframe/dask_expr/_collection.py index 7aa07d4..7bce011 100644 --- a/dask/dataframe/dask_expr/_collection.py +++ b/dask/dataframe/dask_expr/_collection.py @@ -847,15 +847,9 @@ Expr={expr}""" raise ValueError(msg) return self.partitions[...
["dask/dataframe/dask_expr/io/tests/test_io.py::test_io_fusion_zero", "dask/dataframe/dask_expr/tests/test_collection.py::test_len_shuffle_repartition"]
["dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>0]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>1]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>2]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
2
113
2
1,037
0
0.6
1
0.75
1
0.5495
81.9235
3,871
swe_smith::train::17238
swe_smith
train
17,238
prettytable__prettytable.ca90b055.lm_rewrite__rnkem1t5
swesmith/prettytable__prettytable.ca90b055
prettytable/prettytable
python
null
### [BUG] Table Rendering with Custom Styles **Describe the bug** It seems that the table rendering functionality is not working correctly when using custom styles. Specifically, when setting a table style, the output does not match the expected format, and in some cases, an error is raised. **To Reproduce** Here's a...
diff --git a/src/prettytable/prettytable.py b/src/prettytable/prettytable.py index 818a520..3e5f1cf 100644 --- a/src/prettytable/prettytable.py +++ b/src/prettytable/prettytable.py @@ -1943,78 +1943,54 @@ class PrettyTable: reversesort - True or False to sort in descending or ascending order print emp...
["tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[False-True]", "tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[True-True0]", "tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[True-False]", "tests/test_colortable.py::TestColorTabl...
["tests/test_colortable.py::TestColorTable::test_themeless", "tests/test_colortable.py::TestColorTable::test_theme_setter", "tests/test_colortable.py::TestFormatCode::test_basic", "tests/test_colortable.py::TestFormatCode::test_prefix", "tests/test_colortable.py::TestFormatCode::test_escapes", "tests/test_colortable.py...
jyangballin/swesmith.x86_64.prettytable_1776_prettytable.ca90b055
true
null
1
96
72
1,373
0
0.6
1
0.75
1
0.548833
81.9215
3,872
swe_smith::train::24467
swe_smith
train
24,467
sunpy__sunpy.f8edfd5c.combine_module__4haix2ht
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
# Two bugs in sunpy/io: ANA file reading and GenX list unpacking ## Bug 1: ANA file reading fails with UnboundLocalError ### Description When trying to read ANA files using the `sunpy.io.ana.read()` function, it fails with an `UnboundLocalError` saying "cannot access local variable 'data' where it is not associated w...
diff --git a/sunpy/io/ana.py b/sunpy/io/ana.py index 708bcda..9f63e02 100644 --- a/sunpy/io/ana.py +++ b/sunpy/io/ana.py @@ -59,15 +59,14 @@ def read(filename, debug=False, **kwargs): -------- >>> data = sunpy.io.ana.read(filename) # doctest: +SKIP """ - if not os.path.isfile(filename): - rais...
["sunpy/io/tests/test_ana.py::test_i8c", "sunpy/io/tests/test_ana.py::test_i8u", "sunpy/io/tests/test_ana.py::test_i16c", "sunpy/io/tests/test_ana.py::test_i16u", "sunpy/io/tests/test_ana.py::test_f32u", "sunpy/io/tests/test_ana.py::test_read_memmap", "sunpy/io/tests/test_genx.py::test_unpacker"]
["sunpy/io/tests/test_ana.py::test_f32c", "sunpy/io/tests/test_genx.py::test_skeleton", "sunpy/io/tests/test_genx.py::test_array_elements_values", "sunpy/io/tests/test_genx.py::test_value_slice[slice0-0]", "sunpy/io/tests/test_genx.py::test_value_slice[slice1-96]", "sunpy/io/tests/test_genx.py::test_value_slice[slice2-...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
2
28
7
2,727
0
0.6
1
0.75
1
0.547833
81.9185
3,873
swe_smith::train::30474
swe_smith
train
30,474
pyca__pyopenssl.04766a49.lm_rewrite__t3i4xtsv
swesmith/pyca__pyopenssl.04766a49
pyca/pyopenssl
python
null
### Unexpected Behavior in SSL Connection Handling #### Description I've encountered an issue with the SSL connection handling in the latest update. It seems that certain operations involving SSL connections are not behaving as expected, particularly when dealing with connection shutdowns and data transmission over s...
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index eed27a0..fe266f7 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -1935,58 +1935,31 @@ class Connection: return getattr(self._socket, name) def _raise_ssl_error(self, ssl: Any, result: int) -> None: - if self._context._veri...
["tests/test_ssl.py::TestContext::test_set_info_callback", "tests/test_ssl.py::TestContext::test_set_keylog_callback", "tests/test_ssl.py::TestContext::test_set_proto_version", "tests/test_ssl.py::TestContext::test_load_verify_bytes_cafile", "tests/test_ssl.py::TestContext::test_load_verify_unicode_cafile", "tests/test...
["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
57
62
2,145
0
0.6
1
0.75
1
0.5475
81.9175
3,874
swe_smith::train::5083
swe_smith
train
5,083
agronholm__exceptiongroup.0b4f4937.combine_file__t8u2uac6
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
# [Bug]: Exception handling with `catch()` not working correctly ## Bug summary I'm trying to use the `catch()` function to handle exceptions in my code, but it's not working as expected. I've noticed several issues with how exceptions are being caught and processed. The behavior seems to have changed in a recent upd...
diff --git a/src/exceptiongroup/_catch.py b/src/exceptiongroup/_catch.py index 0246568..d9c256d 100644 --- a/src/exceptiongroup/_catch.py +++ b/src/exceptiongroup/_catch.py @@ -27,25 +27,23 @@ class _Catcher: exc: BaseException | None, tb: TracebackType | None, ) -> bool: - if exc is not N...
["tests/test_catch.py::test_catch_ungrouped", "tests/test_catch.py::test_catch_group", "tests/test_catch.py::test_catch_nested_group", "tests/test_catch.py::test_catch_no_match", "tests/test_catch.py::test_catch_single_no_match", "tests/test_catch.py::test_catch_handler_raises", "tests/test_catch.py::test_bare_raise_in...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
1
35
10
2,582
0
0.6
1
0.75
1
0.547
81.916
3,875
swe_smith::train::45244
swe_smith
train
45,244
dask__dask.5f61e423.combine_module__pg3xnj3b
swesmith/dask__dask.5f61e423
dask/dask
python
null
`da.tri` function raises ValueError with chunks and shape dimension mismatch #### Description When using `da.tri()` to create triangular arrays, the function raises a `ValueError` about chunks and shape having different dimensions. This happens because the function is not properly handling the 2D nature of the triang...
diff --git a/dask/array/creation.py b/dask/array/creation.py index b906bc4..eef2ef5 100644 --- a/dask/array/creation.py +++ b/dask/array/creation.py @@ -821,22 +821,62 @@ def diagonal(a, offset=0, axis1=0, axis2=1): @derived_from(np) -def tri(N, M=None, k=0, dtype=float, chunks="auto", *, like=None): +def tri(N, M...
["dask/array/tests/test_creation.py::test_tri[3-None-0-float-auto]", "dask/array/tests/test_creation.py::test_tri[4-None-0-float-auto]", "dask/array/tests/test_creation.py::test_tri[3-4-0-bool-auto]", "dask/array/tests/test_creation.py::test_tri[3-None-1-int-auto]", "dask/array/tests/test_creation.py::test_tri[3-None--...
["dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-empty_like-numpy]", "dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-empty-numpy]", "dask/array/tests/test_creation.py::test_arr_like[i4-C-None-shape0-chunks0-tuple-tuple-ones_like-numpy]", "das...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
2
108
10
1,118
0
0.6
1
0.75
1
0.546333
81.914
3,876
swe_smith::train::6888
swe_smith
train
6,888
joke2k__faker.8b401a7d.lm_rewrite__tjkg46p4
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
Locale Handling in Faker Initialization Causes AttributeError I've encountered an issue with the recent changes to the Faker class initialization. When passing a list of locales, if any element in the list is not a string, it raises an AttributeError. This seems to happen because the code attempts to call the `replace...
diff --git a/faker/proxy.py b/faker/proxy.py index ac39e45..91785ff 100644 --- a/faker/proxy.py +++ b/faker/proxy.py @@ -28,69 +28,72 @@ class Faker: attr for attr in dir(Generator) if not attr.startswith("__") and attr not in ["seed", "seed_instance", "random"] ] - def __init__( - self, - ...
["tests/sphinx/test_docstring.py::TestProviderMethodDocstring::test_name_is_dotted_path_to_base_provider_method", "tests/sphinx/test_docstring.py::TestProviderMethodDocstring::test_name_is_dotted_path_to_standard_provider_method", "tests/sphinx/test_docstring.py::TestProviderMethodDocstring::test_name_is_dotted_path_to...
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
121
18
858
0
0.6
1
0.75
1
0.546333
81.914
3,877
swe_bench::test::1379
swe_bench
test
1,379
pytest-dev__pytest-10442
pytest-dev/pytest
pytest-dev/pytest
python
646a46e5f4b1f1ae5a06dcbc91fcdebfc235a28a
Keep temporary directory for failing tests only Currently pytest will keep the last 3 _root_ temporary directories for each testing session, for all tests. This proposal is to change this behavior to only keep the directories for failed tests, instead of for all tests. This would save significant disk space for test s...
note, this should be a opt in via config, potentially by naming a policy, as dropping everything passed by default changes the debug-ability when one wants to compare passed stuff to failed stuff > note, this should be a opt in via config, potentially by naming a policy, as dropping everything passed by default change...
diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -335,15 +335,26 @@ def cleanup_candidates(root: Path, prefix: str, keep: int) -> Iterator[Path]: yield path +def cleanup_dead_symlink(root: Path): + for left_dir in root.iterdir(...
diff --git a/testing/test_tmpdir.py b/testing/test_tmpdir.py --- a/testing/test_tmpdir.py +++ b/testing/test_tmpdir.py @@ -42,6 +42,14 @@ def trace(self): def get(self, key): return lambda *k: None + def getini(self, name): + if name == "tmp_path_retention_count": + return 3 + ...
["testing/test_tmpdir.py::TestNumberedDir::test_cleanup_keep_0", "testing/test_tmpdir.py::test_tmp_path_factory_create_directory_with_safe_permissions", "testing/test_tmpdir.py::test_tmp_path_factory_fixes_up_world_readable_permissions", "testing/test_tmpdir.py::TestConfigTmpPath::test_policy_failed_removes_only_passed...
["testing/test_tmpdir.py::TestTmpPathHandler::test_mktemp", "testing/test_tmpdir.py::TestTmpPathHandler::test_tmppath_relative_basetemp_absolute", "testing/test_tmpdir.py::test_get_user_uid_not_found", "testing/test_tmpdir.py::TestNumberedDir::test_make", "testing/test_tmpdir.py::TestNumberedDir::test_cleanup_lock_crea...
null
true
2022-10-27T13:16:54Z
2
119
5
697
0
0.8
1
0.55
1
0.512833
81.9135
3,878
swe_bench::test::1250
swe_bench
test
1,250
pydata__xarray-4750
pydata/xarray
pydata/xarray
python
0f1eb96c924bad60ea87edd9139325adabfefa33
Limit number of data variables shown in repr **What happened**: xarray feels very unresponsive when using datasets with >2000 data variables because it has to print all the 2000 variables everytime you print something to console. **What you expected to happen**: xarray should limit the number of variables printed to ...
👍🏽 on adding a configurable option to the list of options supported via `xr.set_options()` ```python import xarray as xr xr.set_options(display_max_num_variables=25) ``` Yes, this sounds like a welcome new feature! As a general rule, the output of repr() should fit on one screen.
diff --git a/xarray/core/formatting.py b/xarray/core/formatting.py --- a/xarray/core/formatting.py +++ b/xarray/core/formatting.py @@ -365,12 +365,23 @@ def _calculate_col_width(col_items): return col_width -def _mapping_repr(mapping, title, summarizer, col_width=None): +def _mapping_repr(mapping, title, summa...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -463,3 +463,36 @@ def test_large_array_repr_length(): result = repr(da).splitlines() assert len(result) < 50 + + +@pytest.mark.parametrize( + "disp...
["xarray/tests/test_formatting.py::test__mapping_repr[50-40-30]", "xarray/tests/test_formatting.py::test__mapping_repr[35-40-30]", "xarray/tests/test_formatting.py::test__mapping_repr[11-40-30]", "xarray/tests/test_formatting.py::test__mapping_repr[1-40-30]"]
["xarray/tests/test_formatting.py::TestFormatting::test_get_indexer_at_least_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_first_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_item", "xarray/tests/test_format...
null
true
2021-01-02T21:14:50Z
2
46
4
2,152
0
0.8
1
0.55
1
0.512
81.911
3,879
swe_smith::train::34315
swe_smith
train
34,315
iterative__dvc.1d6ea681.lm_rewrite__aclc5ywd
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# Lockfile format changed in DVC, breaking stage cache and dependency tracking ## Description After updating our codebase, we're experiencing issues with the lockfile format in DVC. The serialization of dependencies and outputs in the lockfile has changed, causing multiple failures in our pipeline. When trying to ru...
diff --git a/dvc/stage/serialize.py b/dvc/stage/serialize.py index fef6514..e15fa6c 100644 --- a/dvc/stage/serialize.py +++ b/dvc/stage/serialize.py @@ -140,57 +140,42 @@ def to_pipeline_file(stage: "PipelineStage"): return {stage.name: OrderedDict([(key, value) for key, value in res if value])} -def to_single...
["tests/func/test_stage.py::test_default_wdir_ignored_in_checksum", "tests/func/test_stage.py::test_stage_strings_representation", "tests/func/test_stage.py::test_stage_remove_pipeline_stage", "tests/unit/stage/test_cache.py::test_stage_cache", "tests/unit/stage/test_cache.py::test_stage_cache_params", "tests/unit/stag...
["tests/func/test_stage.py::test_cmd_obj", "tests/func/test_stage.py::test_no_cmd", "tests/func/test_stage.py::test_object", "tests/func/test_stage.py::test_none", "tests/func/test_stage.py::test_empty_list", "tests/func/test_stage.py::test_list", "tests/func/test_stage.py::test_reload", "tests/func/test_stage.py::test...
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
1
77
22
1,728
0
0.6
1
0.75
1
0.544667
81.909
3,880
swe_smith::train::2592
swe_smith
train
2,592
pdfminer__pdfminer.six.1a8bd2f7.lm_rewrite__51wwbgvu
swesmith/pdfminer__pdfminer.six.1a8bd2f7
pdfminer/pdfminer.six
python
null
#### Issue with PDF Text Extraction I encountered an issue with the `extract_text_to_fp` function in the `pdfminer` library. It seems that the function is not handling certain PDF files correctly, leading to unexpected errors during text extraction. #### Steps/Code to Reproduce Here's a simple script to reproduce th...
diff --git a/pdfminer/high_level.py b/pdfminer/high_level.py index 14722cd..0696e9f 100644 --- a/pdfminer/high_level.py +++ b/pdfminer/high_level.py @@ -21,24 +21,12 @@ from pdfminer.pdfpage import PDFPage from pdfminer.utils import AnyIO, FileOrName, open_filename -def extract_text_to_fp( - inf: BinaryIO, - ...
["tests/test_tools_pdf2txt.py::TestPdf2Txt::test_jo", "tests/test_tools_pdf2txt.py::TestPdf2Txt::test_simple1", "tests/test_tools_pdf2txt.py::TestPdf2Txt::test_simple2", "tests/test_tools_pdf2txt.py::TestPdf2Txt::test_simple3", "tests/test_tools_pdf2txt.py::TestPdf2Txt::test_sample_one_byte_identity_encode", "tests/tes...
["tests/test_converter.py::TestPaintPath::test_paint_path", "tests/test_converter.py::TestPaintPath::test_paint_path_mlllh", "tests/test_converter.py::TestPaintPath::test_paint_path_multiple_mlllh", "tests/test_converter.py::TestPaintPath::test_paint_path_quadrilaterals", "tests/test_converter.py::TestPaintPath::test_p...
jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7
true
null
1
98
35
1,305
0
0.6
1
0.75
1
0.544167
81.9075
3,881
swe_bench::dev::172
swe_bench
dev
172
pyvista__pyvista-4648
pyvista/pyvista
pyvista/pyvista
python
d804a93a3bcae250c74a9f0f7c37fbc8bf002011
Clean up and clarify sampling-like filters ### Describe what maintenance you would like added. There was a discussion on slack on the use of sampling-like filters, i.e. `sample`, `probe`, and `interpolate`. One issue is that it is hard to figure out when to use which filter. The other issue is that `probe` has the o...
`probe` uses [vtkProbeFilter](https://vtk.org/doc/nightly/html/classvtkProbeFilter.html). Note that `vtkCompositeDataProbeFilter` is a subclass, and adds the ability to use Composite Data as in input (only one of the two slots in the algorithm). `sample` uses [vtkResampleWithDataSet](https://vtk.org/doc/nightly/htm...
diff --git a/examples/01-filter/interpolate.py b/examples/01-filter/interpolate.py --- a/examples/01-filter/interpolate.py +++ b/examples/01-filter/interpolate.py @@ -4,6 +4,22 @@ Interpolating ~~~~~~~~~~~~~ +There are two main methods of interpolating or sampling data from a target mesh +in PyVista. :func:`pyvista...
diff --git a/tests/filters/test_dataset_filters.py b/tests/filters/test_dataset_filters.py --- a/tests/filters/test_dataset_filters.py +++ b/tests/filters/test_dataset_filters.py @@ -11,7 +11,7 @@ from pyvista.core import _vtk_core from pyvista.core.celltype import CellType from pyvista.core.errors import NotAllTria...
["tests/filters/test_dataset_filters.py::test_sample", "tests/filters/test_dataset_filters.py::test_probe[None-True-True]", "tests/filters/test_dataset_filters.py::test_probe[None-True-False]", "tests/filters/test_dataset_filters.py::test_probe[None-False-True]", "tests/filters/test_dataset_filters.py::test_probe[None-...
["tests/filters/test_dataset_filters.py::test_datasetfilters_init", "tests/filters/test_dataset_filters.py::test_clip_filter", "tests/filters/test_dataset_filters.py::test_clip_by_scalars_filter[False-False]", "tests/filters/test_dataset_filters.py::test_clip_by_scalars_filter[False-True]", "tests/filters/test_dataset_...
null
true
2023-07-11T11:49:13Z
3
111
9
840
0
0.8
1
0.55
1
0.51
81.905
3,882
swe_bench::test::1487
swe_bench
test
1,487
pytest-dev__pytest-9709
pytest-dev/pytest
pytest-dev/pytest
python
0c80a1c836616b0206a4af2fe72001ff797a5f8f
Current implementation of `pytest.approx()` cannot be used to compare sets The current implementation of `pytest.approx()` yields incorrect results when used to compare sets. Consider the following self-explanatory code comparing two (equal as by `__eq__()`) sets: ``` import numpy as np import pytest a = 2**np.arang...
-1 on that - unlike ordered sequences, sets would have to "magically" match the right approximations with the right values however we should warn or error on unordered sequences Thanks for reacting. Yes, that is why I suggested that sets should be forbidden in approx. (They are not. Instead, they are explicitly ment...
diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -1,5 +1,6 @@ import math import pprint +from collections.abc import Collection from collections.abc import Sized from decimal import Decimal from numbers import Complex @@ -8,7 +9,6...
diff --git a/testing/python/approx.py b/testing/python/approx.py --- a/testing/python/approx.py +++ b/testing/python/approx.py @@ -858,13 +858,21 @@ def test_numpy_scalar_with_array(self): assert approx(expected, rel=5e-7, abs=0) == actual assert approx(expected, rel=5e-8, abs=0) != actual - def ...
["testing/python/approx.py::TestApprox::test_generic_ordered_sequence", "testing/python/approx.py::TestApprox::test_allow_ordered_sequences_only"]
["testing/python/approx.py::TestApprox::test_repr_string", "testing/python/approx.py::TestApprox::test_repr_complex_numbers", "testing/python/approx.py::TestApprox::test_bool", "testing/python/approx.py::TestApprox::test_operator_overloading", "testing/python/approx.py::TestApprox::test_exactly_equal", "testing/python/...
null
true
2022-02-23T11:25:45Z
1
40
2
2,258
0
0.8
1
0.55
1
0.509667
81.904
3,883
swe_smith::train::30458
swe_smith
train
30,458
pyca__pyopenssl.04766a49.lm_rewrite__dihnqpuk
swesmith/pyca__pyopenssl.04766a49
pyca/pyopenssl
python
null
Private Key Handling Error ### Summary Encountering issues when using private keys with certain operations in the OpenSSL library. Specifically, errors arise when attempting to use private keys with invalid passphrase types or unrecognized cipher names. ### Expected Behavior Operations involving private keys should...
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 448a19a..d8d88b3 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -346,44 +346,60 @@ class PKey: """ if not isinstance(type, int): raise TypeError("type must be an integer") - + if not isinstanc...
["tests/test_crypto.py::TestPKey::test_failed_generation", "tests/test_crypto.py::TestPKey::test_rsa_generation", "tests/test_crypto.py::TestPKey::test_dsa_generation", "tests/test_crypto.py::TestPKey::test_regeneration", "tests/test_crypto.py::TestPKey::test_check_public_key", "tests/test_crypto.py::TestX509Req::test_...
["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
76
27
1,731
0
0.6
1
0.75
1
0.541833
81.9005
3,884
swe_smith::train::24392
swe_smith
train
24,392
sunpy__sunpy.f8edfd5c.lm_rewrite__5zz2yrx6
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
# TypeError when creating table from VSO response with None time values ## Description I'm encountering an issue when trying to create a table from a VSO query response that contains records with None time values. The code is failing with a `TypeError: len() of unsized object` error. ## How to Reproduce This happen...
diff --git a/sunpy/net/vso/legacy_response.py b/sunpy/net/vso/legacy_response.py index ff54c6a..34910f3 100644 --- a/sunpy/net/vso/legacy_response.py +++ b/sunpy/net/vso/legacy_response.py @@ -76,57 +76,36 @@ class QueryResponse(BaseQueryResponse): ------- `astropy.table.QTable` """ - ...
["sunpy/net/vso/tests/test_vso.py::test_response_block_properties_table"]
["sunpy/net/vso/tests/test_vso.py::test_str", "sunpy/net/vso/tests/test_vso.py::test_repr", "sunpy/net/vso/tests/test_vso.py::test_show", "sunpy/net/vso/tests/test_vso.py::test_non_str_instrument", "sunpy/net/vso/tests/test_vso.py::test_iter_sort_response", "sunpy/net/vso/tests/test_vso.py::test_from_zeep_response", "s...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
81
1
1,626
0
0.6
1
0.75
1
0.541
81.898
3,885
swe_smith::train::8248
swe_smith
train
8,248
cantools__cantools.0c6a7871.lm_rewrite__bs8h3vud
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
#### Issue: Error when parsing SYM files with certain attributes I encountered an issue when trying to parse SYM files using the `cantools` library. The parser throws an error when it encounters certain attributes in the SYM file that are not being handled correctly. #### Steps/Code to Reproduce To reproduce the iss...
diff --git a/src/cantools/database/can/formats/sym.py b/src/cantools/database/can/formats/sym.py index 4bdc121..d68825e 100644 --- a/src/cantools/database/can/formats/sym.py +++ b/src/cantools/database/can/formats/sym.py @@ -480,45 +480,66 @@ def _convert_start(start, byte_order): start = (8 * (start // 8) + (...
["tests/test_convert.py::CanToolsConvertFullTest::test_sym_to_dbc__compare_databases", "tests/test_convert.py::CanToolsConvertFullTest::test_sym_to_dbc__compare_files", "tests/test_database.py::CanToolsDatabaseTest::test_big_endian", "tests/test_database.py::CanToolsDatabaseTest::test_comments_hex_and_motorola_sym", "t...
["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
88
7
1,485
0
0.6
1
0.75
1
0.540833
81.8975
3,886
swe_smith::train::10438
swe_smith
train
10,438
paramiko__paramiko.23f92003.func_basic__fafirgbs
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH authentication completely broken after recent changes #### Description SSH connections are failing with authentication errors across all authentication methods. The server appears to be rejecting valid credentials and behaving erratically during the authentication process. #### Steps/Code to Reproduce ```python...
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index bc7f298..813e8b1 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -548,7 +548,6 @@ Error Message: {} def _parse_userauth_request(self, m): if not self.transport.server_mode: - # er, uh... what? ...
["tests/auth.py::AuthHandler_::bad_auth_type", "tests/auth.py::AuthHandler_::bad_password", "tests/auth.py::AuthHandler_::multipart_auth", "tests/auth.py::AuthHandler_::interactive_auth", "tests/auth.py::AuthHandler_::interactive_fallback", "tests/auth.py::AuthHandler_::utf8", "tests/auth.py::AuthHandler_::non_utf8", "...
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
101
94
1,224
0
0.6
1
0.75
1
0.540667
81.897
3,887
swe_smith::train::44527
swe_smith
train
44,527
pydata__patsy.a5d16484.lm_rewrite__ndndciq0
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
### Issue: Unexpected Behavior in Factor Evaluation #### Describe the Bug When evaluating categorical factors, an error occurs due to an unexpected number of values being returned. This issue seems to arise when handling certain data structures, leading to a mismatch in expected and actual output dimensions. #### Ho...
diff --git a/patsy/build.py b/patsy/build.py index cbe2524..3f56401 100644 --- a/patsy/build.py +++ b/patsy/build.py @@ -64,35 +64,65 @@ def test__max_allowed_dim(): def _eval_factor(factor_info, data, NA_action): - factor = factor_info.factor - result = factor.eval(factor_info.state, data) - # Returns ei...
["patsy/build.py::test__eval_factor_categorical", "patsy/test_build.py::test_simple", "patsy/test_build.py::test_R_bugs", "patsy/test_build.py::test_redundancy_thoroughly", "patsy/test_build.py::test_data_types", "patsy/test_build.py::test_NA_action", "patsy/test_build.py::test_NA_drop_preserves_levels", "patsy/test_bu...
["patsy/build.py::test__max_allowed_dim", "patsy/build.py::test__eval_factor_numerical", "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__examine_factor_types", "patsy/builtins.py::test_I",...
jyangballin/swesmith.x86_64.pydata_1776_patsy.a5d16484
true
null
1
82
20
1,600
0
0.6
1
0.75
1
0.54
81.895
3,888
swe_smith::train::24918
swe_smith
train
24,918
marshmallow-code__marshmallow.9716fc62.lm_rewrite__91z9ih3j
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
# Duplicate Schema Registration in Class Registry ## Description I've encountered an issue with the class registry in marshmallow. When registering schemas with the same class name but from different modules, or even the same class name from the same module multiple times, the registry is not handling these cases cor...
diff --git a/src/marshmallow/class_registry.py b/src/marshmallow/class_registry.py index d41b112..0db2430 100644 --- a/src/marshmallow/class_registry.py +++ b/src/marshmallow/class_registry.py @@ -26,7 +26,7 @@ if typing.TYPE_CHECKING: _registry = {} # type: dict[str, list[SchemaType]] -def register(classname: st...
["tests/test_registry.py::test_serializer_class_registry_register_same_classname_different_module", "tests/test_registry.py::test_serializer_class_registry_override_if_same_classname_same_module", "tests/test_schema.py::TestSelfReference::test_nesting_schema_by_passing_class_name"]
["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
38
3
2,464
0
0.6
1
0.75
1
0.537333
81.887
3,889
swe_smith::train::45235
swe_smith
train
45,235
dask__dask.5f61e423.combine_module__je98llyg
swesmith/dask__dask.5f61e423
dask/dask
python
null
TypeError when creating dataframes from pandas or arrays after recent changes #### Description After some recent changes, creating dask dataframes from pandas dataframes or numpy arrays is failing with `TypeError: 'NoneType' object is not callable`. This affects basic functionality like `dd.from_pandas()` and `dd.fro...
diff --git a/dask/dataframe/dask_expr/io/io.py b/dask/dataframe/dask_expr/io/io.py index ab41615..285c5e7 100644 --- a/dask/dataframe/dask_expr/io/io.py +++ b/dask/dataframe/dask_expr/io/io.py @@ -74,34 +74,6 @@ class BlockwiseIO(Blockwise, IO): def _fusion_compression_factor(self): return 1 - def _s...
["dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>0]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>1]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>2]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-...
["dask/dataframe/dask_expr/io/tests/test_io.py::test_io_fusion[csv]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_csv_integer_usecols", "dask/dataframe/dask_expr/io/tests/test_io.py::test_read_csv_keywords", "dask/dataframe/dask_expr/io/tests/test_io.py::test_from_map_string_conversion", "dask/dataframe/dask_ex...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
2
106
76
1,101
0
0.6
1
0.75
1
0.536833
81.8855
3,890
swe_smith::train::209
swe_smith
train
209
oauthlib__oauthlib.1fd52536.combine_module__4a813sx7
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
OAuth1 Access Token Endpoint returns incorrect status codes and headers Description I've discovered an issue with the OAuth1 Access Token Endpoint in oauthlib. When making requests to the access token endpoint, the response status codes and headers are incorrect. When a request is valid, the endpoint returns a 401 U...
diff --git a/oauthlib/oauth1/rfc5849/endpoints/access_token.py b/oauthlib/oauth1/rfc5849/endpoints/access_token.py index 13665db..3d0f6a4 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/access_token.py +++ b/oauthlib/oauth1/rfc5849/endpoints/access_token.py @@ -64,40 +64,6 @@ class AccessTokenEndpoint(BaseEndpoint): ...
["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...
["tests/oauth1/rfc5849/endpoints/test_authorization.py::AuthorizationEndpointTest::test_create_authorization_response", "tests/oauth1/rfc5849/endpoints/test_authorization.py::AuthorizationEndpointTest::test_create_authorization_response_oob", "tests/oauth1/rfc5849/endpoints/test_authorization.py::AuthorizationEndpointT...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
2
46
9
2,298
0
0.6
1
0.75
1
0.536333
81.884
3,891
swe_smith::train::1968
swe_smith
train
1,968
agronholm__typeguard.b6a7e438.lm_rewrite__m8r30z3m
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
# Generator type checking broken after recent changes I've noticed that generator type checking is broken in the latest version. When using generators with type annotations, the type checking for yielded values doesn't work correctly anymore. ## Description After recent changes to the `visit_Yield` method in `Typegu...
diff --git a/src/typeguard/_transformer.py b/src/typeguard/_transformer.py index 25696a5..2851bed 100644 --- a/src/typeguard/_transformer.py +++ b/src/typeguard/_transformer.py @@ -944,49 +944,38 @@ class TypeguardTransformer(NodeTransformer): value and the value sent back to the generator, when appropriate. ...
["tests/test_importhook.py::test_blanket_import", "tests/test_importhook.py::test_debug_instrumentation", "tests/test_instrumentation.py::test_contextmanager[typechecked]", "tests/test_instrumentation.py::test_generator_valid[typechecked]", "tests/test_instrumentation.py::test_generator_bad_yield_type[typechecked]", "t...
["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
73
34
1,749
0
0.6
1
0.75
1
0.534833
81.8795
3,892
swe_smith::train::2971
swe_smith
train
2,971
Suor__funcy.207a7810.combine_file__5pn9f8oq
swesmith/Suor__funcy.207a7810
suor/funcy
python
null
# Multiple bugs in flow control decorators I've found several issues with the flow control decorators in the latest version. The problems affect `limit_error_rate` and `once_per` functionality. ## Issue 1: `limit_error_rate` decorator has inverted timeout logic When using the `limit_error_rate` decorator, it's not b...
diff --git a/funcy/flow.py b/funcy/flow.py index 85c5a8e..8e48446 100644 --- a/funcy/flow.py +++ b/funcy/flow.py @@ -144,20 +144,20 @@ def limit_error_rate(fails, timeout, exception=ErrorRateExceeded): @wraps(func) def wrapper(*args, **kwargs): if wrapper.blocked: - if date...
["tests/test_flow.py::test_limit_error_rate", "tests/test_flow.py::test_once", "tests/test_flow.py::test_once_per", "tests/test_flow.py::test_once_per_args"]
["tests/test_calc.py::test_memoize", "tests/test_calc.py::test_memoize_args_kwargs", "tests/test_calc.py::test_memoize_skip", "tests/test_calc.py::test_memoize_memory", "tests/test_calc.py::test_memoize_key_func", "tests/test_calc.py::test_make_lookuper", "tests/test_calc.py::test_make_lookuper_nested", "tests/test_cal...
jyangballin/swesmith.x86_64.suor_1776_funcy.207a7810
true
null
1
20
4
2,807
0
0.6
1
0.75
1
0.5345
81.8785
3,893
swe_smith::train::9779
swe_smith
train
9,779
marshmallow-code__webargs.dbde72fe.pr_833
swesmith/marshmallow-code__webargs.dbde72fe
marshmallow-code/webargs
python
null
### Positional Argument Handling Regression in Latest Update Hey team, I noticed a regression in the latest update related to how positional arguments are handled in the `use_args` decorator. Previously, it was possible to opt-out of using positional arguments by setting `USE_ARGS_POSITIONAL` to `False`. However, aft...
diff --git a/src/webargs/core.py b/src/webargs/core.py index 44294e9..be9c104 100644 --- a/src/webargs/core.py +++ b/src/webargs/core.py @@ -56,14 +56,6 @@ _UNKNOWN_DEFAULT_PARAM = "_default" DEFAULT_VALIDATION_STATUS: int = 422 -def _record_arg_name(f: typing.Callable[..., typing.Any], argname: str | None) -> Non...
["tests/test_core.py::test_use_args_forbids_invalid_usages", "tests/test_core.py::test_parser_opt_out_positional_args", "tests/test_core.py::test_use_args_implicit_arg_names", "tests/test_core.py::test_use_args_explicit_arg_names[True]", "tests/test_core.py::test_use_args_explicit_arg_names[False]", "tests/test_core.py...
["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", "tests/test_aiohttpparser.py::TestAIOHTTPParser::test_parse_json_missing", "tests/test_aiohttpparser.py::T...
jyangballin/swesmith.x86_64.marshmallow-code_1776_webargs.dbde72fe
true
null
2
100
12
1,207
0
0.6
1
0.75
1
0.5345
81.8785
3,894
swe_smith::train::17225
swe_smith
train
17,225
prettytable__prettytable.ca90b055.lm_rewrite__db80w5lq
swesmith/prettytable__prettytable.ca90b055
prettytable/prettytable
python
null
### Issue: AttributeError when rendering tables with custom styles #### Describe the bug After updating the `field_names` setter in the `PrettyTable` class, an `AttributeError` is raised when attempting to render tables with custom styles. This issue seems to occur when using specific table styles, such as `ColorTabl...
diff --git a/src/prettytable/prettytable.py b/src/prettytable/prettytable.py index 818a520..435c898 100644 --- a/src/prettytable/prettytable.py +++ b/src/prettytable/prettytable.py @@ -754,33 +754,64 @@ class PrettyTable: return self._field_names @field_names.setter - def field_names(self, val) -> No...
["tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[False-True]", "tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[True-True0]", "tests/test_colortable.py::TestColorTableRendering::test_color_table_rendering[True-False]", "tests/test_colortable.py::TestColorTabl...
["tests/test_colortable.py::TestColorTable::test_themeless", "tests/test_colortable.py::TestColorTable::test_theme_setter", "tests/test_colortable.py::TestFormatCode::test_basic", "tests/test_colortable.py::TestFormatCode::test_prefix", "tests/test_colortable.py::TestFormatCode::test_escapes", "tests/test_colortable.py...
jyangballin/swesmith.x86_64.prettytable_1776_prettytable.ca90b055
true
null
1
83
56
1,546
0
0.6
1
0.75
1
0.534333
81.878
3,895
swe_smith::train::47363
swe_smith
train
47,363
sqlfluff__sqlfluff.50a1c4b6.combine_file__87glsek0
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
Grammar copy method breaks element insertion and terminator handling #### Description The `BaseGrammar.copy()` method has several issues that cause incorrect behavior when copying grammar elements with modifications: 1. Elements inserted with `before` parameter are ignored when the target element is not found 2. Ele...
diff --git a/src/sqlfluff/core/parser/grammar/base.py b/src/sqlfluff/core/parser/grammar/base.py index c6cc9e7..03d4703 100644 --- a/src/sqlfluff/core/parser/grammar/base.py +++ b/src/sqlfluff/core/parser/grammar/base.py @@ -223,93 +223,40 @@ class BaseGrammar(Matchable): remove: Optional[List[Matchable]] = No...
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar__oneof__copy"]
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[True]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[False]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof_templated", "test/core/parser/grammar/grammar_anyof_test.py::test__pars...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
79
1
1,625
0
0.6
1
0.75
1
0.534167
81.8775
3,896
swe_smith::train::24432
swe_smith
train
24,432
sunpy__sunpy.f8edfd5c.lm_rewrite__oq0ypx1t
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
### Issue: TimeSeries Conversion Fails with Astropy Time Objects #### Description When attempting to convert an `astropy.table.Table` to a `TimeSeries` using the `TimeSeriesFactory`, a `ValueError` is raised if the table's time column is of type `astropy.time.core.Time`. This error occurs during the conversion proces...
diff --git a/sunpy/timeseries/timeseries_factory.py b/sunpy/timeseries/timeseries_factory.py index e5f59d1..e4524bf 100644 --- a/sunpy/timeseries/timeseries_factory.py +++ b/sunpy/timeseries/timeseries_factory.py @@ -197,37 +197,38 @@ class TimeSeriesFactory(BasicRegistrationFactory): t : `~astropy.table.Table...
["sunpy/timeseries/tests/test_timeseries_factory.py::test_table_to_ts"]
["sunpy/timeseries/metadata.py::sunpy.timeseries.metadata.TimeSeriesMetaData", "sunpy/timeseries/sources/eve.py::sunpy.timeseries.sources.eve.EVESpWxTimeSeries", "sunpy/timeseries/sources/fermi_gbm.py::sunpy.timeseries.sources.fermi_gbm.GBMSummaryTimeSeries", "sunpy/timeseries/sources/goes.py::sunpy.timeseries.sources....
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
63
1
1,935
0
0.6
1
0.75
1
0.5325
81.8725
3,897
swe_smith::train::1724
swe_smith
train
1,724
agronholm__typeguard.b6a7e438.combine_module__s8eicb9i
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
TypeCheckMemo constructor parameters swapped causing incorrect type checking #### Description The TypeCheckMemo class constructor has its `globals` and `locals` parameters swapped, causing type checking to fail with incorrect namespace resolution. Additionally, the `self_type` parameter is being set to `None` instead...
diff --git a/src/typeguard/_memo.py b/src/typeguard/_memo.py index 1d0d80c..6fa8539 100644 --- a/src/typeguard/_memo.py +++ b/src/typeguard/_memo.py @@ -42,7 +42,7 @@ class TypeCheckMemo: self_type: type | None = None, config: TypeCheckConfiguration = global_config, ): - self.globals = glo...
["tests/test_checkers.py::TestLiteral::test_literal_union", "tests/test_checkers.py::TestMapping::test_bad_key_type", "tests/test_checkers.py::TestMapping::test_bad_value_type", "tests/test_checkers.py::TestMapping::test_bad_key_type_full_check", "tests/test_checkers.py::TestMapping::test_bad_value_type_full_check", "t...
["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
2
90
103
1,393
0
0.6
1
0.75
1
0.532167
81.8715
3,898
swe_smith::train::45500
swe_smith
train
45,500
dask__dask.5f61e423.pr_8544
swesmith/dask__dask.5f61e423
dask/dask
python
null
# Unexpected attribute 'label_size' error when using plot_multiple with Bokeh I'm trying to visualize multiple profiler results using the `plot_multiple` function, but I'm running into an error. ## Expected Result The `plot_multiple` function should successfully create a visualization of multiple profiler results. ...
diff --git a/dask/diagnostics/profile_visualize.py b/dask/diagnostics/profile_visualize.py index 98c56e2..591b74b 100644 --- a/dask/diagnostics/profile_visualize.py +++ b/dask/diagnostics/profile_visualize.py @@ -119,11 +119,11 @@ def visualize( f.x_range = top.x_range f.title = None ...
["dask/diagnostics/tests/test_profiler.py::test_plot_multiple"]
["dask/diagnostics/tests/test_profiler.py::test_profiler", "dask/diagnostics/tests/test_profiler.py::test_profiler_works_under_error", "dask/diagnostics/tests/test_profiler.py::test_two_gets", "dask/diagnostics/tests/test_profiler.py::test_resource_profiler", "dask/diagnostics/tests/test_profiler.py::test_resource_prof...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
1
19
1
2,811
0
0.6
1
0.75
1
0.531833
81.8705
3,899
swe_bench::test::1584
swe_bench
test
1,584
scikit-learn__scikit-learn-13174
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
09bc27630fb8feea2f10627dce25e93cd6ff258a
Minimize validation of X in ensembles with a base estimator Currently AdaBoost\* requires `X` to be an array or sparse matrix of numerics. However, since the data is not processed directly by `AdaBoost*` but by its base estimator (on which `fit`, `predict_proba` and `predict` may be called), we should not need to const...
That could be applied to any meta-estimator that uses a base estimator, right? Yes, it could be. I didn't have time when I wrote this issue to check the applicability to other ensembles. Updated title and description @jnothman I think that we have two options. - Validate the input early as it is now and introduce a ...
diff --git a/sklearn/ensemble/weight_boosting.py b/sklearn/ensemble/weight_boosting.py --- a/sklearn/ensemble/weight_boosting.py +++ b/sklearn/ensemble/weight_boosting.py @@ -30,16 +30,15 @@ from scipy.special import xlogy from .base import BaseEnsemble -from ..base import ClassifierMixin, RegressorMixin, is_regres...
diff --git a/sklearn/ensemble/tests/test_weight_boosting.py b/sklearn/ensemble/tests/test_weight_boosting.py --- a/sklearn/ensemble/tests/test_weight_boosting.py +++ b/sklearn/ensemble/tests/test_weight_boosting.py @@ -471,7 +471,6 @@ def fit(self, X, y, sample_weight=None): def test_sample_weight_adaboost_regressor()...
["sklearn/ensemble/tests/test_weight_boosting.py::test_multidimensional_X"]
["sklearn/ensemble/tests/test_weight_boosting.py::test_samme_proba", "sklearn/ensemble/tests/test_weight_boosting.py::test_oneclass_adaboost_proba", "sklearn/ensemble/tests/test_weight_boosting.py::test_classification_toy", "sklearn/ensemble/tests/test_weight_boosting.py::test_regression_toy", "sklearn/ensemble/tests/t...
null
true
2019-02-15T22:37:43Z
1
126
1
467
0
0.8
1
0.55
1
0.497833
81.8685