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
39d9ffff1f33a5e5141af655857f9dbe6b6df03d
2024-10-01 19:28:19
docker.io/swerebenchv2/pallets-jinja:2026-39d9fff
pallets__jinja-2026
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index aebb38b5..58dc0321 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,8 @@ Unreleased :issue:`1921` - Make compiling deterministic for tuple unpacking in a ``{% set ... %}`` call. :issue:`2021` +- Fix dunder protocol (`copy`/`pickle`/etc) interaction with...
Preserve `__slots__` metadata on Undefined types Restores erroneous deletions of `__slots__` metadata from `Undefined` types that breaks various serialization/copy mechanisms on Python >= 3.6. Also: * fix ChainedUndefined to raise AttributeError on unimplemented dunder methods to prevent breaking core Python protoco...
Undefined objects can't be copied or pickled by Python > 3.5 ### Description Due to [an ancient erroneous deletion of `__slots__` metadata](https://github.com/pallets/jinja/blob/3.1.4/src/jinja2/runtime.py#L1049-L1056), it's not possible to copy/deepcopy/pickle `Undefined` objects (all of which we occasionally need to...
pallets/jinja
diff --git a/tests/test_api.py b/tests/test_api.py index ff3fcb13..ee11a8d6 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -323,8 +323,6 @@ class TestUndefined: assert und1 == und2 assert und1 != 42 assert hash(und1) == hash(und2) == hash(Undefined()) - with pytest.raises(At...
[ "tests/test_runtime.py::test_undefined_copy[Undefined]", "tests/test_runtime.py::test_undefined_copy[ChainableUndefined]", "tests/test_runtime.py::test_undefined_copy[DebugUndefined]", "tests/test_runtime.py::test_undefined_copy[StrictUndefined]", "tests/test_runtime.py::test_undefined_deepcopy[Undefined]",...
[ "tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context...
{ "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://github.com/pallets/jinja/blob/3.1.4/src/jinja2...
7068347207667ece7e8ced3c970f834d439001ca
2023-01-30 16:01:09
docker.io/swerebenchv2/ably-ably-python:429-7068347
ably__ably-python-429
Method: WebSocketTransport.__init__(self, connection_manager: ConnectionManager, host: str, params: dict) Location: ably/realtime/websockettransport.py Inputs: - connection_manager – the ConnectionManager instance that owns this transport. - host – hostname of the Ably realtime server to connect to. - params – dicti...
python
Apache-2.0
diff --git a/ably/realtime/connection.py b/ably/realtime/connection.py index 1f18a4a..73081b3 100644 --- a/ably/realtime/connection.py +++ b/ably/realtime/connection.py @@ -161,6 +161,7 @@ class ConnectionManager(EventEmitter): self.__timeout_in_secs = self.options.realtime_request_timeout / 1000 self...
Send resume param when reconnecting Resolves #381
Send resume query param when reconnecting within `connectionStateTtl` Spec: [`RTN15b`](https://sdk.ably.com/builds/ably/specification/pull/108/features/#RTN15b) Note: do not send the `connectionSerial` param (RTN15b2) as this has been removed as of protocol v2
ably/ably-python
diff --git a/test/ably/realtimeresume_test.py b/test/ably/realtimeresume_test.py new file mode 100644 index 0000000..a4fba05 --- /dev/null +++ b/test/ably/realtimeresume_test.py @@ -0,0 +1,25 @@ +from ably.realtime.connection import ConnectionState +from test.ably.restsetup import RestSetup +from test.ably.utils import...
[ "test/ably/realtimeresume_test.py::TestRealtimeResume::test_connection_resume" ]
[]
{ "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://sdk.ably.com/builds/ably/specification/pull/10...
667c40e58a1dbf4a2619660464a845d2b5195cf7
2023-01-24 00:14:27
docker.io/swerebenchv2/getmoto-moto:5873-667c40e
getmoto__moto-5873
Method: DynamoHandler.transact_write_items(self) Location: moto/dynamodb/responses.py – DynamoHandler class handling the TransactWriteItems API call. Inputs: Reads the request body key `"TransactItems"` containing a list of transaction actions. For each action of type `"Put"`, inspects the `"Item"` map and the target...
python
Apache-2.0
diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py index e8857f510..3ddb8f113 100644 --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -1429,7 +1429,7 @@ class CognitoIdpBackend(BaseBackend): } return self._log_user_in(user_pool, client, username) - ...
DynamoDB: transact_write_items() errors on empty GSI keys Fixes #5830
client.transact_write_items allows blank value(empty string) for secondary index Fails in Moto3 and Moto4. Meaning moto allows inserting an empty string for a GSI and does not throw an error. 1. Create a mock dynamodb client object. 2. Create a table with a global secondary index ` def _create_test_ta...
getmoto/moto
diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py index ebb7c13cc..4f4cc7489 100644 --- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py +++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py @@ -803,6 +803,45 @@ de...
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_transact_write_items_with_empty_gsi_key" ]
[ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
053a56ebdc4bd888cc2a7e3186703b4d9e762861
2021-08-30 14:13:16
docker.io/swerebenchv2/hikari-py-hikari:763-053a56e
hikari-py__hikari-763
Method: GatewayBot.__init__(self, token: str, *, executor: typing.Optional[concurrent.futures.Executor] = None, http_settings: typing.Optional[hikari.config.HTTPSettings] = None, proxy_settings: typing.Optional[hikari.config.ProxySettings] = None, intents: hikari.intents.Intents = hikari.intents.Intents.ALL_UNPRIVILEGE...
python
MIT
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27d14feb..2ccd9da6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, macos-10.15, windows-2019] - # CPython 3.10-dev temporarily rem...
Feature/747 retry request on 5xx error Added retry feature for HTTP requests. If a request fails with a `5xx` status, it will retry for `n` amount of times. By default, the amount of retries is 5. It is passed as an argument to the `RESTClient` constructor as `max_retries`. ### Checklist <!-- Make sure to tick all ...
Toggle to allow n amount of automatic-retries for internal server errors ### Summary For this feature request I propose that an option be added to the rest client to allow for automatic retries on some if not all 5xx error codes either unlimited or up to a certain number of retries. ### Problem Right now the behav...
hikari-py/hikari
diff --git a/tests/hikari/impl/test_bot.py b/tests/hikari/impl/test_bot.py index 9958cee1..4c7f7cad 100644 --- a/tests/hikari/impl/test_bot.py +++ b/tests/hikari/impl/test_bot.py @@ -113,7 +113,12 @@ def bot( with stack: return bot_impl.GatewayBot( - "token", executor=executor, ht...
[ "tests/hikari/impl/test_rest_bot.py::TestRESTBot::test_run_when_asyncio_debug", "tests/hikari/impl/test_rest_bot.py::TestRESTBot::test_join", "tests/hikari/impl/test_rest_bot.py::TestRESTBot::test_print_banner", "tests/hikari/impl/test_rest_bot.py::TestRESTBot::test_on_interaction", "tests/hikari/impl/test_...
[ "tests/hikari/impl/test_rest_bot.py::TestRESTBot::test___init___parses_string_public_key", "tests/hikari/impl/test_bot.py::TestGatewayBot::test_init_when_no_settings", "tests/hikari/impl/test_rest.py::TestRestProvider::test_entity_factory_property", "tests/hikari/impl/test_rest.py::TestRestProvider::test_prox...
{ "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":...
ab271aa102142b751cc8b326d7fbe7b10dd3bc01
2023-10-06 14:22:17
docker.io/swerebenchv2/pyg-team-pytorch-geometric:8143-ab271aa
pyg-team__pytorch_geometric-8143
Method: AddLaplacianEigenvectorPE.__init__(self, k: int, is_undirected: bool, attr_name: str, **kwargs) Location: torch_geometric/transforms/add_positional_encoding.py Inputs: - **k** (int): Number of eigenvectors to compute (excluding the trivial constant eigenvector). Must be ≥ 1. - **is_undirected** (bool): Deter...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 114a8dafd..50c2d94ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed +- Enabled dense eigenvalue computation in `AddLaplacianEigenvectorPE` for small-scale gra...
Introduce dense eigenvalue computation in `AddLaplacianEigenvectorPE` for small-scale graphs Guarantees that eigenvector computation is stable. Fixes #8131
`test/transforms/test_add_positional_encoding.py::test_eigenvector_permutation_invariance` fails with AMD CPU ### 🐛 Describe the bug The unit test added in #8087 fails with the error bellow on AMD CPU based systems. ``` NVIDIA_TF32_OVERRIDE=0 pytest -s --cov --cov-report=xml test/transforms/test_add_positiona...
pyg-team/pytorch_geometric
diff --git a/test/transforms/test_add_positional_encoding.py b/test/transforms/test_add_positional_encoding.py index a3cd16ce9..c635f9f3d 100644 --- a/test/transforms/test_add_positional_encoding.py +++ b/test/transforms/test_add_positional_encoding.py @@ -56,24 +56,22 @@ def test_eigenvector_permutation_invariance(): ...
[ "test/transforms/test_add_positional_encoding.py::test_eigenvector_permutation_invariance" ]
[ "test/transforms/test_add_positional_encoding.py::test_add_laplacian_eigenvector_pe", "test/transforms/test_add_positional_encoding.py::test_add_random_walk_pe" ]
{ "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": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
863e962eb18bd49e88fb70a1406a69dc659d4cab
2016-10-20 09:55:49
docker.io/swerebenchv2/frictionlessdata-tabulator-py:108-863e962
frictionlessdata__tabulator-py-108
Function: detect_encoding(sample, encoding=None) Location: tabulator.helpers.detect_encoding Inputs: - **sample** – a `bytes` object containing a short fragment of the file (typically up to `config.BYTES_SAMPLE_SIZE` bytes). - **encoding** – optional hint string (e.g., `'utf-8'`, `'utf-8-sig'`), case‑insensitive; if...
python
MIT
diff --git a/pylama.ini b/pylama.ini index 362a793..08c5f40 100644 --- a/pylama.ini +++ b/pylama.ini @@ -1,6 +1,6 @@ [pylama] linters = pyflakes,mccabe,pep8 -ignore = E731 +ignore = E301,E731 [pylama:mccabe] complexity = 16 diff --git a/setup.py b/setup.py index 34ccf0f..103ccdb 100644 --- a/setup.py +++ b/setup....
Rebased on cchardet to improve speed - fixes #104
Replace chardet by C version (cchardet) # Overview To improve detection speed we better use - https://github.com/PyYoshi/cChardet
frictionlessdata/tabulator-py
diff --git a/tests/test_helpers.py b/tests/test_helpers.py index bca3de2..40e4144 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals import io import pytest -from tabulator import helpers +from tabulator import helpers, config # Tests @@ -41,2...
[ "tests/test_helpers.py::test_detect_encoding", "tests/test_helpers.py::test_detect_encoding_windows_1252", "tests/test_helpers.py::test_detect_encoding_unknown" ]
[ "tests/test_helpers.py::test_detect_scheme", "tests/test_helpers.py::test_detect_format", "tests/test_helpers.py::test_detect_format_works_with_urls_with_query_and_fragment_components", "tests/test_helpers.py::test_reset_stream_seekable", "tests/test_helpers.py::test_reset_stream_not_seekable", "tests/tes...
{ "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": "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/PyYoshi/cChardet" ], "inten...
acae233561ab204a3c151678f0ab3d26f34bc392
2022-07-27 20:08:32
docker.io/swerebenchv2/cta-observatory-ctapipe:2042-acae233
cta-observatory__ctapipe-2042
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/ctapipe/io/hdf5tableio.py b/ctapipe/io/hdf5tableio.py index d114e5f8..d97a7c7e 100644 --- a/ctapipe/io/hdf5tableio.py +++ b/ctapipe/io/hdf5tableio.py @@ -300,8 +300,7 @@ class HDF5TableWriter(TableWriter): max_length = field.max_length or len(value.encode("utf-8")) tr = StringTran...
Fix columns order when string column present, fixes #2041
Column numbering getting scrambled **Describe the bug** in #1973 I write a new Container for ObservationBlocks to the output file, and read it back in HDF5EventSource. However, during this process, it seems the order of columns that `ctapipe` records in `CTA_FIELD_x_` headers is not the same as for pytables, whi...
cta-observatory/ctapipe
diff --git a/ctapipe/io/tests/test_hdf5.py b/ctapipe/io/tests/test_hdf5.py index e3364eed..1ffa6c97 100644 --- a/ctapipe/io/tests/test_hdf5.py +++ b/ctapipe/io/tests/test_hdf5.py @@ -808,6 +808,7 @@ def test_column_order_single_container(tmp_path): class Container1(Container): b = Field(1, "b") + ...
[ "ctapipe/io/tests/test_hdf5.py::test_column_order_single_container" ]
[ "ctapipe/io/tests/test_hdf5.py::test_read_meta", "ctapipe/io/tests/test_hdf5.py::test_read_column_attrs", "ctapipe/io/tests/test_hdf5.py::test_append_container", "ctapipe/io/tests/test_hdf5.py::test_reader_container_reuse", "ctapipe/io/tests/test_hdf5.py::test_read_multiple_containers", "ctapipe/io/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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
b6c5294e5031fccaf9af517c4433c94a18dd9928
2024-02-09 19:28:18
docker.io/swerebenchv2/amaranth-lang-amaranth:1098-b6c5294
amaranth-lang__amaranth-1098
Method: Fragment.add_driver(self, signal, domain="comb") Location: amaranth/hdl/_ir.py Inputs: - signal – a Signal instance to be marked as driven. - domain – a string naming the clock domain that drives the signal (default “comb”). Must be a non‑None str; “comb” is used for combinatorial logic. Outputs: None (mutates...
python
BSD-2-Clause
diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index 451236e..0879453 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -794,7 +794,7 @@ def _convert_fragment(builder, fragment, name_map, hierarchy): rd_clk_polarity = 0 rd_transparency_mask = 0 for index, port ...
hdl: consistently use "comb" for combinatorial domain. Fixes #1097.
Consistently use "comb" for combinatorial domain instead of sometimes "comb" and sometimes None This simplifies the types (all of the domain dicts have strings as keys, instead of sometimes strings and sometimes NoneType), makes the codebase easier to understand, and aligns designer-visible and internal designators.
amaranth-lang/amaranth
diff --git a/tests/test_hdl_dsl.py b/tests/test_hdl_dsl.py index e094e20..ec71aa7 100644 --- a/tests/test_hdl_dsl.py +++ b/tests/test_hdl_dsl.py @@ -33,8 +33,8 @@ class DSLTestCase(FHDLTestCase): m = Module() m.d.comb += self.c1.eq(1) m._flush() - self.assertEqual(m._driving[self.c1], ...
[ "tests/test_hdl_dsl.py::DSLTestCase::test_FSM_basic", "tests/test_hdl_dsl.py::DSLTestCase::test_FSM_ongoing", "tests/test_hdl_dsl.py::DSLTestCase::test_FSM_reset", "tests/test_hdl_dsl.py::DSLTestCase::test_If", "tests/test_hdl_dsl.py::DSLTestCase::test_If_Elif", "tests/test_hdl_dsl.py::DSLTestCase::test_I...
[ "tests/test_hdl_dsl.py::DSLTestCase::test_Case_after_Default_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_bits_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_outside_Switch_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_pattern_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case...
{ "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":...
fa817112c06716bf78f47f76384fb6908685596f
2025-04-23 11:00:53
docker.io/swerebenchv2/narwhals-dev-narwhals:2421-fa81711
narwhals-dev__narwhals-2421
Method: Enum.__init__(self, categories: Iterable[str] | type[enum.Enum]) Location: narwhals/dtypes.py Inputs: *categories* – either an iterable of strings representing the enum categories or an ``enum.Enum`` subclass whose members define the categories. Outputs: Returns a new ``Enum`` dtype instance. The constructor...
python
MIT
diff --git a/narwhals/_pandas_like/utils.py b/narwhals/_pandas_like/utils.py index 3d241de2..9ad4efa2 100644 --- a/narwhals/_pandas_like/utils.py +++ b/narwhals/_pandas_like/utils.py @@ -7,6 +7,7 @@ from itertools import chain from typing import TYPE_CHECKING from typing import Any from typing import Callable +from ...
perf: Optimize, generalize `_DelayedCategories` -> `_DeferredIterable` Closes #2412 <!-- # 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) ...
perf: avoid doing work when mapping ordered categorical to Enum Currently, when mapping an ordered categorical to Enum, we call `tuple` on the categories, or even `to_pandas()` on the categories for cudf This should be unnecessary, I think we should only compute the categories as a tuple when it becomes necessary: - w...
narwhals-dev/narwhals
diff --git a/tests/dtypes_test.py b/tests/dtypes_test.py index 033f2e44..d1f403b5 100644 --- a/tests/dtypes_test.py +++ b/tests/dtypes_test.py @@ -435,6 +435,8 @@ def test_enum_categories_immutable() -> None: dtype = nw.Enum(["a", "b"]) with pytest.raises(TypeError, match="does not support item assignment"): ...
[ "tests/dtypes_test.py::test_datetime_invalid[abc]", "tests/dtypes_test.py::test_datetime_valid[Europe/Rome-us]", "tests/dtypes_test.py::test_duration_valid[us]", "tests/dtypes_test.py::test_pandas_inplace_modification_1267", "tests/dtypes_test.py::test_second_time_unit", "tests/dtypes_test.py::test_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": [], "intent_completeness": "complete", "pr_categories":...
9a5f0a065e0cd8e58b6ee11a0134ebf49b5514f5
2024-02-08 21:30:35
docker.io/swerebenchv2/getmoto-moto:7324-9a5f0a0
getmoto__moto-7324
Method: Image.modify_attribute(self, Attribute: str = None, OperationType: str = None, LaunchPermission: dict = None, OrganizationArns: list = None, OrganizationalUnitArns: list = None, **kwargs) Location: moto/ec2/models/amis.py (class Image, a boto3‑style resource) Inputs: - **Attribute** – name of the image attribut...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index d7cb91469..cb973e06d 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -2523,7 +2523,7 @@ - [X] modify_hosts - [ ] modify_id_format - [ ] modify_identity_id_format -- [ ] modify_image_attribute +- [X] modify_image_at...
EC2: modify_image_attributes() now supports all LaunchPermissions Fixes #7318 `modify_image_attributes()` now supports the `LaunchPermission`, `OrganizationArns` and `OrganizationalUnitArns` attributes Internally, the launch_permissions are now stored as a dict, more closely resembling the actual data.
When modifying EC2 image attribute to add organization ARN to launch permissions, moto silently ignores it. **How to reproduce** ``` image = boto3.resource("ec2").Image(ami_id) arn = "someOrganizationArn" image.modify_attribute( Attribute="launchPermission", OperationType="add", OrganizationArns=[a...
getmoto/moto
diff --git a/tests/test_ec2/test_amis.py b/tests/test_ec2/test_amis.py index e8bff43a0..87905a3ce 100644 --- a/tests/test_ec2/test_amis.py +++ b/tests/test_ec2/test_amis.py @@ -426,6 +426,9 @@ def test_ami_filters(): ] imageB = boto3.resource("ec2", region_name="us-east-1").Image(imageB_id) imageB.modify...
[ "tests/test_ec2/test_amis.py::test_ami_filters", "tests/test_ec2/test_amis.py::test_ami_attribute_organizations" ]
[ "tests/test_ec2/test_amis.py::test_snapshots_for_initial_amis", "tests/test_ec2/test_amis.py::test_ami_create_and_delete", "tests/test_ec2/test_amis.py::test_deregister_image__unknown", "tests/test_ec2/test_amis.py::test_deregister_image__and_describe", "tests/test_ec2/test_amis.py::test_ami_copy_dryrun", ...
{ "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":...
fc066bba85fcb704eb0416ed0d15a390567b9cbd
2023-09-12 08:13:39
docker.io/swerebenchv2/aio-libs-aiohttp:7601-fc066bb
aio-libs__aiohttp-7601
Function: issue_cert(self, common_name: str, subject_alternative_name: str, ip_address: str, ipv6_address: str) Location: Called from tests/conftest.py via the fixture tls_certificate which invokes tls_certificate_authority.issue_cert(...). The method belongs to the mocked TLSCertificateAuthority helper used to generat...
python
custom-check-github
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index d9a832d60..45334ae82 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -195,16 +195,16 @@ jobs: - name: Install dependencies run: | python -m pip install -r requirements/test.in -c requirements/...
Strip trailing dot from FQDNs in Host and TLS context Before this patch, the TLS verification fails with an exception if the client uses a fully-qualified domain name with a trailing dot, like https://github.com./ : ```console aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host github.co...
aiohttp raises SSLError when requesting URLs with FQDN ## Long story short It seems that aiohttp doesn't work properly when requesting URLs with Fully Qualified Domain Name. This was fixed in urllib3, see https://github.com/urllib3/urllib3/pull/1255 It should probably by fixed also in aiohttp. May be related to http...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index b6205b963..452051def 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -14,7 +14,7 @@ async-timeout==4.0.3 ; python_version < "3.11" # via -r requirements/runtime-deps.in attrs==23.1.0 # via -r requirements/runtime-deps.in -brot...
[ "tests/test_client_request.py::test_host_header_fqdn[pyloop-dot", "tests/test_client_request.py::test_host_header_fqdn[pyloop-single", "tests/test_client_request.py::test_host_header_fqdn[pyloop-multiple", "tests/test_client_request.py::test_host_header_fqdn[pyloop-https]", "tests/test_client_request.py::te...
[ "tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_after_head_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_response_released[pyloop]", "tests/test_client_functional.py::test_keepalive_server_force_clos...
{ "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.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/urllib3/urllib3/pull/1255", "...
f43e658703a9dfee5ae33e4cac2070a62534f4e6
2022-05-13 10:25:00
docker.io/swerebenchv2/ipython-traitlets:727-f43e658
ipython__traitlets-727
Method: Application.close_handlers(self) Location: traitlets/config/application.py (inside class Application) Inputs: self – an Application instance; expects attribute `self._logging_configured` (bool) may be present. Outputs: If `self._logging_configured` is True, iterates over `self.log.handlers` and attempts to clos...
python
BSD-3-Clause
diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 03b83e0..6b49549 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -4,6 +4,12 @@ Changes in Traitlets Traitlets 5.2 ------------- +5.2.1 +***** + + - logging: Don't attempt to close handlers unless they have been opene...
logging: don't attempt to close handlers unless they have been opened * Accessing `Application.log.handlers` causes them to be opened if not done already. * Attempting to open log handlers whilst Python is shutting down causes traceback. * Closes #722 * Traceback introduced by https://github.com/ipython/traitlets/pu...
Logging errors on Application teardown When using `traitlets` `5.2.0` to [test](https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=505255&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d&l=2525) `jupyterlab` [`3.4.1`](https://github.com/conda-forge/jupyterla...
ipython/traitlets
diff --git a/traitlets/config/tests/test_application.py b/traitlets/config/tests/test_application.py index 3fc2862..4c64811 100644 --- a/traitlets/config/tests/test_application.py +++ b/traitlets/config/tests/test_application.py @@ -804,6 +804,50 @@ def test_logging_config(tmp_path, capsys): assert capsys.readoute...
[ "traitlets/config/tests/test_application.py::test_logging_teardown_on_error" ]
[ "traitlets/config/tests/test_application.py::TestApplication::test_aliases", "traitlets/config/tests/test_application.py::TestApplication::test_aliases_help_msg", "traitlets/config/tests/test_application.py::TestApplication::test_basic", "traitlets/config/tests/test_application.py::TestApplication::test_cli_a...
{ "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://dev.azure.com/conda-forge/feedstock-builds/_buil...
681db433fd086e51d43354b7ad7ba64f6a51e52d
2023-03-21 21:00:55
docker.io/swerebenchv2/getmoto-moto:6106-681db43
getmoto__moto-6106
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/ec2/models/route_tables.py b/moto/ec2/models/route_tables.py index a2358f5d1..87b518eb3 100644 --- a/moto/ec2/models/route_tables.py +++ b/moto/ec2/models/route_tables.py @@ -514,7 +514,7 @@ class RouteBackend: for route in route_table.routes.values(): if not route.destination_ci...
EC2: create_route() should allow overlapping CIDR's Fixes #6096 Partially reverts #5233 @mmerrill3 Do you remember the details about the linked PR that you raised? From my testing, overlapping CIDR's are allowed - as long as it's not a direct match. The docs even mention this scenario, and explain what happens...
Incorrect behavior when a routing table contains a route for destination cidr 0.0.0.0/0 Hi, I maybe found an issue. I'm using localstack and I first thought it is an error on the localstack side (see https://github.com/localstack/localstack/issues/7915). But after a little debugging I suspect the problem is in moto....
getmoto/moto
diff --git a/tests/test_ec2/test_route_tables.py b/tests/test_ec2/test_route_tables.py index 9ab1fdc20..593c96217 100644 --- a/tests/test_ec2/test_route_tables.py +++ b/tests/test_ec2/test_route_tables.py @@ -664,16 +664,18 @@ def test_routes_already_exist(): ex.value.response["ResponseMetadata"].should.have.key("...
[ "tests/test_ec2/test_route_tables.py::test_routes_already_exist" ]
[ "tests/test_ec2/test_route_tables.py::test_route_tables_defaults", "tests/test_ec2/test_route_tables.py::test_route_tables_additional", "tests/test_ec2/test_route_tables.py::test_route_tables_filters_standard", "tests/test_ec2/test_route_tables.py::test_route_tables_filters_associations", "tests/test_ec2/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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/localstack/localstack/issues/7915", ...
2b2ba8a2b1ac0201ab3caca98e95aef23ff2442f
2025-07-12 18:12:07
docker.io/swerebenchv2/berriai-litellm:12551-2b2ba8a
berriai__litellm-12551
Method: MoonshotChatConfig.validate_environment(self, headers: dict, model: str, messages: List[dict], optional_params: dict, litellm_params: dict, api_key: Optional[str] = None, api_base: Optional[str] = None) → dict Location: litellm.llms.moonshot.chat.transformation.MoonshotChatConfig (inherits implementation from O...
python
custom-check-github
diff --git a/docs/my-website/docs/providers/moonshot.md b/docs/my-website/docs/providers/moonshot.md new file mode 100644 index 000000000..41d777e9f --- /dev/null +++ b/docs/my-website/docs/providers/moonshot.md @@ -0,0 +1,88 @@ +# Moonshot AI + +## Overview + +| Property | Details | +|-------|-------| +| Description |...
[Feat] New LLM API Integration - Add Moonshot API (Kimi) ## [Feat] New LLM API Integration - Add Moonshot API (Kimi) Add Moonshot AI platform support # Moonshot AI ## Overview | Property | Details | |-------|-------| | Description | Moonshot AI provides large language models including the moonshot-v1 seri...
[Feature]: Add Moonshot AI platform support. ### The Feature Add Moonshot AI platform to supported providers. Moonshot AI provides an OpenAI compatible API endpoint at https://api.moonshot.ai/v1. ## Supported openai endpoints - /v1/chat/completions - /v1/files - /v1/files/{file_id} - /v1/files/{file_id}/content ##...
BerriAI/litellm
diff --git a/tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.py b/tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.py new file mode 100644 index 000000000..62fcec04c --- /dev/null +++ b/tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.py @@ -0,0 +1,312 @@ +""" +Uni...
[ "tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.py::TestMoonshotConfig::test_default_api_base", "tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.py::TestMoonshotConfig::test_get_supported_openai_params", "tests/test_litellm/llms/moonshot/test_moonshot_chat_transformation.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": "B6", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [ "https://platform.moonshot.ai/docs/guide/migrating-from...
837c127b5068fd87a99b875206b95d44e48fdb50
2022-11-03 16:32:25
docker.io/swerebenchv2/cs-si-eodag:545-837c127
cs-si__eodag-545
No new interfaces are introduced.
python
Apache-2.0
diff --git a/eodag/api/core.py b/eodag/api/core.py index cd5d696b..a88a3212 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -1708,7 +1708,7 @@ class EODataAccessGateway(object): If the metadata mapping for ``downloadLink`` is set to something that can be interpreted as a link on a l...
fix: accept all local files uri formats fixes #533
accepts all file URI formats EODAG should support `file:/path/to/file` formatting the same way it already supports `file:///path/to/file`. See https://datatracker.ietf.org/doc/html/rfc8089#appendix-B
CS-SI/eodag
diff --git a/tests/units/test_core.py b/tests/units/test_core.py index f3514a29..c109a695 100644 --- a/tests/units/test_core.py +++ b/tests/units/test_core.py @@ -1498,3 +1498,34 @@ class TestCoreSearch(TestCoreBase): dag.set_preferred_provider("dummy_provider") dag.search_all(productType="S2_MSI_L1C"...
[ "tests/units/test_core.py::TestCoreDownload::test_download_local_product" ]
[ "tests/units/test_core.py::TestCore::test_core_object_locations_file_not_found", "tests/units/test_core.py::TestCore::test_core_object_open_index_if_exists", "tests/units/test_core.py::TestCore::test_core_object_set_default_locations_config", "tests/units/test_core.py::TestCore::test_discover_product_types", ...
{ "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://datatracker.ietf.org/doc/html/rfc8089#appendix-B...
8e5de9a6cceb6e56812518d7b33add341b50b5a8
2024-12-24 06:13:06
docker.io/swerebenchv2/aristanetworks-anta:978-8e5de9a
aristanetworks__anta-978
Method: VerifyDynamicVlanSource.test(self) Location: anta/tests/vlan.py Inputs: - self.inputs.sources: list[DynamicVlanSource] – the dynamic VLAN sources that must be present and have VLANs allocated. - self.inputs.strict: bool (default False) – when True, no other sources may have VLANs allocated. - command outpu...
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 4763be49..f3877459 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -240,3 +240,4 @@ IPv4RouteType = Literal[ SnmpVersion = Literal["v1", "v2c", "v3"] SnmpHashingAlgorithm = Literal["MD5", "SHA", "SHA-224", "SHA-256", "SHA-384", "SHA-512"] ...
feat(anta): Added test case to verify dynamic vlans source # Description This test performs the following checks for specified dynamic VLAN(s): 1. Ensures that dynamic VLAN(s) are properly configured in the system. 2. Confirms that dynamic VLAN(s) are enabled on all the designated sources. 3...
Add the test case to verify dynamic vlans **Command**: show vlan dynamic ``` # show vlan dynamic Dynamic VLAN source VLANS dmf NONE dot1x NONE dynvtep NONE evpn 1199 mlag NONE mlagsync ...
aristanetworks/anta
diff --git a/anta/tests/vlan.py b/anta/tests/vlan.py index f2a1934c..09b450ae 100644 --- a/anta/tests/vlan.py +++ b/anta/tests/vlan.py @@ -9,7 +9,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, ClassVar, Literal -from anta.custom_types import Vlan +from anta.custom_types import DynamicVla...
[ "tests/units/anta_tests/test_vlan.py::test[anta.tests.vlan.VerifyVlanInternalPolicy-success]", "tests/units/anta_tests/test_vlan.py::test[anta.tests.vlan.VerifyVlanInternalPolicy-failure-incorrect-policy]", "tests/units/anta_tests/test_vlan.py::test[anta.tests.vlan.VerifyDynamicVlanSource-success]", "tests/un...
[]
{ "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.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
fab9d505ecc4a805ddc922f76e9e23679adf672e
2019-03-24 04:52:07
docker.io/swerebenchv2/timothycrosley-isort:911-fab9d50
timothycrosley__isort-911
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 85638132..d656640d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ Changelog ========= +### 4.3.16 - March 23, 2019 - hot fix release +- Fixed issue #909 - skip and skip-glob are not enforced when using settings-path + ### 4.3.15 - March 10, 2019 - hot fix ...
Feature/fix issue 909 Fixes #909 by including custom path aware config before iter_source is called
skip and skip-glob are not enforced when using settings-path Hi, Version used: 4.3.15, not tested on other versions. Setup: ```console $ tree -a . ├── conf │   └── .isort.cfg ├── file_glob_skip.py └── file_to_be_skipped.py 1 directory, 3 files $ cat conf/.isort.cfg [isort] skip = file_to_be_ski...
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index 8c157c4e..1e75c17e 100644 --- a/test_isort.py +++ b/test_isort.py @@ -23,21 +23,22 @@ OTHER DEALINGS IN THE SOFTWARE. """ from __future__ import absolute_import, division, print_function, unicode_literals -from tempfile import NamedTemporaryFile import io import os...
[ "test_isort.py::test_settings_path_skip_issue_909" ]
[ "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": "easy", "external_urls": [ "https://github.com/timothycrosley/isort/blob/4.3.15/isor...
d7a6365a09ad3d21134a7f4f781689ab284b5648
2020-03-16 06:15:30
docker.io/swerebenchv2/slackapi-python-slackclient:638-d7a6365
slackapi__python-slackclient-638
Method: WebClient.admin_teams_settings_info(self, team_id: str, **kwargs) → Union[Future, SlackResponse> Location: slack/web/client.py Inputs: - team_id (str): Workspace ID whose settings are being queried. - **kwargs: Optional additional parameters forwarded to the API call. Outputs: - Returns a Future or SlackRespo...
python
MIT
diff --git a/setup.py b/setup.py index db31c57..3e01d1a 100644 --- a/setup.py +++ b/setup.py @@ -126,7 +126,7 @@ setup( packages=find_packages( exclude=["docs", "docs-src", "tests", "tests.*", "tutorial"] ), - install_requires=["aiohttp>3.5.2"], + install_requires=["aiohttp>3.5.2,<4.0.0"], ...
Fix #634 by adding missing method supports ### Summary This pull request fixes #634 by adding support for 9 admin methods. Also, I've added a test `test_web_client_coverage.py` to verify if there are no missing API methods. ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Cont...
SlackClient missing Web API methods ### Description Describe your issue here. ### What type of issue is this? (place an `x` in one of the `[ ]`) - [x] bug - [ ] enhancement (feature request) - [ ] question - [ ] documentation related - [ ] testing related - [ ] discussion ### Requirements (place an `x` i...
slackapi/python-slackclient
diff --git a/tests/web/test_web_client_coverage.py b/tests/web/test_web_client_coverage.py new file mode 100644 index 0000000..eddf35e --- /dev/null +++ b/tests/web/test_web_client_coverage.py @@ -0,0 +1,348 @@ +# Standard Imports +import unittest + +# ThirdParty Imports +import asyncio +from aiohttp import web + +# In...
[ "tests/web/test_web_client_coverage.py::TestWebClientCoverage::test_coverage" ]
[]
{ "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": "B3", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://api.slack.com/methods/admin.apps.approved.list",...
62077ed5f2a1662ba5085083d5b6ea335132012d
2023-12-06 18:53:09
docker.io/swerebenchv2/pytask-dev-pytask:519-62077ed
pytask-dev__pytask-519
Function: task(*, kwargs: dict | None = None, produces: pathlib.Path | None = None, name: str | None = None, **other_options) Location: src/_pytask/task_utils.py Inputs: - **kwargs** – optional mapping of keyword arguments that will be forwarded to the wrapped callable when the task is executed. - **produces** – opt...
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index 67626f2..f520290 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -9,8 +9,10 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and - {pull}`515` enables tests with graphviz in CI. Thanks to {user}`NickCrews`. - ...
Do not allow builtin functions as tasks. Closes #512.
BUG: can't use builtin functions due to inspect.py - [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pytask. - [ ] (optional) I have confirmed this bug exists on the `main` branch of pytask. --- #### Code Sample, a copy-pastab...
pytask-dev/pytask
diff --git a/tests/test_task.py b/tests/test_task.py index 25f5717..b95194e 100644 --- a/tests/test_task.py +++ b/tests/test_task.py @@ -662,3 +662,20 @@ def test_task_will_be_executed_after_another_one_with_function(tmp_path): session = build(paths=tmp_path) assert session.exit_code == ExitCode.OK + + +def...
[ "tests/test_task.py::test_raise_error_with_builtin_function_as_task" ]
[ "tests/test_task.py::test_task_with_task_decorator[the_only_task-task_example]", "tests/test_task.py::test_task_with_task_decorator[the_only_task-func]", "tests/test_task.py::test_task_with_task_decorator[None-task_example]", "tests/test_task.py::test_task_with_task_decorator[None-func]", "tests/test_task.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": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
cf9efa2f13c771b7c7d49c9edd83dd9092614373
2025-02-13 11:25:26
docker.io/swerebenchv2/backblaze-b2-command-line-tool:1070-cf9efa2
backblaze__b2_command_line_tool-1070
No new interfaces are introduced.
python
custom-check-github
diff --git a/b2/_internal/console_tool.py b/b2/_internal/console_tool.py index 26471b8..d2430e4 100644 --- a/b2/_internal/console_tool.py +++ b/b2/_internal/console_tool.py @@ -2875,7 +2875,8 @@ class FileUrlBase(Command): If it is private, you can use --with-auth to include an authorization token in the UR...
Display error message when using --with-auth for b2id urls Closes #1069
Attempting to generate an authorized URL using b2id fails Running `b2 file url --with-auth --duration 604800 b2id://[REDACTED]` Results in a stack trace - Works just fine without specifying --with-auth. ``` Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen r...
Backblaze/B2_Command_Line_Tool
diff --git a/test/unit/console_tool/test_get_url.py b/test/unit/console_tool/test_get_url.py index 94dd42b..747f948 100644 --- a/test/unit/console_tool/test_get_url.py +++ b/test/unit/console_tool/test_get_url.py @@ -62,3 +62,11 @@ def test_get_url__b2id_uri(b2_cli, uploaded_file, uploaded_file_url_by_id): ['f...
[ "test/unit/console_tool/test_get_url.py::test_get_url__b2id_uri__with_auth__error" ]
[ "test/unit/console_tool/test_get_url.py::test_make_friendly_url", "test/unit/console_tool/test_get_url.py::test_get_url__b2_uri" ]
{ "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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
9d7823d620386b634c56fbc8d4686f824690ccde
2022-09-26 09:01:21
docker.io/swerebenchv2/spikeinterface-spikeinterface:961-9d7823d
spikeinterface__spikeinterface-961
No new interfaces are introduced.
python
MIT
diff --git a/spikeinterface/core/base.py b/spikeinterface/core/base.py index 7775dfae9..c210cc4c5 100644 --- a/spikeinterface/core/base.py +++ b/spikeinterface/core/base.py @@ -24,6 +24,8 @@ class BaseExtractor: """ + default_missing_property_values = {"f": np.nan, "O": None, "S": "", "U": ""} + # This...
UnitsAggregationSorting inheritance Fixes #947
UnitsAggregationSorting fails to inherit property Hi, I saw in the `UnitsAggregationSorting` code that there is a copying of properties if they are consistent over all sortings. However, look at the following code: ```python sorting.annotate(name="Bonjour") sorting.get_annotation("name") > 'Bonjour' sort...
SpikeInterface/spikeinterface
diff --git a/spikeinterface/core/tests/test_unitsaggregationsorting.py b/spikeinterface/core/tests/test_unitsaggregationsorting.py index 77a97665d..aad533366 100644 --- a/spikeinterface/core/tests/test_unitsaggregationsorting.py +++ b/spikeinterface/core/tests/test_unitsaggregationsorting.py @@ -55,6 +55,27 @@ def test...
[ "spikeinterface/core/tests/test_unitsaggregationsorting.py::test_unitsaggregationsorting" ]
[]
{ "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":...
21b90b6b4216d965fe371637e5654017799fd51c
2023-06-19 22:04:52
docker.io/swerebenchv2/caikit-caikit:253-21b90b6
caikit__caikit-253
Function: make_dataobject(*, name: str, annotations: Dict[str, type], bases: Optional[Iterable[type]] = None, attrs: Optional[Dict[str, Any]] = None, proto_name: Optional[str] = None, **kwargs) → _DataObjectBaseMetaClass Location: caikit.core.data_model.dataobject Inputs: - **name** (str): Desired class name for the ge...
python
Apache-2.0
diff --git a/caikit/core/data_model/dataobject.py b/caikit/core/data_model/dataobject.py index efa08924..703076a1 100644 --- a/caikit/core/data_model/dataobject.py +++ b/caikit/core/data_model/dataobject.py @@ -19,7 +19,18 @@ model objects inline without manually defining the protobufs representation # Standard fro...
Make dataobject 252 ## Description Closes #252
Utility for dynamically creating dataobject classes ## Is your feature request related to a problem? Please describe. As a user of caikit, I want the ability to make `@dataobject` classes on-the-fly without mucking around with the `metaclass`'s `__new__` function (as seen [here](https://github.com/caikit/caikit/blob...
caikit/caikit
diff --git a/tests/core/data_model/test_dataobject.py b/tests/core/data_model/test_dataobject.py index f3751158..aa8151d0 100644 --- a/tests/core/data_model/test_dataobject.py +++ b/tests/core/data_model/test_dataobject.py @@ -42,6 +42,8 @@ from caikit.core.data_model.base import DataBase, _DataBaseMetaClass from caik...
[ "tests/core/data_model/test_dataobject.py::test_dataobject_native_types", "tests/core/data_model/test_dataobject.py::test_dataobject_nested_objects", "tests/core/data_model/test_dataobject.py::test_dataobject_nested_enums", "tests/core/data_model/test_dataobject.py::test_dataobject_top_level_enums", "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": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/caikit/caikit/blob/main/caikit/runt...
5ea4087c2999a6412a603b8ca7a3a0211efd25ca
2020-05-13 05:04:01
docker.io/swerebenchv2/bids-standard-pybids:615-5ea4087
bids-standard__pybids-615
Class: ConfigError(message: str) Location: bids/exceptions.py Inputs: A descriptive error message (string) indicating a problem with a configuration file or option. Outputs: Raises a ConfigError (subclass of ValueError and PyBIDSError). Description: Signals that a supplied configuration path does not exist or t...
python
MIT
diff --git a/bids/exceptions.py b/bids/exceptions.py new file mode 100644 index 00000000..7c599ea6 --- /dev/null +++ b/bids/exceptions.py @@ -0,0 +1,37 @@ +""" Exceptions. + +Exceptions relating to problems with BIDS itself, should carry BIDS in their +name. All exceptions should subclass from PyBIDSError +""" + + +cl...
ENH: Introduce PyBIDS exceptions This is an initial shot, which Closes #473 if merged since original concern would be addressed. But - I wonder if I have not overdone it a bit ;-) - I think that many (if not all) of the `*BIDS*` exceptions should have ideally came from `bids_validator` package, and were not define...
should pybids more lenient or at least get a dedicated exception like NonCompliantBIDSError ATM pybids immediately throws a generic ValueError if found contained derivatives dataset is not fully compliant: ```shell /tmp > datalad install https://github.com/OpenNeuroDatasets/ds001868 && cd ds001868 [INFO ] Clonin...
bids-standard/pybids
diff --git a/bids/layout/tests/test_layout.py b/bids/layout/tests/test_layout.py index e2a39375..20fb5af5 100644 --- a/bids/layout/tests/test_layout.py +++ b/bids/layout/tests/test_layout.py @@ -18,6 +18,13 @@ from bids.layout.utils import BIDSMetadata from bids.tests import get_test_data_path from bids.utils import ...
[ "bids/layout/tests/test_layout.py::test_layout_init", "bids/layout/tests/test_layout.py::test_index_metadata[True-None-3.0]", "bids/layout/tests/test_layout.py::test_index_metadata[False-None-None]", "bids/layout/tests/test_layout.py::test_index_metadata[False-query2-3.0]", "bids/layout/tests/test_layout.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": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
002ae9e325b1608a324d02749205cd70b4f6da2b
2017-08-29 08:38:58
docker.io/swerebenchv2/aspp-pelita:412-002ae9e
aspp__pelita-412
Function: SteppingPlayer(moves) Location: pelita/player/base.py (class SteppingPlayer, renamed from TestPlayer) Inputs: - **moves** – a deterministic description of the player’s actions; accepted forms are a list/tuple of move callables (e.g., east, west), a list/tuple of coordinate tuples, or a string of direction sy...
python
custom-check-github
diff --git a/pelita/player/__init__.py b/pelita/player/__init__.py index cf429bca..bedaae24 100644 --- a/pelita/player/__init__.py +++ b/pelita/player/__init__.py @@ -1,7 +1,7 @@ from .base import AbstractTeam, SimpleTeam, AbstractPlayer -from .base import (StoppingPlayer, TestPlayer, SpeakingPlayer, +from .base i...
RF: TestPlayer → SteppingPlayer Closes #405
pytest warns about our TestPlayer WC1 /tmp/group1/test/test_drunk_player.py cannot collect test class 'TestPlayer' because it has a __init__ constructor Maybe rename it?
ASPP/pelita
diff --git a/test/test_game_master.py b/test/test_game_master.py index 2b164441..e943d70b 100644 --- a/test/test_game_master.py +++ b/test/test_game_master.py @@ -5,7 +5,7 @@ import collections from pelita.datamodel import CTFUniverse from pelita.game_master import GameMaster, ManhattanNoiser, PlayerTimeout -from p...
[ "test/test_game_master.py::TestGameMaster::test_team_names", "test/test_game_master.py::TestGameMaster::test_team_names_in_simpleteam", "test/test_game_master.py::TestGameMaster::test_too_few_registered_teams", "test/test_game_master.py::TestGameMaster::test_too_many_registered_teams", "test/test_game_maste...
[]
{ "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":...
efc17bb8f5db0948d960e5c9a2efc4f1d69f332d
2024-03-29 04:38:35
docker.io/swerebenchv2/wntrblm-nox:804-efc17bb
wntrblm__nox-804
Method: ProcessEnv.__init__(self, bin_paths: None = None, env: Mapping[str, str | None] | None = None) Location: nox/virtualenv.py → class ProcessEnv Inputs: - bin_paths – optional placeholder (unused in tests) - env – optional mapping where each key is an environment variable name; values may be a string (to set/over...
python
Apache-2.0
diff --git a/docs/usage.rst b/docs/usage.rst index f29dc42..887b4d1 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -156,13 +156,6 @@ Note that using this option does not change the backend for sessions where ``ven as ``uv pip`` is used to install programs instead. If you need to manually interact with pip,...
fix: avoid mixing venv and conda from environment Fix #801. Needs a test were we manually set one variable and make sure it isn't present. It might be the parent `run` overrides it. I'd like to allow this at the user level, too; setting `env={"UNSET_ME": None}` would be a good way to provide an "unset" list. You ...
Error when running a uv backend session with active conda environment ### Current Behavior If you have a conda environment active and try to run a session with using uv as a backend and `session.install`, uv throws an error because it detects both an active conda environment and an active virtual environment: ``` ...
wntrblm/nox
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index 12d41c5..340c2f9 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -364,9 +364,15 @@ def test_bin_windows(make_one): def test_create(monkeypatch, make_one): + monkeypatch.setenv("CONDA_PREFIX", "no-prefix-allowed") + ...
[ "tests/test_virtualenv.py::test_create" ]
[ "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": "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": [...
ac097e59421b1e96657a76fb088406af97be5766
2020-03-25 22:55:00
docker.io/swerebenchv2/aws-cloudformation-cfn-python-lint:1444-ac097e5
aws-cloudformation__cfn-python-lint-1444
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py index 51d2eb7b6..7b255ca3d 100644 --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -19,7 +19,7 @@ class SubNeeded(CloudFormationLintRule): # Free-form text properties to ...
Update exceptions for sub needed to include build spec *Issue #, if available:* fix #1443 *Description of changes:* - update the excludes to include BuildSpec which can have code in it. Making the likely hood of false positives high. By submitting this pull request, I confirm that you can use, modify, copy, an...
Unexpected E1029 error *cfn-lint version: (0.29.1)* *Description of issue.* After this version was released, I started getting an error when linting a template. This error specific to `BuildSpec` attributes for a `AWS::CodeBuild::Project` project. E1029 Found an embedded parameter outside of an "Fn::Sub" ...
aws-cloudformation/cfn-python-lint
diff --git a/test/unit/rules/functions/test_sub_needed.py b/test/unit/rules/functions/test_sub_needed.py index eb4768ad5..c542ca313 100644 --- a/test/unit/rules/functions/test_sub_needed.py +++ b/test/unit/rules/functions/test_sub_needed.py @@ -31,9 +31,9 @@ class TestSubNeeded(BaseRuleTestCase): ) se...
[ "test/unit/rules/functions/test_sub_needed.py::TestSubNeeded::test_file_negative", "test/unit/rules/functions/test_sub_needed.py::TestSubNeeded::test_template_config" ]
[ "test/unit/rules/functions/test_sub_needed.py::TestSubNeeded::test_file_positive" ]
{ "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/aws-cloudformation/cfn-python-lint/fi...
9a9337933ecf3beae1937310acb9909c75673928
2022-11-29 21:18:03
docker.io/swerebenchv2/rstudio-vetiver-python:136-9a93379
rstudio__vetiver-python-136
Method: VetiverAPI.vetiver_post(self, endpoint_fx: Callable, endpoint_name: str = "custom_endpoint") Location: vetiver/server.py, defined inside class VetiverAPI. Inputs: - **endpoint_fx** – a callable that receives the model input (a pandas DataFrame when `check_ptype=True`, or raw JSON when `check_ptype=False`)...
python
MIT
diff --git a/docs/source/index.rst b/docs/source/index.rst index 3f9c028..e721ff8 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -75,7 +75,7 @@ Model Handlers :toctree: reference/ :caption: Model Handlers - ~BaseHandler + ~handlers.BaseHandler ~SKLearnHandler ~TorchHandler ~...
ci testing to run generated dockerfile closes #135 adds tests to make sure dockerfile generation runs!
Unable to run dockerfile: app.py being renamed to app When I attempt to run the Dockerfile generated in the [deploy-with-docker page of the docs](https://vetiver.rstudio.com/learn-more/deploy-with-docker.html), I get the error: ``` ModuleNotFoundError: no module named app ``` I shelled into the container with t...
rstudio/vetiver-python
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8126c5f..f1781a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -68,6 +68,26 @@ jobs: run: | pytest vetiver -m 'rsc_test' + test-docker: + name: "Test Docker" + runs-on: ubuntu-la...
[ "vetiver/tests/test_sklearn.py::test_predict_endpoint_no_ptype", "vetiver/tests/test_sklearn.py::test_predict_endpoint_no_ptype_batch", "vetiver/tests/test_write_docker.py::test_vetiver_write_app_no_rspm", "vetiver/tests/test_write_docker.py::test_vetiver_write_app_rspm" ]
[ "vetiver/tests/test_sklearn.py::test_predict_endpoint_no_ptype_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": "B1", "confidence": 0.88, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://vetiver.rstudio.com/learn-more/deploy-with-doc...
2a1053c5ca995c30d52f60ae575f8bb2ef92b0d2
2025-03-10 08:16:17
docker.io/swerebenchv2/joke2k-faker:2186-2a1053c
joke2k__faker-2186
No new interfaces are introduced.
python
MIT
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 6c1e5c8a..e291da50 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 37.0.0 +current_version = 37.1.0 files = VERSION faker/__init__.py docs/conf.py commit = True tag = True diff --git a/CHANGELOG.md b/CHANGEL...
Fix timezone import name clash ### What does this change Fixes #2183 ### What was wrong I couldn't use `add_provider()` with the `date_time` provider and the `timezone()` method. I found out that the built-in timezone module is identical to the object returned from the `timezone()` method. git-bisect sho...
TypeError: timezone() missing required argument 'offset' when using date_time provider Hej all, With faker v36.2.2 on Python 3.12.0 I have an issue that might originate from the recent datetime refactoring. The following code works ```python from faker import Faker, providers from datetime import timezone fk = Faker...
joke2k/faker
diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py index a0692e68..12ccff56 100644 --- a/tests/providers/test_bank.py +++ b/tests/providers/test_bank.py @@ -467,17 +467,16 @@ class TestNlBe: assert re.fullmatch(r"\d{12}", bban) account_number = bban[:-2] chec...
[ "tests/providers/test_bank.py::TestNlBe::test_bban", "tests/providers/test_bank.py::TestNlBe::test_iban", "tests/providers/test_currency.py::TestNgNg::test_pricetag", "tests/providers/test_person.py::TestEnPk::test_last_name" ]
[ "tests/providers/test_bank.py::TestAzAz::test_bban", "tests/providers/test_bank.py::TestAzAz::test_iban", "tests/providers/test_bank.py::TestAzAz::test_bank", "tests/providers/test_bank.py::TestCsCz::test_bban", "tests/providers/test_bank.py::TestCsCz::test_iban", "tests/providers/test_bank.py::TestSkSk::...
{ "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.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
856f0b72c8d91d1abbdaff97eecb1528810f5eb2
2020-02-24 15:49:09
docker.io/swerebenchv2/pallets-click:1481-856f0b7
pallets__click-1481
Method: BaseCommand.__repr__(self) Location: click/core.py (class BaseCommand) Inputs: - self: instance of a subclass of BaseCommand (e.g., click.Command, click.Group, click.Option, click.Argument). The instance must have a populated `name` attribute. Outputs: - str: a string formatted as `"<ClassName name>"` where `...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 8beb27d..2fc1612 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -58,6 +58,9 @@ Unreleased - Arguments to system calls such as the executable path passed to ``click.edit`` can contains spaces. :pr:`1470` - Add ZSH completion autoloading and error handling. :issue:`1...
Add repr for Command, Group, Option, Argument Cherry pick #1295 to 7.x and move the repr to `BaseCommand` and `Parameter` so it applies to all core types. Fixes #1267
Friendly __repr__ for Command ```python (Pdb) pp cmd <click.core.Command object at 0x7ff869ef1550> (Pdb) pp cmd.name 'run-gunicorn' ``` What do you think of showing the command name in the `__repr__` string, for friendlier debugging? Could be a good beginner-friendly issue!
pallets/click
diff --git a/tests/test_basic.py b/tests/test_basic.py index 8de6301..f800b4d 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -23,6 +23,24 @@ def test_basic_functionality(runner): assert result.exit_code == 0 +def test_repr(): + @click.command() + def command(): + pass + + @click....
[ "tests/test_basic.py::test_repr" ]
[ "tests/test_basic.py::test_basic_functionality", "tests/test_basic.py::test_return_values", "tests/test_basic.py::test_basic_group", "tests/test_basic.py::test_basic_option", "tests/test_basic.py::test_int_option", "tests/test_basic.py::test_uuid_option", "tests/test_basic.py::test_float_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": "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": [...
10ae0aede3ddb06b079ff1ae2eedbb3b2eaf70fd
2025-02-04 14:48:00
docker.io/swerebenchv2/pyfar-pyfar:765-10ae0ae
pyfar__pyfar-765
Method: Filter.state(self) / Filter.state.setter Location: pyfar/classes/filter.py – property **state** in class *Filter* (and overridden in subclasses). Inputs: - Getter: no arguments, returns the current filter state as a NumPy array (or ``None`` if not set). - Setter: ``state`` – array‑like or ``None``. If ``stat...
python
MIT
diff --git a/pyfar/classes/filter.py b/pyfar/classes/filter.py index 5bf09657..50f12839 100644 --- a/pyfar/classes/filter.py +++ b/pyfar/classes/filter.py @@ -146,16 +146,8 @@ class Filter(object): else: self._coefficients = None - if state is not None: - if coefficients is Non...
Add filter state setter Add setter for filter state property Closes #757
Filterclasses confusing state parameter ``` import pyfar as pf filter_fir = pf.FilterFIR(coefficients=1, sampling_rate=100, state=0) filter_fir.init_state(cshape=(1,), state='zeros') ``` In this example, the word "state" has two different meanings. First, it refers to the current state of the filter (a numpy array), a...
pyfar/pyfar
diff --git a/tests/test_filter_classes.py b/tests/test_filter_classes.py index c646af5f..4363b022 100644 --- a/tests/test_filter_classes.py +++ b/tests/test_filter_classes.py @@ -3,6 +3,7 @@ import numpy as np import numpy.testing as npt import pyfar.classes.filter as fo import pyfar as pf +import re from scipy imp...
[ "tests/test_filter_classes.py::test_filter_state_setter", "tests/test_filter_classes.py::test_filter_state_setter_errors", "tests/test_filter_classes.py::test_filter_state_process_errors" ]
[ "tests/test_filter_classes.py::test_filter_init_empty_coefficients", "tests/test_filter_classes.py::test_filter_init_empty_coefficients_with_state", "tests/test_filter_classes.py::test_filter_init", "tests/test_filter_classes.py::test_filter_init_with_state", "tests/test_filter_classes.py::test_filter_comme...
{ "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.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
97ec6086bfb644b024ec7be798e687a82870bb2c
2023-03-16 10:15:15
docker.io/swerebenchv2/mirumee-ariadne-codegen:96-97ec608
mirumee__ariadne-codegen-96
Function: get_section(config_dict: Dict) → Dict Location: ariadne_codegen/config.py Inputs: - **config_dict** – a dictionary obtained from loading a `pyproject.toml` file (via `toml.load`). Expected structure: either `{"tool": {"ariadne-codegen": {...}}}` or the legacy `{"ariadne-codegen": {...}}`. Outputs: - R...
python
BSD-3-Clause
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9094554..bdec921 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Added `InitFileGenerator`, `EnumsGenerator`, `ClientGenerator` and `ArgumentsGenerator` plugin hooks. - Added `InputTypesGenerator` and `ResultTypesGenerator` plugin hooks. - Added `ScalarsD...
Add support for [tool.ariadne-codegen] key. Deprecate [ariadne-codegen]. resolves #84
Allow configuration in pyproject.toml under `tool.argiadne-codegen` First of all, thanks for this great project! AFAIK, the official spec recommends that additional config for specific tools is tracked within the tools table of the pyproject.toml file (i.e. `tool.argiadne-codegen`) . https://peps.python.org/pep-0518...
mirumee/ariadne-codegen
diff --git a/tests/main/custom_base_client/pyproject.toml b/tests/main/custom_base_client/pyproject.toml index 708fc01..94d7134 100644 --- a/tests/main/custom_base_client/pyproject.toml +++ b/tests/main/custom_base_client/pyproject.toml @@ -1,4 +1,4 @@ -[ariadne-codegen] +[tool.ariadne-codegen] schema_path = "schema.g...
[ "tests/test_config.py::test_get_config_file_path_finds_file_in_cwd", "tests/test_config.py::test_get_config_file_path_finds_file_in_parent_directory", "tests/test_config.py::test_get_config_file_path_raises_config_file_not_found_exception_if_file_not_found", "tests/test_config.py::test_get_config_dict_returns...
[]
{ "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://peps.python.org/pep-0518/#tool-table" ], ...
f92d975e7b05141fe24983029c81a648c926402b
2022-08-23 09:07:03
docker.io/swerebenchv2/zalando-patroni:2391-f92d975
zalando__patroni-2391
Method: SlotsAdvanceThread.schedule(self, advance_slots: dict) → Tuple[bool, List[str]] Location: patroni/postgresql/slots.py, class SlotsAdvanceThread Inputs: a dictionary mapping database names to inner dicts of slot names → LSN integers; used to enqueue slot advancement work. Outputs: a tuple where the first element...
python
MIT
diff --git a/patroni/dcs/kubernetes.py b/patroni/dcs/kubernetes.py index 3f1c1e51..5cf0367a 100644 --- a/patroni/dcs/kubernetes.py +++ b/patroni/dcs/kubernetes.py @@ -950,7 +950,8 @@ class Kubernetes(AbstractDCS): if not self._api.create_namespaced_service(self._namespace, body): return ...
Call pg_replication_slot_advance() from a thread On busy clusters with many logical replication slots the pg_replication_slot_advance () call affects the main HA loop and could result in the member key expiration. The only way to solve it is a dedicated thread response for moving slots forward. The thread is starte...
Permanent replication slot not progressing ``` patronictl version patronictl version 2.1.2 ``` We have a number of patroni clusters which maintain multiple replication slots. Cluster has three nodes: ``` + Cluster: cluster-1 (7072422856714349561) -------+---------+---------+----+-----------+------------------+ ...
zalando/patroni
diff --git a/tests/test_slots.py b/tests/test_slots.py index 2301ae5f..f96bc6d5 100644 --- a/tests/test_slots.py +++ b/tests/test_slots.py @@ -4,17 +4,19 @@ import unittest from mock import Mock, PropertyMock, patch +from threading import Thread from patroni import psycopg from patroni.dcs import Cluster, Clus...
[ "tests/test_slots.py::TestSlotsHandler::test__ensure_logical_slots_replica", "tests/test_slots.py::TestSlotsHandler::test_check_logical_slots_readiness", "tests/test_slots.py::TestSlotsHandler::test_copy_logical_slots", "tests/test_slots.py::TestSlotsHandler::test_fsync_dir", "tests/test_slots.py::TestSlots...
[]
{ "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.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
324044192052e7c87846b4680f30becd8bad34c0
2021-04-10 22:22:39
docker.io/swerebenchv2/theacodes-nox:418-3240441
theacodes__nox-418
Method: VirtualEnv._check_reused_environment(self) Location: nox/virtualenv.py – class VirtualEnv (subclass of ProcessEnv) Inputs: - **self** – the VirtualEnv instance. The method uses `self.location` to locate the `pyvenv.cfg` file of the existing environment and reads `self.venv_or_virtualenv` (the requested e...
python
Apache-2.0
diff --git a/nox/virtualenv.py b/nox/virtualenv.py index 0e3bbca..67aee8a 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -313,12 +313,19 @@ class VirtualEnv(ProcessEnv): """Deletes any existing virtual environment""" if os.path.exists(self.location): if self.reuse_existing: + ...
Check whether interpreter changed and type (#123) This is an attempt to fix #123 The steps are the following - Check virtualenv interpreter - Check current interpreter - If there is a match, do nothing. If they are different, recreate - Check if the type of interpreter remains the same. Not sure, but for the...
reuse_existing should check the interpreter If `reuse_existing=True` when creating a `Virtualenv`, but the interpreter has changed, then the environment should still be re-created.
theacodes/nox
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index 75598d6..fb624cb 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -244,6 +244,9 @@ def test__clean_location(monkeypatch, make_one): # Don't re-use existing, but doesn't currently exist. # Should return True indicat...
[ "tests/test_virtualenv.py::test__clean_location", "tests/test_virtualenv.py::test_create_check_interpreter" ]
[ "tests/test_virtualenv.py::test_process_env_constructor", "tests/test_virtualenv.py::test_process_env_create", "tests/test_virtualenv.py::test_condaenv_constructor_defaults", "tests/test_virtualenv.py::test_condaenv_constructor_explicit", "tests/test_virtualenv.py::test_condaenv_create", "tests/test_virtu...
{ "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": [], "intent_completeness": "complete", "pr_categories":...
da9e4c995b9234e3da7fee60e75e1f41ca900c89
2020-03-30 15:27:10
docker.io/swerebenchv2/codezonediitj-pydatastructs:238-da9e4c9
codezonediitj__pydatastructs-238
Method: SelfBalancingBinaryTree.insert(self, key, data=None) Location: pydatastructs/trees/binary_trees.py Inputs: key – comparable value used for ordering; data – optional payload associated with the key (any type, default None). The key must be unique within the tree. Outputs: None (the node is added to the tree). Ra...
python
custom-check-github
diff --git a/README.md b/README.md index 10aae44..2ddf070 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ For testing your patch locally follow the steps given below, 1. Install [pytest-cov](https://pypi.org/project/pytest-cov/). Skip this step if you are already having the package. 2. Run, `python3 -m pyte...
Fixed _left_rotate and _right_rotate <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs or Relevant literature Fixes #234 #### Brief description of what is fixed or changed Removed assumption rotates ...
_left_rotate and _right_rotate in SelfBalancingBinaryTree #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> The existing methods of `_left_rotate` and `_right_rotate` in the `SelfBalancingBinaryTree` are not working properly as it assumes j as...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_algorithms.py b/pydatastructs/linear_data_structures/tests/test_algorithms.py index f590b56..24ad6a0 100644 --- a/pydatastructs/linear_data_structures/tests/test_algorithms.py +++ b/pydatastructs/linear_data_structures/tests/test_algorithms.py @@ -1,7 +1,8 @@...
[ "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_merge_sort_parallel", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort_parallel", "pydatastructs/linear_data_structures/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": "B5", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/codezonediitj/pydatastructs/issues/23...
c59fee5d352e429309ddce7f8350ef70f2003593
2023-09-01 18:25:54
docker.io/swerebenchv2/getmoto-moto:6755-c59fee5
getmoto__moto-6755
Method: SESClient.set_identity_mail_from_domain(self, Identity: str, MailFromDomain: str | None = None, BehaviorOnMXFailure: str | None = None) Location: moto/ses/models.py (SESBackend.set_identity_mail_from_domain) Inputs: - Identity – a verified SES identity; can be a domain (e.g., “example.com”) or an email address ...
python
Apache-2.0
diff --git a/moto/ses/models.py b/moto/ses/models.py index 39deca5f6..04d5bcd53 100644 --- a/moto/ses/models.py +++ b/moto/ses/models.py @@ -165,7 +165,7 @@ class SESBackend(BaseBackend): return True if address in self.email_addresses: return True - _, host = address.split("@",...
SES: set_identity_mail_from_domain() - the Identity can be an email Fixes #6753
Bug: can't call SetIdentityMailFromDomain with Email address Stack: localstack 2.2.0 docker image go 1.21.0 aws-sdk-go-v2 Code: ``` _, err = client.SetIdentityMailFromDomain(ctx, &ses.SetIdentityMailFromDomainInput{ Identity: aws.String("test@foo.com"), BehaviorOnMXFailure: types.BehaviorOnMX...
getmoto/moto
diff --git a/tests/test_ses/test_ses_boto3.py b/tests/test_ses/test_ses_boto3.py index ae80cf78d..7e04985c9 100644 --- a/tests/test_ses/test_ses_boto3.py +++ b/tests/test_ses/test_ses_boto3.py @@ -1472,6 +1472,22 @@ def test_set_identity_mail_from_domain(): assert actual_attributes["BehaviorOnMXFailure"] == behavi...
[ "tests/test_ses/test_ses_boto3.py::test_set_identity_mail_from_domain" ]
[ "tests/test_ses/test_ses_boto3.py::test_verify_email_identity", "tests/test_ses/test_ses_boto3.py::test_identities_are_region_specific", "tests/test_ses/test_ses_boto3.py::test_verify_email_identity_idempotency", "tests/test_ses/test_ses_boto3.py::test_verify_email_address", "tests/test_ses/test_ses_boto3.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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/getmoto/moto/blob/master/moto/ses/mod...
d02b1d8b5a4ff401ebf1cda637cc86b03cf789b8
2017-03-29 07:06:32
docker.io/swerebenchv2/python-attrs-attrs:173-d02b1d8
python-attrs__attrs-173
Function: optional(converter) Location: attr.converters.optional Inputs: converter – a callable that converts non‑None values (e.g., int, float, custom function) Outputs: a callable that: • returns ``None`` when the input value is ``None`` • otherwise returns ``converter(value)`` and propagates any exception raised...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e8a4d77..3971045 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -57,6 +57,9 @@ Changes: - Validators can now be defined conveniently inline by using the attribute as a decorator. Check out the `examples <http://www.attrs.org/en/stable/examples.html#validators>`_ t...
Allow optional conversion Fixes #105 ... or at least, provides the simplest possible solution to #105. I.e, -it adds a simple callable that makes existing converters optional, using the code suggested by @Tinche -it does *not* provide a single callable for both converters and validators . Please let me know i...
Optional `convert` Is it, or could it be, possible to have optional type conversion using the `convert` argument, with the same logic as validation? Something like: ``` python @attr.s class Thing(object): x = attr.ib(default=None, convert=optional(float), validator=optional(validate_x)) ``` Apologies if it's alr...
python-attrs/attrs
diff --git a/tests/test_converters.py b/tests/test_converters.py new file mode 100644 index 0000000..daf39d8 --- /dev/null +++ b/tests/test_converters.py @@ -0,0 +1,36 @@ +""" +Tests for `attr.converters`. +""" + +from __future__ import absolute_import + +import pytest + +from attr.converters import optional + + +class...
[ "tests/test_converters.py::TestOptional::test_success_with_type", "tests/test_converters.py::TestOptional::test_success_with_none", "tests/test_converters.py::TestOptional::test_fail" ]
[]
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d1e9cefd484003e8184c8c08e5004ad5f8c07dc5
2023-02-14 21:30:54
docker.io/swerebenchv2/datadog-guarddog:162-d1e9cef
datadog__guarddog-162
Method: PypiSinglePythonFileDetector.__init__(self) Location: guarddog/analyzer/metadata/pypi/single_python_file.py Inputs: None (no parameters required) Outputs: None (initializes the detector with name "single_python_file" and a description) Description: Constructs a detector that flags packages containing only a...
python
Apache-2.0
diff --git a/README.md b/README.md index 29f59d1..7bb86ce 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Metadata heuristics: | typosquatting | Identify packages that are named closely to an highly popular package | | potentially_compromised_email_domain | Identify when a package maintainer e-mail domain (a...
Create new heuristic to identify PyPI packages with a single Python file (closes #160) closes #160
Create heuristic to identify packages that only have a setup.py file
DataDog/guarddog
diff --git a/tests/analyzer/metadata/test_single_python_file.py b/tests/analyzer/metadata/test_single_python_file.py new file mode 100644 index 0000000..dde20e6 --- /dev/null +++ b/tests/analyzer/metadata/test_single_python_file.py @@ -0,0 +1,23 @@ +from guarddog.analyzer.metadata.pypi import PypiSinglePythonFileDetect...
[ "tests/analyzer/metadata/test_single_python_file.py::TestSinglePythonFile::test_no_python_file", "tests/analyzer/metadata/test_single_python_file.py::TestSinglePythonFile::test_single_python_file", "tests/analyzer/metadata/test_single_python_file.py::TestSinglePythonFile::test_many_python_file" ]
[]
{ "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": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
656db317d221639db5d4c9e368c9c839119b291c
2023-06-07 10:50:54
docker.io/swerebenchv2/amaranth-lang-amaranth:809-656db31
amaranth-lang__amaranth-809
No new interfaces are introduced.
python
BSD-2-Clause
diff --git a/amaranth/hdl/ast.py b/amaranth/hdl/ast.py index 427293e..cbf2e60 100644 --- a/amaranth/hdl/ast.py +++ b/amaranth/hdl/ast.py @@ -516,7 +516,8 @@ class Value(metaclass=ABCMeta): """ if not isinstance(amount, int): raise TypeError("Rotate amount must be an integer, not {!r}".for...
hdl.ast: guard `rotate_*` against 0-width values. Fixes #808.
`rotate_*` crashes on 0-width `Value` ``` >>> a = Signal(0) >>> a.rotate_left(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/mwk/amaranth/amaranth/hdl/ast.py", line 519, in rotate_left amount %= len(self) ZeroDivisionError: integer modulo by zero ```
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index b4e93e8..65f2404 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -321,6 +321,10 @@ class ValueTestCase(FHDLTestCase): "(cat (slice (const 9'd256) 1:9) (slice (const 9'd256) 0:1))") self.assertRepr(Const(...
[ "tests/test_hdl_ast.py::ValueTestCase::test_rotate_left", "tests/test_hdl_ast.py::ValueTestCase::test_rotate_right" ]
[ "tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong", "tests/test_hdl_ast...
{ "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": [...
625d38aa377259e976c867287185bfdeed62d63c
2024-06-27 21:19:46
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3439-625d38a
aws-cloudformation__cfn-lint-3439
Method: Context.__init__(self, parameters: dict[str, Parameter] = {}, resources: dict[str, Resource] = {}, conditions: Conditions = Conditions(), mappings: Mappings = Mappings(), strict_types: bool = True, **kwargs) Location: src/cfnlint/context/context.py Inputs: optional dictionaries for parameters and resources, a...
python
MIT-0
diff --git a/src/cfnlint/context/_mappings.py b/src/cfnlint/context/_mappings.py new file mode 100644 index 000000000..b01fca50b --- /dev/null +++ b/src/cfnlint/context/_mappings.py @@ -0,0 +1,100 @@ +""" +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +SPDX-License-Identifier: MIT-0 +""" + +from __...
Update mappings to support transforms at the root level *Issue #, if available:* fix #3430 *Description of changes:* - Update mappings to support transforms at the root level By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your c...
Conditional with a Mapping within a Transform returns: E1022 'MapName' is not one of [] ### CloudFormation Lint Version 1.3.7 ### What operating system are you using? Amazon Linux 2023 (Fedora) ### Describe the bug When using transform to import mapping values with a conditional check, the MapName is fai...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/context/test_create_context.py b/test/unit/module/context/test_create_context.py index 3c4e53bf4..4b798b997 100644 --- a/test/unit/module/context/test_create_context.py +++ b/test/unit/module/context/test_create_context.py @@ -63,7 +63,7 @@ _Counts = namedtuple("_Counts", ["resources", "pa...
[ "test/unit/module/context/test_create_context.py::test_create_context[Valid", "test/unit/module/context/test_create_context.py::test_create_context[Bad", "test/unit/module/context/test_create_context.py::test_create_context[Invalid", "test/unit/module/context/test_mappings.py::test_mapping_value[Valid", "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
9f9146c8ee2cb2b2e7b3d9bc09ac7e433fd55bb0
2023-01-13 15:25:55
docker.io/swerebenchv2/wtforms-wtforms:765-9f9146c
wtforms__wtforms-765
Method: WeekField.__init__(self, label=None, validators=None, format="%Y-W%W", **kwargs) Location: src/wtforms/fields/datetime.py Inputs: optional *label* (string), optional *validators* (iterable), *format* string defining the expected week‑date format (default ``"%Y-W%W"``), plus any additional keyword arguments pass...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 9f2cd01..6ff5168 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,8 @@ Unreleased - Added shorter format to :class:`~fields.DateTimeLocalField` defaults :pr:`761` - Stop support for python 3.7 :pr:`794` +- Added shorter format to :class:`~fields.WeekField...
Implemented WeekField This implements the [HTML week input field](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/week). The default expected format is `%Y-W%W` according to the [mozilla doc](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#week_strings): > A week string specif...
Support fields for week, month and color Please, support fields for week, month and color. See the example at https://getbootstrap.com/docs/5.1/content/reboot/?optionsRadios=option1#forms <p> <label for="week">Example week</label> <input type="week" id="week"> </p> <p>...
wtforms/wtforms
diff --git a/tests/fields/test_week.py b/tests/fields/test_week.py new file mode 100644 index 0000000..527263b --- /dev/null +++ b/tests/fields/test_week.py @@ -0,0 +1,36 @@ +from datetime import date + +from tests.common import DummyPostData + +from wtforms.fields import WeekField +from wtforms.form import Form + + +c...
[ "tests/fields/test_week.py::test_basic", "tests/fields/test_week.py::test_invalid_data" ]
[]
{ "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": [ "https://getbootstrap.com/docs/5.1/content/reboot/?opti...
0c90af18ccf2fb23da90370fc3f4b456909f766d
2023-06-11 16:55:04
docker.io/swerebenchv2/nolar-kopf:1031-0c90af1
nolar__kopf-1031
Method: Vault.invalidate(self, key: VaultKey, info: ConnectionInfo, *, exc: Optional[Exception]=None) Location: class Vault in kopf/_cogs/structs/credentials.py Inputs: - key – the VaultKey identifying the credential entry to invalidate. - info – the associated ConnectionInfo that is being invalidated (used to match t...
python
MIT
diff --git a/kopf/_cogs/clients/api.py b/kopf/_cogs/clients/api.py index 37e09c4..3f3ca56 100644 --- a/kopf/_cogs/clients/api.py +++ b/kopf/_cogs/clients/api.py @@ -85,9 +85,22 @@ async def request( ) await errors.check_response(response) # but do not parse it! - # NOTE(vsaienko): du...
Re-authenticate if the session is closed by a concurrent request Several concurrent requests can step on each others toes while catching HTTP 401s: one of them will catch 401 and cause the re-auth normally (by invalidating the APIContext via the Vault), while others will be left with the closed session and will not be ...
Watchers on Custom Resources throw RuntimeError("Session is closed") and permanently die ### Long story short Operator starts up and runs normally as expected. After for running for some time some of the watch streams will throw a `RuntimeError("Session is closed")`. Once this happens that watch stream will never rest...
nolar/kopf
diff --git a/tests/authentication/test_vault.py b/tests/authentication/test_vault.py index 38da004..334a5b6 100644 --- a/tests/authentication/test_vault.py +++ b/tests/authentication/test_vault.py @@ -28,20 +28,20 @@ async def test_not_empty_when_populated(): async def test_yielding_after_creation(mocker): vaul...
[ "tests/authentication/test_vault.py::test_yielding_after_creation", "tests/authentication/test_vault.py::test_yielding_after_population", "tests/authentication/test_vault.py::test_yielding_items_before_expiration", "tests/authentication/test_vault.py::test_yielding_ignores_expired_items[0]", "tests/authenti...
[ "tests/authentication/test_vault.py::test_probits_evaluating_as_boolean", "tests/authentication/test_vault.py::test_empty_at_creation", "tests/authentication/test_vault.py::test_not_empty_when_populated", "tests/authentication/test_vault.py::test_caches_from_factory", "tests/authentication/test_vault.py::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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ab520e8bacdbe755c8e6155c34c4bec4500bbff3
2024-11-08 18:20:42
docker.io/swerebenchv2/sdv-dev-rdt:905-ab520e8
sdv-dev__rdt-905
Method: GaussianNormalizer.__repr__(self) Location: rdt.transformers.numerical.GaussianNormalizer Inputs: *self* – the instance to represent; no additional parameters. Outputs: *str* – the exact string ``'GaussianNormalizer()'`` (used by ``print`` producing ``'GaussianNormalizer()\\n'``). Description: Provides a concis...
python
custom-check-github
diff --git a/rdt/transformers/base.py b/rdt/transformers/base.py index d1520b2..2f0bbc9 100644 --- a/rdt/transformers/base.py +++ b/rdt/transformers/base.py @@ -343,7 +343,7 @@ class BaseTransformer: instanced = { key: getattr(self, key) for key in keys - if key != 'model_m...
Fix `print` for GaussianNormalizer CU-86b26aba0, Resolve #883.
Trying to `print()` a GaussianNormalizer instance throws an error ### Environment Details * RDT version: 1.12.4 ### Error Description <img width="755" alt="Screenshot 2024-09-16 at 2 43 39 PM" src="https://github.com/user-attachments/assets/7eebd4fa-9d9c-4638-a72c-d0acdc2c1ff6"> ### Steps to reproduce ``...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_numerical.py b/tests/unit/transformers/test_numerical.py index a947e51..bfcddc8 100644 --- a/tests/unit/transformers/test_numerical.py +++ b/tests/unit/transformers/test_numerical.py @@ -1176,6 +1176,18 @@ class TestGaussianNormalizer: # Assert np.testing.asse...
[ "tests/unit/transformers/test_numerical.py::TestGaussianNormalizer::test_print" ]
[ "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": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0f93cd24c878b98f9beb5c4f76d094d3e4f6b8bf
2023-02-27 21:26:02
docker.io/swerebenchv2/getmoto-moto:5997-0f93cd2
getmoto__moto-5997
Method: ResourceNotFoundException.__init__(self, msg: Optional[str] = None, table_name: Optional[str] = None) Location: `moto/dynamodb/exceptions.py` – class `ResourceNotFoundException` (sub‑class of `JsonRESTError`). Inputs: - **msg** – optional custom error message string. If omitted, a default message is gener...
python
Apache-2.0
diff --git a/moto/dynamodb/exceptions.py b/moto/dynamodb/exceptions.py index 87642779a..017c35b7c 100644 --- a/moto/dynamodb/exceptions.py +++ b/moto/dynamodb/exceptions.py @@ -4,12 +4,15 @@ from moto.core.exceptions import JsonRESTError from moto.dynamodb.limits import HASH_KEY_MAX_LENGTH, RANGE_KEY_MAX_LENGTH +E...
DynamoDB: describe_table() - return correct error msg Fixes #5993 The `com.amazonaws.dynamodb.v20111205#`-prefix was a holdover from the old DynamoDB, in use with boto2. All error types from the current DynamoDB version seem to be prefixed with `com.amazonaws.dynamodb.v20120810#` instead. This also changes the err...
[DynamoDb] All Errors are deserialized as DynamoDbException in JAVA SDK Using MotoServer to test Java based services. This Service creates the DynamoDb table if it doesn't exist, ie, on ResourceNotFoundException, table is created. When using the MotoServer, We get response ```json {"__type": "com.amazonaws.dynamod...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py index 2146184dc..d7b19810c 100644 --- a/tests/test_dynamodb/test_dynamodb.py +++ b/tests/test_dynamodb/test_dynamodb.py @@ -66,7 +66,9 @@ def test_describe_missing_table_boto3(): conn.describe_table(TableName="messages") ...
[ "tests/test_dynamodb/test_dynamodb.py::test_describe_missing_table_boto3", "tests/test_dynamodb/test_server.py::test_table_list" ]
[ "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[no-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[one-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[multiple-tables]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_paginated", "tests/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.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/getmoto/moto/pull/5012" ], "i...
ab8bf217295bc807cdbf7c61f0c13bf8b367b260
2023-09-18 19:14:10
docker.io/swerebenchv2/getmoto-moto:6828-ab8bf21
getmoto__moto-6828
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/models/dynamo_type.py b/moto/dynamodb/models/dynamo_type.py index d6554a25c..fe44ab17f 100644 --- a/moto/dynamodb/models/dynamo_type.py +++ b/moto/dynamodb/models/dynamo_type.py @@ -196,7 +196,7 @@ class DynamoType(object): def to_json(self) -> Dict[str, Any]: # Returns a regu...
DynamoDB - Return binary data in right format Fixes #6827 Followup to #6816
DynamoDB: `batch_get_item()` no longer works with `Binary` values `moto` version `4.2.3` (due to #6816) `batch_get_item()` no longer works with `Binary` values. We edited [test_dynamodb_batch_get_item.py](https://github.com/getmoto/moto/blob/master/tests/test_dynamodb/test_dynamodb_batch_get_item.py) to create the t...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py index 667c0dfa4..ec5f1982f 100644 --- a/tests/test_dynamodb/test_dynamodb.py +++ b/tests/test_dynamodb/test_dynamodb.py @@ -5745,11 +5745,19 @@ def test_projection_expression_with_binary_attr(): ) table = dynamo_resource....
[ "tests/test_dynamodb/test_dynamodb.py::test_projection_expression_with_binary_attr", "tests/test_dynamodb/test_dynamodb_batch_get_item.py::test_batch_items_returns_all", "tests/test_dynamodb/test_dynamodb_batch_get_item.py::test_batch_items_with_basic_projection_expression" ]
[ "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[no-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[one-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[multiple-tables]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_paginated", "tests/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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/getmoto/moto/blob/master/tests/test_d...
8c5ed4051dd74a6347af8d52f8e397eb53218ac4
2024-09-20 14:00:49
docker.io/swerebenchv2/amaranth-lang-amaranth:1519-8c5ed40
amaranth-lang__amaranth-1519
No new interfaces are introduced.
python
BSD-2-Clause
diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index cecb11f..28f428c 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -1132,7 +1132,7 @@ class ModuleEmitter: if cell.format is not None: for chunk in cell.format.chunks: if isinstance(chunk, str): -...
back.rtlil: espace { and } in format string Fixes #1518
Format(data.Struct) gives YosysError Running ```python #!/usr/bin/env python3 from amaranth import Print, Module, Format, Signal from amaranth.lib import data from amaranth.back.verilog import convert class A(data.Struct): x: 8 b: 8 m = Module() a = Signal(A) m.d.sync += Print(Format("{}", a...
amaranth-lang/amaranth
diff --git a/tests/test_back_rtlil.py b/tests/test_back_rtlil.py index e99bbdb..eefc399 100644 --- a/tests/test_back_rtlil.py +++ b/tests/test_back_rtlil.py @@ -2008,6 +2008,51 @@ class PrintTestCase(RTLILTestCase): end """) + def test_escape_curly(self): + m = Module() + m.d.comb +...
[ "tests/test_back_rtlil.py::PrintTestCase::test_escape_curly" ]
[ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
4ef1614a15b8738c27d9eb0fe877ceaed4fe4cb6
2022-09-02 17:25:09
docker.io/swerebenchv2/dynaconf-dynaconf:795-4ef1614
dynaconf__dynaconf-795
Method: LazySettings.__init__(self, settings_files: list[str] | None = None, merge_enabled: bool = False, **kwargs) Location: dynaconf.settings (LazySettings class) Inputs: - settings_files – list of paths to configuration files (e.g., YAML) to load. - merge_enabled – flag indicating whether subsequent loads should ...
python
MIT
diff --git a/dynaconf/utils/__init__.py b/dynaconf/utils/__init__.py index e55ec14..a77caa8 100644 --- a/dynaconf/utils/__init__.py +++ b/dynaconf/utils/__init__.py @@ -55,23 +55,33 @@ def object_merge( existing_value = recursive_get(old, full_path) # doesnt handle None # Need to make every `None` on...
New data key casing must adapt to existing key casing existing data is ```yaml level1: KeY4: ``` envvars is ```console $ export DYNACONF_LEVEL1__KEY4=foo ``` Then ``` settings._store # must have a `KeY4` = "foo" # instead of KEY4 = "foo" ``` Fix #737
Env vars are case sensitive (overriding only uppercase params if written in uppercase) when merge_enabled=True Let's say i have very simple yaml config with envs: ```yaml default: my_section: my_param: "default settings content" development: my_section: my_param: "development settings content" ``` ...
dynaconf/dynaconf
diff --git a/tests/test_yaml_loader.py b/tests/test_yaml_loader.py index 62ccd05..221b4a3 100644 --- a/tests/test_yaml_loader.py +++ b/tests/test_yaml_loader.py @@ -493,3 +493,44 @@ def test_should_NOT_duplicate_when_explicit_set(tmpdir): "script1.sh", # merge_unique does not duplicate, but overrides ...
[ "tests/test_yaml_loader.py::test_empty_yaml_key_overriding" ]
[ "tests/test_yaml_loader.py::test_load_from_yaml", "tests/test_yaml_loader.py::test_load_from_multiple_yaml", "tests/test_yaml_loader.py::test_no_filename_is_none", "tests/test_yaml_loader.py::test_key_error_on_invalid_env", "tests/test_yaml_loader.py::test_no_key_error_on_invalid_env", "tests/test_yaml_lo...
{ "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": [ "https://www.dynaconf.com/envvars/", "https://www...
d31d2f4dc68546c1950ef8841cf288d450a0f7b2
2025-06-25 14:36:58
docker.io/swerebenchv2/narwhals-dev-narwhals:2733-d31d2f4
narwhals-dev__narwhals-2733
Method: ExprDateTimeNamespace.offset_by(self, by: str) -> ExprT Location: narwhals/expr_dt.py (class ExprDateTimeNamespace) Inputs: - by (str): a relative offset string of the form "<multiple><unit>", where <multiple> is a positive integer and <unit> is one of ns, us, ms, s, m, h, d, mo, q, y. Invalid strings raise Va...
python
MIT
diff --git a/docs/api-reference/expr_dt.md b/docs/api-reference/expr_dt.md index 31c8f604..af2c691e 100644 --- a/docs/api-reference/expr_dt.md +++ b/docs/api-reference/expr_dt.md @@ -13,6 +13,7 @@ - minute - month - nanosecond + - offset_by - ordinal_day - replace_tim...
feat: Add `Expr.dt.offset_by()` <!-- # 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 - [x] ✨ Feature - [ ] 🐛 Bug Fix...
[Enh]: Add Expr.dt.offset_by() ### We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below? _No response_ ### Please describe the purpose of the new feature or describe the problem to solve. It would...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/dt/offset_by_test.py b/tests/expr_and_series/dt/offset_by_test.py new file mode 100644 index 00000000..a660b3be --- /dev/null +++ b/tests/expr_and_series/dt/offset_by_test.py @@ -0,0 +1,212 @@ +from __future__ import annotations + +from datetime import datetime, timezone + +import pyt...
[ "tests/expr_and_series/dt/offset_by_test.py::test_offset_by[pandas[pyarrow]-2us-expected0]", "tests/expr_and_series/dt/offset_by_test.py::test_offset_by[pandas-3mo-expected6]", "tests/expr_and_series/dt/offset_by_test.py::test_offset_by_series[pyarrow]", "tests/expr_and_series/dt/offset_by_test.py::test_offse...
[]
{ "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": [...
77193b2ab6e7be04bc8793e9fff21c690ac2db12
2021-08-13 14:10:13
docker.io/swerebenchv2/encode-httpx:1800-77193b2
encode__httpx-1800
Method: Client.__enter__(self) -> T Location: httpx/_client.py, class Client Inputs: self – instance of httpx.Client; must be in UNOPENED state before entering. Outputs: Returns the client instance (self) when entering a context. Raises RuntimeError with a clear message if the client is already OPENED ("Cannot open a c...
python
BSD-3-Clause
diff --git a/httpx/_client.py b/httpx/_client.py index 9fd96c4..212222a 100644 --- a/httpx/_client.py +++ b/httpx/_client.py @@ -1232,6 +1232,13 @@ class Client(BaseClient): transport.close() def __enter__(self: T) -> T: + if self._state != ClientState.UNOPENED: + msg = { +...
Stricter enforcement of client lifespan styles. When using a client, the expectation is that users should use one of the two following styles... ```python with httpx.Client() as client: ... ``` Or... ```python client = httpx.Client() ... ``` This pull request introduces a little bit of guarding ar...
Stricter enforcement around client scoping. Raised via: https://github.com/encode/httpx/issues/1478#issuecomment-828955977 There are really two sensible ways to use a client instance wrt. scoping the lifetime... Implicitly opened clients... ```python client = httpx.Client() ... client.close() # Optional in...
encode/httpx
diff --git a/tests/client/test_async_client.py b/tests/client/test_async_client.py index 0f83edd..1761287 100644 --- a/tests/client/test_async_client.py +++ b/tests/client/test_async_client.py @@ -265,9 +265,15 @@ async def test_client_closed_state_using_implicit_open(): await client.aclose() assert client....
[ "tests/client/test_async_client.py::test_get[asyncio]", "tests/client/test_async_client.py::test_get[trio]", "tests/client/test_async_client.py::test_get_invalid_url[asyncio-scheme-not-http(s)]", "tests/client/test_async_client.py::test_get_invalid_url[asyncio-no-scheme]", "tests/client/test_async_client.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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/encode/httpx/issues/1478#issuecomment...
b08b8f65be2c68e833cb5db177d842ebff44f38e
2022-10-20 21:55:21
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2426-b08b8f6
aws-cloudformation__cfn-lint-2426
Method: EqualsIsUseful.match(self, cfn) Location: src/cfnlint/rules/conditions/EqualsIsUseful.py Inputs: - **cfn**: a `Template` instance representing the parsed CloudFormation template. The method expects the template to provide a `search_deep_keys` method (as defined in `cfnlint.decode` objects) that can locate all ...
python
MIT-0
diff --git a/src/cfnlint/rules/conditions/EqualsIsUseful.py b/src/cfnlint/rules/conditions/EqualsIsUseful.py new file mode 100644 index 000000000..d9bc79add --- /dev/null +++ b/src/cfnlint/rules/conditions/EqualsIsUseful.py @@ -0,0 +1,44 @@ +""" +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +SPDX-...
feat(conditions) - Add rule W8003 to check if Equals will always be true or false *Issue #, if available:* fix #1267 *Description of changes:* - Add rule W8003 to check if Equals will always be true or false By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribu...
Add check for missing !Ref in condition *cfn-lint version: (`cfn-lint --version`)*: cfn-lint 0.26.0 *Description of issue.* It'd be helpful if cfn-lint had a check when parameter names or psuedo-parameters are used in conditions without a `!Ref` much like it checks for strings with `${PARAMETER}` without a `!Sub`...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/results/quickstart/nist_config_rules.json b/test/fixtures/results/quickstart/nist_config_rules.json index 562f2fe37..4aecc208d 100644 --- a/test/fixtures/results/quickstart/nist_config_rules.json +++ b/test/fixtures/results/quickstart/nist_config_rules.json @@ -1,4 +1,32 @@ [ + { + ...
[ "test/unit/module/cfn_json/test_cfn_json.py::TestCfnJson::test_fail_run", "test/unit/module/cfn_json/test_cfn_json.py::TestCfnJson::test_success_escape_character", "test/unit/module/cfn_json/test_cfn_json.py::TestCfnJson::test_success_parse", "test/unit/module/cfn_json/test_cfn_json.py::TestCfnJson::test_succ...
[]
{ "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.9, "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/Us...
6ef8840eeb88978fa244c4837057e7a058756dda
2023-02-14 20:47:57
docker.io/swerebenchv2/pyomo-pyomo:2740-6ef8840
pyomo__pyomo-2740
Function: main(args=None) Location: pyomo/scripting/pyomo_main.py Inputs: *args* – optional list of command‑line arguments (default: None, which causes the function to use ``sys.argv[1:]``). In the test a list ``['--solvers=glpk', 'foo.py']`` is supplied. Outputs: No explicit return value; the function processes argume...
python
custom-check-github
diff --git a/pyomo/scripting/pyomo_main.py b/pyomo/scripting/pyomo_main.py index 8f89492cc..f8bd4e857 100644 --- a/pyomo/scripting/pyomo_main.py +++ b/pyomo/scripting/pyomo_main.py @@ -11,6 +11,7 @@ import sys import copy +from pyomo.common.deprecation import deprecation_warning try: import pkg_resources @@...
Add true deprecation warning to `pyomo` command ## Fixes #160 ## Summary/Motivation: This PR adds a true deprecation warning to the `pyomo` command. ## Changes proposed in this PR: - Print deprecation warning if `pyomo` is called without a subcommand ### Legal Acknowledgement By contributing to this soft...
Deprecate the old 'pyomo' command syntax In earlier releases, we supported commands like ` pyomo --solver=glpk foo.py bar.dat` And we moved to a nested pyomo command, which uses the following syntax: ` pyomo solve --solver=glpk foo.py bar.dat` However, to enable graceful transition for users, we added a hack to...
Pyomo/pyomo
diff --git a/pyomo/scripting/tests/test_cmds.py b/pyomo/scripting/tests/test_cmds.py index 3b54d1195..c28c3233a 100644 --- a/pyomo/scripting/tests/test_cmds.py +++ b/pyomo/scripting/tests/test_cmds.py @@ -12,12 +12,21 @@ import re import pyomo.common.unittest as unittest from pyomo.common.tee import capture_output +...
[ "pyomo/scripting/tests/test_cmds.py::Test::test_pyomo_main_deprecation" ]
[ "pyomo/scripting/tests/test_cmds.py::Test::test_help_solvers", "pyomo/scripting/tests/test_cmds.py::Test::test_help_transformations" ]
{ "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.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
be2f45ed8b553072d0a41aa97cacf8e292075202
2023-09-13 18:36:00
docker.io/swerebenchv2/getmoto-moto:6810-be2f45e
getmoto__moto-6810
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/iam/models.py b/moto/iam/models.py index 5346d652a..023bcb493 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -84,9 +84,17 @@ def mark_account_as_visited( ) -> None: account = iam_backends[account_id] if access_key in account["global"].access_keys: - account["global"].acc...
IAM: Populate role last used Fixes #6809
Populate RoleLastUsed value Using moto 4.2.0, PyTest 7.4.0 in a venv. Good morning. I'm wanting to set a value in the `RoleLastUsed key`, using the` get_role(`) method with the iam client. I've done the below, but the value is still `{}`. Long-term I'd like to be able to set the `RoleLastUsed` value to be a...
getmoto/moto
diff --git a/tests/test_iam/test_iam_access_integration.py b/tests/test_iam/test_iam_access_integration.py index 70a8c03fe..b977fb8aa 100644 --- a/tests/test_iam/test_iam_access_integration.py +++ b/tests/test_iam/test_iam_access_integration.py @@ -1,5 +1,9 @@ +import datetime + import boto3 -from moto import mock_ec2...
[ "tests/test_iam/test_iam_access_integration.py::test_mark_role_as_last_used" ]
[ "tests/test_iam/test_iam_access_integration.py::test_invoking_ec2_mark_access_key_as_used", "tests/test_iam/test_iam_resets.py::test_policies_are_not_kept_after_mock_ends" ]
{ "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.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/getmoto/moto/issues/5927" ], ...
9460895575b50d9cb82438502ec955207eb546f6
2022-02-11 22:00:56
docker.io/swerebenchv2/alteryx-woodwork:1300-9460895
alteryx__woodwork-1300
Method: WoodworkTableAccessor.init(self, index=None, time_index=None, semantic_tags=None, **kwargs) Location: woodwork/accessor/table_accessor.py Inputs: - **index** (str, optional): Column name to use as the primary index. - **time_index** (str, optional): Column name to use as the primary time index. - **semantic_ta...
python
BSD-3-Clause
diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index b5dc970..d9e68f3 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -103,6 +103,7 @@ ColumnSchema :toctree: generated/ ColumnSchema + ColumnSchema.custom_tags ColumnSchema.description ...
Preserve custom semantic tags when changing logical type Closes #1130
Setting new logical type with set_types drops user set semantic tags Setting a new logical type with `set_types` can cause previously set semantic tags to be lost. This behavior seems a bit counter-intuitive when users do not specify new tags. If users do not specify new values for semantic tags during the call to `set...
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py index e86070b..b8796de 100644 --- a/woodwork/tests/accessor/test_table_accessor.py +++ b/woodwork/tests/accessor/test_table_accessor.py @@ -1941,7 +1941,11 @@ def test_accessor_set_index_errors(sample_df): ...
[ "woodwork/tests/accessor/test_table_accessor.py::test_set_types[sample_df_pandas]", "woodwork/tests/schema/test_table_schema.py::test_set_logical_types", "woodwork/tests/schema/test_table_schema.py::test_set_types_combined" ]
[ "woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]", "woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]", "woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]", "woodwork/tests/ac...
{ "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":...
ec76735e14d5e0e0de9efda6dbbf792f3a35a3e0
2020-09-03 16:11:22
docker.io/swerebenchv2/scoutapp-scout-apm-python:575-ec76735
scoutapp__scout_apm_python-575
Method: TrackedRequest.span(self, *args, **kwargs) Location: src/scout_apm/core/tracked_request.py → class TrackedRequest Inputs: - *args, **kwargs – forwarded to the existing `start_span` method (e.g., operation=str, should_capture_backtrace=bool, ignore_children=bool, etc.). Outputs: - Yields a `Span` object (the s...
python
MIT
diff --git a/src/scout_apm/async_/instruments/jinja2.py b/src/scout_apm/async_/instruments/jinja2.py index 4e3408f..41820e7 100644 --- a/src/scout_apm/async_/instruments/jinja2.py +++ b/src/scout_apm/async_/instruments/jinja2.py @@ -9,9 +9,6 @@ from scout_apm.core.tracked_request import TrackedRequest @wrapt.decorator...
Add TrackedRequest.span() context manager Fixes #557. Reduces duplication.
Add span context manager As per c46c79523358f88180caac77be8c5761e6482bba - would make several pieces of integrations simpler, removing unnecessary `try/finally`
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_tracked_request.py b/tests/unit/core/test_tracked_request.py index 2db95e7..fcb9062 100644 --- a/tests/unit/core/test_tracked_request.py +++ b/tests/unit/core/test_tracked_request.py @@ -54,9 +54,8 @@ def test_span_repr(tracked_request): def test_tag_span(tracked_request): - sp...
[ "tests/unit/core/test_tracked_request.py::test_tag_span", "tests/unit/core/test_tracked_request.py::test_start_span_does_not_ignore_children" ]
[ "tests/unit/core/test_tracked_request.py::test_tracked_request_repr", "tests/unit/core/test_tracked_request.py::test_tracked_request_instance_is_a_singleton", "tests/unit/core/test_tracked_request.py::test_is_real_request_default_false", "tests/unit/core/test_tracked_request.py::test_tag_request", "tests/un...
{ "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":...
1e64b8b8e2c0661c08a32067754ce052cdfe2caa
2024-12-15 14:41:05
docker.io/swerebenchv2/salesforce-policy-sentry:526-1e64b8b
salesforce__policy_sentry-526
No new interfaces are introduced.
python
MIT
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd14bd18..6b5a2d08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ permissions: env: MIN_PYTHON_VERSION: "3.9" + TERRAFORM_VERSION: "1.10" jobs: pre-commit: @@ -23,6 +24,9 @@ jobs: - uses: a...
correctly propagate condition keys to resource types ## What does this PR do? Fixes #522 ## What gif best describes this PR or how it makes you feel? ![](https://media.giphy.com/media/9V5dlBnbjrPcruCVE6/giphy.gif?cid=790b7611858h9q3dmmx3nll0garcrhfto5cn67zprxkp2v7e&ep=v1_gifs_search&rid=giphy.gif&ct=g) ## ...
Actions table query reports Conditions incorrectly I installed policy_sentry yesterday with pip. ``` $ policy_sentry --version policy_sentry, version 0.13.1 ``` When I query the Conditions table for Actions which support iam:PermissionsBoundary, iam:CreateRole comes up: ``` $ policy_sentry query action-table -...
salesforce/policy_sentry
diff --git a/test/querying/test_query_actions.py b/test/querying/test_query_actions.py index f4ad7c64..2abe6fe5 100644 --- a/test/querying/test_query_actions.py +++ b/test/querying/test_query_actions.py @@ -145,6 +145,8 @@ class QueryActionsTestCase(unittest.TestCase): "aws:ResourceTag/${TagKey...
[ "test/querying/test_query_actions.py::QueryActionsTestCase::test_get_action_data" ]
[ "test/querying/test_query_actions.py::QueryActionsTestCase::test_get_action_data_with_glob", "test/querying/test_query_actions.py::QueryActionsTestCase::test_get_actions_at_access_level_that_support_wildcard_arns_only", "test/querying/test_query_actions.py::QueryActionsTestCase::test_get_actions_for_invalid_ser...
{ "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/IAM/latest/APIReference/AP...
fe3054f69b67501468ee84a3ada82e534658c717
2024-04-10 14:46:02
docker.io/swerebenchv2/openmdao-openmdao:3184-fe3054f
openmdao__openmdao-3184
Method: System.set_constraint_options(self, name, lower=_UNDEFINED, upper=_UNDEFINED, equals=_UNDEFINED, ref=_UNDEFINED, ref0=_UNDEFINED, scaler=_UNDEFINED, adder=_UNDEFINED, alias=_UNDEFINED) Location: openmdao.core.system.System Inputs: - **name** (str): name of the response variable or its alias. - **lower**, **up...
python
custom-check-github
diff --git a/openmdao/core/system.py b/openmdao/core/system.py index 286707d16..835e1e2a6 100644 --- a/openmdao/core/system.py +++ b/openmdao/core/system.py @@ -34,7 +34,7 @@ from openmdao.utils.coloring import _compute_coloring, Coloring, \ import openmdao.utils.coloring as coloring_mod from openmdao.utils.indexer i...
Fixed bugs pertaining to the use of aliases in set_constraint_options and set_objective_options. ### Summary `_responses` recently changed such that they are referenced entirely by their alias rather than their name. When it comes to using `set_constraint_options` or `set_objective_options`, this caused issues wh...
`set_constraint_options` fails when an alias is used. ### Description `set_constraint_options` is intended to let the user change bounds on a constraint and rerun an optimization, but a recent change made it such that `System._responses` and `System._static_responses` are keyed by alias, not by output name. In ad...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py b/openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py index 16ee4759b..63dfb6090 100644 --- a/openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py +++ b/openmdao/core/tests/test_system_set_solver_bounds_sc...
[ "openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py::TestSystemSetSolverDesvarConstraintObjectiveOutputOptions::test_set_options_called_with_nonexistant_var", "openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py::TestSystemSetConstraintsOptions::test_set_constraint_options_error...
[ "openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py::TestSystemSetSolverOutputOptions::test_set_output_solver_affect_on_has_scaling_and_bounds_attributes", "openmdao/core/tests/test_system_set_solver_bounds_scaling_options.py::TestSystemSetSolverOutputOptions::test_set_output_solver_options_afte...
{ "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://stackoverflow.com/questions/78282669/openmdao-...
145562fa06d7b1002a6677007743055d2888ce83
2023-06-29 13:08:53
docker.io/swerebenchv2/openmdao-openmdao:2966-145562f
openmdao__openmdao-2966
Method: IndepVarComp.add_input(self, name, val=1.0, shape=None, units=None, desc='', tags=None, shape_by_conn=False, copy_shape=None, distributed=None) Location: openmdao/core/indepvarcomp.py (class IndepVarComp) Inputs: - name (str): variable name to add. - val (float, list, tuple, ndarray, or iterable, optional): ...
python
custom-check-github
diff --git a/openmdao/core/indepvarcomp.py b/openmdao/core/indepvarcomp.py index e7a875315..057deeae7 100644 --- a/openmdao/core/indepvarcomp.py +++ b/openmdao/core/indepvarcomp.py @@ -110,6 +110,48 @@ class IndepVarComp(ExplicitComponent): super()._configure_check() + def add_input(self, name, val=1.0,...
Raise exception when calling add_input on an IndepVarComp ### Related Issues - Resolves #2962 ### Backwards incompatibilities None ### New Dependencies None
Compute() not called for all components ### Description With version 3.27.0, [an MPhys unit test](https://github.com/OpenMDAO/mphys/blob/main/tests/unit_tests/test_scenario_directory_changes.py) fails with 3.27.0 but passes with 3.26.0. The unit test is provided in a standalone example below. The tested capability ...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_indep_var_comp.py b/openmdao/core/tests/test_indep_var_comp.py index 4025f28f2..d2e2feeba 100644 --- a/openmdao/core/tests/test_indep_var_comp.py +++ b/openmdao/core/tests/test_indep_var_comp.py @@ -4,7 +4,6 @@ import numpy as np import openmdao.api as om from openmdao.utils.as...
[ "openmdao/core/tests/test_indep_var_comp.py::TestIndepVarComp::test_add_input" ]
[ "openmdao/core/tests/test_indep_var_comp.py::TestIndepVarComp::test_add_output", "openmdao/core/tests/test_indep_var_comp.py::TestIndepVarComp::test_add_output_retval", "openmdao/core/tests/test_indep_var_comp.py::TestIndepVarComp::test_add_output_type_bug", "openmdao/core/tests/test_indep_var_comp.py::TestIn...
{ "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/OpenMDAO/mphys/blob/main/tests/unit...
0082a850356fa1f048896183f15b5e8489a1ed60
2023-11-14 19:24:50
docker.io/swerebenchv2/pennylaneai-pennylane:4837-0082a85
pennylaneai__pennylane-4837
Method: qml.gradients.jvp(tape, tangent, gradient_fn, gradient_kwargs=None) → (tuple, Callable) Location: pennylane/gradients/jvp.py Inputs: - **tape** (QuantumScript): the quantum tape to differentiate. - **tangent** (array_like): the tangent (direction) vector for the JVP. - **gradient_fn** (callable): gradient funct...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 8cc6d5f68..ad52cb2cd 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -98,6 +98,9 @@ <h3>Bug fixes 🐛</h3> +* Jax can now differeniate a batch of circuits where one tape does not have trainable paramet...
fix jax jacobians when one circuit not trainable Fixes #4834 [sc-50137] Long story short, our jvp tools, `qml.gradients.jvp` and `qml.interfaces.jacobian_products._compute_jvps` failed to return proper shapes and values when there is no trainable parameters. This fixes that. Note to reviewers: To properly test...
[BUG] Jax jacobian of batch when a circuit is not trainable ### Expected behavior This is an extension of this test: https://github.com/PennyLaneAI/pennylane/blob/45b89b67d28bbe3f8a3f5ab49b0a80a07a92f6a9/tests/interfaces/test_jax.py#L108 where I checked jacobian and `jvp` instead of just a single forward executio...
PennyLaneAI/pennylane
diff --git a/tests/gradients/core/test_jvp.py b/tests/gradients/core/test_jvp.py index ac9730275..2aa09c217 100644 --- a/tests/gradients/core/test_jvp.py +++ b/tests/gradients/core/test_jvp.py @@ -350,8 +350,8 @@ class TestJVP: tangent = np.array([1.0]) tapes, fn = qml.gradients.jvp(tape, tangent, par...
[ "tests/gradients/core/test_jvp.py::TestJVP::test_no_trainable_parameters[None]", "tests/gradients/core/test_jvp.py::TestJVP::test_no_trainable_parameters[1]", "tests/gradients/core/test_jvp.py::TestJVP::test_no_trainable_parameters[3]", "tests/gradients/core/test_jvp.py::TestBatchJVP::test_one_tape_no_trainab...
[ "tests/gradients/core/test_jvp.py::TestComputeJVPSingle::test_compute_jvp_single[jac0-tangent0-exp0]", "tests/gradients/core/test_jvp.py::TestComputeJVPSingle::test_compute_jvp_single[jac1-tangent1-exp1]", "tests/gradients/core/test_jvp.py::TestComputeJVPSingle::test_compute_jvp_single[jac2-tangent2-exp2]", "...
{ "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": [ "https://github.com/PennyLaneAI/pennylane/blob/45b89b67...
697cf7f156e34510e217c3af25168b8d98f15ab1
2025-05-08 17:42:22
docker.io/swerebenchv2/fsspec-universal-pathlib:372-697cf7f
fsspec__universal_pathlib-372
Method: ProxyUPath.__init__(self, *args: JoinablePathLike, protocol: str | None = None, **storage_options: Any) Location: upath/extensions.py Inputs: positional path components or a single URI (JoinablePathLike); optional protocol string; optional storage options passed to the underlying UPath. Outputs: creates a...
python
MIT
diff --git a/.gitignore b/.gitignore index 059c618..4449592 100644 --- a/.gitignore +++ b/.gitignore @@ -109,6 +109,7 @@ celerybeat.pid .venv env/ venv/ +venv*/ ENV/ env.bak/ venv.bak/ diff --git a/upath/core.py b/upath/core.py index a30bfb3..174d1a1 100644 --- a/upath/core.py +++ b/upath/core.py @@ -458,7 +458,7...
UPath api extensions via `upath.extensions.ProxyUPath` Implements a proxy class for api extensions. Closes #371 ```python from upath.extensions import ProxyUPath class MyExtendedUPath(ProxyUPath): @property def custom_property(self): return len(self.parts) x = MyExtendedUPath("s3://bucket/...
Provide a way to extend the UPath class interface Downstream libraries often want to extend the UPath class interface with custom methods. If you need support for multiple protocols this can be extremely annoying and cumbersome to implement, because of the implementation of `UPath.__new__` which creates the correct UP...
fsspec/universal_pathlib
diff --git a/upath/tests/implementations/test_hdfs.py b/upath/tests/implementations/test_hdfs.py index cee0157..6ece8ad 100644 --- a/upath/tests/implementations/test_hdfs.py +++ b/upath/tests/implementations/test_hdfs.py @@ -18,7 +18,3 @@ class TestUPathHDFS(BaseTests): def test_is_HDFSPath(self): asser...
[ "upath/tests/test_extensions.py::TestProxyMemoryPath::test_cwd", "upath/tests/test_extensions.py::TestProxyMemoryPath::test_home", "upath/tests/test_extensions.py::TestProxyMemoryPath::test_stat", "upath/tests/test_extensions.py::TestProxyMemoryPath::test_stat_dir_st_mode", "upath/tests/test_extensions.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": "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": ...
3b782cbecf3073ae96ea33e202e4e2a4f15e3a4d
2024-06-27 04:29:29
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3425-3b782cb
aws-cloudformation__cfn-lint-3425
Method: DbClusterServerlessExclusive.__init__(self) Location: src/cfnlint/rules/aws_rds_dbcluster.py (or wherever the rule class is defined) Inputs: None (no required arguments) Outputs: An instance of the DbClusterServerlessExclusive rule class Description: Constructs the rule that validates exclusive use of scaling c...
python
MIT-0
diff --git a/src/cfnlint/data/schemas/extensions/aws_rds_dbcluster/serverless_exclusive.json b/src/cfnlint/data/schemas/extensions/aws_rds_dbcluster/serverless_exclusive.json index 5976fa764..a669836eb 100644 --- a/src/cfnlint/data/schemas/extensions/aws_rds_dbcluster/serverless_exclusive.json +++ b/src/cfnlint/data/sc...
Default EngineMode for E3686 is provisioned *Issue #, if available:* fix #3424 *Description of changes:* - Default EngineMode for E3686 is provisioned By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Incorrect E3686 'AWS::RDS::DBCluster' ServerlessV2ScalingConfiguration exists if EngineMode is not set ### CloudFormation Lint Version 1.3.7 ### What operating system are you using? docker container based on python:3.12-alpine ### Describe the bug ```console $ cfn-lint --template ./a.yaml E3686 Additio...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py b/test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py index ca90c590b..cc82627b3 100644 --- a/test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py +++ b/test/unit/rules/resources/rds/test_db_cluster_ser...
[ "test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py::test_validate[instance4-expected4]" ]
[ "test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py::test_validate[instance0-expected0]", "test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py::test_validate[instance1-expected1]", "test/unit/rules/resources/rds/test_db_cluster_serverless_exclusive.py::test_validate[instance...
{ "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/aws-cloudformation/cfn-lint/blob/3b78...
dbb18432165bdc567e015511b3f3284f0f14cf05
2022-01-28 14:34:54
docker.io/swerebenchv2/pycqa-pyflakes:675-dbb1843
pycqa__pyflakes-675
No new interfaces are introduced.
python
MIT
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index 45c7a4a..45f2a42 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -1291,7 +1291,14 @@ class Checker(object): parent_stmt != node._pyflakes_parent and not self.isLiteralTupleUnpacking(parent_stmt)): b...
ignore `__all__` when not directly assigned resolves #674
Internal error on `__all__, = ...` Steps to reproduce: 1. Install `pyflakes==2.4.0` 2. Create a file with the name of `foo.py` 3. Place the following in the file (the comma after `__all__` is intentional): ```py __all__, = ( "fizz", "buzz", ) ``` 4. Run `pyflakes foo.py` Outcome: ``` Traceback (m...
PyCQA/pyflakes
diff --git a/pyflakes/test/test_imports.py b/pyflakes/test/test_imports.py index d5be269..07504d9 100644 --- a/pyflakes/test/test_imports.py +++ b/pyflakes/test/test_imports.py @@ -1057,6 +1057,12 @@ class TestSpecialAll(TestCase): __all__ = ["bar"] ''', m.UnusedImport) + def test_ignored_whe...
[ "pyflakes/test/test_imports.py::TestSpecialAll::test_ignored_when_not_directly_assigned" ]
[ "pyflakes/test/test_imports.py::TestImportationObject::test_import_as", "pyflakes/test/test_imports.py::TestImportationObject::test_import_basic", "pyflakes/test/test_imports.py::TestImportationObject::test_import_submodule", "pyflakes/test/test_imports.py::TestImportationObject::test_import_submodule_as", ...
{ "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": [ "https://github.com/PyCQA/pyflakes/blob/master/pyflakes/c...
0e3e596e8b7a0665dacfc96e630e1df2a71c9677
2021-01-25 12:07:00
docker.io/swerebenchv2/getindata-kedro-kubeflow:46-0e3e596
getindata__kedro-kubeflow-46
Function: convert_kedro_pipeline_to_kfp(**kedro_params) Location: Defined inside KubeflowClient.run_once as the KFP pipeline entry point (decorated with @dsl.pipeline and the new @maybe_add_params decorator). Inputs: - **kedro_params** – keyword‑only parameters, one for each key in the Kedro context’s params dictionary...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a79788..bcca42e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Support to inject Kedro pipeline parameters for the run + ## [0.2.0] - 2021-01-18 ### Added diff --git a/kedro_kubeflow/kfpclient.py b/kedro_kubeflow/kfp...
Parameters support #### Description Adds support of parameters adjustment Resolves #37 ##### PR Checklist - [x] Tests added - [x] [Changelog](CHANGELOG.md) updated
Support Kedro parameters in Kubeflow pipelines Obtain a list of parameters from parameters.yaml config file and expose those in Kubeflow pipeline definition. This will allow once deployed pipeline to be run with different parameters from the UI. Use the values form parameters.yaml as a default parameter values.
getindata/kedro-kubeflow
diff --git a/tests/test_mod.py b/tests/test_mod.py index 3875827..b8a5cfc 100644 --- a/tests/test_mod.py +++ b/tests/test_mod.py @@ -2,6 +2,7 @@ import os import unittest +from inspect import signature from tempfile import NamedTemporaryFile from unittest.mock import patch @@ -348,7 +349,7 @@ class TestKubeflow...
[ "tests/test_mod.py::TestKubeflowClient::test_should_support_params_and_inject_them_to_the_nodes" ]
[ "tests/test_mod.py::TestKubeflowClient::test_should_change_effective_user_if_to_volume_owner", "tests/test_mod.py::TestKubeflowClient::test_should_compile_pipeline", "tests/test_mod.py::TestKubeflowClient::test_should_compile_pipeline_with_modified_pull_policy", "tests/test_mod.py::TestKubeflowClient::test_sh...
{ "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": [], "intent_completeness": "complete", "pr_categories":...
2aa6f0172eff8d488b4d88e58168c97e641b6da0
2024-11-25 08:53:20
docker.io/swerebenchv2/stanfordnlp-dspy:1853-2aa6f01
stanfordnlp__dspy-1853
Function: format_field_value(field_info: FieldInfo, value: Any, assume_text: bool = True) Location: dspy/adapters/utils.py Inputs: - **field_info** – a pydantic FieldInfo object describing the DSPy field (annotation, type, etc.). - **value** – the value to be formatted (may be a list, Pydantic model, dict, primitive, ...
python
MIT
diff --git a/dspy/adapters/chat_adapter.py b/dspy/adapters/chat_adapter.py index a8ae380c..14dc3b7f 100644 --- a/dspy/adapters/chat_adapter.py +++ b/dspy/adapters/chat_adapter.py @@ -14,7 +14,7 @@ from pydantic.fields import FieldInfo from dsp.adapters.base_template import Field from dspy.adapters.base import Adapt...
Adapters: Support JSON serialization of all pydantic types (e.g. datetimes, enums, etc.) Fixes #1826 In addition to the unit tests introduced in this PR, I verified that generated integration tests for a program with enum inputs and enum outputs pass as well with `ChatAdapter` *and* `JSONAdapter` ``` test_gener...
Some typed inputs fail JSON serialization Context: I have a module that generates a structured output with one program, and then passes that object (a Pydantic model) as an input to the next program. If the input object contains a field that's not natively JSON serializable (in my example, a `datetime`), a `TypeErro...
stanfordnlp/dspy
diff --git a/tests/functional/test_signature_typed.py b/tests/functional/test_signature_typed.py index 7cd1c1fc..cdc0ef97 100644 --- a/tests/functional/test_signature_typed.py +++ b/tests/functional/test_signature_typed.py @@ -4,7 +4,7 @@ import pydantic import pytest import dspy -from dspy.adapters.chat_adapter im...
[ "tests/functional/test_signature_typed.py::test_basic_types[str-foo-foo]", "tests/functional/test_signature_typed.py::test_basic_types[int-42-42]", "tests/functional/test_signature_typed.py::test_basic_types[float-42.42-42.42]", "tests/functional/test_signature_typed.py::test_boolean", "tests/functional/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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
17340704a65b7032e4002a1ebb98bbd72a0de18d
2024-11-03 17:03:32
docker.io/swerebenchv2/myremylar-pygame-gui:651-1734070
myremylar__pygame_gui-651
Method: UIAppearanceTheme.__init__(self, resource_loader, locale='en', **kwargs) Location: pygame_gui/core/ui_appearance_theme.py – class UIAppearanceTheme Inputs: - **resource_loader** – an instance implementing the resource‑loader interface (e.g., BlockingThreadedResourceLoader). The loader is expected to be ready f...
python
MIT
diff --git a/pygame_gui/core/ui_appearance_theme.py b/pygame_gui/core/ui_appearance_theme.py index 2fe3d84..700e0bb 100644 --- a/pygame_gui/core/ui_appearance_theme.py +++ b/pygame_gui/core/ui_appearance_theme.py @@ -103,7 +103,7 @@ class UIAppearanceTheme(IUIAppearanceThemeInterface): self.need_to_rebuild...
Disable file path handling nuance test on non-windows fixes #644
Sandbox-sensitive test **Describe the bug** A clear and concise description of what the bug is. This part of the pytest test `TestUIUIFileDialog.test_process_event`: https://github.com/MyreMylar/pygame_gui/blob/cc1c41da88f0556012ace7256c897f07aa8b39e9/tests/test_windows/test_ui_file_dialog.py#L399-L404 fails ...
MyreMylar/pygame_gui
diff --git a/tests/test_core/test_ui_appearance_theme.py b/tests/test_core/test_ui_appearance_theme.py index 3920cbe..2d2c206 100644 --- a/tests/test_core/test_ui_appearance_theme.py +++ b/tests/test_core/test_ui_appearance_theme.py @@ -192,11 +192,8 @@ class TestUIAppearanceTheme: assert shadow_width == '0' ...
[ "tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_get_font" ]
[ "tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_creation", "tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_load_non_default_theme_from_package", "tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_load_non_default_theme_from_dictionary", ...
{ "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.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/MyreMylar/pygame_gui/blob/cc1c41da88f...
6e70daf7313ca878e3a46240ca6a20811024e9db
2024-08-07 18:48:50
docker.io/swerebenchv2/aspp-pelita:815-6e70daf
aspp__pelita-815
Method: DB_Wrapper.add_team_name(self, name, team_name) Location: contrib/ci_engine.py (class DB_Wrapper) Inputs: - name (str): player identifier to which the team name belongs. - team_name (str): the team name to store or update. Outputs: None (void). Commits the insertion or replacement into the `team_names` table...
python
custom-check-github
diff --git a/contrib/ci_engine.py b/contrib/ci_engine.py index c1cb84d0..f44194f1 100755 --- a/contrib/ci_engine.py +++ b/contrib/ci_engine.py @@ -120,11 +120,15 @@ class CI_Engine: self.dbwrapper.add_player(pname, new_hash) for player in self.players: + path = player['path'] + ...
Add team name to CI engine if available Adds the team name that is detected on startup to a separate database and uses the cached value later. Closes #814
Add team name in CI table Remote players only show their team names making comparisons harder. Conversely, the remote player should/could also include the spec name.
ASPP/pelita
diff --git a/contrib/test_ci_engine.py b/contrib/test_ci_engine.py index 998d7a4c..52c2b811 100644 --- a/contrib/test_ci_engine.py +++ b/contrib/test_ci_engine.py @@ -83,6 +83,17 @@ def test_get_player_hash(db_wrapper): assert db_wrapper.get_player_hash('p1') == 'h1' assert db_wrapper.get_player_hash('p2') ==...
[ "contrib/test_ci_engine.py::test_get_team_name" ]
[ "contrib/test_ci_engine.py::test_foreign_keys_enabled", "contrib/test_ci_engine.py::test_add_player", "contrib/test_ci_engine.py::test_remove_player", "contrib/test_ci_engine.py::test_add_remove_weirdly_named_player", "contrib/test_ci_engine.py::test_get_players", "contrib/test_ci_engine.py::test_get_resu...
{ "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": [], "intent_completeness": "partial", "pr_categories": ...
2958e0a8e61b01523b6232486683e21e22c85465
2024-03-27 01:49:48
docker.io/swerebenchv2/keras-team-keras:19387-2958e0a
keras-team__keras-19387
Method: DTypePolicy.__getnewargs__(self) Location: keras/dtype_policies/dtype_policy.py Inputs: self – the DTypePolicy instance whose internal state should be serializable. Outputs: tuple – a single‑element tuple containing the policy name (self._name,). This tuple is used by the copy module and pickle to reconstruct t...
python
Apache-2.0
diff --git a/keras/dtype_policies/dtype_policy.py b/keras/dtype_policies/dtype_policy.py index 7c8586c2a..8734037f7 100644 --- a/keras/dtype_policies/dtype_policy.py +++ b/keras/dtype_policies/dtype_policy.py @@ -69,6 +69,10 @@ class DTypePolicy: return FloatDTypePolicy(name) return super().__new_...
Fix `DTypePolicy` serialization Fix #19383 Corresponding tests have been added.
TypeError: DTypePolicy.__new__() when deepcopy(layer_instance) Hello, I use `Python==3.11.8` with `keras==3.1.1`. When I create a layer instance and try to deepcopy this layer I receive the following error which did not happen before. ```python >>> import keras >>> import copy >>> layer_obj = keras.layers...
keras-team/keras
diff --git a/keras/dtype_policies/dtype_policy_test.py b/keras/dtype_policies/dtype_policy_test.py index 9df8dd0a8..7b3535e66 100644 --- a/keras/dtype_policies/dtype_policy_test.py +++ b/keras/dtype_policies/dtype_policy_test.py @@ -61,6 +61,32 @@ class DTypePolicyTest(test_case.TestCase): new_policy = DTypePo...
[ "keras/dtype_policies/dtype_policy_test.py::DTypePolicyTest::test_deepcopy" ]
[ "keras/dtype_policies/dtype_policy_test.py::DTypePolicyTest::test_get_config_from_config", "keras/dtype_policies/dtype_policy_test.py::DTypePolicyTest::test_initialization_invalid_name", "keras/dtype_policies/dtype_policy_test.py::DTypePolicyTest::test_initialization_non_string_name", "keras/dtype_policies/dt...
{ "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": [...
66d6b6ae8cfa0fdbfce64ddb8f96ad859f592e18
2019-07-05 20:25:52
docker.io/swerebenchv2/kayak-pypika:267-66d6b6a
kayak__pypika-267
Method: Table.select(self, *terms) Location: pypika/queries.py → class Table Inputs: variable number of selectable terms (int, float, str, bool, Term, or Field objects) that form the SELECT clause. Outputs: a QueryBuilder instance representing `Query.from_(self).select(*terms)`. Description: Creates a SELECT que...
python
Apache-2.0
diff --git a/README.rst b/README.rst index 8c7686e..c33b32f 100644 --- a/README.rst +++ b/README.rst @@ -92,6 +92,20 @@ Both of the above examples result in the following SQL: SELECT id,fname,lname,phone FROM customers +Using ``pypika.Table`` based select alias + +.. code-block:: python + + customers = Tabl...
feat: add table level alias for select, insert and update Fixes #264 and #259 ### To Do - [x] Add documentation about table level aliases - [x] Add example in documentation
add Table.select? Has allowing `Table` to `select`, eliminating the name to re-specify a table name with `from_` been considered? e.g. ```python from pypika import Table, Query t = Table('my_table') t.select(t.x, t.y) == Query.from_('my_table').select(t.x, t.y) # -> True ``` Just an idea. Seems like it would ...
kayak/pypika
diff --git a/pypika/tests/test_inserts.py b/pypika/tests/test_inserts.py index 574e309..8e55efc 100644 --- a/pypika/tests/test_inserts.py +++ b/pypika/tests/test_inserts.py @@ -110,6 +110,14 @@ class InsertIntoTests(unittest.TestCase): self.assertEqual('INSERT INTO "abc" VALUES (NULL)', str(query)) + de...
[ "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_column_using_alias_with_chain", "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_column_using_table_alias", "pypika/tests/test_selects.py::SelectTests::test_table_select_alias", "pypika/tests/test_selects.py::SelectTests::test_table_select...
[ "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns", "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows", "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows_chained", "pypika/tests/test_inserts.py::InsertIntoTests::test_inser...
{ "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.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
2b05281c5ccfe6ae01b14598091399ef838ea11d
2022-03-30 17:18:35
docker.io/swerebenchv2/pallets-werkzeug:2365-2b05281
pallets__werkzeug-2365
Method: ResponseCacheControl.s_maxage Location: werkzeug.datastructures.ResponseCacheControl (property) Inputs: numeric value (int or float); the setter converts the provided value to an ``int`` using ``int(value)``. Setting ``None`` or a non‑numeric type raises ``TypeError``. Outputs: ``int`` – the stored ``s-maxage``...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 96445280..c4025cbf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ Version 2.1.1 Unreleased +- ``ResponseCacheControl.s_maxage`` converts its value to an int, like + ``max_age``. :issue:`2364` + Version 2.1.0 ------------- diff --git a/src/werkzeug/d...
`s_maxage` converts to an int - fixes #2364 <!-- Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to each box below. If only docs were changed, these aren't relevant and can be removed. --> Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail...
`ResponseCacheControl.s_maxage` raises error when set to an int `Response().cache_control.s_maxage` errors with `None` is not callable ``` from werkzeug.datastructures import ResponseCacheControl cc = ResponseCacheControl() cc.s_maxage = 1 ---------------------------------------------------------------------...
pallets/werkzeug
diff --git a/tests/test_http.py b/tests/test_http.py index dfa6dd11..5936bfa5 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -119,6 +119,9 @@ class TestHTTPUtility: c.max_age = 3.1 assert c.max_age == 3 del c.max_age + c.s_maxage = 3.1 + assert c.s_maxage == 3 + ...
[ "tests/test_http.py::TestHTTPUtility::test_cache_control_header" ]
[ "tests/test_http.py::TestHTTPUtility::test_accept", "tests/test_http.py::TestHTTPUtility::test_mime_accept", "tests/test_http.py::TestHTTPUtility::test_accept_matches", "tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity", "tests/test_http.py::TestHTTPUtility::test_charset_accept", "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8b20889da69f5d22485d61609043f8e633dea144
2019-03-29 20:04:24
docker.io/swerebenchv2/ipython-traitlets:517-8b20889
ipython__traitlets-517
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/traitlets/config/configurable.py b/traitlets/config/configurable.py index 05495d3..7768033 100644 --- a/traitlets/config/configurable.py +++ b/traitlets/config/configurable.py @@ -435,6 +435,8 @@ class LoggingConfigurable(Configurable): log = Instance('logging.Logger') @default('log') def _l...
Use log from parent in LoggingConfigurable. Closes #514. Ping @minrk.
Use Parent Log If Exists I'd like to see the default `log` attribute of a `LoggingConfigurable` be the parent log, rather than the global traitlets log, if the parent is also a LoggingConfigurable. ```python class LoggingConfigurable(...): ... log = Instance('logging.Logger') @default('log') d...
ipython/traitlets
diff --git a/traitlets/config/tests/test_configurable.py b/traitlets/config/tests/test_configurable.py index 3ba3c9e..800dca8 100644 --- a/traitlets/config/tests/test_configurable.py +++ b/traitlets/config/tests/test_configurable.py @@ -16,7 +16,7 @@ from traitlets.config.configurable import ( LoggingConfigurable,...
[ "traitlets/config/tests/test_configurable.py::TestLoggingConfigurable::test_parent_logger" ]
[ "traitlets/config/tests/test_configurable.py::TestConfigurable::test_custom", "traitlets/config/tests/test_configurable.py::TestConfigurable::test_default", "traitlets/config/tests/test_configurable.py::TestConfigurable::test_generated_config_enum_comments", "traitlets/config/tests/test_configurable.py::TestC...
{ "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": [...
e1f966a1775e63bc7fadf1b13bb0d2567a30ce78
2018-08-28 08:59:13
docker.io/swerebenchv2/dai-lab-copulas:54-e1f966a
dai-lab__copulas-54
Method: Bivariate.from_dict(cls, copula_dict) Location: copulas/bivariate/base.py Inputs: copula_dict – dict containing keys 'copula_type', 'theta', 'tau' (copula_type as string, theta and tau as floats). Outputs: Bivariate instance with attributes copula_type (as CopulaTypes enum), theta, tau set. Raises KeyError if ...
python
custom-check-github
diff --git a/copulas/bivariate/base.py b/copulas/bivariate/base.py index 131777f..2c1e986 100644 --- a/copulas/bivariate/base.py +++ b/copulas/bivariate/base.py @@ -1,3 +1,4 @@ +import json from enum import Enum import numpy as np @@ -76,12 +77,19 @@ class Bivariate(object): self.tau = stats.kendalltau(sel...
Issue 33: Add methods to load and save copulas This PR adds the functionality to load and save the internal state of a copula in a file. To do so, the following methods have been added to the classes: - `to_dict`: Returns a `dict` containing the required attributes to replicate an object. - `from_dict`: Sets the int...
Add methods to load/save the intenal state of a copula. We need to add a `save`and `load` methods to replicate the internal state of an copula
DAI-Lab/Copulas
diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..7714691 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,42 @@ +import numpy as np +import pandas as pd + + +def compare_nested_dicts(first, second, epsilon=10E-6): + """Compares two dictionaries. Raises an assertion error when a ...
[ "tests/copulas/bivariate/test_base.py::TestBivariate::test_from_dict", "tests/copulas/bivariate/test_base.py::TestBivariate::test_load_from_file", "tests/copulas/bivariate/test_base.py::TestBivariate::test_save", "tests/copulas/bivariate/test_base.py::TestBivariate::test_to_dict", "tests/copulas/multivariat...
[ "tests/copulas/multivariate/test_edge.py::TestEdge::test_identify_eds", "tests/copulas/multivariate/test_edge.py::TestEdge::test_sort_edge", "tests/copulas/multivariate/test_gaussian_copula.py::TestGaussianCopula::test_deprecation_warnings", "tests/copulas/univariate/test_gaussian.py::TestGaussianUnivariate::...
{ "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": [], "intent_completeness": "complete", "pr_categories":...
95fd281a7d53d02bab7020d58afe5f99b828efb4
2025-05-21 13:31:59
docker.io/swerebenchv2/berriai-litellm:11006-95fd281
berriai__litellm-11006
Method: CustomStreamWrapper.set_model_id(self, id: str, model_response: ModelResponseStream) Location: litellm/litellm_core_utils/streaming_handler.py Inputs: - **id** – `str` (may be empty or whitespace; represents the response ID received in the current chunk). - **model_response** – `ModelResponseStream` in...
python
custom-check-github
diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index 785186b8a..a0767c09e 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -695,10 +695,13 @@ class CustomStreamWrapper: Ensure ...
Improve response_id propagation logic and add tests for valid/empty I… ## Title fix(openrouter): preserve gen-… ID in streaming responses (#11005) ## Relevant issues Fixes #11005 ## Pre-Submission checklist - [x] Added at least one test under `tests/litellm/` - [x] Screenshot of new test passing locally - [x...
[Bug]: SSE chunks that come from OpenRouter in a stream lose their OpenRouter ID ### What happened? When using OpenRouter with stream=true the ids are getting generated inside litellm and not getting picked up from OpenRouter generated gen IDs. I added in the logs the output of a small test script I have that prints ...
BerriAI/litellm
diff --git a/tests/litellm/litellm_core_utils/test_streaming_handler.py b/tests/litellm/litellm_core_utils/test_streaming_handler.py index 81bde88f3..c38709735 100644 --- a/tests/litellm/litellm_core_utils/test_streaming_handler.py +++ b/tests/litellm/litellm_core_utils/test_streaming_handler.py @@ -612,6 +612,33 @@ de...
[ "tests/litellm/litellm_core_utils/test_streaming_handler.py::test_set_response_id_propagation_empty_to_valid" ]
[ "tests/litellm/litellm_core_utils/test_streaming_handler.py::test_is_chunk_non_empty", "tests/litellm/litellm_core_utils/test_streaming_handler.py::test_is_chunk_non_empty_with_annotations", "tests/litellm/litellm_core_utils/test_streaming_handler.py::test_multi_chunk_reasoning_and_content", "tests/litellm/li...
{ "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://www.linkedin.com/in/dagokogos/" ], "inte...
21c1c3ab8d75221fd95831bfaaf9b38f61701251
2022-04-22 12:29:20
docker.io/swerebenchv2/cta-observatory-ctapipe:1893-21c1c3a
cta-observatory__ctapipe-1893
Function: recarray_drop_columns(array, columns) Location: ctapipe.utils.arrays.recarray_drop_columns Inputs: - **array**: a NumPy structured (record) array or recarray from which columns will be removed. - **columns**: iterable of column names (strings) to be dropped from the input array. Outputs: - Returns a new recar...
python
BSD-3-Clause
diff --git a/ctapipe/containers.py b/ctapipe/containers.py index 6c869260..a4a8c99f 100644 --- a/ctapipe/containers.py +++ b/ctapipe/containers.py @@ -494,7 +494,7 @@ class SimulatedCameraContainer(Container): container_prefix = "" true_image_sum = Field( - np.nan, "Sum of the detected Cherenkov phot...
Store true_image_sum also when true image is not written This will also keep the true_image_sum in the merge tool, even when `--skip-images` is given. Fixes #1891
Write out `true_image_sum` also when not writing out `true_image`. **Please describe the use case that requires this feature.** Currently, the `true_image_sum` is only written when `DataWriter.write_true_images=True` This is probably the opposite of what we want... **Describe the solution you'd like** Write...
cta-observatory/ctapipe
diff --git a/ctapipe/tools/tests/test_merge.py b/ctapipe/tools/tests/test_merge.py index 446bff21..3fc4512c 100644 --- a/ctapipe/tools/tests/test_merge.py +++ b/ctapipe/tools/tests/test_merge.py @@ -97,12 +97,17 @@ def test_skip_images(tmp_path, dl1_file, dl1_proton_file): ], cwd=tmp_path, ) + ...
[ "ctapipe/utils/tests/test_arrays.py::test_drop_columns" ]
[]
{ "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": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
1787497713fa389435ed732c9b26274c3cdc458d
2023-10-04 21:40:39
docker.io/swerebenchv2/pallets-click:2622-1787497
pallets__click-2622
Method: Choice.get_invalid_choice_message(self, value) Location: src/click/types.py Inputs: value – the invalid choice value (any type, typically a string) that was supplied by the user. Outputs: str – a formatted error message describing the invalid choice, e.g., "'d' is not one of 'a', 'b', 'c'." Description: Constru...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 495eb2a..387f84f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -54,6 +54,8 @@ Unreleased - When using ``Option.envvar`` with ``Option.flag_value``, the ``flag_value`` will always be used instead of the value of the environment variable. :issue:`2746` :pr:`2788` ...
feat: new method for choice fail Refactors so the failing happens in a new public method. - fixes #2621 - Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to each box below. If only docs were changed, these aren't relevant and can be removed. --> Checklist: - [x] Add tests that demonst...
Allow customizing fail message for invalid choice in `click.types.Choice` Move the fail art of `convert()` in the `Choice` class to a new method `get_invalid_choice_fail_message(self)` so in my subclass of `click.Choice` I can customize the way it shows the failing value for the choice Some CLI option choices are mu...
pallets/click
diff --git a/tests/test_types.py b/tests/test_types.py index 79068e1..667953a 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -244,3 +244,9 @@ def test_invalid_path_with_esc_sequence(): click.Path(dir_okay=False).convert(tempdir, None, None) assert "my\\ndir" in exc_info.value.message ...
[ "tests/test_types.py::test_choice_get_invalid_choice_message" ]
[ "tests/test_types.py::test_range[type0-3-3]", "tests/test_types.py::test_range[type1-5-5]", "tests/test_types.py::test_range[type2-100-100]", "tests/test_types.py::test_range[type3-5-5]", "tests/test_types.py::test_range[type4--100--100]", "tests/test_types.py::test_range[type5--1-0]", "tests/test_types...
{ "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": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
d8cbd469484a8937d14f9cc48336bd3c3a9a425f
2023-05-26 16:28:19
docker.io/swerebenchv2/pyomo-pyomo:2848-d8cbd46
pyomo__pyomo-2848
No new interfaces are introduced.
python
custom-check-github
diff --git a/pyomo/contrib/fbbt/fbbt.py b/pyomo/contrib/fbbt/fbbt.py index 047e1396e..b8a2bf20c 100644 --- a/pyomo/contrib/fbbt/fbbt.py +++ b/pyomo/contrib/fbbt/fbbt.py @@ -444,7 +444,7 @@ def _prop_bnds_leaf_to_root_GeneralExpression(node, bnds_dict, feasibility_tol): is more conservative). """ if n...
Fix typo in FBBT (GeneralExpression) ## Fixes #2846 ## Summary/Motivation: This fixes a typo in FBBT, and adds a test to exercise the code. ## Changes proposed in this PR: - Fix typo, add test ### Legal Acknowledgement By contributing to this software project, I have read the [contribution guide](https://...
UnboundLocalError in FBBT _prop_bnds_leaf_to_root_GeneralExpression() ## Summary `UnboundLocalError: local variable 'expr_ub' referenced before assignment` is raised when running DISPATCHES code in after Pyomo 6.6.0 was released. From a quick search, the error seems to be related to what looks to be a typo in th...
Pyomo/pyomo
diff --git a/pyomo/contrib/fbbt/tests/test_fbbt.py b/pyomo/contrib/fbbt/tests/test_fbbt.py index 5fafad4a9..5e8d656ee 100644 --- a/pyomo/contrib/fbbt/tests/test_fbbt.py +++ b/pyomo/contrib/fbbt/tests/test_fbbt.py @@ -1317,6 +1317,20 @@ class FbbtTestBase(object): self.assertAlmostEqual(m.y.lb, 0) self...
[ "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_named_expr" ]
[ "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_abs", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_acos", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_always_feasible", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_asin", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::...
{ "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/Pyomo/pyomo/blob/d39671ef28a76ed18f60...
881cd4e38d31663ae67bdae227ec1ccdfd5e2c77
2024-04-08 20:59:47
docker.io/swerebenchv2/pdm-project-pdm:2781-881cd4e
pdm-project__pdm-2781
Function: is_path_relative_to(path, base) Location: pdm.utils (module) Inputs: - **path** (*Path* or *str*): The path to test. - **base** (*Path* or *str*): The directory that should be the ancestor. Both arguments are accepted as ``pathlib.Path`` objects or strings that can be converted to ``Path``. Outputs: - **b...
python
MIT
diff --git a/news/2779.bugfix.md b/news/2779.bugfix.md new file mode 100644 index 00000000..7ba53891 --- /dev/null +++ b/news/2779.bugfix.md @@ -0,0 +1,1 @@ +Fix PDM unable to find Python interpreters when `PDM_IGNORE_ACTIVE_VENV` is set diff --git a/src/pdm/project/core.py b/src/pdm/project/core.py index da539c11..722...
fix(venv): ensures that `PDM_IGNORE_ACTIVE_VENV` does not prevent finding an interpreter (fix #2779) ## Pull Request Checklist - [x] A news fragment is added in `news/` describing what is new. - [x] Test cases added for changed code. ## Describe what you have changed in this PR. PDM was unable to find Python ...
PDM doesn't find Python interpreters when PDM_IGNORE_ACTIVE_VENV is set - [x] I have searched the issue tracker and believe that this is not a duplicate. **Make sure you run commands with `-v` flag before pasting the output.** ## Steps to reproduce <!--Describe the minimized example of how to reproduce the bug...
pdm-project/pdm
diff --git a/tests/test_project.py b/tests/test_project.py index 8a5db208..634a070c 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -4,6 +4,7 @@ import os import sys import venv from pathlib import Path +from typing import TYPE_CHECKING import pytest from pytest_httpserver import HTTPServer @@ ...
[ "tests/test_project.py::test_find_interpreters_with_PDM_IGNORE_ACTIVE_VENV[True]" ]
[ "tests/test_project.py::test_project_python_with_pyenv_support", "tests/test_project.py::test_project_config_items", "tests/test_project.py::test_project_config_set_invalid_key", "tests/test_project.py::test_project_sources_overriding_pypi", "tests/test_project.py::test_project_sources_env_var_expansion", ...
{ "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://pdm-project.org/latest/usage/venv/#virtualenv-...
15aa45e185a68e34eeb5954f63677cfccf70bf3d
2024-07-20 18:57:53
docker.io/swerebenchv2/getmoto-moto:7874-15aa45e
getmoto__moto-7874
Method: Schedule.__init__(self, name: str, group_name: Optional[str], description: Optional[str], kms_key_arn: Optional[str], start_date: Optional[str], end_date: Optional[str], action_after_completion: Optional[str]) Location: moto/scheduler/models.py Inputs: - **name** – string identifier of the schedule (required) ...
python
Apache-2.0
diff --git a/moto/rds/exceptions.py b/moto/rds/exceptions.py index 678d1a78c..1829bc3f0 100644 --- a/moto/rds/exceptions.py +++ b/moto/rds/exceptions.py @@ -160,7 +160,7 @@ class DBClusterSnapshotAlreadyExistsError(RDSClientError): class ExportTaskAlreadyExistsError(RDSClientError): def __init__(self, export_task...
EventBridge Scheduler - get_schedule() now returns the ActionAfterCompletion Fixes #7782
EventBridge Scheduler get_schedule does not include ActionAfterCompletion in response **Software versions** moto version: 5.0.9 boto3 version: 1.34.130 Python version: 3.11.7 **Problem description** When using the [boto3 EventBridgeScheduler client.get_schedule](https://boto3.amazonaws.com/v1/documentation/a...
getmoto/moto
diff --git a/tests/test_rds/test_rds_event_subscriptions.py b/tests/test_rds/test_rds_event_subscriptions.py index 1dd3a6839..ff7f4dadc 100644 --- a/tests/test_rds/test_rds_event_subscriptions.py +++ b/tests/test_rds/test_rds_event_subscriptions.py @@ -74,7 +74,7 @@ def test_create_event_fail_already_exists(): e...
[ "tests/test_rds/test_rds_event_subscriptions.py::test_create_event_fail_already_exists", "tests/test_rds/test_rds_event_subscriptions.py::test_delete_event_subscription_fails_unknown_subscription", "tests/test_rds/test_rds_event_subscriptions.py::test_describe_event_subscriptions_fails_unknown_subscription", ...
[ "tests/test_rds/test_rds_event_subscriptions.py::test_create_event_subscription", "tests/test_rds/test_rds_event_subscriptions.py::test_delete_event_subscription", "tests/test_rds/test_rds_event_subscriptions.py::test_describe_event_subscriptions", "tests/test_rds/test_rds_export_tasks.py::test_start_export_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": "B5", "confidence": 0.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest...
5b89d27fff628b7c24755c456229bb8100aec36d
2020-11-21 22:07:33
docker.io/swerebenchv2/networkx-networkx:4378-5b89d27
networkx__networkx-4378
Function: _n_choose_k(n, k) Location: networkx.algorithms.similarity Inputs: - **n** (int): size of the set from which to choose. - **k** (int): size of the unordered subset to choose. Outputs: - **binomial_coeff** (int): the binomial coefficient “n choose k”. Returns 0 if k > n, 1 if k == n, otherwise the exact intege...
python
custom-check-github
diff --git a/doc/developer/nxeps/nxep-template.rst b/doc/developer/nxeps/nxep-template.rst index 1054afd6c..bee68ede2 100644 --- a/doc/developer/nxeps/nxep-template.rst +++ b/doc/developer/nxeps/nxep-template.rst @@ -27,11 +27,11 @@ the proposed change. Usage and Impact ---------------- -This section describes how ...
Modify and document behavior of nodelist param in draw_networkx_edges. Closes #4374 Prevents edges whose endpoints are not in `nodelist` from being drawn by `draw_networkx_edges` (see #4374 for more details). Also documents missing `node*` parameters in `draw_networkx_edges` docstring.
Question: behavior of `node_list` kwarg in draw_networkx_edges Like the other pylab drawing functions, `nx_pylab.draw_networkx_edges` currently has a `nodelist` keyword argument. It is not included in the `Parameters` listing of the docstring and so it's behavior is not well-defined. Naively, I would expect that an...
networkx/networkx
diff --git a/networkx/algorithms/centrality/tests/test_reaching.py b/networkx/algorithms/centrality/tests/test_reaching.py index 7e9a3f895..8587776b5 100644 --- a/networkx/algorithms/centrality/tests/test_reaching.py +++ b/networkx/algorithms/centrality/tests/test_reaching.py @@ -1,7 +1,7 @@ """Unit tests for the :mod...
[ "networkx/algorithms/centrality/tests/test_reaching.py::TestGlobalReachingCentrality::test_non_positive_weights", "networkx/algorithms/centrality/tests/test_reaching.py::TestGlobalReachingCentrality::test_negatively_weighted", "networkx/algorithms/centrality/tests/test_reaching.py::TestGlobalReachingCentrality:...
[]
{ "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://user-images.githubusercontent.com/1268991/998589...
c4007f030024580be7a8810342632c1ef260b081
2025-03-19 19:53:11
docker.io/swerebenchv2/neurodatawithoutborders-pynwb:2060-c4007f0
neurodatawithoutborders__pynwb-2060
Method: ImageSeries.__init__(self, name, external_file, unit, starting_frame, rate, format=None, **kwargs) Location: src/pynwb/image.py (ImageSeries class constructor) Inputs: - name (str): identifier for the ImageSeries. - external_file (list[str] or str): external file(s) containing image data. - unit (str): physica...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f92b2e..52c00b21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Enhancements and minor changes - Added option to disable typemap caching and updated type map cache location. @stephprince [#2057](https://github.com/NeurodataWithoutBorders/pynwb/pull/20...
Automatically set format to external on ImageSeries if external file provided ## Motivation Fix #2041 ## How to test the behavior? ```python from pynwb.image import ImageSeries iS = ImageSeries(name="test_iS", external_file=["external_file", "external_file2"], unit="n.a."...
[Bug]: External file format error on ImageSeries ### What happened? When creating a new `ImageSeries` with an external file, pynwb now throws an error if `format` is not specified as "external", even if no format value was provided. Would it be better for this to remain a warning (or removed entirely), since it is ju...
NeurodataWithoutBorders/pynwb
diff --git a/tests/unit/test_image.py b/tests/unit/test_image.py index 7d4f5f2f..52c59f19 100644 --- a/tests/unit/test_image.py +++ b/tests/unit/test_image.py @@ -249,25 +249,14 @@ class ImageSeriesConstructor(TestCase): def test_external_file_default_format(self): """Test that format is set to 'externa...
[ "tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_default_format" ]
[ "tests/unit/test_image.py::ImageSeriesConstructor::test_bits_per_pixel_deprecation", "tests/unit/test_image.py::ImageSeriesConstructor::test_data_no_frame", "tests/unit/test_image.py::ImageSeriesConstructor::test_data_no_unit", "tests/unit/test_image.py::ImageSeriesConstructor::test_dimension_error", "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/NeurodataWithoutBorders/pynwb/blob/de...
cc954890bfd49b5173bddcd3015069d52b619412
2024-06-14 15:15:56
docker.io/swerebenchv2/pennylaneai-pennylane:5857-cc95489
pennylaneai__pennylane-5857
Method: TransformDispatcher._qfunc_transform(self, qfunc: Callable, targs: Sequence[Any], tkwargs: Mapping[str, Any]) → Callable Location: pennylane/transforms/core/transform_dispatcher.py, class TransformDispatcher Inputs: - **qfunc** – the original quantum‑function (callable) to which the transform should be applied....
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 11e431fa3..19dcc314a 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -264,6 +264,9 @@ * `qml.qchem.molecular_dipole` function is added for calculating the dipole operator using "dhf" and "openfermion" bac...
transform callables wrap original qfunc **Context:** Issue #5843 made me realize when we apply a transform to a qfunc callable, we should use `functools.wraps` to preserve the docstring and signature of the original function. **Description of the Change:** Adds `functools.wraps` to the transformed qfunc. **...
Broadcast Expand Prevents Torchlayer from detecting Inputs Argument ### Expected behavior The torchlayer should be created successfully without any errors. This works fine if the broadcast expand function decorator "@qml.transforms.broadcast_expand" is commented out from the minimal code provided. ### Actual beha...
PennyLaneAI/pennylane
diff --git a/tests/transforms/core/test_transform_dispatcher.py b/tests/transforms/core/test_transform_dispatcher.py index 21acd922b..64a008dec 100644 --- a/tests/transforms/core/test_transform_dispatcher.py +++ b/tests/transforms/core/test_transform_dispatcher.py @@ -12,6 +12,7 @@ # See the License for the specific l...
[ "tests/transforms/core/test_transform_dispatcher.py::TestTransformDispatcher::test_queuing_qfunc_transform" ]
[ "tests/transforms/core/test_transform_dispatcher.py::TestTransformContainer::test_repr", "tests/transforms/core/test_transform_dispatcher.py::TestTransformContainer::test_equality", "tests/transforms/core/test_transform_dispatcher.py::TestTransformContainer::test_the_transform_container_attributes", "tests/tr...
{ "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": [...
ee7a7eb195774d68f0b27e0ca42dfc38bef9aa79
2022-02-08 08:18:28
docker.io/swerebenchv2/theacodes-nox:567-ee7a7eb
theacodes__nox-567
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/usage.rst b/docs/usage.rst index 1309a84..e9b0c3a 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -218,7 +218,7 @@ If the Noxfile sets ``nox.options.stop_on_first_error``, you can override the No Failing sessions when the interpreter is missing ------------------------------------------------ ...
Missing interpreters now error the session on CI by default Closes #340 This PR adds a check to determine if nox is running on CI when evaluating sessions with missing interpreters so that such sessions fail by default when being run on CI providers. This has the desired effect: **Skipped locally showing CI w...
Change default behavior for `--error-on-missing-interpreters` Is it possible to improve `--error-on-missing-interpreters` with "principle of least surprise" in mind? We don't want onerous failures during local dev, but the two changes are proposed: - Mention the `--error-on-missing-interpreters` flag in the error / ...
theacodes/nox
diff --git a/tests/test_sessions.py b/tests/test_sessions.py index e753850..a71d1f9 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -749,7 +749,7 @@ class TestSessionRunner: envdir="envdir", posargs=[], reuse_existing_virtualenvs=False, - ...
[ "tests/test_sessions.py::TestSessionRunner::test_execute_skip_missing_interpreter" ]
[ "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": "A", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://help.github.com/actions/language-and-framework...
f189cce4a3dee5e85fe6d3fc0a52e6c13ef193e3
2025-04-07 16:39:25
docker.io/swerebenchv2/vacanza-holidays:2442-f189cce
vacanza__holidays-2442
Method: HolidaysTF._populate_public_holidays(self) → None Location: holidays.countries.french_southern_territories.HolidaysTF Inputs: self – instance of HolidaysTF; no external parameters. Outputs: Sets self.subdiv to "TF" and populates the public holidays by delegating to France._populate_public_holidays(). No value i...
python
MIT
diff --git a/AUTHORS.md b/AUTHORS.md index 06637117..44746aaa 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -83,6 +83,7 @@ Kelsey Karin Hawley Koert van der Veer Koki Nomura Kriti Birda +Lucca Augusto Maina Kamau Malthe Borch Marek Šuppa diff --git a/README.md b/README.md index 91cbcabd..52e1fe87 100644 --- a/READM...
Add French Southern Territories holidays ## Proposed change Add French Southern Territories holidays. Resolves #2434. ## Type of change - [X] New country/market holidays support (thank you!) ## Checklist - [X] I've followed the [contributing guidelines][contributing-guidelines] - [X] I've successfull...
Add French Southern Territories holidays URLs: - https://holidayapi.com/countries/tf/2022
vacanza/holidays
diff --git a/tests/countries/test_french_southern_territories.py b/tests/countries/test_french_southern_territories.py new file mode 100644 index 00000000..7db901ac --- /dev/null +++ b/tests/countries/test_french_southern_territories.py @@ -0,0 +1,46 @@ +# holidays +# -------- +# A fast, efficient Python library for...
[ "tests/countries/test_french_southern_territories.py::TestTF::test_2022", "tests/countries/test_french_southern_territories.py::TestTF::test_code", "tests/countries/test_french_southern_territories.py::TestTF::test_country_aliases", "tests/countries/test_french_southern_territories.py::TestTF::test_observed_e...
[]
{ "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": "B3", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://holidayapi.com/countries/tf/2022" ], "...
56280df57b6715616c20542a4e64632bec574228
2020-05-23 12:42:01
docker.io/swerebenchv2/relekang-python-semantic-release:242-56280df
relekang__python-semantic-release-242
Function: changelog_table(changelog: dict, changelog_sections: list, **kwargs) Location: semantic_release.changelog.changelog Inputs: - **changelog**: Mapping of change‑type keys (e.g., "feature", "fix") to a list of tuples `(commit_message, commit_sha)`. Both items are expected to be strings. - **changelog_sections**:...
python
MIT
diff --git a/docs/configuration.rst b/docs/configuration.rst index e17185d..a58f367 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -204,6 +204,11 @@ The following components are included in Python Semantic Release: List of commits between this version and the previous one, with sections and h...
Add changelog_table component Add an alternative changelog component (`semantic_release.changelog.changelog_table`) which displays each section as a row in a table, like this: | Type | Change | | --- | --- | | Feature | Commit 1 (sha)<br>Commit 2 (sha) | | Fix | Commit 3 (sha) | Fixes #237.
Option to show changelog as a table ## Description Add an option to display the changelog in table format, rather than using headings. ![image](https://user-images.githubusercontent.com/28959268/81698565-1944d700-945e-11ea-95e1-119a1a6a1d3f.png) ## Use cases - Could look nice with [emojis](https://github.co...
relekang/python-semantic-release
diff --git a/tests/test_changelog.py b/tests/test_changelog.py index a36c803..e256519 100644 --- a/tests/test_changelog.py +++ b/tests/test_changelog.py @@ -1,7 +1,7 @@ import mock from semantic_release.changelog import markdown_changelog -from semantic_release.changelog.changelog import get_changelog_sections +fro...
[ "tests/test_changelog.py::test_markdown_changelog", "tests/test_changelog.py::test_changelog_table", "tests/test_changelog.py::test_should_not_output_heading", "tests/test_changelog.py::test_should_output_heading", "tests/test_changelog.py::test_get_changelog_sections", "tests/test_changelog.py::test_gith...
[]
{ "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": "easy", "external_urls": [ "https://github.com/relekang/python-semantic-release/pull...
6f698709e140b413dd8f604ea33535fab78189de
2025-03-04 15:17:20
docker.io/swerebenchv2/mpmath-mpmath:925-6f69870
mpmath__mpmath-925
Function: read_format_spec(format_spec) Location: mpmath/libmp/libmpf.py Inputs: - **format_spec** (str): The format specification string passed to an mpf object's ``__format__`` method (e.g., ``".9_f"``). The string may now include a fractional‑part separator character (comma ``','`` or underscore ``'_'``) after the ...
python
BSD-3-Clause
diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py index 1d42b70..1d3ec19 100644 --- a/mpmath/libmp/libmpf.py +++ b/mpmath/libmp/libmpf.py @@ -1400,7 +1400,7 @@ def from_str(x, prec=0, rnd=round_fast, base=0): (?P<zeropad>0(?=0*[1-9]))? (?P<width>[0-9]+)? (?P<thousands_separators>[,_])? - (?...
Support thousands separators for formatting of fractional part Closes #918
Support thousands separators for formatting fractional part of mpf See https://github.com/python/cpython/issues/87790 and recent https://docs.python.org/3.14/library/string.html#format-specification-mini-language.
mpmath/mpmath
diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py index fd10947..acf71b0 100644 --- a/mpmath/tests/test_format.py +++ b/mpmath/tests/test_format.py @@ -68,6 +68,9 @@ def fmt_str(draw, types='fFeE', for_complex=False): + ['0' + str(_) for _ in range(40)])) if prec: res...
[ "mpmath/tests/test_format.py::test_mpf_fmt_cpython", "mpmath/tests/test_format.py::test_mpf_floats_bulk" ]
[ "mpmath/tests/test_format.py::test_mpc_complexes", "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/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.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/python/cpython/issues/87790", "h...
bf5a66f171e34729ed4bc75470527808d3a2c7d8
2024-08-01 16:55:15
docker.io/swerebenchv2/aio-libs-aiohttp:8578-bf5a66f
aio-libs__aiohttp-8578
Method: ClientWebSocketResponse.receive(self, timeout: float | None = None) → aiohttp.WSMessage Location: aiohttp/client_ws.py → class ClientWebSocketResponse Inputs: optional *timeout* in seconds (float) – if provided limits how long to wait for a message; default None (wait indefinitely). The method is called on a `C...
python
custom-check-github
diff --git a/CHANGES/8540.bugfix.rst b/CHANGES/8540.bugfix.rst new file mode 100644 index 000000000..ab7c47676 --- /dev/null +++ b/CHANGES/8540.bugfix.rst @@ -0,0 +1,7 @@ +Fixed WebSocket server heartbeat timeout logic to terminate `receive` and return :py:class:`~aiohttp.ServerTimeoutError` -- by :user:`arcivanov`. + ...
[PR #8566/f3a1afc5 backport][3.10] Fix url dispatcher index when variable is preceded by a fixed string after a slash **This is a backport of PR #8566 as merged into master (f3a1afc51665d9d2180606f250f492a61623ac6b).** <!-- Thank you for your contribution! --> ## What do these changes do? Fix url dispatcher inde...
Matching tail pattern in add_route/add_* handling not working as expected in 3.10.0 ### Describe the bug The usage of https://docs.aiohttp.org/en/stable/faq.html#how-do-i-create-a-route-that-matches-urls-with-a-given-prefix seems to yield different results in 3.10.0 than in 3.9.5 for a certain condition. I've included...
aio-libs/aiohttp
diff --git a/tests/test_client_ws_functional.py b/tests/test_client_ws_functional.py index 907a362fc..dc474f96c 100644 --- a/tests/test_client_ws_functional.py +++ b/tests/test_client_ws_functional.py @@ -5,7 +5,7 @@ from typing import Any import pytest import aiohttp -from aiohttp import hdrs, web +from aiohttp im...
[ "tests/test_client_ws_functional.py::test_heartbeat_no_pong_concurrent_receive[pyloop]", "tests/test_web_urldispatcher.py::test_route_with_regex[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": "B1", "confidence": 0.86, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.aiohttp.org/en/stable/faq.html#how-do-i-cre...
2d779a70bcc31ab4f199729cd517dbad5d7856f8
2020-01-07 06:42:56
docker.io/swerebenchv2/d0c-s4vage-pfp:112-2d779a7
d0c-s4vage__pfp-112
No new interfaces are introduced.
python
MIT
diff --git a/docs/source/differences.rst b/docs/source/differences.rst new file mode 100644 index 0000000..6ca5f91 --- /dev/null +++ b/docs/source/differences.rst @@ -0,0 +1,79 @@ + +.. _differences: + +Differences Between 010 and pfp +=============================== + +This section documents the known differences betw...
Adds consecutive duplicate (implicit) array support fixes #110
Pfp implicit array handling doesn't match 010's ## Describe the bug Found this when trying to use the DEX.bt template on a dex file as described in #14 . The error occurs as part of this struct: ```c typedef struct { ubyte val <comment="uleb128 element">; if(val > 0x7f) { ubyte val <comment="u...
d0c-s4vage/pfp
diff --git a/tests/test_arrays.py b/tests/test_arrays.py index 28b30b5..450995d 100644 --- a/tests/test_arrays.py +++ b/tests/test_arrays.py @@ -85,6 +85,20 @@ class TestArrays(utils.PfpTestCase): self.assertEqual(dom.chars[2], ord("C")) self.assertEqual(dom.chars[3], ord("D")) + def test_implici...
[ "tests/test_arrays.py::TestArrays::test_implicit_array_same_behavior_as_010", "tests/test_arrays.py::TestArrays::test_implicit_array_same_behavior_as_010_with_string_data" ]
[ "tests/test_arrays.py::TestArrays::test_array_initialization", "tests/test_arrays.py::TestArrays::test_array_initialization_with_string_data", "tests/test_arrays.py::TestArrays::test_array_length1", "tests/test_arrays.py::TestArrays::test_array_length1_with_string_data", "tests/test_arrays.py::TestArrays::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": "medium", "external_urls": [ "https://www.sweetscape.com/010editor/manual/ArraysDupl...
e3065ebb34b8be50c4521d3e84ab01bb98bbb99b
2023-02-14 21:47:55
docker.io/swerebenchv2/datadog-guarddog:163-e3065eb
datadog__guarddog-163
No new interfaces are introduced.
python
Apache-2.0
diff --git a/guarddog/analyzer/analyzer.py b/guarddog/analyzer/analyzer.py index cb2d41d..b0e0ada 100644 --- a/guarddog/analyzer/analyzer.py +++ b/guarddog/analyzer/analyzer.py @@ -3,7 +3,7 @@ import logging import os import subprocess from pathlib import Path -from typing import Optional, Iterable +from typing impo...
Don't run Semgrep when no sourcecode rule should be run (fixes #161) Fixes #161
GuardDog should not crash when running only metadata rules ``` $ guarddog pypi scan requests --rules some-metadata-rule Some rules failed to run while scanning requests: * rules-all: failed to run rule: An error occurred when running Semgrep. command: semgrep --exclude='helm' --exclude='.idea' --exclude='venv'...
DataDog/guarddog
diff --git a/tests/core/test_sourcecode_analyzer.py b/tests/core/test_sourcecode_analyzer.py new file mode 100644 index 0000000..8ba1ac0 --- /dev/null +++ b/tests/core/test_sourcecode_analyzer.py @@ -0,0 +1,12 @@ +from guarddog import ecosystems +from guarddog.analyzer.analyzer import Analyzer + + +def test_source_code...
[ "tests/core/test_sourcecode_analyzer.py::test_source_code_analyzer_ran_with_no_rules" ]
[]
{ "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://semgrep.dev/docs/running-rules/" ], "int...
29d10ae7d584398bab7d267684a60f7f2fe097ee
2022-03-13 12:20:23
docker.io/swerebenchv2/reata-sqllineage:234-29d10ae
reata__sqllineage-234
No new interfaces are introduced.
python
MIT
diff --git a/sqllineage/core/holders.py b/sqllineage/core/holders.py index d82a013..7bd0b8c 100644 --- a/sqllineage/core/holders.py +++ b/sqllineage/core/holders.py @@ -30,9 +30,8 @@ class ColumnLineageMixin: columns = set() for (source, target) in itertools.product(source_columns, target_columns): ...
fix: handle multiple lineage paths for same column Closes #228
Failure to Handle Multiple Lineage Path for Same Column Why holders.get_column_lineage return simple_paths which equal to one only? Are there any reasons? In my case, i have a target column (i.e. with alias X) which is the result of a CASE construction, and all of those columns (A,B,C) are from same column and same ta...
reata/sqllineage
diff --git a/tests/test_columns.py b/tests/test_columns.py index 99ec782..1885d6f 100644 --- a/tests/test_columns.py +++ b/tests/test_columns.py @@ -737,3 +737,29 @@ FROM tab2""" ), ], ) + + +def test_column_lineage_multiple_paths_for_same_column(): + sql = """INSERT OVERWRITE TABLE tab2 +...
[ "tests/test_columns.py::test_column_lineage_multiple_paths_for_same_column" ]
[ "tests/test_columns.py::test_select_column", "tests/test_columns.py::test_select_column_wildcard", "tests/test_columns.py::test_select_column_using_function", "tests/test_columns.py::test_select_column_using_function_with_complex_parameter", "tests/test_columns.py::test_select_column_using_expression", "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0215cc77349f2540286527eea1c89a960c74c5ad
2022-06-28 20:21:12
docker.io/swerebenchv2/py-pdf-pypdf2:1038-0215cc7
py-pdf__pypdf2-1038
Function: _get_max_pdf_version_header(header1: bytes, header2: bytes) Location: PyPDF2/_utils.py Inputs: - header1 (bytes): first PDF header to compare, must be one of the supported version strings (e.g., b"%PDF-1.3"). - header2 (bytes): second PDF header to compare, same requirements as header1. Outputs: - bytes: th...
python
custom-check-github
diff --git a/PyPDF2/_reader.py b/PyPDF2/_reader.py index ed1f732c..72213597 100644 --- a/PyPDF2/_reader.py +++ b/PyPDF2/_reader.py @@ -293,6 +293,8 @@ class PdfReader: @property def pdf_header(self) -> str: + # TODO: Make this return a bytes object for consistency + # but that needs a de...
ENH: Add writer.pdf_header property (getter and setter) Closes #162
Allow specifying the PDF file version PyPDF2 currently writes to v1.3 (Acrobat 4.x). Is it possible to allow saving to other versions? We recently used the library to combine several thousands of pages into file sets (of engineering drawings). Each of the individual filenames (pages) were used as bookmarks in the set...
py-pdf/PyPDF2
diff --git a/tests/test_utils.py b/tests/test_utils.py index 549fb827..27ff3571 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -5,6 +5,7 @@ import pytest import PyPDF2._utils from PyPDF2._utils import ( + _get_max_pdf_version_header, mark_location, matrix_multiply, read_block_backwa...
[ "tests/test_utils.py::test_skip_over_whitespace[stream0-False]", "tests/test_utils.py::test_skip_over_whitespace[stream1-False]", "tests/test_utils.py::test_skip_over_whitespace[stream2-True]", "tests/test_utils.py::test_skip_over_whitespace[stream3-True]", "tests/test_utils.py::test_skip_over_whitespace[st...
[]
{ "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://cloud.githubusercontent.com/assets/3391494/539...
6c10d0032138c843ea06676b0c647dddcd6fb9e4
2023-08-31 16:01:24
docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:177-6c10d00
mondeja__mkdocs-include-markdown-plugin-177
Method: filter_inclusions(start: str | None, end: str | None, text_to_include: str) → tuple[str, bool, bool> Location: src/mkdocs_include_markdown_plugin/process.py Inputs: - **start** – optional delimiter string marking the beginning of the inclusion region; may be ``None`` if only an end delimiter is used. - **end** ...
python
Apache-2.0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd0abca..7de2bc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: python-version: "3.11" py: py311 - platform: ubuntu-latest - python-version: 3.12.0-beta.4 ...
Fix warnings not shown sometimes with missing `end` and `start` delimiters Fixes #92 (regression at v6.0.0)
Log warning when failing to find `start` or `end` Currently, if a `start` or `end` delimiter is not detected, the include tag silently handles this. This really ought to be logged via warning.
mondeja/mkdocs-include-markdown-plugin
diff --git a/tests/test_unit/test_config.py b/tests/test_unit/test_config.py index 98bed45..f626b95 100644 --- a/tests/test_unit/test_config.py +++ b/tests/test_unit/test_config.py @@ -23,30 +23,30 @@ def _run_test( caplog, tmp_path, ): - included_filepath = tmp_path / 'included.md' - includer_filepath...
[ "tests/test_unit/test_logging.py::test_start_end_arguments_not_found[start-directive=include]", "tests/test_unit/test_logging.py::test_start_end_arguments_not_found[start-directive=include-markdown]", "tests/test_unit/test_logging.py::test_start_end_arguments_not_found[end-directive=include]", "tests/test_uni...
[ "tests/test_unit/test_config.py::test_config_options[custom-tag", "tests/test_unit/test_config.py::test_config_options[custom-tag-all-escaped-char]", "tests/test_unit/test_config.py::test_config_options[default-preserve_includer_indent]", "tests/test_unit/test_config.py::test_config_options[custom-preserve_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": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
d29e6f438d16fc6ac6ede5381ba12d9849187b14
2021-07-28 07:59:07
docker.io/swerebenchv2/enthought-envisage:443-d29e6f4
enthought__envisage-443
Attribute: EggPluginManager.working_set Location: envisage/egg_plugin_manager.py (class EggPluginManager) Inputs: None (initialized automatically when an EggPluginManager instance is created) Outputs: Instance of ``pkg_resources.WorkingSet`` representing the working set used by the manager. By default it is initialized...
python
custom-check-github
diff --git a/envisage/egg_plugin_manager.py b/envisage/egg_plugin_manager.py index a7b21c19..3ad06869 100644 --- a/envisage/egg_plugin_manager.py +++ b/envisage/egg_plugin_manager.py @@ -54,7 +54,7 @@ class EggPluginManager(PluginManager): # The working set that contains the eggs that contain the plugins that ...
Fix a test that only passed due to test interactions Fix a test that was only passing as a result of side-effects from other tests in the same `TestCase`. The test was passing when run as part of the complete test case because a distribution of `acme.foo` with version `0.1a1` was already in the global working set. T...
test_ignore_broken_distributions_raises_exceptions_by_default only passes by accident The test `envisage.tests.test_egg_basket_plugin_manager.EggBasketPluginManagerTestCase.test_ignore_broken_distributions_raises_exceptions_by_default` only passes by accident as a result of side-effects from other tests in the test cas...
enthought/envisage
diff --git a/envisage/tests/test_egg_basket_plugin_manager.py b/envisage/tests/test_egg_basket_plugin_manager.py index 322e9c68..7e8b9acb 100644 --- a/envisage/tests/test_egg_basket_plugin_manager.py +++ b/envisage/tests/test_egg_basket_plugin_manager.py @@ -29,18 +29,19 @@ class EggBasketPluginManagerTestCase(unittest...
[ "envisage/tests/test_egg_plugin_manager.py::EggPluginManagerTestCase::test_uses_global_working_set_by_default" ]
[ "envisage/tests/test_egg_basket_plugin_manager.py::EggBasketPluginManagerTestCase::test_find_plugins_in_eggs_on_the_plugin_path", "envisage/tests/test_egg_basket_plugin_manager.py::EggBasketPluginManagerTestCase::test_ignore_broken_distributions_loads_good_distributions", "envisage/tests/test_egg_basket_plugin_...
{ "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.93, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
a11ec6f2ba4c1d08df6e355730d2a25d317492db
2022-06-10 13:55:52
docker.io/swerebenchv2/hypothesisworks-hypothesis:3371-a11ec6f
hypothesisworks__hypothesis-3371
Function: pretty.pretty(obj, *, max_seq_length=None, depth=0, width=80) Location: hypothesis.vendor.pretty.pretty Inputs: - **obj**: any Python object to be rendered as a string. For dict objects, the keys are now iterated in their natural insertion order (no sorting) regardless of size, unless a cycle is detected. - *...
python
custom-check-github
diff --git a/AUTHORS.rst b/AUTHORS.rst index e352772d9..e33600b7a 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -32,6 +32,7 @@ their individual contributions. * `Chase Garner <https://www.github.com/chasegarner>`_ (chase@garner.red) * `Cheuk Ting Ho <https://github.com/Cheukting>`_ * `Chris Down <https://chrisdown....
Remove sorting of dictionaries in pretty.printer. #3370 Order of dictionaries is now enforced in Python 3.7 and higher. This means that the original order of dictionaries matters for falsifying examples. This PR closes #3370. This PR was kindly supported by [Ordina Pythoneers](https://www.ordina.nl/vakgebieden/p...
copying falsifying example into `@example()` fails to reproduce test failure due to pprinter sorting dict keys Some code depends on the order of dict iteration so sorting the keys before printing makes reproducing a failing test more difficult. Related to #2913 ? **Sample code**: ``` import hypothesis as h im...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_pretty.py b/hypothesis-python/tests/cover/test_pretty.py index 22db2292b..86359362f 100644 --- a/hypothesis-python/tests/cover/test_pretty.py +++ b/hypothesis-python/tests/cover/test_pretty.py @@ -134,6 +134,7 @@ def test_list(): def test_dict(): assert pretty.prett...
[ "hypothesis-python/tests/cover/test_pretty.py::test_dict" ]
[ "hypothesis-python/tests/cover/test_pretty.py::test_list", "hypothesis-python/tests/cover/test_pretty.py::test_tuple", "hypothesis-python/tests/cover/test_pretty.py::test_dict_with_custom_repr", "hypothesis-python/tests/cover/test_pretty.py::test_set_with_custom_repr", "hypothesis-python/tests/cover/test_pr...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
d3efa2afb92f453c8fb01ec5e6b70cd074188502
2023-11-15 20:20:55
docker.io/swerebenchv2/getmoto-moto:7029-d3efa2a
getmoto__moto-7029
Method: Task.response_object(self, include_tags: bool = True) Location: moto/ecs/models.py Inputs: include_tags – bool flag indicating whether the returned task dictionary should contain the “tags” field (default True). Outputs: Dict[str, Any] representing the task; when include_tags is False the “tags” key is removed ...
python
Apache-2.0
diff --git a/moto/ecs/models.py b/moto/ecs/models.py index cc10d2746..41f122be7 100644 --- a/moto/ecs/models.py +++ b/moto/ecs/models.py @@ -437,9 +437,10 @@ class Task(BaseObject, ManagedState): return f"arn:aws:ecs:{self.region_name}:{self._account_id}:task/{self.cluster_name}/{self.id}" return ...
ECS: Tagging is now supported for Tasks Fixes #7027 Adds support for tagging Tasks using the `tag_resource`/`untag_resource`/`list_tags_for_resource` trinity. Fixes a bug where `describe_tasks` would actually delete the tags if called without the `include`-parameter.
ecs.run_task, ecs_describe_tasks, ecs.list_tags_for_resource not handle tags Hello, I've found a issue with `ecs.run_task()` and `ecs_describe_task()` with tags. I'm running a task: ``` task_definition = ecs_c.register_task_definition( family='test-tdf', networkMode='awsvpc', ...
getmoto/moto
diff --git a/tests/test_ecs/test_ecs_boto3.py b/tests/test_ecs/test_ecs_boto3.py index e88d3dff2..7b76b0a6b 100644 --- a/tests/test_ecs/test_ecs_boto3.py +++ b/tests/test_ecs/test_ecs_boto3.py @@ -2481,42 +2481,6 @@ def test_describe_tasks_empty_tags(): assert len(response["tasks"]) == 1 -@mock_ec2 -@mock_ecs ...
[ "tests/test_ecs/test_ecs_task_tags.py::test_describe_tasks_include_tags", "tests/test_ecs/test_ecs_task_tags.py::test_add_tags_to_task" ]
[ "tests/test_ecs/test_ecs_boto3.py::test_create_cluster", "tests/test_ecs/test_ecs_boto3.py::test_create_cluster_with_setting", "tests/test_ecs/test_ecs_boto3.py::test_create_cluster_with_capacity_providers", "tests/test_ecs/test_ecs_boto3.py::test_put_capacity_providers", "tests/test_ecs/test_ecs_boto3.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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/getmoto/moto/issues/5814" ], ...
18b83d144d9e0b26c7b1d62c83adf5d5991a9b69
2025-03-07 23:59:59
docker.io/swerebenchv2/mpmath-mpmath:926-18b83d1
mpmath__mpmath-926
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/functions/bessel.py b/mpmath/functions/bessel.py index 836bed6..7c69afa 100644 --- a/mpmath/functions/bessel.py +++ b/mpmath/functions/bessel.py @@ -180,11 +180,17 @@ def h(n): @defun_wrapped def hankel1(ctx,n,x,**kwargs): - return ctx.besselj(n,x,**kwargs) + ctx.j*ctx.bessely(n,x,**kwargs) +...
Use sum_accurately() in hankel1/2() Closes #637
Hankel functions incorrect for large imaginary parts and standard precision For example: ``` >>> hankel1(1,1+30j) mpc(real='0.0', imag='0.0') >>> hankel2(1,1-30j) mpc(real='0.0', imag='0.0') ``` whereas Mathematica gives ``` In[1]:= HankelH1[1, 1. + 30 I] Out[1]= -7.25495*10^-15 - 1.17346*10^-14 I In[2]:= Ha...
mpmath/mpmath
diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py index 188327f..610f7ca 100644 --- a/mpmath/tests/test_functions2.py +++ b/mpmath/tests/test_functions2.py @@ -2433,3 +2433,7 @@ def test_issue_634(): def test_issue_908(): assert mp.besselj(-10+0j, 0+0j) == 0 + +def test_issue_637():...
[ "mpmath/tests/test_functions2.py::test_issue_637" ]
[ "mpmath/tests/test_functions2.py::test_bessel", "mpmath/tests/test_functions2.py::test_issue_877", "mpmath/tests/test_functions2.py::test_bessel_zeros", "mpmath/tests/test_functions2.py::test_hankel", "mpmath/tests/test_functions2.py::test_struve", "mpmath/tests/test_functions2.py::test_whittaker", "mpm...
{ "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": [...
0a6f8075eb8d9d52d9316e9d6e5ec2d12ff2e1a7
2021-03-20 09:08:23
docker.io/swerebenchv2/python-attrs-attrs:782-0a6f807
python-attrs__attrs-782
No new interfaces are introduced.
python
MIT
diff --git a/changelog.d/782.change.rst b/changelog.d/782.change.rst new file mode 100644 index 0000000..9314ccf --- /dev/null +++ b/changelog.d/782.change.rst @@ -0,0 +1,1 @@ +``ClassVar``\ s are now also detected if they come from `typing-extensions <https://pypi.org/project/typing-extensions/>`_. diff --git a/src/at...
Detect ClassVars coming from typing_extensions Fixes #781 @graingert @euresti
python3.10 interacts badly with typing_extensions.ClassVar ```python from typing import Callable, Optional, ClassVar import typing_extensions import attr @attr.s(auto_attribs=True) class Ham: ham: typing_extensions.ClassVar[int] = 0 spam: int eggs: Optional[int] = attr.ib(init=False, default=N...
python-attrs/attrs
diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 203b8dd..2df6311 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -418,6 +418,18 @@ class TestAnnotations: foo=typing.Optional[typing.Any], ) + @pytest.mark.parametrize("slots", [True, False]) + ...
[ "tests/test_annotations.py::TestAnnotations::test_typing_extensions_classvar[True]", "tests/test_annotations.py::TestAnnotations::test_typing_extensions_classvar[False]" ]
[ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ce074824a45bd36780b0061b896b9b1117478b14
2024-02-20 19:58:11
docker.io/swerebenchv2/getmoto-moto:7371-ce07482
getmoto__moto-7371
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/cloudfront/models.py b/moto/cloudfront/models.py index 45f5b9da0..d5217f317 100644 --- a/moto/cloudfront/models.py +++ b/moto/cloudfront/models.py @@ -113,7 +113,6 @@ class Origin: self.id = origin["Id"] self.domain_name = origin["DomainName"] self.origin_path = origin.get("...
CloudFront: create_distribution() now supports CustomHeaders Fixes #7369
Cloudfront - CustomHeaders in origin missing I'm trying to test an update of a custom header on an origin, but when I create the distribution, the customHeaders field is always empty (`{'Quantity': 0, 'Items': []}`). If I update the distribution still having same issue. ```python import unittest from moto import m...
getmoto/moto
diff --git a/tests/test_cloudfront/test_cloudfront_distributions.py b/tests/test_cloudfront/test_cloudfront_distributions.py index d4680976b..67ec47fab 100644 --- a/tests/test_cloudfront/test_cloudfront_distributions.py +++ b/tests/test_cloudfront/test_cloudfront_distributions.py @@ -238,6 +238,26 @@ def test_create_di...
[ "tests/test_cloudfront/test_cloudfront_distributions.py::test_create_distribution_with_custom_headers[1]", "tests/test_cloudfront/test_cloudfront_distributions.py::test_create_distribution_with_custom_headers[2]" ]
[ "tests/test_cloudfront/test_cloudfront_distributions.py::test_create_distribution_s3_minimum", "tests/test_cloudfront/test_cloudfront_distributions.py::test_create_distribution_with_logging", "tests/test_cloudfront/test_cloudfront_distributions.py::test_create_distribution_with_web_acl", "tests/test_cloudfron...
{ "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":...
69da5254aa8caf581c4c500e5ec21055e8337a1a
2023-10-07 21:25:35
docker.io/swerebenchv2/keras-team-keras:18571-69da525
keras-team__keras-18571
No new interfaces are introduced.
python
Apache-2.0
diff --git a/keras/backend/tensorflow/numpy.py b/keras/backend/tensorflow/numpy.py index af4c46138..c9742d983 100644 --- a/keras/backend/tensorflow/numpy.py +++ b/keras/backend/tensorflow/numpy.py @@ -810,7 +810,7 @@ def take(x, indices, axis=None): ) return tfnp.take(x, tf.sparse.to_dense(ind...
Fix BackupRestore Test for TensorFlow GPU CI Fixes #18565
TensorFlow GPU - Fix `keras/callbacks/backup_and_restore_callback_test.py` Fix TF GPU Test error in keras/callbacks/backup_and_restore_callback_test.py and update TODO in https://github.com/keras-team/keras/blob/master/keras/kokoro/github/ubuntu/gpu/build.sh#L41 https://source.cloud.google.com/results/invocations/63...
keras-team/keras
diff --git a/keras/callbacks/backup_and_restore_callback_test.py b/keras/callbacks/backup_and_restore_callback_test.py index 38eefe783..c6bd33c6f 100644 --- a/keras/callbacks/backup_and_restore_callback_test.py +++ b/keras/callbacks/backup_and_restore_callback_test.py @@ -32,7 +32,7 @@ class CanaryLayer(layers.Layer): ...
[ "keras/metrics/reduction_metrics_test.py::MetricWrapperTest::test_config" ]
[ "keras/callbacks/backup_and_restore_callback_test.py::BackupAndRestoreCallbackTest::test_best_case_epoch", "keras/callbacks/backup_and_restore_callback_test.py::BackupAndRestoreCallbackTest::test_best_case_step", "keras/callbacks/backup_and_restore_callback_test.py::BackupAndRestoreCallbackTest::test_model_dele...
{ "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.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/keras-team/keras/blob/master/keras/ko...
0c0c57f55bd6632c7015406087b9cee12315ebed
2017-10-17 13:59:19
docker.io/swerebenchv2/core-gatech-group-serpent-tools:35-0c0c57f
core-gatech-group__serpent-tools-35
Method: HomogUniv.__init__(self, container, name, bu, step, day) Location: serpentTools/objects/containers.py – class HomogUniv Inputs: - container: parser object (e.g., DepletionReader) used only for SupportingObject bookkeeping. - name: str – identifier for the homogenized universe. - bu: float – burn‑up value (optio...
python
MIT
diff --git a/serpentTools/objects/containers.py b/serpentTools/objects/containers.py new file mode 100644 index 0000000..ff8f941 --- /dev/null +++ b/serpentTools/objects/containers.py @@ -0,0 +1,144 @@ +""" +Supporting object that will be used by the branching reader and +results reader to store data for a single homog...
Homogenized Universe Container for storing and getting data. Closes #11
Support: Homogenized Universe Object Implement a supporting object that will be used by the branching reader and results reader that stores data for a single homogenized universe at a single instance in time. ## Requirements 1. Should store the universe number, and, optionally, day, burnup, and burnup step for this...
CORE-GATECH-GROUP/serpent-tools
diff --git a/serpentTools/tests/test_branching.py b/serpentTools/tests/test_branching.py index 0d4881d..6693d98 100644 --- a/serpentTools/tests/test_branching.py +++ b/serpentTools/tests/test_branching.py @@ -11,7 +11,7 @@ REF_FILE = os.path.join(TEST_ROOT, 'ref_branch.txt') class BranchTester(unittest.TestCase): ...
[ "serpentTools/tests/test_container.py::HomogenizedUniverseTester::test_getB1Exp", "serpentTools/tests/test_container.py::HomogenizedUniverseTester::test_getB1Unc", "serpentTools/tests/test_container.py::HomogenizedUniverseTester::test_getInfExp", "serpentTools/tests/test_container.py::HomogenizedUniverseTeste...
[]
{ "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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://jinja.pocoo.org/", "http://www.makotempla...
8d93fc48c68236b37621353a5800eeb7cd078f54
2021-05-01 11:57:30
docker.io/swerebenchv2/pypa-build:290-8d93fc4
pypa__build-290
Method: ProjectBuilder.__init__(self, srcdir: str, python_executable: Union[bytes, Text] = sys.executable, scripts_dir: Optional[Union[bytes, Text]] = None, runner: Callable[[Sequence[str], Optional[Union[bytes, Text]], Optional[Dict[str, str]]], None] = pep517.wrappers.default_subprocess_runner) Location: src/build/__...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 585e8d4..2f9858e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,15 +10,18 @@ Unreleased - Set and test minimum versions of build's runtime dependencies (`PR #267`_, Fixes `#263`_) - Use symlinks on creating venv's when available (`PR #274`_, Fixes `#271`_) - Er...
build: add a runner argument to ProjectBuilder To do: * [x] Tests * [x] Documentation Fixes #289
API: Add a method to customise handling of build output When calling the API (`builder.build()`) the backend output is sent directly to the terminal. There's no clear way to capture that output, either to redirect it to a log, or to save it for manual processing. This makes it very difficult to use the API without the ...
pypa/build
diff --git a/tests/test_projectbuilder.py b/tests/test_projectbuilder.py index 1485b74..9c1f8d8 100644 --- a/tests/test_projectbuilder.py +++ b/tests/test_projectbuilder.py @@ -460,3 +460,12 @@ def test_prepare_not_dir_outdir(mocker, tmp_dir, test_flit_path): f.write('Not a directory') with pytest.raises(...
[ "tests/test_projectbuilder.py::test_runner_user_specified" ]
[ "tests/test_projectbuilder.py::test_check_dependency[extras_dep-None]", "tests/test_projectbuilder.py::test_check_dependency[missing_dep-expected1]", "tests/test_projectbuilder.py::test_check_dependency[requireless_dep-None]", "tests/test_projectbuilder.py::test_check_dependency[extras_dep[undefined_extra]-No...
{ "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": [...
fd3cbca7d0b29958e224d2452fdbe7c0e7ab6de6
2021-07-15 21:46:14
docker.io/swerebenchv2/googleapis-python-api-core:228-fd3cbca
googleapis__python-api-core-228
Function: field_mask(original, modified) Location: google.api_core.protobuf_helpers.field_mask Inputs: - **original**: Optional protobuf Message or None; the original state of the resource. - **modified**: protobuf Message; the altered state whose changes should be reflected in the mask. Outputs: Returns a `google.prot...
python
Apache-2.0
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index cb06536..9ee60f7 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:5ff7446edeaede81c3ed58b23a4e76a5403fba1350ce2847804565730...
fix: strip trailing `_` from field mask paths Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-api-core/issues/new/choose) before writing your code! T...
Modified reserved word field names included in field masks. I'm not sure whether this is an issue with this library, the [`generator`](https://github.com/googleapis/gapic-generator-python) or the [`field mask helper`](https://github.com/googleapis/python-api-core/blob/master/google/api_core/protobuf_helpers.py#L290), b...
googleapis/python-api-core
diff --git a/tests/unit/test_protobuf_helpers.py b/tests/unit/test_protobuf_helpers.py index db97238..3df45df 100644 --- a/tests/unit/test_protobuf_helpers.py +++ b/tests/unit/test_protobuf_helpers.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the Licen...
[ "tests/unit/test_retry.py::test_if_transient_error" ]
[ "tests/unit/test_protobuf_helpers.py::test_from_any_pb_success", "tests/unit/test_protobuf_helpers.py::test_from_any_pb_wrapped_success", "tests/unit/test_protobuf_helpers.py::test_from_any_pb_failure", "tests/unit/test_protobuf_helpers.py::test_check_protobuf_helpers_ok", "tests/unit/test_protobuf_helpers....
{ "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.92, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/googleapis/gapic-generator-python",...
41194b797578db3235d803cc9c06d7570159c7ce
2023-07-19 23:48:12
docker.io/swerebenchv2/iterative-dvc:9747-41194b7
iterative__dvc-9747
Function: ls(url: str, path: str | None = None, rev: str | None = None, recursive: bool | None = None, dvc_only: bool = False, config: str | dict | None = None) Location: dvc.repo.ls.ls Inputs: - **url** – repository URL or local path to list. - **path** – optional sub‑path inside the repository (default root)....
python
Apache-2.0
diff --git a/dvc/commands/get.py b/dvc/commands/get.py index 9ede8bfd9..b0e61351b 100644 --- a/dvc/commands/get.py +++ b/dvc/commands/get.py @@ -37,6 +37,7 @@ class CmdGet(CmdBaseNoRepo): rev=self.args.rev, jobs=self.args.jobs, force=self.args.force, + c...
ls/import/get: introduce --config Adds support for `--config` to all three commands. For `ls` and `get`, it is a purely runtime option that will merge the config you provide with target repo's configs (similar to how .dvc/config.local works). E.g. ``` $ cat myconfig [remote "myremote"] access_key_id = 12345 ...
get/import/list/etc command should accept a remote as argument The [get](https://dvc.org/doc/commands-reference/get) uses the default remote defined in .dvc/config If there isn't one defined, it will fail with `file error: No remote repository specified. Setup default repository with dvc config core.remote <n...
iterative/dvc
diff --git a/tests/unit/command/ls/test_ls.py b/tests/unit/command/ls/test_ls.py index 480d517df..1d6702624 100644 --- a/tests/unit/command/ls/test_ls.py +++ b/tests/unit/command/ls/test_ls.py @@ -18,32 +18,50 @@ def _test_cli(mocker, *args): def test_list(mocker): url = "local_dir" m = _test_cli(mocker, url...
[ "tests/unit/command/ls/test_ls.py::test_list", "tests/unit/command/ls/test_ls.py::test_list_recursive", "tests/unit/command/ls/test_ls.py::test_list_git_ssh_rev", "tests/unit/command/ls/test_ls.py::test_list_targets", "tests/unit/command/ls/test_ls.py::test_list_outputs_only", "tests/unit/command/ls/test_...
[ "tests/unit/command/ls/test_ls.py::test_show_json", "tests/unit/command/ls/test_ls.py::test_show_colors", "tests/unit/command/ls/test_ls.py::test_list_alias", "tests/unit/command/test_get.py::test_get_url" ]
{ "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.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://dvc.org/doc/commands-reference/get" ], ...
501f67133c82bdaa5a98abf3527f3b1e1594c6ea
2024-03-28 11:58:29
docker.io/swerebenchv2/openownership-data-standard:610-501f671
openownership__data-standard-610
Function: validate_entity_address_type(address) Location: schema/entity-record.json → addresses → items → properties → type Inputs: A JSON object representing an address within an entity record. The object must contain a “type” key whose value is a string. Outputs: Validation succeeds only if the “type” value is one of...
python
custom-check-github
diff --git a/docs/about/governance.rst b/docs/about/governance.rst index 8534164..37bc5cb 100644 --- a/docs/about/governance.rst +++ b/docs/about/governance.rst @@ -1,54 +1,43 @@ -Governance -========== +Governance and development +========================== -BODS is developed by `Open Ownership <https://www.openow...
Addresstypevalidation # Overview - What does this pull request do? adds in addressType validation for person addresses, entity addresses and placeOfBirth - How can a reviewer test or examine your changes? check the tests pass as expected - Who is best placed to review it? @kd-ods Closes #558 ## Translatio...
Conditional validation of address types Valid address types are dependent on the type of statement. Can we validate this in the schema? **Person only** placeOfBirth residence service **Entity only** registered business **Both** alternative
openownership/data-standard
diff --git a/tests/data/invalid-statements/inv_entity_addresses_type.json b/tests/data/invalid-statements/inv_entity_addresses_type.json new file mode 100644 index 0000000..8ffe204 --- /dev/null +++ b/tests/data/invalid-statements/inv_entity_addresses_type.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9...
[ "tests/test_data.py::test_invalid_files[inv_entity_addresses_type.json]", "tests/test_data.py::test_invalid_files[inv_person_addresses_birthplace.json]", "tests/test_data.py::test_invalid_files[inv_person_addresses_type.json]" ]
[ "tests/test_data.py::test_valid_files[entity_address_country.json]", "tests/test_data.py::test_valid_files[entity_address_country_no_code.json]", "tests/test_data.py::test_valid_files[fermentcat_entity.json]", "tests/test_data.py::test_valid_files[fermentcat_entity_address_address.json]", "tests/test_data.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...