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
4,500
swe_smith::train::2883
swe_smith
train
2,883
pudo__dataset.5c2dc8d3.lm_rewrite__jazezf2x
swesmith/pudo__dataset.5c2dc8d3
pudo/dataset
python
null
### Issue: TypeError in `pad_chunk_columns` during Table Operations #### Description After the recent changes, there seems to be an issue with the `pad_chunk_columns` function when performing various table operations. This results in a `TypeError` being raised, which disrupts the normal flow of operations such as cre...
diff --git a/dataset/table.py b/dataset/table.py index 732964c..d99a7d9 100644 --- a/dataset/table.py +++ b/dataset/table.py @@ -161,29 +161,34 @@ class Table(object): rows = [dict(name='Dolly')] * 10000 table.insert_many(rows) """ - # Sync table before inputting rows. - ...
["test/test_dataset.py::DatabaseTestCase::test_contains", "test/test_dataset.py::DatabaseTestCase::test_create_table", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id1", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id2", "test/test_dataset.py::DatabaseTestCase::test_create_tabl...
["test/test_dataset.py::TableTestCase::test_cased_column_names", "test/test_dataset.py::TableTestCase::test_columns", "test/test_dataset.py::TableTestCase::test_count", "test/test_dataset.py::TableTestCase::test_create_column", "test/test_dataset.py::TableTestCase::test_delete", "test/test_dataset.py::TableTestCase::te...
jyangballin/swesmith.x86_64.pudo_1776_dataset.5c2dc8d3
true
null
1
41
21
1,505
0
0.6
1
0.75
1
0.3875
81.4375
4,501
swe_smith::train::29640
swe_smith
train
29,640
django__channels.a144b4b8.pr_2002
swesmith/django__channels.a144b4b8
django/channels
python
null
# [Bug]: WebSocket headers and close reason parameters removed from WebsocketConsumer ## Description I noticed that the `headers` parameter in the `accept()` method and the `reason` parameter in the `close()` method have been removed from both `WebsocketConsumer` and `AsyncWebsocketConsumer` classes. This is causing...
diff --git a/channels/generic/websocket.py b/channels/generic/websocket.py index b4d9911..1a8ef44 100644 --- a/channels/generic/websocket.py +++ b/channels/generic/websocket.py @@ -45,15 +45,11 @@ class WebsocketConsumer(SyncConsumer): def connect(self): self.accept() - def accept(self, subprotocol=N...
["tests/test_generic_websocket.py::test_accept_headers[False]", "tests/test_generic_websocket.py::test_accept_headers[True]", "tests/test_generic_websocket.py::test_close_reason[False]", "tests/test_generic_websocket.py::test_close_reason[True]"]
["tests/test_database.py::ConnectionClosingTests::test_http", "tests/test_database.py::ConnectionClosingTests::test_websocket", "tests/test_generic_websocket.py::test_websocket_consumer", "tests/test_generic_websocket.py::test_multiple_websocket_consumers_with_sessions", "tests/test_generic_websocket.py::test_websocket...
jyangballin/swesmith.x86_64.django_1776_channels.a144b4b8
true
null
1
35
4
1,624
0
0.6
1
0.75
1
0.387333
81.437
4,502
swe_bench::test::1508
swe_bench
test
1,508
scikit-learn__scikit-learn-10558
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
2ccc946157d40bbb8bb17b70e98df6af49d5f40c
Deprecate Imputer with axis=1 After having tried to deal with a few issues related to extending `Imputer` behaviour, I believe we should be removing the `axis` parameter from `Imputer`. * It seems a strange feature to support in a machine learning context, except perhaps where the features represent something like a t...
It could be stateful for KNN, right? That might not be totally useless. But not sure if that's something that people are doing. But yeah, it's a strange feature, and I wouldn't be opposed to removing it. I'm not sure what it means in a knn imputation context. On 1 Aug 2017 2:22 am, "Andreas Mueller" <notifications@gi...
diff --git a/examples/plot_missing_values.py b/examples/plot_missing_values.py --- a/examples/plot_missing_values.py +++ b/examples/plot_missing_values.py @@ -65,8 +65,7 @@ X_missing[np.where(missing_samples)[0], missing_features] = 0 y_missing = y_full.copy() estimator = Pipeline([("imputer", Imputer(missing_values...
diff --git a/sklearn/preprocessing/tests/test_imputation.py b/sklearn/preprocessing/tests/test_imputation.py --- a/sklearn/preprocessing/tests/test_imputation.py +++ b/sklearn/preprocessing/tests/test_imputation.py @@ -7,6 +7,8 @@ from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing ...
["sklearn/preprocessing/tests/test_imputation.py::test_deprecated_imputer_axis"]
["sklearn/preprocessing/tests/test_imputation.py::test_imputation_shape", "sklearn/preprocessing/tests/test_imputation.py::test_imputation_mean_median_only_zero", "sklearn/preprocessing/tests/test_imputation.py::test_imputation_mean_median", "sklearn/preprocessing/tests/test_imputation.py::test_imputation_median_specia...
null
true
2018-01-31T08:28:29Z
2
50
1
1,124
0
0.8
1
0.55
1
0.354
81.437
4,503
swe_smith::train::30550
swe_smith
train
30,550
gweis__isodate.17cb25eb.func_basic__3o9c1n49
swesmith/gweis__isodate.17cb25eb
gweis/isodate
python
null
Time parsing broken after regex cache changes #### Description Time parsing is failing with `AttributeError: 'str' object has no attribute 'match'` when trying to parse ISO time strings. This affects both standalone time parsing and datetime parsing that includes time components. #### Steps/Code to Reproduce ```pyt...
diff --git a/src/isodate/isotime.py b/src/isodate/isotime.py index 78b4de2..4c02073 100644 --- a/src/isodate/isotime.py +++ b/src/isodate/isotime.py @@ -25,46 +25,33 @@ def build_time_regexps() -> list[re.Pattern[str]]: The regular expressions are compiled and stored in TIME_REGEX_CACHE for later reuse. ...
["tests/test_datetime.py::test_parse[19850412T1015-expected0-%Y%m%dT%H%M-19850412T1015]", "tests/test_datetime.py::test_parse[1985-04-12T10:15-expected1-%Y-%m-%dT%H:%M-1985-04-12T10:15]", "tests/test_datetime.py::test_parse[1985102T1015Z-expected2-%Y%jT%H%M%z-1985102T1015Z]", "tests/test_datetime.py::test_parse[1985-10...
["tests/test_date.py::test_parse[4-19-expected0-%C]", "tests/test_date.py::test_parse[4-1985-expected1-%Y]", "tests/test_date.py::test_parse[4-1985-04-expected2-%Y-%m]", "tests/test_date.py::test_parse[4-198504-expected3-%Y%m]", "tests/test_date.py::test_parse[4-1985-04-12-expected4-%Y-%m-%d]", "tests/test_date.py::tes...
jyangballin/swesmith.x86_64.gweis_1776_isodate.17cb25eb
true
null
1
65
45
1,023
0
0.6
1
0.75
1
0.387167
81.4365
4,504
swe_smith::train::52674
swe_smith
train
52,674
pydicom__pydicom.7d361b3d.lm_rewrite__bnrxcfyb
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
### Issue: Inconsistent Equality Check for Buffered DataElements Hello, I've encountered an issue with the equality comparison of `DataElement` objects, particularly when dealing with buffered elements. The behavior seems inconsistent and leads to unexpected results. #### Steps to Reproduce: 1. Create a `DataElement...
diff --git a/src/pydicom/dataelem.py b/src/pydicom/dataelem.py index 431e294..1cca8c2 100644 --- a/src/pydicom/dataelem.py +++ b/src/pydicom/dataelem.py @@ -676,35 +676,36 @@ class DataElement: :class:`NotImplemented` delegates the result to ``superclass.__eq__(subclass)``. """ - ...
["tests/test_dataelem.py::TestBufferedDataElement::test_equality", "tests/test_dataelem.py::TestBufferedDataElement::test_equality_offset", "tests/test_dataelem.py::TestBufferedDataElement::test_equality_multichunk", "tests/test_dataelem.py::TestBufferedDataElement::test_equality_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
47
4
1,381
0
0.6
1
0.75
1
0.386833
81.4355
4,505
swe_bench::dev::140
swe_bench
dev
140
pylint-dev__astroid-1719
pylint-dev/astroid
pylint-dev/astroid
python
5bb3ddef43b35c07485a84f90b6a453fc649e31d
Cython module with import triggers deep introspection for pandas, raises unhandled FutureWarning This is a somewhat complicated situation to reproduce, but basically `pandas` throws `FutureWarning`s for certain attributes, and when you import it into a Cython module (triggering astroid's deep module inspection), these ...
diff --git a/astroid/raw_building.py b/astroid/raw_building.py --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -388,9 +388,9 @@ def object_build( pypy__class_getitem__ = IS_PYPY and name == "__class_getitem__" try: with warnings.catch_warnings(): - ...
diff --git a/tests/testdata/python3/data/fake_module_with_warnings.py b/tests/testdata/python3/data/fake_module_with_warnings.py new file mode 100644 --- /dev/null +++ b/tests/testdata/python3/data/fake_module_with_warnings.py @@ -0,0 +1,22 @@ +''' +This is a mock of a module like Pandas, which can throw warnings for d...
["tests/unittest_raw_building.py::RawBuildingTC::test_build_function_deepinspect_deprecation"]
["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
2022-07-19T21:09:19Z
1
4
1
3,749
0
0.8
1
0.77
0.8
0.513333
81.435
4,506
swe_smith::train::30445
swe_smith
train
30,445
pyca__pyopenssl.04766a49.func_pm_remove_loop__xjxdprw6
swesmith/pyca__pyopenssl.04766a49
pyca/pyopenssl
python
null
X509StoreContext fails to add certificates to the untrusted chain Description When I try to verify a certificate using X509StoreContext with an untrusted chain, it fails to properly add the certificates to the stack. This happens when creating an X509StoreContext with a chain parameter. ```python store = X509Store()...
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 448a19a..6276311 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1970,17 +1970,7 @@ class X509StoreContext: _openssl_assert(stack != _ffi.NULL) stack = _ffi.gc(stack, cleanup) - for cert in certificates: - ...
["tests/test_crypto.py::TestX509StoreContext::test_valid_untrusted_chain_reuse", "tests/test_crypto.py::TestX509StoreContext::test_chain_reference", "tests/test_crypto.py::TestX509StoreContext::test_failure_building_untrusted_chain_raises"]
["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
10
3
2,120
0
0.6
1
0.75
1
0.386667
81.435
4,507
swe_smith::train::922
swe_smith
train
922
oauthlib__oauthlib.1fd52536.lm_rewrite__vgz7g33a
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
# OAuth2 client token security checks are not working properly ### Bug description I've discovered an issue with the OAuth2 client's `add_token` method where it's not performing important security checks before adding tokens to requests. ### Steps to reproduce The issue can be reproduced with the following code: `...
diff --git a/oauthlib/oauth2/rfc6749/clients/base.py b/oauthlib/oauth2/rfc6749/clients/base.py index a8de78b..401f2ba 100644 --- a/oauthlib/oauth2/rfc6749/clients/base.py +++ b/oauthlib/oauth2/rfc6749/clients/base.py @@ -165,7 +165,7 @@ class Client: raise NotImplementedError("Must be implemented by inheriting...
["tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_add_bearer_token", "tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_add_mac_token"]
["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
1
25
2
1,820
0
0.6
1
0.75
1
0.386667
81.435
4,508
swe_smith::train::18186
swe_smith
train
18,186
msiemens__tinydb.10644a0e.combine_file__d4te7a7c
swesmith/msiemens__tinydb.10644a0e
msiemens/tinydb
python
null
JSONStorage broken after recent changes #### Description After some recent changes to the JSONStorage class, the database functionality is completely broken. When trying to use TinyDB with JSONStorage, I'm getting various errors including `io.UnsupportedOperation: can't do nonzero cur on write-only FileIO` and `TypeE...
diff --git a/tinydb/storages.py b/tinydb/storages.py index d5a2db7..d253985 100644 --- a/tinydb/storages.py +++ b/tinydb/storages.py @@ -102,38 +102,31 @@ class JSONStorage(Storage): self.kwargs = kwargs if access_mode not in ('r', 'rb', 'r+', 'rb+'): - warnings.warn( - 'Us...
["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_json_write", "tests/test_storages.py::test_json", "tests/test_storages.py::test_json_kwargs", "tests/test_storages.py::test_jso...
["tests/test_middlewares.py::test_caching", "tests/test_middlewares.py::test_caching_flush_manually", "tests/test_middlewares.py::test_caching_write", "tests/test_middlewares.py::test_nested", "tests/test_operations.py::test_delete[memory]", "tests/test_operations.py::test_add_int[memory]", "tests/test_operations.py::t...
jyangballin/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
true
null
1
37
26
1,579
0
0.6
1
0.75
1
0.3865
81.4345
4,509
swe_smith::train::35678
swe_smith
train
35,678
stanfordnlp__dspy.651a4c71.func_pm_remove_assign__3vxh51g5
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# MIPROv2 optimizer crashes with NameError during optimization ## Description Hi there! I'm trying to use the MIPROv2 optimizer in my project, but I'm running into an issue where the optimizer crashes with a NameError during execution. This happens when I try to run optimization on my program. ## Steps to Reproduce...
diff --git a/dspy/teleprompt/mipro_optimizer_v2.py b/dspy/teleprompt/mipro_optimizer_v2.py index 711b227..f283452 100644 --- a/dspy/teleprompt/mipro_optimizer_v2.py +++ b/dspy/teleprompt/mipro_optimizer_v2.py @@ -504,7 +504,6 @@ class MIPROv2(Teleprompter): # Compute the adjusted total trials that we will ru...
["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
12
4
2,078
0
0.6
1
0.75
1
0.386333
81.434
4,510
swe_smith::train::45436
swe_smith
train
45,436
dask__dask.5f61e423.lm_rewrite__q6fqwinv
swesmith/dask__dask.5f61e423
dask/dask
python
null
Concatenation of DataFrames Fails with TypeError Description I encountered an issue when trying to concatenate multiple DataFrames using the `concat` function. The function is expected to handle both Dask DataFrames and Series, but it seems to be failing when the inputs are not all Dask objects. Here's a minimal exa...
diff --git a/dask/dataframe/dask_expr/_collection.py b/dask/dataframe/dask_expr/_collection.py index 7aa07d4..b2a974a 100644 --- a/dask/dataframe/dask_expr/_collection.py +++ b/dask/dataframe/dask_expr/_collection.py @@ -5397,15 +5397,8 @@ def read_parquet( ) -def concat( - dfs, - axis=0, - join="oute...
["dask/dataframe/dask_expr/tests/test_collection.py::test_nunique[False]", "dask/dataframe/dask_expr/tests/test_collection.py::test_nunique[True]", "dask/dataframe/dask_expr/tests/test_collection.py::test_quantile_frame"]
["dask/dataframe/dask_expr/tests/test_collection.py::test_del", "dask/dataframe/dask_expr/tests/test_collection.py::test_info[True-None-True]", "dask/dataframe/dask_expr/tests/test_collection.py::test_info[True-None-False]", "dask/dataframe/dask_expr/tests/test_collection.py::test_info[True-None-None]", "dask/dataframe...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
1
50
3
1,317
0
0.6
1
0.75
1
0.386167
81.4335
4,511
swe_smith::train::6865
swe_smith
train
6,865
joke2k__faker.8b401a7d.lm_rewrite__j27m83vi
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
IPv4 Address Generation Fails with Weights Argument Description It seems there's an issue with generating IPv4 addresses when using the `weights` argument in the `faker.providers.internet` module. The function `_random_ipv4_address_from_subnets` is expected to handle subnet selection based on weights, but it currentl...
diff --git a/faker/providers/internet/__init__.py b/faker/providers/internet/__init__.py index d4a20a5..b1fb497 100644 --- a/faker/providers/internet/__init__.py +++ b/faker/providers/internet/__init__.py @@ -506,12 +506,8 @@ class Provider(BaseProvider): setattr(self, weights_attr, weights) return pu...
["tests/providers/test_internet.py::TestInternetProvider::test_ipv4", "tests/providers/test_internet.py::TestInternetProvider::test_ipv4_caching", "tests/providers/test_internet.py::TestInternetProvider::test_ipv4_private", "tests/providers/test_internet.py::TestInternetProvider::test_ipv4_private_class", "tests/provid...
["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
56
9
1,197
0
0.6
1
0.75
1
0.386167
81.4335
4,512
swe_smith::train::8299
swe_smith
train
8,299
cantools__cantools.0c6a7871.lm_rewrite__pmmbpkot
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
# ECU Extract ARXML loader fails to initialize database correctly **Describe the bug** When trying to load an ECU extract ARXML file, the loader fails with a TypeError. The database initialization is missing required arguments. **To Reproduce** Try to load an ECU extract ARXML file: ```python import cantools # This...
diff --git a/src/cantools/database/can/formats/arxml/ecu_extract_loader.py b/src/cantools/database/can/formats/arxml/ecu_extract_loader.py index 67935ab..09a7448 100644 --- a/src/cantools/database/can/formats/arxml/ecu_extract_loader.py +++ b/src/cantools/database/can/formats/arxml/ecu_extract_loader.py @@ -59,44 +59,3...
["tests/test_database.py::CanToolsDatabaseTest::test_ecu_extract_arxml"]
["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
59
1
1,136
0
0.6
1
0.75
1
0.386
81.433
4,513
swe_bench::test::1612
swe_bench
test
1,612
scikit-learn__scikit-learn-13628
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
6a3fc959b684e2f4b2fab28b27d5fa4018acb6a3
brier_score_loss error Hello. I think I found a mistake in brier_score_loss. When you have a target = 1 and a prediction = 1 too, brier_score_loss should be 0 (best result), but it gives 1. Why is it happening? Because _check_binary_probabilistic_predictions gets target with only one class and convert it to 0. And metr...
Thanks. Duplicate issue of #9300, #8459 Sorry, just amended those links. #9301 is likely to be merged for next release Thank you
diff --git a/sklearn/calibration.py b/sklearn/calibration.py --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -25,7 +25,6 @@ from .isotonic import IsotonicRegression from .svm import LinearSVC from .model_selection import check_cv -from .metrics.classification import _check_binary_probabilistic_predictio...
diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py --- a/sklearn/metrics/tests/test_classification.py +++ b/sklearn/metrics/tests/test_classification.py @@ -1997,9 +1997,23 @@ def test_brier_score_loss(): assert_raises(ValueError, brier_score_loss, y_true, y_pr...
["sklearn/metrics/tests/test_classification.py::test_brier_score_loss"]
["sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_multilabel_accuracy_score_subset_accuracy", "sklearn/metrics/tests/test_classification.py::test_precision_recall_f1_score_binary", "sklearn/metrics/tests/test_classification...
null
true
2019-04-12T14:38:20Z
3
66
1
795
0
0.8
1
0.55
1
0.3525
81.4325
4,514
swe_smith::train::51594
swe_smith
train
51,594
pydicom__pydicom.7d361b3d.combine_module__6i6b90g8
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
RLE decoder returns wrong decoder and fails with unknown transfer syntax #### Description When trying to decode RLE compressed pixel data, the decoder lookup is returning the wrong decoder instance and failing to handle unknown transfer syntax UIDs properly. Additionally, RLE header parsing is producing incorrect seg...
diff --git a/src/pydicom/pixels/decoders/base.py b/src/pydicom/pixels/decoders/base.py index 268f0d4..b65915b 100644 --- a/src/pydicom/pixels/decoders/base.py +++ b/src/pydicom/pixels/decoders/base.py @@ -2042,8 +2042,6 @@ def get_decoder(uid: str) -> Decoder: """ uid = UID(uid) try: - return _PIX...
["tests/pixels/test_decoder_base.py::TestDecoder::test_buffer", "tests/pixels/test_decoder_base.py::TestDecoder::test_validate_plugins", "tests/pixels/test_decoder_base.py::test_get_decoder", "tests/pixels/test_decoder_rle.py::TestParseHeader::test_parse_header[0-offsets0]", "tests/pixels/test_decoder_rle.py::TestParse...
["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
61
11
1,095
0
0.6
1
0.75
1
0.385833
81.4325
4,515
swe_smith::train::28288
swe_smith
train
28,288
encode__starlette.db5063c2.combine_file__24cuuv2a
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
Authentication decorator breaks with wrong parameter name #### Description The `@requires` decorator is looking for the wrong parameter name when extracting the request object from function arguments. This causes authentication to fail even when valid credentials are provided. #### Steps/Code to Reproduce ```python...
diff --git a/starlette/authentication.py b/starlette/authentication.py index 4fd8664..196ddf1 100644 --- a/starlette/authentication.py +++ b/starlette/authentication.py @@ -80,14 +80,14 @@ def requires( # Handle sync request/response functions. @functools.wraps(func) def sync_wrap...
["tests/test_authentication.py::test_user_interface[asyncio]", "tests/test_authentication.py::test_authentication_required[asyncio]", "tests/test_authentication.py::test_websocket_authentication_required[asyncio]", "tests/test_authentication.py::test_authentication_redirect[asyncio]", "tests/test_authentication.py::tes...
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/tes...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
1
10
10
2,114
0
0.6
1
0.75
1
0.385667
81.432
4,516
swe_smith::train::20398
swe_smith
train
20,398
tobymao__sqlglot.036601ba.combine_file__amh32qqu
swesmith/tobymao__sqlglot.036601ba
tobymao/sqlglot
python
null
DuckDB dialect parser broken after recent changes #### Description The DuckDB dialect parser is failing to parse expressions correctly. When trying to parse basic SQL queries, the parser throws `UnboundLocalError` exceptions indicating that variables are referenced before assignment. #### Steps/Code to Reproduce ``...
diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py index b362cfe..a7b28ee 100644 --- a/sqlglot/dialects/duckdb.py +++ b/sqlglot/dialects/duckdb.py @@ -470,21 +470,20 @@ class DuckDB(Dialect): } def _parse_expression(self) -> t.Optional[exp.Expression]: - # DuckDB support...
["tests/dialects/test_duckdb.py::TestDuckDB::test_array_index", "tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb", "tests/dialects/test_duckdb.py::TestDuckDB::test_prefix_aliases"]
["tests/dialects/test_duckdb.py::TestDuckDB::test_analyze", "tests/dialects/test_duckdb.py::TestDuckDB::test_array", "tests/dialects/test_duckdb.py::TestDuckDB::test_at_sign_to_abs", "tests/dialects/test_duckdb.py::TestDuckDB::test_attach_detach", "tests/dialects/test_duckdb.py::TestDuckDB::test_cast", "tests/dialects/...
jyangballin/swesmith.x86_64.tobymao_1776_sqlglot.036601ba
true
null
1
53
3
1,254
0
0.6
1
0.75
1
0.385667
81.432
4,517
swe_smith::train::24912
swe_smith
train
24,912
marshmallow-code__marshmallow.9716fc62.lm_rewrite__20g4107b
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
# Schema validators always report errors with field_name='_schema' instead of using the provided field_name ### Problem I'm using schema-level validators with `validates_schema` decorator and I've noticed that when I raise a `ValidationError` with a specific field name, the error is always stored with field_name='_sch...
diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py index e21768e..5f18074 100644 --- a/src/marshmallow/schema.py +++ b/src/marshmallow/schema.py @@ -755,26 +755,31 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta): data = self.opts.render_module.loads(json_data, **kwargs) return se...
["tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_field_error", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_decorated_validators", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_allow_arbitrary_field_names_in_error"]
["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
35
3
1,610
0
0.6
1
0.75
1
0.385
81.43
4,518
swe_smith::train::32809
swe_smith
train
32,809
pydantic__pydantic.acb0f10f.lm_rewrite__qr59kt0g
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
# Incorrect error message when providing too many positional arguments to a validated function ## Description I encountered an issue with the `validate_arguments` decorator when providing too many positional arguments to a function. The error message is incorrect and doesn't properly indicate how many arguments were ...
diff --git a/pydantic/deprecated/decorator.py b/pydantic/deprecated/decorator.py index e73ad20..d9d527e 100644 --- a/pydantic/deprecated/decorator.py +++ b/pydantic/deprecated/decorator.py @@ -244,11 +244,23 @@ class ValidatedFunction: @field_validator(self.v_args_name, check_fields=False) @cl...
["tests/test_deprecated_validate_arguments.py::test_args", "tests/test_deprecated_validate_arguments.py::test_kwargs", "tests/test_deprecated_validate_arguments.py::test_args_name"]
["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
20
3
1,910
0
0.6
1
0.75
1
0.385
81.43
4,519
swe_smith::train::43243
swe_smith
train
43,243
gawel__pyquery.811cd048.lm_rewrite__wvy6bykj
swesmith/gawel__pyquery.811cd048
gawel/pyquery
python
null
### TypeError when using `get` method in web scraping #### Description I've encountered an issue with the `get` method in the web scraping functionality after a recent update. When attempting to perform a GET request using `pyquery`, a `TypeError` is raised, indicating that an unexpected keyword argument is being pas...
diff --git a/pyquery/openers.py b/pyquery/openers.py index 22ee06b..2fcee22 100644 --- a/pyquery/openers.py +++ b/pyquery/openers.py @@ -40,29 +40,30 @@ def _query(url, method, kwargs): def _requests(url, kwargs): - - encoding = kwargs.get('encoding') - method = kwargs.get('method', 'get').lower() - sessi...
["README.rst::README.rst", "docs/scrap.rst::scrap.rst", "docs/tips.rst::tips.rst", "tests/test_pyquery.py::TestWebScrapping::test_get", "tests/test_pyquery.py::TestWebScrapping::test_post", "tests/test_pyquery.py::TestWebScrapping::test_session", "tests/test_pyquery.py::TestWebScrappingEncoding::test_get", "tests/test_...
["docs/attributes.rst::attributes.rst", "docs/css.rst::css.rst", "docs/manipulating.rst::manipulating.rst", "docs/pseudo_classes.rst::pseudo_classes.rst", "docs/traversing.rst::traversing.rst", "pyquery/cssselectpatch.py::pyquery.cssselectpatch.JQueryTranslator.xpath_button_pseudo", "pyquery/cssselectpatch.py::pyquery....
jyangballin/swesmith.x86_64.gawel_1776_pyquery.811cd048
true
null
1
47
8
1,368
0
0.6
1
0.75
1
0.384667
81.429
4,520
swe_smith::train::22255
swe_smith
train
22,255
tweepy__tweepy.91a41c6e.combine_file__ua9a8ocb
swesmith/tweepy__tweepy.91a41c6e
tweepy/tweepy
python
null
# Cache functionality broken in tweepy ## Description I'm experiencing issues with the cache functionality in tweepy. The cache doesn't seem to be working correctly after a recent update. ## Steps to reproduce I'm using the MemoryCache and FileCache implementations and both are failing: ```python from tweepy impor...
diff --git a/tweepy/cache.py b/tweepy/cache.py index bfb87b3..28eb1ba 100644 --- a/tweepy/cache.py +++ b/tweepy/cache.py @@ -85,25 +85,18 @@ class MemoryCache(Cache): def get(self, key, timeout=None): self.lock.acquire() try: - # check to see if we have this key entry = se...
["tests/test_api.py::TweepyAPITests::testcachedresult", "tests/test_api.py::TweepyCacheTests::testfilecache", "tests/test_api.py::TweepyCacheTests::testmemorycache"]
["tests/test_api.py::TweepyAPITests::test_indicate_direct_message_typing", "tests/test_api.py::TweepyAPITests::testaddremovelistmember", "tests/test_api.py::TweepyAPITests::testaddremovelistmembers", "tests/test_api.py::TweepyAPITests::testcachedifferentqueryparameters", "tests/test_api.py::TweepyAPITests::testcreatede...
jyangballin/swesmith.x86_64.tweepy_1776_tweepy.91a41c6e
true
null
1
33
3
1,647
0
0.6
1
0.75
1
0.3845
81.4285
4,521
swe_smith::train::18543
swe_smith
train
18,543
HIPS__autograd.ac044f0d.lm_rewrite__m1qdkspg
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
### Padding Function Error with Specific Widths #### Description Encountered an issue with the `np.pad` function when using certain padding widths. The function seems to fail when provided with specific width configurations, leading to unexpected behavior. #### Steps to Reproduce 1. Import the necessary modules and...
diff --git a/autograd/numpy/numpy_vjps.py b/autograd/numpy/numpy_vjps.py index 08d4e1b..642a747 100644 --- a/autograd/numpy/numpy_vjps.py +++ b/autograd/numpy/numpy_vjps.py @@ -951,17 +951,34 @@ defvjp(untake, lambda ans, x, idx, _: lambda g: g[idx]) def _unpad(array, width): - if anp.isscalar(width): - ...
["tests/test_systematic.py::test_pad"]
["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
39
1
1,527
0
0.6
1
0.75
1
0.3845
81.4285
4,522
r2e_gym::train::5536
r2e_gym
train
5,536
aiohttp__259edc369075de63e6f3a4eaade058c62af0df71
aiohttp
aio-libs/aiohttp
python
259edc369075de63e6f3a4eaade058c62af0df71
**Analysis:** - **Key Parts from Commit Details and Test Results:** - **Commit Message:** Fix incorrect parsing of chunk extensions with the pure Python parser. - **Commit Patch:** Adds a check for LF (`\n`) in chunk extensions and raises a `BadHttpMessage` exception if found. - **Test Results:** - **Old Com...
diff --git a/CHANGES/9851.bugfix.rst b/CHANGES/9851.bugfix.rst --- a/CHANGES/9851.bugfix.rst +++ b/CHANGES/9851.bugfix.rst @@ -0,0 +1 @@ +Fixed incorrect parsing of chunk extensions with the pure Python parser -- by :user:`bdraco`. diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py --- a/aiohttp/http_parser.p...
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -13,6 +13,7 @@ import aiohttp from aiohttp import http_exceptions, streams +from aiohttp.base_protocol import BaseProtocol from aiohttp.http_parser import ( NO_EXTENSIONS, ...
null
null
namanjain12/aiohttp_final:259edc369075de63e6f3a4eaade058c62af0df71
true
null
2
8
null
2,857
0
0.75
1
0.6375
1
0.502833
81.42725
4,523
swe_smith::train::26468
swe_smith
train
26,468
pylint-dev__astroid.b114f6b5.func_pm_remove_loop__17d93zo0
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Subscript inference broken after recent changes #### Description Subscript operations are failing to infer properly, causing widespread inference errors across the codebase. When trying to infer subscripted expressions like `A[T]`, `collections.abc.MutableSet[int]`, or basic list/tuple slicing operations, the inferen...
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index fde3239..4988fe4 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -3735,48 +3735,10 @@ class Subscript(NodeNG): if isinstance(value, util.UninferableBase): yield util.Uninferab...
["tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_are_subscriptables", "tests/brain/numpy/test_ndarray.py::NumpyBrainNdarrayTest::test_numpy_ndarray_class_support_type_indexing", "tests/brain/test_brain.py::DefaultDictTest::test_1", "tests/brain/test_brain.py::TypeBrain::...
["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
38
64
1,543
0
0.6
1
0.75
1
0.383833
81.4265
4,524
swe_smith::train::9659
swe_smith
train
9,659
marshmallow-code__webargs.dbde72fe.func_basic__jte6u8nu
swesmith/marshmallow-code__webargs.dbde72fe
marshmallow-code/webargs
python
null
# Invalid JSON handling in FalconParser returns 200 status code instead of 400 **Describe the bug** I've discovered an issue with the FalconParser in webargs. When invalid JSON is submitted in a request, the parser returns a 200 status code instead of the expected 400 status code. Additionally, the error message has b...
diff --git a/src/webargs/falconparser.py b/src/webargs/falconparser.py index dd96a30..3d00fb3 100644 --- a/src/webargs/falconparser.py +++ b/src/webargs/falconparser.py @@ -177,9 +177,9 @@ class FalconParser(core.Parser[falcon.Request]): raise HTTPError(status, errors=error.messages, headers=error_headers) ...
["tests/test_falconparser.py::TestFalconParser::test_parse_json_with_nonutf8_chars[/echo_json]", "tests/test_falconparser.py::TestFalconParser::test_invalid_json[/echo_json]"]
["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
1
6
2
2,182
0
0.6
1
0.75
1
0.383667
81.426
4,525
r2e_gym::train::5621
r2e_gym
train
5,621
scrapy__a8893190a10798b61029d141a52fbb8deeb86d3b
scrapy
scrapy/scrapy
python
a8893190a10798b61029d141a52fbb8deeb86d3b
**Analysis:** - **Key Parts of Commit Details and Test Results:** - The commit adds a `_validate_values` function in `scrapy/utils/conf.py` to ensure that all values in the `compdict` are either real numbers or `None`. If a value is invalid, it raises a `ValueError`. - A new test function `test_valid_numbers` was ...
diff --git a/scrapy/utils/conf.py b/scrapy/utils/conf.py --- a/scrapy/utils/conf.py +++ b/scrapy/utils/conf.py @@ -1,5 +1,6 @@ import os import sys +import numbers from operator import itemgetter import six @@ -34,6 +35,13 @@ _check_components(compdict) return {convert(k): v for k, v in ...
diff --git a/tests/test_utils_conf.py b/tests/test_utils_conf.py --- a/tests/test_utils_conf.py +++ b/tests/test_utils_conf.py @@ -62,6 +62,27 @@ self.assertRaises(ValueError, build_component_list, duplicate_bs, convert=lambda x: x.lower()) + def test_valid_numbers(self): + ...
null
null
namanjain12/scrapy_final:a8893190a10798b61029d141a52fbb8deeb86d3b
true
null
1
9
null
2,834
0
0.75
1
0.6375
1
0.502333
81.42575
4,526
swe_smith::train::10757
swe_smith
train
10,757
paramiko__paramiko.23f92003.func_pm_ctrl_shuffle__a3ti752y
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
# SSH connection fails with older clients using group exchange key exchange I'm encountering an issue when connecting to a Paramiko SSH server from older clients (like PuTTY) that use the group exchange key exchange method. ## Steps to reproduce 1. Set up a Paramiko SSH server 2. Try to connect using an older client...
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index baa0803..ed918ac 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -165,29 +165,28 @@ class KexGex: # same as above, but without min_bits or max_bits (used by older # clients like putty) self.preferred_bits = m.get_int()...
["tests/test_kex.py::KexTest::test_gex_server_with_old_client", "tests/test_kex.py::KexTest::test_gex_sha256_server_with_old_client"]
["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
25
2
1,801
0
0.6
1
0.75
1
0.3835
81.4255
4,527
swe_smith::train::38698
swe_smith
train
38,698
pallets__jinja.ada0a9a6.combine_file__6qauiol0
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
# Incorrect error message in TemplatesNotFound and TemplateSyntaxError ## Description Hello, I've encountered an issue with the error messages displayed when templates are not found or when there's a syntax error in a template. ### Issue 1: TemplatesNotFound shows incorrect message When trying to include a templat...
diff --git a/src/jinja2/exceptions.py b/src/jinja2/exceptions.py index 082ebe8..5e68ece 100644 --- a/src/jinja2/exceptions.py +++ b/src/jinja2/exceptions.py @@ -79,10 +79,10 @@ class TemplatesNotFound(TemplateNotFound): parts.append(name) parts_str = ", ".join(map(str, parts)) - ...
["tests/test_async.py::TestAsyncIncludes::test_choice_includes", "tests/test_debug.py::TestDebug::test_regular_syntax_error", "tests/test_imports.py::TestIncludes::test_choice_includes"]
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
21
3
1,881
0
0.6
1
0.75
1
0.3835
81.4255
4,528
swe_smith::train::33228
swe_smith
train
33,228
django-money__django-money.835c1ab8.func_basic__zda4ylqr
swesmith/django-money__django-money.835c1ab8
django-money/django-money
python
null
# MoneyLocalizeNode in djmoney template tags is broken ## Description Django Version: 5.1.6 Python Version: 3.10.16 I've encountered an issue with the `money_localize` template tag in django-money. The tag doesn't work properly and fails to render money values correctly in templates. ## Code to Reproduce ```python...
diff --git a/djmoney/templatetags/djmoney.py b/djmoney/templatetags/djmoney.py index 32e1a3a..4c544c2 100644 --- a/djmoney/templatetags/djmoney.py +++ b/djmoney/templatetags/djmoney.py @@ -15,13 +15,13 @@ class MoneyLocalizeNode(template.Node): return "<MoneyLocalizeNode %d %s>" % (self.money.amount, self.mone...
["tests/test_tags.py::TestMoneyLocalizeNode::test_repr", "tests/test_tags.py::TestMoneyLocalizeNode::test_invalid_instance"]
["tests/contrib/exchange/test_admin.py::test_last_update", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup0]", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup1]", "tests/contrib/exchange/test_backends.py::TestBackends::test_initial_update_rates[setup0]", "tests/...
jyangballin/swesmith.x86_64.django-money_1776_django-money.835c1ab8
true
null
1
10
2
2,101
0
0.6
1
0.75
1
0.3835
81.4255
4,529
swe_smith::train::42304
swe_smith
train
42,304
scanny__python-pptx.278b47b1.lm_rewrite__gt5pb308
swesmith/scanny__python-pptx.278b47b1
scanny/python-pptx
python
null
### Bug in AutoShapeType Initialization #### Description There seems to be an issue with the initialization of `AutoShapeType` objects. When attempting to create an `AutoShapeType` with an invalid `autoshape_type_id`, the expected behavior is to raise a `KeyError`. However, this does not occur, and the object is init...
diff --git a/src/pptx/shapes/autoshape.py b/src/pptx/shapes/autoshape.py index c7f8cd9..2042342 100644 --- a/src/pptx/shapes/autoshape.py +++ b/src/pptx/shapes/autoshape.py @@ -199,20 +199,18 @@ class AutoShapeType: def __init__(self, autoshape_type_id: MSO_AUTO_SHAPE_TYPE): """Initialize attributes fro...
["tests/shapes/test_autoshape.py::DescribeAutoShapeType::it_knows_the_details_of_the_auto_shape_type_it_represents", "tests/shapes/test_autoshape.py::DescribeAutoShapeType::it_xml_escapes_the_basename_when_the_name_contains_special_characters", "tests/shapes/test_autoshape.py::DescribeAutoShapeType::it_caches_autoshape...
["tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:catAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:dateAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_provides_access_to_its_title[c:valAx]", "tests/chart/test_axis.py::Describe_BaseAxis::it_pr...
jyangballin/swesmith.x86_64.scanny_1776_python-pptx.278b47b1
true
null
1
22
4
1,861
0
0.6
1
0.75
1
0.3835
81.4255
4,530
swe_smith::train::34183
swe_smith
train
34,183
iterative__dvc.1d6ea681.func_pm_class_rm_funcs__2k3lhkul
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
Context methods missing after refactoring #### Description After a recent refactoring, several methods have been removed from the `Context` class that are still being used throughout the codebase. This is causing `AttributeError` exceptions when trying to call methods like `merge_update`, `check_loaded`, and `load_fr...
diff --git a/dvc/parsing/context.py b/dvc/parsing/context.py index af8d1b3..2168503 100644 --- a/dvc/parsing/context.py +++ b/dvc/parsing/context.py @@ -377,12 +377,6 @@ class Context(CtxDict): ctx.imports[path] = select_keys return ctx - def merge_update(self, other: "Context", overwrite=False):...
["tests/func/parsing/test_errors.py::test_vars_interpolation_errors[${file}_params.yaml]", "tests/func/parsing/test_errors.py::test_vars_interpolation_errors[vars_1]", "tests/func/parsing/test_errors.py::test_failed_to_interpolate", "tests/func/parsing/test_errors.py::test_local_vars_params_file_not_exist", "tests/func...
["tests/func/parsing/test_resolver.py::test_vars_interpolation_errors[${file}_params.yaml]", "tests/func/parsing/test_resolver.py::test_vars_interpolation_errors[vars_1]"]
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
1
48
101
1,340
0
0.6
1
0.75
1
0.383333
81.425
4,531
swe_smith::train::34952
swe_smith
train
34,952
pyutils__line_profiler.a646bf0f.combine_module__y5cyn4s7
swesmith/pyutils__line_profiler.a646bf0f
pyutils/line_profiler
python
null
# Autoprofile feature not working correctly with profile_imports parameter - [x] a detailed description of the bug or problem I am having - [x] environment information - [x] minimal example to reproduce ## Description When using the autoprofile feature with the `profile_imports` parameter, it doesn't work as expecte...
diff --git a/line_profiler/autoprofile/autoprofile.py b/line_profiler/autoprofile/autoprofile.py index 7331dcc..f8ae223 100644 --- a/line_profiler/autoprofile/autoprofile.py +++ b/line_profiler/autoprofile/autoprofile.py @@ -88,8 +88,8 @@ def run(script_file, ns, prof_mod, profile_imports=False): profile_impor...
["tests/test_autoprofile.py::test_single_function_autoprofile", "tests/test_autoprofile.py::test_multi_function_autoprofile", "tests/test_autoprofile.py::test_duplicate_function_autoprofile", "tests/test_autoprofile.py::test_autoprofile_script_with_module", "tests/test_autoprofile.py::test_autoprofile_module", "tests/t...
["tests/test_cli.py::test_cli", "tests/test_cli.py::test_version_agreement", "tests/test_complex_case.py::test_complex_example_python_none", "tests/test_duplicate_functions.py::test_duplicate_function", "tests/test_explicit_profile.py::test_simple_explicit_nonglobal_usage", "tests/test_explicit_profile.py::test_explici...
jyangballin/swesmith.x86_64.pyutils_1776_line_profiler.a646bf0f
true
null
2
31
9
1,680
0
0.6
1
0.75
1
0.383333
81.425
4,532
swe_smith::train::5870
swe_smith
train
5,870
mahmoud__boltons.3bfcfdd0.combine_file__l8k1vlai
swesmith/mahmoud__boltons.3bfcfdd0
mahmoud/boltons
python
null
# Multiple issues with formatutils module I found several issues with the formatutils module that are causing unexpected behavior: ## Issue 1: infer_positional_format_args function is broken The `infer_positional_format_args` function is not correctly handling format strings. When trying to use it with a simple form...
diff --git a/boltons/formatutils.py b/boltons/formatutils.py index 3034034..1385292 100644 --- a/boltons/formatutils.py +++ b/boltons/formatutils.py @@ -119,21 +119,19 @@ def infer_positional_format_args(fstr): Returns a string with the inferred positional arguments. """ - # TODO: memoize - ret, max_a...
["tests/test_formatutils.py::test_pos_infer", "tests/test_formatutils.py::test_tokenize_format_str", "tests/test_formatutils.py::test_deferredvalue"]
["tests/test_cacheutils.py::test_lru_add", "tests/test_cacheutils.py::test_lri", "tests/test_cacheutils.py::test_lri_cache_eviction", "tests/test_cacheutils.py::test_cache_sizes_on_repeat_insertions", "tests/test_cacheutils.py::test_lru_basic", "tests/test_cacheutils.py::test_lru_dict_replacement[LRU]", "tests/test_cac...
jyangballin/swesmith.x86_64.mahmoud_1776_boltons.3bfcfdd0
true
null
1
27
3
1,757
0
0.6
1
0.75
1
0.382833
81.4235
4,533
swe_smith::train::1171
swe_smith
train
1,171
jd__tenacity.0d40e76f.lm_rewrite__3rty13vw
swesmith/jd__tenacity.0d40e76f
jd/tenacity
python
null
# Bug in before_sleep_log when using exc_info=True I found a bug in the `before_sleep_log` function when using it with `exc_info=True`. The function doesn't properly handle exceptions when logging. ## Reproduction Here's a simple example that demonstrates the issue: ```python import logging import tenacity logger ...
diff --git a/tenacity/before_sleep.py b/tenacity/before_sleep.py index 153edb7..98afb2b 100644 --- a/tenacity/before_sleep.py +++ b/tenacity/before_sleep.py @@ -28,45 +28,22 @@ def before_sleep_nothing(retry_state: "RetryCallState") -> None: """Before sleep strategy that does nothing.""" -def before_sleep_log(...
["tests/test_tenacity.py::TestBeforeAfterAttempts::test_before_sleep_log_raises_with_exc_info"]
["tests/test_after.py::TestAfterLogFormat::test_01_default", "tests/test_after.py::TestAfterLogFormat::test_02_custom_sec_format", "tests/test_asyncio.py::TestAsyncio::test_attempt_number_is_correct_for_interleaved_coroutines", "tests/test_asyncio.py::TestAsyncio::test_iscoroutinefunction", "tests/test_asyncio.py::Test...
jyangballin/swesmith.x86_64.jd_1776_tenacity.0d40e76f
true
null
1
49
1
1,316
0
0.6
1
0.75
1
0.382667
81.423
4,534
swe_smith::train::52419
swe_smith
train
52,419
pydicom__pydicom.7d361b3d.func_pm_ctrl_shuffle__f54bceaa
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
Character encoding fails with UnboundLocalError in _encode_to_given_charset #### Description When encoding character sets, the function `_encode_to_given_charset` raises an `UnboundLocalError` because variables are referenced before assignment. #### Steps/Code to Reproduce ```python import pydicom from pydicom.valu...
diff --git a/src/pydicom/charset.py b/src/pydicom/charset.py index 28a777e..d6fa662 100644 --- a/src/pydicom/charset.py +++ b/src/pydicom/charset.py @@ -184,6 +184,37 @@ def _encode_to_jis_x_0212(value: str, errors: str = "strict") -> bytes: def _encode_to_given_charset( value: str, character_set: str, errors: st...
["tests/test_charset.py::TestCharset::test_nested_character_sets", "tests/test_charset.py::TestCharset::test_inherited_character_set_in_sequence", "tests/test_charset.py::TestCharset::test_charset_patient_names[chrH31-Yamada^Tarou=\\u5c71\\u7530^\\u592a\\u90ce=\\u3084\\u307e\\u3060^\\u305f\\u308d\\u3046]", "tests/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
1
63
11
1,034
0
0.6
1
0.75
1
0.382333
81.422
4,535
swe_smith::train::25036
swe_smith
train
25,036
pylint-dev__astroid.b114f6b5.combine_file__ecw8m286
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
NamedTuple field order reversed and incorrect behavior with rename parameter #### Description When creating a namedtuple, the field order gets reversed and the default behavior for the `rename` parameter is incorrect. Additionally, several methods like `_replace` and `__getnewargs__` don't work as expected. #### Ste...
diff --git a/astroid/brain/brain_namedtuple_enum.py b/astroid/brain/brain_namedtuple_enum.py index 67d706d..f0527b7 100644 --- a/astroid/brain/brain_namedtuple_enum.py +++ b/astroid/brain/brain_namedtuple_enum.py @@ -193,9 +193,8 @@ def infer_named_tuple( node: nodes.Call, context: InferenceContext | None = None ...
["tests/brain/test_attr.py::AttrsTest::test_attr_transform", "tests/brain/test_brain.py::ModuleExtenderTest::test_extension_modules", "tests/brain/test_brain.py::TypingBrain::test_namedtuple_inference_nonliteral", "tests/brain/test_brain.py::ReBrainTest::test_re_pattern_subscriptable", "tests/brain/test_brain.py::ReBra...
["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
58
51
1,133
0
0.6
1
0.75
1
0.382167
81.4215
4,536
swe_smith::train::28070
swe_smith
train
28,070
jsvine__pdfplumber.02ff4313.lm_rewrite__tidu61nv
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
### Issue: Page Initialization Error in PDF Processing I recently updated the codebase and encountered an issue with the `Page` class initialization when processing PDFs. The error seems to occur when attempting to access pages from a PDF document. Here's a brief description of the problem: #### Description When try...
diff --git a/pdfplumber/pdf.py b/pdfplumber/pdf.py index 9c42bc2..26bfeb7 100644 --- a/pdfplumber/pdf.py +++ b/pdfplumber/pdf.py @@ -142,33 +142,25 @@ class PDF(Container): self.close() @property - def pages(self) -> List[Page]: + def pages(self) ->List[Page]: + """Return a list of pages in...
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::test_invalid_crops", "tests/test_basics.py::Test::...
["tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_metadata", "tests/test_convert.py::Test::test_cli_structure", "tests/test_issues.py::Test::test_issue_297", "tests/test_repair.py::Test::test_bad_repair_path", "tests/test_repair.py::Test::test_repair_setting", "tests/test_table.py::Test...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
38
118
1,533
0
0.6
1
0.75
1
0.382167
81.4215
4,537
r2e_gym::train::4318
r2e_gym
train
4,318
numpy__76e2d4751294077cc4cafe155571ead8213133a8
numpy
numpy/numpy
python
76e2d4751294077cc4cafe155571ead8213133a8
**Title:** `polyvalfromroots` Function Missing in `numpy.polynomial.polynomial` Module **Description:** When attempting to evaluate a polynomial using its roots with the `polyvalfromroots` function, an `AttributeError` is raised because the function is not available in the `numpy.polynomial.polynomial` module. **Exam...
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst --- a/doc/release/1.12.0-notes.rst +++ b/doc/release/1.12.0-notes.rst @@ -128,7 +128,7 @@ but that can be overwritten by people making binary distributions of numpy. New nanfunctions ``nancumsum`` and ``nancumprod`` added -~~~~~~~~~~~~~~~~~~~~...
diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -135,6 +135,65 @@ assert_equal(poly.polyval(x, [1]).shape, dims) assert_equal(poly.polyval(x, [1...
null
null
namanjain12/numpy_final:76e2d4751294077cc4cafe155571ead8213133a8
true
null
3
102
null
965
0
0.75
1
0.6375
1
0.500833
81.42125
4,538
swe_smith::train::9758
swe_smith
train
9,758
marshmallow-code__webargs.dbde72fe.lm_rewrite__4niyfvx2
swesmith/marshmallow-code__webargs.dbde72fe
marshmallow-code/webargs
python
null
# TornadoParser handle_error method doesn't properly pass validation error messages When using the TornadoParser with required fields, the validation error messages are not properly passed through to the HTTPError exception. ## Reproduction I have a Tornado application where I'm using webargs to validate request par...
diff --git a/src/webargs/tornadoparser.py b/src/webargs/tornadoparser.py index 1b0c73d..8507233 100644 --- a/src/webargs/tornadoparser.py +++ b/src/webargs/tornadoparser.py @@ -131,31 +131,20 @@ class TornadoParser(core.Parser[HTTPServerRequest]): """Return files from the request as a MultiDictProxy.""" ...
["tests/test_tornadoparser.py::TestParse::test_it_should_parse_required_arguments", "tests/test_tornadoparser.py::TestParse::test_it_should_parse_multiple_arg_required"]
["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
1
23
2
1,832
0
0.6
1
0.75
1
0.382
81.421
4,539
swe_smith::train::42844
swe_smith
train
42,844
python-jsonschema__jsonschema.93e0caa5.lm_rewrite__olsjxi37
swesmith/python-jsonschema__jsonschema.93e0caa5
python-jsonschema/jsonschema
python
null
### Issue with Dependencies Validation in Draft 6 and Draft 7 #### Description There seems to be an issue with how dependencies are validated in JSON Schema Draft 6 and Draft 7 when using boolean subschemas. The validation does not behave as expected when certain properties are present in the instance. #### Steps/Cod...
diff --git a/jsonschema/_legacy_keywords.py b/jsonschema/_legacy_keywords.py index c691589..ba0b155 100644 --- a/jsonschema/_legacy_keywords.py +++ b/jsonschema/_legacy_keywords.py @@ -44,12 +44,8 @@ def dependencies_draft3(validator, dependencies, instance, schema): yield ValidationError(message) ...
["jsonschema/tests/test_jsonschema_test_suite.py::TestDraft6::test_dependencies_dependencies_with_boolean_subschemas_object_with_both_properties_is_invalid", "jsonschema/tests/test_jsonschema_test_suite.py::TestDraft6::test_dependencies_dependencies_with_boolean_subschemas_object_with_property_having_schema_false_is_in...
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format", "jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format_applies_to_schema_errors", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist_pretty_output", "jso...
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
true
null
1
19
6
1,912
0
0.6
1
0.75
1
0.382
81.421
4,540
swe_bench::test::1254
swe_bench
test
1,254
pydata__xarray-4802
pydata/xarray
pydata/xarray
python
84df75d366edaaa0af172047145a3409cac9bb3a
Decode_cf fails when scale_factor is a length-1 list Some datasets I work with have `scale_factor` and `add_offset` encoded as length-1 lists. The following code worked as of Xarray 0.16.1 ```python import xarray as xr ds = xr.DataArray([0, 1, 2], name='foo', attrs={'scale_factor': [0.01], ...
I guess we need `np.asarray(scale_factor).item()` But what did we do before? I think it just did `np.array([1, 2, 3.]) * [5]` numpy coverts the `[5]` to an array with one element, which is why it worked: ```python xr.coding.variables._scale_offset_decoding(np.array([1, 2, 3.]), [5], None, np.float) ``` https:...
diff --git a/xarray/coding/variables.py b/xarray/coding/variables.py --- a/xarray/coding/variables.py +++ b/xarray/coding/variables.py @@ -270,9 +270,9 @@ def decode(self, variable, name=None): add_offset = pop_to(attrs, encoding, "add_offset", name=name) dtype = _choose_float_dtype(data.dtype...
diff --git a/xarray/tests/test_coding.py b/xarray/tests/test_coding.py --- a/xarray/tests/test_coding.py +++ b/xarray/tests/test_coding.py @@ -8,7 +8,7 @@ from xarray.coding import variables from xarray.conventions import decode_cf_variable, encode_cf_variable -from . import assert_equal, assert_identical, requires...
["xarray/tests/test_coding.py::test_scaling_offset_as_list[0.1-scale_factor1]", "xarray/tests/test_coding.py::test_scaling_offset_as_list[add_offset1-10]", "xarray/tests/test_coding.py::test_scaling_offset_as_list[add_offset1-scale_factor1]"]
["xarray/tests/test_coding.py::test_CFMaskCoder_decode", "xarray/tests/test_coding.py::test_CFMaskCoder_encode_missing_fill_values_conflict[numeric-with-dtype]", "xarray/tests/test_coding.py::test_CFMaskCoder_encode_missing_fill_values_conflict[numeric-without-dtype]", "xarray/tests/test_coding.py::test_CFMaskCoder_enc...
null
true
2021-01-12T22:50:26Z
1
4
3
2,960
0
0.8
1
0.7
0.8
0.506667
81.42
4,541
swe_smith::train::24801
swe_smith
train
24,801
marshmallow-code__marshmallow.9716fc62.func_basic__yl48s574
swesmith/marshmallow-code__marshmallow.9716fc62
marshmallow-code/marshmallow
python
null
Nested field returns None instead of schema instance #### Description When using Nested fields, the schema property returns None instead of the expected schema instance, causing AttributeError when trying to access schema attributes like 'many'. #### Steps/Code to Reproduce ```python from marshmallow import Schema,...
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py index e83ba19..3ca5c40 100644 --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -581,55 +581,51 @@ class Nested(Field): .. versionchanged:: 1.0.0 Renamed from `serializer` to `schema`. """ - if not ...
["tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_invalid_data", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_schema_error", "tests/test_decorators.py::TestValidatesSchemaDecorator::test_validator_nested_many_field_error", "tests/test_decorators....
["tests/test_decorators.py::test_decorated_processors[True]", "tests/test_decorators.py::test_decorated_processors[False]", "tests/test_decorators.py::test_decorated_processor_returning_none[exclude]", "tests/test_decorators.py::test_decorated_processor_returning_none[include]", "tests/test_decorators.py::test_decorate...
jyangballin/swesmith.x86_64.marshmallow-code_1776_marshmallow.9716fc62
true
null
1
64
135
1,010
0
0.6
1
0.75
1
0.381667
81.42
4,542
swe_smith::train::44335
swe_smith
train
44,335
pydata__patsy.a5d16484.func_pm_ctrl_shuffle__j5ofsi2y
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
CategoricalSniffer test function has undefined variable error #### Description The `test_CategoricalSniffer` function in `patsy/categorical.py` has been reorganized but contains an undefined variable reference that causes a `UnboundLocalError`. #### Steps/Code to Reproduce ```python from patsy.categorical import te...
diff --git a/patsy/categorical.py b/patsy/categorical.py index c88ecd5..a612423 100644 --- a/patsy/categorical.py +++ b/patsy/categorical.py @@ -232,7 +232,18 @@ class CategoricalSniffer(object): def test_CategoricalSniffer(): - from patsy.missing import NAAction + + # no box + t([], [[10, 30], [20]], Fal...
["patsy/categorical.py::test_CategoricalSniffer"]
["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
67
1
950
0
0.6
1
0.75
1
0.381667
81.42
4,543
swe_smith::train::8569
swe_smith
train
8,569
pyupio__safety.7654596b.combine_module__sld50jw0
swesmith/pyupio__safety.7654596b
pyupio/safety
python
null
# Authentication issues in Safety package ## Description I've encountered a problem with the authentication system in the Safety package. When trying to use the application with organization settings, I'm getting an error about an unbound local variable. Consider the following scenario: ```python from safety.auth.m...
diff --git a/safety/auth/main.py b/safety/auth/main.py index fdb9c22..2ef6fb1 100644 --- a/safety/auth/main.py +++ b/safety/auth/main.py @@ -61,30 +61,29 @@ def get_redirect_url() -> str: return CLI_CALLBACK def get_organization() -> Optional[Organization]: + org_id: Optional[str] = org_conf['id'].replace("\...
["tests/test_cli.py::TestSafetyCLI::test_announcements_if_is_not_tty", "tests/test_cli.py::TestSafetyCLI::test_basic_html_output_pass", "tests/test_cli.py::TestSafetyCLI::test_check_continue_on_error", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_format_backward_compatible", "tests/test_cli.py::TestSafetyCLI::t...
["tests/test_cli.py::TestSafetyCLI::test_command_line_interface", "tests/test_cli.py::TestSafetyCLI::test_debug_flag_with_value_1", "tests/test_cli.py::TestSafetyCLI::test_debug_flag_with_value_true", "tests/test_cli.py::TestNetworkTelemetry::test_get_network_telemetry", "tests/test_cli.py::TestNetworkTelemetry::test_g...
jyangballin/swesmith.x86_64.pyupio_1776_safety.7654596b
true
null
2
29
30
1,710
0
0.6
1
0.75
1
0.381667
81.42
4,544
swe_smith::train::3589
swe_smith
train
3,589
pygments__pygments.27649ebb.combine_module__4f18zaiv
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
TNT and Inform6 lexers broken after recent changes #### Description The TNT and Inform6 lexers are producing incorrect token outputs and failing to properly tokenize input text. The lexers seem to have issues with their token processing logic that causes them to generate malformed token sequences. #### Steps/Code to...
diff --git a/pygments/lexers/int_fiction.py b/pygments/lexers/int_fiction.py index a7bc667..3b983be 100644 --- a/pygments/lexers/int_fiction.py +++ b/pygments/lexers/int_fiction.py @@ -499,11 +499,6 @@ class Inform6Lexer(RegexLexer): } def get_tokens_unprocessed(self, text): - # 'in' is either a keyw...
["tests/test_basic_api.py::test_random_input[TNTLexer]", "tests/test_basic_api.py::test_lexer_options[TNTLexer]", "tests/examplefiles/inform6/inform6_example.inf::", "tests/examplefiles/tnt/example.tnt::"]
["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
2
61
4
1,069
0
0.6
1
0.75
1
0.3815
81.4195
4,545
swe_smith::train::31315
swe_smith
train
31,315
scrapy__scrapy.35212ec5.lm_rewrite__o6ir6u8c
swesmith/scrapy__scrapy.35212ec5
scrapy/scrapy
python
null
# Selector initialization fails when both response and text are provided ## Description The `Selector` class in `scrapy/selector/unified.py` no longer validates if both `response` and `text` parameters are provided simultaneously. This causes unexpected behavior when both parameters are passed to the constructor. ##...
diff --git a/scrapy/selector/unified.py b/scrapy/selector/unified.py index f8365a8..b17cb98 100644 --- a/scrapy/selector/unified.py +++ b/scrapy/selector/unified.py @@ -71,31 +71,20 @@ class Selector(_ParselSelector, object_ref): __slots__ = ["response"] selectorlist_cls = SelectorList - def __init__( - ...
["tests/test_selector.py::SelectorTestCase::test_selector_bad_args", "tests/test_selector.py::JMESPathTestCase::test_html_has_json", "tests/test_selector.py::JMESPathTestCase::test_json_has_html"]
["tests/test_selector.py::SelectorTestCase::test_badly_encoded_body", "tests/test_selector.py::SelectorTestCase::test_flavor_detection", "tests/test_selector.py::SelectorTestCase::test_http_header_encoding_precedence", "tests/test_selector.py::SelectorTestCase::test_root_base_url", "tests/test_selector.py::SelectorTest...
jyangballin/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
true
null
1
41
3
1,468
0
0.6
1
0.75
1
0.381333
81.419
4,546
swe_smith::train::35510
swe_smith
train
35,510
stanfordnlp__dspy.651a4c71.func_pm_ctrl_shuffle__2yrkilst
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# Callbacks not executing in correct order ## Description I've discovered an issue with the callback system in DSPy. The callbacks are being executed in the wrong order, which is causing a lot of problems in my code. ## How to Reproduce I created a simple module with callbacks and noticed that the execution flow is...
diff --git a/dspy/utils/callback.py b/dspy/utils/callback.py index 2753c8f..4ca04cd 100644 --- a/dspy/utils/callback.py +++ b/dspy/utils/callback.py @@ -321,20 +321,14 @@ def with_callbacks(fn): @functools.wraps(fn) def sync_wrapper(instance, *args, **kwargs): - callbacks = _get_active_ca...
["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...
["tests/clients/test_cache.py::test_initialization", "tests/clients/test_cache.py::test_cache_key_generation", "tests/clients/test_cache.py::test_put_and_get", "tests/clients/test_cache.py::test_cache_miss", "tests/clients/test_cache.py::test_cache_key_error_handling", "tests/clients/test_cache.py::test_reset_memory_ca...
jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71
true
null
1
15
151
1,988
0
0.6
1
0.75
1
0.381333
81.419
4,547
swe_smith::train::6843
swe_smith
train
6,843
joke2k__faker.8b401a7d.lm_rewrite__9lc53ori
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
# UniqueProxy fails to maintain uniqueness across different function arguments When using the `unique` proxy with different function arguments, it fails to maintain uniqueness properly. The uniqueness tracking appears to be based only on the function name rather than considering the specific arguments passed to the fu...
diff --git a/faker/proxy.py b/faker/proxy.py index ac39e45..ee46af5 100644 --- a/faker/proxy.py +++ b/faker/proxy.py @@ -323,30 +323,28 @@ class UniqueProxy: self.__dict__.update(state) def _wrap(self, name: str, function: Callable) -> Callable: + """ + Wraps a function to ensure it return...
["tests/test_unique.py::TestUniquenessClass::test_sanity_escape", "tests/test_unique.py::TestUniquenessClass::test_exclusive_arguments"]
["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
36
2
1,568
0
0.6
1
0.75
1
0.381333
81.419
4,548
swe_smith::train::32794
swe_smith
train
32,794
pydantic__pydantic.acb0f10f.lm_rewrite__jojirxts
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
Model validators with instance methods incorrectly detect info parameter #### Description When using model validators as instance methods (not class methods), the validator signature inspection incorrectly determines whether an `info` parameter is present. This causes validation errors when the validator function sig...
diff --git a/pydantic/_internal/_decorators.py b/pydantic/_internal/_decorators.py index 92880a4..4790851 100644 --- a/pydantic/_internal/_decorators.py +++ b/pydantic/_internal/_decorators.py @@ -515,7 +515,8 @@ class DecoratorInfos: return res -def inspect_validator(validator: Callable[..., Any], mode: F...
["tests/benchmarks/test_model_schema_generation.py::test_model_validators_serializers", "tests/test_dataclasses.py::test_model_validator_after", "tests/test_deprecated_fields.py::test_deprecated_fields_model_validator", "tests/test_discriminated_union.py::test_sequence_discriminated_union_validation_with_validator", "t...
["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
43
20
1,427
0
0.6
1
0.75
1
0.381167
81.4185
4,549
swe_smith::train::24063
swe_smith
train
24,063
sunpy__sunpy.f8edfd5c.func_pm_ctrl_shuffle__pms9cvhj
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
JSOCClient.fetch() raises UnboundLocalError when processing empty responses #### Description When calling `fetch()` on an empty JSOC response, the method raises an `UnboundLocalError` because it tries to access a local variable `responses` that hasn't been defined yet. #### Steps/Code to Reproduce ```python from su...
diff --git a/sunpy/net/jsoc/jsoc.py b/sunpy/net/jsoc/jsoc.py index f5506de..e563701 100644 --- a/sunpy/net/jsoc/jsoc.py +++ b/sunpy/net/jsoc/jsoc.py @@ -371,6 +371,38 @@ class JSOCClient(BaseClient): @convert_row_to_table def fetch(self, jsoc_response, path=None, progress=True, overwrite=False, ...
["sunpy/net/jsoc/tests/test_jsoc.py::test_row_and_warning", "sunpy/net/jsoc/tests/test_jsoc.py::test_empty_response_fetch"]
["sunpy/net/jsoc/tests/test_jsoc.py::test_jsocresponse_single", "sunpy/net/jsoc/tests/test_jsoc.py::test_empty_jsoc_response", "sunpy/net/jsoc/tests/test_jsoc.py::test_show", "sunpy/net/jsoc/tests/test_jsoc.py::test_can_handle_query_no_series", "sunpy/net/jsoc/tests/test_jsoc.py::test_jsoc_attrs"]
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
65
2
986
0
0.6
1
0.75
1
0.381
81.418
4,550
swe_smith::train::50955
swe_smith
train
50,955
python-hyper__h11.bed0dd4a.lm_rewrite__u43ah4d0
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
### TypeError in HTTP Response Handling #### Description After the recent changes, there seems to be an issue with handling HTTP responses, particularly when parsing response data from a server. The problem manifests as a `TypeError` when attempting to process certain HTTP responses. #### Steps to Reproduce 1. Set ...
diff --git a/h11/_readers.py b/h11/_readers.py index 08a9574..f146b53 100644 --- a/h11/_readers.py +++ b/h11/_readers.py @@ -91,33 +91,38 @@ def maybe_read_from_IDLE_client(buf: ReceiveBuffer) -> Optional[Request]: status_line_re = re.compile(status_line.encode("ascii")) -def maybe_read_from_SEND_RESPONSE_server( ...
["h11/tests/test_against_stdlib_http.py::test_h11_as_client", "h11/tests/test_connection.py::test_Connection_basics_and_content_length", "h11/tests/test_connection.py::test_chunked", "h11/tests/test_connection.py::test_client_talking_to_http10_server", "h11/tests/test_connection.py::test_automatic_transfer_encoding_in_...
["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_chunk_boundaries", "h11/tests/test_connection.py::test_server_talking_to_http10_client", "h11/tests/test_connection.py::...
jyangballin/swesmith.x86_64.python-hyper_1776_h11.bed0dd4a
true
null
1
45
15
1,386
0
0.6
1
0.75
1
0.381
81.418
4,551
swe_smith::train::32923
swe_smith
train
32,923
pydantic__pydantic.acb0f10f.pr_5983
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
TypeAdapter.validate_python missing from_attributes parameter #### Description The `validate_python` method on `TypeAdapter` no longer accepts the `from_attributes` parameter, which breaks existing code that relies on this functionality for validating objects by extracting data from their attributes. #### Steps/Code...
diff --git a/pydantic/type_adapter.py b/pydantic/type_adapter.py index a6cdaba..429521b 100644 --- a/pydantic/type_adapter.py +++ b/pydantic/type_adapter.py @@ -378,55 +378,19 @@ class TypeAdapter(Generic[T]): ) return self._init_core_attrs(ns_resolver=ns_resolver, force=True, raise_errors=raise_error...
["tests/benchmarks/test_north_star.py::test_north_star_validate_json", "tests/test_allow_partial.py::test_typed_dict[python-value0-expected0]", "tests/test_allow_partial.py::test_typed_dict[python-value1-expected1]", "tests/test_allow_partial.py::test_typed_dict[python-value2-expected2]", "tests/test_allow_partial.py::...
["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
65
31
985
0
0.6
1
0.75
1
0.380833
81.4175
4,552
swe_smith::train::47410
swe_smith
train
47,410
sqlfluff__sqlfluff.50a1c4b6.combine_file__ejy5bozf
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
CLI formatter output colors and text are inverted #### Description The CLI output formatter is displaying incorrect colors and text for file status and violation formatting. Success states are showing as red instead of green, failure states are showing as green instead of red, and various other formatting issues are ...
diff --git a/src/sqlfluff/cli/formatters.py b/src/sqlfluff/cli/formatters.py index 4aa668f..71e4511 100644 --- a/src/sqlfluff/cli/formatters.py +++ b/src/sqlfluff/cli/formatters.py @@ -404,16 +404,16 @@ class OutputStreamFormatter(FormatterInterface): ) -> str: """Format filenames.""" if isinstan...
["test/cli/formatters_test.py::test__cli__formatters__filename_nocol", "test/cli/formatters_test.py::test__cli__formatters__violation"]
["test/cli/formatters_test.py::test__cli__helpers__colorize", "test/cli/formatters_test.py::test__cli__helpers__cli_table"]
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
36
2
1,564
0
0.6
1
0.75
1
0.380667
81.417
4,553
swe_smith::train::18044
swe_smith
train
18,044
pyasn1__pyasn1.0f07d724.lm_rewrite__j7b54dow
swesmith/pyasn1__pyasn1.0f07d724
pyasn1/pyasn1
python
null
# Choice component lookup by tag fails when using innerFlag ## Description I've encountered an issue with the `Choice` type in pyasn1 when using the `innerFlag=True` parameter with `setComponentByType()`. After setting a component with the inner flag, subsequent operations that rely on tag-to-position mapping fail wi...
diff --git a/pyasn1/type/namedtype.py b/pyasn1/type/namedtype.py index 5f6c4ca..e509f30 100644 --- a/pyasn1/type/namedtype.py +++ b/pyasn1/type/namedtype.py @@ -232,20 +232,27 @@ class NamedTypes(object): raise error.PyAsn1Error(self.__errorMsg) def __computeTagToPosMap(self): + """Create a ...
["tests/type/test_univ.py::Choice::testContains", "tests/type/test_univ.py::Choice::testInnerByTypeWithInstanceValue", "tests/type/test_univ.py::Choice::testInnerByTypeWithPythonValue", "tests/type/test_univ.py::Choice::testIter"]
["tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLargeTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLongTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testTagsEquivalence", "tests/codec/ber/test_decoder.py::DecoderCacheTestCase::testCache", "tests/codec/ber/test_d...
jyangballin/swesmith.x86_64.pyasn1_1776_pyasn1.0f07d724
true
null
1
29
4
1,703
0
0.6
1
0.75
1
0.3805
81.4165
4,554
swe_smith::train::45505
swe_smith
train
45,505
dask__dask.5f61e423.pr_8758
swesmith/dask__dask.5f61e423
dask/dask
python
null
# get_engine function fails with "pa_version is not defined" error ### Summary I'm encountering an issue with the `get_engine` function in the parquet module. When using certain engine values, the function fails with a `NameError: name 'pa_version' is not defined` error. ### Reproducer The issue can be reproduced wit...
diff --git a/dask/dataframe/io/parquet/core.py b/dask/dataframe/io/parquet/core.py index 8847db5..fc61795 100644 --- a/dask/dataframe/io/parquet/core.py +++ b/dask/dataframe/io/parquet/core.py @@ -358,15 +358,29 @@ def create_metadata_file( _ENGINES: dict[str, type[Engine]] = {} -def get_engine(engine: Literal["au...
["dask/dataframe/io/tests/test_parquet.py::test_get_engine_invalid", "dask/dataframe/io/tests/test_parquet.py::test_informative_error_messages"]
["dask/dataframe/dask_expr/io/tests/test_parquet.py::test_parquet_len[arrow]", "dask/dataframe/dask_expr/io/tests/test_parquet.py::test_parquet_missing_stats[arrow]", "dask/dataframe/dask_expr/io/tests/test_parquet.py::test_parquet_all_na_column[arrow-nan]", "dask/dataframe/dask_expr/io/tests/test_parquet.py::test_parq...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
1
45
2
1,383
0
0.6
1
0.75
1
0.3805
81.4165
4,555
swe_bench::test::1748
swe_bench
test
1,748
sphinx-doc__sphinx-10819
sphinx-doc/sphinx
sphinx-doc/sphinx
python
276f430b57957771f23355a6a1eb10a55899a677
Use the index directive as a source for search **Is your feature request related to a problem? Please describe.** My problem is the search engine is not good at finding terms that are indexed, for example: - https://docs.python.org/3/search.html?q=for should find https://docs.python.org/3/reference/compound_stmts.html...
A non-python example, searching for `ciphertext` in [pyca/cryptography](https://github.com/pyca/cryptography), the glossary `ciphertext` term is pretty low on the page and hidden among mentions of it within autodoc pages. There's also a bpo issue on that subject: https://bugs.python.org/issue42106 It provides more e...
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py --- a/sphinx/search/__init__.py +++ b/sphinx/search/__init__.py @@ -14,6 +14,7 @@ from sphinx import addnodes, package_dir from sphinx.deprecation import RemovedInSphinx70Warning from sphinx.environment import BuildEnvironment +from sphinx.util impor...
diff --git a/tests/test_search.py b/tests/test_search.py --- a/tests/test_search.py +++ b/tests/test_search.py @@ -178,7 +178,8 @@ def test_IndexBuilder(): 'test': [0, 1, 2, 3]}, 'titles': ('title1_1', 'title1_2', 'title2_1', 'title2_2'), 'titleterms': {'section_titl': [0, 1, 2, 3]}...
["tests/test_search.py::test_IndexBuilder"]
["tests/test_search.py::test_objects_are_escaped", "tests/test_search.py::test_meta_keys_are_handled_for_language_en", "tests/test_search.py::test_meta_keys_are_handled_for_language_de", "tests/test_search.py::test_stemmer_does_not_remove_short_words", "tests/test_search.py::test_stemmer", "tests/test_search.py::test_t...
null
true
2022-09-12T21:47:01Z
1
41
1
1,262
0
0.8
1
0.55
1
0.347
81.416
4,556
swe_smith::train::5113
swe_smith
train
5,113
agronholm__exceptiongroup.0b4f4937.combine_module__qnop2u5m
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
BaseExceptionGroup constructor validation broken after recent changes #### Description The BaseExceptionGroup constructor is not properly validating input arguments and has broken type checking logic. When creating exception groups with invalid arguments or mixed exception types, the validation either fails completel...
diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py index a4a7ace..e39c9f7 100644 --- a/src/exceptiongroup/_exceptions.py +++ b/src/exceptiongroup/_exceptions.py @@ -56,47 +56,26 @@ def _derive_and_copy_attributes(self, excs): class BaseExceptionGroup(BaseException, Generic[_BaseExceptio...
["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_bare_raise_in_handler", "tests/test_catch.py::test_catch_subclass", "tests/test_catch.py::test_bare_reraise_from_n...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
2
52
39
1,242
0
0.6
1
0.75
1
0.380333
81.416
4,557
swe_smith::train::44510
swe_smith
train
44,510
pydata__patsy.a5d16484.lm_rewrite__f8l7odk0
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
### Issue: TypeError in `parse_formula` with Specific Inputs #### Description When using the `parse_formula` function with certain inputs, a `TypeError` is raised. This seems to occur when the formula string is parsed into a tree structure, particularly when handling specific operator configurations or empty formulas....
diff --git a/patsy/parse_formula.py b/patsy/parse_formula.py index 1a324f7..0ba9c5d 100644 --- a/patsy/parse_formula.py +++ b/patsy/parse_formula.py @@ -138,23 +138,41 @@ _default_ops = [ def parse_formula(code, extra_operators=[]): - if not code.strip(): - code = "~ 1" - - for op in extra_operators: ...
["patsy/desc.py::test_ModelDesc_from_formula", "patsy/desc.py::test_eval_formula", "patsy/desc.py::test_eval_formula_error_reporting", "patsy/desc.py::test_formula_factor_origin", "patsy/mgcv_cubic_splines.py::test_crs_with_specific_constraint", "patsy/mgcv_cubic_splines.py::test_te_2smooths", "patsy/mgcv_cubic_splines...
["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
46
28
1,361
0
0.6
1
0.75
1
0.380167
81.4155
4,558
swe_smith::train::2796
swe_smith
train
2,796
pudo__dataset.5c2dc8d3.combine_file__gr8tss67
swesmith/pudo__dataset.5c2dc8d3
pudo/dataset
python
null
# ChunkedInsert and ChunkedUpdate not working correctly ## Description I found some issues with the chunked operations in the dataset library. Both `ChunkedInsert` and `ChunkedUpdate` are not functioning as expected. ### ChunkedInsert Issue When using `ChunkedInsert`, no data is actually being inserted into the tab...
diff --git a/dataset/chunked.py b/dataset/chunked.py index a5ca158..78232dc 100644 --- a/dataset/chunked.py +++ b/dataset/chunked.py @@ -51,10 +51,10 @@ class ChunkedInsert(_Chunker): def flush(self): for item in self.queue: for field in self.fields: - item[field] = item.get(fi...
["test/test_dataset.py::TableTestCase::test_chunked_insert", "test/test_dataset.py::TableTestCase::test_chunked_insert_callback", "test/test_dataset.py::TableTestCase::test_chunked_update"]
["test/test_dataset.py::DatabaseTestCase::test_contains", "test/test_dataset.py::DatabaseTestCase::test_create_table", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id1", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id2", "test/test_dataset.py::DatabaseTestCase::test_create_tabl...
jyangballin/swesmith.x86_64.pudo_1776_dataset.5c2dc8d3
true
null
1
10
3
2,081
0
0.6
1
0.75
1
0.380167
81.4155
4,559
swe_smith::train::45464
swe_smith
train
45,464
dask__dask.5f61e423.pr_10364
swesmith/dask__dask.5f61e423
dask/dask
python
null
TypeError when using DataFrame methods with Dask It seems there's an issue with dispatching DataFrame methods in Dask. When attempting to use certain DataFrame methods, a `TypeError` is raised indicating "No dispatch for <class 'pandas.core.frame.DataFrame'>". This occurs with methods like `value_counts`, `assign`, `f...
diff --git a/dask/dataframe/backends.py b/dask/dataframe/backends.py index b44f2c0..fcc5f52 100644 --- a/dask/dataframe/backends.py +++ b/dask/dataframe/backends.py @@ -216,37 +216,14 @@ def get_pyarrow_schema_pandas(obj, preserve_index=None): @to_pyarrow_table_dispatch.register((pd.DataFrame,)) -def get_pyarrow_t...
["dask/dataframe/tests/test_dataframe.py::test_value_counts", "dask/dataframe/tests/test_dataframe.py::test_value_counts_not_sorted", "dask/dataframe/tests/test_dataframe.py::test_value_counts_with_dropna", "dask/dataframe/tests/test_dataframe.py::test_value_counts_with_normalize", "dask/dataframe/tests/test_dataframe....
["dask/dataframe/tests/test_dataframe.py::test_Dataframe", "dask/dataframe/tests/test_dataframe.py::test_head_tail", "dask/dataframe/tests/test_dataframe.py::test_head_npartitions", "dask/dataframe/tests/test_dataframe.py::test_head_npartitions_warn", "dask/dataframe/tests/test_dataframe.py::test_index_head", "dask/dat...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
1
33
15
1,621
0
0.6
1
0.75
1
0.380167
81.4155
4,560
swe_smith::train::68
swe_smith
train
68
oauthlib__oauthlib.1fd52536.combine_file__dmfco3m9
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
OAuth1 Client encoding and signature handling broken #### Description The OAuth1 Client class is not properly handling string encoding and signature generation. When creating a client with byte strings or using different signature types, the client produces incorrect results or unexpected behavior. #### Steps/Code t...
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py index 85e0b90..68350d2 100644 --- a/oauthlib/oauth1/rfc5849/__init__.py +++ b/oauthlib/oauth1/rfc5849/__init__.py @@ -122,7 +122,7 @@ class Client: """ # Convert to unicode using encoding if given, else assume unico...
["tests/oauth1/rfc5849/test_client.py::ClientRealmTests::test_client_realm_sign_with_additional_realm", "tests/oauth1/rfc5849/test_client.py::ClientRealmTests::test_client_realm_sign_with_default_realm", "tests/oauth1/rfc5849/test_client.py::ClientConstructorTests::test_convert_to_unicode_resource_owner", "tests/oauth1...
["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
22
6
1,840
0
0.6
1
0.75
1
0.38
81.415
4,561
swe_smith::train::36597
swe_smith
train
36,597
lincolnloop__python-qrcode.456b01d4.func_basic__andq5wkp
swesmith/lincolnloop__python-qrcode.456b01d4
lincolnloop/python-qrcode
python
null
# [Bug]: QR Code generation broken - TypeError: unsupported operand ## Bug summary QR code generation is completely broken. Attempting to create any QR code results in a TypeError about unsupported operands. ## Code for reproduction ```python import qrcode # Simple example qr = qrcode.QRCode() qr.add_data("Hello W...
diff --git a/qrcode/util.py b/qrcode/util.py index 02fe11d..76559f4 100644 --- a/qrcode/util.py +++ b/qrcode/util.py @@ -506,46 +506,45 @@ def create_bytes(buffer: BitBuffer, rs_blocks: List[RSBlock]): ecdata: List[List[int]] = [] for rs_block in rs_blocks: - dcCount = rs_block.data_count - ec...
["qrcode/tests/test_example.py::test_example", "qrcode/tests/test_qrcode.py::test_basic", "qrcode/tests/test_qrcode.py::test_large", "qrcode/tests/test_qrcode.py::test_add_qrdata", "qrcode/tests/test_qrcode.py::test_fit", "qrcode/tests/test_qrcode.py::test_mode_number", "qrcode/tests/test_qrcode.py::test_mode_alpha", "...
["qrcode/tests/test_qrcode.py::test_invalid_version", "qrcode/tests/test_qrcode.py::test_invalid_border", "qrcode/tests/test_qrcode.py::test_overflow", "qrcode/tests/test_qrcode.py::test_make_image_with_wrong_pattern", "qrcode/tests/test_qrcode.py::test_mask_pattern_setter", "qrcode/tests/test_qrcode.py::test_qrcode_ba...
jyangballin/swesmith.x86_64.lincolnloop_1776_python-qrcode.456b01d4
true
null
1
47
57
1,340
0
0.6
1
0.75
1
0.38
81.415
4,562
swe_smith::train::38458
swe_smith
train
38,458
amueller__word_cloud.ec24191c.combine_file__do6xqi4d
swesmith/amueller__word_cloud.ec24191c
amueller/word_cloud
python
null
# ImageColorGenerator fails when recoloring with images smaller than the canvas ## Description I've been trying to use the `ImageColorGenerator` to recolor my word cloud based on an image, but I'm running into issues when the image is smaller than the word cloud canvas. When I try to recolor a word cloud with an ima...
diff --git a/wordcloud/color_from_image.py b/wordcloud/color_from_image.py index 4bce014..b12c651 100644 --- a/wordcloud/color_from_image.py +++ b/wordcloud/color_from_image.py @@ -22,37 +22,32 @@ class ImageColorGenerator(object): """ # returns the average color of the image in that region def __init__(...
["test/test_wordcloud.py::test_recolor_too_small", "test/test_wordcloud.py::test_recolor_too_small_set_default", "test/test_wordcloud.py::test_coloring_black_works"]
["test/test_wordcloud.py::test_collocations", "test/test_wordcloud.py::test_collocation_stopwords", "test/test_wordcloud.py::test_collocation_stopwords_uppercase", "test/test_wordcloud.py::test_plurals_numbers", "test/test_wordcloud.py::test_multiple_s", "test/test_wordcloud.py::test_empty_text", "test/test_wordcloud.p...
jyangballin/swesmith.x86_64.amueller_1776_word_cloud.ec24191c
true
null
1
29
3
1,700
0
0.6
1
0.75
1
0.38
81.415
4,563
swe_smith::train::2591
swe_smith
train
2,591
pdfminer__pdfminer.six.1a8bd2f7.lm_rewrite__4zo2q3e1
swesmith/pdfminer__pdfminer.six.1a8bd2f7
pdfminer/pdfminer.six
python
null
PDFTextDevice rendering issues with encrypted PDFs It seems there's a problem with rendering text from encrypted PDF files using PDFTextDevice. When attempting to process PDFs with AES-128 and AES-256 encryption, the text extraction fails unexpectedly. This issue is particularly noticeable when using owner passwords f...
diff --git a/pdfminer/pdfinterp.py b/pdfminer/pdfinterp.py index ae1c46a..095c56e 100644 --- a/pdfminer/pdfinterp.py +++ b/pdfminer/pdfinterp.py @@ -871,18 +871,61 @@ class PDFPageInterpreter: def do_TJ(self, seq: PDFStackT) -> None: """Show text, allowing individual glyph positioning""" - if sel...
["tests/test_converter.py::TestPaintPath::test_paint_path_quadrilaterals", "tests/test_converter.py::TestColorSpace::test_do_rg", "tests/test_font_size.py::test_font_size", "tests/test_highlevel_extracttext.py::TestExtractText::test_issue_495_pdfobjref_iterable", "tests/test_highlevel_extracttext.py::TestExtractText::t...
["tests/test_converter.py::TestPaintPath::test_paint_path", "tests/test_converter.py::TestPaintPath::test_paint_path_mlllh", "tests/test_converter.py::TestPaintPath::test_paint_path_multiple_mlllh", "tests/test_converter.py::TestPaintPath::test_paint_path_beziers", "tests/test_converter.py::TestPaintPath::test_paint_pa...
jyangballin/swesmith.x86_64.pdfminer_1776_pdfminer.six.1a8bd2f7
true
null
1
63
52
1,019
0
0.6
1
0.75
1
0.379833
81.4145
4,564
swe_smith::train::45069
swe_smith
train
45,069
mahmoud__glom.fb3c4e76.lm_rewrite__ktcnvi6x
swesmith/mahmoud__glom.fb3c4e76
mahmoud/glom
python
null
# CoalesceError message formatting issue ## Description I've encountered an issue with the error message formatting in `CoalesceError`. The error message doesn't properly display the skipped values and subspecs in a consistent way. When using `Coalesce` with multiple subspecs and getting a `CoalesceError`, the error...
diff --git a/glom/core.py b/glom/core.py index cee71a3..1975752 100644 --- a/glom/core.py +++ b/glom/core.py @@ -425,22 +425,19 @@ class CoalesceError(GlomError): return f'{cn}({self.coal_obj!r}, {self.skipped!r}, {self.path!r})' def get_message(self): - missed_specs = tuple(self.coal_obj.subspec...
["glom/test/test_error.py::test_coalesce_stack"]
["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
25
1
1,779
0
0.6
1
0.75
1
0.379833
81.4145
4,565
swe_smith::train::34521
swe_smith
train
34,521
iterative__dvc.1d6ea681.pr_9729
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# Bug with absolute path handling in DataResolver When using DVC with absolute paths in the working directory, I'm encountering an error with the path handling in the DataResolver class. ## How to reproduce Create a DVC project with a stage that uses an absolute path for the working directory: ```python import os f...
diff --git a/dvc/parsing/__init__.py b/dvc/parsing/__init__.py index a0a65d5..71a9b99 100644 --- a/dvc/parsing/__init__.py +++ b/dvc/parsing/__init__.py @@ -137,10 +137,9 @@ def make_definition( class DataResolver: def __init__(self, repo: "Repo", wdir: str, d: dict): self.fs = fs = repo.fs - self...
["tests/func/parsing/test_errors.py::test_vars_interpolation_errors[${file}_params.yaml]", "tests/func/parsing/test_errors.py::test_vars_interpolation_errors[vars_1]", "tests/func/parsing/test_errors.py::test_failed_to_interpolate", "tests/func/parsing/test_errors.py::test_local_vars_params_file_not_exist", "tests/func...
["tests/func/parsing/test_resolver.py::test_load_vars_with_relpath"]
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
3
54
102
1,199
0
0.6
1
0.75
1
0.379833
81.4145
4,566
swe_smith::train::32862
swe_smith
train
32,862
pydantic__pydantic.acb0f10f.pr_10633
swesmith/pydantic__pydantic.acb0f10f
pydantic/pydantic
python
null
### Issue: Inconsistent Behavior with TypedDict and BaseModel in `validate_call` #### Description It seems there's an inconsistency when using `validate_call` with functions that involve `TypedDict` and `BaseModel`. The issue arises when attempting to validate function calls that unpack `TypedDict` alongside regular ...
diff --git a/pydantic/_internal/_validate_call.py b/pydantic/_internal/_validate_call.py index d7433fc..c6b478c 100644 --- a/pydantic/_internal/_validate_call.py +++ b/pydantic/_internal/_validate_call.py @@ -64,14 +64,14 @@ class ValidateCallWrapper: else: schema_type = function modu...
["tests/test_config.py::test_config_key_deprecation", "tests/test_config.py::test_invalid_config_keys", "tests/test_docs.py::test_docs_examples[docs/concepts/strict_mode.md:504-522]", "tests/test_docs.py::test_docs_examples[docs/concepts/validation_decorator.md:13-40]", "tests/test_docs.py::test_docs_examples[docs/conc...
["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
8
81
2,119
0
0.6
1
0.75
1
0.379833
81.4145
4,567
swe_smith::train::49543
swe_smith
train
49,543
mozilla__bleach.73871d76.lm_rewrite__f6kpcsh7
swesmith/mozilla__bleach.73871d76
mozilla/bleach
python
null
### LinkifyFilter Initialization Issue I've encountered an issue with the `LinkifyFilter` class in the `bleach` library after a recent change. The problem arises when attempting to use the `linkify` function on HTML content. It seems that the `skip_tags` parameter is not being handled correctly, leading to unexpected ...
diff --git a/bleach/linkifier.py b/bleach/linkifier.py index 8fcefb2..4c0c7e9 100644 --- a/bleach/linkifier.py +++ b/bleach/linkifier.py @@ -206,15 +206,8 @@ class LinkifyFilter(html5lib_shim.Filter): """ - def __init__( - self, - source, - callbacks=DEFAULT_CALLBACKS, - skip_tag...
["tests/test_linkify.py::test_mangle_text", "tests/test_linkify.py::test_only_proto_links", "tests/test_linkify.py::test_link_in_html", "tests/test_linkify.py::test_add_rel_nofollow", "tests/test_linkify.py::test_link_entities_in_a_tag", "tests/test_linkify.py::test_skip_tags", "tests/test_linkify.py::test_elements_ins...
["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
16
12
1,957
0
0.6
1
0.75
1
0.3795
81.4135
4,568
swe_smith::train::28209
swe_smith
train
28,209
Mimino666__langdetect.a1598f1a.combine_module__lc2arajs
swesmith/Mimino666__langdetect.a1598f1a
mimino666/langdetect
python
null
# Language detection broken after recent changes to normalization ## Description I've noticed that language detection is completely broken after some recent changes to the normalization code. The library is unable to correctly identify languages anymore. ### Reproduction Here's a simple script to reproduce the issu...
diff --git a/langdetect/utils/ngram.py b/langdetect/utils/ngram.py index ee82e38..4bac93f 100644 --- a/langdetect/utils/ngram.py +++ b/langdetect/utils/ngram.py @@ -65,35 +65,34 @@ class NGram(object): def normalize(cls, ch): block = unicode_block(ch) if block == UNICODE_BASIC_LATIN: - ...
["langdetect/tests/test_detector.py::DetectorTest::test_detector1", "langdetect/tests/test_detector.py::DetectorTest::test_detector2", "langdetect/tests/test_detector.py::DetectorTest::test_detector3", "langdetect/tests/test_detector.py::DetectorTest::test_detector4", "langdetect/tests/utils/test_ngram.py::NGramTest::t...
["langdetect/tests/test_detector.py::DetectorTest::test_factory_from_json_string", "langdetect/tests/test_detector.py::DetectorTest::test_lang_list", "langdetect/tests/test_language.py::LanguageTest::test_cmp", "langdetect/tests/test_language.py::LanguageTest::test_language", "langdetect/tests/utils/test_lang_profile.p...
jyangballin/swesmith.x86_64.mimino666_1776_langdetect.a1598f1a
true
null
2
39
11
1,497
0
0.6
1
0.75
1
0.3795
81.4135
4,569
swe_smith::train::1698
swe_smith
train
1,698
agronholm__typeguard.b6a7e438.combine_module__60cap35g
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
# Import hook not working correctly with typeguard ## Description I've discovered several issues with the import hook functionality in typeguard. When trying to use the `install_import_hook()` function, it's not properly instrumenting my code for type checking. ## How to Reproduce I created a simple project with ty...
diff --git a/src/typeguard/_importhook.py b/src/typeguard/_importhook.py index 0d1c627..6cd773c 100644 --- a/src/typeguard/_importhook.py +++ b/src/typeguard/_importhook.py @@ -44,7 +44,9 @@ T = TypeVar("T") def _call_with_frames_removed( f: Callable[P, T], *args: P.args, **kwargs: P.kwargs ) -> T: - return f...
["tests/test_checkers.py::TestTypedDict::test_notrequired_pass[typing_extensions]", "tests/test_checkers.py::TestTypedDict::test_notrequired_fail[typing_extensions]", "tests/test_importhook.py::test_debug_instrumentation", "tests/test_warn_on_error.py::test_check_type", "tests/test_warn_on_error.py::test_typechecked"]
["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
26
5
1,756
0
0.6
1
0.75
1
0.379333
81.413
4,570
swe_smith::train::24504
swe_smith
train
24,504
sunpy__sunpy.f8edfd5c.combine_module__gzc3xi87
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
# Broken coordinate system handling in GenericMap I've found an issue with the coordinate system handling in the GenericMap class. The `coordinate_system` property is now returning a list instead of a tuple, which is breaking code that expects a tuple with `axis1` and `axis2` attributes. ## To Reproduce When using a...
diff --git a/sunpy/map/mapbase.py b/sunpy/map/mapbase.py index bdcac77..a7cbcb3 100644 --- a/sunpy/map/mapbase.py +++ b/sunpy/map/mapbase.py @@ -1266,29 +1266,13 @@ class GenericMap(NDData): If not present, defaults to (HPLN-TAN, HPLT-TAN), and emits a warning. """ ctype1 = self.meta.get('cty...
["sunpy/map/tests/test_mapbase.py::test_wcs", "sunpy/map/tests/test_mapbase.py::test_coordinate_system", "sunpy/map/tests/test_mapbase.py::test_default_coordinate_system", "sunpy/map/tests/test_mapbase.py::test_coordinate_system_solar_x_solar_y", "sunpy/map/tests/test_mapsequence.py::test_as_array_all_masks", "sunpy/ma...
["sunpy/map/tests/test_mapbase.py::test_notes_combined", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_references", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_existing_notes", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_notes_no_references", "sunpy/map/tests/test_mapbase.py::test_f...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
2
39
6
1,496
0
0.6
1
0.75
1
0.379333
81.413
4,571
swe_smith::train::8473
swe_smith
train
8,473
pyupio__safety.7654596b.combine_module__5d22wxdn
swesmith/pyupio__safety.7654596b
pyupio/safety
python
null
# Authentication and Organization Configuration Issues ## Description I've encountered several issues with the authentication and organization configuration in the latest version. The problems appear to be related to how organization data is handled and authentication URLs are constructed. ## Steps to Reproduce 1. ...
diff --git a/safety/auth/main.py b/safety/auth/main.py index fdb9c22..5c0f855 100644 --- a/safety/auth/main.py +++ b/safety/auth/main.py @@ -58,7 +58,7 @@ def get_redirect_url() -> str: Returns: str: The redirect URL. """ - return CLI_CALLBACK + return CLI_CALLBACK + '/' def get_organization...
["tests/test_cli.py::TestSafetyCLI::test_announcements_if_is_not_tty", "tests/test_cli.py::TestSafetyCLI::test_basic_html_output_pass", "tests/test_cli.py::TestSafetyCLI::test_check_continue_on_error", "tests/test_cli.py::TestSafetyCLI::test_check_ignore_format_backward_compatible", "tests/test_cli.py::TestSafetyCLI::t...
["tests/test_cli.py::TestSafetyCLI::test_command_line_interface", "tests/test_cli.py::TestSafetyCLI::test_debug_flag_with_value_1", "tests/test_cli.py::TestSafetyCLI::test_debug_flag_with_value_true", "tests/test_cli.py::TestNetworkTelemetry::test_get_network_telemetry", "tests/test_cli.py::TestNetworkTelemetry::test_g...
jyangballin/swesmith.x86_64.pyupio_1776_safety.7654596b
true
null
2
28
28
1,715
0
0.6
1
0.75
1
0.379167
81.4125
4,572
swe_smith::train::33293
swe_smith
train
33,293
django-money__django-money.835c1ab8.lm_rewrite__wmaecwee
swesmith/django-money__django-money.835c1ab8
django-money/django-money
python
null
# ValueError when using model methods with empty arguments in django-money ## Description I've encountered an issue with the `understands_money` decorator in django-money. When a model method is called with no arguments, it raises a `ValueError` with the message "No arguments provided to function". This happens in t...
diff --git a/djmoney/models/managers.py b/djmoney/models/managers.py index d76f0c5..8960c9f 100644 --- a/djmoney/models/managers.py +++ b/djmoney/models/managers.py @@ -174,17 +174,24 @@ def _get_model(args, func): Returns the model class for given function. Note, that ``self`` is not available for proxy mode...
["tests/test_form.py::test_save", "tests/test_models.py::TestVanillaMoneyField::test_create_defaults[ModelWithVanillaMoneyField-kwargs0-expected0]", "tests/test_models.py::TestVanillaMoneyField::test_create_defaults[ModelWithVanillaMoneyField-kwargs1-expected1]", "tests/test_models.py::TestVanillaMoneyField::test_creat...
["tests/contrib/exchange/test_admin.py::test_last_update", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup0]", "tests/contrib/exchange/test_backends.py::TestBackends::test_get_rates[setup1]", "tests/contrib/exchange/test_backends.py::TestBackends::test_initial_update_rates[setup0]", "tests/...
jyangballin/swesmith.x86_64.django-money_1776_django-money.835c1ab8
true
null
1
29
152
1,695
0
0.6
1
0.75
1
0.379167
81.4125
4,573
swe_smith::train::34165
swe_smith
train
34,165
iterative__dvc.1d6ea681.combine_module__vwauxlpf
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
Stage checkout returns undefined variable after partial import check #### Description When calling `stage.checkout()` on a stage, the method returns an undefined variable `stats` if the stage is not a partial import. The variable `stats` is referenced before it's declared, causing a `NameError`. #### Steps/Code to R...
diff --git a/dvc/stage/__init__.py b/dvc/stage/__init__.py index 92835fe..913e31f 100644 --- a/dvc/stage/__init__.py +++ b/dvc/stage/__init__.py @@ -658,16 +658,15 @@ class Stage(params.StageParams): def checkout( self, allow_missing: bool = False, **kwargs ) -> dict[str, list["StrPath"]]: - s...
["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_stage_strings_representation", "tests/func/test_stage.py::test_stage_remove_pipeline_stage", "tests/unit/stage/test_cache.py::test_stage_cache", "tests/...
["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
3
62
36
1,035
0
0.6
1
0.75
1
0.379167
81.4125
4,574
swe_smith::train::48647
swe_smith
train
48,647
facebookresearch__hydra.0f03eb60.combine_file__3gcmgxlm
swesmith/facebookresearch__hydra.0f03eb60
facebookresearch/hydra
python
null
Instantiate function fails with NameError when processing lists #### Description When using the instantiate function with list configurations, it fails with a `NameError: name 'copy' is not defined` error. This appears to be related to missing import statements in the instantiate module. #### Steps/Code to Reproduce...
diff --git a/hydra/_internal/instantiate/_instantiate2.py b/hydra/_internal/instantiate/_instantiate2.py index fe7da9f..c75d128 100644 --- a/hydra/_internal/instantiate/_instantiate2.py +++ b/hydra/_internal/instantiate/_instantiate2.py @@ -84,19 +84,14 @@ def _call_target( f"Error in creating partial(...
["tests/instantiate/test_instantiate.py::test_class_instantiate[instantiate2-dict-list_of_partial_class-not_recursive]", "tests/instantiate/test_instantiate.py::test_class_instantiate[instantiate2-dict-list_of_partial_class-recursive]", "tests/instantiate/test_instantiate.py::test_class_instantiate[instantiate2-dict-li...
["tests/instantiate/test_helpers.py::test_locate[int]", "tests/instantiate/test_helpers.py::test_locate[builtins_explicit]", "tests/instantiate/test_helpers.py::test_locate[method_of_builtin]", "tests/instantiate/test_helpers.py::test_locate[builtin_attribute_error]", "tests/instantiate/test_helpers.py::test_locate[top...
jyangballin/swesmith.x86_64.facebookresearch_1776_hydra.0f03eb60
true
null
1
55
32
1,174
0
0.6
1
0.75
1
0.379
81.412
4,575
r2e_gym::train::4798
r2e_gym
train
4,798
numpy__849b81804fb7a11dc80821dbd166562225c8450f
numpy
numpy/numpy
python
849b81804fb7a11dc80821dbd166562225c8450f
**Analysis** - **Key Parts of Commit Details and Test Results:** - **Commit Message:** "ENH: usecols now accepts an int when only one column has to be read." - **Test Results:** In the old commit, passing an integer to `usecols` in `np.loadtxt` results in a `TypeError`: `'int' object is not iterable`. In the new c...
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst --- a/doc/release/1.12.0-notes.rst +++ b/doc/release/1.12.0-notes.rst @@ -61,6 +61,11 @@ Improvements ============ +*np.loadtxt* now supports a single integer as ``usecol`` argument +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -608,6 +608,29 @@ x = np.loadtxt(c, dtype=float, usecols=np.array([1, 2])) assert_array_equal(x, a[:, 1:]) + # Testing with an integer instead of a sequenc...
null
null
namanjain12/numpy_final:849b81804fb7a11dc80821dbd166562225c8450f
true
null
2
40
null
2,186
0
0.75
1
0.6375
1
0.497667
81.41175
4,576
swe_smith::train::10171
swe_smith
train
10,171
paramiko__paramiko.23f92003.combine_file__qel4c7ax
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
ECDH NIST P-256 key exchange fails with AttributeError #### Description When attempting to use ECDH NIST P-256 key exchange, the connection fails with an AttributeError. This affects both client and server modes. #### Steps/Code to Reproduce ```python import paramiko from paramiko.kex_ecdh_nist import KexNistp256 ...
diff --git a/paramiko/kex_ecdh_nist.py b/paramiko/kex_ecdh_nist.py index 41fab46..4bb1276 100644 --- a/paramiko/kex_ecdh_nist.py +++ b/paramiko/kex_ecdh_nist.py @@ -23,28 +23,28 @@ class KexNistp256: curve = ec.SECP256R1() def __init__(self, transport): - self.transport = transport + self.tran...
["tests/test_kex.py::KexTest::test_kex_nistp256_client", "tests/test_kex.py::KexTest::test_kex_nistp256_server"]
["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
58
2
1,112
0
0.6
1
0.75
1
0.378667
81.411
4,577
swe_smith::train::46020
swe_smith
train
46,020
conan-io__conan.86f29e13.pr_12536
swesmith/conan-io__conan.86f29e13
conan-io/conan
python
null
### Issue: Inconsistent Binary Compatibility with `cppstd` Settings #### Description It seems that the recent changes have introduced an issue with how binary compatibility is handled when using different `cppstd` settings. Specifically, the expected behavior of `cppstd_compat` being non-transitive is not being respec...
diff --git a/conans/client/graph/graph.py b/conans/client/graph/graph.py index b5037c2..3ae8e56 100644 --- a/conans/client/graph/graph.py +++ b/conans/client/graph/graph.py @@ -64,7 +64,6 @@ class Node(object): self.dependencies = [] # Ordered Edges self.dependants = [] # Edges self.error =...
["test/integration/package_id/test_validate.py::TestValidate::test_validate_compatible", "test/integration/package_id/test_validate.py::TestValidate::test_validate_compatible_also_invalid", "test/integration/package_id/test_validate.py::TestValidate::test_validate_compatible_also_invalid_fail", "test/integration/packag...
["test/integration/package_id/test_validate.py::TestValidate::test_validate_build_export_pkg", "test/integration/package_id/test_validate.py::TestValidate::test_validate_create", "test/integration/package_id/test_validate.py::TestValidate::test_validate_export_pkg", "test/integration/package_id/test_validate.py::TestVa...
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
true
null
2
11
16
2,052
0
0.6
1
0.75
1
0.378667
81.411
4,578
swe_smith::train::24966
swe_smith
train
24,966
pylint-dev__astroid.b114f6b5.combine_file__28uqmi3h
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Exception attributes swapped in AstroidBuildingError and related classes #### Description When creating AstroidBuildingError and related exception instances, the attributes are being assigned incorrectly. The constructor parameters are being mixed up, causing attributes like `modname`, `source`, `error`, and `path` t...
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index 126acb9..3bee920 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -86,13 +86,13 @@ class AstroidBuildingError(AstroidError): class_repr: str | None = None, **kws: Any, ) -> None: - self.modname = modname - ...
["tests/test_builder.py::BuilderTest::test_data_build_error_filename", "tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_mro_error", "tests/test_manager.py::AstroidManagerTest::test_denied_modules_raise", "tests/test_objects.py::SuperTests::test_super_invalid_mro", "tests/test_scoped_nodes.py::ModuleNodeTe...
["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
24
11
1,790
0
0.6
1
0.75
1
0.378333
81.41
4,579
swe_bench::test::1872
swe_bench
test
1,872
sphinx-doc__sphinx-9234
sphinx-doc/sphinx
sphinx-doc/sphinx
python
f0fef96906d80d89e290a780767a92ba85977733
Link checker should be able to prohibit unknown redirects **Is your feature request related to a problem? Please describe.** A lot of links become stale or move. Good websites will provide redirects to the correct new location or return an HTTP error code. Bad websites will redirect to an unrelated page or the root of ...
If one can tell in advance where they are redirected, might as well use the direct link in the docs and skip the redirect. Perhaps a step forward would be a new setting to treat redirects as errors? I provided a reason why I want to be able to link to a redirect, unless you think the base URL of sphinx itself should n...
diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -272,8 +272,12 @@ def process_result(self, result: CheckResult) -> None: except KeyError: text, color = ('with unknown code', purple) ...
diff --git a/tests/roots/test-linkcheck-localserver-warn-redirects/conf.py b/tests/roots/test-linkcheck-localserver-warn-redirects/conf.py new file mode 100644 --- /dev/null +++ b/tests/roots/test-linkcheck-localserver-warn-redirects/conf.py @@ -0,0 +1 @@ +exclude_patterns = ['_build'] diff --git a/tests/roots/test-lin...
["tests/test_build_linkcheck.py::test_linkcheck_allowed_redirects"]
["tests/test_build_linkcheck.py::test_defaults_json", "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_auth_header_no_match", "tests/test_build_linkcheck.py::test_linkcheck_request_headers", "tests/t...
null
true
2021-05-15T17:28:42Z
1
38
1
1,310
0
0.8
1
0.55
1
0.345
81.41
4,580
swe_smith::train::36718
swe_smith
train
36,718
lincolnloop__python-qrcode.456b01d4.lm_rewrite__9gsgyca9
swesmith/lincolnloop__python-qrcode.456b01d4
lincolnloop/python-qrcode
python
null
QR Code Rendering Fails with Custom Drawers and Masks Description After the recent changes, it seems that rendering QR codes with custom module drawers and color masks is causing issues. Specifically, when attempting to create styled QR codes using various module drawers or color masks, the process fails with an Attr...
diff --git a/qrcode/image/base.py b/qrcode/image/base.py index 4e8468b..b38d76c 100644 --- a/qrcode/image/base.py +++ b/qrcode/image/base.py @@ -122,22 +122,30 @@ class BaseImageWithDrawer(BaseImage): module_drawer: "QRModuleDrawer" eye_drawer: "QRModuleDrawer" - def __init__( - self, - *ar...
["qrcode/tests/test_qrcode_pil.py::test_render_styled_Image", "qrcode/tests/test_qrcode_pil.py::test_render_styled_with_embeded_image", "qrcode/tests/test_qrcode_pil.py::test_render_styled_with_embeded_image_path", "qrcode/tests/test_qrcode_pil.py::test_render_styled_with_drawer[CircleModuleDrawer]", "qrcode/tests/test...
["qrcode/tests/test_example.py::test_example", "qrcode/tests/test_qrcode.py::test_basic", "qrcode/tests/test_qrcode.py::test_large", "qrcode/tests/test_qrcode.py::test_invalid_version", "qrcode/tests/test_qrcode.py::test_invalid_border", "qrcode/tests/test_qrcode.py::test_overflow", "qrcode/tests/test_qrcode.py::test_a...
jyangballin/swesmith.x86_64.lincolnloop_1776_python-qrcode.456b01d4
true
null
1
38
25
1,509
0
0.6
1
0.75
1
0.378167
81.4095
4,581
swe_smith::train::46682
swe_smith
train
46,682
python-trio__trio.cfbbe2c1.combine_file__vyw6d2qd
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
ParkingLot.statistics() method missing after refactoring #### Description The `ParkingLot.statistics()` method appears to have been accidentally removed, causing `AttributeError` when trying to access parking lot statistics. #### Steps/Code to Reproduce ```python import trio from trio._core._parking_lot import Park...
diff --git a/src/trio/_core/_parking_lot.py b/src/trio/_core/_parking_lot.py index af6ff61..2c7f075 100644 --- a/src/trio/_core/_parking_lot.py +++ b/src/trio/_core/_parking_lot.py @@ -109,15 +109,12 @@ def add_parking_lot_breaker(task: Task, lot: ParkingLot) -> None: def remove_parking_lot_breaker(task: Task, lot: ...
["src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_basic", "src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_repark", "src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_breaker_registration", "src/trio/_core/_tests/test_unbounded_queue.py::test_UnboundedQueue_basic", "src/trio/_core/_tes...
["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
65
6
969
0
0.6
1
0.75
1
0.378167
81.4095
4,582
swe_smith::train::28344
swe_smith
train
28,344
encode__starlette.db5063c2.combine_file__lnlw6j51
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
AuthenticationMiddleware not working properly after initialization #### Description The AuthenticationMiddleware seems to have issues with proper initialization. When trying to use authentication with basic auth credentials, the middleware is not behaving as expected. #### Steps/Code to Reproduce ```python from sta...
diff --git a/starlette/middleware/authentication.py b/starlette/middleware/authentication.py index 8555ee0..70225ff 100644 --- a/starlette/middleware/authentication.py +++ b/starlette/middleware/authentication.py @@ -20,10 +20,10 @@ class AuthenticationMiddleware: backend: AuthenticationBackend, on_er...
["tests/test_authentication.py::test_user_interface[asyncio]", "tests/test_authentication.py::test_authentication_required[asyncio]", "tests/test_authentication.py::test_websocket_authentication_required[asyncio]", "tests/test_authentication.py::test_authentication_redirect[asyncio]", "tests/test_authentication.py::tes...
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/tes...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
1
8
10
2,108
0
0.6
1
0.75
1
0.378
81.409
4,583
swe_smith::train::30530
swe_smith
train
30,530
gweis__isodate.17cb25eb.combine_module__ie4wt8ph
swesmith/gweis__isodate.17cb25eb
gweis/isodate
python
null
Duration negation not working correctly When negating a Duration object, the years component is not being negated properly. This causes incorrect behavior when performing arithmetic operations with negative durations. #### Steps/Code to Reproduce ```python from isodate import Duration # Create a duration with years...
diff --git a/src/isodate/duration.py b/src/isodate/duration.py index 85241e4..1c7570c 100644 --- a/src/isodate/duration.py +++ b/src/isodate/duration.py @@ -125,8 +125,8 @@ class Duration: Returns a new Duration instance with all it's negated. """ - negduration = Duration(years=-self.years, m...
["tests/test_datetime.py::test_parse[19850412T1015-expected0-%Y%m%dT%H%M-19850412T1015]", "tests/test_datetime.py::test_parse[1985-04-12T10:15-expected1-%Y-%m-%dT%H:%M-1985-04-12T10:15]", "tests/test_datetime.py::test_parse[1985102T1015Z-expected2-%Y%jT%H%M%z-1985102T1015Z]", "tests/test_datetime.py::test_parse[1985-10...
["tests/test_date.py::test_parse[4-19-expected0-%C]", "tests/test_date.py::test_parse[4-1985-expected1-%Y]", "tests/test_date.py::test_parse[4-1985-04-expected2-%Y-%m]", "tests/test_date.py::test_parse[4-198504-expected3-%Y%m]", "tests/test_date.py::test_parse[4-1985-04-12-expected4-%Y-%m-%d]", "tests/test_date.py::tes...
jyangballin/swesmith.x86_64.gweis_1776_isodate.17cb25eb
true
null
2
69
47
887
0
0.6
1
0.75
1
0.377833
81.4085
4,584
swe_smith::train::5102
swe_smith
train
5,102
agronholm__exceptiongroup.0b4f4937.combine_module__kgxoavlo
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
# ExceptionGroup.split() method returns incorrect results ### Description I've discovered a bug in the `split()` method of `BaseExceptionGroup`. When trying to split an exception group based on a condition, the method is returning incorrect results - it seems to be mixing up the matching and non-matching exceptions. ...
diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py index a4a7ace..bf114d9 100644 --- a/src/exceptiongroup/_exceptions.py +++ b/src/exceptiongroup/_exceptions.py @@ -212,8 +212,8 @@ class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]): ] ): condition...
["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_full_match", "tests/test_catch.py::test_catch_handler_raises", "tests/test_catch.py::test_bare_raise_in_hand...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
2
24
39
1,787
0
0.6
1
0.75
1
0.377833
81.4085
4,585
swe_smith::train::8272
swe_smith
train
8,272
cantools__cantools.0c6a7871.lm_rewrite__gqgbjex3
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
SecOC Authenticator Function Missing Argument It seems there's an issue with the `compute_authenticator` function in the SecOC module. When trying to use the `SnakeOilAuthenticator` with a message that has SecOC properties, the function call fails due to a missing argument. Specifically, the `freshness_value` is not b...
diff --git a/src/cantools/autosar/secoc.py b/src/cantools/autosar/secoc.py index 038ac7d..f137f2a 100644 --- a/src/cantools/autosar/secoc.py +++ b/src/cantools/autosar/secoc.py @@ -17,33 +17,29 @@ class SecOCError(Error): """ -def compute_authenticator(raw_payload: bytes, - dbmsg: Mess...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc"]
["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_command_line.py::CanToolsCommandLineTest::test_convert", "tests/test_command_line.py::CanTools...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
1
42
1
1,426
0
0.6
1
0.75
1
0.377667
81.408
4,586
r2e_gym::train::213
r2e_gym
train
213
orange3__b894ea5c567efb45ea942e609f6c172fc5049d1a
orange3
biolab/orange3
python
b894ea5c567efb45ea942e609f6c172fc5049d1a
**Analysis:** - **Key Parts of Commit Details and Test Results:** - The commit introduces enhanced data information display in the status bar by modifying the `set_input_summary` and `set_output_summary` methods to accept two arguments: the length of the dataset and formatted summary details. - In the test results...
diff --git a/Orange/widgets/data/owdatasampler.py b/Orange/widgets/data/owdatasampler.py --- a/Orange/widgets/data/owdatasampler.py +++ b/Orange/widgets/data/owdatasampler.py @@ -11,6 +11,7 @@ from Orange.data import Table from Orange.data.sql.table import SqlTable from Orange.widgets.utils.widgetpreview import Widg...
diff --git a/Orange/widgets/data/tests/test_owdatasampler.py b/Orange/widgets/data/tests/test_owdatasampler.py --- a/Orange/widgets/data/tests/test_owdatasampler.py +++ b/Orange/widgets/data/tests/test_owdatasampler.py @@ -5,6 +5,7 @@ from Orange.data import Table from Orange.widgets.data.owdatasampler import OWDataS...
null
null
namanjain12/orange3_final:b894ea5c567efb45ea942e609f6c172fc5049d1a
true
null
1
11
null
2,757
0
0.75
1
0.6375
1
0.496167
81.40725
4,587
swe_smith::train::36524
swe_smith
train
36,524
lincolnloop__python-qrcode.456b01d4.combine_module__eqwd80hw
swesmith/lincolnloop__python-qrcode.456b01d4
lincolnloop/python-qrcode
python
null
# QR code rendering issues with CircleModuleDrawer and GappedSquareModuleDrawer ## Description I found a bug in the latest version of the qrcode library. When trying to generate QR codes with certain module drawers, specifically the CircleModuleDrawer and GappedSquareModuleDrawer, the code fails to render properly. ...
diff --git a/qrcode/image/styles/moduledrawers/pil.py b/qrcode/image/styles/moduledrawers/pil.py index 89eeffa..cb3fe22 100644 --- a/qrcode/image/styles/moduledrawers/pil.py +++ b/qrcode/image/styles/moduledrawers/pil.py @@ -52,7 +52,7 @@ class GappedSquareModuleDrawer(StyledPilQRModuleDrawer): def initialize(self...
["qrcode/tests/test_qrcode_pil.py::test_render_styled_with_drawer[CircleModuleDrawer]", "qrcode/tests/test_qrcode_pil.py::test_render_styled_with_drawer[GappedSquareModuleDrawer]", "qrcode/tests/test_qrcode_svg.py::test_svg_circle_drawer"]
["qrcode/tests/test_example.py::test_example", "qrcode/tests/test_qrcode.py::test_basic", "qrcode/tests/test_qrcode.py::test_large", "qrcode/tests/test_qrcode.py::test_invalid_version", "qrcode/tests/test_qrcode.py::test_invalid_border", "qrcode/tests/test_qrcode.py::test_overflow", "qrcode/tests/test_qrcode.py::test_a...
jyangballin/swesmith.x86_64.lincolnloop_1776_python-qrcode.456b01d4
true
null
2
12
3
2,024
0
0.6
1
0.75
1
0.377333
81.407
4,588
swe_smith::train::34425
swe_smith
train
34,425
iterative__dvc.1d6ea681.pr_8118
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# AttributeError in rwlock when accessing fs.path.join When using DVC, I'm encountering an AttributeError related to the filesystem path handling in the rwlock module. ## The problem is ```python AttributeError: 'LocalFileSystem' object has no attribute 'path' ``` This happens when trying to perform operations that ...
diff --git a/dvc/rwlock.py b/dvc/rwlock.py index 8d06df1..10de843 100644 --- a/dvc/rwlock.py +++ b/dvc/rwlock.py @@ -10,7 +10,6 @@ from dvc.log import logger from .exceptions import DvcException from .fs import localfs -from .lock import make_lock from .utils import relpath logger = logger.getChild(__name__) @@...
["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
2
58
52
1,103
0
0.6
1
0.75
1
0.377167
81.4065
4,589
swe_smith::train::5108
swe_smith
train
5,108
agronholm__exceptiongroup.0b4f4937.combine_module__n2js3rxc
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
ExceptionGroup split and subgroup operations return None instead of derived groups #### Description When using ExceptionGroup's `split()` and `subgroup()` methods, the operations are returning `None` instead of the expected derived ExceptionGroup instances. This breaks exception handling workflows that depend on thes...
diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py index a4a7ace..21e9e75 100644 --- a/src/exceptiongroup/_exceptions.py +++ b/src/exceptiongroup/_exceptions.py @@ -44,13 +44,12 @@ def get_condition_filter( def _derive_and_copy_attributes(self, excs): eg = self.derive(excs) - ...
["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
2
39
25
1,483
0
0.6
1
0.75
1
0.377167
81.4065
4,590
swe_smith::train::829
swe_smith
train
829
oauthlib__oauthlib.1fd52536.func_pm_remove_cond__nk36sf3s
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
Authorization code grant validation bypassed completely #### Description The authorization code grant token validation is not working properly. When making token requests with the authorization code grant type, essential validations are being skipped, allowing invalid requests to pass through. #### Steps/Code to Rep...
diff --git a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py index 09dc619..39f3212 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py +++ b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py @@ -436,31 +436,17 @@ class Aut...
["tests/oauth2/rfc6749/endpoints/test_client_authentication.py::ClientAuthenticationTest::test_basicauth_web", "tests/oauth2/rfc6749/endpoints/test_client_authentication.py::ClientAuthenticationTest::test_client_id_authentication", "tests/oauth2/rfc6749/endpoints/test_credentials_preservation.py::PreservationTest::test...
["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
1
49
144
1,283
0
0.6
1
0.75
1
0.377167
81.4065
4,591
r2e_gym::train::6112
r2e_gym
train
6,112
pillow__4ab837ae23103b841d2e5fa7ac91a8ff92279627
pillow
python-pillow/pillow
python
4ab837ae23103b841d2e5fa7ac91a8ff92279627
**Analysis:** - **Key Parts:** - **Commit Message:** "Only compare to previous when checking for duplicate frames while saving." - **Test Failure:** The test `test_dispose2_background_frame` expected 3 frames but only 2 were saved in the old commit. - **Main Problem:** When saving GIFs with duplicate frames, the ...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -565,6 +565,16 @@ fp.write(b"\0") # end of image data +def _getbbox(base_im, im_frame): + if _get_palette_bytes(im_frame) == _get_palette_bytes(base_im): + delta = Im...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -677,6 +677,24 @@ assert im.getpixel((0, 0)) == (255, 0, 0) +def test_dispose2_background_frame(tmp_path): + out = str(tmp_path / "temp.gif") + + im_list = [Image.new("RGBA", (1, ...
null
null
namanjain12/pillow_final:4ab837ae23103b841d2e5fa7ac91a8ff92279627
true
null
1
32
null
2,335
0
0.75
1
0.6375
1
0.495833
81.40625
4,592
swe_smith::train::50952
swe_smith
train
50,952
python-hyper__h11.bed0dd4a.lm_rewrite__rtb2uk8p
swesmith/python-hyper__h11.bed0dd4a
python-hyper/h11
python
null
# Connection state not properly validated when starting a new cycle I've found an issue with the `start_next_cycle()` method in the `ConnectionState` class. The method is supposed to reset the connection state to start a new request/response cycle, but it doesn't properly validate the current state before doing so. #...
diff --git a/h11/_state.py b/h11/_state.py index 3ad444b..736c29f 100644 --- a/h11/_state.py +++ b/h11/_state.py @@ -353,13 +353,18 @@ class ConnectionState: # Fixed point reached return - def start_next_cycle(self) -> None: - if self.states != {CLIENT: DONE, SERVER: DONE}:...
["h11/tests/test_state.py::test_ConnectionState_reuse"]
["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
25
1
1,760
0
0.6
1
0.75
1
0.376667
81.405
4,593
swe_smith::train::27095
swe_smith
train
27,095
tkrajina__gpxpy.09fc46b3.func_pm_class_rm_funcs__ew9n8e7z
swesmith/tkrajina__gpxpy.09fc46b3
tkrajina/gpxpy
python
null
GPXParser missing parse method after initialization When creating a GPXParser instance and trying to call the parse() method, I get an AttributeError saying the method doesn't exist. #### Steps/Code to Reproduce ```python import gpxpy # Try to parse a simple GPX string gpx_string = '''<?xml version="1.0" encoding="...
diff --git a/gpxpy/parser.py b/gpxpy/parser.py index ea3b31a..f4da9ff 100644 --- a/gpxpy/parser.py +++ b/gpxpy/parser.py @@ -82,74 +82,4 @@ class GPXParser: text = xml_or_file.read() if hasattr(xml_or_file, 'read') else xml_or_file # type: ignore if isinstance(text, bytes): text = text.de...
["test.py::GPXTests::test_10_to_11_conversion", "test.py::GPXTests::test_add_missing_elevations_without_ele", "test.py::GPXTests::test_add_missing_times_2", "test.py::GPXTests::test_clone_and_smooth", "test.py::GPXTests::test_course_between", "test.py::GPXTests::test_creator_field", "test.py::GPXTests::test_dilutions",...
["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_add_missing_elevations", "test.py::GPXTests::tes...
jyangballin/swesmith.x86_64.tkrajina_1776_gpxpy.09fc46b3
true
null
1
72
91
819
0
0.6
1
0.75
1
0.3765
81.4045
4,594
swe_smith::train::31429
swe_smith
train
31,429
benoitc__gunicorn.bacbf8aa.combine_module__ernek77y
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
Configuration loading broken after recent changes #### Description After some recent changes, gunicorn configuration loading appears to be completely broken. When trying to start gunicorn with any configuration, it fails with AttributeError exceptions related to NoneType objects. #### Steps/Code to Reproduce ```pyt...
diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index 9bf7a4f..696744b 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -31,12 +31,10 @@ class BaseApplication: Loads the configuration """ try: - self.load_default_config() self.load_config() - ...
["tests/test_arbiter.py::test_env_vars_available_during_preload", "tests/test_config.py::test_cmd_line", "tests/test_config.py::test_cmd_line_invalid_setting", "tests/test_config.py::test_app_config", "tests/test_config.py::test_load_config", "tests/test_config.py::test_load_config_explicit_file", "tests/test_config.py...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
2
66
30
939
0
0.6
1
0.75
1
0.3765
81.4045
4,595
swe_smith::train::3833
swe_smith
train
3,833
pygments__pygments.27649ebb.func_basic__b030sznv
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
# MIME Lexer incorrectly processes email/MIME files ## Bug description I've discovered an issue with the MIME lexer when processing email/MIME files. The lexer is incorrectly handling the boundaries between MIME parts and the positioning of content within the email body. When trying to highlight MIME content, the le...
diff --git a/pygments/lexers/mime.py b/pygments/lexers/mime.py index 4b309dd..0ebc2e4 100644 --- a/pygments/lexers/mime.py +++ b/pygments/lexers/mime.py @@ -82,23 +82,19 @@ class MIMELexer(RegexLexer): pos_body_start = match.start() entire_body = match.group() - # skip first newline - ...
["tests/examplefiles/mime/MIME_example.eml::", "tests/examplefiles/email/example.eml::"]
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
16
2
1,938
0
0.6
1
0.75
1
0.376333
81.404
4,596
swe_smith::train::22232
swe_smith
train
22,232
tweepy__tweepy.91a41c6e.combine_file__5je4e2kp
swesmith/tweepy__tweepy.91a41c6e
tweepy/tweepy
python
null
# Multiple issues with Twitter API client methods ## Describe the bug I've found several issues with the Twitter API client methods that are causing unexpected behavior: 1. When trying to get user mentions, the method is using POST instead of GET and is missing the "user.fields" parameter: ```python from tweepy impo...
diff --git a/tweepy/client.py b/tweepy/client.py index d463129..1082c0a 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1371,12 +1371,12 @@ class Client(BaseClient): .. _here: https://developer.twitter.com/en/docs/twitter-ids """ return self._make_request( - "GET", f"/2/us...
["tests/test_client.py::TweepyClientTests::test_follow_and_unfollow_user", "tests/test_client.py::TweepyClientTests::test_get_users", "tests/test_client.py::TweepyClientTests::test_get_users_mentions"]
["tests/test_api.py::TweepyAPITests::test_indicate_direct_message_typing", "tests/test_api.py::TweepyAPITests::testaddremovelistmember", "tests/test_api.py::TweepyAPITests::testaddremovelistmembers", "tests/test_api.py::TweepyAPITests::testcachedifferentqueryparameters", "tests/test_api.py::TweepyAPITests::testcachedre...
jyangballin/swesmith.x86_64.tweepy_1776_tweepy.91a41c6e
true
null
1
19
3
1,877
0
0.6
1
0.75
1
0.376167
81.4035
4,597
swe_smith::train::544
swe_smith
train
544
oauthlib__oauthlib.1fd52536.func_basic__labrk0r0
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
Device authorization endpoint validation broken after recent changes #### Description The device authorization endpoint is not properly validating requests anymore. Several validation checks that should be raising errors are now silently passing or behaving incorrectly. #### Steps/Code to Reproduce ```python from o...
diff --git a/oauthlib/oauth2/rfc8628/endpoints/device_authorization.py b/oauthlib/oauth2/rfc8628/endpoints/device_authorization.py index 7cda5ee..e1e590d 100644 --- a/oauthlib/oauth2/rfc8628/endpoints/device_authorization.py +++ b/oauthlib/oauth2/rfc8628/endpoints/device_authorization.py @@ -102,42 +102,28 @@ class Dev...
["tests/oauth2/rfc8628/endpoints/test_error_responses.py::ErrorResponseTest::test_duplicate_client_id", "tests/oauth2/rfc8628/endpoints/test_error_responses.py::ErrorResponseTest::test_duplicate_scope_parameter", "tests/oauth2/rfc8628/endpoints/test_error_responses.py::ErrorResponseTest::test_empty_client_id", "tests/o...
["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
22
13
1,816
0
0.6
1
0.75
1
0.376
81.403
4,598
swe_smith::train::6878
swe_smith
train
6,878
joke2k__faker.8b401a7d.lm_rewrite__nyhhh3j0
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
#### Issue with Finnish SSN Generation #### Description The Finnish SSN generation function in the `fi_FI` provider seems to be encountering an issue. When attempting to generate a Finnish personal identity code, an `AttributeError` is raised, indicating that the `Provider` object lacks the `date_between` attribute. ...
diff --git a/faker/providers/ssn/fi_FI/__init__.py b/faker/providers/ssn/fi_FI/__init__.py index 016782c..e4dbc8d 100644 --- a/faker/providers/ssn/fi_FI/__init__.py +++ b/faker/providers/ssn/fi_FI/__init__.py @@ -4,7 +4,7 @@ from .. import Provider as SsnProvider class Provider(SsnProvider): - def ssn(self, min...
["tests/providers/test_ssn.py::TestFiFI::test_artifical_ssn", "tests/providers/test_ssn.py::TestFiFI::test_ssn_sanity", "tests/providers/test_ssn.py::TestFiFI::test_ssn_without_age_range", "tests/providers/test_ssn.py::TestFiFI::test_valid_ssn"]
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
63
4
995
0
0.6
1
0.75
1
0.375833
81.4025
4,599
swe_smith::train::10090
swe_smith
train
10,090
paramiko__paramiko.23f92003.combine_file__ba2vcieu
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH key exchange fails with AttributeError during GEX negotiation #### Description When attempting to establish SSH connections using Diffie-Hellman Group Exchange (GEX), the key exchange process fails with an AttributeError. This affects both client and server modes during the GEX negotiation phase. #### Steps/Code...
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index baa0803..3fc06fc 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -67,25 +67,21 @@ class KexGex: self.old_style = False def start_kex(self, _test_old_style=False): - if self.transport.server_mode: + if not self.trans...
["tests/test_kex.py::KexTest::test_gex_client", "tests/test_kex.py::KexTest::test_gex_old_client", "tests/test_kex.py::KexTest::test_gex_server", "tests/test_kex.py::KexTest::test_gex_server_with_old_client", "tests/test_kex.py::KexTest::test_gex_sha256_client", "tests/test_kex.py::KexTest::test_gex_sha256_old_client",...
["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
45
8
1,355
0
0.6
1
0.75
1
0.375833
81.4025