base_commit
stringlengths
40
40
created_at
stringdate
2015-01-23 22:30:09
2025-07-21 08:49:06
image_name
stringlengths
44
86
instance_id
stringlengths
14
56
interface
stringlengths
33
15.4k
language
stringclasses
1 value
license
stringclasses
9 values
patch
stringlengths
231
32k
pr_description
stringlengths
8
8.53k
problem_statement
stringlengths
15
29.5k
repo
stringclasses
408 values
test_patch
stringlengths
246
31.6k
FAIL_TO_PASS
listlengths
1
3.87k
PASS_TO_PASS
listlengths
0
10.7k
install_config
dict
meta
dict
e9168a32aaf1ac96c6882082f787eae819f6518e
2024-07-19 22:28:42
docker.io/swerebenchv2/mpmath-mpmath:819-e9168a3
mpmath__mpmath-819
Method: _mpf.__format__(self, format_spec) Location: mpmath/ctx_mp_python.py Inputs: format_spec (str) – a standard Python float format specification. Outputs: str – the formatted representation of the mpf according to the specification. Description: Implements the Python format protocol for mpf objects, delegating to ...
python
BSD-3-Clause
diff --git a/CHANGES b/CHANGES index 4df3466..8cf0fc4 100644 --- a/CHANGES +++ b/CHANGES @@ -878,7 +878,7 @@ New features: Bugfixes, speed enhancements, and other improvements: * compatibility tests should now pass on systems where Python is - compiled to use 80-bit registers for floating point operations + compi...
Implement mpf.__format__ Implemented the `__format__` method for the `_mpf` type. Currently, `f`, `F`, `g`, `G`, `e`, and `E` formats are implemented, following the same specifications as specified for regular floats [here](https://docs.python.org/3/library/string.html#formatspec). Only nearest rounding is implemen...
Add mpf.__format__() dunder methods I am struggling with the conversion of a script written for Python 2.7 to Python 3 (PS: I know Python 3 still understands the old formatting syntax, but I would like to convert to the new formatting syntax as well). Consider the following example (IPython with output): In [1]:...
mpmath/mpmath
diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py new file mode 100644 index 0000000..e208d1b --- /dev/null +++ b/mpmath/tests/test_format.py @@ -0,0 +1,577 @@ +import random +import sys + +import pytest + +from mpmath import fp, inf, mp, nan, ninf, workdps + + +def random_fmt(): + ''' + This...
[ "mpmath/tests/test_format.py::test_mpf_fmt_cpython", "mpmath/tests/test_format.py::test_mpf_float", "mpmath/tests/test_format.py::test_mpf_fmt", "mpmath/tests/test_format.py::test_mpf_fmt_special", "mpmath/tests/test_format.py::test_errors" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
3408272d389e9fe0ae82e3f975ac462a079a3368
2023-06-13 06:06:46
docker.io/swerebenchv2/hypothesisworks-hypothesis:3675-3408272
hypothesisworks__hypothesis-3675
No new interfaces are introduced.
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..b621dc1e6 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,10 @@ +RELEASE_TYPE: minor + +This release changes :func:`~hypothesis.strategies.register_type_strategy` +for compatibility with :pep:`5...
Single registration for builtin and `typing.` generic types This is a work in progress - at time of writing it fixes #3635, but breaks the special cases we have for bytestrings. Once that's fixed it looks pretty good, but... arguably this bugfix is also a breaking change 😬. Not entirely sure what we want to do abo...
`register_type_strategy` doesn't work with lowercase builtin `list` type Using `register_type_strategy` doesn't seem to work with the built in `list` type available since python 3.9 (in fact `typing.List` is deprecated). hypothesis==6.75.1 pytest==7.3.1 Python 3.10.10 ```python from typing import get_args, Ty...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_lookup.py b/hypothesis-python/tests/cover/test_lookup.py index 97a42913e..409c96baa 100644 --- a/hypothesis-python/tests/cover/test_lookup.py +++ b/hypothesis-python/tests/cover/test_lookup.py @@ -27,7 +27,7 @@ import pytest from hypothesis import HealthCheck, assume, ...
[ "hypothesis-python/tests/cover/test_lookup_py39.py::test_can_register_builtin_list" ]
[ "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.ByteString]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.Type]", "hypothesis-python/tests/cover/test_lookup.py::test_does_not_resolve_special_cases[Any]", "hypothesis-python/tests/cover/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/issues/3...
ea366201ff570d05c7baa8abc0d1720fa22844f3
2017-06-27 11:26:33
docker.io/swerebenchv2/maniacallabs-bibliopixel:249-ea36620
maniacallabs__bibliopixel-249
Function: parse(s) Location: bibliopixel.util.duration.parse Inputs: **s** (str) – a human‑readable duration string (e.g., “2 hours, 3 min, 1.5s”). The string may contain commas, spaces, metric prefixes, and unit abbreviations. Outputs: **float** – total duration in seconds. Raises **ValueError** for malformed input, u...
python
MIT
diff --git a/bibliopixel/colors/__init__.py b/bibliopixel/colors/__init__.py index a3cd331..f158124 100644 --- a/bibliopixel/colors/__init__.py +++ b/bibliopixel/colors/__init__.py @@ -196,3 +196,6 @@ MediumAquamarine = (102, 205, 170) Gold = (255, 215, 0) Orchid = (218, 112, 214) OldLace = (253, 245, 230) + +# COLO...
Special values in projects (fix #242). All right! Worked out quite well. I sort of overengineered "parsing time", but I still like the code. You can enter the values in human-readable form - like [this](https://github.com/rec/BiblioPixel/blob/special-values/test/project_test.py#L30-L37). There's a very orderly ...
projects.py level global pre-processing of special values Thanks to @haooken for pointing this out. There are several special types of values that are settable inside a project by using a more raw representation but not by a nice, human friendly, value. We want projects to be human friendly. For example, colors. ...
ManiacalLabs/BiblioPixel
diff --git a/test/duration_test.py b/test/duration_test.py new file mode 100644 index 0000000..376f147 --- /dev/null +++ b/test/duration_test.py @@ -0,0 +1,55 @@ +import unittest +from bibliopixel.util import duration + + +class DurationTest(unittest.TestCase): + def test_simple(self): + self.assertEqual(dura...
[ "test/duration_test.py::DurationTest::test_complex", "test/duration_test.py::DurationTest::test_complex_failure", "test/duration_test.py::DurationTest::test_simple", "test/duration_test.py::DurationTest::test_simple_failure", "test/duration_test.py::DurationTest::test_simple_units", "test/types_test.py::C...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
adfbff1095e611eeff417321559db048f072478a
2023-03-07 20:37:51
docker.io/swerebenchv2/getmoto-moto:6028-adfbff1
getmoto__moto-6028
Method: FirehoseResponse.start_delivery_stream_encryption(self) Location: moto/firehose/responses.py Inputs: - DeliveryStreamName (str): name of the Firehose delivery stream to encrypt. - DeliveryStreamEncryptionConfigurationInput (dict): must contain at least the key `"KeyType"` (e.g., `"AWS_OWNED_CMK"`). No other fie...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index f05450858..ce2a77809 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -2986,7 +2986,7 @@ ## firehose <details> -<summary>83% implemented</summary> +<summary>100% implemented</summary> - [X] create_delivery_strea...
Firehose improvements New methods: - start_delivery_stream_encryption() - stop_delivery_stream_encryption() create_delivery_stream() now supports the parameters DeliveryStreamEncryptionConfigurationInput, S3BackupConfiguration update_destination() now supports the parameters S3Update, S3BackupUpdate Fixes ...
Firehose describe_delivery_stream does not give expected response to stream created with S3 backup I am creating a firehose delivery stream, with either S3 or Redshift delivery options and trying to set the S3 backup option. The creation request (converted to Json from the boto args) ```json { "DeliveryStreamName"...
getmoto/moto
diff --git a/tests/terraformtests/terraform-tests.success.txt b/tests/terraformtests/terraform-tests.success.txt index 10a5a3029..dfea7c1e4 100644 --- a/tests/terraformtests/terraform-tests.success.txt +++ b/tests/terraformtests/terraform-tests.success.txt @@ -265,6 +265,22 @@ events: - TestAccEventsConnection - ...
[ "tests/test_firehose/test_firehose_encryption.py::test_firehose_without_encryption", "tests/test_firehose/test_firehose_encryption.py::test_firehose_with_encryption", "tests/test_firehose/test_firehose_encryption.py::test_start_encryption_on_unknown_stream", "tests/test_firehose/test_firehose_encryption.py::t...
[ "tests/test_firehose/test_firehose.py::test_warnings", "tests/test_firehose/test_firehose.py::test_create_delivery_stream_failures", "tests/test_firehose/test_firehose.py::test_delete_delivery_stream", "tests/test_firehose/test_firehose.py::test_describe_delivery_stream", "tests/test_firehose/test_firehose....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
3963758fc5fda86da4799a26eb64fbc610c444da
2021-11-26 15:47:22
docker.io/swerebenchv2/cs-si-eodag:367-3963758
cs-si__eodag-367
Function: format_metadata(search_param, *args, **kwargs) Location: eodag/api/product/metadata_mapping.py Inputs: - **search_param** (str): a template string containing placeholders like `{field#converter}`; may include STAC extension parameters using a colon separator, e.g., `{some_extension:a_parameter}`. - **kwargs*...
python
Apache-2.0
diff --git a/docs/_static/params_mapping_extra.csv b/docs/_static/params_mapping_extra.csv index b677c5ad..cf6647c4 100644 --- a/docs/_static/params_mapping_extra.csv +++ b/docs/_static/params_mapping_extra.csv @@ -10,7 +10,7 @@ herbaceousCover,,,:green:`queryable metadata`,,,,,,,,, iceCover,,,:green:`queryable metada...
feat: stac api query fragment usage fixes #354 Implements STAC API `Query` fragment. *Note that it is planned to be deprecated and be replaced with `Filter` fragment. But for the moment STAC providers `earth_search` and `usgs_satapi_aws` are using it (`astraea_eod` do not use any of the 2), so we go for `Query` ...
implement STAC API Query fragment For STAC providers, STAC API Item Search has limited filtering capabilities (`collections`, `ids`, `bbox` / `intersects`, `datetime`). However, it does not contain a formalized way to filter based on arbitrary fields in an Item. For example, there is no way to express the filter *"`...
CS-SI/eodag
diff --git a/tests/units/test_metadata_mapping.py b/tests/units/test_metadata_mapping.py index e510ed38..fc19611f 100644 --- a/tests/units/test_metadata_mapping.py +++ b/tests/units/test_metadata_mapping.py @@ -17,7 +17,7 @@ # limitations under the License. import unittest -from tests.context import format_metadata...
[ "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_format_stac_extension_parameter" ]
[ "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_csv_list", "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_datetime_to_timestamp_milliseconds", "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_dict_update", "tests/units/test_metad...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/radiantearth/stac-api-spec/blob/mas...
1a116eb095e5bd19c8a495781cce743ef09031f5
2020-07-25 14:26:05
docker.io/swerebenchv2/hypothesisworks-hypothesis:2511-1a116eb
hypothesisworks__hypothesis-2511
Function: slices(size: int) -> slice Location: hypothesis.strategies (exposed as st.slices) Inputs: **size** – a non‑negative integer specifying the length of the sequence the slice will be applied to. `size` may be zero; negative values are rejected. The strategy uses `size` to bound possible `start` and `stop` values...
python
custom-check-github
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 3c012cb25..09455c0c3 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -277,6 +277,7 @@ their individual contributions. * `Ryan Turner <https://github.com/rdturnermtl>`_ (ryan.turner@uber.com) * `Sam Bishop (TechDragon) <https://github.com/techdragon>`_ (sa...
Negative indices slices Closes #2468 Thanks you @Zac-HD :)
Generate negative indices from the `slices()` strategy For example, `slices(size=3)` should be able to generate `slice(-3, -1)` as an equivalent form of `slice(0, 2)`. We should also sometimes draw `step=None` if `step=1` would be allowed. It would also be nice to support slicing length-zero sequences, i.e. `if size ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_direct_strategies.py b/hypothesis-python/tests/cover/test_direct_strategies.py index 82d33405b..dd109262a 100644 --- a/hypothesis-python/tests/cover/test_direct_strategies.py +++ b/hypothesis-python/tests/cover/test_direct_strategies.py @@ -170,7 +170,6 @@ def fn_ktest(*f...
[ "hypothesis-python/tests/cover/test_slices.py::test_size_is_equal_0" ]
[ "hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_keyword_arguments[integers(**{'min_value':", "hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_keyword_arguments[integers(**{'max_value':", "hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_key...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/Quansight/ndindex/issues/46" ],...
1def3c413021cdc0d355eb988444fbc847181173
2022-11-08 20:11:50
docker.io/swerebenchv2/pycqa-docformatter:128-1def3c4
pycqa__docformatter-128
No new interfaces are introduced.
python
MIT
diff --git a/src/docformatter/configuration.py b/src/docformatter/configuration.py index be1be5d..c484bf7 100644 --- a/src/docformatter/configuration.py +++ b/src/docformatter/configuration.py @@ -102,6 +102,13 @@ class Configurater: action="store_true", help="only check and report incorrectly...
Allow showing the diff when using --in-place or --check with --diff It can be useful to show the difference, e.g. in CI so that users know what is or should be changed. This adds a `--diff` option, that, when combined with `--check` or `--in-place`, will, in addition, show the diff to stdout. fix #125
Allow showing the diff and exit 1 if files were changed ## What is the current behavior? Currently, you can either run: - `docformatter file`, which will display the diff but always `exit 0` if nothing was changed - `docformatter --check file`, which will only display the file name if there is a change and `exit...
PyCQA/docformatter
diff --git a/tests/test_docformatter.py b/tests/test_docformatter.py index 20007ee..f2b26ac 100644 --- a/tests/test_docformatter.py +++ b/tests/test_docformatter.py @@ -97,11 +97,18 @@ def foo(): ''' ], ) - def test_in_place(self, temporary_file, contents): + @pytest.mark.parametrize( + "dif...
[ "tests/test_docformatter.py::TestMain::test_in_place[show-diff-def", "tests/test_docformatter.py::TestMain::test_check_mode_correct_docstring[show-diff-Totally", "tests/test_docformatter.py::TestMain::test_check_mode_incorrect_docstring[show-diff-\\n" ]
[ "tests/test_docformatter.py::TestMain::test_diff[", "tests/test_docformatter.py::TestMain::test_diff_with_nonexistent_file", "tests/test_docformatter.py::TestMain::test_in_place[no-diff-def", "tests/test_docformatter.py::TestMain::test_ignore_hidden_directories[.-.-temporary_directory-def", "tests/test_docf...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
81bc8cacc59f7b0daeb3380fe0079802b63af196
2022-02-12 02:13:09
docker.io/swerebenchv2/pallets-werkzeug:2338-81bc8ca
pallets__werkzeug-2338
Function: append_slash_redirect(environ, code=301) Location: src/werkzeug/utils.py Inputs: - environ: WSGI environment mapping containing at least `"PATH_INFO"` (the request path) and optionally `"QUERY_STRING"`. - code (optional): integer HTTP status code for the redirect, default 301. Outputs: - A ``Response`` (WSG...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index bbc18357..ada72a7b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -88,6 +88,8 @@ Unreleased match early. :pr:`2350` - The test client doesn't set duplicate headers for ``CONTENT_LENGTH`` and ``CONTENT_TYPE``. :pr:`2348` +- ``append_slash_redirect`` handles ``PA...
Fix append_slash_redirect when PATH_INFO has internal slashes (This seems to have been a contentious issue — please don't hate me.) This addresses an issue — reported before in #1972 — namely that `werkzeug.utils.append_slash_redirect` does not work correctly if `PATH_INFO` contains internal slashes. Suppose a re...
function `append_slash_redirect` misredirects file `test.py` ```python from flask import Flask, request from werkzeug.utils import append_slash_redirect app = Flask("test") @app.route('/<path:path>') def r(path): if not path.endswith('/'): return append_slash_redirect(request.environ) ret...
pallets/werkzeug
diff --git a/tests/test_utils.py b/tests/test_utils.py index 52c6f84f..3f70f1a9 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -236,14 +236,28 @@ def test_header_set_duplication_bug(): ) -def test_append_slash_redirect(): +@pytest.mark.parametrize( + "path, base_url, expected_location", + ...
[ "tests/test_utils.py::test_append_slash_redirect[/foo/bar-http://example.org/-http://example.org/foo/bar/]", "tests/test_utils.py::test_append_slash_redirect[/foo/bar-http://example.org/app-http://example.org/app/foo/bar/]", "tests/test_utils.py::test_append_slash_redirect[/foo/-http://example.org/-http://examp...
[ "tests/test_utils.py::test_redirect", "tests/test_utils.py::test_redirect_xss", "tests/test_utils.py::test_redirect_with_custom_response_class", "tests/test_utils.py::test_cached_property", "tests/test_utils.py::test_can_set_cached_property", "tests/test_utils.py::test_invalidate_cached_property", "test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d342c0d5fd543c097fc25751214eeafb4c06da24
2024-04-08 13:42:36
docker.io/swerebenchv2/openownership-data-standard:624-d342c0d
openownership__data-standard-624
No new interfaces are introduced.
python
custom-check-github
diff --git a/schema/person-record.json b/schema/person-record.json index 7b8c32a..40344ac 100644 --- a/schema/person-record.json +++ b/schema/person-record.json @@ -58,9 +58,9 @@ "title": "Place of birth", "propertyOrder": 40, "$ref": "urn:components#/$defs/Address", - "properties":{ - ...
Update names (person-record) to make fullName required # Overview - What does this pull request do? Makes fullName required in schema within names. Updates existing valid test files Creates invalid test file - How can a reviewer test or examine your changes? - Who is best placed to review it? @kd-ods or ...
Name object: descriptions and normative content need a re-think **Summary of the bug or issue** The Name object description is : > An name by which this individual is known. Names should be provided in `fullName`, and may optionally be broken down in the `familyName`, `givenName` and `patronymicName` fields, based ...
openownership/data-standard
diff --git a/tests/data/invalid-statements/expected_errors.csv b/tests/data/invalid-statements/expected_errors.csv index d674bb1..bb47bab 100644 --- a/tests/data/invalid-statements/expected_errors.csv +++ b/tests/data/invalid-statements/expected_errors.csv @@ -10,4 +10,5 @@ "entity_addresses_type.json","enum","$[0].re...
[ "tests/test_data.py::test_invalid_files[person_names_fullName_missing.json]" ]
[ "tests/test_data.py::test_valid_files[entity.json]", "tests/test_data.py::test_valid_files[entity_2.json]", "tests/test_data.py::test_valid_files[entity_address_address.json]", "tests/test_data.py::test_valid_files[entity_address_country.json]", "tests/test_data.py::test_valid_files[entity_address_country_2...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://joinup.ec.europa.eu/solution/e-government-core-v...
66a6258536c4d108268c518a54d2f14b9990c9a7
2023-02-14 23:31:36
docker.io/swerebenchv2/azure-walinuxagent:2761-66a6258
azure__walinuxagent-2761
Function: WireProtocolData.set_etag(self, etag) Location: tests/protocol/mockwiredata.py (added as a helper on the mock wire‑protocol data object) Inputs: *etag* – integer or string representing the HTTP ETag that will be returned for subsequent `/vmSettings` requests. The value is stored in the mock object and influen...
python
Apache-2.0
diff --git a/azurelinuxagent/common/protocol/goal_state.py b/azurelinuxagent/common/protocol/goal_state.py index ed96159c..6b2a0c2c 100644 --- a/azurelinuxagent/common/protocol/goal_state.py +++ b/azurelinuxagent/common/protocol/goal_state.py @@ -56,8 +56,9 @@ class GoalStateProperties(object): HostingEnv = 0x2 ...
Download certificates when goal state source is Fast Track This PR includes a change to download certificates when goal state source is FastTrack Fixes #2750
WALinuxAgent doesn't download all .crt and .prv files from KeyVault Not sure if this is a bug but I will try to explain as much as I can. Environment: Virtual Machine Scale Set - Azure (West EU, West US, Japan, Asia,.. all regions impacted) We are doing deployments of VMSS in azure using ARM template and ansible ...
Azure/WALinuxAgent
diff --git a/tests/protocol/mockwiredata.py b/tests/protocol/mockwiredata.py index 7ec311af..196ed32d 100644 --- a/tests/protocol/mockwiredata.py +++ b/tests/protocol/mockwiredata.py @@ -165,6 +165,7 @@ class WireProtocolData(object): self.in_vm_artifacts_profile = None self.vm_settings = None ...
[ "tests/protocol/test_goal_state.py::GoalStateTestCase::test_it_should_download_certs_on_a_new_fast_track_goal_state", "tests/protocol/test_goal_state.py::GoalStateTestCase::test_update_should_create_new_history_subdirectories", "tests/protocol/test_wire.py::UpdateGoalStateTestCase::test_reset_should_init_provid...
[ "tests/protocol/test_extensions_goal_state_from_vm_settings.py::ExtensionsGoalStateFromVmSettingsTestCase::test_it_should_default_to_block_blob_when_the_status_blob_type_is_not_valid", "tests/protocol/test_extensions_goal_state_from_vm_settings.py::ExtensionsGoalStateFromVmSettingsTestCase::test_it_should_parse_m...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://devblogs.microsoft.com/premier-developer/centr...
798bff2f83d573b2b28b71b065a4a50e773cdabf
2025-01-03 21:41:29
docker.io/swerebenchv2/narwhals-dev-narwhals:1715-798bff2
narwhals-dev__narwhals-1715
Method: ArrowSeries.sum(self, *, _return_py_scalar: bool = True) -> int Location: narwhals/_arrow/series.py Inputs: - self: ArrowSeries instance containing the data. - _return_py_scalar (optional): flag to return a native Python scalar instead of a Narwhals-wrapped scalar (default True). Outputs: - int (or Python sca...
python
MIT
diff --git a/narwhals/_arrow/series.py b/narwhals/_arrow/series.py index 37dce5db..ecc5b084 100644 --- a/narwhals/_arrow/series.py +++ b/narwhals/_arrow/series.py @@ -304,7 +304,9 @@ class ArrowSeries(CompliantSeries): def sum(self: Self, *, _return_py_scalar: bool = True) -> int: import pyarrow.compute a...
fix: scalar reductions on empty inputs <!-- # Thanks for contributing a pull request! ## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md --> ## What type of PR is this? (check all applicable) - [ ] 💾 Refactor - [ ] ✨ Feature - [x] 🐛 ...
[Bug]: Summing empty Pandas DataFrame ### Describe the bug `ValueError` when attempting to sum an empty Pandas DataFrame ### Steps or code to reproduce the bug ```py import narwhals as nw import pandas as pd from narwhals import narwhalify df = pd.DataFrame( { "name": ["John", "Doe", "Jane"], ...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/reduction_test.py b/tests/expr_and_series/reduction_test.py index b1dcad23..3b579d9f 100644 --- a/tests/expr_and_series/reduction_test.py +++ b/tests/expr_and_series/reduction_test.py @@ -6,6 +6,7 @@ import pytest import narwhals.stable.v1 as nw from tests.utils import Constructor...
[ "tests/expr_and_series/reduction_test.py::test_empty_scalar_reduction_select[pyarrow]", "tests/expr_and_series/reduction_test.py::test_empty_scalar_reduction_with_columns[pandas[nullable]]", "tests/expr_and_series/reduction_test.py::test_empty_scalar_reduction_with_columns[pandas]", "tests/expr_and_series/red...
[ "tests/expr_and_series/reduction_test.py::test_scalar_reduction_with_columns[pandas[nullable]-3]", "tests/expr_and_series/reduction_test.py::test_scalar_reduction_select[pandas-4]", "tests/expr_and_series/reduction_test.py::test_scalar_reduction_select[polars[lazy]-4]", "tests/expr_and_series/reduction_test.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8dcf4966ecb00032caebe1928bedfc10e790b8dc
2024-11-20 01:21:51
docker.io/swerebenchv2/meltano-sdk:2770-8dcf496
meltano__sdk-2770
Method: Stream.apply_catalog(self, catalog: Catalog) Location: singer_sdk/streams/core.py → class Stream Inputs: - **catalog** (Catalog): a Singer catalog object containing stream definitions. The catalog may include a `metadata` entry with keys `table-key-properties`, `replication-key`, and `forced-replication-method...
python
Apache-2.0
diff --git a/docs/implementation/catalog_metadata.md b/docs/implementation/catalog_metadata.md index b255a553..090a3896 100644 --- a/docs/implementation/catalog_metadata.md +++ b/docs/implementation/catalog_metadata.md @@ -1,6 +1,6 @@ # Catalog Metadata -The SDK automatically generates catalog metadata during catalo...
fix: Respect standard Singer stream metadata `table-key-properties`, `replication-key` and `forced-replication-method` - https://hub.meltano.com/singer/spec/#metadata - https://github.com/singer-io/getting-started/blob/master/docs/DISCOVERY_MODE.md#metadata **TODO**: - [x] Tests ~- [ ] Documentation~ Related...
bug: `table-key-properties` in `metadata` extra does not populate schema `key_properties` for `tap-bigquery` ### Singer SDK Version 0.39.1 ### Is this a regression? - [ ] Yes ### Python Version 3.9 ### Bug scope Taps (catalog, state, etc.) ### Operating System Ubuntu 22.04 LTS ### Descript...
meltano/sdk
diff --git a/tests/core/test_streams.py b/tests/core/test_streams.py index 038f8765..6dabf1f2 100644 --- a/tests/core/test_streams.py +++ b/tests/core/test_streams.py @@ -106,6 +106,43 @@ def test_stream_apply_catalog(stream: Stream): assert stream.forced_replication_method == REPLICATION_FULL_TABLE +def test_...
[ "tests/core/test_streams.py::test_stream_apply_catalog__singer_standard" ]
[ "tests/core/test_streams.py::test_stream_apply_catalog", "tests/core/test_streams.py::test_stream_starting_timestamp[datetime-repl-key-no-state]", "tests/core/test_streams.py::test_stream_starting_timestamp[datetime-repl-key-recent-bookmark]", "tests/core/test_streams.py::test_stream_starting_timestamp[dateti...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://discuss.meltano.com/t/16277188/hi-all-when-try...
85ab54ea2da02bd3d2f79d1fc2c7de069986e7b6
2018-12-23 20:00:52
docker.io/swerebenchv2/robotframework-seleniumlibrary:1269-85ab54e
robotframework__seleniumlibrary-1269
No new interfaces are introduced.
python
Apache-2.0
diff --git a/src/SeleniumLibrary/keywords/waiting.py b/src/SeleniumLibrary/keywords/waiting.py index d5b6dde4..755f815d 100644 --- a/src/SeleniumLibrary/keywords/waiting.py +++ b/src/SeleniumLibrary/keywords/waiting.py @@ -16,6 +16,8 @@ import time +from selenium.common.exceptions import StaleElementReferenceExcep...
Supress StaleElementReferenceException in waiting keywords Fixes #1270
Wait... keywords should not fail StaleElementReferenceException The `Wait ...` keywords can fail to `StaleElementReferenceException` because in between finding the element and doing action with the element (like checking is the element displayed) the DOM may change. Finding the element and doing something with the elem...
robotframework/SeleniumLibrary
diff --git a/utest/test/keywords/test_waiting_stale_element_refereance_exception.py b/utest/test/keywords/test_waiting_stale_element_refereance_exception.py new file mode 100644 index 00000000..49e2e80a --- /dev/null +++ b/utest/test/keywords/test_waiting_stale_element_refereance_exception.py @@ -0,0 +1,84 @@ +import u...
[ "utest/test/keywords/test_waiting_stale_element_refereance_exception.py::TableKeywordsTest::test_wait_until_element_contains", "utest/test/keywords/test_waiting_stale_element_refereance_exception.py::TableKeywordsTest::test_wait_until_element_does_not_contain", "utest/test/keywords/test_waiting_stale_element_re...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2eed1bb6ca956362b439b6e5085b73e35caaca1f
2023-07-12 13:58:31
docker.io/swerebenchv2/tomwhite-cubed:257-2eed1bb
tomwhite__cubed-257
Function: rechunk(x, chunks, target_store=None) Location: cubed.core.ops.rechunk Inputs: - x: an Array-like object (Cubed array) to be rechunked. - chunks: target chunk sizes (tuple of ints) for the output array. - target_store: optional storage location for the final rechunked array; if omitted a temporary location is...
python
Apache-2.0
diff --git a/cubed/core/ops.py b/cubed/core/ops.py index ee92a09e..6a64558c 100644 --- a/cubed/core/ops.py +++ b/cubed/core/ops.py @@ -281,7 +281,6 @@ def blockwise( name, "blockwise", pipeline.target_array, - None, pipeline, pipeline.projected_mem + extra_projected_m...
Surface rechunk intermediates in DAG Fixes #222 Note that with #249 intermediates in rechunks are less common, and with #256 (not yet merged) rechunk operations themselves will be a lot less common. However, this change is still useful since it is an overall simplification (and removes about 40 lines of code). He...
Surface any intermediate arrays from rechunk in DAG Currently the rechunk operation is treated as a black box, and any intermediate arrays that it creates are not shown in the DAG. (Intermediate arrays are also named differently - they take the form [`array-nnn-intermediate`](https://github.com/tomwhite/cubed/blob/m...
tomwhite/cubed
diff --git a/cubed/tests/primitive/test_rechunk.py b/cubed/tests/primitive/test_rechunk.py index 9eef3ed4..e10f3ad1 100644 --- a/cubed/tests/primitive/test_rechunk.py +++ b/cubed/tests/primitive/test_rechunk.py @@ -24,7 +24,7 @@ def executor(request): 0, (1, 4), 1000, - ...
[ "cubed/tests/primitive/test_rechunk.py::test_rechunk[executor0-shape0-source_chunks0-1000-0-target_chunks0-1000-expected_num_tasks0]", "cubed/tests/primitive/test_rechunk.py::test_rechunk[executor0-shape1-source_chunks1-1000-100-target_chunks1-1000-expected_num_tasks1]", "cubed/tests/primitive/test_rechunk.py::...
[ "cubed/tests/primitive/test_rechunk.py::test_rechunk_allowed_mem_exceeded", "cubed/tests/test_core.py::test_regular_chunks", "cubed/tests/test_core.py::test_from_array[x0-chunks0-None]", "cubed/tests/test_core.py::test_from_array[x1-chunks1-True]", "cubed/tests/test_core.py::test_from_array[x2--1-True]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.85, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/tomwhite/cubed/blob/main/cubed/core...
67ecc3b1dba576ecfb78463127b0402356be4616
2023-02-01 13:25:18
docker.io/swerebenchv2/getmoto-moto:5893-67ecc3b
getmoto__moto-5893
Method: KinesisBackend.describe_stream(self, stream_arn: Optional[str], stream_name: Optional[str]) → Stream Location: moto/kinesis/models.py Inputs: **stream_arn** – ARN of the Kinesis stream (str) or None; **stream_name** – name of the stream (str) or None. One of the two must identify an existing stream. Outpu...
python
Apache-2.0
diff --git a/moto/kinesis/models.py b/moto/kinesis/models.py index 90f3672e6..8efedbdb9 100644 --- a/moto/kinesis/models.py +++ b/moto/kinesis/models.py @@ -4,6 +4,7 @@ import re import itertools from operator import attrgetter +from typing import Any, Dict, List, Optional, Tuple from moto.core import BaseBacken...
Kinesis - support Stream ARNs across all methods Fixes #5889 Boto3 introduced the StreamARN-parameter in all methods at some points - I believe only recently. We now support this parameter as well.
Kinesis get_shard_iterator support does not handle StreamARN parameter When using the `StreamARN` parameter in the `get_shard_iterator` Kinesis client method (rather than `StreamName`), an UnrecognizedClientException is raised. [boto3 docs are saying](https://boto3.amazonaws.com/v1/documentation/api/latest/referenc...
getmoto/moto
diff --git a/tests/test_kinesis/test_kinesis.py b/tests/test_kinesis/test_kinesis.py index 005e3382a..116e8d733 100644 --- a/tests/test_kinesis/test_kinesis.py +++ b/tests/test_kinesis/test_kinesis.py @@ -19,15 +19,17 @@ def test_stream_creation_on_demand(): client.create_stream( StreamName="my_stream", S...
[ "tests/test_kinesis/test_kinesis.py::test_stream_creation_on_demand", "tests/test_kinesis/test_kinesis.py::test_list_and_delete_stream", "tests/test_kinesis/test_kinesis.py::test_describe_stream_summary", "tests/test_kinesis/test_kinesis.py::test_basic_shard_iterator_by_stream_arn", "tests/test_kinesis/test...
[ "tests/test_kinesis/test_kinesis.py::test_update_stream_mode", "tests/test_kinesis/test_kinesis.py::test_describe_non_existent_stream", "tests/test_kinesis/test_kinesis.py::test_delete_unknown_stream", "tests/test_kinesis/test_kinesis.py::test_list_many_streams", "tests/test_kinesis/test_kinesis.py::test_ba...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest/...
f64dde1bbfd1ecaaf8041e76fd895348743af083
2025-04-24 19:05:12
docker.io/swerebenchv2/jlowin-fastmcp:246-f64dde1
jlowin__fastmcp-246
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/servers/resources.mdx b/docs/servers/resources.mdx index 078e473..9e13b98 100644 --- a/docs/servers/resources.mdx +++ b/docs/servers/resources.mdx @@ -5,6 +5,8 @@ description: Expose data sources and dynamic content generators to your MCP clie icon: database --- +import { VersionBadge } from "/sni...
Add wildcard params for resource templates Closes #245 Allows resource templates to have wildcard parameters that include multiple path segments, e.g. ```python @mcp.resource('repo://{owner}/{repo}/{file*}') def repo_file(owner:str, repo:str, file: str): ... ``` This would match e.g. `"repo://jlowin...
Allow template resources to have wildcard matches ### Enhancement Description For example, I'd like to have a resource that serves up files, and match something like `contents://{path*}` so that it would be used for `contents://foo/bar/baz.gif`. If I create a resource using `@app.resource("contents://{path}")` it only...
jlowin/fastmcp
diff --git a/tests/resources/test_resource_template.py b/tests/resources/test_resource_template.py index a8b01c1..38b2f45 100644 --- a/tests/resources/test_resource_template.py +++ b/tests/resources/test_resource_template.py @@ -301,6 +301,23 @@ class TestResourceTemplate: class TestMatchUriTemplate: """Test matc...
[ "tests/resources/test_resource_template.py::TestMatchUriTemplate::test_match_uri_template_wildcard_param[test://a/b-None]", "tests/resources/test_resource_template.py::TestMatchUriTemplate::test_match_uri_template_wildcard_param[test://a/b/c-None]", "tests/resources/test_resource_template.py::TestMatchUriTempla...
[ "tests/resources/test_resource_template.py::TestResourceTemplate::test_template_creation", "tests/resources/test_resource_template.py::TestResourceTemplate::test_template_matches", "tests/resources/test_resource_template.py::TestResourceTemplate::test_template_matches_with_prefix", "tests/resources/test_resou...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": [...
881ed2f00255cb247577adad59d4f05122a5f87a
2024-02-10 20:19:58
docker.io/swerebenchv2/pycqa-pyflakes:801-881ed2f
pycqa__pyflakes-801
Method: Checker._handle_named_expr(self, value) Location: pyflakes/checker.py (inside class Checker, around line 1000) Inputs: - **value**: an instance of `NamedExprAssignment` representing a walrus‑operator assignment (e.g., `x := expr`). The object provides at least the attributes `name` (the variable being assigned...
python
MIT
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index 754ab30..47a59ba 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -548,7 +548,7 @@ class FunctionScope(Scope): """ usesLocals = False alwaysUsed = {'__tracebackhide__', '__traceback_info__', - '__traceback_suppleme...
allow assignment expressions to redefine outer names resolves #800
False Positive: walrus in a list comprehension Minimal reproduction: ```python def foo(x): fns = [lambda x: x + 1, lambda x: x + 2, lambda x: x + 3] return [(x := fn(x)) for fn in fns] ``` This raises F841 incorrectly asserting that the `x` variable assigned in the comprehension is never used
PyCQA/pyflakes
diff --git a/pyflakes/test/test_other.py b/pyflakes/test/test_other.py index aebdcea..0af87ec 100644 --- a/pyflakes/test/test_other.py +++ b/pyflakes/test/test_other.py @@ -1349,6 +1349,16 @@ class TestUnusedAssignment(TestCase): __tracebackhide__ = True """) + def test_debuggerskipSpecia...
[ "pyflakes/test/test_other.py::TestUnusedAssignment::test_assign_expr_generator_scope_reassigns_parameter", "pyflakes/test/test_other.py::TestUnusedAssignment::test_debuggerskipSpecialVariable" ]
[ "pyflakes/test/test_other.py::Test::test_attrAugmentedAssignment", "pyflakes/test/test_other.py::Test::test_breakInsideLoop", "pyflakes/test/test_other.py::Test::test_breakOutsideLoop", "pyflakes/test/test_other.py::Test::test_classFunctionDecorator", "pyflakes/test/test_other.py::Test::test_classNameDefine...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
3f88620f36d6726c3b656e8264828799ea7fa8fe
2025-02-19 16:38:58
docker.io/swerebenchv2/librosa-librosa:1916-3f88620
librosa__librosa-1916
Function: set_fftlib(lib: Optional[ModuleType] = None) -> None Location: librosa.core.fft (exposed as librosa.set_fftlib) Inputs: - lib (optional): a module that provides an interface compatible with ``scipy.fft`` (e.g., ``scipy.fft`` itself or a custom backend). If omitted or ``None``, the backend is reset to the defa...
python
ISC
diff --git a/docs/changelog.rst b/docs/changelog.rst index c5d23e81..62897986 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -7,15 +7,16 @@ v0.11.0 2025-02-XX Maintenance - - `#1831`_ Numpy 2.0 is now supported. - `#1898`_ Updated codecov action. *Brian McFee* - `#1860`_ Updated GitHub i...
Deprecate set_fftlib, update fftpack uses #### Reference Issue Fixes #1915 #### What does this implement/fix? Explain your changes. This PR deprecates the `set_fftlib` functionality, to be removed in 1.0. Users are instead instructed to use scipy's fft backend selector to customize FFT computations. #### ...
[Bug]: Some functions don't respect get_fftlib(), and we generally shouldn't use fftpack ### Bug summary Librosa allows users to set custom FFT implementations (assuming they adhere to the numpy API) via the `set_fftlib` function. All uses of fft functionality are intended to run through `get_fftlib` rather than call...
librosa/librosa
diff --git a/tests/test_core.py b/tests/test_core.py index 08620c50..45e87bb5 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2274,21 +2274,24 @@ def test_pcen_stream_multi(axis): def test_get_fftlib(): - import numpy.fft as fft + import scipy.fft as fft assert librosa.get_fftlib() is fft...
[ "tests/test_core.py::test_get_fftlib", "tests/test_core.py::test_set_fftlib", "tests/test_core.py::test_reset_fftlib" ]
[ "tests/test_core.py::test_stft_toolong_center", "tests/test_core.py::test_stft_winsizes", "tests/test_core.py::test_stft_preallocate[1024-1023-128-False]", "tests/test_core.py::test_stft_preallocate[1024-1023-128-True]", "tests/test_core.py::test_stft_preallocate[1024-1023-129-False]", "tests/test_core.py...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/librosa/librosa/blob/3f88620f36d672...
42fa578606e9520f86a2439aad5e96806717469b
2024-02-08 23:38:33
docker.io/swerebenchv2/pyomo-pyomo:3129-42fa578
pyomo__pyomo-3129
Method: ExpressionBoundsVisitor.walk_expression(self, expr) Location: pyomo/contrib/fbbt/expression_bounds_walker.py Inputs: - **expr** (Pyomo expression): can be a numeric expression, a relational expression (`InequalityExpression`, `EqualityExpression`, `RangedExpression`) or a conditional expression (`Expr_ifExpr...
python
custom-check-github
diff --git a/pyomo/contrib/fbbt/expression_bounds_walker.py b/pyomo/contrib/fbbt/expression_bounds_walker.py index 426d30f0e..340af94c8 100644 --- a/pyomo/contrib/fbbt/expression_bounds_walker.py +++ b/pyomo/contrib/fbbt/expression_bounds_walker.py @@ -9,9 +9,15 @@ # This software is distributed under the 3-clause BS...
Extend `fbbt.ExpressionBoundsVisitor` to handle relational expressions and Expr_if <!-- ##################################################################### --> <!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST --> <!-- All changes must adhere to PEP8 standards as enforced by Black. --> <!-- If your changes do NO...
FBBT handling of Expr_if expressions ## Summary I am a developer working on [WaterTAP](https://github.com/watertap-org/watertap) and a subpackage [WaterTAP-REFLO](https://github.com/watertap-org/watertap-reflo). We have a model that costs a MgCl2 flow. The constraint used to cost the flow uses ``Expr_if`` statem...
Pyomo/pyomo
diff --git a/pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py b/pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py index c51230155..75d273422 100644 --- a/pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py +++ b/pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py @@ -10,10 +10,33 @@ # ___...
[ "pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py::TestExpressionBoundsWalker::test_abs_bounds", "pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py::TestExpressionBoundsWalker::test_acos_bounds", "pyomo/contrib/fbbt/tests/test_expression_bounds_walker.py::TestExpressionBoundsWalker::test_asin_b...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/watertap-org/watertap", "https:...
d25a0677085e1480d3bcec0963aec5770753f539
2025-01-22 05:36:28
docker.io/swerebenchv2/wntrblm-nox:913-d25a067
wntrblm__nox-913
No new interfaces are introduced.
python
Apache-2.0
diff --git a/nox/virtualenv.py b/nox/virtualenv.py index 2a8d8ba..4836827 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -453,6 +453,7 @@ class VirtualEnv(ProcessEnv): be ``py -3.6-32`` * ``X.Y.Z``, e.g. ``3.4.9`` * ``pythonX.Y``, e.g. ``python2.7`` + * ``p...
fix: allow pypy- to be used (matching GHA) Fix #861.
pypy-3.10 doesn't work as an interpreter name ### Current Behavior GitHub Actions called PyPy interpreters `pypy-3.10`. I think we call them `pypy3.10`. Should we support the GHA form too?
wntrblm/nox
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index 9f1a6e7..dcc620a 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -322,6 +322,16 @@ def test_constructor_defaults( assert venv.venv_backend == "virtualenv" +def test_constructor_pypy_dash( + make_one: Callable[...,...
[ "tests/test_virtualenv.py::test_constructor_pypy_dash" ]
[ "tests/test_virtualenv.py::test_process_env_constructor", "tests/test_virtualenv.py::test_process_env_create", "tests/test_virtualenv.py::test_invalid_venv_create", "tests/test_virtualenv.py::test_condaenv_constructor_defaults", "tests/test_virtualenv.py::test_condaenv_constructor_explicit", "tests/test_v...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
8837cfa7ffcc419216d4e01392cee0f1ceee9c88
2017-01-04 15:54:43
docker.io/swerebenchv2/pre-commit-pre-commit:460-8837cfa
pre-commit__pre-commit-460
Function: install_hooks(runner) Location: pre_commit.commands.install_uninstall.install_hooks Inputs: runner – a `Runner` instance whose `repositories` attribute is an iterable of repository objects that provide a `require_installed()` method. Outputs: None (the function performs side‑effects by calling `require_instal...
python
MIT
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index 1277ec3..069fb9d 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -82,12 +82,16 @@ def install(runner, overwrite=False, hooks=False, hook_type='pre-commit'): ...
Add an install-hooks command (similar to install --install-hooks). Resolves #456
Hooks pre-fetching Hi, I want to suggest introducing a command for downloading all required hooks forcefully. The use case is simple: 1. I pack everything needed for testing into container 2. I deploy that into CI 3. It gets built and tests are ran I'd like to separate fetching of the hooks and pre-installing ...
pre-commit/pre-commit
diff --git a/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py index 5bae08e..9136a0c 100644 --- a/tests/commands/install_uninstall_test.py +++ b/tests/commands/install_uninstall_test.py @@ -13,6 +13,7 @@ import mock import pre_commit.constants as C from pre_commit.commands.install_u...
[ "tests/commands/install_uninstall_test.py::test_is_not_our_pre_commit", "tests/commands/install_uninstall_test.py::test_is_our_pre_commit", "tests/commands/install_uninstall_test.py::test_is_not_previous_pre_commit", "tests/commands/install_uninstall_test.py::test_is_also_not_previous_pre_commit", "tests/co...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
f8c62f03e44b29dc7dc63f80c929e7f6e242c2a8
2020-05-12 22:00:39
docker.io/swerebenchv2/hypothesisworks-hypothesis:2429-f8c62f0
hypothesisworks__hypothesis-2429
Function: complex_numbers(*, min_magnitude: Real = 0, max_magnitude: Real = None, allow_infinity: bool = None, allow_nan: bool = None) → SearchStrategy[complex] Location: hypothesis-python/src/hypothesis/strategies/_internal/core.py Inputs: - min_magnitude: Real (previously Optional[Real]); non‑negative magnitude, `Non...
python
custom-check-github
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index fd2dc3215..cfa459358 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -207,6 +207,7 @@ their individual contributions. * `Daniel J. West <https://github.com/danieljwest>`_ * `David Bonner <https://github.com/rascalking>`_ (dbonner@gmail.com) * `David Chud...
Deprecate min_magnitude=None Closes #2424 by removing the explicit `Optional` from the `complex_numbers` strategy. Replaces the default `min_magnitude=0` with `min_magnitude=None` since these are equivalent and the latter allows you to use implicit `Optional`
Strategy type annotations - explicit Optional A lot of the strategies in [core](https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/src/hypothesis/strategies/_internal/core.py) take parameters that can be `None`-valued but aren't typed as `Optional`. For example, ``` python def integers(min_...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_complex_numbers.py b/hypothesis-python/tests/cover/test_complex_numbers.py index 13ad9bd3c..6f23ab3df 100644 --- a/hypothesis-python/tests/cover/test_complex_numbers.py +++ b/hypothesis-python/tests/cover/test_complex_numbers.py @@ -20,6 +20,7 @@ import hypothesis.strateg...
[ "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal_min_magnitude_none" ]
[ "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal_nonzero_real", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal_nonzero_imaginary", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minim...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/blob/mas...
71519d80f2a5ce77055541324dd545a015dca7d8
2024-11-01 11:01:31
docker.io/swerebenchv2/celery-celery:9393-71519d8
celery__celery-9393
Method: Celery.task(self, bind: bool = False, pydantic: bool = False, pydantic_strict: bool = False, pydantic_context: typing.Optional[typing.Dict[str, typing.Any]] = None, pydantic_dump_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None, **options) Location: celery/app/base.py Inputs: - **bind** – whether t...
python
custom-check-github
diff --git a/celery/app/base.py b/celery/app/base.py index 833818344..7af07de94 100644 --- a/celery/app/base.py +++ b/celery/app/base.py @@ -548,7 +548,7 @@ class Celery: base=None, bind=False, pydantic: bool = False, - pydantic_strict: bool = True, + pydantic_strict: bool = Fal...
default strict to False for pydantic tasks ## Description Change default Pydantic model validation to non-strict. The default for Pydantic itself is also non-strict, so I believe this change makes the feature more intuitive. This would fix #9363.
Pydantic model containing UUID4 between tasks in chain() fails validation <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x] I...
celery/celery
diff --git a/t/unit/app/test_app.py b/t/unit/app/test_app.py index 4bf1887b2..4d132a537 100644 --- a/t/unit/app/test_app.py +++ b/t/unit/app/test_app.py @@ -615,6 +615,28 @@ class test_App: assert foo(arg={'arg_value': 5}, kwarg={'kwarg_value': 6}) == {'ret_value': 2} check.assert_called_once_...
[ "t/unit/app/test_app.py::test_App::test_task_with_pydantic_with_non_strict_validation" ]
[ "t/unit/app/test_app.py::test_module::test_default_app", "t/unit/app/test_app.py::test_module::test_bugreport", "t/unit/app/test_app.py::test_task_join_will_block::test_task_join_will_block", "t/unit/app/test_app.py::test_App::test_now", "t/unit/app/test_app.py::test_App::test_set_default", "t/unit/app/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.88, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/dromer/celery_pydantic_test", ...
c062edf33e59497411849094f48d5fce3a1eb9d5
2024-08-08 04:53:34
docker.io/swerebenchv2/aio-libs-aiohttp:8642-c062edf
aio-libs__aiohttp-8642
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/8565.bugfix.rst b/CHANGES/8565.bugfix.rst new file mode 100644 index 000000000..35e7c4dc7 --- /dev/null +++ b/CHANGES/8565.bugfix.rst @@ -0,0 +1,1 @@ +Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:`steverep`. diff --git a/CHANGES/8641.bugfix.rst b/CHA...
Fix response to circular symlinks with Python v3.13 <!-- Thank you for your contribution! --> ## What do these changes do? <!-- Please give a short brief about these changes. --> In 3.13, `pathlib` has changed `Path.resolve()` from always raising `RuntimeError` on circular symlinks to raising `OSError` only when...
Python 3.13: symlink loop handling broken? (`tests/test_web_urldispatcher.py::test_access_symlink_loop` failure) ### Describe the bug 1. In 3.10.0, the `tests/test_web_urldispatcher.py::test_access_symlink_loop` test is failing on Python 3.13.0b4. The backtrace suggests it's not a problem with the test itself but with...
aio-libs/aiohttp
diff --git a/tests/test_client_ws_functional.py b/tests/test_client_ws_functional.py index 81bc6e6c7..a63d0d579 100644 --- a/tests/test_client_ws_functional.py +++ b/tests/test_client_ws_functional.py @@ -793,6 +793,51 @@ async def test_heartbeat_no_pong_concurrent_receive( assert isinstance(msg.data, ServerTi...
[ "tests/test_client_ws_functional.py::test_close_websocket_while_ping_inflight[pyloop]" ]
[ "tests/test_client_ws_functional.py::test_send_recv_text[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes_bad_type[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_text_bad_type[pyloop]", "tests/test_client_w...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
c6e19535b9d98aba24d03a2356504b8cc5aab0ba
2023-12-19 14:50:59
docker.io/swerebenchv2/cta-observatory-ctapipe:2485-c6e1953
cta-observatory__ctapipe-2485
Class: FromNameWarning Location: ctapipe.instrument.warnings.FromNameWarning Inputs: None (inherits from UserWarning). Used as a warning type to indicate that a ``.from_name`` method was called, which may return instrument data that does not match the event data. Outputs: Raises a ``UserWarning`` subclass when emitted ...
python
BSD-3-Clause
diff --git a/docs/changes/2485.maintenance.rst b/docs/changes/2485.maintenance.rst new file mode 100644 index 00000000..52f136d1 --- /dev/null +++ b/docs/changes/2485.maintenance.rst @@ -0,0 +1,7 @@ +The ``from_name`` methods of instrument description classes now raise a warning +that it is better to access instrument ...
Add a note to CameraGeometry docs about from_name() Note that from_name() is not guaranteed to correspond with event data. Closes #2484
Inconsistent LSTCam pixels ordering when importing using CameraGeometry.from_name The LSTCam pixel positions ordering obtained using `CameraGeometry.from_name('LSTCam')` differs from the ordering obtained using `subarray.tel[1].camera.geometry.pix_x ` Consequently, using `CameraGeometry.from_name('LSTCam')` leads ...
cta-observatory/ctapipe
diff --git a/src/ctapipe/conftest.py b/src/ctapipe/conftest.py index 584385ec..42d53fc0 100644 --- a/src/ctapipe/conftest.py +++ b/src/ctapipe/conftest.py @@ -10,7 +10,7 @@ from astropy.coordinates import EarthLocation from pytest_astropy_header.display import PYTEST_HEADER_MODULES from ctapipe.core import run_tool...
[ "src/ctapipe/image/tests/test_cleaning.py::test_dilate", "src/ctapipe/image/tests/test_cleaning.py::test_tailcuts_clean", "src/ctapipe/image/tests/test_cleaning.py::test_tailcuts_clean_threshold_array", "src/ctapipe/image/tests/test_cleaning.py::test_mars_cleaning_1st_pass", "src/ctapipe/image/tests/test_cl...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://ctapipe.readthedocs.io/en/latest/auto_examples...
8f2e4bd768dc8a9e0a8f6fb8b6cacd6c3a8f518e
2025-03-27 23:13:19
docker.io/swerebenchv2/diaoul-subliminal:1242-8f2e4bd
diaoul__subliminal-1242
Method: scan_video_path(filepath: str | os.PathLike[str], *, name: str | None = None, absolute_path: bool = False, verbose: int = 0, debug: bool = False) -> Video | None Location: src/subliminal/cli.py Inputs: - **filepath** – path (relative or absolute) to a video file to be scanned. - **name** – optional display n...
python
MIT
diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 5dc7578..1d21319 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -126,31 +126,10 @@ jobs: with: persist-credentials: false fetch-depth: 0 - - name: Install other test software (on Linux...
CLI: add --use-absolute-path to choose if path is converted to absolute closes #1216
Video is guessed by transforming to absolute path This was a change introduced by #1084. When calling: ```shell subliminal -l en 1x1.avi ``` "1x1.avi" is transformed to an absolute path, to "/<current folder>/1x1.avi". As `guessit` uses the path and not only the file name to guess the video information, it will use...
Diaoul/subliminal
diff --git a/.github/actions/prepare-tests/action.yaml b/.github/actions/prepare-tests/action.yaml new file mode 100644 index 0000000..00fbeb3 --- /dev/null +++ b/.github/actions/prepare-tests/action.yaml @@ -0,0 +1,62 @@ +name: 'Download data for tests' +description: 'Download .mkv and compress them with rar to be use...
[ "tests/test_core.py::test_save_subtitles", "tests/test_core.py::test_save_subtitles_single_directory_encoding", "tests/test_core.py::test_save_subtitles_convert", "tests/test_subtitle.py::test_subtitle_text", "tests/test_subtitle.py::test_subtitle_none_content", "tests/test_subtitle.py::test_subtitle_gues...
[ "tests/test_core.py::test_check_video_languages", "tests/test_core.py::test_check_video_age", "tests/test_core.py::test_check_video_undefined", "tests/test_core.py::test_search_external_subtitles", "tests/test_core.py::test_search_external_subtitles_archive", "tests/test_core.py::test_search_external_subt...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.83, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
c4e793b76741625e0c717560f79fc101f0054aa8
2021-09-05 22:34:35
docker.io/swerebenchv2/samuelcolvin-pydantic:3177-c4e793b
samuelcolvin__pydantic-3177
Function: validate_arguments(func: Callable, *, config: dict | None = None) Location: pydantic.decorator.validate_arguments Inputs: - **func** – the function to be wrapped; any callable whose parameters will be validated. - **config** – optional mapping used to customize validation; currently supports the key *...
python
MIT
diff --git a/changes/3161-PrettyWood.md b/changes/3161-PrettyWood.md new file mode 100644 index 000000000..3e037e594 --- /dev/null +++ b/changes/3161-PrettyWood.md @@ -0,0 +1,1 @@ +`validate_arguments` now supports `extra` customization (used to always be `Extra.forbid`) \ No newline at end of file diff --git a/pydanti...
feat: support custom `extra` in `validate_arguments` <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Change Summary <!-- ...
"extra" config not respected for TypedDicts in functions ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug <...
samuelcolvin/pydantic
diff --git a/tests/test_decorator.py b/tests/test_decorator.py index ea06368b3..97b78f88e 100644 --- a/tests/test_decorator.py +++ b/tests/test_decorator.py @@ -6,9 +6,9 @@ from pathlib import Path from typing import List import pytest -from typing_extensions import Annotated +from typing_extensions import Annotate...
[ "tests/test_decorator.py::test_validate_extra" ]
[ "tests/test_decorator.py::test_args", "tests/test_decorator.py::test_wrap", "tests/test_decorator.py::test_kwargs", "tests/test_decorator.py::test_untyped", "tests/test_decorator.py::test_var_args_kwargs[True]", "tests/test_decorator.py::test_var_args_kwargs[False]", "tests/test_decorator.py::test_field...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "intent...
13a25ba096dedb4e22d70f82874ff65922ab0a97
2024-05-03 10:39:43
docker.io/swerebenchv2/stfc-psyclone:2567-13a25ba
stfc__psyclone-2567
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/src/psyclone/psyir/backend/fortran.py b/src/psyclone/psyir/backend/fortran.py index d1dccfe2f..f373830f1 100644 --- a/src/psyclone/psyir/backend/fortran.py +++ b/src/psyclone/psyir/backend/fortran.py @@ -34,6 +34,7 @@ # Authors R. W. Ford and S. Siso, STFC Daresbury Lab # Modified J. Henrichs, Bureau of ...
(Closes #1333) Unary minus parenthesizing Some very small changes to the Fortran backend so that `UnaryOperation.create(UnaryOperation.Operator.MINUS, ...)` nodes get parenthesized when needed. Explicitly deals with power operations as `(-a) ** b` was being written as `-a ** b`, which is wrong due to operator preced...
Unary operator output without brackets The following invalid code is being output by the Fortran Writer `d(j) = d(j) + -a(i) * y` There should be brackets around the unary '-' operator. The PSyIR looks like: ``` Assignment[] ArrayReference[name:'d'] Reference[name:'j'] BinaryOperation[op...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyad/transformations/test_assignment_trans.py b/src/psyclone/tests/psyad/transformations/test_assignment_trans.py index 15201f9fe..0f1e69cec 100644 --- a/src/psyclone/tests/psyad/transformations/test_assignment_trans.py +++ b/src/psyclone/tests/psyad/transformations/test_assignment_tran...
[ "src/psyclone/tests/psyad/transformations/test_assignment_trans.py::test_multi_valued_sub", "src/psyclone/tests/psyir/backend/fortran_test.py::test_fw_mixed_operator_precedence" ]
[ "src/psyclone/tests/psyad/transformations/test_assignment_trans.py::test_zero", "src/psyclone/tests/psyad/transformations/test_assignment_trans.py::test_single_assign", "src/psyclone/tests/psyad/transformations/test_assignment_trans.py::test_single_assign_fail", "src/psyclone/tests/psyad/transformations/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e32821d612177e8506b1fdb0989d0213d9bb5c03
2024-07-24 05:07:06
docker.io/swerebenchv2/aristanetworks-anta:764-e32821d
aristanetworks__anta-764
Method: VerifyLACPInterfacesStatus.render(self, template: AntaTemplate) → list[AntaCommand] Location: anta/tests/interfaces.py (class VerifyLACPInterfacesStatus) Inputs: - `self` – instance of VerifyLACPInterfacesStatus containing parsed test inputs. - `template` – AntaTemplate with the command string `"show lacp inte...
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 6747e766..c1e1f642 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -21,6 +21,8 @@ REGEXP_TYPE_EOS_INTERFACE = r"^(Dps|Ethernet|Fabric|Loopback|Management|Port-Cha """Match EOS interface types like Ethernet1/1, Vlan1, Loopback1, etc.""" REG...
feat(anta): Added test case to verify Link Aggregation Control Protocol (LACP) functionality # Description **Verify LACP functionality using show lacp interface <MLAG interface>.** - Interface should be bundled in given port channel. - Aggregated link state should be active, LongTimeout( Indicates a longer inter...
Add test case to verify Link Aggregation Control Protocol (LACP) functionality **Verify LACP functionality using `show lacp interface <MLAG interface>`.** **Pass/Fail Criteria** 1. Interface should be bundled in given port channel. 2. Aggregated link state should be `active, LongTimeout`( Indicates a longer in...
aristanetworks/anta
diff --git a/anta/tests/interfaces.py b/anta/tests/interfaces.py index dfbf15aa..9ff1cf35 100644 --- a/anta/tests/interfaces.py +++ b/anta/tests/interfaces.py @@ -15,7 +15,7 @@ from pydantic import BaseModel, Field from pydantic_extra_types.mac_address import MacAddress from anta import GITHUB_SUGGESTION -from anta...
[ "tests/units/anta_tests/test_interfaces.py::test[<property", "tests/units/test_custom_types.py::test_regexp_path_markers", "tests/units/test_custom_types.py::test_regexp_bgp_l2vpn_afi", "tests/units/test_custom_types.py::test_regexp_bgp_ipv4_mpls_labels", "tests/units/test_custom_types.py::test_regex_bgp_ip...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
73e03e325cf4c6d0ee1503590a4eb972bd0841c8
2020-09-25 10:40:11
docker.io/swerebenchv2/datalad-datalad:4963-73e03e3
datalad__datalad-4963
Method: MetadataIndexer.__init__(self, metadata_format_name: str) Location: datalad.metadata.indexers.base.MetadataIndexer Inputs: - **metadata_format_name** (str): name of the metadata format that the indexer will handle; used to differentiate indexers for different extractor outputs. Outputs: - None (initialises th...
python
custom-check-github
diff --git a/datalad/metadata/indexers/__init__.py b/datalad/metadata/indexers/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/datalad/metadata/indexers/base.py b/datalad/metadata/indexers/base.py new file mode 100644 index 000000000..3696e86c5 --- /dev/null +++ b/datalad/metadata/indexers/base...
NF: add infrastructure for specialized indexers This PR introduces an infrastructure for specialized indexers, which means indexers, that are specifically built to generate an index from metadata of a given format (the metadata format name is the same as the name of the extractor that generated the metadata). If datala...
Add a plugin-in infrastructure for specialized index-creators To support search, datalad creates an index from the metadata that is emitted by the extractors. This index is a set of key-value pairs, where the keys are dotted-name representations of the objects that the extractors return, for example: "datalad_core.id"....
datalad/datalad
diff --git a/datalad/metadata/tests/test_search.py b/datalad/metadata/tests/test_search.py index 9d5514ed1..6610ac7fc 100644 --- a/datalad/metadata/tests/test_search.py +++ b/datalad/metadata/tests/test_search.py @@ -11,13 +11,16 @@ import logging from shutil import copy -from unittest.mock import patch +from unitt...
[ "datalad/metadata/tests/test_search.py::test_listdict2dictlist", "datalad/metadata/tests/test_search.py::test_meta2autofield_dict", "datalad/metadata/tests/test_search.py::test_external_indexer", "datalad/metadata/tests/test_search.py::test_faulty_external_indexer", "datalad/metadata/tests/test_search.py::t...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
aeef5b397f2fd0cbda831480ab16812b2fde5043
2022-07-02 02:35:51
docker.io/swerebenchv2/apiflask-apiflask:322-aeef5b3
apiflask__apiflask-322
Method: APIFlask.make_response(self, rv) → Response Location: src/apiflask/app.py Inputs: - **rv** – the return value from a view function; can be a `list`, a `tuple` whose first element is a `list` (followed optionally by status code and headers), a `dict`, `str`, `bytes`, a generator of strings, or a Flask `Response...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index b738d89..2e53271 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ Released: - +- Allow the view function to return a list as JSON response ([issue #321][issue_321]). - Add new docs UI support: RapiDoc, RapiPDF, and Elements ([pr #308][pr_308]). - Add a `docs_ui`...
Automatic serialize list return value to JSON fixes #321 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or update relevant docs, in the `docs` folder and in code docstring. - [x] Add an entry in `CHANGES.md` summarizing the change ...
Allow returning list as JSON response Like how dict return value was handled: ```py @app.get('/') def many(): return ['foo', 'bar', 'baz'] # -> become JSON response ```
apiflask/apiflask
diff --git a/tests/test_app.py b/tests/test_app.py index ca2d774..4b9742c 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -273,3 +273,25 @@ def test_docs_ui(ui_name): def test_bad_docs_ui(): with pytest.raises(ValueError): APIFlask(__name__, docs_ui='bad') + + +def test_return_list_as_json(app,...
[ "tests/test_app.py::test_return_list_as_json" ]
[ "tests/test_app.py::test_app_init", "tests/test_app.py::test_json_errors", "tests/test_app.py::test_json_errors_reuse_werkzeug_headers", "tests/test_app.py::test_view_function_arguments_order", "tests/test_app.py::test_error_callback", "tests/test_app.py::test_apply_custom_error_callback_for_generic_error...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
4c356306273153d5dc26fc5772b106b4f750095f
2024-03-11 17:59:37
docker.io/swerebenchv2/keras-team-keras:19284-4c35630
keras-team__keras-19284
Method: Attention.compute_output_shape(self, input_shape) Location: keras.layers.attention.attention.Attention.compute_output_shape Inputs: - input_shape: sequence (list/tuple) of three shape tuples corresponding to the query, value, and key tensors respectively (e.g., [(batch, T_q, d_q), (batch, T_v, d_v), (batch, T_...
python
Apache-2.0
diff --git a/keras/dtype_policies/dtype_policy.py b/keras/dtype_policies/dtype_policy.py index c546022f5..7c8586c2a 100644 --- a/keras/dtype_policies/dtype_policy.py +++ b/keras/dtype_policies/dtype_policy.py @@ -173,9 +173,6 @@ class FloatDTypePolicy(DTypePolicy): return "float16", "float32" elif...
Use Value dim shape for Attention compute_output_shape Fixes #19257 by using Value dim shape for `compute_output_shape` of Attention layer.
Keras 3 Attention layer value tensor dimension hi, I found the below would not return the proper size output in Keras 3 (but works fine in Keras 2) Please help to fix it, Thanks. ```python import keras from keras import layers i = layers.Input((8,4)) xq = layers.Conv1D(5,1)(i) xk = layers.Conv1D(...
keras-team/keras
diff --git a/keras/layers/attention/attention_test.py b/keras/layers/attention/attention_test.py index c6010b674..102717994 100644 --- a/keras/layers/attention/attention_test.py +++ b/keras/layers/attention/attention_test.py @@ -342,3 +342,19 @@ class AttentionTest(testing.TestCase): computed_mask = layer....
[ "keras/layers/attention/attention_test.py::AttentionTest::test_attention_compute_output_shape" ]
[ "keras/layers/attention/attention_test.py::AttentionTest::test_attention_basics", "keras/layers/attention/attention_test.py::AttentionTest::test_attention_calculate_score_mask_no_causal_no_vmask", "keras/layers/attention/attention_test.py::AttentionTest::test_attention_calculate_score_mask_with_causal_and_vmask...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
410f324f3f3f75a97e8c3b17462878b1895ec698
2022-08-01 21:18:23
docker.io/swerebenchv2/qiskit-qiskit-ibm-runtime:452-410f324
qiskit__qiskit-ibm-runtime-452
Method: QiskitRuntimeService.__init__(self, *, token: str | None = None, url: str | None = None, channel: str | None = None, instance: str | None = None, **kwargs) Location: qiskit_ibm_runtime.runtime_service.QiskitRuntimeService Inputs: - token – authentication token; if omitted the method will read the environment v...
python
Apache-2.0
diff --git a/qiskit_ibm_runtime/accounts/management.py b/qiskit_ibm_runtime/accounts/management.py index c4275f1f..6590f684 100644 --- a/qiskit_ibm_runtime/accounts/management.py +++ b/qiskit_ibm_runtime/accounts/management.py @@ -145,7 +145,7 @@ class AccountManager: ) return Account.from...
Specify service parameter channel through env variable <!-- ⚠️ The pull request title should be short detailed and understandable for all. ⚠️ Also, please add a release note file using reno if the change needs to be documented in the release notes. ⚠️ If your pull request fixes an open issue, please link to the i...
Add ability for all `QiskitRuntimeService` constructor arguments be specified through env variables. **What is the expected feature or enhancement?** Currently in order to connect to ibm-quantum channel I need to create instance of `QiskitRuntimeService` and specify constructur argument `channel`. ```python ser...
Qiskit/qiskit-ibm-runtime
diff --git a/test/unit/test_account.py b/test/unit/test_account.py index d298170e..5d697a55 100644 --- a/test/unit/test_account.py +++ b/test/unit/test_account.py @@ -716,6 +716,25 @@ class TestEnableAccount(IBMTestCase): channel = channel or "ibm_cloud" self.assertEqual(service._accou...
[ "test/unit/test_account.py::TestEnableAccount::test_enable_account_only_env_variables" ]
[ "test/unit/test_account.py::TestAccount::test_invalid_channel", "test/unit/test_account.py::TestAccount::test_invalid_instance", "test/unit/test_account.py::TestAccount::test_invalid_proxy_config", "test/unit/test_account.py::TestAccount::test_invalid_token", "test/unit/test_account.py::TestAccount::test_in...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
b173e90e62844a31538b870b70a33cd102000b09
2025-04-30 13:38:56
docker.io/swerebenchv2/sdv-dev-rdt:989-b173e90
sdv-dev__rdt-989
Method: UnixTimestampEncoder.__init__(self, datetime_format=None) Location: rdt.transformers.datetime.UnixTimestampEncoder Inputs: datetime_format – optional string defining how input datetime strings are parsed (supports %Y, %m, %d, %H, %M, %S, %f, %Z, %z). If None, numeric Unix timestamps are expected. Outputs: Insta...
python
custom-check-github
diff --git a/.gitignore b/.gitignore index 9f49143..bd06457 100644 --- a/.gitignore +++ b/.gitignore @@ -110,4 +110,4 @@ ENV/ .DS_Store # Vim -.*.swp +*.swp diff --git a/pyproject.toml b/pyproject.toml index 25f844c..3de8222 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,7 @@ dependencies = [ "s...
UnixTimestampEncoder: Fix reverse transform missing timezone information for UTC datetime data Resolves #987 CU-86b4tkdmn This pull request also modularizes the code base for the `UnixTimestampEncoder` in order to help us overwrite methods in future if required. ### Additional changes: * Fallback to `UTC` if t...
For datetimes: Reverse transformed data no longer includes my timezone ### Environment Details * RDT version: 1.16.0 * Python version: 3.11 * Operating System: Linux (Colab notebook) ### Error Description My original datetime column is in a format that contains timezone information -- usually denoted by `%Z` (indicati...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_datetime.py b/tests/integration/transformers/test_datetime.py index 148cd1d..4daf5ee 100644 --- a/tests/integration/transformers/test_datetime.py +++ b/tests/integration/transformers/test_datetime.py @@ -1,5 +1,6 @@ import numpy as np import pandas as pd +from pandas.a...
[ "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder", "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_different_format", "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixti...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/sdv-dev/RDT/blob/de8884c9d6636eb4ab...
78335e9b49eff2eaf2dc31d0bcc3caa0169cfc60
2021-02-16 17:13:15
docker.io/swerebenchv2/python-attrs-attrs:760-78335e9
python-attrs__attrs-760
No new interfaces are introduced.
python
MIT
diff --git a/src/attr/_make.py b/src/attr/_make.py index 8bc8634..76b1c62 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -286,6 +286,36 @@ def attrib( ) +def _compile_and_eval(script, globs, locs=None, filename=""): + """ + "Exec" the script with the given global (globs) and local (locs) varia...
Fix issue with get_type_hints(cls.__init__) and refactor This fixes #593 I factored out the call to eval(compile... and added a generic `_make_method` method to remove repeated code. # Pull Request Check List This is just a friendly reminder about the most common mistakes. Please make sure that you tick all ...
Deferred type annotations are evaluated in the wrong execution context To reproduce, run the following program: ```python import attr from typing import List, get_type_hints @attr.s class C: x = attr.ib(type='List[int]') print(get_type_hints(C.__init__)) ``` #### Expected result ``` {'return': <cla...
python-attrs/attrs
diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 3e19aa1..0b27099 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -578,3 +578,32 @@ class TestAnnotations: assert typing.List[B] == attr.fields(A).a.type assert A == attr.fields(B).a.type + + def tes...
[ "tests/test_annotations.py::TestAnnotations::test_init_type_hints" ]
[ "tests/test_annotations.py::TestAnnotations::test_basic_annotations", "tests/test_annotations.py::TestAnnotations::test_catches_basic_type_conflict", "tests/test_annotations.py::TestAnnotations::test_typing_annotations", "tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
3f4872a4d831947b888e15fdb9986e7cc216a8f2
2022-07-31 22:03:44
docker.io/swerebenchv2/pycqa-flake8:1631-3f4872a
pycqa__flake8-1631
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/flake8/plugins/finder.py b/src/flake8/plugins/finder.py index fb87d0d..9e9e3af 100644 --- a/src/flake8/plugins/finder.py +++ b/src/flake8/plugins/finder.py @@ -179,6 +179,8 @@ def _flake8_plugins( def _find_importlib_plugins() -> Generator[Plugin, None, None]: + # some misconfigured pythons (RH...
prevent duplicate plugin discovery on misconfigured pythons for example, `venv`-virtualenvs on fedora have both `lib` and `lib64` on `sys.path` despite them being the same. this causes `importlib.metadata.distributions` to double-discover. ```console $ docker run --rm -t fedora:latest bash -c 'dnf install -qq -y...
flake8 does not start after upgrade from 4.0.1 to 5.0.0 ### how did you install flake8? ```console pip install flake8 ``` ### unmodified output of `flake8 --bug-report` ```json { "error": "impossible to provide this, --bug-report exits with an Exception" } ``` ### describe the problem #### what I expected to h...
PyCQA/flake8
diff --git a/tests/unit/plugins/finder_test.py b/tests/unit/plugins/finder_test.py index 3c11c64..63f8156 100644 --- a/tests/unit/plugins/finder_test.py +++ b/tests/unit/plugins/finder_test.py @@ -361,6 +361,23 @@ unrelated = unrelated:main ] +def test_duplicate_dists(flake8_dist): + # some poorly packaged ...
[ "tests/unit/plugins/finder_test.py::test_duplicate_dists" ]
[ "tests/unit/plugins/finder_test.py::test_valid_plugin_prefixes[E]", "tests/unit/plugins/finder_test.py::test_valid_plugin_prefixes[E1]", "tests/unit/plugins/finder_test.py::test_valid_plugin_prefixes[E123]", "tests/unit/plugins/finder_test.py::test_valid_plugin_prefixes[ABC]", "tests/unit/plugins/finder_tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
251fa09289ee1e105295101a6a58f674eeb0fd92
2021-03-23 13:08:34
docker.io/swerebenchv2/networkx-networkx:4694-251fa09
networkx__networkx-4694
Function: read_graphml(path, node_type=str, edge_key_type=int, force_multigraph=False) Location: networkx.readwrite.graphml.read_graphml Inputs: - **path** – a file‑like object or filename (str) pointing to a GraphML file (including yEd “yfiles”). - **node_type** – optional callable to convert node IDs (default str)...
python
custom-check-github
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index d15747e19..4ad61d8ce 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -45,7 +45,7 @@ Development Workflow # Activate it source networkx-dev/bin/activate # Install main development and runtime dependencies of networkx - p...
Decode GraphML/yEd shape type This fixes #4693 Example code: ```python g = nx.read_graphml(fname) print(nx.get_node_attributes(g, "shape_type")) ``` Outputs: ```python {'n0': 'diamond', 'n1': 'roundrectangle', 'n2': 'diamond', 'n3': 'diamond', 'n4': 'diamond', 'n5': 'roundrectangle'} ```
Getting shape types from GraphML written by yEd <!-- If you have a general question about NetworkX, please use the discussions tab to create a new discussion --> <!--- Provide a general summary of the issue in the Title above --> ### Current Behavior <!--- Tell us what happens instead of the expected behavior ...
networkx/networkx
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d1d5f931..bf998628f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,8 +48,8 @@ jobs: - name: Install packages run: | pip install --upgrade pip wheel setuptools - pip install -r require...
[ "networkx/readwrite/tests/test_graphml.py::TestReadGraphML::test_yfiles_extension" ]
[ "networkx/algorithms/components/tests/test_biconnected.py::test_barbell", "networkx/algorithms/components/tests/test_biconnected.py::test_articulation_points_repetitions", "networkx/algorithms/components/tests/test_biconnected.py::test_articulation_points_cycle", "networkx/algorithms/components/tests/test_bic...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.yworks.com/products/yed", "https://d...
56319cb80f2b1df9d0776aa73a0696ff6db19df7
2024-02-14 02:52:16
docker.io/swerebenchv2/hypothesisworks-hypothesis:3882-56319cb
hypothesisworks__hypothesis-3882
No new interfaces are introduced.
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..c6b816b13 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,5 @@ +RELEASE_TYPE: patch + +This patch improves argument-to-json conversion for :doc:`observability <observability>` +output. Checking...
Allow dataclasses etc to have custom json formats fix #3880 I added a simple test to ensure it's working. I haven't done performance testing but am happy to if this is in a critical path.
Can we consider optionally disabling automatic repr-printing and jsonification when `TESTCASE_CALLBACKS` are present? Thanks for Hypothesis, it's awesome! I have a REPL set up for continuously testing the program I'm working on using some hypothesis tests. The inputs are fairly large dataclasses that are unfortunate...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_searchstrategy.py b/hypothesis-python/tests/cover/test_searchstrategy.py index d11a1bdc8..e545cb185 100644 --- a/hypothesis-python/tests/cover/test_searchstrategy.py +++ b/hypothesis-python/tests/cover/test_searchstrategy.py @@ -160,3 +160,16 @@ def test_jsonable_very_lar...
[ "hypothesis-python/tests/cover/test_searchstrategy.py::test_jsonable_override" ]
[ "hypothesis-python/tests/cover/test_searchstrategy.py::test_or_errors_when_given_non_strategy", "hypothesis-python/tests/cover/test_searchstrategy.py::test_just_strategy_uses_repr", "hypothesis-python/tests/cover/test_searchstrategy.py::test_just_strategy_does_not_draw", "hypothesis-python/tests/cover/test_se...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/blob/56319...
a5ca749f1e366158a7e312c628d5344e55a8239b
2020-10-01 20:51:32
docker.io/swerebenchv2/alteryx-evalml:1254-a5ca749
alteryx__evalml-1254
Method: HighVarianceCVDataCheck.__init__(self, threshold: float = 0.2) Location: evalml/data_checks/high_variance_cv_data_check.py Inputs: - threshold (float, optional): minimum acceptable coefficient of variation; must be greater than 0.0. If a negative value is supplied, a ValueError is raised. Outputs: - No return...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index b7a2f522..5f51fee8 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -9,6 +9,7 @@ Release Notes * Added stacked ensemble component classes (StackedEnsembleClassifier, StackedEnsembleRegressor) :pr:`...
Add HighVarianceCVDataCheck Fixes #1117.
Replace `high_variance_cv` warning in `AutoMLSearch` to use a DataCheck Currently if our cross validation scores have high variance - we issue a warning and append a column to AutoML results. This can be updated to use a DataCheck instead.
alteryx/evalml
diff --git a/evalml/tests/automl_tests/test_automl.py b/evalml/tests/automl_tests/test_automl.py index e190b3a0..585eb456 100644 --- a/evalml/tests/automl_tests/test_automl.py +++ b/evalml/tests/automl_tests/test_automl.py @@ -73,7 +73,7 @@ def test_search_results(X_y_regression, X_y_binary, X_y_multi, automl_type): ...
[ "evalml/tests/automl_tests/test_automl.py::test_automl_data_check_results_is_none_before_search", "evalml/tests/automl_tests/test_automl.py::test_automl_data_checks_raises_error[data_checks0]", "evalml/tests/automl_tests/test_automl.py::test_automl_data_checks_raises_error[data_checks1]", "evalml/tests/automl...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
1d9620cd8789cdf60434fa3bd73a32f2ec2a96d1
2024-08-21 18:05:07
docker.io/swerebenchv2/aio-libs-aiohttp:8823-1d9620c
aio-libs__aiohttp-8823
Method: HttpResponseParser.__init__(self, *, max_line_size: int, max_field_size: int, read_until_eof: bool = False, lax: bool = False) Location: aiohttp/http_parser.py -> class HttpResponseParser(HttpParser[RawResponseMessage]) Inputs: - max_line_size (int): maximum allowed size for a header line. - max_field_size (i...
python
custom-check-github
diff --git a/CHANGES/8823.bugfix.rst b/CHANGES/8823.bugfix.rst new file mode 100644 index 000000000..ea18e65fd --- /dev/null +++ b/CHANGES/8823.bugfix.rst @@ -0,0 +1,1 @@ +Fixed Python parser chunked handling with multiple Transfer-Encoding values -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/http_parser.py b/aioht...
Fix Python parser chunked handling with multiple Transfer-Encoding values Fixes #4436
Differences in transfer encoding handling between the C and Python HTTP parsers ## Long story short The C and Python parsers in aiohttp do not handle transfer encoding the same way, and neither behaves correctly. The C parser simply discards any value that isn't `chunked` and therefore doesn't handle things like `gzip...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index cba522bc4..2ae0d22fb 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -32,7 +32,7 @@ coverage==7.6.1 # via # -r requirements/test.in # pytest-cov -cryptography==41.0.3 +cryptography==43.0.0 # via trustme exception...
[ "tests/test_http_parser.py::test_request_te_last_chunked[py-parser-pyloop]", "tests/test_http_parser.py::test_http_response_parser_notchunked[py-parser-pyloop]", "tests/test_http_parser.py::test_http_response_parser_last_chunked[py-parser-pyloop]" ]
[ "tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]", "tests/test_http_parser.py::test_reject_obsolete_line_folding[py-parser-pyloop]", "tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]", "tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-\"]", "tests/test_http_pa...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://gist.github.com/JustAnotherArchivist/ba23cb43481...
83c6b44c0c916aa98ade4435634baf1a1058007c
2024-12-28 21:58:51
docker.io/swerebenchv2/pymc-devs-pytensor:1141-83c6b44
pymc-devs__pytensor-1141
Function: searchsorted(a, v, side='left', sorter=None) Location: pytensor.tensor.extra_ops.searchsorted Inputs: - **a**: 1‑D tensor of sorted values (ascending order). - **v**: tensor of values whose insertion indices are to be found; broadcastable to the output shape. - **side** (optional, default `'left'`): string, ...
python
custom-check-github
diff --git a/pytensor/link/jax/dispatch/extra_ops.py b/pytensor/link/jax/dispatch/extra_ops.py index a9e36667e..87e55f100 100644 --- a/pytensor/link/jax/dispatch/extra_ops.py +++ b/pytensor/link/jax/dispatch/extra_ops.py @@ -10,6 +10,7 @@ from pytensor.tensor.extra_ops import ( FillDiagonalOffset, RavelMultiI...
Pytensor-native interpolation functions <!-- !! Thank your for opening a PR !! --> <!--- Provide a self-contained summary of your changes in the Title above --> <!--- This is what will be shown in the automatic release notes: https://github.com/pymc-devs/pytensor/releases --> ## Description <!--- Describe your...
Implement 1d interpolation ### Description Pytensor doesn't have a an equivalent of `np.interp` or `scipy.interpolate.interp1d`. This is related to https://github.com/pymc-devs/pymc/issues/6838, which asks for a spline implementation in PyMC. We could eventually build up to that, but I think some simple cases (linear,...
pymc-devs/pytensor
diff --git a/tests/link/jax/test_extra_ops.py b/tests/link/jax/test_extra_ops.py index 142741337..0c8fb9281 100644 --- a/tests/link/jax/test_extra_ops.py +++ b/tests/link/jax/test_extra_ops.py @@ -6,6 +6,7 @@ from pytensor.configdefaults import config from pytensor.graph.fg import FunctionGraph from pytensor.graph.op...
[ "tests/tensor/test_interpolate.py::test_interp", "tests/tensor/test_interpolate.py::test_interp_padded", "tests/tensor/test_interpolate.py::test_interpolate_scalar_no_extrapolate[None-None-linear]", "tests/tensor/test_interpolate.py::test_interpolate_scalar_no_extrapolate[None-None-nearest]", "tests/tensor/...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pymc-devs/pymc/issues/6838" ], ...
b652ed18a764e29877e4e2feca42ccd1ccb01a7f
2025-01-07 05:46:43
docker.io/swerebenchv2/aristanetworks-anta:993-b652ed1
aristanetworks__anta-993
Method: VerifyBGPRedistribution.test(self) Location: anta/tests/routing/bgp.py Inputs: None (uses instance state – inputs are provided via the AntaTest.Input model) Outputs: None – sets the test result (success or failure) on self.result. Description: Executes the BGP redistribution verification for each VRF define...
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index ccd0b5f6..aa36d2fc 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -24,6 +24,13 @@ REGEXP_TYPE_HOSTNAME = r"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.) """Match hostname like `my-hostname`, `my-hostname-1`, `my-hostname-1-2`."""...
feat(anta): Added testcase to verify the BGP Redistributed Routes # Description Added testcase to verify the BGP Redistributed Routes This test performs the following checks for each specified route: 1. Ensures that the expected address-family is configured on the device. 2. Confirms that the ...
Add testcase to verify the BGP Redistributed Routes 1. Ensures that the expected address-family is configured on the device. 2. Confirms that the redistributed route protocol and route map match the expected values for a route
aristanetworks/anta
diff --git a/anta/tests/routing/bgp.py b/anta/tests/routing/bgp.py index b2677340..7522c254 100644 --- a/anta/tests/routing/bgp.py +++ b/anta/tests/routing/bgp.py @@ -11,13 +11,15 @@ from typing import Any, ClassVar, TypeVar from pydantic import field_validator -from anta.input_models.routing.bgp import BgpAddress...
[ "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success-peer-state-check-true]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPe...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.84, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
47deef1c9dcfdcb24914379c2a2b2d8f3da54008
2023-05-20 03:47:16
docker.io/swerebenchv2/pyomo-pyomo:2833-47deef1
pyomo__pyomo-2833
No new interfaces are introduced.
python
custom-check-github
diff --git a/pyomo/repn/plugins/baron_writer.py b/pyomo/repn/plugins/baron_writer.py index 3b7d9bee2..72802fbc6 100644 --- a/pyomo/repn/plugins/baron_writer.py +++ b/pyomo/repn/plugins/baron_writer.py @@ -61,7 +61,7 @@ def _handle_PowExpression(visitor, node, values): if type(arg) in native_types: ...
Gams/Baron: ensure negative numbers are parenthesized ## Fixes #2819 . ## Summary/Motivation: This resolves an issue where negative constants were not being parenthesized, which lead to incorrect expressions in certain contexts (like exponentiation) ## Changes proposed in this PR: - ensure negative constants ar...
BARON Writer Outputs Inconsistent Constraint Expressions for Model with Fixed `Var` Objects ## Summary <!-- Explain, in a clear and concise way, the command you ran and the result you were trying to achieve. Example: "I ran `pyomo solve` to optimize a model and ..." --> For fixed reals $x, t, u_0, u_1$, consider ...
Pyomo/pyomo
diff --git a/pyomo/repn/tests/baron/test_baron.py b/pyomo/repn/tests/baron/test_baron.py index b919020d9..b425474cb 100644 --- a/pyomo/repn/tests/baron/test_baron.py +++ b/pyomo/repn/tests/baron/test_baron.py @@ -260,6 +260,19 @@ class TestToBaronVisitor(unittest.TestCase): test = expression_to_string(e, varia...
[ "pyomo/repn/tests/baron/test_baron.py::TestToBaronVisitor::test_issue_2819", "pyomo/repn/tests/gams/test_gams.py::Test::test_issue_2819" ]
[ "pyomo/repn/tests/baron/test_baron.py::Test::test_branching_priorities", "pyomo/repn/tests/baron/test_baron.py::Test::test_exponential_NPV", "pyomo/repn/tests/baron/test_baron.py::Test::test_invalid_suffix", "pyomo/repn/tests/baron/test_baron.py::Test::test_no_column_ordering_linear", "pyomo/repn/tests/baro...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/Pyomo/pyomo/tree/b2101fd3c31dd4aeb97e...
fb57f4daee956cd813faa9189404221d0b43f874
2020-09-24 12:18:25
docker.io/swerebenchv2/astropenguin-xarray-dataclasses:2-fb57f4d
astropenguin__xarray-dataclasses-2
Method: DataArrayMeta.__getitem__(cls, options: Tuple[Dims, Dtype]) -> Type Location: xarray_dataclasses.typing.DataArrayMeta Inputs: - **options** – a two‑element tuple where the first element (`dims`) is either `None`, a string, or a sequence of strings specifying the fixed dimension names; the second element (`dtyp...
python
MIT
diff --git a/poetry.lock b/poetry.lock index 91c4a47..86edbc3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -38,12 +38,13 @@ description = "Classes Without Boilerplate" name = "attrs" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -version = "20.1.0" +version = "20.2.0" [package.ex...
Add typing module This PR closes #1.
Add typing module Add typing module which provides a type for `xarray.DataArray` with fixed `dims` and `dtype`. ```python DataArray[("x", "y"), "f8"] # DataArray[('x', 'y'), float64] ``` The type can be instantiated. ```python DataArray[("x", "y"), "f8"]([[0, 1], [2, 3]]) # <xarray.DataArray (x: 2, y:...
astropenguin/xarray-dataclasses
diff --git a/tests/test_typing.py b/tests/test_typing.py new file mode 100644 index 0000000..df1b1d4 --- /dev/null +++ b/tests/test_typing.py @@ -0,0 +1,52 @@ +# dependencies +import numpy as np +import xarray as xr +from pytest import mark +from xarray_dataclasses.typing import DataArray + + +# test datasets +dataarra...
[ "tests/test_typing.py::test_dims[None-None]", "tests/test_typing.py::test_dims[dims1-expected1]", "tests/test_typing.py::test_dims[x-expected2]", "tests/test_typing.py::test_dims[dims3-expected3]", "tests/test_typing.py::test_dims[dims4-expected4]", "tests/test_typing.py::test_dtype[None-None]", "tests/...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
b131f71de8bba96e367da7c7e9b5fbf721670e28
2021-05-19 04:23:56
docker.io/swerebenchv2/pallets-click:1913-b131f71
pallets__click-1913
Method: Option.__init__(self, param_decls: Sequence[str] | None = None, *, multiple: bool = False, count: bool = False, allow_from_autoenv: bool = True, type: ParamType | Any | None = None, help: str | None = None, hidden: bool = False, show_choices: bool = True, is_eager: bool = False, is_flag: bool = False, flag_valu...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 4438c15..7f103d0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,8 @@ Unreleased 3.8. :issue:`1889` - Arguments with ``nargs=-1`` only use env var value if no command line values are given. :issue:`1903` +- Flag options guess their type from ``flag_val...
detect type from flag_value If `type` is not given and the option is a flag, the type is detected from `flag_value` instead of falling back to `STRING`. This works even if `default=True` is given for feature flags, which simplifies `convert_type` a bit. For 8.1, a further change to consider is for `convert_type` to ...
flag_value converted to str in Click 8 Consider the following code: ```python import click @click.command() @click.option("--answer", flag_value=42) def main(answer): click.echo(repr(answer)) if __name__ == '__main__': main() ``` Under click 7, passing the `--answer` option to this script prin...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index 94e5eb8..50e6b5a 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -756,3 +756,10 @@ def test_option_with_optional_value(runner, args, expect): result = runner.invoke(cli, args, standalone_mode=False, catch_exceptions=False) as...
[ "tests/test_options.py::test_type_from_flag_value" ]
[ "tests/test_options.py::test_prefixes", "tests/test_options.py::test_invalid_option", "tests/test_options.py::test_invalid_nargs", "tests/test_options.py::test_nargs_tup_composite_mult", "tests/test_options.py::test_counting", "tests/test_options.py::test_unknown_options[--foo]", "tests/test_options.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e13a1685ecf34b5b629b21f21b3fead3cc5ee957
2019-10-09 16:12:50
docker.io/swerebenchv2/timothycrosley-isort:1029-e13a168
timothycrosley__isort-1029
Method: SortImports.__init__(self, file_contents: str, **config) Location: isort/isort.py Inputs: - **file_contents** (str): The source code whose imports should be processed. - **config** (dict, optional): Configuration options controlling sorting behavior. Notably, the new key **force_sort_within_sections** (...
python
MIT
diff --git a/isort/isort.py b/isort/isort.py index 48f65453..518c5f53 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -699,6 +699,9 @@ class _SortImports: ), ) + if self.config["force_sort_within_sections"]: + copied_comments = copy.deepcopy(self.comments) +...
Keep correct comment location with force_sort_within_sections Fixes #726
isort insists on moving PyCharm noinspection comment, breaking it [This import statement](https://github.com/eventbrite/pysoa/blob/9ce65ce5e7a2f934070bb30754f88d2cb400e9ff/tests/server/test_autoreloader.py#L17-L24) imports several protected (start with underscore) members from a module. PyCharm includes a special comme...
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index ae5eee89..0742e445 100644 --- a/test_isort.py +++ b/test_isort.py @@ -4222,6 +4222,25 @@ def test_isort_ensures_blank_line_between_import_and_comment() -> None: assert SortImports(file_contents=test_input, **config).output == expected_output +def test_moving_com...
[ "test_isort.py::test_moving_comments_issue_726" ]
[ "test_isort.py::test_happy_path", "test_isort.py::test_code_intermixed", "test_isort.py::test_correct_space_between_imports", "test_isort.py::test_sort_on_number", "test_isort.py::test_line_length", "test_isort.py::test_output_modes", "test_isort.py::test_qa_comment_case", "test_isort.py::test_length_...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/eventbrite/pysoa/blob/9ce65ce5e7a2f...
19cfbde2ebab364b4c145dfa836f53ce1fbca31b
2022-09-13 07:53:46
docker.io/swerebenchv2/hypothesisworks-hypothesis:3455-19cfbde
hypothesisworks__hypothesis-3455
No new interfaces are introduced.
python
custom-check-github
diff --git a/build.sh b/build.sh index 71c9f30ae..8f24e8881 100755 --- a/build.sh +++ b/build.sh @@ -23,8 +23,8 @@ if [ -n "${GITHUB_ACTIONS-}" ] || [ -n "${CODESPACES-}" ] ; then else # Otherwise, we install it from scratch # NOTE: tooling keeps this version in sync with ci_version in tooling - "$SCRIPTS...
Consistent skipping from explicit examples Closes #3453.
Change in behaviour with multiple examples and pytest.skip There is a change in behaviour between hypothesis 6.54.1 and 6.54.2. This change is for the better, I think, but just wanted to confirm it was expected, since it doesn't obviously line up with the only changelog entry: > This patch fixes our workaround for ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/pytest/test_skipping.py b/hypothesis-python/tests/pytest/test_skipping.py index 0433fe970..af92d3aae 100644 --- a/hypothesis-python/tests/pytest/test_skipping.py +++ b/hypothesis-python/tests/pytest/test_skipping.py @@ -39,3 +39,25 @@ def test_no_falsifying_example_if_pytest_skip(te...
[ "hypothesis-python/tests/pytest/test_skipping.py::test_issue_3453_regression" ]
[ "hypothesis-python/tests/pytest/test_skipping.py::test_no_falsifying_example_if_pytest_skip" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pytest-dev/pytest/issues/9159", ...
e5404d031ed61358323af100eea3ba247eb4141a
2015-08-09 01:45:07
docker.io/swerebenchv2/mapbox-mapbox-sdk-py:9-e5404d0
mapbox__mapbox-sdk-py-9
Function: iter_query(query) Location: mapbox.scripts.geocoder Inputs: *query* – a string that can be either a literal query, a filename, or “-” to indicate stdin; the function attempts to open the argument as a file; if that fails it treats it as a single-query string. Returns an iterator (list) of query strings, one p...
python
MIT
diff --git a/mapbox/__init__.py b/mapbox/__init__.py index fc30c44..c1889b3 100644 --- a/mapbox/__init__.py +++ b/mapbox/__init__.py @@ -24,7 +24,7 @@ class Geocoder(Service): def __init__(self, name='mapbox.places', access_token=None): self.name = name - self.baseuri = 'http://api.mapbox.com/v4/...
Handle reverse geocoding CLI input flexibly May be from a file, stream, or CLI arg and JSON or comma or ws-separated format. `[lng, lat]`, `lng, lat`, and `lng lat` are all acceptable. Closes #8. Also adds a helper function to make all inputs iterable and another to handle the various formats. The `--forward` and...
Coordinate format for reverse geocoding input I'm always looking for symmetry on the command line, and since a JSON array is the most straightforward output of forward geocoding, it would be great to be able to consume it when reverse geocoding. For example, this (using [jq](http://stedolan.github.io/jq/)) produces JSO...
mapbox/mapbox-sdk-py
diff --git a/tests/test_cli.py b/tests/test_cli.py index 6c0c64d..ad1a75d 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -2,6 +2,30 @@ import json from click.testing import CliRunner import responses from mapbox.scripts.cli import main_group +from mapbox.scripts.geocoder import coords_from_query, iter_que...
[ "tests/test_cli.py::test_iter_query_string", "tests/test_cli.py::test_iter_query_file", "tests/test_cli.py::test_coords_from_query_json", "tests/test_cli.py::test_cli_geocode_fwd", "tests/test_cli.py::test_cli_geocode_fwd_env_token", "tests/test_cli.py::test_cli_geocode_unauthorized", "tests/test_geocod...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://stedolan.github.io/jq/", "https://github....
86c21de02d842d91089f3e080f3b9f0162b6a330
2024-05-29 13:51:56
docker.io/swerebenchv2/more-itertools-more-itertools:845-86c21de
more-itertools__more-itertools-845
Function: doublestarmap(func, iterable) Location: more_itertools.more (exposed as mi.doublestarmap) Inputs: - func: a callable that expects keyword arguments matching the keys of each mapping in *iterable*. - iterable: an iterable of mapping objects (e.g., dict) whose keys will be unpacked into **func**. Outputs: - R...
python
MIT
diff --git a/docs/api.rst b/docs/api.rst index a24f35d..f179245 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -293,6 +293,7 @@ Others .. autoclass:: SequenceView .. autofunction:: time_limited .. autofunction:: map_if(iterable, pred, func, func_else=lambda x: x) +.. autofunction:: doublestarmap ---- diff --gi...
Add doublestarmap (closes #679) A continuation of work done by @Skeen in PR #680 on adding a doublestarmap function (see issue #679 for details). Hopefully this attempt will push it over the finish line. I fixed linting violations and improved the wording of the documentation.
Consider introducing starstarmap ### Description `starstarmap` is the lost cousin of `itertools.starmap`, so whereas the relation between `map` and `starmap` parallels the relation between `function(a,b)` and `function(*c)`, the relationship between `map` and `starstarmap` parallels the relation between `function(a,b...
more-itertools/more-itertools
diff --git a/tests/test_more.py b/tests/test_more.py index b3e2ade..7c19e0b 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -5803,3 +5803,48 @@ class JoinMappingTests(TestCase): def test_empty(self): self.assertEqual(dict(mi.join_mappings()), {}) + + +class DoubleStarMapTests(TestCase): + ...
[ "tests/test_more.py::DoubleStarMapTests::test_adding", "tests/test_more.py::DoubleStarMapTests::test_construction", "tests/test_more.py::DoubleStarMapTests::test_empty", "tests/test_more.py::DoubleStarMapTests::test_identity", "tests/test_more.py::DoubleStarMapTests::test_mismatch_function_different", "te...
[ "tests/test_more.py::ChunkedTests::test_even", "tests/test_more.py::ChunkedTests::test_none", "tests/test_more.py::ChunkedTests::test_odd", "tests/test_more.py::ChunkedTests::test_strict_being_true", "tests/test_more.py::ChunkedTests::test_strict_being_true_with_size_none", "tests/test_more.py::ChunkedTes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
5d09bc6a27d371dba2c5dbad56535f2987406bbe
2023-10-21 20:07:06
docker.io/swerebenchv2/pysal-libpysal:591-5d09bc6
pysal__libpysal-591
No new interfaces are introduced.
python
custom-check-github
diff --git a/libpysal/cg/alpha_shapes.py b/libpysal/cg/alpha_shapes.py index 5b87eaaf..dcccbd6b 100644 --- a/libpysal/cg/alpha_shapes.py +++ b/libpysal/cg/alpha_shapes.py @@ -12,6 +12,7 @@ Author(s): import numpy as np import scipy.spatial as spat from scipy import sparse +from packaging.version import Version fr...
MAINT: avoid most of the warnings coming from dev CI Some future-proofing, a lot of silencing. Got it down from 1200+ to 5, out of which 4 will be solved in upstream (https://github.com/apache/arrow/pull/38374) and one seems to be coming from `scipy.sparse` internals, so there's not a lot we can do apart from silencing...
GeoPandas FutureWarning in fuzzy_contiguity Hello, Just a heads up that `fuzzy_contiguity` produces a `FutureWarning` Example: ```python from libpysal.weights import fuzzy_contiguity import geopandas as gpd gdf = gpd.read_file("test.geojson") gdf = gdf.set_crs(epsg=4328, allow_override=True) fuzzy_conti...
pysal/libpysal
diff --git a/libpysal/cg/tests/test_ashapes.py b/libpysal/cg/tests/test_ashapes.py index f9e53a21..c2a1e750 100644 --- a/libpysal/cg/tests/test_ashapes.py +++ b/libpysal/cg/tests/test_ashapes.py @@ -3,12 +3,14 @@ from ...examples import get_path from ..alpha_shapes import alpha_shape, alpha_shape_auto import numpy as...
[ "libpysal/cg/tests/test_ashapes.py::Test_Alpha_Shapes::test_holes", "libpysal/weights/tests/test_util.py::Testutil::test_fuzzy_contiguity" ]
[ "libpysal/cg/tests/test_ashapes.py::Test_Alpha_Shapes::test_alpha_shapes", "libpysal/cg/tests/test_ashapes.py::Test_Alpha_Shapes::test_auto", "libpysal/cg/tests/test_ashapes.py::Test_Alpha_Shapes::test_circles", "libpysal/cg/tests/test_ashapes.py::Test_Alpha_Shapes::test_small_n", "libpysal/io/iohandlers/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
c627a5df976d4205520ba9614b93daeb1a9c535c
2023-07-10 16:16:58
docker.io/swerebenchv2/pennylaneai-pennylane:4343-c627a5d
pennylaneai__pennylane-4343
Method: HardwareHamiltonian.__add__(self, other) Location: pennylane/pulse/hardware_hamiltonian.py, class **HardwareHamiltonian** Inputs: - **self**: an instance of `HardwareHamiltonian`. - **other**: either another `HardwareHamiltonian`, an `int`, or a `float`. When `other` is a scalar, `0` or `0.0` returns a shal...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 93c39b88d..ef846119c 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -13,6 +13,10 @@ <h3>Improvements 🛠</h3> +* `HardwareHamiltonian`s can now be summed with `int` or `float`. + A sequence of `Hardw...
Support sum of `HardwareHamiltonian` and `int/float`. **Context:** The addition of `HardwareHamiltonian` instances needs to be implemented manually. This implementation currently does not support the addition between a `HardwareHamiltonian` and an `int` or a `float`. As a consequence, using the builtin `sum` on a sequ...
[BUG] `sum` not working with hardware Hamiltonians (transmons and rydberg) ### Expected behavior Working with hardware Hamiltonians, we add them together with similar syntax to `H = H_interaction + H_drive`. Often, we repeatedly add terms manually, e.g., `H_drive += qml.pulse.transmon_drive(amplitude, phase, freq, wir...
PennyLaneAI/pennylane
diff --git a/tests/pulse/test_hardware_hamiltonian.py b/tests/pulse/test_hardware_hamiltonian.py index 315aedf92..566c3c22e 100644 --- a/tests/pulse/test_hardware_hamiltonian.py +++ b/tests/pulse/test_hardware_hamiltonian.py @@ -166,6 +166,55 @@ class TestHardwareHamiltonian: assert res2.ops_parametrized == []...
[ "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_add_scalar[scalars0]", "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_add_scalar[scalars1]", "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_add_scalar[scalars2]", "tests/pulse/test_hard...
[ "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_initialization", "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_two_different_reorder_fns_raises_error", "tests/pulse/test_hardware_hamiltonian.py::TestHardwareHamiltonian::test_add_hardware_hamiltonian[None]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
56e8709acb1b5e97de7e872143804019cacdad05
2017-02-24 18:00:49
docker.io/swerebenchv2/yelp-bravado-core:154-56e8709
yelp__bravado-core-154
No new interfaces are introduced.
python
custom-check-github
diff --git a/bravado_core/schema.py b/bravado_core/schema.py index 884abe9..0d82646 100644 --- a/bravado_core/schema.py +++ b/bravado_core/schema.py @@ -118,11 +118,15 @@ def handle_null_value(swagger_spec, schema_object_spec): :param swagger_spec: :class:`bravado_core.spec.Spec` :param schema_object_spec: ...
Consider default when unmarshalling Make sure we consider the default value when unmarshalling. Fixes #153.
missing properties are not set to default when unmarshalled If I have an object which I specify as a `"in": "body"` parameter for a PUT or POST with properties that have `default` set, e.g: ```json "parameters": [ { "required": true, "in": "body", "name": "body", "schema": { ...
Yelp/bravado-core
diff --git a/tests/schema/handle_null_value_test.py b/tests/schema/handle_null_value_test.py new file mode 100644 index 0000000..51f4955 --- /dev/null +++ b/tests/schema/handle_null_value_test.py @@ -0,0 +1,31 @@ +import pytest + +from bravado_core.exception import SwaggerMappingError +from bravado_core.schema import h...
[ "tests/schema/handle_null_value_test.py::test_default", "tests/unmarshal/unmarshal_object_test.py::test_with_properties[None-Street]", "tests/unmarshal/unmarshal_primitive_test.py::test_default" ]
[ "tests/schema/handle_null_value_test.py::test_nullable", "tests/schema/handle_null_value_test.py::test_raise", "tests/unmarshal/unmarshal_object_test.py::test_with_properties[Avenue-Avenue]", "tests/unmarshal/unmarshal_object_test.py::test_with_array", "tests/unmarshal/unmarshal_object_test.py::test_with_ne...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
4b49284ccb92ff62030b64bd2419c8240bbeff49
2024-05-08 21:52:31
docker.io/swerebenchv2/amaranth-lang-amaranth:1353-4b49284
amaranth-lang__amaranth-1353
Method: Undef.__init__(self, width) Location: amaranth/back/rtlil.py – class Undef defined near top of file. Inputs: - **width** (int): bit‑width of the undefined constant to be emitted. Outputs: - Creates an instance with attribute `width` storing the given bit‑width. No return value (constructor). The instance is l...
python
BSD-2-Clause
diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index 8c6ff22..cecb11f 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -20,6 +20,12 @@ _escape_map = str.maketrans({ }) +# Special hack to emit 'x consts for memory read port init. +class Undef: + def __init__(self, width): + ...
back.rtlil: set read port init to all-x. This is an unfortunate necessity needed to fix memory inference regressions introduced when we switched to using v2 cells. A better approach, compatible with RFC 54, will need to be figured out for Amaranth 0.6. Fixes #1011.
Inferring True Dual-Port BRAMs with the new IR on Series 7 and ECP5 I'm trying to infer a true dual port BRAM on a Xilinx Series 7 chip, but I'm not having much luck. I've written the following to try to map the ReadPort/WritePort construct to the addr/din/dout/en/wea that's native to the RAM36 primitives: ```python...
amaranth-lang/amaranth
diff --git a/tests/test_back_rtlil.py b/tests/test_back_rtlil.py index 96ac2ee..6c4dbcc 100644 --- a/tests/test_back_rtlil.py +++ b/tests/test_back_rtlil.py @@ -1643,9 +1643,9 @@ class MemoryTestCase(RTLILTestCase): parameter \WIDTH 8 parameter \TRANSPARENCY_MASK 1'0 p...
[ "tests/test_back_rtlil.py::MemoryTestCase::test_async_read", "tests/test_back_rtlil.py::MemoryTestCase::test_sync_read" ]
[ "tests/test_back_rtlil.py::TreeTestCase::test_tree", "tests/test_back_rtlil.py::RHSTestCase::test_anyvalue", "tests/test_back_rtlil.py::RHSTestCase::test_initial", "tests/test_back_rtlil.py::RHSTestCase::test_operator_add_imm", "tests/test_back_rtlil.py::RHSTestCase::test_operator_addsub", "tests/test_bac...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/YosysHQ/yosys/issues/1959", "...
32c75649f5d06802c3b4a0a7cbe8c3b43e07b171
2021-04-27 21:00:16
docker.io/swerebenchv2/wtforms-wtforms:688-32c7564
wtforms__wtforms-688
Method: OptionWidget.__init__(self, render_kw=None, **kwargs) Location: src/wtforms/widgets/core.py Inputs: - **render_kw** (dict, optional): HTML attributes that will be added to each rendered `<input>` element for a field choice (e.g., `{"disabled": True}`). - **kwargs**: any additional keyword arguments accepted by...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 8bb26bc..c846991 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Unreleased - :meth:`~fields.FormField.populate_obj` always calls :func:`setattr` :pr:`675` - WTForms has a new logo. :issue:`569` :pr:`689` +- Fixed :class:`~fields.RadioField` `render_k...
RadioField renders `render_kw` This pull request comes after the accidental closing of #628 and fixes #490. I cherry-picked the commits of #628 so the author is remembered. Basically this patch renders the `RadioField` `render_kw` parameter in both the generated `<ul>` tag, and the `<input type="radio">` tags inside...
Field render kwargs are not populated to the inputs of RadioField In most cases you can control HTML attributes of the rendered fields via keyword arguments to the form field's `__call__` method. This doesn't work right for `RadioField` (or probably anything that uses `FieldList`, where the keyword arguments are consum...
wtforms/wtforms
diff --git a/tests/fields/test_radio.py b/tests/fields/test_radio.py index 863b933..e817972 100644 --- a/tests/fields/test_radio.py +++ b/tests/fields/test_radio.py @@ -102,3 +102,19 @@ def test_required_validator(): form = F(DummyPostData(b=1)) assert form.validate() is False assert form.c.errors == ["T...
[ "tests/fields/test_radio.py::test_render_kw_preserved" ]
[ "tests/fields/test_radio.py::test_radio_field", "tests/fields/test_radio.py::test_text_coercion", "tests/fields/test_radio.py::test_callable_choices", "tests/fields/test_radio.py::test_required_flag", "tests/fields/test_radio.py::test_required_validator", "tests/fields/test_select.py::test_select_field_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ed5576dba118886c52d044dc2a73f291112ca30a
2024-09-02 21:48:03
docker.io/swerebenchv2/aio-libs-aiohttp:8997-ed5576d
aio-libs__aiohttp-8997
Method: Request.clone(self, *, scheme: str | None = None, host: str | None = None, remote: str | None = None, **kwargs) Location: aiohttp/web_request.py – class BaseRequest (parent of web.Request) implements the clone method; the signature now accepts optional *scheme*, *host*, and *remote* overrides. Inputs: - *...
python
custom-check-github
diff --git a/CHANGES/8990.bugfix.rst b/CHANGES/8990.bugfix.rst new file mode 100644 index 000000000..9a9783103 --- /dev/null +++ b/CHANGES/8990.bugfix.rst @@ -0,0 +1,1 @@ +Fixed changing scheme/host in ``Response.clone()`` for absolute URLs -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/8991.doc.rst b/CHANGES/8991.d...
[PR #8990/731ba4dd backport][3.11] Fix changing scheme/host in Response.clone() for absolute URLs **This is a backport of PR #8990 as merged into master (731ba4dd399c26fd470dde5ea50e011e058b798a).** Fixes #7481.
web.Request.clone bug ### Describe the bug When I try to create a new `Request` object from an existing with `clone` and set new `scheme` and `host` parameters. The new request object's `url` will not change it's scheme and url. ### To Reproduce ```python # Original request.url starts with 'http://' requ...
aio-libs/aiohttp
diff --git a/tests/test_web_request.py b/tests/test_web_request.py index c6398ac18..ba12d6f54 100644 --- a/tests/test_web_request.py +++ b/tests/test_web_request.py @@ -169,6 +169,22 @@ def test_absolute_url() -> None: assert req.rel_url == URL.build(path="/path/to", query={"a": "1"}) +def test_clone_absolute_...
[ "tests/test_web_request.py::test_clone_absolute_scheme", "tests/test_web_request.py::test_clone_absolute_host" ]
[ "tests/test_web_request.py::test_base_ctor", "tests/test_web_request.py::test_ctor", "tests/test_web_request.py::test_deprecated_message", "tests/test_web_request.py::test_doubleslashes", "tests/test_web_request.py::test_content_type_not_specified", "tests/test_web_request.py::test_content_type_from_spec"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
3fcadd59a52cee5b497b0c0246f5c3997a04e230
2024-10-05 09:38:13
docker.io/swerebenchv2/getmoto-moto:8202-3fcadd5
getmoto__moto-8202
Method: APIGateway.Client.get_api_keys(self, nameQuery: str = None, includeValues: bool = False, **kwargs) Location: moto/apigateway/responses.py (exposed through boto3 client) Inputs: - **nameQuery** (optional str): filter returned API keys to those whose name matches the supplied value (exact match as per AWS behavio...
python
Apache-2.0
diff --git a/moto/apigateway/models.py b/moto/apigateway/models.py index 08d89884b..0973dcbc3 100644 --- a/moto/apigateway/models.py +++ b/moto/apigateway/models.py @@ -2150,8 +2150,8 @@ class APIGatewayBackend(BaseBackend): self.keys[key.id] = key return key - def get_api_keys(self) -> List[ApiK...
APIGateway: get_api_keys()/get_usage_plan_keys() now support the nameQuery param Fixes #8161
API Gateway: query ignored in get_api_keys As stated in the `get_api_keys` [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway/client/get_api_keys.html#APIGateway.Client.get_api_keys), the parameter `nameQuery` is used to filter API Keys by name. Moto is completely i...
getmoto/moto
diff --git a/tests/test_apigateway/test_apigateway.py b/tests/test_apigateway/test_apigateway.py index 2b0a3fb06..5c325a4e7 100644 --- a/tests/test_apigateway/test_apigateway.py +++ b/tests/test_apigateway/test_apigateway.py @@ -1522,36 +1522,42 @@ def test_get_api_key_include_value(): @mock_aws -def test_get_api_...
[ "tests/test_apigateway/test_apigateway.py::test_get_api_keys", "tests/test_apigateway/test_apigateway.py::test_usage_plan_keys", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_delete_item_returns_old_item" ]
[ "tests/test_apigateway/test_apigateway.py::test_create_and_get_rest_api", "tests/test_apigateway/test_apigateway.py::test_update_rest_api", "tests/test_apigateway/test_apigateway.py::test_update_rest_api_invalid_api_id", "tests/test_apigateway/test_apigateway.py::test_update_rest_api_operation_add_remove", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest/...
fbb33430e6e0b326744e2e703db77c4773de93de
2022-07-28 20:48:41
docker.io/swerebenchv2/pycqa-flake8:1624-fbb3343
pycqa__flake8-1624
Method: OptionManager.__init__(self, version: str, plugin_versions: str, parents: list[argparse.ArgumentParser], formatter_names: list[str]) Location: src/flake8/options/manager.py Inputs: - **version** – flake8 version string (e.g., "3.0.0"). - **plugin_versions** – concatenated plugin version information. - **parent...
python
custom-check-github
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py index 13ece4e..5178abb 100644 --- a/src/flake8/main/application.py +++ b/src/flake8/main/application.py @@ -132,6 +132,7 @@ class Application: version=flake8.__version__, plugin_versions=self.plugins.versions_str(), ...
Display list of available formatters with help for `--format` Resolves #223.
Display list of available formatters with help for --format In GitLab by @blueyed on Apr 26, 2018, 03:32 `flake8 --help` contains: > --format=format Format errors according to the chosen formatter. It would be nice/helpful if the list of available formats would be listed there.
PyCQA/flake8
diff --git a/tests/integration/test_aggregator.py b/tests/integration/test_aggregator.py index a5b39d7..006ac5f 100644 --- a/tests/integration/test_aggregator.py +++ b/tests/integration/test_aggregator.py @@ -18,6 +18,7 @@ def optmanager(): version="3.0.0", plugin_versions="", parents=[], + ...
[ "tests/integration/test_aggregator.py::test_aggregate_options_with_config", "tests/integration/test_aggregator.py::test_aggregate_options_when_isolated", "tests/integration/test_main.py::test_format_option_help", "tests/integration/test_plugins.py::test_local_plugin_can_add_option", "tests/unit/test_option_...
[ "tests/integration/test_main.py::test_diff_option", "tests/integration/test_main.py::test_form_feed_line_split", "tests/integration/test_main.py::test_e101_indent_char_does_not_reset", "tests/integration/test_main.py::test_statistics_option", "tests/integration/test_main.py::test_show_source_option", "tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e97ef0e5d26ff677aa8b8db0fb6592dd5889ec6a
2023-02-26 00:18:36
docker.io/swerebenchv2/pytask-dev-pytask:354-e97ef0e
pytask-dev__pytask-354
Method: Session.__init__(self, config: dict[str, Any]) Location: src/_pytask/build.py (instantiated in tests via `Session(config={...})`) Inputs: `config` – a dictionary of configuration values; the key `"force"` (bool) is checked to decide whether unchanged tasks should be run. Outputs: Returns a `Session` object with...
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index cd17b6f..5f25deb 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -9,6 +9,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and - {pull}`345` updates the version numbers in animations. - {pull}`352` publishes ...
Add `-f/--force` to force executing tasks. Partially closes #344.
ENH: Improving file-change detection. #### Is your feature request related to a problem? Hitting save on a Python file changes its modification timestamp and triggers a rerun of related tasks even if the content is unchanged. Is it a feature or a bug? #### Describe the solution you'd like Let us improve the...
pytask-dev/pytask
diff --git a/tests/test_execute.py b/tests/test_execute.py index 5724945..9d851af 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -383,3 +383,27 @@ def test_that_dynamically_creates_tasks_are_captured(runner, tmp_path): assert result.exit_code == ExitCode.OK assert "task_example" in result.o...
[ "tests/test_execute.py::test_task_executed_with_force_although_unchanged_runner", "tests/test_skipping.py::test_pytask_execute_task_setup[skip_unchanged-False-expectation0]", "tests/test_skipping.py::test_pytask_execute_task_setup[skip_unchanged-True-expectation1]", "tests/test_skipping.py::test_pytask_execut...
[ "tests/test_execute.py::test_python_m_pytask", "tests/test_execute.py::test_execute_w_autocollect", "tests/test_execute.py::test_task_did_not_produce_multiple_nodes_and_all_are_shown", "tests/test_execute.py::test_assert_multiple_dependencies_are_merged_to_dict", "tests/test_execute.py::test_assert_multiple...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/python/mypy/issues/3403" ], ...
2ae010d56d88c9232ef2817b7c8dca985077cdcf
2024-12-04 01:47:42
docker.io/swerebenchv2/yukinarit-pyserde:618-2ae010d
yukinarit__pyserde-618
No new interfaces are introduced.
python
MIT
diff --git a/serde/se.py b/serde/se.py index b74abe4..a3cd788 100644 --- a/serde/se.py +++ b/serde/se.py @@ -381,8 +381,9 @@ def to_obj( elif is_bearable(o, dict): return {k: thisfunc(v) for k, v in o.items()} elif is_str_serializable_instance(o) or is_datetime_instance(o): + s...
Fix dict[str, Any] serialization When a dict inside a class had values of type Any and the dict contained non-primitive types, pyserde would enter an infinite recusion. See #617 for details. The fix here causes non-primitive values to be serialized as strings when calling to_dict. Arguably, this loses information,...
pyserde unable to serialize a UUID inside of a dict[str, Any] in an object Hi, the following serialization works in pyserde 0.14.1, but breaks in pyserde 0.14.2 (and later, up to 0.22.2) ```python from uuid import UUID @serde @dataclass class A: tags: dict[str, Any] a = A(tags={'id': UUID('05b69d9a-378...
yukinarit/pyserde
diff --git a/tests/test_basics.py b/tests/test_basics.py index ea7c318..94a1d62 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -662,7 +662,6 @@ def test_skip_if_default(se, de): @pytest.mark.parametrize("se,de", format_msgpack) def test_inheritance(se, de): - @serde.serde class Base: ...
[ "tests/test_basics.py::test_dict_str_any" ]
[ "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests/test_basics...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
727145aa868d1eb33e5c9fab5e7479975a7e3a46
2024-07-29 15:02:53
docker.io/swerebenchv2/pyfar-pyfar:658-727145a
pyfar__pyfar-658
Method: FilterIIR.process(self, signal) Location: pyfar/classes/filter.py Inputs: * signal – a Signal object to be filtered (any dimensionality). Outputs: * Signal – filtered signal where the **time** data keep the original channel shape; for a single‑channel filter the returned Signal.time has shape (channels, 1, sa...
python
MIT
diff --git a/pyfar/classes/filter.py b/pyfar/classes/filter.py index 6a3b709f..4583567d 100644 --- a/pyfar/classes/filter.py +++ b/pyfar/classes/filter.py @@ -247,7 +247,12 @@ class Filter(object): # prepare output signal filtered_signal = deepcopy(signal) - filtered_signal.time = np.squeeze(...
Change squeeze in filter class to keep cshape of input signal I changed the squeeze in ``Filter.process`` so it doesn't squeeze any of the input signal's channel dimensions. Closes #627 I would do separate PRs for gammatone class and the dsp-functions if changes are necessary.
Filtering `Signal` alters its `cshape` ## General * pyfar version: 0.6.6 * Python version: 3.10.12 * Operating System: Ubuntu LTS 22.04.4 * Did you install pyfar via pip: yes ## Description Filtering a `Signal` changes its `cshape`, if one dimension is `1`. I don't want my shapes being touched. Worse, it lead...
pyfar/pyfar
diff --git a/tests/test_filter.py b/tests/test_filter.py index 8d8c66fc..2c3441ee 100644 --- a/tests/test_filter.py +++ b/tests/test_filter.py @@ -223,7 +223,7 @@ def test_crossover(impulse): for order in [2, 4, 6, 8]: for frequency in [4000, (1e2, 10e3)]: x = pfilt.crossover(impulse, order, ...
[ "tests/test_filter.py::test_crossover", "tests/test_filter.py::test_reconstructing_fractional_octave_bands", "tests/test_filter.py::test_reconstructing_fractional_octave_bands_filter_slopes", "tests/test_filter_classes.py::test_filter_iir_process_multi_dim_filt", "tests/test_filter_classes.py::test_filter_f...
[ "tests/test_filter.py::test_butterworth", "tests/test_filter.py::test_chebyshev1", "tests/test_filter.py::test_chebyshev2", "tests/test_filter.py::test_elliptic", "tests/test_filter.py::test_bessel", "tests/test_filter.py::test_bell", "tests/test_filter.py::test_shelve", "tests/test_filter.py::test_re...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
49f5b101d2a3abb489dcf1ffa2954ea6e752075a
2024-08-08 20:25:11
docker.io/swerebenchv2/sdv-dev-rdt:862-49f5b10
sdv-dev__rdt-862
Method: ClusterBasedNormalizer._fit(self, data: pandas.Series) Location: rdt.transformers.numerical.ClusterBasedNormalizer._fit Inputs: A pandas Series containing numeric values (may include ``np.nan``). The method lazily imports ``sklearn.mixture`` via ``import_module`` and creates a ``BayesianGaussianMixture`` in...
python
custom-check-github
diff --git a/rdt/transformers/numerical.py b/rdt/transformers/numerical.py index a783fcc..5ba4dbf 100644 --- a/rdt/transformers/numerical.py +++ b/rdt/transformers/numerical.py @@ -2,11 +2,11 @@ import copy import warnings +from importlib import import_module import numpy as np import pandas as pd import scipy...
Lazy import BayesianGaussianMixture from sklearn resolves #861 CU-86b1knznm TODO: - [ ] fix unit tests This is the new time log <img width="1229" alt="Screenshot 2024-08-08 at 3 53 25 PM" src="https://github.com/user-attachments/assets/1f301c7b-8fc5-42e5-b879-fd653201a710"> Compared to the old one <im...
Lazy import BayesianGaussianMixture from sklearn ### Problem Description _As a user, I'd like import times to be quick._ As of now, anytime a user imports anything from RDT, all of the modules are imported. Certain modules scan be slow. The numerical module is especially slow because it takes time to import the `Ba...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_numerical.py b/tests/unit/transformers/test_numerical.py index e7cb0f1..08a950a 100644 --- a/tests/unit/transformers/test_numerical.py +++ b/tests/unit/transformers/test_numerical.py @@ -1176,8 +1176,8 @@ class TestClusterBasedNormalizer(TestCase): # Assert as...
[ "tests/unit/transformers/test_numerical.py::TestClusterBasedNormalizer::test__fit", "tests/unit/transformers/test_numerical.py::TestClusterBasedNormalizer::test__fit_catch_warnings", "tests/unit/transformers/test_numerical.py::TestClusterBasedNormalizer::test__fit_missing_value_replacement" ]
[ "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test___init__super_attrs", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit_enforce_min_max_values_false", "tests/unit/transformers/test_numerica...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/user-attachments/files/16534623/bas...
4198f639ab13b7a5a92ce996f457637c3e493ee3
2017-08-22 09:35:06
docker.io/swerebenchv2/frictionlessdata-tabulator-py:192-4198f63
frictionlessdata__tabulator-py-192
No new interfaces are introduced.
python
MIT
diff --git a/tabulator/helpers.py b/tabulator/helpers.py index c17a025..5f1d2c2 100644 --- a/tabulator/helpers.py +++ b/tabulator/helpers.py @@ -35,8 +35,10 @@ def detect_scheme_and_format(source): # Format: gsheet if 'docs.google.com/spreadsheets' in source: - if 'export' not in source: + if ...
Fixed gsheet export format detecting - fixes #189
Format not recognised - Google spreadsheet exported as csv Tabulator is not able to work out the format for this url: https://docs.google.com/spreadsheets/d/1shdLtpTEDuYFQHidGSQjSBw2sM0EQ34xD1lm7zyBUi4/export?format=csv&gid=0&single=true However, it does recognise: https://docs.google.com/spreadsheets/d/1kPO1CmPv...
frictionlessdata/tabulator-py
diff --git a/tests/test_helpers.py b/tests/test_helpers.py index ad18ec7..1c32175 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -30,6 +30,9 @@ from tabulator import helpers, config ('path', 'file', None), ('path.CsV', 'file', 'csv'), ('http://someplace.com/foo/path.csv?foo=bar#baz', '...
[ "tests/test_helpers.py::test_detect_scheme_and_format[https://docs.google.com/spreadsheets/d/X/export?format=csv&gid=0&single=true-https-csv]", "tests/test_helpers.py::test_detect_scheme_and_format[https://docs.google.com/spreadsheets/d/X/pub?gid=0&single=true&output=csv-https-csv]" ]
[ "tests/test_helpers.py::test_detect_scheme_and_format[text://path-text-None]", "tests/test_helpers.py::test_detect_scheme_and_format[stream://path-stream-None]", "tests/test_helpers.py::test_detect_scheme_and_format[file://path-file-None]", "tests/test_helpers.py::test_detect_scheme_and_format[ftp://path-ftp-...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.google.com/spreadsheets/d/1shdLtpTEDuYFQHid...
185d37700f5c5cff46af0ea4d695d5e9290ab9d2
2025-05-04 00:55:59
docker.io/swerebenchv2/apiflask-apiflask:659-185d377
apiflask__apiflask-659
Method: APIFlask.add_url_rule(self, rule: str, endpoint: str | None = None, view_func: Callable | None = None, provide_automatic_options: bool = True, **options) Location: src/apiflask/route.py (inherited from Flask’s `Flask.add_url_rule` and overridden by APIFlask) Inputs: - **rule** – URL rule string (e.g., "/foo"). ...
python
MIT
diff --git a/src/apiflask/route.py b/src/apiflask/route.py index 9b2c08c..e9f3591 100644 --- a/src/apiflask/route.py +++ b/src/apiflask/route.py @@ -39,7 +39,7 @@ def route_patch(cls): return view_func for method_name in view_class.methods: # type: ignore # method_name: ['GET', 'POST...
fix(#618): `MethodView` with subclass fixes #618 . Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or update relevant docs, in the `docs` folder and in code docstring. - [x] Add an entry in `CHANGES.md` summarizing the change and li...
Subclassed `MethodView` resources cannot be added as URL rules If you attempt to subclass an instance of `MethodView` with existing URL methods, perhaps with some extra logic, that subclassed view throws an error when `APIFlask.add_url_rule` gets called. ``` In [1]: from apiflask import APIFlask In [2]: from fla...
apiflask/apiflask
diff --git a/tests/test_route.py b/tests/test_route.py index d15d963..3779d9c 100644 --- a/tests/test_route.py +++ b/tests/test_route.py @@ -241,3 +241,25 @@ def test_empty_methodview_class(app, client): rv = client.get('/openapi.json') assert rv.status_code == 200 assert '/foo' not in rv.json['paths'] +...
[ "tests/test_route.py::test_methodview_class_with_subclass" ]
[ "tests/test_route.py::test_route_shortcuts[get]", "tests/test_route.py::test_route_shortcuts[post]", "tests/test_route.py::test_route_shortcuts[put]", "tests/test_route.py::test_route_shortcuts[patch]", "tests/test_route.py::test_route_shortcuts[delete]", "tests/test_route.py::test_route_on_method_view", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/apiflask/apiflask/blob/590975fc831860...
09161fc9181bf94aa3bbc5509c663d736a9553dc
2024-08-02 07:53:19
docker.io/swerebenchv2/python-attrs-attrs:1320-09161fc
python-attrs__attrs-1320
Function: in_(options) Location: src/attr/validators.py (attr.validators.in_) Inputs: - **options** – an iterable of allowed values. If *options* is a list, dict, or set (i.e., an unhashable collection), it is internally converted to a `tuple` while the original collection is stored for representation. Outputs: - Ret...
python
MIT
diff --git a/changelog.d/1320.change.md b/changelog.d/1320.change.md new file mode 100644 index 0000000..5c849b8 --- /dev/null +++ b/changelog.d/1320.change.md @@ -0,0 +1,3 @@ +`attrs.validators.in_()` now transforms certain unhashable options to tuples to keep the field hashable. + +This allows fields that use this va...
validators.in_ now transforms certain unhashable options to tuples Fixes #1295
`attr.filters.exclude` or `include` not simultaneously usable with `validators.in_` set. When using one of the mentioned filter functions in `attrs.as_dict` or `as_tuple` on frozen nodes that have attributes with `attrs.validators.in_` set as their validator, the following TypeError is thrown: ```pytb File "<>/...
python-attrs/attrs
diff --git a/tests/test_validators.py b/tests/test_validators.py index de91f32..9127e57 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -391,6 +391,7 @@ class TestIn_: """ v = in_([1, 2, 3]) a = simple_attr("test") + v(1, a, 3) def test_fail(self): @@ -...
[ "tests/test_validators.py::TestIn_::test_is_hashable" ]
[ "tests/test_validators.py::TestDisableValidators::test_default", "tests/test_validators.py::TestDisableValidators::test_set_validators_disabled[True-False]", "tests/test_validators.py::TestDisableValidators::test_set_validators_disabled[False-True]", "tests/test_validators.py::TestDisableValidators::test_disa...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
648dda4c60c5a6f74acf335f7808c590c9d23929
2024-11-15 08:33:08
docker.io/swerebenchv2/pyfar-pyfar:722-648dda4
pyfar__pyfar-722
No new interfaces are introduced.
python
MIT
diff --git a/pyfar/dsp/dsp.py b/pyfar/dsp/dsp.py index b44dbac7..c032e89e 100644 --- a/pyfar/dsp/dsp.py +++ b/pyfar/dsp/dsp.py @@ -2442,8 +2442,16 @@ def normalize(signal, reference_method='max', domain='auto', Compute the mean absolute values per channel. ``'energy'`` Compute the ene...
Normaliztation: Force energetic properties to match the target after normalization ### Which issue(s) are closed by this pull request? Closes #721 ### Changes proposed in this pull request: - use square root of a signals energy and power for normalization - use square root of target as well. - update docs a...
dsp.normalize's reference_methods "power" and "energy" behave unexpectedly ## General * pyfar version: 0.6.8 (issue persists in current code though) * Python version: 3.12.4 * Operating System: windows * Did you install pyfar via pip: yes ## Description I tried to normalize several signals of different leng...
pyfar/pyfar
diff --git a/tests/test_dsp_normalize.py b/tests/test_dsp_normalize.py index 224e8c50..69fde669 100644 --- a/tests/test_dsp_normalize.py +++ b/tests/test_dsp_normalize.py @@ -12,23 +12,11 @@ import numpy as np ('mean', 'max', [0.6, 3.0]), ('mean', 'individual', [3.0, 3.0]), ('mean', 'min', [3.0, 15.0]), ...
[ "tests/test_dsp_normalize.py::test_normalization_energy_power_rms[max-max-0.5-energy-energy]", "tests/test_dsp_normalize.py::test_normalization_energy_power_rms[max-max-0.5-power-power]", "tests/test_dsp_normalize.py::test_normalization_energy_power_rms[max-max-1-energy-energy]", "tests/test_dsp_normalize.py:...
[ "tests/test_dsp_normalize.py::test_normalization_max_mean[max-max-truth0]", "tests/test_dsp_normalize.py::test_normalization_max_mean[max-individual-truth1]", "tests/test_dsp_normalize.py::test_normalization_max_mean[max-min-truth2]", "tests/test_dsp_normalize.py::test_normalization_max_mean[max-mean-truth3]"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
b0ee64f24a95286f8466d2a4b54a9df85ec29073
2023-01-23 12:42:33
docker.io/swerebenchv2/getmoto-moto:5870-b0ee64f
getmoto__moto-5870
No new interfaces are introduced.
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index a5edeeecf..aeb6d51ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,47 @@ Moto Changelog ============== +4.1.1 +----- +Docker Digest for 4.1.1: _sha256:abb85db28568fc355636dac710a8108ba3cdb01bf1c129118cf1ce49eb8c5f07_ + + New Methods: + * APIGateway...
Batch: Return RequestId for all operations Fixes #5855
Getting a KeyError('RequestId') while trying to use mock_batch in moto Hi, I am getting a `KeyError('RequestId'))` when i am trying to use `mock_batch` functionality of moto. Code: ``` @mock_iam @mock_batch def test_aws_batch(self): client = boto3.client('batch') iam = boto3.client('iam') #moc...
getmoto/moto
diff --git a/tests/test_batch/test_batch_jobs.py b/tests/test_batch/test_batch_jobs.py index a521810c2..2083cff05 100644 --- a/tests/test_batch/test_batch_jobs.py +++ b/tests/test_batch/test_batch_jobs.py @@ -72,11 +72,12 @@ def test_submit_job_by_name(): resp = batch_client.submit_job( jobName="test1", j...
[ "tests/test_batch/test_batch_jobs.py::test_submit_job_by_name", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_transact_write_items_with_empty_gsi_key" ]
[ "tests/test_batch/test_batch_jobs.py::test_terminate_nonexisting_job", "tests/test_batch/test_batch_jobs.py::test_terminate_job_empty_argument_strings", "tests/test_batch/test_batch_jobs.py::test_cancel_nonexisting_job", "tests/test_batch/test_batch_jobs.py::test_cancel_job_empty_argument_strings", "tests/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e328a9b9dfa4fbc79c59ed4f45f757e998301c31
2016-02-06 15:01:34
docker.io/swerebenchv2/scrapy-scrapy:1767-e328a9b
scrapy__scrapy-1767
Method: SitemapSpider._parse_sitemap(self, response) Location: scrapy/spiders/sitemap.py Inputs: - **response** (scrapy.http.Response): the HTTP response to be parsed. If its URL ends with ``/robots.txt``, it should be a ``TextResponse`` containing the robots.txt body as Unicode text; otherwise it can be any response ...
python
BSD-3-Clause
diff --git a/scrapy/spiders/sitemap.py b/scrapy/spiders/sitemap.py index eede467a8..89d96c330 100644 --- a/scrapy/spiders/sitemap.py +++ b/scrapy/spiders/sitemap.py @@ -32,7 +32,7 @@ class SitemapSpider(Spider): def _parse_sitemap(self, response): if response.url.endswith('/robots.txt'): - fo...
[MRG+1] PY3: Fix SitemapSpider to extract sitemap urls from robots.txt properly ## Purpose Fix #1766, the problem that SitemapSpider fails to extract sitemap urls from robots.txt in Python 3. ## Changes * Pass `response.text` as an argument of `sitemap_urls_from_robots()` instead of `response.body`. * Add an ...
PY3: SitemapSpider fail to extract sitemap URLs from robots.txt in Scrapy 1.1.0rc1 ## Environment * Mac OS X 10.10.5 * Python 3.4.2 * Scrapy 1.1.0rc1 ## Steps to Reproduce 1. Save the following spider as `sitemap_spider.py`. ```py from scrapy.spiders import SitemapSpider class BlogSit...
scrapy/scrapy
diff --git a/tests/test_spider.py b/tests/test_spider.py index 4d5d4b07e..1d22c1212 100644 --- a/tests/test_spider.py +++ b/tests/test_spider.py @@ -328,6 +328,18 @@ class SitemapSpiderTest(SpiderTest): r = Response(url="http://www.example.com/sitemap.xml.gz", body=self.GZBODY) self.assertSitemapBody(...
[ "tests/test_spider.py::SitemapSpiderTest::test_get_sitemap_urls_from_robotstxt" ]
[ "tests/test_spider.py::SpiderTest::test_base_spider", "tests/test_spider.py::SpiderTest::test_closed_signal_call", "tests/test_spider.py::SpiderTest::test_deprecated_set_crawler_method", "tests/test_spider.py::SpiderTest::test_from_crawler_crawler_and_settings_population", "tests/test_spider.py::SpiderTest:...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
a08787d08a8f30a099ea1daf1a5e6575dff07681
2025-05-06 21:17:00
docker.io/swerebenchv2/ethereum-web3.py:3690-a08787d
ethereum__web3.py-3690
Method: SubscriptionManager.handle_subscriptions(self, run_forever: bool = False, **kwargs) Location: `web3/providers/persistent/subscription_manager.py` – class `SubscriptionManager` Inputs: - `run_forever` (bool, optional): when ``True`` the method loops continuously processing subscription updates until the pr...
python
MIT
diff --git a/newsfragments/3690.bugfix.rst b/newsfragments/3690.bugfix.rst new file mode 100644 index 00000000..e587bde8 --- /dev/null +++ b/newsfragments/3690.bugfix.rst @@ -0,0 +1,1 @@ +Properly handle ``PersistentConnectionClosedOK`` for ``subscription_manager.handle_subscriptions()``. diff --git a/web3/providers/pe...
bugfix: subscription manager break on `PersistentConnectionClosedOK` ### What was wrong? Closes #3689 ### How was it fixed? - Properly `break` on `PersistentConnectionClosedOK` for `subscription_manager.handle_subscriptions()` ### Todo: - [x] Clean up commit history - [x] Add entry to the [release notes...
SubscriptionManager.handle_subscriptions hangs on PersistentConnectionClosedOK exception ### What happened? I'm recieving `Message listener background task for the provider has stopped unexpectedly. Stopping subscription handling.` in my logs like once in a week or so. And in that case `SubscriptionManager.handle_su...
ethereum/web3.py
diff --git a/tests/core/providers/test_websocket_provider.py b/tests/core/providers/test_websocket_provider.py index 10f16d42..e20555a8 100644 --- a/tests/core/providers/test_websocket_provider.py +++ b/tests/core/providers/test_websocket_provider.py @@ -397,7 +397,7 @@ async def test_async_iterator_pattern_exception_h...
[ "tests/core/providers/test_websocket_provider.py::test_connection_closed_ok_breaks_handle_subscriptions_iteration" ]
[ "tests/core/providers/test_websocket_provider.py::test_get_endpoint_uri_or_ipc_path_returns_endpoint_uri", "tests/core/providers/test_websocket_provider.py::test_websocket_provider_default_values", "tests/core/providers/test_websocket_provider.py::test_disconnect_cleanup", "tests/core/providers/test_websocket...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
dc460a325839bc6797084a54afc297a2c9d87e63
2023-04-07 16:35:37
docker.io/swerebenchv2/getmoto-moto:6185-dc460a3
getmoto__moto-6185
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py index 1be961410..69e25d341 100644 --- a/moto/dynamodb/models/table.py +++ b/moto/dynamodb/models/table.py @@ -484,10 +484,12 @@ class Table(CloudFormationModel): if DynamoType(range_value).size() > RANGE_KEY_MAX_LENGTH: ...
DynamoDB: Allow attribute name 'S' Fixes #6182 Partially reverts #5638
DynamoDB put_item SerializationException when any key inside the Item is 'S' Hey everyone, thanks for the all the great work on this library. It makes unit testing a breeze! I ran into a bit of a strange issue with the Table.put_item() method in a mock DynamoDB table. It looks like if any key inside the item (inclu...
getmoto/moto
diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py index daad4aa8e..47386a102 100644 --- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py +++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py @@ -933,12 +933,21 @@ d...
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_put_item__string_as_integer_value" ]
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_table_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
5570c7c9931d32f7558e08143d32125a745ec56b
2020-10-22 07:54:53
docker.io/swerebenchv2/pylons-waitress:322-5570c7c
pylons__waitress-322
Attribute: in_connection_overflow Location: waitress.server.BaseWSGIServer.in_connection_overflow (class attribute, default False) Inputs: None (read‑only boolean flag updated internally by the server based on current connection count vs. `adj.connection_limit`). Outputs: Boolean – `True` when the total open connection...
python
custom-check-github
diff --git a/CHANGES.txt b/CHANGES.txt index f4d1acc..c62602e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,12 @@ - Drop Python 2.7 support +- The server now issues warning output when it there are enough open + connections (controlled by "connection_limit"), that it is no longer + accepting new connecti...
warn when the server stops listening for connections because it's in overflow fixes #301
waitress locks up with high connection counts Given a trivial wsgi server: ``` python def application(environ, start_response): """WSGI callable.""" print('start') encoded_response = b'{"status":"ok"}\n' start_response( "200 OK", [ ("Content-Type", "application/json"...
Pylons/waitress
diff --git a/tests/test_server.py b/tests/test_server.py index 05f6b4e..508b382 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -185,6 +185,7 @@ class TestWSGIServer(unittest.TestCase): inst.adj = DummyAdj inst._map = {"a": 1, "b": 2} self.assertFalse(inst.readable()) + ...
[ "tests/test_server.py::TestWSGIServer::test_readable_maplen_gt_connection_limit", "tests/test_server.py::TestWSGIServer::test_readable_maplen_lt_connection_limit", "tests/test_server.py::TestWSGIServer::test_readable_maplen_toggles_connection_overflow" ]
[ "tests/test_server.py::TestWSGIServer::test_add_task", "tests/test_server.py::TestWSGIServer::test_backward_compatibility", "tests/test_server.py::TestWSGIServer::test_create_with_multiple_tcp_sockets", "tests/test_server.py::TestWSGIServer::test_create_with_one_socket_handle_accept_noerror", "tests/test_se...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.87, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/Pylons/waitress/pull/322" ], ...
7a6866c4109df3ee142a51b97e4941d070727517
2022-11-01 10:58:43
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:95-7a6866c
py-cov-action__python-coverage-comment-action-95
Method: template.get_markdown_comment(coverage: Coverage, diff_coverage: DiffCoverage, previous_coverage_rate: float, base_template: str) → str Location: tests/unit/test_template.py Inputs: - **coverage** – an object providing overall coverage information (e.g., branch data, total lines). - **diff_coverage** – a Dif...
python
MIT
diff --git a/coverage_comment/default.md.j2 b/coverage_comment/default.md.j2 index 0f01505..42e5497 100644 --- a/coverage_comment/default.md.j2 +++ b/coverage_comment/default.md.j2 @@ -14,6 +14,11 @@ The coverage rate went from `{{ previous_coverage_rate | pct }}` to `{{ coverage {%- endif %} {%- endblock emoji_cover...
Add more detailed text to the PR comment Closes #51 May be clearer in cases like #11 This PR does two things: * If no comparison data was found, it generates an extra message in the PR comment (#51) * I found the message "100% of new lines are covered" a bit misleading when there is no coverage information about...
Change behaviour when missing coverage data for the default branch It might be helpful to write in the PR-comment that there is no comparative data in PR mode if no coverage data for the default branch was found, instead of crashing the action. This would not lead to so much confusion when the action is set up by a PR ...
py-cov-action/python-coverage-comment-action
diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 13d3184..6b07287 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -120,6 +120,7 @@ def test_action__pull_request__store_comment( comment_file = pathlib.Path("python-coverage-comment-action.txt")....
[ "tests/unit/test_template.py::test_template__no_new_lines_with_coverage", "tests/unit/test_template.py::test_template__no_branch_no_previous" ]
[ "tests/integration/test_main.py::test_action__push__non_default_branch", "tests/integration/test_main.py::test_action__push__default_branch", "tests/integration/test_main.py::test_action__workflow_run__no_pr", "tests/integration/test_main.py::test_action__workflow_run__no_artifact", "tests/integration/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
ecf2f08ce1e2d5b4982866188e4a3106d7bf4252
2024-05-30 11:45:10
docker.io/swerebenchv2/theupdateframework-python-tuf:2650-ecf2f08
theupdateframework__python-tuf-2650
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/CONTRIBUTING.rst b/docs/CONTRIBUTING.rst index eff4180a..be6830fb 100644 --- a/docs/CONTRIBUTING.rst +++ b/docs/CONTRIBUTING.rst @@ -31,7 +31,7 @@ tox run. :: - $ tox + tox Below, you will see more details about each step managed by ``tox``, in case you need debug/run outside ``tox``. ...
addd_root_verification <!-- Before submitting a pull request: * Run linter and tests locally: Use "tox" * Ensure your commits are signed-off-by: Use "commit --signoff" * Make sure new code has tests and is documented * For more info, see docs/CONTRIBUTING.rst Once commits are signed off and tested, desc...
repository: Tweak snapshot/timestamp triggers Currently `Repository.do_snapshot()` and `Repository.do_timestamp()` decide whether the update is needed by looking at whether the contents are up-to-date. This bypasses one case where timestamp and snapshot are needed: when the signing keys have changed. So I guess the ...
theupdateframework/python-tuf
diff --git a/requirements/test.txt b/requirements/test.txt index ec15bb8b..ae6dda96 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,4 +4,4 @@ -r pinned.txt # coverage measurement -coverage==7.5.2 +coverage==7.5.3 diff --git a/tests/test_repository.py b/tests/test_repository.py index 092df0ec..e...
[ "tests/test_repository.py::TestRepository::test_do_snapshot_after_snapshot_key_change", "tests/test_repository.py::TestRepository::test_do_timestamp_after_timestamp_key_change" ]
[ "tests/test_repository.py::TestRepository::test_do_snapshot", "tests/test_repository.py::TestRepository::test_do_snapshot_after_new_targets_delegation", "tests/test_repository.py::TestRepository::test_do_snapshot_after_targets_change", "tests/test_repository.py::TestRepository::test_do_timestamp", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
566dce9e7ada95e2346c9aa61206c6a2f0a189bf
2021-04-16 01:03:31
docker.io/swerebenchv2/bluesky-bluesky:1446-566dce9
bluesky__bluesky-1446
Function: Status Location: bluesky/protocols.py Inputs: Attributes `done` (bool) and `success` (bool); method `add_callback(callback: Callable[[Status], NoReturn])`. Outputs: The protocol itself does not return a value; `add_callback` returns `NoReturn` (i.e., None) after registering the callback. Description: Runtime‑...
python
BSD-3-Clause
diff --git a/MANIFEST.in b/MANIFEST.in index 9a6b1f5c..202cd118 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,3 +7,4 @@ include README.md include requirements.txt include setup.py include versioneer.py +include bluesky/py.typed diff --git a/bluesky/protocols.py b/bluesky/protocols.py new file mode 100644 index 00...
Initial ABC for Status, Readable, Movable, Flyable This provides an initial implementation of [PEP 544 Protocol](https://www.python.org/dev/peps/pep-0544/) Abstract Base Classes for some core interfaces in the bluesky ecosystem. ## Description The use of protocols allows for both static type checking using mypy (...
ABCs for Devices that implement the "Bluesky Interface" @untzag and @ksunden have suggested adding some ABCs for the expected Bluesky Interfaces. ABCs would be a useful tool for scaffolding implementations of the Readble, Movable, and Flyable interfaces. I would want to avoid accidentally giving the impression that imp...
bluesky/bluesky
diff --git a/bluesky/py.typed b/bluesky/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/bluesky/tests/test_protocols.py b/bluesky/tests/test_protocols.py new file mode 100644 index 00000000..f1fcca5c --- /dev/null +++ b/bluesky/tests/test_protocols.py @@ -0,0 +1,90 @@ +import tempfile + +import mypy...
[ "bluesky/tests/test_protocols.py::test_status", "bluesky/tests/test_protocols.py::test_readable", "bluesky/tests/test_protocols.py::test_movable", "bluesky/tests/test_protocols.py::test_flyable", "bluesky/tests/test_protocols.py::test_stageable", "bluesky/tests/test_protocols.py::test_pausable", "bluesk...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.python.org/3/library/abc.html#abc.ABCMeta...
2cfd66b5518f2194dc7fd9b9cc75ac52f6287bfb
2022-07-28 01:05:31
docker.io/swerebenchv2/wntrblm-nox:639-2cfd66b
wntrblm__nox-639
No new interfaces are introduced.
python
Apache-2.0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d58716..3cfd2f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,6 @@ jobs: - name: Build sdist and wheel run: pipx run build - name: Publish distribution PyPI - uses: pypa/gh-action-py...
Add short -N alias for --no-reuse-existing-virtualenvs Closes #624
Add a single character shortcut for --no-reuse-existing-virtualenvs ### How would this feature be useful? A common way to use Nox that saves a lot of time when re-running sessions over and over by avoiding recreating venvs is to set: ```py nox.options.reuse_existing_virtualenvs = True ``` You can see the `pi...
wntrblm/nox
diff --git a/tests/test_sessions.py b/tests/test_sessions.py index f753595..5f1422f 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -900,6 +900,8 @@ class TestSessionRunner: def make_runner_with_mock_venv(self): runner = self.make_runner() runner._create_venv = mock.Mock() + ...
[ "tests/test_sessions.py::TestSessionRunner::test_execute_check_env" ]
[ "tests/test_sessions.py::test__normalize_path", "tests/test_sessions.py::test__normalize_path_hash", "tests/test_sessions.py::test__normalize_path_give_up", "tests/test_sessions.py::TestSession::test_create_tmp", "tests/test_sessions.py::TestSession::test_create_tmp_twice", "tests/test_sessions.py::TestSe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pypa/pip/blob/main/noxfile.py#L19" ...
4c9a2ef9cdaee5b27b3f50b7e390edaa02d1fedb
2025-02-28 00:48:16
docker.io/swerebenchv2/mpmath-mpmath:916-4c9a2ef
mpmath__mpmath-916
Method: mp.mpf.__format__(self, format_spec) Location: class mp.mpf in mpmath/libmp/libmpf.py Inputs: - `format_spec` (str): a format specification string following the extended syntax used by mpmath (may include fill character, alignment, sign, zero‑padding, width, thousands‑separator flag, precision, rounding mode, ...
python
BSD-3-Clause
diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py index 1d1d4a1..459e571 100644 --- a/mpmath/libmp/libmpf.py +++ b/mpmath/libmp/libmpf.py @@ -1397,10 +1397,10 @@ def from_str(x, prec=0, rnd=round_fast, base=0): (?P<sign>[-+ ]?) (?P<no_neg_0>z)? (?P<alternate>\#)? - (?P<zeropad>0)? - (?P<...
Misc fixes * relax requirements on precision format, allow 0-prefixes. closes #915 * correct handling of zeropad and fill_char options
Unsupported format string passed to mpf.__format__ ``` $ python Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import mpmath >>> mpmath.__version__ '1.3.0' >>> val = mpmath.mpf('0.1') >>> f"{val:.016f}" Traceback (most recent ...
mpmath/mpmath
diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py index b1c480d..3aeb69d 100644 --- a/mpmath/tests/test_format.py +++ b/mpmath/tests/test_format.py @@ -54,7 +54,9 @@ def fmt_str(draw, types='fFeE', for_complex=False): skip_thousand_separators = True # Width - res += draw(st.sampl...
[ "mpmath/tests/test_format.py::test_mpf_floats_bulk", "mpmath/tests/test_format.py::test_mpc_complexes" ]
[ "mpmath/tests/test_format.py::test_mpf_fmt_cpython", "mpmath/tests/test_format.py::test_mpc_fmt", "mpmath/tests/test_format.py::test_mpf_fmt", "mpmath/tests/test_format.py::test_issue_858", "mpmath/tests/test_format.py::test_errors", "mpmath/tests/test_format.py::test_hexadecimal_bulk", "mpmath/tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
ae7f5aa66cd790661f54056c8b6e5aee11ff32b3
2025-02-16 07:30:15
docker.io/swerebenchv2/ethereum-web3.py:3618-ae7f5aa
ethereum__web3.py-3618
Function: _sanitize_addresses(*address: Union[ChecksumAddress, List[ChecksumAddress]]) → Union[ChecksumAddress, List[ChecksumAddress]] Location: web3/_utils/filters.py Inputs: One or more arguments, each either a single checksum address (str/bytes) or a list of checksum addresses. Empty/None values are ignored. Outputs...
python
MIT
diff --git a/newsfragments/3618.bugfix.rst b/newsfragments/3618.bugfix.rst new file mode 100644 index 00000000..b0eb2f10 --- /dev/null +++ b/newsfragments/3618.bugfix.rst @@ -0,0 +1,1 @@ +Fix contract event ``FilterParams`` to validate and normalize ``address`` parameters. diff --git a/web3/_utils/filters.py b/web3/_ut...
fix: correctly combine address and contract address list in event filter param construction ### What was wrong? Related to Issue #3617 Closes #3617 ### How was it fixed? See description of #3617 ### Todo: - [x] Clean up commit history - [x] Add or update documentation related to these changes - [x] A...
construct_event_filter_params improperly formats addresses as lists of lists ### What happened? called `event.get_logs(from_block=from_block, to_block=block_current)` with the instantiated parent contract having `address` set to a list of addresses. This raised an exception about address validity. It shouldn't have....
ethereum/web3.py
diff --git a/tests/core/utilities/test_construct_event_filter_params.py b/tests/core/utilities/test_construct_event_filter_params.py index ae93cfe6..87dec156 100644 --- a/tests/core/utilities/test_construct_event_filter_params.py +++ b/tests/core/utilities/test_construct_event_filter_params.py @@ -3,37 +3,57 @@ import ...
[ "tests/core/utilities/test_construct_event_filter_params.py::test_construct_event_filter_params[single-item-address-list-with-contract_address-list]", "tests/core/utilities/test_construct_event_filter_params.py::test_construct_event_filter_params[address-bytes-list]", "tests/core/utilities/test_construct_event_...
[ "tests/core/utilities/test_construct_event_filter_params.py::test_construct_event_filter_params[no-args]", "tests/core/utilities/test_construct_event_filter_params.py::test_construct_event_filter_params[overwrite-topics]", "tests/core/utilities/test_construct_event_filter_params.py::test_construct_event_filter_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5e1b166f2521eacd737f2ccb241fbc0b2e8bb931
2023-08-19 22:22:21
docker.io/swerebenchv2/getmoto-moto:6701-5e1b166
getmoto__moto-6701
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/iot/responses.py b/moto/iot/responses.py index 8f6f52521..2daec7068 100644 --- a/moto/iot/responses.py +++ b/moto/iot/responses.py @@ -581,14 +581,14 @@ class IoTResponse(BaseResponse): return json.dumps(dict(principals=principals)) def describe_thing_group(self) -> str: - thing...
IOT: group names can now contain special characters Fixes #6689
iot: actions where ids are sent in the body won't work when they have URL reserved characters The root cause is when we use characters that need to be url-encoded on ids (e.g. `thingGroupName`). When those are created the id is part of the URL so moto creates them url-encoded in its backend (e.g. `foo:bar` -> `foo%3Aba...
getmoto/moto
diff --git a/tests/test_iot/test_iot_thing_groups.py b/tests/test_iot/test_iot_thing_groups.py index d69a5b218..6c343ab63 100644 --- a/tests/test_iot/test_iot_thing_groups.py +++ b/tests/test_iot/test_iot_thing_groups.py @@ -38,8 +38,8 @@ def generate_thing_group_tree(iot_client, tree_dict, _parent=None): class Te...
[ "tests/test_iot/test_iot_thing_groups.py::TestListThingGroup::test_should_list_all_groups", "tests/test_iot/test_iot_thing_groups.py::TestListThingGroup::test_should_list_all_groups_non_recursively", "tests/test_iot/test_iot_thing_groups.py::TestListThingGroup::test_should_list_all_groups_filtered_by_parent", ...
[ "tests/test_iot/test_iot_thing_groups.py::test_thing_group_relations", "tests/test_iot/test_iot_thing_groups.py::test_thing_group_already_exists_with_different_properties_raises", "tests/test_iot/test_iot_thing_groups.py::test_thing_group_already_exists_with_same_properties_returned", "tests/test_iot/test_iot...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
1e19cdc2f96edaffaed22943fd8bd8b0e59f4b19
2018-10-31 03:39:31
docker.io/swerebenchv2/rochacbruno-dynaconf:104-1e19cdc
rochacbruno__dynaconf-104
Method: Settings.set(self, key, value, loader_identifier=None, tomlfy=False, dotted_lookup=True) Location: dynaconf/base.py Inputs: - key (str): configuration key; may contain dot notation for nested assignment. - value (Any): value to store (parsed if tomlfy=True). - loader_identifier (str, optional): identifier of t...
python
MIT
diff --git a/dynaconf/base.py b/dynaconf/base.py index 00e125c..fd48b1e 100644 --- a/dynaconf/base.py +++ b/dynaconf/base.py @@ -514,7 +514,22 @@ class Settings(object): for key in keys: self.unset(key) - def set(self, key, value, loader_identifier=None, tomlfy=False): + def _dotted_set(se...
Allow dotted-path based setting of configuration key/value pairs. ## Summary To mirror the functionality added in #93, the ability to set nested structures has been added in this PR. ## Examples You can set a value with an arbitrary number of nested keys, separated by dots: ```python settings.set('nested_1...
RFC: Allow dot notation for .set method Dot traversal access has been implemented by @jperras in #93 Now it is possible to read values like `settings['DICT.KEY.NESTED.OTHER']` But the set method does not have this functionality. ```py settings.set('DICT.KEY.NESTED.OTHER', 1) { 'DICT.KEY.NESTED.OTHER': ...
rochacbruno/dynaconf
diff --git a/tests/test_base.py b/tests/test_base.py index a0ede2f..2453394 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -201,7 +201,8 @@ def test_dotted_traversal_access(settings): 'PASSWORD': 'secret', 'SSL': {'CONTEXT': 'SECURE'}, 'DOTTED.KEY': True - } + ...
[ "tests/test_base.py::test_dotted_set_with_merge" ]
[ "tests/test_base.py::test_deleted_raise", "tests/test_base.py::test_accepts_only_upper", "tests/test_base.py::test_call_works_as_get", "tests/test_base.py::test_keys_are_equal", "tests/test_base.py::test_values_are_equal", "tests/test_base.py::test_get_env", "tests/test_base.py::test_float", "tests/te...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
754f2c978cba83a83ba7117df1b930d1512ea333
2022-08-16 21:56:05
docker.io/swerebenchv2/pennylaneai-pennylane:2964-754f2c9
pennylaneai__pennylane-2964
No new interfaces are introduced.
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index cbe4b45ba..f16ecddac 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -112,6 +112,9 @@ >>> qml.simplify(adj_op) RX(-1, wires=[0]) ``` + +* Added `sparse_matrix()` support for single qubit observa...
Support Sparse Matrix representation for Observables and Arithmetic Ops (1/3) **Context:** We want to support sparse matrix representation for Symbolic operators, these depend on the sparse matrix attributes of their factors/summands/base operators. We must then also support sparse matrix representations for a few oth...
Add sparse matrix representations for Pauli Operators While the Pauli operators (`PauliX`, `PauliY`, `PauliZ`, `Identity`) themselves are fairly dense, they are often multiplied together to form large tensors. To assist with the formation of sparse matrices for large combination operations, we should add sparse matrice...
PennyLaneAI/pennylane
diff --git a/tests/ops/op_math/test_sprod.py b/tests/ops/op_math/test_sprod.py index 668d5c181..cdbb0c113 100644 --- a/tests/ops/op_math/test_sprod.py +++ b/tests/ops/op_math/test_sprod.py @@ -299,18 +299,29 @@ class TestMatrix: true_mat = 42 * U assert np.allclose(mat, true_mat) - # TODO[Jay]: r...
[ "tests/ops/op_math/test_sprod.py::TestMatrix::test_sparse_matrix[op0]", "tests/ops/op_math/test_sprod.py::TestMatrix::test_sparse_matrix[op1]", "tests/ops/op_math/test_sprod.py::TestMatrix::test_sparse_matrix[op2]", "tests/ops/op_math/test_sprod.py::TestMatrix::test_sparse_matrix[op3]", "tests/ops/op_math/t...
[ "tests/ops/op_math/test_sprod.py::TestInitialization::test_init_sprod_op[foo]", "tests/ops/op_math/test_sprod.py::TestInitialization::test_init_sprod_op[bar]", "tests/ops/op_math/test_sprod.py::TestInitialization::test_parameters", "tests/ops/op_math/test_sprod.py::TestInitialization::test_data", "tests/ops...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
a86b54034e654f888bdbff2c04d6e1d35921ed0b
2025-03-10 23:20:54
docker.io/swerebenchv2/neurodatawithoutborders-pynwb:2056-a86b540
neurodatawithoutborders__pynwb-2056
Method: NWBFile.__init__(self, session_description, identifier, session_start_time, timestamps_reference_time=None, **kwargs) Location: src/pynwb/file.py (class NWBFile) Inputs: - **session_description** (str): description of the recording session. - **identifier** (str): unique identifier for the NWBFile. - **ses...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 52c00b21..d4f6ad56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Upcoming ### Enhancements and minor changes +- Automatically add timezone information to timestamps reference time if no timezone information is specified. @stephprince [#2056](https://g...
Allow timezone-naive timestamps reference time on read ## Motivation Fix #2054. Allow files with a timestamps reference time that is not timezone-aware to be read. ## How to test the behavior? In MATLAB: ```Matlab nwb = NwbFile( ... 'session_description', 'Simple demo file', ... 'identifier', 'tes...
[Bug]: Fail to read NWB file where TimeZone is missing from session_start_time ### What happened? Not sure if this is a bug, but it seems strict to enforce TimeZone on read. ### Steps to Reproduce In MATLAB: ```matlab nwb = NwbFile( ... 'session_description', 'Simple demo file', ... 'identifier', 'test_file'...
NeurodataWithoutBorders/pynwb
diff --git a/tests/unit/test_file.py b/tests/unit/test_file.py index c76abd7f..7d66926c 100644 --- a/tests/unit/test_file.py +++ b/tests/unit/test_file.py @@ -698,13 +698,14 @@ class TestTimestampsRefAware(TestCase): self.ref_time_notz = datetime(1979, 1, 1, 0, 0, 0) def test_reftime_tzaware(self): - ...
[ "tests/unit/test_file.py::TestTimestampsRefAware::test_reftime_tzaware" ]
[ "tests/unit/test_file.py::NWBFileTest::test_access_group_after_io", "tests/unit/test_file.py::NWBFileTest::test_access_processing_with_modules", "tests/unit/test_file.py::NWBFileTest::test_add_acquisition", "tests/unit/test_file.py::NWBFileTest::test_add_acquisition_check_dups", "tests/unit/test_file.py::NW...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/NeurodataWithoutBorders/pynwb/blob/de...
56d11d841cbe1b5b6b0242f276b88b82119851e1
2024-02-20 21:51:35
docker.io/swerebenchv2/getmoto-moto:7373-56d11d8
getmoto__moto-7373
Method: SQSResponse.send_message(self) Location: moto/sqs/responses.py → class SQSResponse, method send_message Inputs: - MessageBody (str) – required body of the SQS message. - DelaySeconds (int | None, optional) – when provided (including 0) overrides the queue’s default DelaySeconds; if omitted or None the q...
python
Apache-2.0
diff --git a/docs/docs/configuration/index.rst b/docs/docs/configuration/index.rst index db38ad1aa..c2e8b7ad1 100644 --- a/docs/docs/configuration/index.rst +++ b/docs/docs/configuration/index.rst @@ -49,6 +49,9 @@ That is why Moto resets the `boto3-Session`, to make sure that it is recreated w If all of your tests ...
SQS: send_message() should respect DelaySeconds of 0 Fixes #7372
DelaySeconds for individual messages not working. Although [AWS documentation](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-timers.html) states `A message timer setting for an individual message overrides any DelaySeconds value on an Amazon SQS delay queue`. The following will ...
getmoto/moto
diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index a28e0428e..6b8d4f67d 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -1438,6 +1438,19 @@ def test_send_message_with_delay(): assert len(messages) == 0 +@mock_aws +def test_send_message_with_message_delay_over...
[ "tests/test_sqs/test_sqs.py::test_send_message_with_message_delay_overriding_queue_delay" ]
[ "tests/test_sqs/test_sqs.py::test_create_fifo_queue_fail", "tests/test_sqs/test_sqs.py::test_create_queue_with_same_attributes", "tests/test_sqs/test_sqs.py::test_create_queue_with_different_attributes_fail", "tests/test_sqs/test_sqs.py::test_create_fifo_queue", "tests/test_sqs/test_sqs.py::test_create_fifo...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.aws.amazon.com/AWSSimpleQueueService/latest...
4a854a71c087a315e3d8697fa824e9714e6db7b2
2022-08-25 09:34:33
docker.io/swerebenchv2/zalando-patroni:2398-4a854a7
zalando__patroni-2398
Function: validate_host_port(host_port, listen=False, multiple_hosts=False) Location: patroni/validator.py Inputs: - **host_port** (str): A string representing host and port, e.g., `"127.0.0.1:5432"` or `"*:5432"`. - **listen** (bool, optional): When `True`, the function validates values for `postgresql.listen`, allowi...
python
MIT
diff --git a/patroni/validator.py b/patroni/validator.py index 595d4355..839a9016 100644 --- a/patroni/validator.py +++ b/patroni/validator.py @@ -37,6 +37,10 @@ def validate_host_port(host_port, listen=False, multiple_hosts=False): hosts = hosts.split(",") else: hosts = [hosts] + ...
Accept '*:<port>' for postgresql.listen We catch this special value when validating configuration and check that it's alone in the hosts list. Fixes #2397.
Accept *:port as a valid entry for postgresql.listen in patroni --validate-config **Describe the bug** If `postgresql.listen` is set to `*:port`, `patroni --validate-config` complains. I understand that security wise choosing the interface explicitly is better and that patroni's documentation doesn't state that it'...
zalando/patroni
diff --git a/tests/test_validator.py b/tests/test_validator.py index 830b415e..9ccc6a7d 100644 --- a/tests/test_validator.py +++ b/tests/test_validator.py @@ -156,6 +156,7 @@ class TestValidator(unittest.TestCase): files.append(config["postgresql"]["bin_dir"]) c = copy.deepcopy(config) c["res...
[ "tests/test_validator.py::TestValidator::test_pg_version_missmatch" ]
[ "tests/test_validator.py::TestValidator::test_bin_dir_is_empty", "tests/test_validator.py::TestValidator::test_bin_dir_is_file", "tests/test_validator.py::TestValidator::test_complete_config", "tests/test_validator.py::TestValidator::test_data_dir_contains_pg_version", "tests/test_validator.py::TestValidato...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
c2ae5b0d4ae14d18691ea3fd89e378ecd4fce535
2017-09-01 13:23:01
docker.io/swerebenchv2/jonathanj-eliottree:61-c2ae5b0
jonathanj__eliottree-61
Function: UTC() Location: iso8601.iso8601 Inputs: None (instantiated with no arguments) Outputs: tzinfo instance representing the UTC timezone, suitable for use with datetime.replace(tzinfo=...) Description: Creates a UTC tzinfo object. Used by tests and library code to attach a reliable UTC timezone to datetime object...
python
custom-check-github
diff --git a/eliottree/filter.py b/eliottree/filter.py index a3f48ea..9fd5f8f 100644 --- a/eliottree/filter.py +++ b/eliottree/filter.py @@ -1,7 +1,7 @@ from datetime import datetime import jmespath -from iso8601.iso8601 import Utc +from iso8601.iso8601 import UTC def filter_by_jmespath(query): @@ -25,7 +25,7 ...
Fix eliot-tree being broken with `iso8601` 0.1.12. Use a public import that hasn't been deprecated yet. Fixes #60. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/jonathanj/eliottree/61) <!...
`iso8601.iso8601.Utc` is not reliably available Version 0.1.12 doesn't expose this for Python 3.2.0 and newer, it looks like this is not really a public export anyway and we ought to be using `UTC` which is an instance of a UTC tzinfo implementation.
jonathanj/eliottree
diff --git a/eliottree/test/test_filter.py b/eliottree/test/test_filter.py index 023cb02..495b4fa 100644 --- a/eliottree/test/test_filter.py +++ b/eliottree/test/test_filter.py @@ -1,7 +1,7 @@ from calendar import timegm from datetime import datetime -from iso8601.iso8601 import Utc +from iso8601.iso8601 import UTC...
[ "eliottree/test/test_filter.py::FilterByJmespath::test_match", "eliottree/test/test_filter.py::FilterByJmespath::test_no_match", "eliottree/test/test_filter.py::FilterByUUID::test_match", "eliottree/test/test_filter.py::FilterByUUID::test_no_match", "eliottree/test/test_filter.py::FilterByStartDate::test_ma...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2b125c7729eed6d290de0ed70e1f6db36101d54a
2020-09-27 11:45:39
docker.io/swerebenchv2/astropenguin-xarray-dataclasses:8-2b125c7
astropenguin__xarray-dataclasses-8
No new interfaces are introduced.
python
MIT
diff --git a/pyproject.toml b/pyproject.toml index cd339df..5ccfaae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xarray-dataclasses" -version = "0.1.1" +version = "0.1.2" description = "xarray extension for dataarray classes" authors = ["Akio Taniguchi <taniguchi@a.phys.nag...
Release v0.1.2 This PR closes #7.
Release v0.1.2 - Update version numbers written in: - `pyproject.toml` - `xarray_dataclasses/__init__.py` - `tests/test_metadata.py`
astropenguin/xarray-dataclasses
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index ce98ba5..abd2a51 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -6,4 +6,4 @@ def test_author(): def test_version(): - assert xarray_dataclasses.__version__ == "0.1.1" + assert xarray_dataclasses.__version__ == "0.1.2"
[ "tests/test_metadata.py::test_version" ]
[ "tests/test_metadata.py::test_author" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 1, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [ ...
72672b4e026da688d5e8a05204fdfa13bf9d3478
2022-11-09 05:42:56
docker.io/swerebenchv2/omni-us-jsonargparse:190-72672b4
omni-us__jsonargparse-190
Function: function_constant_boolean(**kwargs) Location: jsonargparse_tests.test_parameter_resolvers Inputs: **kwargs – arbitrary keyword arguments forwarded to the conditional calls; the function also reads the module‑level globals `constant_boolean_1` (bool) and `constant_boolean_2` (bool). Outputs: Returns the result...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9978d96..fdb1696 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,13 +12,22 @@ The semantic versioning only considers the public API as described in paths are considered internals and can change in minor and patch releases. -v4.16.1 (2022-11-??) +v4.17.0 (2022-...
AST resolver support for conditionals ## What does this PR do? Fixes #187 ## Before submitting - [x] Did you read the [contributing guideline](https://github.com/omni-us/jsonargparse/blob/master/CONTRIBUTING.rst)? - [x] Did you update **the documentation**? (readme and public docstrings) - [x] Did you write ...
`jsonargparse` is trying to deepcopy object in some case <!-- If you like this project, please ⭐ star it https://github.com/omni-us/jsonargparse/ --> ## 🐛 Bug report I really don't know what to write here, but I have attached code snippet with the errors. ### To reproduce This fails: ```py from pytorch_l...
omni-us/jsonargparse
diff --git a/jsonargparse_tests/test_parameter_resolvers.py b/jsonargparse_tests/test_parameter_resolvers.py index 3fd83ae..4d6dd88 100755 --- a/jsonargparse_tests/test_parameter_resolvers.py +++ b/jsonargparse_tests/test_parameter_resolvers.py @@ -148,19 +148,23 @@ class ClassG: elif self.func == '2': ...
[ "jsonargparse_tests/test_parameter_resolvers.py::GetClassParametersTests::test_get_params_class_from_function", "jsonargparse_tests/test_parameter_resolvers.py::GetClassParametersTests::test_get_params_class_kwargs_in_attr_method_conditioned_on_arg", "jsonargparse_tests/test_parameter_resolvers.py::GetClassPara...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
7af0701f89885a29c7550b570470e6f0772faefd
2023-01-03 04:28:18
docker.io/swerebenchv2/hypothesisworks-hypothesis:3536-7af0701
hypothesisworks__hypothesis-3536
Function: get_type_hints(thing) Location: hypothesis.internal.compat.get_type_hints Inputs: - **thing**: Any object for which type hints are to be resolved. In the context of the new tests this includes a `functools.partial` object wrapping a callable (e.g., `partial(func, 1, 2)`). Outputs: - `dict[str, Any]`: Mappin...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..265eaf7d9 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,6 @@ +RELEASE_TYPE: patch + +This patch teaches our enhanced :func:`~typing.get_type_hints` function to +'see through' :obj:`~functools....
`get_type_hints()` support for `partial()` Closes #3478.
`get_type_hints()` should support `functools.partial()` Our `get_type_hints()` helper doesn't currently support `functools.partial()`, but I think it should - it's easy enough to detect, recurse on the wrapped callable, and then drop any bound-positional args (bound kwargs just assign a default value). We should als...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_compat.py b/hypothesis-python/tests/cover/test_compat.py index 90f4d1a2e..832cc1082 100644 --- a/hypothesis-python/tests/cover/test_compat.py +++ b/hypothesis-python/tests/cover/test_compat.py @@ -10,6 +10,7 @@ import math from dataclasses import dataclass +from funct...
[ "hypothesis-python/tests/cover/test_compat.py::test_get_hints_through_partial[pf0-b", "hypothesis-python/tests/cover/test_compat.py::test_get_hints_through_partial[pf1-c", "hypothesis-python/tests/cover/test_compat.py::test_get_hints_through_partial[pf2-c", "hypothesis-python/tests/cover/test_compat.py::test_...
[ "hypothesis-python/tests/cover/test_compat.py::test_our_floor_agrees_with_math_floor[-10.7]", "hypothesis-python/tests/cover/test_compat.py::test_our_floor_agrees_with_math_floor[-10.3]", "hypothesis-python/tests/cover/test_compat.py::test_our_floor_agrees_with_math_floor[-0.5]", "hypothesis-python/tests/cove...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
606a90d665a15a16c437dd1fb72ef014aa480142
2017-09-19 15:34:09
docker.io/swerebenchv2/core-gatech-group-serpent-tools:4-606a90d
core-gatech-group__serpent-tools-4
Method: DepletedMaterial.getXY(self, xUnits, yUnits, timePoints=None, names=None) Location: serpentTools/objects/__init__.py, class DepletedMaterial Inputs: - xUnits (str): name of the x‑axis data array (e.g., 'days'). - yUnits (str): name of the y‑axis data array (e.g., 'adens'). - timePoints (list[float|int] | None):...
python
MIT
diff --git a/serpentTools/__init__.py b/serpentTools/__init__.py index 8af8d0f..d38090d 100644 --- a/serpentTools/__init__.py +++ b/serpentTools/__init__.py @@ -1,7 +1,7 @@ from serpentTools import settings from serpentTools import parsers -__version__ = '0.1.1' +__version__ = '0.1.2' # List TODOS/feature ...
Fixes #3; Cleaned up reader subclasses If the reader requests days that are not present on the depleted material through the getXY method, a key error is raised. Added a unit test to verify this fix. Fixes #3 Signed-off-by: Andrew Johnson <1drew.e.johnson@gmail.com>
`getXY` for `DepletedMaterial` raises unhelpful value error if days missing from object If a depleted material is asked to get some quantity for days that are not present, the following error is raised: ``` File "C:\Users\ajohnson400\AppData\Local\Continuum\Anaconda3\lib\site-packages\serpenttools-0.1.1rc0-py3.5.eg...
CORE-GATECH-GROUP/serpent-tools
diff --git a/serpentTools/tests/test_depletion.py b/serpentTools/tests/test_depletion.py index 0574305..d7f6d52 100644 --- a/serpentTools/tests/test_depletion.py +++ b/serpentTools/tests/test_depletion.py @@ -156,6 +156,17 @@ class DepletedMaterialTester(_DepletionTestHelper): ...
[ "serpentTools/tests/test_depletion.py::DepletedMaterialTester::test_getXY_raisesError_badTime" ]
[ "serpentTools/tests/test_depletion.py::DepletionTester::test_ReadMaterials", "serpentTools/tests/test_depletion.py::DepletionTester::test_metadata", "serpentTools/tests/test_depletion.py::DepletedMaterialTester::test_fetchData", "serpentTools/tests/test_depletion.py::DepletedMaterialTester::test_getXY_adens",...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
1b24ad91323c8444e398b75ed40ad54cf678ea0d
2025-03-24 16:54:52
docker.io/swerebenchv2/kozea-weasyprint:2416-1b24ad9
kozea__weasyprint-2416
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/weasyprint/text/line_break.py b/weasyprint/text/line_break.py index ea9c6ca7..11f7be55 100644 --- a/weasyprint/text/line_break.py +++ b/weasyprint/text/line_break.py @@ -377,27 +377,45 @@ def split_first_line(text, style, context, max_width, justification_spacing, soft_hyphen = '\xad' auto_hyph...
Correctly split words for automatic hyphenation Fix #2270.
Hyphenation not working when a nbsp is present elsewhere in the word I am not sure whether this is a bug or feature. See this rendering: ![image](https://github.com/user-attachments/assets/3ace4b2c-88c8-4507-9cb3-a64a57b6798e) The "x komunikace" is not hyphenated when the space is non-breakable. I would say that ...
Kozea/WeasyPrint
diff --git a/tests/test_text.py b/tests/test_text.py index a3f3c89d..5ecb1528 100644 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -833,6 +833,22 @@ def test_hyphenate_limit_zone_4(): assert full_text == 'mmmmmhyphénation' +def test_hyphen_nbsp(): + # Regression test for issue #1817. + page, = ren...
[ "tests/test_text.py::test_hyphen_nbsp" ]
[ "tests/test_text.py::test_line_content", "tests/test_text.py::test_line_with_any_width", "tests/test_text.py::test_line_breaking", "tests/test_text.py::test_line_breaking_rtl", "tests/test_text.py::test_line_breaking_nbsp", "tests/test_text.py::test_text_dimension", "tests/test_text.py::test_text_font_s...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
1b0c9f7d444e037d1e9b5635b993c46053442e1b
2024-05-20 17:23:29
docker.io/swerebenchv2/theupdateframework-python-tuf:2632-1b0c9f7
theupdateframework__python-tuf-2632
No new interfaces are introduced.
python
Apache-2.0
diff --git a/tuf/ngclient/_internal/requests_fetcher.py b/tuf/ngclient/_internal/requests_fetcher.py index c931b85a..937357a5 100644 --- a/tuf/ngclient/_internal/requests_fetcher.py +++ b/tuf/ngclient/_internal/requests_fetcher.py @@ -141,7 +141,7 @@ def _get_session(self, url: str) -> requests.Session: se...
changing user-agent value <!-- Before submitting a pull request: * Run linter and tests locally: Use "tox" * Ensure your commits are signed-off-by: Use "commit --signoff" * Make sure new code has tests and is documented * For more info, see docs/CONTRIBUTING.rst Once commits are signed off and tested, d...
user-agent should maybe mention "python"? User agent set in tuf/ngclient/_internal/requests_fetcher.py is `tuf/5.0.0` -- this looks good but I think should be `python-tuf/5.0.0` instead as it should identify the complete project when visible in an access log.
theupdateframework/python-tuf
diff --git a/tests/test_updater_ng.py b/tests/test_updater_ng.py index ea830c17..73437879 100644 --- a/tests/test_updater_ng.py +++ b/tests/test_updater_ng.py @@ -325,7 +325,7 @@ def test_user_agent(self) -> None: self.updater.refresh() session = next(iter(self.updater._fetcher._sessions.values())) ...
[ "tests/test_updater_ng.py::TestUpdater::test_user_agent" ]
[ "tests/test_updater_ng.py::TestUpdater::test_both_target_urls_not_set", "tests/test_updater_ng.py::TestUpdater::test_external_targets_url", "tests/test_updater_ng.py::TestUpdater::test_implicit_refresh_with_only_local_root", "tests/test_updater_ng.py::TestUpdater::test_invalid_target_base_url", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
fd27267c629b7c4d2bae1c2f375f4fe7089c21f2
2024-10-11 10:15:01
docker.io/swerebenchv2/celery-celery:9348-fd27267
celery__celery-9348
Method: GCSBackend.bucket(self) Location: celery/backends/gcs.py Inputs: None – called on a GCSBackend instance after the backend is configured. Outputs: Returns a Google Cloud Storage Bucket object for the configured bucket name; raises ImproperlyConfigured if the client cannot be created. Description: Provides lazy, ...
python
custom-check-github
diff --git a/celery/backends/gcs.py b/celery/backends/gcs.py index c57c2e449..d667a9ccc 100644 --- a/celery/backends/gcs.py +++ b/celery/backends/gcs.py @@ -8,35 +8,51 @@ from kombu.utils.encoding import bytes_to_str from kombu.utils.functional import dictfilter from kombu.utils.url import url_to_parts -from celery...
fix(perform_pending_operations): prevent task duplication on shutdown… ## Description Resolved an issue where completed tasks were restored on shutdown, causing duplicates for recursive tasks in gevent/eventlet modes (#5663). The problem was that `perform_pending_operations()` was not called before `SystemExit` was ...
Completed tasks restore on shutdown causing duplicates for recursive tasks <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x...
celery/celery
diff --git a/t/unit/backends/test_gcs.py b/t/unit/backends/test_gcs.py index 8ebfbc9aa..32e106591 100644 --- a/t/unit/backends/test_gcs.py +++ b/t/unit/backends/test_gcs.py @@ -1,13 +1,24 @@ -from datetime import datetime -from unittest.mock import Mock, call, patch +import sys +from datetime import datetime, timedelta...
[ "t/unit/backends/test_gcs.py::test_GCSBackend::test_missing_firestore_module", "t/unit/test_loops.py::test_synloop_perform_pending_operations_on_system_exit" ]
[ "t/unit/backends/test_gcs.py::test_GCSBackend::test_missing_storage_module", "t/unit/worker/test_consumer.py::test_Consumer::test_repr", "t/unit/worker/test_consumer.py::test_Consumer::test_taskbuckets_defaultdict", "t/unit/worker/test_consumer.py::test_Consumer::test_sets_heartbeat", "t/unit/worker/test_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "http://docs.celeryproject.org/en/latest/contributing.htm...
83160eeb42f980bfd182a267e7a1fdd2e52dfcfe
2021-11-03 21:22:41
docker.io/swerebenchv2/alteryx-woodwork:1184-83160ee
alteryx__woodwork-1184
Method: WoodworkColumnAccessor.box_plot_dict(self, quantiles=None, include_indices_and_values=True) Location: woodwork/column_accessor.py Inputs: - self: WoodworkColumnAccessor bound to a pandas Series. - quantiles (dict[float → float], optional): Pre‑computed quantiles; if omitted they are calculated from the data. - ...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index cc04524..4d72b0d 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -9,6 +9,7 @@ Future Release * Set a maximum version for pyspark until we understand why :pr:`1169` failed (:pr:`1179`) * R...
Make box plot low/high indices/values optional to return - Adds a parameter to `box_plot_dict` that determines whether the lists of outlier values and their indices are included in the returned dictionary - Closes #1168
Make box plot low/high indices/values optional to return In a series with many outliers, returning all of the low and high indices and the low and high values can make the results of `box_plot_dict` difficult to read, as the low bound, the high bound, and the quantiles are such small parts of the output in that case. ...
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_statistics.py b/woodwork/tests/accessor/test_statistics.py index 352c583..68094d1 100644 --- a/woodwork/tests/accessor/test_statistics.py +++ b/woodwork/tests/accessor/test_statistics.py @@ -1250,3 +1250,51 @@ def test_box_plot_quantiles_errors(outliers_df): error = "quant...
[ "woodwork/tests/accessor/test_statistics.py::test_box_plot_optional_return_values[outliers_df_pandas]" ]
[ "woodwork/tests/accessor/test_statistics.py::test_get_mode", "woodwork/tests/accessor/test_statistics.py::test_accessor_replace_nans_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_accessor_make_categorical_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_mutual_info_sam...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
4b79ff3631be81482ad97308bd05839d537ba2e7
2018-03-11 15:32:17
docker.io/swerebenchv2/maniacallabs-bibliopixel:658-4b79ff3
maniacallabs__bibliopixel-658
No new interfaces are introduced.
python
MIT
diff --git a/bibliopixel/__init__.py b/bibliopixel/__init__.py index ee0a2dd..bab3491 100644 --- a/bibliopixel/__init__.py +++ b/bibliopixel/__init__.py @@ -9,10 +9,11 @@ from . util.colors import gamma from . drivers import return_codes from . project import data_maker -# These are DEPRECATED -from . layout import...
Copy websocket.Server.clients before iterating over it (fix #656) `set.copy` is thread-safe - see https://stackoverflow.com/a/46335759/43839 - so this should fix the problem though I wasn't able to reproduce the issue again.
Race condition in websocket code. I wasn't able to reproduce this a second time, but reading the code makes it obvious that this exception is quite possible because there is no lock protecting the clients... DEBUG - websocket - Connected:('127.0.0.1', 50114) Traceback (most recent call last): File "/...
ManiacalLabs/BiblioPixel
diff --git a/test/bibliopixel/project/project_test.py b/test/bibliopixel/project/project_test.py index 2bda4b2..acd3936 100644 --- a/test/bibliopixel/project/project_test.py +++ b/test/bibliopixel/project/project_test.py @@ -72,11 +72,8 @@ class ProjectTest(unittest.TestCase): PROJECT = """ { - "driver": { - ...
[ "test/bibliopixel/project/project_test.py::ProjectTest::test_simple", "test/bibliopixel/project/project_test.py::ProjectTest::test_types" ]
[ "test/bibliopixel/project/project_test.py::ProjectTest::test_aliases", "test/bibliopixel/project/project_test.py::ProjectTest::test_bad_json", "test/bibliopixel/project/project_test.py::ProjectTest::test_file", "test/bibliopixel/project/project_test.py::ProjectTest::test_multi", "test/bibliopixel/project/pr...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2261b55ffbac6b52e6f56434bfd5508455dc3ac6
2025-01-16 13:19:09
docker.io/swerebenchv2/stac-utils-pystac:1495-2261b55
stac-utils__pystac-1495
Method: Link.item(item: Item, title: str | None = None) Location: pystac/link.py → class Link Inputs: - **item**: an `Item` instance the link should point to. - **title** (optional): a human‑readable title for the link. Outputs: a `Link` object whose `rel` is `pystac.RelType.ITEM` and whose `media_type` is se...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index e1656cea..d9149839 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## [Unreleased] - ### Added - Top-level `item_assets` dict on `Collection`s ([#1476](https://github.com/stac-utils/pystac/pull/1476)) @@ -14,6 +13,10 @@ - Correctly detect absolute fi...
fix: use application/geo+json for item links **Related Issue(s):** - Closes #1494
Link `item` type should be `application/geo+json` Hi! Pystac is not using [the **preferred** media type for link of rel `item` which should be `application/geo+json` rather than `application/json`](https://github.com/radiantearth/stac-spec/blob/master/commons/links.md#hierarchical-relations): https://github.com/stac...
stac-utils/pystac
diff --git a/tests/test_link.py b/tests/test_link.py index c7ecdb6c..0461a259 100644 --- a/tests/test_link.py +++ b/tests/test_link.py @@ -346,3 +346,9 @@ def test_is_hierarchical(rel: str) -> None: ) def test_is_not_hierarchical(rel: str) -> None: assert not Link(rel, "a-target").is_hierarchical() + + +def test...
[ "tests/test_link.py::test_item_link_type" ]
[ "tests/test_link.py::LinkTest::test_auto_title_is_serialized", "tests/test_link.py::LinkTest::test_auto_title_not_found", "tests/test_link.py::LinkTest::test_auto_title_when_resolved", "tests/test_link.py::LinkTest::test_get_target_str_no_href", "tests/test_link.py::LinkTest::test_link_does_not_fail_if_href...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/radiantearth/stac-spec/blob/master/co...
78e9fa96152d186ec7086d741f5f8ddaba1315e8
2024-07-08 17:04:23
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3475-78e9fa9
aws-cloudformation__cfn-lint-3475
Method: Schema.__init__(self, schema: dict) Location: src/cfnlint/schema/__init__.py (Schema class definition) Inputs: - **schema** – a dictionary that follows the CloudFormation resource schema JSON format (e.g., contains “typeName”, “properties”, “readOnlyProperties”, etc.). The dict must include at least the keys u...
python
MIT-0
diff --git a/src/cfnlint/rules/functions/GetAtt.py b/src/cfnlint/rules/functions/GetAtt.py index 03e202046..006bf1922 100644 --- a/src/cfnlint/rules/functions/GetAtt.py +++ b/src/cfnlint/rules/functions/GetAtt.py @@ -102,10 +102,6 @@ class GetAtt(BaseFn): yield err cont...
Update GetAtt logic for SC Cfn type *Issue #, if available:* fix #3474 *Description of changes:* - Update GetAtt logic for SC Cfn type By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Outputs on AWS::ServiceCatalog::CloudFormationProvisionedProduct causing errors ### CloudFormation Lint Version cfn-lint 1.5.0 ### What operating system are you using? Amazon Linux ### Describe the bug Dynamic values under `Outputs` on `AWS::ServiceCatalog::CloudFormationProvisionedProduct` resource types cause er...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/schema/test_schema.py b/test/unit/module/schema/test_schema.py index 94d3bbbff..10a10c8ba 100644 --- a/test/unit/module/schema/test_schema.py +++ b/test/unit/module/schema/test_schema.py @@ -142,7 +142,6 @@ def resource_vpc_schema(): def test_vpc_schema(resource_vpc_schema): - sc...
[ "test/unit/module/schema/test_schema.py::test_servicecatalog_cloudformation_schema" ]
[ "test/unit/module/schema/test_schema.py::test_schema", "test/unit/module/schema/test_schema.py::test_vpc_schema" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.aws.amazon.com/AWSCloudFormation/latest/U...
5e2399cbcb7ca2181ce0fae3c7033f57ed3d329c
2025-05-03 11:13:42
docker.io/swerebenchv2/getmoto-moto:8869-5e2399c
getmoto__moto-8869
Function: put_object(Bucket, Key, Body, IfMatch=None, IfNoneMatch=None, …) Location: boto3 S3 client (`boto3.client("s3")`) – Moto implements the call in `moto.s3.responses.S3Response` which now reads the HTTP header **If-Match**. Inputs: - **Bucket** (str): name of the target bucket. - **Key** (str): object key. - **B...
python
Apache-2.0
diff --git a/moto/s3/responses.py b/moto/s3/responses.py index 48f5220e2..f27b1589a 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -1754,6 +1754,7 @@ class S3Response(BaseResponse): storage_class = self.headers.get("x-amz-storage-class", "STANDARD") encryption = self.headers.get("x-am...
S3: put_object() - IfMatch is now supported Fixes #8653 Also moves the tests around, so that all conditional tests (IfMatch, IfNoneMatch, IfModifiedSince, etc) are now grouped into one file.
PutObject If-Match PreconditionFailed not functional Hello 👋 Just noticed that I'm not getting an exception when attempting to put some s3 behavior under test. Previously, I think PutObject only support `If-None-Match` conditional header to prevent overwrites, but I noticed they added [`If-Match` support](https://do...
getmoto/moto
diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py index bd086a306..87ae98ea1 100644 --- a/tests/test_s3/test_s3.py +++ b/tests/test_s3/test_s3.py @@ -20,7 +20,6 @@ from freezegun import freeze_time import moto.s3.models as s3model from moto import mock_aws, moto_proxy, settings -from moto.core.utils ...
[ "tests/test_s3/test_s3_conditionals.py::test_put_object_if_match" ]
[ "tests/test_s3/test_s3.py::test_keys_are_pickleable", "tests/test_s3/test_s3.py::test_my_model_save[us-west-2-aws]", "tests/test_s3/test_s3.py::test_my_model_save[cn-north-1-aws-cn]", "tests/test_s3/test_s3.py::test_my_model_save[us-isob-east-1-aws-iso-b]", "tests/test_s3/test_s3.py::test_object_metadata", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.aws.amazon.com/AmazonS3/latest/API/API_He...
84606060fee50e13ab68a7d50dffefcbb0304a72
2017-03-22 14:04:28
docker.io/swerebenchv2/yelp-bravado-core:165-8460606
yelp__bravado-core-165
No new interfaces are introduced.
python
custom-check-github
diff --git a/bravado_core/schema.py b/bravado_core/schema.py index 1aa4854..74c4e45 100644 --- a/bravado_core/schema.py +++ b/bravado_core/schema.py @@ -76,7 +76,7 @@ def get_spec_for_prop(swagger_spec, object_spec, object_value, prop_name): :param prop_name: name of the property to retrieve the spec for :r...
Fix unmarshalling of null values for properties with no spec When adding support for default values during unmarshalling in 4.7.0, we didn't handle the case correctly of a property having a null value and no spec. This fixes it. The new test fails without the change and passes with it. Fixes #163.
unmarshal bug in 4.7.(0|1) I've confirmed that we don't get the following error when i downgrade from 4.7.0 (or 4.7.1) to 4.6.1. ``` ====================================================================== 1) ERROR: test_bundles (bundles.test_bundles.BundlesTest) ----------------------------------------------------...
Yelp/bravado-core
diff --git a/tests/unmarshal/unmarshal_object_test.py b/tests/unmarshal/unmarshal_object_test.py index 43a762c..a6ae344 100644 --- a/tests/unmarshal/unmarshal_object_test.py +++ b/tests/unmarshal/unmarshal_object_test.py @@ -347,6 +347,12 @@ def test_pass_through_property_with_no_spec( assert result == address ...
[ "tests/unmarshal/unmarshal_object_test.py::test_pass_through_null_property_with_no_spec" ]
[ "tests/unmarshal/unmarshal_object_test.py::test_with_properties[Avenue-Avenue]", "tests/unmarshal/unmarshal_object_test.py::test_with_properties[None-Street]", "tests/unmarshal/unmarshal_object_test.py::test_with_array", "tests/unmarshal/unmarshal_object_test.py::test_with_nested_object", "tests/unmarshal/u...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
a4b6ec9fcea353dd6f1c509ad6834aa6fd10564d
2020-07-01 14:10:08
docker.io/swerebenchv2/python-markdown-markdown:995-a4b6ec9
python-markdown__markdown-995
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index 897308c..dfbb384 100644 --- a/docs/change_log/release-3.3.md +++ b/docs/change_log/release-3.3.md @@ -70,6 +70,7 @@ The following new features have been included in the 3.3 release: The following bug fixes are included in the 3.3 rele...
Fix HR which follows stromg em. Fixes #897.
HR preceeded by ***word*** doesn't render as HR Input: ``` ***test*** *** ``` Output (second line will be rendered as a literal `***`): ```html <p><strong><em>test</em></strong> ***</p> ``` Expected output according to Markdown.pl: ```html <p><strong><em>test</em></strong> </p> <hr /> ``` Th...
Python-Markdown/markdown
diff --git a/tests/test_syntax/blocks/test_hr.py b/tests/test_syntax/blocks/test_hr.py index 6f6cc88..009a39d 100644 --- a/tests/test_syntax/blocks/test_hr.py +++ b/tests/test_syntax/blocks/test_hr.py @@ -308,6 +308,22 @@ class TestHorizontalRules(TestCase): ) ) + def test_hr_after_emstrong(s...
[ "tests/test_syntax/blocks/test_hr.py::TestHorizontalRules::test_hr_after_emstrong" ]
[ "tests/test_syntax/blocks/test_hr.py::TestHorizontalRules::test_hr_after_paragraph", "tests/test_syntax/blocks/test_hr.py::TestHorizontalRules::test_hr_asterisks", "tests/test_syntax/blocks/test_hr.py::TestHorizontalRules::test_hr_asterisks_1_indent", "tests/test_syntax/blocks/test_hr.py::TestHorizontalRules:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
eb5a700696ebdd366584c21fb1feedf503483089
2025-03-13 14:38:10
docker.io/swerebenchv2/celery-celery:9614-eb5a700
celery__celery-9614
Method: RedisBackend.exception_safe_to_retry(self, exc) Location: celery/backends/redis.py – class RedisBackend (inherits BaseKeyValueStoreBackend, AsyncBackendMixin) Inputs: - **exc** – an exception instance (e.g., Exception, BaseException, redis.exceptions.RedisError, redis.exceptions.ConnectionError, redis.exceptio...
python
custom-check-github
diff --git a/celery/backends/redis.py b/celery/backends/redis.py index 8acc60831..3e3ef737f 100644 --- a/celery/backends/redis.py +++ b/celery/backends/redis.py @@ -359,6 +359,11 @@ class RedisBackend(BaseKeyValueStoreBackend, AsyncBackendMixin): connparams.update(query) return connparams + def e...
feat: define exception_safe_to_retry for redisbackend *Note*: Before submitting this pull request, please review our [contributing guidelines](https://docs.celeryq.dev/en/main/contributing.html). ## Description As `exception_safe_to_retry()` is currently not defined for RedisBackend, operations like `store_result`...
RedisBackend does not retry on store_result even with result_backend_always_retry=True <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x...
celery/celery
diff --git a/t/unit/backends/test_redis.py b/t/unit/backends/test_redis.py index 876d747dd..314327ef1 100644 --- a/t/unit/backends/test_redis.py +++ b/t/unit/backends/test_redis.py @@ -9,6 +9,11 @@ from unittest.mock import ANY, Mock, call, patch import pytest +try: + from redis import exceptions +except Import...
[ "t/unit/backends/test_redis.py::test_RedisBackend::test_exception_safe_to_retry" ]
[ "t/unit/backends/test_redis.py::test_RedisResultConsumer::test_on_after_fork", "t/unit/backends/test_redis.py::test_RedisResultConsumer::test_on_state_change", "t/unit/backends/test_redis.py::test_RedisResultConsumer::test_drain_events_before_start", "t/unit/backends/test_redis.py::test_RedisResultConsumer::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.celeryq.dev/en/stable/userguide/configurati...
4c3ab729c0715c0a78a0e9b3454a650f0e7e7096
2023-10-10 21:00:09
docker.io/swerebenchv2/pennylaneai-pennylane:4663-4c3ab72
pennylaneai__pennylane-4663
Method: FolderMapView.find(self, group: str, **kwargs) Location: pennylane.data.data_manager.foldermap.FolderMapView class – method used to locate a DataPath (or sub‑FolderMapView) matching a set of parameter values within a hierarchical folder map. Inputs: - **group** – name of the top‑level folder group (e.g., ...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 1ac65dd07..b904b6e4a 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -210,6 +210,9 @@ still a `_qfunc_output` property on `QNode` instances. [(#4651)](https://github.com/PennyLaneAI/pennylane/pull/46...
Fix error in 'qml.data.load()` when using 'full' parameter value **Context:** `qml.data.load()` did not properly handle specified parameters that come after `'full'`. For example, the following call should return all qspin datasets matching `sysname='Heisenberg', periodicity='open', layout='2x2'`, for any value of ...
[BUG] `qml.data.load()` fails when using 'full' parameter value ### Expected behavior `qml.data.load('qspin',sysname='Heisenberg',periodicity='open',lattice='full',layout='2x2')` Should return the Heisenberg dataset corresponding to the `open` periodicity, `rectangular` lattice, and `2x2` layout. ### Actual beha...
PennyLaneAI/pennylane
diff --git a/tests/data/data_manager/test_foldermap.py b/tests/data/data_manager/test_foldermap.py index 2bfa56e60..8b5b21c88 100644 --- a/tests/data/data_manager/test_foldermap.py +++ b/tests/data/data_manager/test_foldermap.py @@ -15,6 +15,8 @@ Tests for the :class:`pennylane.data.data_manger.FolderMapView` class. ...
[ "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds5-expect5]", "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds6-expect6]", "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds7-expect7]", "tests/data/data_manager/test_foldermap....
[ "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds0-expect0]", "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds1-expect1]", "tests/data/data_manager/test_foldermap.py::TestFolderMapView::test_find[kwds2-expect2]", "tests/data/data_manager/test_foldermap....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5a1190a297d0d5adf922d4619d4b8cf00d93b1d3
2023-07-10 16:50:34
docker.io/swerebenchv2/meltano-sdk:1826-5a1190a
meltano__sdk-1826
Method: JSONLinesBatcher.__init__(self, tap_name: str, stream_name: str, batch_config: BatchConfig) Location: singer_sdk/batch.py – class JSONLinesBatcher Inputs: - **tap_name** – name of the source tap (string), used as part of the output filename prefix. - **stream_name** – name of the data stream (string), a...
python
Apache-2.0
diff --git a/singer_sdk/batch.py b/singer_sdk/batch.py index f6bc966a..0cbf1191 100644 --- a/singer_sdk/batch.py +++ b/singer_sdk/batch.py @@ -104,7 +104,8 @@ class JSONLinesBatcher(BaseBatcher): mode="wb", ) as gz: gz.writelines( - (json...
fix: Serialization of `decimal.Decimal` Closes #1825 <!-- readthedocs-preview meltano-sdk start --> ---- :books: Documentation preview :books:: https://meltano-sdk--1826.org.readthedocs.build/en/1826/ <!-- readthedocs-preview meltano-sdk end -->
bug: `Object of type Decimal is not JSON serializable` ### Meltano Version 2.16.0 ### Python Version 3.9 ### Bug scope API ### Operating System macOS - 13.4.1 (22F82) ### Description Executing a simple sync between a MySQL extractor with `mariadb` engine and Snowflake I eventually get the following error ### ...
meltano/sdk
diff --git a/tests/core/test_batch.py b/tests/core/test_batch.py index f818cb2e..6efb3b34 100644 --- a/tests/core/test_batch.py +++ b/tests/core/test_batch.py @@ -1,11 +1,15 @@ from __future__ import annotations +import decimal +import re from dataclasses import asdict import pytest +from singer_sdk.batch impo...
[ "tests/core/test_batch.py::test_json_lines_batcher" ]
[ "tests/core/test_batch.py::test_encoding_as_dict[jsonl-compression-gzip]", "tests/core/test_batch.py::test_encoding_as_dict[jsonl-compression-none]", "tests/core/test_batch.py::test_storage_get_url", "tests/core/test_batch.py::test_storage_from_url[local]", "tests/core/test_batch.py::test_storage_from_url[s...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...