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
8e6f8b798dd6c2ea0e59eb39f01ae1a4e7da4427
2020-05-04 01:24:16
docker.io/swerebenchv2/pipxproject-pipx:398-8e6f8b7
pipxproject__pipx-398
Function: use_emjois() Location: pipx/constants.py Inputs: None (relies on environment variable `USE_EMOJI`, the result of `is_windows()`, and `sys.getdefaultencoding()`). Outputs: bool – `True` if emojis should be used, `False` otherwise. The return value is derived by converting the `USE_EMOJI` environment variable (...
python
MIT
diff --git a/docs/changelog.md b/docs/changelog.md index cc726ef..4b4b9fe 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,6 +6,7 @@ dev - [refactor] Moved all commands to separate files within the commands module (#255). - [bugfix] Continue reinstalling packages after failure - [bugfix] Hide cursor whil...
add env var USE_EMOJI <!--- Thank you for your soon-to-be pull request. Before you submit this, please double check to make sure that you've added an entry to docs/changelog.md. --> fixes #376 cc @traverseda We had some trouble with https://github.com/pipxproject/pipx/pull/377 so I just made a new PR.
Remove emojis by default They don't really have any benefit, support is platform, specific, and they look unprofessional. Also half the time I get broken characters because I don't have the right emoji fonts installed. I don't really need any cutesy icons in my tooling. I recognize that this is a very subjective thi...
pipxproject/pipx
diff --git a/tests/test_constants.py b/tests/test_constants.py new file mode 100644 index 0000000..d6bdb1c --- /dev/null +++ b/tests/test_constants.py @@ -0,0 +1,42 @@ +from pipx.constants import use_emjois +from pipx import constants +from unittest import mock +import sys +import pytest # type: ignore + + +@pytest.ma...
[ "tests/test_constants.py::test_use_emjois[True-None-utf-8-False]", "tests/test_constants.py::test_use_emjois[True--utf-8-False]", "tests/test_constants.py::test_use_emjois[True-0-utf-8-False]", "tests/test_constants.py::test_use_emjois[True-1-utf-8-True]", "tests/test_constants.py::test_use_emjois[True-true...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2|B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories"...
ed5cb578f3ee4e765f7211919a1ffebb504e0c24
2020-04-23 19:24:31
docker.io/swerebenchv2/azure-walinuxagent:1865-ed5cb57
azure__walinuxagent-1865
Function: _get_osutil(distro_name: str, distro_code_name: str, distro_version: str, distro_full_name: str) Location: azurelinuxagent.common.osutil.factory._get_osutil Inputs: - **distro_name** – Operating system family name (e.g., `"ubuntu"`). - **distro_code_name** – Ubuntu release codename (e.g., `""`, `"bionic"`, `"...
python
Apache-2.0
diff --git a/azurelinuxagent/common/osutil/factory.py b/azurelinuxagent/common/osutil/factory.py index 56515ede..5baa9ebb 100644 --- a/azurelinuxagent/common/osutil/factory.py +++ b/azurelinuxagent/common/osutil/factory.py @@ -65,7 +65,9 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name...
Update osutil for Ubuntu 18+ <!-- DO NOT DELETE THIS TEMPLATE --> ## Description Ubuntu images newer than 18.04 would default to using the default Ubuntu osutil, which doesn't support systemd. This PR makes sure that Ubuntu 18.04, 18.10, 19.04, 19.10, and 20.04 are using `Ubuntu18OSUtil` which supports systemd. ...
[BUG] 'WARNING Dhcp client is not running' on Ubuntu 19.10 ## Description On Ubuntu 19.10 **WALinuxAgent** keeps reporting that the DHCP client is not running: ``` WARNING ExtHandler Dhcp client is not running. WARNING ExtHandler Dhcp client is not running. WARNING ExtHandler Dhcp client is not running. ``` ...
Azure/WALinuxAgent
diff --git a/tests/common/osutil/test_factory.py b/tests/common/osutil/test_factory.py index adc099d5..aa7daebc 100644 --- a/tests/common/osutil/test_factory.py +++ b/tests/common/osutil/test_factory.py @@ -83,12 +83,19 @@ class TestOsUtilFactory(AgentTestCase): self.assertEquals(ret.get_service_name(), "walin...
[ "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_ubuntu" ]
[ "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_alpine", "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_arch", "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_bigip", "tests/common/os...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/Azure/WALinuxAgent/blob/e3ecde432c0fd...
3c710dd26cbe84c67e2a076627826cf704097a03
2024-08-14 15:02:10
docker.io/swerebenchv2/systemd-mkosi:2954-3c710dd
systemd__mkosi-2954
Function: parse_config() Location: mkosi/config.py – top‑level function used to read configuration files from the current working directory. Inputs: None (relies on files such as `mkosi.version` present in the current directory; may raise SystemExit on parsing errors or unsupported file states). Outputs: Tuple[Dict[str...
python
null
diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 3400a181..f9b37dd6 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4388,23 +4388,28 @@ def generate_key_cert_pair(args: Args) -> None: def bump_image_version() -> None: """Write current image version plus one to mkosi.version""" - version = ...
Add executable `mkosi.version` support for generating the version dynamically The script is executed unsandboxed (not a fan of this, but unsure how this should be done before any configuration even exists) and reads `stdout` to figure out the version. First commit allows more configurable handling of "standard confi...
Add an executable version of `mkosi.version` Originally proposed by @septatrix in https://github.com/systemd/mkosi/pull/2905#issuecomment-2251456448 This is effectivly a version of `mkosi.version` that is executed and its output on `stdout` is used as `ImageVersion=`, instead of using the contents of the file for th...
systemd/mkosi
diff --git a/tests/test_config.py b/tests/test_config.py index 20db168a..0bdfbe5c 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1275,3 +1275,23 @@ def test_environment(tmp_path: Path) -> None: assert sub.environment["PassThisEnv"] == "abc" assert "TestValue2" not in sub.environmen...
[ "tests/test_config.py::test_mkosi_version_executable" ]
[ "tests/test_config.py::test_compression_enum_creation", "tests/test_config.py::test_compression_enum_bool", "tests/test_config.py::test_compression_enum_str", "tests/test_config.py::test_parse_ini", "tests/test_config.py::test_parse_config", "tests/test_config.py::test_parse_includes_once", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/systemd/mkosi/pull/2905#issuecommen...
f78637a91650393ae0db05bdc0cf4f0181f04da5
2023-02-22 16:07:03
docker.io/swerebenchv2/stac-utils-pystac:1001-f78637a
stac-utils__pystac-1001
Method: Catalog.fully_resolve(self) Location: pystac/catalog.py Inputs: None (operates on the Catalog instance). Outputs: None (returns ``None``). The method resolves every link in the catalog and its children by walking the catalog tree and materialising all items, ensuring that subsequent ``save`` calls include al...
python
custom-check-github
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5eb1e74a..16ae2512 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,9 +1,9 @@ -**Related Issue(s):** # +**Related Issue(s):** +- # **Description:** - **PR Checklist:** - [ ] Code i...
Add Catalog.fully_resolve **Related Issue(s):** - Closes #478 **Description:** Pretty simple, we just use `Catalog.walk`. Sidecar fixes: - Tweak to the PR template to put the related items in a list by default -- this is how you need to format things to activate [closing keywords](https://docs.github.com/...
Add 'fully_resolve' back to STACObject In https://github.com/stac-utils/pystac/commit/04c0d33bf2c24eec8f813fe86847f92c7bf29780 I removed the 'fully_resolve' methods as they weren't used in normalizing hrefs. However, this is useful in another situation. I want to upgrade a collection of test files to 1.0. I wanted t...
stac-utils/pystac
diff --git a/tests/conftest.py b/tests/conftest.py index fa525042..58ad0916 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,5 +25,5 @@ def item() -> Item: @pytest.fixture -def label_catalog() -> Catalog: +def test_case_1_catalog() -> Catalog: return TestCases.case_1() diff --git a/tests/test_cat...
[ "tests/test_catalog.py::test_fully_resolve" ]
[ "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_absolute_published", "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_relative_published", "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_self_contained", "tests/test_catalog.py::CatalogTypeTest::test_determine_...
{ "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/stac-utils/pystac/commit/04c0d33bf2c2...
1a29941d5cf74ca585780495cb6c17fd013ec861
2020-08-21 03:15:28
docker.io/swerebenchv2/python-attrs-attrs:671-1a29941
python-attrs__attrs-671
Function: define(*, init=True, repr=True, hash=None, slots=False, frozen=False, kw_only=False, cache_hash=False, auto_exc=True, eq=None, order=False, auto_detect=True, getstate_setstate=None, on_setattr=None, field_transformer=None, match_args=True, collect_by_mro=False, cache_attrs=False) Location: src/attr/_next_gen....
python
MIT
diff --git a/src/attr/_next_gen.py b/src/attr/_next_gen.py index b0aefe3..57e8635 100644 --- a/src/attr/_next_gen.py +++ b/src/attr/_next_gen.py @@ -28,7 +28,7 @@ def define( kw_only=False, cache_hash=False, auto_exc=True, - eq=True, + eq=None, order=False, auto_detect=True, getstate...
Fix auto-detection of eq/ne in NG APIs By setting eq to True by default, it forces `__eq__`/`__ne__` to be written. Setting to None fixes it. fixes #670
@attr.define fails to auto-detect __eq__ `@attr.define` is failing to auto-detect `__eq__`. My understanding from the docs is that this _should_ work, but `ValueError` is not being raised unless I use `@attr.define(eq=False)`. ```python import attr @attr.define class Treatment: treatment: str def __...
python-attrs/attrs
diff --git a/tests/test_next_gen.py b/tests/test_next_gen.py index e350498..a4460b1 100644 --- a/tests/test_next_gen.py +++ b/tests/test_next_gen.py @@ -133,3 +133,18 @@ class TestNextGen: with pytest.raises(attr.exceptions.FrozenInstanceError): f.x = 2 + + def test_auto_detect_eq(self): + ...
[ "tests/test_next_gen.py::TestNextGen::test_auto_detect_eq" ]
[ "tests/test_next_gen.py::TestNextGen::test_simple", "tests/test_next_gen.py::TestNextGen::test_no_slots", "tests/test_next_gen.py::TestNextGen::test_validates", "tests/test_next_gen.py::TestNextGen::test_no_order", "tests/test_next_gen.py::TestNextGen::test_override_auto_attribs_true", "tests/test_next_ge...
{ "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": [...
348e3b1cc1d5de3811fdf647abfcfbfdccaa1e05
2023-01-08 11:02:35
docker.io/swerebenchv2/apiflask-apiflask:392-348e3b1
apiflask__apiflask-392
Method: apiflask.views.MethodView.as_view(self, name: str, *class_args, **class_kwargs) → apiflask.types.RouteCallableType Location: src/apiflask/views.py, class MethodView Inputs: - name: str – the endpoint name used for Flask routing. - *class_args, **class_kwargs – arguments forwarded to the MethodView subclass cons...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index 5d3fc80..53d815f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,8 @@ Released: - +- Add `apiflask.views.MethodView` to replace `flask.views.MethodView`, raise error if + using `flask.views.MethodView` ([issue #341][issue_341]). - Add `Enum` field from marshmallow 3...
Fix and enhance the class-based view support - Create apiflask.views module - Raise error if using MethodView from flask.views - Refactor the code to collect spec from view classes - Remove the Flask<2.2 restriction fixes #341 <!-- If needed, ensure each step in the checklist below is complete. If only docs...
Using class-based views with Flask 2.2 causes TypeError: view() takes 0 positional arguments but 1 was given Error when using class-based views for compliance documentation ``` from flask.views import MethodView from apiflask import APIFlask app = APIFlask(__name__) @app.route('/pets/<int:pet_id>', endpoin...
apiflask/apiflask
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 48e259a..ff0f747 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: pip install -U setuptools python -m pip install -U pip - name: cache mypy - uses: actions/c...
[ "tests/test_app.py::test_app_init", "tests/test_app.py::test_json_errors", "tests/test_app.py::test_json_errors_reuse_werkzeug_headers", "tests/test_app.py::test_view_function_arguments_order", "tests/test_app.py::test_error_callback", "tests/test_app.py::test_apply_custom_error_callback_for_generic_error...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/apiflask/apiflask/issues/341" ], ...
46efbe5bb938aa95ace2151345e81887dc643105
2025-02-21 15:44:12
docker.io/swerebenchv2/dwavesystems-dwave-system:556-46efbe5
dwavesystems__dwave-system-556
Method: DWaveSampler.__exit__(self, exc_type=None, exc_value=None, traceback=None) Location: dwave/system/samplers/dwave_sampler.py – added to implement the context‑manager protocol for DWaveSampler. Inputs: Optional exception type, value, and traceback (ignored); the sampler instance. Outputs: Returns ``None`` after c...
python
Apache-2.0
diff --git a/dwave/system/samplers/clique.py b/dwave/system/samplers/clique.py index bc38e7d..28ca3b4 100644 --- a/dwave/system/samplers/clique.py +++ b/dwave/system/samplers/clique.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +fro...
Add support for context manager protocol to all samplers Now all of QPU (`DWaveSampler`, `DWaveCliqueSampler`), and hybrid (`LeapHybrid*Sampler`) samplers support `.close()` and runtime context use. Close #91. Composites will be addressed in a follow-up as per #555.
Turn DWaveSampler into context manager Blocked by https://github.com/dwavesystems/dwave-system/issues/77.
dwavesystems/dwave-system
diff --git a/dwave/system/testing.py b/dwave/system/testing.py index 801ae4b..cb563f2 100644 --- a/dwave/system/testing.py +++ b/dwave/system/testing.py @@ -15,6 +15,7 @@ import concurrent.futures import warnings import weakref +from contextlib import AbstractContextManager from uuid import uuid4 import numpy as...
[ "tests/test_dwavecliquesampler.py::TestFailover::test_context_manager", "tests/test_dwavesampler.py::TestDWaveSampler::test_context_manager" ]
[ "tests/qpu/test_dwavesampler.py::TestClientSelection::test_client_type", "tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_api", "tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_clique", "tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_ferromagnet_chimera", "tests...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
4f2ed4c32d4beecb0af0bbf5ce3cd65dff075275
2019-03-08 08:32:31
docker.io/swerebenchv2/timothycrosley-isort:893-4f2ed4c
timothycrosley__isort-893
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index c5826060..93d09a4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ Changelog ### 4.3.13 - March 6, 2019 - hot fix release - Fixed the inability to accurately determine import section when a mix of conda and virtual environments are used. - Fixed some output...
Fix issue #889: Isort should not add blank lines to beginning of file Closes #889
Might create blank line at start of file with comments Running `isort --diff` with the following will add a blank line at the start: ```python # comment import os # comment2 import sys ``` ```diff @@ -1,4 +1,5 @@ + +import os # comment -import os # comment2 import sys ``` The result then looks li...
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index c4b3c241..998f32c5 100644 --- a/test_isort.py +++ b/test_isort.py @@ -2866,3 +2866,11 @@ def test_ensure_support_for_non_typed_but_cased_alphabetic_sort_issue_890(): 'from pkg import recorder\n') assert SortImports(file_contents=test_input, c...
[ "test_isort.py::test_to_ensure_empty_line_not_added_to_file_start_issue_889" ]
[ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d1b1a7249ecf6d07fae0d18af8d3907017e0e27c
2018-05-29 15:43:54
docker.io/swerebenchv2/takluyver-flit:181-d1b1a72
takluyver__flit-181
Function: _prep_metadata(md_sect, path) Location: flit/inifile.py Inputs: - **md_sect** *(dict)* – the raw “metadata” section parsed from a toml/ini file. - **path** *(path‑like or None)* – optional location of the source file, used for error messages. Outputs: - Returns a **dict** with normalized metadata fields rea...
python
BSD-3-Clause
diff --git a/README.rst b/README.rst index 43927a1..b758bd1 100644 --- a/README.rst +++ b/README.rst @@ -75,7 +75,7 @@ To install the development version of Flit from Github:: git clone https://github.com/takluyver/flit.git cd flit - python3 -m pip install docutils requests pytoml + python3 -m pip ins...
Implement extras_require Fixes #144
Support for extras_require I was trying to port gidgethub to Flit, but then I realized I had some `extra_requires` entries: https://github.com/brettcannon/gidgethub/blob/576a64f57fccba85e6060350491e33a8d0185ac6/setup.py#L37-L45 Is there any support for this sort of stuff in Flit that the docs don't cover? If not...
takluyver/flit
diff --git a/tests/samples/dev_requires_with_empty_lines.ini b/tests/samples/dev_requires_with_empty_lines.ini deleted file mode 100644 index 31653d2..0000000 --- a/tests/samples/dev_requires_with_empty_lines.ini +++ /dev/null @@ -1,7 +0,0 @@ -[metadata] -module=module1 -author=Sir Robin -author-email=robin@camelot.uk ...
[ "tests/test_common.py::ModuleTests::test_get_info_from_module", "tests/test_common.py::ModuleTests::test_missing_name", "tests/test_common.py::ModuleTests::test_module_importable", "tests/test_common.py::ModuleTests::test_package_importable", "tests/test_common.py::ModuleTests::test_version_raise", "tests...
[]
{ "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": [ "https://github.com/brettcannon/gidgethub/blob/576a64f5...
c2e3d90fc96d3b47130a136c5f20806043922257
2023-04-20 19:00:31
docker.io/swerebenchv2/getmoto-moto:6238-c2e3d90
getmoto__moto-6238
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/ssm/models.py b/moto/ssm/models.py index f6763bbf2..3ae5247b6 100644 --- a/moto/ssm/models.py +++ b/moto/ssm/models.py @@ -1434,7 +1434,7 @@ class SimpleSystemManagerBackend(BaseBackend): f"The following filter key is not valid: {key}. Valid filter keys include: [Type, KeyId]." ...
SSM: Allow filtering by existence of tag-name Fixes #6233
SSM `describe_parameters` `ParameterFilters` fails when `Values` is not provided Hi, I'm using Moto to mock the SSM client and am running into an error. One of my filters does not have a value which causes Moto to throw an error, but the real code works fine. With this code: ```py paginator = ssm.get_paginat...
getmoto/moto
diff --git a/tests/test_ssm/test_ssm_boto3.py b/tests/test_ssm/test_ssm_boto3.py index fda67a08a..ad2074440 100644 --- a/tests/test_ssm/test_ssm_boto3.py +++ b/tests/test_ssm/test_ssm_boto3.py @@ -1039,14 +1039,17 @@ def test_describe_parameters_tags(): Tags=[{"Key": "spam", "Value": "eggs"}], ) - re...
[ "tests/test_ssm/test_ssm_boto3.py::test_describe_parameters_tags" ]
[ "tests/test_ssm/test_ssm_boto3.py::test_delete_parameter", "tests/test_ssm/test_ssm_boto3.py::test_delete_nonexistent_parameter", "tests/test_ssm/test_ssm_boto3.py::test_delete_parameters", "tests/test_ssm/test_ssm_boto3.py::test_get_parameters_by_path", "tests/test_ssm/test_ssm_boto3.py::test_put_parameter...
{ "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://docs.aws.amazon.com/systems-manager/latest/APIRe...
d18287d37a7deb98457d7068402218983150c7f8
2021-04-21 19:45:33
docker.io/swerebenchv2/cs-si-eodag:257-d18287d
cs-si__eodag-257
Function: format_metadata(search_param, *args, **kwargs) Location: eodag.api.product.metadata_mapping Inputs: - **search_param** (str): a template containing placeholders of the form `{field_name#converter}`. - **kwargs** (mapping): values for the placeholder field names (e.g., `fieldname="2021-04-21T18:27:19.123Z"`...
python
Apache-2.0
diff --git a/eodag/api/core.py b/eodag/api/core.py index 25fe07bb..8cd4814c 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -487,9 +487,13 @@ class EODataAccessGateway(object): :param raise_errors: When an error occurs when searching, if this is set to True, the error ...
ISO 8601 format accepted everywhere Fixes #227 I used the function `datutil.parser.isoparse` to parse user input dates, which should cover most cases.
ISO8601 formatted time fails on some providers Time formatted using ISO8601 (`yyyy-MM-ddThh:mm:ss.SSSZ`) fails for some providers like `sobloo` or `astraea_eod`, when `yyyy-MM-ddThh:mm:ss` is ok. Fix is needed to make both work
CS-SI/eodag
diff --git a/tests/context.py b/tests/context.py index df74276a..9dcb79e6 100644 --- a/tests/context.py +++ b/tests/context.py @@ -29,6 +29,7 @@ from eodag.api.core import DEFAULT_ITEMS_PER_PAGE, DEFAULT_MAX_ITEMS_PER_PAGE from eodag.api.product import EOProduct from eodag.api.product.drivers import DRIVERS from eod...
[ "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_datetime_to_timestamp_milliseconds", "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_to_iso_date", "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_to_iso_utc_datetime", "tests/units...
[ "tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_to_iso_utc_datetime_from_milliseconds", "tests/units/test_utils.py::TestUtils::test_path_to_uri", "tests/units/test_utils.py::TestUtils::test_uri_to_path" ]
{ "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.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
17699d46b6bc3902b8fa47fb24f4f376b1b7ddc0
2017-08-08 07:38:20
docker.io/swerebenchv2/neurodatawithoutborders-pynwb:57-17699d4
neurodatawithoutborders__pynwb-57
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/form/data_utils.py b/src/form/data_utils.py index 7e0f16f8..6b249dbc 100644 --- a/src/form/data_utils.py +++ b/src/form/data_utils.py @@ -98,7 +98,7 @@ class DataChunkIterator(AbstractDataChunkIterator): # Try to get an accurate idea of max_shape for other Python datastructures if possible...
Bug fix to DataChunkIterator to determine real shape for iterators that support len Updated DataChunkIterator and corresponding tests to properly determine the maximum and recommended shape for range and other iterators that support len. Fix #56
Bug: unittest test_standard_iterator_unbuffered seems buggy Subtle bug, but here it goes: On test_standard_iterator_unbuffered (tests/unit/form_tests/utils_test/test_core_DataChunkIterator), line 57 and 59, we have dci = DataChunkIterator(data=range(10), buffer_size=1) self.assertTupleEqual(dci.max_shape, (None,))...
NeurodataWithoutBorders/pynwb
diff --git a/tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py b/tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py index b57867c1..58d86c3f 100644 --- a/tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py +++ b/tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py @@ -5...
[ "tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py::DataChunkIteratorTests::test_standard_iterator_unbuffered", "tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py::DataChunkIteratorTests::test_standard_iterator_unmatched_buffersized" ]
[ "tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py::DataChunkIteratorTests::test_multidimensional_list", "tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py::DataChunkIteratorTests::test_none_iter", "tests/unit/form_tests/utils_test/test_core_DataChunkIterator.py::DataChunkIteratorTes...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
9485f028b253fdf82f01bcdeae81e2fec6c4f39d
2020-04-16 21:55:34
docker.io/swerebenchv2/scille-umongo:245-9485f02
scille__umongo-245
Method: DictField.__init__(self, *args, key_field=None, value_field=None, **kwargs) Location: umongo/fields.py – class definition Inputs: optional `key_field` and `value_field` (instances of `BaseField` or `None`), any additional arguments forwarded to the parent `BaseField`. Outputs: a configured `DictField` ins...
python
MIT
diff --git a/umongo/builder.py b/umongo/builder.py index cbe8003..954258f 100644 --- a/umongo/builder.py +++ b/umongo/builder.py @@ -12,7 +12,7 @@ from .embedded_document import ( from .exceptions import DocumentDefinitionError, NotRegisteredDocumentError from .schema import Schema, on_need_add_id_field, add_child_fi...
Use fields for keys/values in DictField Closes #99.
DictField limitations `DictField` suffers from a few limitations. - Must be marked as modified manually - Does not deserialize values into objects (no Schema) - Can't use non-string keys It might be useful to have a schema-less structure, but sometimes, I'd like to have `DictField` enforce a schema. Maybe we co...
Scille/umongo
diff --git a/tests/test_data_proxy.py b/tests/test_data_proxy.py index 41ac6f1..ee053fa 100644 --- a/tests/test_data_proxy.py +++ b/tests/test_data_proxy.py @@ -462,16 +462,23 @@ class TestDataProxy(BaseTest): class MySchema(EmbeddedSchema): # EmbeddedField need instance to retrieve implementati...
[ "tests/test_fields.py::TestFields::test_dict" ]
[ "tests/test_data_proxy.py::TestDataProxy::test_repr", "tests/test_data_proxy.py::TestDataProxy::test_simple", "tests/test_data_proxy.py::TestDataProxy::test_load", "tests/test_data_proxy.py::TestDataProxy::test_modify", "tests/test_data_proxy.py::TestDataProxy::test_list_field_modify", "tests/test_data_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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/marshmallow-code/marshmallow/issues...
a69641e563c94eaef53676b89cec0de828c74814
2022-08-06 16:24:48
docker.io/swerebenchv2/tefra-xsdata:695-a69641e
tefra__xsdata-695
Method: PycodeSerializer.render(self, obj: object, var_name: str = "obj") Location: xsdata/formats/dataclass/serializers/code.py Inputs: - obj: any dataclass model instance (or any Python object that the serializer can handle) - var_name: name of the variable that will receive the generated instance in the output c...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d227e854..ddf1a1e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,12 +2,12 @@ exclude: tests/fixtures repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.37.1 + rev: v2.37.3 hooks: - id: pyu...
Add pycode serializer ## 📒 Description Add a serializer that renders a python representation code for a dataclass. This will help me alot with visualize without debugging what is really happending during parsing and how the result object is constructed. Resolves #626 ## 🔗 What I've Done ## 💬 Commen...
Convert XML sample into cannonical python representation code # Motivation We maintain set of XML samples conforming to specific XML schema. We are considering to generate these samples by python code using xsdata and xsdata generated package. It would be helpful to have an option to generate the python represen...
tefra/xsdata
diff --git a/tests/formats/dataclass/serializers/test_code.py b/tests/formats/dataclass/serializers/test_code.py new file mode 100644 index 00000000..858b6c78 --- /dev/null +++ b/tests/formats/dataclass/serializers/test_code.py @@ -0,0 +1,68 @@ +from unittest import TestCase + +from tests.fixtures.books.fixtures import...
[ "tests/formats/dataclass/serializers/test_code.py::PycodeSerializerTests::test_render", "tests/formats/dataclass/serializers/test_code.py::PycodeSerializerTests::test_write_object_with_empty_array", "tests/formats/dataclass/serializers/test_code.py::PycodeSerializerTests::test_write_object_with_enum", "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://xsdata.readthedocs.io/en/latest/json.html#seri...
24a2c1e7a5b1b1b979a647de2ef36a35ff4c39a1
2021-05-06 12:26:12
docker.io/swerebenchv2/python-attrs-attrs:806-24a2c1e
python-attrs__attrs-806
No new interfaces are introduced.
python
MIT
diff --git a/changelog.d/806.breaking.rst b/changelog.d/806.breaking.rst new file mode 100644 index 0000000..baa4c02 --- /dev/null +++ b/changelog.d/806.breaking.rst @@ -0,0 +1,1 @@ +We had to revert the recursive feature for ``attr.evolve()`` because it broke some use-cases -- sorry! diff --git a/docs/examples.rst b/d...
Revert recursive evolve Seems like the current implementation breaks a non-trivial amount of use cases. So this reverts it and adds a regression test – lmk if I got it right (also the description of the test). I welcome suggestions how to do it properly in separate PRs. @ProgVal @staaam @sscherfke Fixes #8...
`attr.evolve` no longer supports setting an attr object as attribute Hi, I don't know if this is an intentional side-effect of #759, but `attr.evolve` no longer works in the non-recursive recursive case if the argument is an attr class. Here is a snippet to reproduce it: ```py import attr @attr.s class Cl...
python-attrs/attrs
diff --git a/tests/test_funcs.py b/tests/test_funcs.py index 1706aea..e957d0e 100644 --- a/tests/test_funcs.py +++ b/tests/test_funcs.py @@ -598,43 +598,50 @@ class TestEvolve(object): assert evolve(C(1), a=2).a == 2 - def test_recursive(self): + def test_regression_attrs_classes(self): """ ...
[ "tests/test_funcs.py::TestEvolve::test_regression_attrs_classes", "tests/test_funcs.py::TestEvolve::test_dicts" ]
[ "tests/test_funcs.py::TestAsDict::test_shallow", "tests/test_funcs.py::TestAsDict::test_recurse", "tests/test_funcs.py::TestAsDict::test_nested_lists", "tests/test_funcs.py::TestAsDict::test_nested_dicts", "tests/test_funcs.py::TestAsDict::test_recurse_property", "tests/test_funcs.py::TestAsDict::test_fil...
{ "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": [...
120375dabeceaeeb1cf3fcaff2d9217b3e513cb3
2023-12-07 09:15:01
docker.io/swerebenchv2/amaranth-lang-amaranth:991-120375d
amaranth-lang__amaranth-991
Method: SignatureMembers.create(self, *, path=None, src_loc_at=0) Location: amaranth.lib.wiring.SignatureMembers Inputs: - path (optional tuple of str): prefix for generated signal names; if omitted the name is derived from the caller’s variable name via tracer.get_var_name(). - src_loc_at (optional int): depth offset ...
python
BSD-2-Clause
diff --git a/amaranth/lib/wiring.py b/amaranth/lib/wiring.py index 0d94201..18ceb58 100644 --- a/amaranth/lib/wiring.py +++ b/amaranth/lib/wiring.py @@ -5,6 +5,7 @@ import inspect import re import warnings +from .. import tracer from ..hdl.ast import Shape, ShapeCastable, Const, Signal, Value, ValueCastable from ...
lib.wiring: use tracer to obtain default Signature path and src_loc. Fixes #987.
`Signature.create`'s `path` argument should probably default to `tracer.get_var_name()` This change doesn't require an RFC. It is tagged for the 0.4 milestone because this would change the signature from: ```python def create(self, *, path=()): ``` to ```python def create(self, *, path=None, src_loc_at=0...
amaranth-lang/amaranth
diff --git a/tests/test_lib_wiring.py b/tests/test_lib_wiring.py index ac6e2f0..9bdef91 100644 --- a/tests/test_lib_wiring.py +++ b/tests/test_lib_wiring.py @@ -279,9 +279,9 @@ class SignatureMembersTestCase(unittest.TestCase): self.assertEqual(list(attrs.keys()), ["a", "s"]) self.assertIsInstance(att...
[ "tests/test_lib_wiring.py::SignatureMembersTestCase::test_create", "tests/test_lib_wiring.py::SignatureMembersTestCase::test_create_tuple", "tests/test_lib_wiring.py::FlippedInterfaceTestCase::test_create_subclass_flipped" ]
[ "tests/test_lib_wiring.py::FlowTestCase::test_flow_call", "tests/test_lib_wiring.py::FlowTestCase::test_flow_repr", "tests/test_lib_wiring.py::FlowTestCase::test_flow_str", "tests/test_lib_wiring.py::MemberTestCase::test_array", "tests/test_lib_wiring.py::MemberTestCase::test_array_wrong", "tests/test_lib...
{ "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":...
9b60e5984d8ea7c92fd43824d5be37956dded9d6
2024-09-04 12:26:58
docker.io/swerebenchv2/aio-libs-aiohttp:9016-9b60e59
aio-libs__aiohttp-9016
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/8998.bugfix.rst b/CHANGES/8998.bugfix.rst new file mode 100644 index 000000000..1b6b189e7 --- /dev/null +++ b/CHANGES/8998.bugfix.rst @@ -0,0 +1,1 @@ +Fixed an error when trying to add a route for multiple methods with a path containing a regex pattern -- by :user:`Dreamsorcerer`. diff --git a/aioh...
[PR #8998/875f23d5 backport][3.10] Fix resource reuse with regex paths **This is a backport of PR #8998 as merged into master (875f23d516220a1cf849eb4a6d758edb8bff1f55).** Fixes #7624.
Resource reuse not working for dynamic resources ### Describe the bug I am adding the same route several times with different method to an app. This worked fine, but I needed to add `name="request"` to be able to identify which route is going to be used in a custom middleware.This ends up in an error about registeri...
aio-libs/aiohttp
diff --git a/tests/test_web_urldispatcher.py b/tests/test_web_urldispatcher.py index 8a97acf50..7991cfe82 100644 --- a/tests/test_web_urldispatcher.py +++ b/tests/test_web_urldispatcher.py @@ -703,10 +703,11 @@ async def test_allow_head(aiohttp_client: AiohttpClient) -> None: @pytest.mark.parametrize( "path", -...
[ "tests/test_web_urldispatcher.py::test_reuse_last_added_resource[/{a:.*}]" ]
[ "tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-index_forbidden]", "tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-True-200-/-/-<html>\\n<head>\\n<title>Index", "tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-index_static]", "...
{ "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/aio-libs/aiohttp/blob/a4ed8c56430bd44...
4716882e0be78e22f612719ac81a1eba99393c52
2025-04-07 18:01:43
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4082-4716882
aws-cloudformation__cfn-lint-4082
Method: TargetGroupProtocolRestrictions.validate(self, validator, keywords, instance, schema) Location: src/cfnlint/rules/resources/elasticloadbalancingv2/TargetGroupProtocolRestrictions.py Inputs: - validator: cfnlint.jsonschema.Validator – the JSON‑schema validator instance used by cfn‑lint. - keywords: Any – the key...
python
MIT-0
diff --git a/.amazonq/rules/base.md b/.amazonq/rules/base.md new file mode 100644 index 000000000..f9a15ef44 --- /dev/null +++ b/.amazonq/rules/base.md @@ -0,0 +1,72 @@ +--- +description: Amazon Q Rules Location +globs: .amazonq/rules/**/*.md +--- +# Amazon Q Rules Location + +Rules for placing and organizing Amazon Q ...
New rules for AWS::ElasticLoadBalancingV2::TargetGroup *Issue #, if available:* fix #4066 *Description of changes:* - New rule E3681 to validate target group target type property restrictions - New rule E3683 to validate target group protocol property restrictions By submitting this pull request, I confirm ...
Warn/error when `AWS::ElasticLoadBalancingV2::TargetGroup` is missing required parameters ### Is this feature request related to a new rule or cfn-lint capabilities? rules ### Describe the feature you'd like to request The `Protocol` parameter is required unless the `TargetType` parameter is set to `lambda`. > Prot...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/elbv2/test_target_group_protocol_restrictions.py b/test/unit/rules/resources/elbv2/test_target_group_protocol_restrictions.py new file mode 100644 index 000000000..41284dbfa --- /dev/null +++ b/test/unit/rules/resources/elbv2/test_target_group_protocol_restrictions.py @@ -0,0 +1,7...
[ "test/unit/rules/resources/elbv2/test_target_group_protocol_restrictions.py::test_backup_lifecycle[instance0-expected0]", "test/unit/rules/resources/elbv2/test_target_group_protocol_restrictions.py::test_backup_lifecycle[instance1-expected1]", "test/unit/rules/resources/elbv2/test_target_group_protocol_restrict...
[]
{ "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":...
9d2e96732b0303b933e794222deaa88dcf079300
2025-03-14 00:10:20
docker.io/swerebenchv2/canonical-operator:1631-9d2e967
canonical__operator-1631
Method: _Manager.__init__(self, charm_class: Type[ops.CharmBase], juju_context: ops.jujucontext._JujuContext, use_juju_for_storage: Optional[bool] = None, charm_state_path: str = '.unit-state.db') Location: ops/_main.py Inputs: - **charm_class** – the user‑defined Charm subclass that will receive framework events. -...
python
Apache-2.0
diff --git a/ops/_main.py b/ops/_main.py index 975085f..fed072e 100644 --- a/ops/_main.py +++ b/ops/_main.py @@ -16,11 +16,11 @@ import logging import os +import pathlib import shutil import subprocess import sys import warnings -from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Typ...
feat: run deferred events with fresh charm instances Create a new charm object for each emission of a deferred event, and for the event that triggered the ops process. When using the `testing.Context` as a context manager, the charm that is made available is the one for the primary event. If there is demand in the f...
Run deferred Juju events on a fresh charm instance The main benefit here would be that it would be simpler to reason about (Juju) event behaviour, because it would be consistent both when an event was deferred and when it is executed normally. This would not apply to custom events, which are executed synchronously, ...
canonical/operator
diff --git a/test/charms/test_main/src/charm.py b/test/charms/test_main/src/charm.py index 69dc366..ff9ad1d 100755 --- a/test/charms/test_main/src/charm.py +++ b/test/charms/test_main/src/charm.py @@ -26,6 +26,12 @@ sys.path.append('lib') logger = logging.getLogger() +# Note for ops developers: juju-log doesn't go...
[ "test/test_main.py::TestDispatch::test_with_dispatch", "test/test_main.py::TestMainWithDispatchAsSymlink::test_collect_metrics", "test/test_main.py::TestMainWithDispatchAsScript::test_collect_metrics", "testing/tests/test_e2e/test_deferred.py::test_defer", "testing/tests/test_e2e/test_deferred.py::test_defe...
[ "test/test_main.py::TestCharmInit::test_breakpoint", "test/test_main.py::TestCharmInit::test_no_debug_breakpoint", "test/test_main.py::TestCharmInit::test_init_signature_passthrough", "test/test_main.py::TestCharmInit::test_init_signature_old_key_argument", "test/test_main.py::TestCharmInit::test_init_signa...
{ "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": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0136fad67aff07cfc995394fc22d4702b3cc5368
2024-12-11 13:22:38
docker.io/swerebenchv2/ecmwf-earthkit-data:565-0136fad
ecmwf__earthkit-data-565
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/examples/index.rst b/docs/examples/index.rst index 0deca5e..bb31dc1 100644 --- a/docs/examples/index.rst +++ b/docs/examples/index.rst @@ -172,6 +172,7 @@ Miscellaneous :glob: settings.ipynb + settings_env_vars.ipynb cache.ipynb projection.ipynb metadata.ipynb diff --git ...
Enable using environment variables for settings Fixes #561
Enable controlling settings via environment variables ### Is your feature request related to a problem? Please describe. Currently, the settings can only be controlled via the `~/.earthkit-data/settings.yaml` file or from Python using the `earthkit.data.settings` interface. Additionally, it would be useful (e.g. in ec...
ecmwf/earthkit-data
diff --git a/tests/core/test_settings.py b/tests/core/test_settings.py index e0ef2fa..5212fad 100644 --- a/tests/core/test_settings.py +++ b/tests/core/test_settings.py @@ -9,6 +9,7 @@ # nor does it submit to any jurisdiction. # + import pytest from earthkit.data import settings @@ -218,6 +219,26 @@ def test_se...
[ "tests/core/test_settings.py::test_settings_env[10000-None0]", "tests/core/test_settings.py::test_settings_env[10000-None1]", "tests/core/test_settings.py::test_settings_env[1b-ValueError]", "tests/core/test_settings.py::test_settings_env[A-ValueError]" ]
[ "tests/core/test_settings.py::test_settings_params_set_reset[number-of-download-threads-5-2]", "tests/core/test_settings.py::test_settings_invalid", "tests/core/test_settings.py::test_settings_set_numbers[number-of-download-threads-A-A-ValueError]", "tests/core/test_settings.py::test_settings_set_numbers[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": "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":...
2a1524a9b5786459786a4b86e5b2f09d1041e53d
2024-11-24 19:52:05
docker.io/swerebenchv2/pylons-waitress:457-2a1524a
pylons__waitress-457
Method: Adjustments.parse_args(self, argv: List[str]) -> Dict[str, Any> Location: src/waitress/adjustments.py (class Adjustments, classmethod) Inputs: - **argv** – list of command‑line arguments (excluding the program name). May contain long options such as `--help`, `--call`, `--app=MODULE:OBJECT` and other tunable o...
python
custom-check-github
diff --git a/docs/runner.rst b/docs/runner.rst index 6d687f8..d6dbee1 100644 --- a/docs/runner.rst +++ b/docs/runner.rst @@ -20,6 +20,10 @@ Is equivalent to:: waitress-serve --port=8041 --url-scheme=https myapp:wsgifunc +Or: + + waitress-serve --port=8041 --url-scheme=https --app=myapp:wsgifunc + The full ...
Add an --app= flag for specifying the WSGI application This is essentially a less-invasive version of #441. As with that PR, this PR adds support for a `--app` flag for specifying the WSGI app to run. Unlike that one, it maintains the getopt-based implementation. There's certainly some value in moving to argparse at so...
Make MODULE:APP non-positional (but still required) argument Currently, the usage of `waitress-serve` is as follows: ```console $ waitress-serve --help Usage: waitress-serve [OPTS] MODULE:OBJECT <...> ``` This is rather inconvenient, as "application" argument is rarely change over the lifetime of project...
Pylons/waitress
diff --git a/tests/test_adjustments.py b/tests/test_adjustments.py index b7243a9..86bf5de 100644 --- a/tests/test_adjustments.py +++ b/tests/test_adjustments.py @@ -395,38 +395,57 @@ class TestCLI(unittest.TestCase): self.assertTrue(set(subset.items()) <= set(dictionary.items())) def test_noargs(self): ...
[ "tests/test_adjustments.py::TestCLI::test_app_arg", "tests/test_adjustments.py::TestCLI::test_app_flag", "tests/test_adjustments.py::TestCLI::test_call", "tests/test_adjustments.py::TestCLI::test_cast_params", "tests/test_adjustments.py::TestCLI::test_excess", "tests/test_adjustments.py::TestCLI::test_hel...
[ "tests/test_adjustments.py::Test_asbool::test_s_is_1", "tests/test_adjustments.py::Test_asbool::test_s_is_False", "tests/test_adjustments.py::Test_asbool::test_s_is_None", "tests/test_adjustments.py::Test_asbool::test_s_is_True", "tests/test_adjustments.py::Test_asbool::test_s_is_false", "tests/test_adjus...
{ "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":...
0a5dc9c868b9c6f23c7137c2f9386c50a239c0dd
2020-09-06 05:27:44
docker.io/swerebenchv2/hypothesisworks-hypothesis:2601-0a5dc9c
hypothesisworks__hypothesis-2601
RunIsComplete Location: hypothesis.internal.conjecture.engine.RunIsComplete Inputs: (no parameters) – the exception is instantiated without arguments. Outputs: An exception type that signals the reuse phase has completed because the allocated budget (max_examples) has been exhausted; it is raised by ConjectureRunner.re...
python
custom-check-github
diff --git a/AUTHORS.rst b/AUTHORS.rst index d2eba9714..554cbbe21 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -10,6 +10,7 @@ their individual contributions. * `Adam Johnson <https://github.com/adamchainz>`_ * `Adam Sven Johnson <https://www.github.com/pkqk>`_ +* `Afrida Tabassum <https://github.com/oxfordhalfbloo...
Reuse up to `max_examples` from database when `Phase.generate` is disabled Fixes #2585.
Reuse up to `max_examples` examples when generation is disabled https://github.com/HypothesisWorks/hypothesis/blob/caccabbd107757ee6e9de1de7e3cff5474d9ccc5/hypothesis-python/src/hypothesis/internal/conjecture/engine.py#L544 No matter how many examples are in the database, we'll use at most 10% of our example budget ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/conjecture/test_engine.py b/hypothesis-python/tests/conjecture/test_engine.py index 8af666a39..39d72d504 100644 --- a/hypothesis-python/tests/conjecture/test_engine.py +++ b/hypothesis-python/tests/conjecture/test_engine.py @@ -311,6 +311,25 @@ def test_phases_can_disable_shrinking(...
[ "hypothesis-python/tests/conjecture/test_pareto.py::test_down_samples_the_pareto_front" ]
[ "hypothesis-python/tests/conjecture/test_engine.py::test_can_index_results", "hypothesis-python/tests/conjecture/test_engine.py::test_non_cloneable_intervals", "hypothesis-python/tests/conjecture/test_engine.py::test_deletable_draws", "hypothesis-python/tests/conjecture/test_engine.py::test_can_load_data_from...
{ "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/HypothesisWorks/hypothesis/blob/cacca...
f07c5df5a926f4b999f986811c972e0610d04ec2
2025-06-20 19:33:32
docker.io/swerebenchv2/dwavesystems-dwave-system:582-f07c5df
dwavesystems__dwave-system-582
Method: EmbeddingComposite.sample_ising(self, h: dict, J: dict, **kwargs) → dimod.SampleSet Location: dwave/system/composites/embedding.py Inputs: - **h** – linear biases (dict of variable→float) - **J** – quadratic biases (dict of (var,var)→float) - **return_embedding** (optional bool, default False) – when ...
python
Apache-2.0
diff --git a/dwave/embedding/chain_strength.py b/dwave/embedding/chain_strength.py index 39af669..778375f 100644 --- a/dwave/embedding/chain_strength.py +++ b/dwave/embedding/chain_strength.py @@ -15,20 +15,21 @@ """Utility functions for calculating chain strength. Examples: - This example uses :func:`uniform_to...
Speed-up embedding composites for subgraph embeddings Embedding step is ~100x faster and unembedding is ~20x faster (for subgraphs). (On my laptop, for a Z12 graph, that's 1.7s vs 17ms for embedding and 170ms vs 9ms for unembedding.) Close #579.
`FixedEmbeddingComposite` is inefficient for subgraph embeddings When "embedding" is a one-to-one map between source and target nodes (i.e. source graph is a subgraph of the target graph), use of `FixedEmbeddingComposite` is inefficient (slow) due to: - chain strength calculation during embedding (e.g. `uniform_torque_...
dwavesystems/dwave-system
diff --git a/tests/test_embedding_composite.py b/tests/test_embedding_composite.py index d5a2d4f..67f907c 100644 --- a/tests/test_embedding_composite.py +++ b/tests/test_embedding_composite.py @@ -236,7 +236,8 @@ class TestEmbeddingComposite(unittest.TestCase): self.assertTrue(ignored == [(1, 2)] or ignored ...
[ "tests/test_embedding_composite.py::TestEmbeddingComposite::test_return_embedding", "tests/test_embedding_composite.py::TestEmbeddingComposite::test_return_embedding_as_class_variable", "tests/test_embedding_composite.py::TestEmbeddingComposite::test_return_embedding_subgraph", "tests/test_embedding_composite...
[ "tests/test_embedding_composite.py::TestEmbeddingComposite::test_chain_break_method_customization", "tests/test_embedding_composite.py::TestEmbeddingComposite::test_embedding_parameters_construction", "tests/test_embedding_composite.py::TestEmbeddingComposite::test_embedding_parameters_sample", "tests/test_em...
{ "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/dwavesystems/dwave-pytorch-plugin/i...
60714ec0be0126f33b9f9b60b860f359b184ed2d
2023-09-27 22:54:04
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2891-60714ec
aws-cloudformation__cfn-lint-2891
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/properties/Exclusive.py b/src/cfnlint/rules/resources/properties/Exclusive.py index f8d106282..0fba566d4 100644 --- a/src/cfnlint/rules/resources/properties/Exclusive.py +++ b/src/cfnlint/rules/resources/properties/Exclusive.py @@ -40,7 +40,7 @@ class Exclusive(CloudFormationLin...
Fix rule E2520 when empty lists are used *Issue #, if available:* fix #2890 *Description of changes:* - Fix rule E2520 when empty lists are used By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E2520 false positive for CloudWatch Alarm with expression ### CloudFormation Lint Version 0.80.3 ### What operating system are you using? MacOS ### Describe the bug A valid CloudWatch alarm that uses a metrics expression is resulting in an E2520 false positive. The alarm was defined in the CloudWatch co...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/good/resources/properties/exclusive.yaml b/test/fixtures/templates/good/resources/properties/exclusive.yaml index d2e6f7d57..21dd4c15d 100644 --- a/test/fixtures/templates/good/resources/properties/exclusive.yaml +++ b/test/fixtures/templates/good/resources/properties/exclusive.yaml...
[ "test/unit/rules/resources/properties/test_exclusive.py::TestPropertyExclusive::test_file_positive" ]
[ "test/unit/rules/resources/properties/test_exclusive.py::TestPropertyExclusive::test_file_negative" ]
{ "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": "easy", "external_urls": [ "https://google.com" ], "intent_completeness": "c...
bd4e402bfd50d4a240e14536c7a3b6d2df6d3d25
2020-03-02 21:29:29
docker.io/swerebenchv2/codezonediitj-pydatastructs:118-bd4e402
codezonediitj__pydatastructs-118
Method: DHeap(elements=None, heap_property="min", d=4) Location: pydatastructs.trees.heaps.DHeap Inputs: - **elements** (optional): a ``DynamicOneDimensionalArray`` of ``TreeNode`` objects or ``None`` for an empty heap. - **heap_property** (str): either ``"min"`` or ``"max"`` determining the ordering of keys. ...
python
custom-check-github
diff --git a/pydatastructs/trees/__init__.py b/pydatastructs/trees/__init__.py index 1cc0a03..c9dc298 100644 --- a/pydatastructs/trees/__init__.py +++ b/pydatastructs/trees/__init__.py @@ -22,6 +22,8 @@ __all__.extend(space_partitioning_trees.__all__) from .heaps import ( BinaryHeap, + TernaryHeap, + DHea...
DHeap added <!-- 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 <!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact format, e.g. "Fixes #1234". See https://...
Add m-ary heap #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> Currently, the package does not have m-ary heap (a generalization of the binary heap). #### Example of the problem <!--Provide a reproducible example code which is causing the ...
codezonediitj/pydatastructs
diff --git a/pydatastructs/trees/tests/test_heaps.py b/pydatastructs/trees/tests/test_heaps.py index 5c455f8..9406205 100644 --- a/pydatastructs/trees/tests/test_heaps.py +++ b/pydatastructs/trees/tests/test_heaps.py @@ -1,4 +1,5 @@ -from pydatastructs.trees.heaps import BinaryHeap, BinomialHeap +from pydatastructs.tr...
[ "pydatastructs/trees/tests/test_heaps.py::test_BinaryHeap", "pydatastructs/trees/tests/test_heaps.py::test_TernaryHeap", "pydatastructs/trees/tests/test_heaps.py::test_DHeap", "pydatastructs/trees/tests/test_heaps.py::test_BinomialHeap" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.84, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.geeksforgeeks.org/k-ary-heap/" ], "...
80cc4c39e6c4f24f85ef376569a59ca2e74fd9ea
2016-03-04 01:42:25
docker.io/swerebenchv2/boto-botocore:830-80cc4c3
boto__botocore-830
No new interfaces are introduced.
python
Apache-2.0
diff --git a/botocore/client.py b/botocore/client.py index c31f9c725..a201503c4 100644 --- a/botocore/client.py +++ b/botocore/client.py @@ -291,7 +291,8 @@ class ClientEndpointBridge(object): if endpoint_url is None: # Use the sslCommonName over the hostname for Python 2.6 compat. ho...
Use 'protocols' key to influence scheme This fixes a bug where if you try to use DynamoDB Local via `--region local`, we'll try to connect over https:// despite the fact that the `protocols` key for that region indicates that only http is supported. Also verified I could connect to dynamodb local after these ch...
Dynamodb local uses HTTPS instead of HTTP In our endpoints.json we have: ``` "local": { "hostname": "localhost:8000", "protocols": [ "http" ], "credentialScope": { "region": "us-east-1" } ...
boto/botocore
diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py index d17f1f5a0..c99b7e379 100644 --- a/tests/unit/test_client.py +++ b/tests/unit/test_client.py @@ -1240,7 +1240,8 @@ class TestClientEndpointBridge(unittest.TestCase): resolver = mock.Mock() resolver.construct_endpoint.return_value ...
[ "tests/unit/test_client.py::TestClientEndpointBridge::test_does_not_use_https_if_not_available" ]
[ "tests/unit/test_client.py::TestAutoGeneratedClient::test_anonymous_client_request", "tests/unit/test_client.py::TestAutoGeneratedClient::test_api_version_is_passed_to_loader_if_provided", "tests/unit/test_client.py::TestAutoGeneratedClient::test_before_call_short_circuits_request", "tests/unit/test_client.py...
{ "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": [...
4f6ac96f6c8dbec00c210069b3ed984cb00a737d
2016-08-26 08:57:57
docker.io/swerebenchv2/ipython-traitlets:293-4f6ac96
ipython__traitlets-293
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/traitlets/config/application.py b/traitlets/config/application.py index a373124..889b8c2 100644 --- a/traitlets/config/application.py +++ b/traitlets/config/application.py @@ -550,6 +550,8 @@ class Application(SingletonConfigurable): log.debug("Looking for %s in %s", basefilename, path) ...
ensure .py/.json collision detection only affects pairs in the same directory and include absolute path in the warning to clarify where the collision happened. avoids collision warning when path priority causes override, which is normal and shouldn't result in a warning. Previously, the warning could be triggered whe...
Use absolute filename when configuration file conflict Cf this issue: https://github.com/jupyter/notebook/issues/1690 it is hard to figure out which files are conflicting, getting the absolute path woudl help a lot.
ipython/traitlets
diff --git a/traitlets/config/tests/test_application.py b/traitlets/config/tests/test_application.py index 2a1caf2..5db0243 100644 --- a/traitlets/config/tests/test_application.py +++ b/traitlets/config/tests/test_application.py @@ -6,6 +6,7 @@ Tests for traitlets.config.application.Application # Copyright (c) IPython...
[ "traitlets/config/tests/test_application.py::TestApplication::test_cli_priority", "traitlets/config/tests/test_application.py::TestApplication::test_ipython_cli_priority", "traitlets/config/tests/test_application.py::TestApplication::test_log_bad_config", "traitlets/config/tests/test_application.py::TestAppli...
[ "traitlets/config/tests/test_application.py::TestApplication::test_aliases", "traitlets/config/tests/test_application.py::TestApplication::test_basic", "traitlets/config/tests/test_application.py::TestApplication::test_config", "traitlets/config/tests/test_application.py::TestApplication::test_config_propagat...
{ "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": [ "https://github.com/jupyter/notebook/issues/1690" ]...
de3d1aa650d9650bcd5c67f95ba9ecbcd7022970
2019-06-24 19:13:16
docker.io/swerebenchv2/robotframework-seleniumlibrary:1401-de3d1aa
robotframework__seleniumlibrary-1401
Method: WebDriverCreator._get_ff_profile(self, ff_profile_dir) Location: src/SeleniumLibrary/keywords/webdrivertools.py Inputs: - **ff_profile_dir** – can be one of: * `None` or any falsy value → a new default `webdriver.FirefoxProfile()` is created. * `str` – path to an existing Firefox profile directory; used as...
python
Apache-2.0
diff --git a/src/SeleniumLibrary/keywords/browsermanagement.py b/src/SeleniumLibrary/keywords/browsermanagement.py index 355d0cea..9d4c6d89 100644 --- a/src/SeleniumLibrary/keywords/browsermanagement.py +++ b/src/SeleniumLibrary/keywords/browsermanagement.py @@ -115,7 +115,9 @@ class BrowserManagementKeywords(LibraryCo...
Firefox profile dir Fixes #1332 partially
Add better support for FireFox Profile class Currently `Open Browser` keywords supports Firefox profile by taking in a string which points to the Firefox profile in the file system. Either users creates a profile by using Firefox and saving the profile with their test automation code or the use Python and use [FireFox ...
robotframework/SeleniumLibrary
diff --git a/utest/test/keywords/test_webdrivercreator.py b/utest/test/keywords/test_webdrivercreator.py index 65bb0eba..e2afbcbf 100644 --- a/utest/test/keywords/test_webdrivercreator.py +++ b/utest/test/keywords/test_webdrivercreator.py @@ -186,6 +186,24 @@ class WebDriverCreatorTests(unittest.TestCase): sel...
[ "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_get_ff_profile_instance_FirefoxProfile" ]
[ "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_chrome", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_firefox", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_no...
{ "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://seleniumhq.github.io/selenium/docs/api/py/webdri...
24bb6ac92a3b5a117efab7e947f8a89725c36cd1
2018-10-12 22:50:30
docker.io/swerebenchv2/theacodes-nox:147-24bb6ac
theacodes__nox-147
Function: run(args, *, env=None, silent=False, path=None, success_codes=None, log=True, external=False) Location: nox/command.py Inputs: - **args**: list or tuple of command arguments to execute. - **env** (optional): dict of environment variables for the subprocess; defaults to the current environment. - **silent** (b...
python
Apache-2.0
diff --git a/docs/config.rst b/docs/config.rst index b37b56e..4cbe227 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -145,6 +145,7 @@ The following options can be specified in the Noxfile: * ``nox.options.reuse_existing_virtualenvs`` is equivalent to specifying :ref:`--reuse-existing-virtualenvs <opt-reuse-exis...
Warn when programs not in the virtualenv are used, allow erroring and silencing the warning. Add --warn-on-external-run flag and the "external" keyword arg to session.run. Closes #130
`nox` uses `PATH` to find executables This is a bit `tox`-like to suggest, so feel free to reject. I was recently migrating my Pelican blog from a `Makefile` to a `noxfile`. I had `pelican` installed in a few of my base environments, but forgot to install it into the virtual environment. However, the sessions ran ju...
theacodes/nox
diff --git a/tests/test_command.py b/tests/test_command.py index 802b46c..1f9f1bf 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import logging import os import sys from unitt...
[ "tests/test_command.py::test_run_external_warns", "tests/test_command.py::test_run_external_silences", "tests/test_command.py::test_run_external_raises", "tests/test_sessions.py::TestSession::test_run_external_not_a_virtualenv", "tests/test_sessions.py::TestSession::test_run_external_with_error_on_external_...
[ "tests/test_command.py::test_run_defaults", "tests/test_command.py::test_run_silent", "tests/test_command.py::test_run_env_binary", "tests/test_command.py::test_run_env_unicode", "tests/test_command.py::test_run_env_systemroot", "tests/test_command.py::test_run_not_found", "tests/test_command.py::test_r...
{ "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|B4", "confidence": 0.89, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories"...
60065b3cf87f30bb2c1fc8756d2237c40b60f992
2023-05-10 19:08:13
docker.io/swerebenchv2/getmoto-moto:6312-60065b3
getmoto__moto-6312
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/cloudformation/parsing.py b/moto/cloudformation/parsing.py index 9731008a2..cf4f06113 100644 --- a/moto/cloudformation/parsing.py +++ b/moto/cloudformation/parsing.py @@ -793,17 +793,7 @@ class ResourceMap(collections_abc.Mapping): # type: ignore[type-arg] for logical_name in resource_names_...
SNS: Allow Topic without properties to be deleted using CF Fixes #6311 Also standardizes/normalizes resource deletion in the CF logic: - call `resource.delete()` if the method exists, otherwise - call `backend.delete_from_cloudformation_json` if the method exists This logic is now the same for resources that...
mock_cloudformation with SNS fails to delete stack Using the mock_cloudformation, creating a stack containing a single SNS topic, then deleting the stack fails with an invalid ARN ## Reproduction steps: ```python def test_failure(cloudformation_mock): cloudformation_mock.create_stack( StackName="t...
getmoto/moto
diff --git a/tests/test_sns/test_sns_cloudformation.py b/tests/test_sns/test_sns_cloudformation.py index 17cd25e05..df8e1eb03 100644 --- a/tests/test_sns/test_sns_cloudformation.py +++ b/tests/test_sns/test_sns_cloudformation.py @@ -1,6 +1,7 @@ import boto3 import json import sure # noqa # pylint: disable=unused-im...
[ "tests/test_sns/test_sns_cloudformation.py::test_sns_update_remove_topic[False]", "tests/test_sns/test_sns_cloudformation.py::test_sns_delete_topic[False]" ]
[ "tests/test_sns/test_sns_cloudformation.py::test_sns_topic", "tests/test_sns/test_sns_cloudformation.py::test_sns_update_topic", "tests/test_sns/test_sns_cloudformation.py::test_sns_update_remove_topic[True]", "tests/test_sns/test_sns_cloudformation.py::test_sns_delete_topic[True]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
f37a2c0181a2790e66cad5962e9f34639fef1aac
2022-10-17 19:10:08
docker.io/swerebenchv2/agnostiqhq-covalent:1356-f37a2c0
agnostiqhq__covalent-1356
Function: start(ctx, port: int, develop: bool, no_cluster: str, mem_per_worker: str, threads_per_worker: int, workers: int) Location: covalent_dispatcher/_cli/service.py Inputs: - ctx: click.Context – the Click invocation context. - port: int – network port for the UI server. - develop: bool – flag to run in developmen...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 494554be..52b206b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +### Fixed + +- `covalent restart` honors the `sdk.no_cluster` setting + ### Docs - Up...
Preserve value of `sdk.no_cluster` when restarting Covalent <!-- ⚠️ Your pull request title should be short detailed and understandable for all. ⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's a n...
covalebt start + covalent restart starts covalent with no cluster
AgnostiqHQ/covalent
diff --git a/tests/covalent_dispatcher_tests/_cli/service_test.py b/tests/covalent_dispatcher_tests/_cli/service_test.py index 18ca8141..2ef8461b 100644 --- a/tests/covalent_dispatcher_tests/_cli/service_test.py +++ b/tests/covalent_dispatcher_tests/_cli/service_test.py @@ -283,9 +283,21 @@ def test_stop(mocker, monkey...
[ "tests/covalent_dispatcher_tests/_cli/service_test.py::test_restart_preserves_nocluster[port-42-100-ui-true]", "tests/covalent_dispatcher_tests/_cli/service_test.py::test_restart_preserves_nocluster[port-42-100-ui-false]" ]
[ "tests/covalent_dispatcher_tests/_cli/service_test.py::test_read_pid_nonexistent_file", "tests/covalent_dispatcher_tests/_cli/service_test.py::test_read_valid_pid_file", "tests/covalent_dispatcher_tests/_cli/service_test.py::test_rm_pid_file[False-False]", "tests/covalent_dispatcher_tests/_cli/service_test.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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ee0f19b696c60064c58cdc08b3265aef56d49ff8
2024-11-13 14:54:26
docker.io/swerebenchv2/python-attrs-attrs:1372-ee0f19b
python-attrs__attrs-1372
Function: optional(converter) Location: src/attr/converters.py Inputs: - **converter** – Either a plain callable `Callable[[Any], Any]` that converts a value, or an instance of `attrs.Converter` (which itself expects the signature `(value, instance, field)`). Outputs: - Returns a *converter* object. • If *convert...
python
MIT
diff --git a/changelog.d/1372.change.md b/changelog.d/1372.change.md new file mode 100644 index 0000000..fcb9434 --- /dev/null +++ b/changelog.d/1372.change.md @@ -0,0 +1,1 @@ +`attrs.converters.optional()` works again when taking `attrs.converters.pipe()` or another Converter as its argument. diff --git a/src/attr/con...
Allow converter.optional to take a Converter such as converter.pipe as its argument # Summary <!-- Please tell us what your pull request is about here. --> Allow `converter.optional` to take a Converter such as `converter.pipe` as its argument. Fixes #1348 # Pull Request Check List <!-- This is just a f...
Error occurs when using converters.optional and converters.pipe together 23.2.0 is OK. ```Python Python 3.10.13 (main, Dec 6 2023, 12:01:00) [GCC 13.2.1 20230801] on linux >>> import attr >>> attr.__version__ '23.2.0' >>> @attr.define ... class A: ... abc: int | None = attr.field(converter=attr.converters....
python-attrs/attrs
diff --git a/tests/test_converters.py b/tests/test_converters.py index 164fb0f..d4aca43 100644 --- a/tests/test_converters.py +++ b/tests/test_converters.py @@ -143,6 +143,14 @@ class TestOptional: with pytest.raises(ValueError): c("not_an_int") + def test_converter_instance(self): + "...
[ "tests/test_converters.py::TestOptional::test_converter_instance", "tests/test_converters.py::TestOptionalPipe::test_optional", "tests/test_converters.py::TestOptionalPipe::test_pipe", "tests/test_converters.py::TestOptionalPipe::test_instance" ]
[ "tests/test_converters.py::TestConverter::test_pickle[True-True]", "tests/test_converters.py::TestConverter::test_pickle[True-False]", "tests/test_converters.py::TestConverter::test_pickle[False-True]", "tests/test_converters.py::TestConverter::test_pickle[False-False]", "tests/test_converters.py::TestConve...
{ "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":...
51dffc9589da59cce6024fd465bb7babb5efcdae
2023-06-17 07:49:38
docker.io/swerebenchv2/postlund-pyatv:2061-51dffc9
postlund__pyatv-2061
No new interfaces are introduced.
python
MIT
diff --git a/pyatv/const.py b/pyatv/const.py index 20912f8f..2dd796e9 100644 --- a/pyatv/const.py +++ b/pyatv/const.py @@ -186,6 +186,9 @@ class DeviceModel(Enum): AppleTV4KGen3 = 11 """Device model is seventh generation Apple TV (Apple TV 4K gen 3).""" + HomePodGen2 = 12 + """Device model is HomePod ...
device: Add second generation HomePod Fixes #2060 <a href="https://gitpod.io/#https://github.com/postlund/pyatv/pull/2061"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
HomePod 2 reported as "Model/SW: AudioAccessory6,1, Unknown OS 16.5" ### Describe the bug I have a HomePod 2 and it is being reported as: Model/SW: AudioAccessory6,1, Unknown OS 16.5 Mostly for me it is not being picked up by a script which looks for a match on pyatv.const.OperatingSystem.TvOS ### Error log _No...
postlund/pyatv
diff --git a/tests/test_convert.py b/tests/test_convert.py index 9247fc47..9e22c404 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -95,9 +95,10 @@ def test_protocol_str(protocol, output): (DeviceModel.HomePodMini, "HomePod Mini"), (DeviceModel.AirPortExpress, "AirPort Express (gen 1...
[ "tests/test_convert.py::test_media_type_to_string[MediaType.Unknown-Unknown]", "tests/test_convert.py::test_media_type_to_string[MediaType.Video-Video]", "tests/test_convert.py::test_media_type_to_string[MediaType.Music-Music]", "tests/test_convert.py::test_media_type_to_string[MediaType.TV-TV]", "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": [], "intent_completeness": "complete", "pr_categories": [...
3b505327f412a2c4215d0763f932d0eac6e3a11b
2022-05-11 20:10:09
docker.io/swerebenchv2/nipy-nipype:3470-3b50532
nipy__nipype-3470
Method: DWIPreproc.__init__(self, json_import=None, eddy_mask=None, eddy_slspec=None, eddyqc_all=None, eddyqc_text=None, out_grad_mrtrix=None, out_grad_fsl=None, pe_dir=None, **kwargs) Location: nipype/interfaces/mrtrix3/preprocess.py Inputs: - **json_import** (File, optional): Path to a JSON side‑car file; when suppli...
python
custom-check-github
diff --git a/.zenodo.json b/.zenodo.json index f715cad42..4e8b3022a 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -892,11 +892,7 @@ "orcid": "0000-0002-5312-6729" } ], - "keywords": [ - "neuroimaging", - "workflow", - "pipeline" - ], + "keywords": ["neuroimaging", "workflow", "pipeline"], ...
ENH: Add inputs to mrtrix3.DWIPreprocInputSpec and remove mandatory annotation for pe_dir <!-- 4. Run `make check-before-commit` before submitting the PR. --> ## Summary Simply removed the "mandatory" tag from pe_dir keyword argument as it isn't really mandatory, for example when using rpe_header (in which dwifsl...
Mrtrix3's DWIPreproc force inputs that are not mandatory ### Summary The interface to Mrtrix3's dwifslpreproc forces some inputs that are not really necessary according to [the original CLI on which it relies](https://mrtrix.readthedocs.io/en/dev/reference/commands/dwifslpreproc.html). ### Actual behavior The inte...
nipy/nipype
diff --git a/nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py b/nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py index bc53d67b4..7c0231bd7 100644 --- a/nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py +++ b/nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py @@ -13,19 +13,27 @@ def test_DWIPre...
[ "nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py::test_DWIPreproc_inputs" ]
[ "nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py::test_DWIPreproc_outputs" ]
{ "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://mrtrix.readthedocs.io/en/dev/reference/command...
cf4a29d3a29fd316207aa77c5b63f991a4e81756
2025-03-05 00:26:05
docker.io/swerebenchv2/amaranth-lang-amaranth:1570-cf4a29d
amaranth-lang__amaranth-1570
Method: Fragment.get(obj, platform) Location: amaranth/hdl/_ir.py Inputs: - **obj** – any object that is expected to be an instance of ``Fragment`` or implement the ``Elaboratable`` protocol (i.e., provides an ``elaborate`` method). - **platform** – an ``amaranth.board.Platform`` (or compatible) instance passed thro...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_ir.py b/amaranth/hdl/_ir.py index 0bdbb97..1370bde 100644 --- a/amaranth/hdl/_ir.py +++ b/amaranth/hdl/_ir.py @@ -49,8 +49,8 @@ class DomainRequirementFailed(Exception): class Fragment: @staticmethod def get(obj, platform): - code = None origins = [] + return...
Improve error raised when returning None from `elaborate` Fixes #1569.
Missing return in elaborate results in cryptic error A missing return gives a useful warning: `UserWarning: .elaborate() returned None; missing return statement?` but this is then followed by a cryptic error: `TypeError: Object None is not an 'Elaboratable' nor 'Fragment'` Would it be better to raise an error ins...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ir.py b/tests/test_hdl_ir.py index bbfc86c..c017f38 100644 --- a/tests/test_hdl_ir.py +++ b/tests/test_hdl_ir.py @@ -31,15 +31,13 @@ class FragmentGetTestCase(FHDLTestCase): r"^Object None is not an 'Elaboratable' nor 'Fragment'$"): Fragment.get(None, platform=N...
[ "tests/test_hdl_ir.py::FragmentGetTestCase::test_get_wrong_none", "tests/test_hdl_ir.py::FragmentGetTestCase::test_get_wrong_self" ]
[ "tests/test_hdl_ir.py::FragmentGeneratedTestCase::test_find_generated", "tests/test_hdl_ir.py::FragmentGeneratedTestCase::test_find_subfragment", "tests/test_hdl_ir.py::FragmentGeneratedTestCase::test_find_subfragment_wrong", "tests/test_hdl_ir.py::DuplicateElaboratableTestCase::test_duplicate", "tests/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
86f19d2fae0f0197f4c146955fcad8a5f26dc220
2025-05-09 14:49:26
docker.io/swerebenchv2/berriai-litellm:10697-86f19d2
berriai__litellm-10697
Function: get_utc_datetime() Location: litellm/utils.py Inputs: None – the function takes no arguments. Outputs: Returns a ``datetime`` object representing the current time in UTC (timezone‑aware). It is used wherever a UTC timestamp is required, e.g., for token expiration calculations. Description: Provides a reliable...
python
custom-check-github
diff --git a/docs/my-website/docs/providers/nscale.md b/docs/my-website/docs/providers/nscale.md index 5ebd948db..670d92a51 100644 --- a/docs/my-website/docs/providers/nscale.md +++ b/docs/my-website/docs/providers/nscale.md @@ -67,6 +67,22 @@ response = completion( print(response) ``` +```python showLineNumbers ti...
[FIX] Update token fields in schema.prisma to use BigInt for improved… … handling of large values across LiteLLM models. ## Title Integer overflow in PostgreSQL spend-tracking query causes inaccurate totals (#10379) <!-- e.g. "Implement user authentication feature" --> ## Relevant issues Fixes #10379 #...
[Bug]: PostgreSQL Integer Overflow Error in Spend Tracking System ### What happened? Issue Description When running LiteLLM with high usage, I encountered a PostgreSQL error indicating integer overflow in the spend tracking system. This occurs during the execution of the db_update_spend_transaction_handler function. ...
BerriAI/litellm
diff --git a/tests/litellm/proxy/auth/test_auth_checks.py b/tests/litellm/proxy/auth/test_auth_checks.py index 7e8d99d4e..24e8506e9 100644 --- a/tests/litellm/proxy/auth/test_auth_checks.py +++ b/tests/litellm/proxy/auth/test_auth_checks.py @@ -8,7 +8,7 @@ sys.path.insert( 0, os.path.abspath("../../..") ) # Adds...
[ "tests/litellm/proxy/auth/test_auth_checks.py::test_get_experimental_ui_login_jwt_auth_token_invalid", "tests/litellm/proxy/auth/test_auth_checks.py::test_get_key_object_from_ui_hash_key_valid" ]
[ "tests/litellm/proxy/auth/test_auth_checks.py::test_get_key_object_from_ui_hash_key_invalid" ]
{ "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": ...
aef3db3e4198d06c38bc4b0874e72ed657891eea
2021-12-20 21:27:38
docker.io/swerebenchv2/3yourmind-django-migration-linter:186-aef3db3
3yourmind__django-migration-linter-186
Function: has_create_index(sql_statements, **kwargs) Location: django_migration_linter/sql_analyser/postgresql.py Inputs: - sql_statements (Iterable[str]): list (or any iterable) of SQL statements that belong to a single migration transaction. - **kwargs: additional keyword arguments passed by the analyser (currently...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1ec8e5..15fefc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ -## 4.0.0 +## 4.0.0 (unreleased) - Drop support for Python 2.7 and 3.5 - Drop support for Django 1.11, 2.0, 2.1, 3.0 +- Fix index creation detection when table is being created in the transac...
Fix #178 -- Don't detect an index creation when the table is being created Fixes #178
Linter fails on CREATE INDEX when creating a new table Here is an example `CreateModel` from Django: ```python migrations.CreateModel( name='ShipmentMetadataAlert', fields=[ ('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True)), ('created_at', common.fields.CreatedFi...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index 00dd50e..65ab7f0 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -233,6 +233,23 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX title_idx ON films (tit...
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_non_concurrently_with_table_creation" ]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
{ "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":...
3947ea7f38fe93fa73feec5689da61061bd5520f
2019-12-17 21:24:33
docker.io/swerebenchv2/google-turbinia:484-3947ea7
google__turbinia-484
Method: DockerContainersEnumerationTask.run(self, evidence, result) Location: turbinia/workers/docker.py Inputs: - evidence (Evidence): the Docker mount point evidence to enumerate containers from. - result (TurbiniaTaskResult): result object to populate with discovered container evidence and status. Outputs: ...
python
Apache-2.0
diff --git a/turbinia/client.py b/turbinia/client.py index 2128b60..cde7c3a 100644 --- a/turbinia/client.py +++ b/turbinia/client.py @@ -41,6 +41,7 @@ from turbinia.workers.artifact import FileArtifactExtractionTask from turbinia.workers.analysis.wordpress import WordpressAccessLogAnalysisTask from turbinia.workers.a...
Fix format strings for exceptions Fixes #483
Turbiniactl Fails When the Config File is None ``` Traceback (most recent call last): ...
google/turbinia
diff --git a/turbinia/workers/docker_test.py b/turbinia/workers/docker_test.py new file mode 100644 index 0000000..cbdea8c --- /dev/null +++ b/turbinia/workers/docker_test.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# ...
[ "turbinia/workers/docker_test.py::DockerTaskTest::testDockerContainersEnumerationRun" ]
[]
{ "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": "B1", "confidence": 0.86, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
2164c4b4752b9061c742326ea0413719333058fc
2020-07-01 13:45:31
docker.io/swerebenchv2/python-markdown-markdown:994-2164c4b
python-markdown__markdown-994
Method: ShortImageReferenceInlineProcessor.evalId(self, data, index, text) Location: markdown/inlinepatterns.py (class ShortImageReferenceInlineProcessor) Inputs: - **data** – the full markdown text being processed. - **index** – the current parsing position in *data* where the reference starts. - **text** – the r...
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index 0e0bb89..897308c 100644 --- a/docs/change_log/release-3.3.md +++ b/docs/change_log/release-3.3.md @@ -70,6 +70,7 @@ The following new features have been included in the 3.3 release: The following bug fixes are included in the 3.3 rele...
Support short reference image links. Fixes #894. @facelessuser this was the first time I've done any work on inline handling code since your inline refactor. This was so easy I thought I must be missing something. Awesome! 🥇
image short-reference links not supported Hi, I've encountered an unexpected behavior: Markdown: ``` [![Build Status]](https://travis-ci.org/commonmark/cmark) [Build Status]: https://img.shields.io/travis/commonmark/cmark/master.svg?style=flat ``` Produces ``` <p> <a href="https://travis-ci.org/...
Python-Markdown/markdown
diff --git a/tests/test_syntax/inline/test_images.py b/tests/test_syntax/inline/test_images.py index 261c24b..c9c7cb8 100644 --- a/tests/test_syntax/inline/test_images.py +++ b/tests/test_syntax/inline/test_images.py @@ -158,3 +158,27 @@ class TestAdvancedImages(TestCase): """![Image](http://humane man.jpg...
[ "tests/test_syntax/inline/test_images.py::TestAdvancedImages::test_short_ref", "tests/test_syntax/inline/test_images.py::TestAdvancedImages::test_short_ref_in_link" ]
[ "tests/test_syntax/inline/test_images.py::TestAdvancedImages::test_angle_with_mixed_title_quotes", "tests/test_syntax/inline/test_images.py::TestAdvancedImages::test_misc", "tests/test_syntax/inline/test_images.py::TestAdvancedImages::test_misc_blank", "tests/test_syntax/inline/test_images.py::TestAdvancedIma...
{ "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":...
27515dbf9ba2137bd62f766d930273232338d953
2019-01-25 14:57:10
docker.io/swerebenchv2/timothycrosley-isort:810-27515db
timothycrosley__isort-810
Function: iter_source_code(source_paths, config, skipped) Location: isort/main.py Inputs: - **source_paths** (list‑like of str): root directories or files to search for Python source code. - **config** (dict): configuration mapping used by isort; the test accesses the key `safety_excludes` (bool) to enable/disable aut...
python
MIT
diff --git a/isort/main.py b/isort/main.py index 9356c6a3..8cba7b40 100644 --- a/isort/main.py +++ b/isort/main.py @@ -285,11 +285,16 @@ def create_parser(): help='Tells isort to ignore whitespace differences when --check-only is being used.') parser.add_argument('-y', '--apply', dest='app...
Refuse to work in system/.tox/venv/... directories by default This PR makes sure isort won't wander into directories where it shouldn't. By @jdufresne's suggestion, this list is based on that of [Black's](https://github.com/ambv/black/blob/024c9cab55da7bd3236fd88759c9735d6149b464/black.py#L53-L55), with my addition of ...
isort can trash Python installations Heya :) This is a bit of a corner case, but it's happened to me more than once already... So `isort` is prooobably not meant to be used on Python stdlib code, since it can be a little tricky with imports in places. However, if you happen to have a virtualenv within your worki...
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index 25ad87e7..732812a6 100644 --- a/test_isort.py +++ b/test_isort.py @@ -25,11 +25,12 @@ from __future__ import absolute_import, division, print_function, unicode_litera from tempfile import NamedTemporaryFile import io +import os import sys import pytest -from is...
[ "test_isort.py::test_safety_excludes[True]" ]
[ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
733298467695eea0fad93755142399bc168cd39e
2025-01-08 16:56:01
docker.io/swerebenchv2/pythainlp-pythainlp:1059-7332984
pythainlp__pythainlp-1059
Function: longest_common_subsequence(str1: str, str2: str) -> str Location: pythainlp/util/lcs.py Inputs: two strings `str1` and `str2` (each may be empty); the function treats the inputs as sequences of characters. Outputs: a string representing the longest common subsequence of the two inputs (empty string if no comm...
python
Apache-2.0
diff --git a/docs/api/util.rst b/docs/api/util.rst index 76452e12..1979e44e 100644 --- a/docs/api/util.rst +++ b/docs/api/util.rst @@ -283,6 +283,11 @@ Modules The `Trie` class is a data structure for efficient dictionary operations. It's a valuable resource for managing and searching word lists and dictionaries...
Add longest common subsequence algorithm Fixes #211 Add the longest common subsequence algorithm to the `pythainlp.util` module. * Create a new file `pythainlp/util/lcs.py` to implement the longest common subsequence algorithm. * Define a function `longest_common_subsequence` that takes two strings as input and retur...
Add longest common sub-sequence algorithm Hi, due to my work require me to write calculate "similarity" of strings, I've created a dynamic programming version of my own and I would like to contribute to pythainlp. I will submit a pull request within 2-3 days if there is not any problem. Reference https://en.wiki...
PyThaiNLP/pythainlp
diff --git a/tests/core/test_util.py b/tests/core/test_util.py index f0a8e31b..5b8b12a9 100644 --- a/tests/core/test_util.py +++ b/tests/core/test_util.py @@ -32,6 +32,7 @@ from pythainlp.util import ( ipa_to_rtgs, isthai, isthaichar, + longest_common_subsequence, nectec_to_ipa, normalize, ...
[ "tests/core/test_util.py::UtilTestCase::test_collate", "tests/core/test_util.py::UtilTestCase::test_convert_years", "tests/core/test_util.py::UtilTestCase::test_count_thai_chars", "tests/core/test_util.py::UtilTestCase::test_countthai", "tests/core/test_util.py::UtilTestCase::test_date", "tests/core/test_...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://en.wikipedia.org/wiki/Longest_common_subsequen...
32592a534aac6a44d6547d92a2ca12f6c4b79de8
2025-03-31 11:21:18
docker.io/swerebenchv2/getmoto-moto:8739-32592a5
getmoto__moto-8739
Method: SecretsManagerBackend.create_managed_secret(self, service_name: str, secret_id: str, secret_string: Optional[str] = None, secret_binary: Optional[str] = None, description: Optional[str] = None, tags: Optional[List[Dict[str, str]]] = None, kms_key_id: Optional[str] = None, version_id: Optional[str] = None, repli...
python
Apache-2.0
diff --git a/MANIFEST.in b/MANIFEST.in index d35a9d24a..1c7c1ebbe 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -20,4 +20,3 @@ include moto/ssm/resources/ecs/optimized_amis/*.json include moto/support/resources/*.json recursive-include moto/moto_server * recursive-include tests * -recursive-exclude tests/terraformte...
Admin: Update project metadata Fixes #8738 The license-expression was changed recently due to [PEP 639](https://peps.python.org/pep-0639/). [The docs](https://packaging.python.org/en/latest/specifications/core-metadata/#classifier-multiple-use) now explicitly call out that `License ::` is deprecated in favor of `Li...
setuptools deprecation warnings When building the wheel for 5.1.2, I'm seeing the following deprecation warnings: ``` /usr/lib/python3.10/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! *****************************************************************...
getmoto/moto
diff --git a/.github/workflows/tests_sdk_ruby.yml b/.github/workflows/tests_sdk_ruby.yml index 624c04d75..389a1024d 100644 --- a/.github/workflows/tests_sdk_ruby.yml +++ b/.github/workflows/tests_sdk_ruby.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ru...
[ "tests/test_events/test_events.py::test_kms_key_is_created[with_headers-auth_params]", "tests/test_events/test_events.py::test_kms_key_is_created[with_headers-basic_auth_params]", "tests/test_events/test_events.py::test_kms_key_is_created[without_headers-auth_params]", "tests/test_events/test_events.py::test_...
[ "tests/test_events/test_events.py::test_put_rule", "tests/test_events/test_events.py::test_put_rule__where_event_bus_name_is_arn", "tests/test_events/test_events.py::test_put_rule_error_schedule_expression_custom_event_bus", "tests/test_events/test_events.py::test_list_rules", "tests/test_events/test_events...
{ "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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://packaging.python.org/en/latest/guides/writing-py...
89874ca47cbb3fb3d56f91b043a09b5ec81959a8
2025-06-29 07:11:24
docker.io/swerebenchv2/agronholm-anyio:935-89874ca
agronholm__anyio-935
No new interfaces are introduced.
python
MIT
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 0c30277..61f2ed0 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -39,6 +39,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. (`#926 <https://github.com/agronholm/anyio/issues/926>`_; PR by @hroncok)...
Fixs RunVar name conflicts. RunVar instances with the same name should not share storage. <!-- Thank you for your contribution! --> ## Changes Fixes #880. <!-- Provide issue number if exists --> <!-- Please give a short brief about these changes. --> ## Checklist If this is a user-facing code change, li...
RunVar name conflicts ### Things to check first - [x] I have searched the existing issues and didn't find my bug already reported there - [x] I have checked that my bug is still present in the latest release ### AnyIO version 4.8.0 ### Python version 3.12.9 ### What happened? `anyio.lowlevel.RunVar` instances ...
agronholm/anyio
diff --git a/tests/test_lowlevel.py b/tests/test_lowlevel.py index 37795e5..b1e85c0 100644 --- a/tests/test_lowlevel.py +++ b/tests/test_lowlevel.py @@ -126,3 +126,16 @@ class TestRunVar: var.reset(token) with pytest.raises(ValueError, match="This token has already been used"): var.reset(...
[ "tests/test_lowlevel.py::TestRunVar::test_runvar_does_not_share_storage_by_name[asyncio]", "tests/test_lowlevel.py::TestRunVar::test_runvar_does_not_share_storage_by_name[asyncio+uvloop]", "tests/test_lowlevel.py::TestRunVar::test_runvar_does_not_share_storage_by_name[trio]" ]
[ "tests/test_lowlevel.py::test_checkpoint_if_cancelled[asyncio-False]", "tests/test_lowlevel.py::test_checkpoint_if_cancelled[asyncio-True]", "tests/test_lowlevel.py::test_checkpoint_if_cancelled[asyncio+uvloop-False]", "tests/test_lowlevel.py::test_checkpoint_if_cancelled[asyncio+uvloop-True]", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://peps.python.org/pep-0567/#implementation", ...
e4e477caff85074fdf5acd93124f34e6b85d811a
2024-03-27 12:55:47
docker.io/swerebenchv2/stingraysoftware-stingray:814-e4e477c
stingraysoftware__stingray-814
No new interfaces are introduced.
python
MIT
diff --git a/docs/changes/814.bugfix.rst b/docs/changes/814.bugfix.rst new file mode 100644 index 00000000..d90606d6 --- /dev/null +++ b/docs/changes/814.bugfix.rst @@ -0,0 +1,1 @@ +Fix issue when setting a property from a FITS file read diff --git a/stingray/base.py b/stingray/base.py index 717630d7..a70fed44 100644 -...
Fix property setting from astropy Resolve #813
Error reading the event file Hi Stingray Development Team, When analyzing a NICER X-ray data, I got an error when reading the event file: File /data/software/anaconda/envs/tugbabztp/lib/python3.12/site-packages/stingray/events.py:625, in EventList.read(cls, filename, fmt, **kwargs) 622 setat...
StingraySoftware/stingray
diff --git a/stingray/tests/test_base.py b/stingray/tests/test_base.py index cb3c7143..37128486 100644 --- a/stingray/tests/test_base.py +++ b/stingray/tests/test_base.py @@ -4,6 +4,7 @@ import copy import pytest import numpy as np import matplotlib.pyplot as plt +from astropy.table import Table from stingray.base ...
[ "stingray/tests/test_base.py::TestStingrayTimeseries::test_setting_property_fails" ]
[ "stingray/tests/test_base.py::TestStingrayObject::test_print", "stingray/tests/test_base.py::TestStingrayObject::test_preliminary", "stingray/tests/test_base.py::TestStingrayObject::test_instantiate_without_main_array_attr", "stingray/tests/test_base.py::TestStingrayObject::test_equality", "stingray/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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
6c8fdbc7aecabb66272bd906c123808048308885
2020-12-27 16:15:04
docker.io/swerebenchv2/aio-libs-aiosmtpd:225-6c8fdbc
aio-libs__aiosmtpd-225
Function: auth_mechanism(actual_name: str) Location: aiosmtpd.smtp Inputs: a string naming the AUTH mechanism to be implemented; the name is converted to uppercase and must match the regular expression `[A-Z0-9_-]+` (only letters, digits, underscore or dash). Invalid names raise `ValueError`. Outputs: a decorator calla...
python
Apache-2.0
diff --git a/.gitignore b/.gitignore index 34d0ea4..5a24133 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ _dynamic/ coverage.xml diffcov.html .python-version +.pytype/ diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/docs/NEWS.rst index 167e830..05628e0 100644 --- a/aiosmtpd/docs/NEWS.rst +++ b/aiosmtpd/d...
Workaround to specify additional AUTH mechanisms with dash ## What do these changes do? The current implementation for AUTH Hooks does not allow AUTH mechanisms with dash(es) in their names. For example, it is not possible to create a handler method for `CRAM-MD5` or `DIGEST-MD5`, because the code simply takes th...
Current AUTH hook implementation cannot support mechanisms with dash "-" in the name The current implementation simply searches for `auth_*` methods in the handler, chop off the `auth_` part, and present the chopped name as is to the list of supported authentications. This means that AUTH mechanisms such as "CRAM-MD...
aio-libs/aiosmtpd
diff --git a/aiosmtpd/tests/test_smtp.py b/aiosmtpd/tests/test_smtp.py index 2730c0d..04f541a 100644 --- a/aiosmtpd/tests/test_smtp.py +++ b/aiosmtpd/tests/test_smtp.py @@ -9,7 +9,7 @@ import warnings from aiosmtpd.controller import Controller from aiosmtpd.handlers import Sink from aiosmtpd.smtp import ( - MISSI...
[ "aiosmtpd/tests/test_smtp.py::TestProtocol::test_empty_email", "aiosmtpd/tests/test_smtp.py::TestProtocol::test_honors_mail_delimeters", "aiosmtpd/tests/test_smtp.py::TestSMTP::test_auth_already_authenticated", "aiosmtpd/tests/test_smtp.py::TestSMTP::test_auth_bad_base64_encoding", "aiosmtpd/tests/test_smtp...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.iana.org/assignments/sasl-mechanisms/sasl-...
e2fa5fa9413589d354e31d3a48736a285f504f85
2024-02-07 23:39:04
docker.io/swerebenchv2/cogent3-cogent3:1709-e2fa5fa
cogent3__cogent3-1709
Method: SeqView.__init__(self, seq, *, start: int = None, stop: int = None, step: int = None, offset: int = 0, seqid: str = None) Location: src/cogent3/core/sequence.py Inputs: - **seq** – the underlying sequence (string, list or compatible Sequence object). - **start**, **stop**, **step** – optional slicing paramet...
python
BSD-3-Clause
diff --git a/src/cogent3/core/sequence.py b/src/cogent3/core/sequence.py index bc4fbf996..8b79814e5 100644 --- a/src/cogent3/core/sequence.py +++ b/src/cogent3/core/sequence.py @@ -1910,7 +1910,7 @@ def _input_vals_neg_step(seqlen, start, stop, step): class SeqView: - __slots__ = ("seq", "start", "stop", "step"...
DEV: added seqid arg to SeqView, fixes #1708
add attribute to `SeqView` to keep track of the original seqid The problem: given a sequence with annotations, if it is renamed, the connection to the underlying annotations will be broken. Solving this requires keeping track of the "parent" name, which we are calling the seqid, via the `SeqView` class. The firs...
cogent3/cogent3
diff --git a/tests/test_core/test_sequence.py b/tests/test_core/test_sequence.py index 99f4cd146..755120cb3 100644 --- a/tests/test_core/test_sequence.py +++ b/tests/test_core/test_sequence.py @@ -1832,28 +1832,34 @@ def test_seqview_remove_gaps(): def test_seqview_repr(): - # case 1: Short sequence, defaults +...
[ "tests/test_core/test_sequence.py::test_seqview_repr", "tests/test_core/test_sequence.py::test_seqview_seqid", "tests/test_core/test_sequence.py::test_seqview_rich_dict_round_trip_seqid", "tests/test_core/test_sequence.py::test_seqview_slice_propagates_seqid" ]
[ "tests/test_core/test_sequence.py::SequenceTests::test_add", "tests/test_core/test_sequence.py::SequenceTests::test_add2", "tests/test_core/test_sequence.py::SequenceTests::test_can_match", "tests/test_core/test_sequence.py::SequenceTests::test_can_mismatch", "tests/test_core/test_sequence.py::SequenceTests...
{ "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":...
df892b87365f4a62cab33c98f49ed84660bd18e6
2020-04-19 00:14:29
docker.io/swerebenchv2/wtforms-wtforms:568-df892b8
wtforms__wtforms-568
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 894caad..a8f47a4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -66,6 +66,7 @@ Unreleased - Choices which name and data are the same do not need to use tuples. (:pr:`526`) - :class:`~validators.URL` validator now allows query parameters in the URL. (:pr:`523`, :pr:`524...
Avoid to cache form errors Caching form errors may cause some strange behaviors when a form `errors` attribute is accessed during validation, and performance benefits are not obvious. This should fix #522
Form errors property isn't idempotent The 'errors' property in BaseForm isn't idempotent. In particular - if you iterate over a forms attributes using e.g. inspect.getmembers - this will cause 'errors' to change from 'None' to dict({}). And so it won't be updated if any fields add/incur errors later in processing. A...
wtforms/wtforms
diff --git a/tests/test_form.py b/tests/test_form.py index ce17bdd..e1d5884 100644 --- a/tests/test_form.py +++ b/tests/test_form.py @@ -5,7 +5,7 @@ import pytest from wtforms.form import BaseForm, Form from wtforms.meta import DefaultMeta from wtforms.fields import StringField, IntegerField -from wtforms.validators...
[ "tests/test_form.py::TestForm::test_errors_access_during_validation" ]
[ "tests/test_form.py::TestBaseForm::test_data_proxy", "tests/test_form.py::TestBaseForm::test_errors_proxy", "tests/test_form.py::TestBaseForm::test_contains", "tests/test_form.py::TestBaseForm::test_field_removal", "tests/test_form.py::TestBaseForm::test_field_adding", "tests/test_form.py::TestBaseForm::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
992713eda63c2dac3076ddb0af49ba20605c7523
2024-11-02 20:42:28
docker.io/swerebenchv2/getmoto-moto:8281-992713e
getmoto__moto-8281
Method: Service.__init__(self, cluster: Cluster, name: str, task_definition: str, desired_count: int = 0, launch_type: Optional[str] = None, deployment_configuration: Optional[Dict[str, Any]] = None, service_registries: Optional[List[Dict[str, Any]]] = None, platform_version: Optional[str] = None, propagate_tags: str =...
python
Apache-2.0
diff --git a/moto/ec2/resources/instance_type_offerings/availability-zone-id/ap-southeast-5.json b/moto/ec2/resources/instance_type_offerings/availability-zone-id/ap-southeast-5.json index 51983ae55..7cf81d7eb 100644 --- a/moto/ec2/resources/instance_type_offerings/availability-zone-id/ap-southeast-5.json +++ b/moto/ec...
ECS: create_task_set() now creates tasks Fixes #8267
ecs create_task_set does not create tasks (and obviously not propagate tags) Moto ecs `create_task_set` does not result in running tasks. Additionally, it should propagate tags to the tasks, depending on service [PropagateTags setting](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/clie...
getmoto/moto
diff --git a/tests/test_ecs/test_ecs_tasksets.py b/tests/test_ecs/test_ecs_tasksets.py index ce6087949..fe309e643 100644 --- a/tests/test_ecs/test_ecs_tasksets.py +++ b/tests/test_ecs/test_ecs_tasksets.py @@ -1,8 +1,12 @@ +import json + import boto3 import pytest from botocore.exceptions import ClientError from m...
[ "tests/test_ecs/test_ecs_tasksets.py::test_create_task_set_and_list_tasks" ]
[ "tests/test_ecs/test_ecs_tasksets.py::test_create_task_set", "tests/test_ecs/test_ecs_tasksets.py::test_create_task_set_errors", "tests/test_ecs/test_ecs_tasksets.py::test_describe_task_sets", "tests/test_ecs/test_ecs_tasksets.py::test_delete_task_set", "tests/test_ecs/test_ecs_tasksets.py::test_delete_task...
{ "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://boto3.amazonaws.com/v1/documentation/api/lates...
4080f70cd4e54f92f05e1dd6b8a111ef1f4dfac3
2017-08-10 23:42:41
docker.io/swerebenchv2/openmined-pysyft:113-4080f70
openmined__pysyft-113
Method: TensorBase.__init__(self, arr_like, encrypted=False) Location: syft.tensor.TensorBase Inputs: arr_like – any array‑like object (e.g., numpy.ndarray, list, scalar) that will be converted to a numpy.ndarray; encrypted – bool flag (default False) indicating whether the tensor is encrypted (currently unused). ...
python
Apache-2.0
diff --git a/.gitignore b/.gitignore index b7fe12aa16..92979d232e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ syft.egg-info/ */**/__pycache__ .ipynb_checkpoints/ *.pickle +lastfailed +pytest_runner* +.eggs/ \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000...
Implemented a base tensor class that can perform basic math operations Fixes #19
Implement Base Tensor Object In this ticket, we want to create a new basic type called a "Tensor". A Tensor is a nested list of numbers with an arbitrary number of dimensions. With one dimension, it's a list of numbers known as a "vector". With two dimensions, it's a list of lists of numbers known as a "matrix". In thi...
OpenMined/PySyft
diff --git a/syft/test/__init__.py b/syft/test/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/test_tensor.py b/tests/test_tensor.py new file mode 100644 index 0000000000..ae9cb22b63 --- /dev/null +++ b/tests/test_tensor.py @@ -0,0 +1,66 @@ +from syft import TensorBase +import unitt...
[ "tests/test_tensor.py::AddTests::testInplace", "tests/test_tensor.py::AddTests::testScalar", "tests/test_tensor.py::AddTests::testSimple", "tests/test_tensor.py::SubTests::testInplace", "tests/test_tensor.py::SubTests::testScalar", "tests/test_tensor.py::SubTests::testSimple", "tests/test_tensor.py::Mul...
[]
{ "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.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pytorch/pytorch/blob/master/torch/ten...
7c99a4953085186790a28dd441a93dc665f61269
2021-09-19 14:39:56
docker.io/swerebenchv2/python-attrs-attrs:843-7c99a49
python-attrs__attrs-843
No new interfaces are introduced.
python
MIT
diff --git a/changelog.d/843.change.rst b/changelog.d/843.change.rst new file mode 100644 index 0000000..7469501 --- /dev/null +++ b/changelog.d/843.change.rst @@ -0,0 +1,2 @@ +``attr.resolve_types()`` now resolves types of subclasses after the parents are resolved. +`#842 <https://github.com/python-attrs/attrs/issues/...
Fix bug in resolve_types with subclasses # Pull Request Check List This is just a friendly reminder about the most common mistakes. Please make sure that you tick all boxes. But please read our [contribution guide](https://www.attrs.org/en/latest/contributing.html) at least once, it will save you unnecessary revie...
`attr.resolve_types` caches badly with inheritence Reproduction case: ```py from __future__ import annotations import attr @attr.define() class A: n: int @attr.define() class B(A): pass attr.resolve_types(A) attr.resolve_types(B) print(attr.fields(B)) ``` I believe this is because `B` is...
python-attrs/attrs
diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 2df6311..dd81522 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -618,6 +618,40 @@ class TestAnnotations: with pytest.raises(NameError): typing.get_type_hints(C.__init__) + def test_inheritance(...
[ "tests/test_annotations.py::TestAnnotations::test_inheritance" ]
[ "tests/test_annotations.py::TestAnnotations::test_basic_annotations", "tests/test_annotations.py::TestAnnotations::test_catches_basic_type_conflict", "tests/test_annotations.py::TestAnnotations::test_typing_annotations", "tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/python-attrs/attrs/issues/842" ],...
9cb3f4b94887f6e66e8a844edd555c659e70a66e
2020-03-02 12:09:11
docker.io/swerebenchv2/scoutapp-scout-apm-python:491-9cb3f4b
scoutapp__scout_apm_python-491
Method: TrackedRequest.start_span(self, operation, **kwargs) Location: src/scout_apm/core/tracked_request.py (inside the TrackedRequest class) Inputs: - operation (str): the name of the operation being traced. - **kwargs: optional keyword arguments forwarded to the Span constructor (e.g., parent_id, etc.). Important...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bbaeed..4607cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ configuration between Django and Celery. Pass your application as `app` to have the configuration copied: `scout_apm.celery.install(app=app)` ([Issue #477](https://github.com/scoutapp/sc...
Implement max span limit Fixes #472.
Total span limit For *really* long running background jobs it'd be possible to have a tracked request with so many spans it causes memory problems. Following #471 we should probably have a (very high) total cap on the number of captured spans.
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_tracked_request.py b/tests/unit/core/test_tracked_request.py index 5d471dc..2db95e7 100644 --- a/tests/unit/core/test_tracked_request.py +++ b/tests/unit/core/test_tracked_request.py @@ -2,10 +2,12 @@ from __future__ import absolute_import, division, print_function, unicode_literals ...
[ "tests/unit/core/test_tracked_request.py::test_start_span_at_max_ignores_span" ]
[ "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":...
74e90dd9b8f9c1a5c48a2515126654f4d398d687
2025-04-15 17:14:24
docker.io/swerebenchv2/yt-dlp-yt-dlp:12919-74e90dd
yt-dlp__yt-dlp-12919
Function: PATCHRequest(url, *args, **kwargs) Location: yt_dlp.networking.common (exported via yt_dlp.networking.__init__) Inputs: - **url** (str): Target URL for the HTTP request. - Optional positional and keyword arguments forwarded to the underlying `Request` constructor (e.g., `headers`, `data`, `timeout`). Outpu...
python
Unlicense
diff --git a/README.md b/README.md index c0329f539..0cc2cd7b2 100644 --- a/README.md +++ b/README.md @@ -1770,7 +1770,7 @@ #### youtube * `lang`: Prefer translated metadata (`title`, `description` etc) of this language code (case-sensitive). By default, the video primary language metadata is preferred, with a fallback...
[ie/CDAFolder] Extend `_VALID_URL` <!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope ...
Hyphen not allowed in CDA's channel name ### Checklist - [x] I'm reporting that yt-dlp is broken on a **supported** site - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [x] I've checked that all provided URLs are playab...
yt-dlp/yt-dlp
diff --git a/test/helper.py b/test/helper.py index 4169af799..e4cb478e2 100644 --- a/test/helper.py +++ b/test/helper.py @@ -136,7 +136,7 @@ def _iter_differences(got, expected, field): return if op == 'startswith': - if not val.startswith(got): + if not got.startswith(val)...
[ "test/test_networking.py::TestHTTPRequestHandler::test_verify_cert[Urllib]", "test/test_networking.py::TestHTTPRequestHandler::test_ssl_error[Urllib]", "test/test_networking.py::TestHTTPRequestHandler::test_legacy_ssl_extension[Urllib]", "test/test_networking.py::TestHTTPRequestHandler::test_legacy_ssl_suppor...
[]
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/yt-dlp/yt-dlp#update-channels", ...
92d25a7066227d18f852eb49a397b46c11f0dc1a
2024-09-28 01:17:33
docker.io/swerebenchv2/stanfordnlp-dspy:1556-92d25a7
stanfordnlp__dspy-1556
Method: Signature.dump_state(self) Location: dspy/signatures/signature.py – defined in `SignatureMeta.dump_state` (accessible via a Signature instance). Inputs: None (uses the Signature's own `instructions` and `fields`). Outputs: `dict` – a serializable state containing `"instructions"` (str) and `"fields"` (lis...
python
MIT
diff --git a/dspy/predict/predict.py b/dspy/predict/predict.py index 8bd42699..a029a117 100644 --- a/dspy/predict/predict.py +++ b/dspy/predict/predict.py @@ -1,16 +1,15 @@ +import logging import random +from functools import lru_cache from pydantic import BaseModel import dsp from dspy.predict.parameter import...
Fix signature saving at Predict saving resolve #1045 Change summary: - Add a `dump_state`/`load_state` pair to Signature class for better modularization. - Remove the `save_verbose` option, as it doesn't make sense to change input fields to output fields at loading time. As we are doing "weights-only" saving, t...
Saving/Loading Method for signatures in dspy.Predict Currently the dump_state / load_state method in dspy.Predict only saves signature_instructions and signature_prefix - the prefix for the final key in the signature: ``` def dump_state(self): ............ # Cache the signature instruction...
stanfordnlp/dspy
diff --git a/tests/predict/test_predict.py b/tests/predict/test_predict.py index b04e087e..8d0121ee 100644 --- a/tests/predict/test_predict.py +++ b/tests/predict/test_predict.py @@ -126,6 +126,27 @@ def test_typed_demos_after_dump_and_load_state(): # Demos don't need to keep the same types after saving and loadin...
[ "tests/predict/test_predict.py::test_signature_fields_after_dump_and_load_state", "tests/signatures/test_signature.py::test_dump_and_load_state" ]
[ "tests/predict/test_predict.py::test_initialization_with_string_signature", "tests/predict/test_predict.py::test_reset_method", "tests/predict/test_predict.py::test_lm_after_dump_and_load_state", "tests/predict/test_predict.py::test_call_method", "tests/predict/test_predict.py::test_instructions_after_dump_...
{ "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":...
ecf02d72e7047913b8062613521b83db86effec6
2018-04-09 13:13:15
docker.io/swerebenchv2/maniacallabs-bibliopixel:759-ecf02d7
maniacallabs__bibliopixel-759
Method: ListMath.add(color_list, source, level=1, buffer=None) Location: bibliopixel.util.color_list Inputs: color_list – mutable sequence of RGB tuples or list; source – same type; level – numeric gain (default 1); buffer – optional temporary buffer for NumPy implementation (may be None). Outputs: Returns a buffer ob...
python
MIT
diff --git a/bibliopixel/animation/limiter.py b/bibliopixel/animation/limiter.py new file mode 100644 index 0000000..9463707 --- /dev/null +++ b/bibliopixel/animation/limiter.py @@ -0,0 +1,22 @@ +from . import wrapper +from .. util import color_list +from .. util.limit import Limit + + +class Limiter(wrapper.Wrapper): ...
New Limiter animation (fix #708) The first commit is basically a bugfix. Then we simplify the math handling considerably, removing a whole poorly-conceived `ColorList` class and replacing it with nothing. Much better! The rest is self-explanatory.
Device brightness limiters/compressors From [the list](https://groups.google.com/forum/#!topic/maniacal-labs-users/0Qe75tYnBc8): > I'm also looking to limit the total power consumption of each pendant so that I don't have to have each light hanging by a thick cord. By treating each pendant as a unique object, I hope...
ManiacalLabs/BiblioPixel
diff --git a/test/bibliopixel/util/color_list_test.py b/test/bibliopixel/util/color_list_test.py index f70b8c9..3435260 100644 --- a/test/bibliopixel/util/color_list_test.py +++ b/test/bibliopixel/util/color_list_test.py @@ -1,7 +1,7 @@ import numpy, unittest -from numpy import array_equal -from bibliopixel.util imp...
[ "test/bibliopixel/util/color_list_test.py::ColorListTest::test_clear_list", "test/bibliopixel/util/color_list_test.py::ColorListTest::test_clear_numpy", "test/bibliopixel/util/color_list_test.py::ColorListTest::test_copy_list", "test/bibliopixel/util/color_list_test.py::ColorListTest::test_copy_numpy", "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": null, "confidence": null, "detected_issues": null, "difficulty": null, "external_urls": null, "intent_completeness": null, "pr_categories": null, "reasoning": null, "test_alignment_issues": null }, "num_modified_files": 10, "num_modified_lines": 15...
76ec6f5ce5572f66d82717e296480dc42584f0b7
2023-08-07 19:05:23
docker.io/swerebenchv2/kubernetes-client-python:2100-76ec6f5
kubernetes-client__python-2100
No new interfaces are introduced.
python
Apache-2.0
diff --git a/kubernetes/base/watch/watch.py b/kubernetes/base/watch/watch.py index 71fd45919..f78ab11d6 100644 --- a/kubernetes/base/watch/watch.py +++ b/kubernetes/base/watch/watch.py @@ -52,20 +52,33 @@ def _find_return_type(func): def iter_resp_lines(resp): - prev = "" - for seg in resp.stream(amt=None, d...
Fix UTF-8 failures in Watch <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://git.k8s.io/community/contr...
Crash when streaming event with non-UTF-8 data **What happened (please include outputs or screenshots)**: ``` 72 [00000] File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/kubernetes/watch/watch.py", line 165, in stream 72 [00000] for line in iter_resp_lines(resp): 72 [00000] File "/root/.pyen...
kubernetes-client/python
diff --git a/kubernetes/base/watch/watch_test.py b/kubernetes/base/watch/watch_test.py index 8164e7b5d..c5bc5c378 100644 --- a/kubernetes/base/watch/watch_test.py +++ b/kubernetes/base/watch/watch_test.py @@ -61,6 +61,9 @@ class WatchTests(unittest.TestCase): if count == 4: w.stop() + ...
[ "kubernetes/base/watch/watch_test.py::WatchTests::test_watch_with_invalid_utf8", "kubernetes/base/watch/watch_test.py::WatchTests::test_watch_with_multibyte_utf8" ]
[ "kubernetes/base/watch/watch_test.py::WatchTests::test_unmarshal_with_bookmark", "kubernetes/base/watch/watch_test.py::WatchTests::test_unmarshal_with_custom_object", "kubernetes/base/watch/watch_test.py::WatchTests::test_unmarshal_with_float_object", "kubernetes/base/watch/watch_test.py::WatchTests::test_unm...
{ "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/kubernetes-client/python-base/issue...
ff36ef9d98536734330e52fbe05f31bcf0f4a818
2023-10-04 18:11:01
docker.io/swerebenchv2/brazilian-utils-brutils-python:216-ff36ef9
brazilian-utils__brutils-python-216
Function: validate(pis: str) -> bool Location: brutils.pis.validate Inputs: pis – a string that should contain exactly 11 numeric characters (no separators). Outputs: bool – **True** if the string has length 11, consists only of digits, and its last digit matches the checksum; **False** otherwise. Description: Performs...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fdee78..ca57531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Utilitário `is_valid_pis` [#216](https://github.com/brazilian-utils/brutils-python/pull/216) - ...
feat: add is_valid_pis ## Descrição Adiciona suporte à validação de números PIS/PASEP. ## Mudanças Propostas <!--- Liste as principais alterações ou melhorias que estão sendo propostas neste Pull Request. - Exemplo 1: Descrição da primeira alteração. - Exemplo 2: Descrição da segunda alteração. - ...--> Impl...
Validar PIS **Seu pedido de recurso está relacionado a um problema? Por favor, descreva.** Verificar se uma String corresponde a um número de PIS válido, conforme as regras da numeração. **Descreva a solução que você gostaria** Chamar um novo utilitário passando uma String e receber um boolean indicando se a Str...
brazilian-utils/brutils-python
diff --git a/tests/test_pis.py b/tests/test_pis.py new file mode 100644 index 0000000..bd81287 --- /dev/null +++ b/tests/test_pis.py @@ -0,0 +1,58 @@ +from os import pardir +from os.path import abspath, join, dirname +from sys import path, version_info, dont_write_bytecode +from inspect import getsourcefile +from unitt...
[ "tests/test_pis.py::TestPIS::test_checksum", "tests/test_pis.py::TestPIS::test_is_valid", "tests/test_pis.py::TestPIS::test_validate" ]
[]
{ "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.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pt.wikipedia.org/wiki/PIS/PASEP", "https...
d90a2a26505ac851bc6d50e38b60f078e08796af
2021-09-03 02:51:42
docker.io/swerebenchv2/canonical-operator:601-d90a2a2
canonical__operator-601
Method: ContainerMeta.mounts(self) Location: ops/charm.py → class ContainerMeta Inputs: None (property accessor) Outputs: typing.Dict[str, ContainerStorageMeta] – a dictionary mapping storage‑name keys to ContainerStorageMeta objects for the container. Raises no errors. Description: Provides read‑only access to the...
python
Apache-2.0
diff --git a/ops/charm.py b/ops/charm.py index 85c4a4d..11ed17f 100755 --- a/ops/charm.py +++ b/ops/charm.py @@ -893,7 +893,92 @@ class ContainerMeta: Attributes: name: Name of container (key in the YAML) + mounts: :class:`ContainerStorageMeta` mounts available to the container """ - de...
Add storagemappings to ContainerMeta as ContainerStorageMeta Add a `.mounts` properties to `ContainerMeta`, so charm authors can check: `self.containers[name].mounts[key].location` If there are multiple mount points for the same storage, this will raise a `RuntimeError` with a message indicating that the `.locati...
ingest mounted location into CharmMeta Obtaining storage location via the storages section, ```python self.meta.storages["data"].location ``` is not very useful for k8s charms because for k8s charms that sepcifies mount point in the charm container, not the workload. For the workload, would need something like: `...
canonical/operator
diff --git a/test/test_charm.py b/test/test_charm.py index 78dd4aa..556c606 100755 --- a/test/test_charm.py +++ b/test/test_charm.py @@ -24,6 +24,7 @@ from ops.charm import ( CharmMeta, CharmEvents, ContainerMeta, + ContainerStorageMeta, ) from ops.framework import Framework, EventSource, EventBase ...
[ "test/test_charm.py::TestCharm::test_action_event_defer_fails", "test/test_charm.py::TestCharm::test_action_events", "test/test_charm.py::TestCharm::test_basic", "test/test_charm.py::TestCharm::test_containers", "test/test_charm.py::TestCharm::test_containers_storage", "test/test_charm.py::TestCharm::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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/canonical/operator/blob/b1a8fffc053...
f756b71117493caea093bac79d576207d8f96482
2021-11-23 12:04:34
docker.io/swerebenchv2/nipy-nipype:3414-f756b71
nipy__nipype-3414
Function: get_default_args(func) Location: nipype.interfaces.dipy.base Inputs: - **func** (callable): The target function whose optional (default‑valued) parameters should be inspected. Outputs: - **dict** – Mapping of parameter names to their default values for all parameters that have a default defined (i.e., were ...
python
custom-check-github
diff --git a/nipype/info.py b/nipype/info.py index f6d52f576..c9df1dbc0 100644 --- a/nipype/info.py +++ b/nipype/info.py @@ -162,7 +162,7 @@ TESTS_REQUIRES = [ EXTRA_REQUIRES = { "data": ["datalad"], "doc": [ - "dipy!=1.4.1", + "dipy", "ipython", "matplotlib", "nbsphi...
[FIX] Import error for nipype.interfaces.dipy.base This PR should fix the import issue with the DIPY interface. DIPY project introduces a new deprecator decorator which was not well handled by `inspect.getfullargspec()`. So, I just replace `inspect.getfullargspec()` by `inspect.signature()`. fix #3411 fix https...
Import error for `nipype.interfaces.dipy.base` ### Summary `import nipype.interfaces.dipy` generates an error for me, with Python 3.9 and 3.8, Dipy 4.12 (latest release) and latest release or current master of nipype. ### Actual behavior Running the above import generates the error `TypeError: 'NoneType' objec...
nipy/nipype
diff --git a/nipype/interfaces/dipy/tests/test_base.py b/nipype/interfaces/dipy/tests/test_base.py index 38922ba0b..d378cb16e 100644 --- a/nipype/interfaces/dipy/tests/test_base.py +++ b/nipype/interfaces/dipy/tests/test_base.py @@ -1,4 +1,5 @@ import pytest +from packaging.version import Version from collections imp...
[ "nipype/interfaces/dipy/tests/test_base.py::test_convert_to_traits_type", "nipype/interfaces/dipy/tests/test_base.py::test_create_interface_specs" ]
[]
{ "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/nipy/nipype/blob/f756b71117493caea0...
827832ab7908581fcd82f13e30bc061baabb9bd0
2025-05-04 00:45:36
docker.io/swerebenchv2/dpkp-kafka-python:2612-827832a
dpkp__kafka-python-2612
No new interfaces are introduced.
python
Apache-2.0
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py index 16b3fbb..e7757e7 100644 --- a/kafka/consumer/fetcher.py +++ b/kafka/consumer/fetcher.py @@ -418,7 +418,7 @@ class Fetcher(six.Iterator): expire_at = time.time() + self.config['request_timeout_ms'] / 1000 self._subscriptio...
Fix Fetch._reset_offsets_async() KeyError when fetching from multiple nodes Fix #2611
KeyError in kafka/consumer/fetcher.py _reset_offsets_async() After upgrade from 2.1.5 to 2.2.3 we sporadically ran into: ``` KeyError TopicPartition(topic='redacted-topic-name', partition=117) ``` on line 428 here: https://github.com/dpkp/kafka-python/blame/2767d14b6cd33f2e55e7004e2e33467746a8fd9e/kafka/consumer/fetch...
dpkp/kafka-python
diff --git a/test/test_fetcher.py b/test/test_fetcher.py index f4e1f3f..0ef3495 100644 --- a/test/test_fetcher.py +++ b/test/test_fetcher.py @@ -134,18 +134,27 @@ def test_reset_offsets_if_needed(fetcher, topic, mocker): def test__reset_offsets_async(fetcher, mocker): - tp = TopicPartition("topic", 0) + tp0 ...
[ "test/test_fetcher.py::test__reset_offsets_async" ]
[ "test/test_fetcher.py::test_send_fetches", "test/test_fetcher.py::test_create_fetch_requests[api_version0-3]", "test/test_fetcher.py::test_create_fetch_requests[api_version1-2]", "test/test_fetcher.py::test_create_fetch_requests[api_version2-1]", "test/test_fetcher.py::test_create_fetch_requests[api_version...
{ "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://github.com/dpkp/kafka-python/blame/2767d14b6cd...
eaee128ce4ecdf0d4487337c37a2a2961e12dee3
2022-12-13 09:53:55
docker.io/swerebenchv2/pytask-dev-pytask:325-eaee128
pytask-dev__pytask-325
Function: task(name: Optional[str] = None, depends_on: Optional[Sequence[PathLike]] = None, produces: Optional[Sequence[PathLike]] = None, kwargs: Optional[Mapping[str, Any]] = None, **decorator_kwargs: Any) → Callable[[Callable[..., Any]], None] Location: src/_pytask/task_utils.py Inputs: - **name** – optional custom...
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index c22d6ea..81d3bb2 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -1,16 +1,20 @@ # Changes -This is a record of all past pytask releases and what went into them in reverse +The document records all past pytask releases and what wen...
Collect automatically created tasks. Closes #324. - [x] Add test for dynamically created tasks not marked with `pytask.mark.task`. - [x] Add to changes.
QST: Creating a task programmatically from a name #### Question about pytask Hi, I was wondering if it would be possible to define a task programmatically, e.g. based on a name. I made the MWE below; I thought this would result in the collection of 3 tasks, but actually none are collected. Would you mind explai...
pytask-dev/pytask
diff --git a/tests/test_execute.py b/tests/test_execute.py index 85488ce..813d7ee 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -351,3 +351,22 @@ def test_traceback_of_previous_task_failed_is_not_shown(runner, tmp_path, verbos assert ("Task task_example.py::task_second failed" in result.output)...
[ "tests/test_execute.py::test_that_dynamically_creates_tasks_are_captured", "tests/test_task.py::test_task_function_with_partialed_args", "tests/test_task.py::test_that_dynamically_creates_tasks_are_captured" ]
[ "tests/test_execute.py::test_python_m_pytask", "tests/test_execute.py::test_task_did_not_produce_node", "tests/test_execute.py::test_task_did_not_produce_multiple_nodes_and_all_are_shown", "tests/test_execute.py::test_node_not_found_in_task_setup", "tests/test_execute.py::test_execution_w_varying_dependenci...
{ "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":...
a1eebdadc7d86f2e93685ac46c726c609ea5ba99
2024-08-10 18:58:53
docker.io/swerebenchv2/getmoto-moto:7964-a1eebda
getmoto__moto-7964
Function: update_item(TableName, Key, UpdateExpression, ExpressionAttributeNames, ExpressionAttributeValues, **kwargs) Location: boto3 DynamoDB client (implemented by Moto’s DynamoDB backend) Inputs: - TableName (str): name of the DynamoDB table. - Key (dict): primary‑key map for the item to update. - UpdateExpression ...
python
Apache-2.0
diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py index d77ed7cdf..9d000ffbf 100644 --- a/moto/dynamodb/responses.py +++ b/moto/dynamodb/responses.py @@ -965,7 +965,11 @@ class DynamoHandler(BaseResponse): return dynamo_json_dump(item_dict) def _get_expr_attr_values(self) -> Dict[str,...
DynamoDB: update_item() now validates an empty ExpressionAttributeVal… …ues-parameter Fixes #7952
No ValidationException raised when calling DDB UpdateItem operation with an empty ExpressionAttributeValues If you pass a blank ExpressionAttributeValues parameter to the DDB update_item it should raise a ValidationException. With moto the code executes and the update is performed successfully. The following ```py...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py index 5ffcedbac..526b00fce 100644 --- a/tests/test_dynamodb/test_dynamodb_update_expressions.py +++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py @@ -187,3 +187,22 @@ def test_updat...
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_with_empty_values", "tests/test_organizations/test_organizations_boto3.py::test_create_account_creates_role", "tests/test_organizations/test_organizations_boto3.py::test_create_account_creates_custom_role" ]
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request", "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float", "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_delete_non_existing_item", "tests/test_dynamodb...
{ "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":...
0efdd1cb598ff94f28241e2a2c244fff5dadf2d1
2024-12-09 10:45:26
docker.io/swerebenchv2/aristanetworks-anta:956-0efdd1c
aristanetworks__anta-956
Method: get_value(data: Mapping[str, Any], path: str, *, separator: str = ".") Location: anta.tools Inputs: - **data** – a mapping (e.g., dict) representing parsed JSON or EOS command output. - **path** – a dotted (or custom‑separator) string that describes the nesting to retrieve (e.g., `"clusterStatus.enabled"` or...
python
Apache-2.0
diff --git a/anta/decorators.py b/anta/decorators.py index 08fbd653..04316232 100644 --- a/anta/decorators.py +++ b/anta/decorators.py @@ -63,13 +63,15 @@ def deprecated_test(new_tests: list[str] | None = None) -> Callable[[F], F]: # return decorator -def deprecated_test_class(new_tests: list[str] | None = No...
fix(anta.tests): Adjust revision for show management cvx # Description Test is throwing error when run on a a device not running CVX at all. Looking at the unit tests, it feels the revision for the command should be `3` and not `1` (cf issue comments) Fixes #953 # Checklist: - [x] My code follows the style ...
Fix: VerifyManagementCVX should not throw an error ``` [16:44:29] CRITICAL Exception raised for test VerifyManagementCVX (on device spine2) logger.py:121 ...
aristanetworks/anta
diff --git a/anta/tests/cvx.py b/anta/tests/cvx.py index 63ec336a..e80af2e4 100644 --- a/anta/tests/cvx.py +++ b/anta/tests/cvx.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, ClassVar from anta.models import AntaCommand, AntaTest +from anta.tools import get_value if TYP...
[ "tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success]", "tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success-haclient]", "tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success-partial-non-mcs]", "tests/units/an...
[]
{ "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": [...
1e22b27af505eb52b9e24d296bfdc1b32eb74bac
2022-11-16 21:50:46
docker.io/swerebenchv2/xgcm-xgcm:558-1e22b27
xgcm__xgcm-558
Method: Grid.cumsum(self, da: xr.DataArray, axis: Union[str, Iterable[str]], to=None, boundary=None, fill_value=None, metric_weighted=None, keep_coords: bool = False) -> xr.DataArray Location: xgcm/grid.py Inputs: - **da** – xarray.DataArray to which the cumulative sum is applied. - **axis** – name or iterable of na...
python
MIT
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 23670d5..a2b7849 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -17,6 +17,9 @@ Breaking Changes Internal Changes ~~~~~~~~~~~~~~~~ +- Rewrote cumsum to use a different code path from :py:func:`~xgcm.apply_as_grid_ufunc` internally, + which makes it...
Fix gh518 bug This fixes the bug reported in #518 and #522 (by undoing a regression introduced in #515). Unfortunately this fix breaks `cumsum` in some cases (specifically the test `xgcm/test/test_grid_ufunc.py::TestPadAfterUFunc::test_cumsum_chunk_checking_bug` now fails on this branch). The way it breaks cumsum is...
Error when interpolating `to='outer'` This is pigging back on the issue #507 but using the version `xgcm=0.8.0` now I'm getting an error when trying to interpolate along a dimension that has `outer` coordinates. I've pasted a reproducible example below. ``` ds = xr.DataArray(np.ones(10)*.5,dims='Z',coords={'Z':np.a...
xgcm/xgcm
diff --git a/xgcm/test/test_grid_ufunc.py b/xgcm/test/test_grid_ufunc.py index 5ea4268..6efab8d 100644 --- a/xgcm/test/test_grid_ufunc.py +++ b/xgcm/test/test_grid_ufunc.py @@ -117,7 +117,7 @@ class TestParseSignatureFromTypeHints: def ufunc( a: Annotated[np.ndarray, "X:center"] ) -> Anno...
[ "xgcm/test/test_grid_ufunc.py::TestMapOverlapGridops::test_single_chunk_core_dims_center_to_outer" ]
[ "xgcm/test/test_grid_ufunc.py::TestParseSignatureFromString::test_parse_valid_signatures[()->()-exp_in_ax_names0-exp_in_ax_pos0-exp_out_ax_names0-exp_out_ax_pos0]", "xgcm/test/test_grid_ufunc.py::TestParseSignatureFromString::test_parse_valid_signatures[(X:center)->()-exp_in_ax_names1-exp_in_ax_pos1-exp_out_ax_na...
{ "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":...
f71271d13d4f356d00b89493c61ba2be307fe57e
2023-11-21 14:08:43
docker.io/swerebenchv2/mirumee-ariadne-codegen:242-f71271d
mirumee__ariadne-codegen-242
Method: NoReimportsPlugin.generate_init_module(self, module: ast.Module) Location: ariadne_codegen/contrib/no_reimports.py Inputs: module – an ``ast.Module`` representing the ``__init__.py`` of the generated client package; its body may contain imports, assignments, etc. Outputs: ast.Module – the same module object wit...
python
BSD-3-Clause
diff --git a/CHANGELOG.md b/CHANGELOG.md index 928a2b0..7810768 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## UNRELEASED - Removed `model_rebuild` calls for generated input, fragment and result models. +- Added `NoReimportsPlugin` that makes the `__init__.py` of generated client package empty. ...
No reimports plugin This pr adds `NoReimportsPlugin` which removes the content of generated `__init__.py`. resolves #233
Load of module and client extremely slow. ## Description I have a fairly complex GraphQL repository running on Hasura, that might have hundreds if not thousands of types and definitions. Right now I implemented this library for some specific queries and use cases, and all of those types available in the server are n...
mirumee/ariadne-codegen
diff --git a/tests/contrib/test_extract_operations.py b/tests/contrib/test_extract_operations.py index 395c1ad..0521488 100644 --- a/tests/contrib/test_extract_operations.py +++ b/tests/contrib/test_extract_operations.py @@ -87,6 +87,14 @@ def test_generate_init_module_returns_module_with_added_import( ) +def ...
[ "tests/contrib/test_extract_operations.py::test_plugin_gets_module_name_from_config_dict[config_update0-operations]", "tests/contrib/test_extract_operations.py::test_plugin_gets_module_name_from_config_dict[config_update1-custom_module_name]", "tests/contrib/test_extract_operations.py::test_generate_init_module...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
55e71486a31c6b0713f59d6bd22dbefef9afae9c
2024-09-20 12:49:03
docker.io/swerebenchv2/narwhals-dev-narwhals:1021-55e7148
narwhals-dev__narwhals-1021
Method: Series.to_native(self) Location: narwhals/series.py Inputs: None (the method operates on the Series instance) Outputs: Returns the underlying native series object (e.g., pandas.Series, polars.Series, pyarrow.Array, etc.). The returned object has the same type as the original backend series used to create the...
python
MIT
diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index 37b18841..354dafd4 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -27,6 +27,6 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: pip install -r docs/requir...
docs: Add DataFrame.pipe to API completeness table <!-- # 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 - [ ] ✨ Featur...
Mark `pipe` as supported in api-completeness This page makes it look like we don't support `pipe` for any backend: https://narwhals-dev.github.io/narwhals/api-completeness/dataframe/ However, we do 😎 That's because we implement it directly in `narwhals/dataframe.py` - can we special-case this one so it shows as com...
narwhals-dev/narwhals
diff --git a/tests/series_only/to_native_test.py b/tests/series_only/to_native_test.py new file mode 100644 index 00000000..269348ea --- /dev/null +++ b/tests/series_only/to_native_test.py @@ -0,0 +1,14 @@ +from __future__ import annotations + +from typing import Any + +import narwhals.stable.v1 as nw + +data = [4, 4, ...
[ "tests/series_only/to_native_test.py::test_to_native[pandas_nullable_constructor]", "tests/series_only/to_native_test.py::test_to_native[pandas_pyarrow_constructor]", "tests/series_only/to_native_test.py::test_to_native[pandas_constructor]", "tests/series_only/to_native_test.py::test_to_native[polars_eager_co...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://narwhals-dev.github.io/narwhals/api-completene...
9e8bc74f3610ed390e7fad4bb90af574b68dd1f1
2025-02-18 23:51:58
docker.io/swerebenchv2/getmoto-moto:8609-9e8bc74
getmoto__moto-8609
Method: GlobalCluster.endpoint(self) Location: moto.rds.models.GlobalCluster (models.py) Inputs: *self* – an instance of the GlobalCluster model representing a created or described global cluster. No additional parameters. Outputs: *str* – a fully‑qualified writer endpoint URL for the global cluster, e.g. `"<glob...
python
Apache-2.0
diff --git a/moto/rds/models.py b/moto/rds/models.py index e3363a34f..fc23353d4 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -303,7 +303,8 @@ class GlobalCluster(RDSBaseModel): ): super().__init__(backend) self.global_cluster_identifier = global_cluster_identifier - self.glo...
RDS: Add GlobalCluster.Endpoint attribute Closes #8606
[RDS] `create_global_cluster` does not return `Endpoint` The RDS API call `create_global_cluster` returns an `Endpoint` value which contains the global writer endpoint for the newly created global cluster. This value was added into boto3 in version 1.35.46 (https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) > h...
getmoto/moto
diff --git a/tests/test_rds/test_global_clusters.py b/tests/test_rds/test_global_clusters.py index d61208b5e..df4e26412 100644 --- a/tests/test_rds/test_global_clusters.py +++ b/tests/test_rds/test_global_clusters.py @@ -38,6 +38,7 @@ def test_global_cluster_members(): == f"arn:aws:rds::{DEFAULT_ACCOUNT_ID}:gl...
[ "tests/test_rds/test_global_clusters.py::test_global_cluster_members" ]
[ "tests/test_rds/test_global_clusters.py::test_create_global_cluster__not_enough_parameters", "tests/test_rds/test_global_clusters.py::test_create_global_cluster_from_regular_cluster", "tests/test_rds/test_global_clusters.py::test_create_global_cluster_from_regular_cluster_with_reader", "tests/test_rds/test_gl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/lates...
87f9dabd01816b48df1c4a86fa98d4bd6c71c5b1
2022-06-13 20:19:05
docker.io/swerebenchv2/planetlabs-planet-client-python:588-87f9dab
planetlabs__planet-client-python-588
Method: PlaceholderSubscriptionsClient.__init__(self, session=None) Location: Inputs: session (optional, any type) – client session object, may be None. Outputs: None (initializes the client instance). Description: Constructs a placeholder subscriptions client, storing an optional session for future API calls. Method:...
python
Apache-2.0
diff --git a/planet/cli/subscriptions.py b/planet/cli/subscriptions.py index 113c6d4..077c641 100644 --- a/planet/cli/subscriptions.py +++ b/planet/cli/subscriptions.py @@ -1,201 +1,22 @@ """Subscriptions CLI""" -from contextlib import asynccontextmanager -import itertools import json -from typing import AsyncItera...
Move placeholder client to new client/subscriptions.py module. Also a fix for #574 Resolves #494
write interface skeleton for subscription api functions define subscriptions api function interfaces and each function will currently raise `NotImplementedError` chunks- create/update: * create_subscription * update_subscription results: * get_results cancel/get/list: * get_subscription * cancel_subscrip...
planetlabs/planet-client-python
diff --git a/tests/integration/test_subscriptions_cli.py b/tests/integration/test_subscriptions_cli.py index 9cbd417..afdea4c 100644 --- a/tests/integration/test_subscriptions_cli.py +++ b/tests/integration/test_subscriptions_cli.py @@ -22,7 +22,7 @@ import pytest from planet.cli import cli import planet.cli.subscr...
[ "tests/integration/test_subscriptions_cli.py::test_subscriptions_list_options[options0-100]", "tests/integration/test_subscriptions_cli.py::test_subscriptions_list_options[options1-100]", "tests/integration/test_subscriptions_cli.py::test_subscriptions_list_options[options2-1]", "tests/integration/test_subscr...
[]
{ "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":...
206de524ad00661771fed719cd0ef0c90c4953be
2024-10-28 17:11:47
docker.io/swerebenchv2/aristanetworks-anta:902-206de52
aristanetworks__anta-902
Class: NTPServer Location: anta/input_models/system.py Inputs: - server_address: Hostname | IPv4Address – the NTP server address, either a hostname (as defined in the device config) or an IPv4 address. - preferred: bool = False – optional flag indicating if the server is the preferred NTP source; defaults to False. - s...
python
Apache-2.0
diff --git a/anta/input_models/system.py b/anta/input_models/system.py new file mode 100644 index 00000000..7600d287 --- /dev/null +++ b/anta/input_models/system.py @@ -0,0 +1,31 @@ +# Copyright (c) 2023-2024 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in ...
fix(anta.tests): Fix VerifyNTPAssociations to support IP-DNS peers # Description Update VerifyNTPAssociations test to support IP-DNS peers in the JSON output. We now check if the provided NTP server IP or DNS is matching either the peer key or `peerIpAddr` in the details. Fixes #900 # Checklist: <!-- Delet...
Bug: False positive on VerifyNTPAssociation `show ntp associations | json` can return the following output: ``` DC05-Temp-Bleaf1#sho ntp associations | json { "peers": { "10.10.200.22 (ntp.example.com)": { "condition": "sys.peer", "peerIpAddr": "10.10.200.22", "re...
aristanetworks/anta
diff --git a/anta/tests/system.py b/anta/tests/system.py index 775eecbc..f2ce4718 100644 --- a/anta/tests/system.py +++ b/anta/tests/system.py @@ -8,14 +8,12 @@ from __future__ import annotations import re -from ipaddress import IPv4Address from typing import TYPE_CHECKING, ClassVar -from pydantic import BaseMod...
[ "tests/units/anta_tests/test_system.py::test[anta.tests.system.VerifyUptime-success]", "tests/units/anta_tests/test_system.py::test[anta.tests.system.VerifyUptime-failure]", "tests/units/anta_tests/test_system.py::test[anta.tests.system.VerifyReloadCause-success-no-reload]", "tests/units/anta_tests/test_syste...
[]
{ "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":...
948dd8bf03e6662c8e692e9f3d9a73e49650fccb
2022-04-15 14:50:53
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1064-948dd8b
pyjanitor-devs__pyjanitor-1064
Method: DataFrame.transform_column(self, column_name: str, function: Callable, dest_column_name: Optional[str] = None, elementwise: bool = True) Location: janitor/functions/transform_column.py Inputs: - **column_name** – name of the column to be transformed; must exist in the DataFrame. - **function** – callabl...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ca80e..53e9a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - [ENH] Add `xlsx_cells` for reading a spreadsheet as a table of individual cells. #929 @samukweku. - [ENH] Let `filter_string` suit parameters of `Series.str.contains` Issue #1003 and #1...
[ENH/DOC] Improve transform_columns # PR Description Please describe the changes proposed in the pull request: - Bug fix for `transform_columns` by setting up the `dest_column_names` dictionary using the columns in `column_names` instead of just using the user-entered `new_column_names`. Also added a test to avoi...
transform_columns ignores `column_names` when `new_column_names` is specified # Brief Description `transform_columns` ignores the cols specified in `column_names` if `new_column_names` is specified (wrongly). For example, See the MWE. # Minimally Reproducible Code ```python >>> import numpy as np >>> impor...
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_transform_column.py b/tests/functions/test_transform_column.py index 2180120..5a2e192 100644 --- a/tests/functions/test_transform_column.py +++ b/tests/functions/test_transform_column.py @@ -7,6 +7,18 @@ import pytest from pandas.testing import assert_frame_equal, assert_series_equal ...
[ "tests/functions/test_transform_column.py::test_transform_nonexisting_column", "tests/functions/test_transform_column.py::test_transform_column_dest_column_already_present", "tests/functions/test_transform_columns.py::test_transform_column_with_incomplete_new_names", "tests/functions/test_transform_columns.py...
[ "tests/functions/test_transform_column.py::test_transform_column[True]", "tests/functions/test_transform_column.py::test_transform_column[False]", "tests/functions/test_transform_column.py::test_transform_column_with_dest", "tests/functions/test_transform_column.py::test_transform_column_no_mutation", "test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
ef022f8c6cd5c9bd2475592eee047be4d28d5ec1
2024-09-27 20:16:55
docker.io/swerebenchv2/openmdao-openmdao:3371-ef022f8
openmdao__openmdao-3371
Method: TestLogger.find_match_in(self, typ, pattern) Location: openmdao.utils.logger_utils.TestLogger Inputs: - typ (str): the message category to search ('error', 'warning', 'info'). - pattern (str): a shell‑style wildcard pattern (as used by fnmatch) that the desired log message should match. Outputs: - Returns N...
python
custom-check-github
diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py index 32a2f2894..97977ec29 100644 --- a/openmdao/core/problem.py +++ b/openmdao/core/problem.py @@ -10,6 +10,7 @@ import weakref import pathlib import textwrap import traceback +import time import atexit from collections import defaultdict, namedtu...
Added timing to output from Problem checks ### Summary Added timing to the output from Problem checks, e.g. ``` INFO: checking all_unserializable_options... INFO: all_unserializable_options check complete (0.000095 sec). INFO: checking auto_ivc_warnings... INFO: auto_ivc_warnings check complete (0.000...
Add timing information to openmdao_checks ### Desired capability or behavior. A user recently pointed out that a specific check happening in the total derivative system was taking a substantial amount of time when many discrete variables are present. In addition to moving this check to our standard checks, our chec...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_parallel_groups.py b/openmdao/core/tests/test_parallel_groups.py index fa623f18f..79af91610 100644 --- a/openmdao/core/tests/test_parallel_groups.py +++ b/openmdao/core/tests/test_parallel_groups.py @@ -361,7 +361,7 @@ class TestParallelGroupsMPI2(TestParallelGroups): ...
[ "openmdao/error_checking/tests/test_check_config.py::TestCheckConfig::test_log_messages" ]
[ "openmdao/core/tests/test_parallel_groups.py::TestParallelGroups::test_converge_diverge_LinearRunOnce_NonlinearBlockGS_fwd", "openmdao/core/tests/test_parallel_groups.py::TestParallelGroups::test_converge_diverge_LinearRunOnce_NonlinearBlockGS_rev", "openmdao/core/tests/test_parallel_groups.py::TestParallelGrou...
{ "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":...
8959b55f0fc5202fb72ec6d3637b752ed3311e66
2020-09-06 04:06:13
docker.io/swerebenchv2/hypothesisworks-hypothesis:2597-8959b55
hypothesisworks__hypothesis-2597
Function: defines_strategy(force_reusable_values: bool = False, try_non_lazy: bool = False) Location: hypothesis/strategies/_internal/core.py Inputs: - *force_reusable_values*: optional flag (default False) that, when true, forces the resulting strategy to have reusable values. - *try_non_lazy*: optional flag (default...
python
custom-check-github
diff --git a/AUTHORS.rst b/AUTHORS.rst index a86b930cd..e6529b621 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -41,6 +41,7 @@ their individual contributions. * `El Awbery <https://www.github.com/ElAwbery>`_ * `Emmanuel Leblond <https://www.github.com/touilleMan>`_ * `Felix Grünewald <https://www.github.com/fgruen>`...
Tidy defines_strategy decorators (#2516) Tidied up internal defines_strategy decorators code. Fixes #2516. The `defines_strategy` decorator now has optional named parameters instead of using a set of decorators with different options "preset". `base_defines_strategy` was renamed to `defines_strategy`, which mean...
Tidy up defines_strategy code in core.py A small clean up ticket for whomever is in the mood (which might be future me). In reviewing #2515 I noticed that the `defines_strategy` code is a little bit of a mess. I think we should inline all of the following definitions to their use site: ``` defines_strategy = bas...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/nocover/test_deferred_errors.py b/hypothesis-python/tests/nocover/test_deferred_errors.py index 526f3f708..f9c330ba4 100644 --- a/hypothesis-python/tests/nocover/test_deferred_errors.py +++ b/hypothesis-python/tests/nocover/test_deferred_errors.py @@ -59,7 +59,7 @@ def test_errors_o...
[ "hypothesis-python/tests/nocover/test_deferred_errors.py::test_does_not_recalculate_the_strategy" ]
[ "hypothesis-python/tests/nocover/test_deferred_errors.py::test_does_not_error_on_initial_calculation", "hypothesis-python/tests/nocover/test_deferred_errors.py::test_errors_each_time", "hypothesis-python/tests/nocover/test_deferred_errors.py::test_errors_on_test_invocation", "hypothesis-python/tests/nocover/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": [], "intent_completeness": "complete", "pr_categories":...
6c46f323c1e02417d63e33f4a08dbeaf853689ac
2021-11-22 03:56:53
docker.io/swerebenchv2/slackapi-python-slack-sdk:1137-6c46f32
slackapi__python-slack-sdk-1137
Method: JsonObject.__eq__(self, other: Any) -> bool Location: slack_sdk/models/basic_objects.py (class JsonObject) Inputs: - other: Any object to compare against. Equality is only evaluated when `other` is an instance of `JsonObject`; otherwise the method returns `False`. Outputs: - bool – `True` if `other` is a `JsonO...
python
MIT
diff --git a/slack_sdk/models/basic_objects.py b/slack_sdk/models/basic_objects.py index 3223148..814ab95 100644 --- a/slack_sdk/models/basic_objects.py +++ b/slack_sdk/models/basic_objects.py @@ -87,6 +87,11 @@ class JsonObject(BaseObject, metaclass=ABCMeta): else: return self.__str__() + de...
Fix #1131 Add the method to check equality in Block Kit model classes ## Summary Fixes #1131 @seratch Sorry for the delay. I worked on the issue #1131. I've confirmed the following. - Passing Unit Tests - Solving the problem in interactive mode Thank you for checking! ### Category (place an `x` in e...
Add the method to check equality in Block Kit model classes ### Reproducible in: #### The Slack SDK version All versions #### Steps to reproduce: ```python from slack_sdk.models.blocks import DividerBlock DividerBlock() == DividerBlock() ``` It happens with any pair of equivalent blocks. ### Expect...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py index 4eadbd4..c79cfed 100644 --- a/tests/slack_sdk/models/test_blocks.py +++ b/tests/slack_sdk/models/test_blocks.py @@ -54,6 +54,11 @@ class BlockTests(unittest.TestCase): block.to_dict(), ) + def tes...
[ "tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq", "tests/slack_sdk/models/test_elements.py::BlockElementTests::test_eq", "tests/slack_sdk/models/test_objects.py::JsonObjectTests::test_eq", "tests/slack_sdk/models/test_views.py::ViewTests::test_eq" ]
[ "tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_3", "tests/slack...
{ "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": [...
e8d729a58ce3dd3347550888138a4d8962087064
2022-03-07 00:44:32
docker.io/swerebenchv2/hypothesisworks-hypothesis:3251-e8d729a
hypothesisworks__hypothesis-3251
No new interfaces are introduced.
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..b6864f7f1 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,6 @@ +RELEASE_TYPE: patch + +If the :obj:`~hypothesis.Phase.shrink` phase is disabled, we now stop the +:obj:`~hypothesis.Phase.generate...
Shrinking disabled -> early stopping Fixes #3244.
Better docs for stopping immediately after failure I'm writing integration tests that I'd like randomized, but don't particular care about being exhaustive, because the tests can take a few seconds to run. So I set `max_examples` to 1 to stop after the first success, and `phases` to `[Phase.generate]` to avoid shrinkin...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/conjecture/test_engine.py b/hypothesis-python/tests/conjecture/test_engine.py index f818604b8..1601e2c3a 100644 --- a/hypothesis-python/tests/conjecture/test_engine.py +++ b/hypothesis-python/tests/conjecture/test_engine.py @@ -302,7 +302,7 @@ def test_phases_can_disable_shrinking()...
[ "hypothesis-python/tests/conjecture/test_engine.py::test_phases_can_disable_shrinking" ]
[ "hypothesis-python/tests/conjecture/test_engine.py::test_can_index_results", "hypothesis-python/tests/conjecture/test_engine.py::test_non_cloneable_intervals", "hypothesis-python/tests/conjecture/test_engine.py::test_deletable_draws", "hypothesis-python/tests/conjecture/test_engine.py::test_can_load_data_from...
{ "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":...
fdc8fbf3cf3902f31b6c346c8683f14db992f67e
2021-12-15 07:16:33
docker.io/swerebenchv2/pennylaneai-pennylane:2030-fdc8fbf
pennylaneai__pennylane-2030
Method: Operation.generator(self) Location: pennylane/operation.py – class Operation Inputs: *self* – the instantiated operation object. Outputs: Returns the generator of the operation. The return value may be an instantiated Observable (e.g. qml.PauliX, qml.Hermitian, qml.Hamiltonian, qml.SparseHamiltonian) or an oper...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index c376ec705..d4849d741 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -26,9 +26,9 @@ The Operator class has undergone a major refactor with the following changes: -* The `diagonalizing_gates()` represe...
Update the `Operation.generator` property **Context:** The `Operation.generator` property has long been badly designed, and a blocker for extending PennyLane. In its current form, it returns a 2-tuple `(generator, coeff)`, where - `generator` is an operation _class_ or NumPy array - `coeff` is a scaling factor ...
Re-think operation generators Currently in PennyLane, qubit operations define their generator in the following form: ```python operation.generator = [G, coeff] ``` where `G` can be either * a PennyLane operation *class*, e.g., `qml.PauliX`, or * a numeric NumPy matrix, and `coeff` is the coefficient in ...
PennyLaneAI/pennylane
diff --git a/tests/fourier/test_fourier_utils.py b/tests/fourier/test_fourier_utils.py index 371710d3a..9e74bb327 100644 --- a/tests/fourier/test_fourier_utils.py +++ b/tests/fourier/test_fourier_utils.py @@ -71,9 +71,9 @@ def test_get_spectrum_complains_no_generator(): """Test that an error is raised if the opera...
[ "tests/fourier/test_fourier_utils.py::test_get_spectrum_complains_no_generator", "tests/ops/qubit/test_parametric_ops.py::TestPauliRot::test_multirz_generator[XIZ]", "tests/ops/qubit/test_parametric_ops.py::TestPauliRot::test_multirz_generator[IIII]", "tests/ops/qubit/test_parametric_ops.py::TestPauliRot::tes...
[ "tests/fourier/test_fourier_utils.py::test_format_nvec[1-1]", "tests/fourier/test_fourier_utils.py::test_format_nvec[-20--20]", "tests/fourier/test_fourier_utils.py::test_format_nvec[nvec2-", "tests/fourier/test_fourier_utils.py::test_format_nvec[nvec3--1]", "tests/fourier/test_fourier_utils.py::test_format...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
5eef06ee518b424b4980acfd906a2e056f9b3f75
2023-03-17 20:39:08
docker.io/swerebenchv2/getmoto-moto:6085-5eef06e
getmoto__moto-6085
Method: IoTClient.delete_certificate(self, certificateId: str, forceDelete: bool = False) Location: Implemented in `moto/iot/responses.py` (IoTResponse.delete_certificate) and delegated to `moto/iot/models.py` (IoTBackend.delete_certificate). Inputs: - **certificateId** (str): The identifier of the certificate to be ...
python
Apache-2.0
diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index c5ca3f294..56d1ea985 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -59,8 +59,6 @@ from tempfile import TemporaryDirectory logger = logging.getLogger(__name__) -docker_3 = docker.__version__[0] >= "3" - def zip2tar(z...
IOT: delete_certificate() now supports the forceDelete-parameter Fixes #6029
IoT delete_certificate() "forceDelete" param does not work # Summary The `forceDelete` parameter in the iot implementation is not congruent with boto3 behavior. ## Steps to reproduce Run the following python code: ```python import json import boto3 from moto import mock_iot IOT_THING_POLICY_NAME = "ThingC...
getmoto/moto
diff --git a/tests/test_iot/test_iot_certificates.py b/tests/test_iot/test_iot_certificates.py index 729cddbe2..aafc40bfe 100644 --- a/tests/test_iot/test_iot_certificates.py +++ b/tests/test_iot/test_iot_certificates.py @@ -232,6 +232,31 @@ def test_delete_certificate_validation(): res.should.have.key("certificat...
[ "tests/test_iot/test_iot_certificates.py::test_delete_certificate_force" ]
[ "tests/test_iot/test_iot_certificates.py::test_certificate_id_generation_deterministic", "tests/test_iot/test_iot_certificates.py::test_create_certificate_from_csr", "tests/test_iot/test_iot_certificates.py::test_create_key_and_certificate", "tests/test_iot/test_iot_certificates.py::test_describe_certificate_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
bc358dc8dd054c52e55ba9e81cb5d2de48cf6083
2023-10-09 15:48:18
docker.io/swerebenchv2/rhayes777-pyautofit:841-bc358dc
rhayes777__pyautofit-841
Method: ModelMapper.model_component_and_parameter_names(self) Location: autofit/mapper/model/model_mapper.py Inputs: none (uses the mapper’s current attribute hierarchy) Outputs: List[str] – a list of component‑parameter names using “.” as the separator (e.g., “one.two”, “ls.0.one”). The property replaces the pre...
python
MIT
diff --git a/autofit/mapper/prior_model/abstract.py b/autofit/mapper/prior_model/abstract.py index c5383aae7..4c1974cae 100644 --- a/autofit/mapper/prior_model/abstract.py +++ b/autofit/mapper/prior_model/abstract.py @@ -1659,7 +1659,7 @@ class AbstractPriorModel(AbstractModel): """ path_modifier = T...
feature/combined result fix Resolves #834 May require scripts to be started fresh as it changes headers in samples.csv to use . instead of _ path separation
instance missing from combined analysis result The following script is a typical multi-dataset fit from **PyAutoGalaxy**: https://github.com/Jammy2211/autogalaxy_workspace/blob/release/scripts/multi/modeling/start_here.py After the fit is complete the following error is raised: ``` Traceback (most recent call...
rhayes777/PyAutoFit
diff --git a/test_autofit/mapper/model/test_model_mapper.py b/test_autofit/mapper/model/test_model_mapper.py index 7fd017c43..7fb6c795f 100644 --- a/test_autofit/mapper/model/test_model_mapper.py +++ b/test_autofit/mapper/model/test_model_mapper.py @@ -61,12 +61,12 @@ class TestRegression: mm.one.one.id = mm.t...
[ "test_autofit/mapper/model/test_model_mapper.py::TestRegression::test_parameter_name_ordering", "test_autofit/mapper/model/test_model_mapper.py::TestRegression::test_parameter_name_distinction", "test_autofit/non_linear/samples/test_pdf.py::test_format", "test_autofit/non_linear/samples/test_samples.py::test_...
[ "test_autofit/mapper/model/test_model_mapper.py::TestParamNames::test_has_prior", "test_autofit/mapper/model/test_model_mapper.py::TestRegression::test_set_tuple_instance", "test_autofit/mapper/model/test_model_mapper.py::TestRegression::test_get_tuple_instances", "test_autofit/mapper/model/test_model_mapper....
{ "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.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/Jammy2211/autogalaxy_workspace/blob...
88ae813ae3836cd52765557b1e2686dcee83353b
2024-09-09 10:22:33
docker.io/swerebenchv2/cubed-dev-cubed:572-88ae813
cubed-dev__cubed-572
Function: lazy_zarr_array( path: pathlib.Path, shape: tuple[int, ...], dtype: Any, chunks: tuple[int, ...], compressor: Union[dict, str, None] = "default", **kwargs, ) Location: cubed.storage.zarr.lazy_zarr_array Inputs: - **path** – filesystem path where the Zarr array will be stored. - **shape...
python
Apache-2.0
diff --git a/cubed/core/ops.py b/cubed/core/ops.py index 36fd9dc0..bea16dcb 100644 --- a/cubed/core/ops.py +++ b/cubed/core/ops.py @@ -304,6 +304,7 @@ def blockwise( target_store=target_store, target_path=target_path, storage_options=spec.storage_options, + compressor=spec.zarr_compres...
Allow Zarr compression to be set for intermediate files See #513
Zarr compression settings for local intermediate files When running [some benchmarks](https://github.com/cubed-dev/cubed/issues/492#issuecomment-2238908343) recently I noticed that turning off Zarr compression resulted in faster IO performance when writing random data to Zarr files on a local SSD. This [post](https://m...
cubed-dev/cubed
diff --git a/cubed/tests/storage/test_zarr.py b/cubed/tests/storage/test_zarr.py index ce27dff8..29532d7d 100644 --- a/cubed/tests/storage/test_zarr.py +++ b/cubed/tests/storage/test_zarr.py @@ -1,7 +1,13 @@ import pytest +import zarr +from numcodecs.registry import get_codec +from cubed import config +from cubed.st...
[ "cubed/tests/storage/test_zarr.py::test_compression[compressor1]", "cubed/tests/storage/test_zarr.py::test_compression[compressor2]", "cubed/tests/test_core.py::test_spec_compressor[None]", "cubed/tests/test_core.py::test_spec_compressor[compressor1]", "cubed/tests/test_core.py::test_spec_compressor[compres...
[ "cubed/tests/storage/test_zarr.py::test_lazy_zarr_array", "cubed/tests/storage/test_zarr.py::test_compression[None]", "cubed/tests/test_core.py::test_as_array_fails", "cubed/tests/test_core.py::test_regular_chunks", "cubed/tests/test_core.py::test_from_array[x0-chunks0-None]", "cubed/tests/test_core.py::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/cubed-dev/cubed/issues/492#issuecom...
1e75c3fe87b084f2f91231b775c601cb81e0246e
2023-09-22 10:41:53
docker.io/swerebenchv2/researchobject-ro-crate-py:162-1e75c3f
researchobject__ro-crate-py-162
Method: Metadata.generate(self) Location: rocrate/model/metadata.py (class Metadata) Inputs: None (relies on the instance’s internal state – `self.extra_contexts` list and `self.extra_terms` dict, which can be modified directly by callers). Outputs: A `dict` JSON‑LD document with an `@context` entry that is: - a single...
python
Apache-2.0
diff --git a/rocrate/model/metadata.py b/rocrate/model/metadata.py index f4ddb50..49f4aa8 100644 --- a/rocrate/model/metadata.py +++ b/rocrate/model/metadata.py @@ -47,6 +47,7 @@ class Metadata(File): properties=properties ) # https://www.researchobject.org/ro-crate/1.1/appendix/jsonld.ht...
Add method to add contexts Fixes #160. ```python crate = ROCrate() crate.metadata.extra_contexts.append("https://w3id.org/ro/terms/workflow-run") ```
Add method to include additional contexts at the top level Right now, it is possible to add additional terms from other contexts to the top level contexts through the attached `Metadata` instance, using the `extra_terms` dictionary: ```python a_crate = ROCrate(gen_preview=False) a_crate.metadata.extra_terms.update...
ResearchObject/ro-crate-py
diff --git a/test/test_model.py b/test/test_model.py index 2830ec1..0324d90 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -460,3 +460,18 @@ def test_get_by_type(test_data_dir): assert crate.get_by_type(["File", "ComputationalWorkflow"]) == [wf] assert crate.get_by_type("Person") == [] asser...
[ "test/test_model.py::test_context" ]
[ "test/test_model.py::test_dereferencing", "test/test_model.py::test_dereferencing_equivalent_id[.foo]", "test/test_model.py::test_dereferencing_equivalent_id[foo.]", "test/test_model.py::test_dereferencing_equivalent_id[.foo/]", "test/test_model.py::test_dereferencing_equivalent_id[foo./]", "test/test_mod...
{ "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": [...
f19d39801cb5828929f1117ab93492aefdada5fd
2024-05-29 20:22:53
docker.io/swerebenchv2/googleapis-python-bigquery:1937-f19d398
googleapis__python-bigquery-1937
Method: RowIterator._should_use_bqstorage(self, bqstorage_client=None, create_bqstorage_client=False) Location: google/cloud/bigquery/table.py (class RowIterator) Inputs: - bqstorage_client (Optional[bigquery_storage.BigQueryReadClient]): Existing storage client, may be None. - create_bqstorage_client (bool): When True...
python
Apache-2.0
diff --git a/google/cloud/bigquery/table.py b/google/cloud/bigquery/table.py index 6ebb0709..57fc0d2b 100644 --- a/google/cloud/bigquery/table.py +++ b/google/cloud/bigquery/table.py @@ -1724,6 +1724,10 @@ class RowIterator(HTTPIterator): try: _versions_helpers.BQ_STORAGE_VERSIONS.try_import(raise...
chore: add warning if storage module not found Adds a warning message if storage client is not used because module is not found. Fixes #1931 🦕
Add a warning message when BigQuery Storage API is not used despite create_bqstorage_client=True **Is your feature request related to a problem? Please describe.** This issue is related to the code [here](https://github.com/googleapis/python-bigquery/blob/4f72723f539d35977bc52c5950f6e00889b5c7be/google/cloud/bigquery/...
googleapis/python-bigquery
diff --git a/tests/unit/test_table.py b/tests/unit/test_table.py index fcbba03a..2a49b063 100644 --- a/tests/unit/test_table.py +++ b/tests/unit/test_table.py @@ -2360,24 +2360,30 @@ class TestRowIterator(unittest.TestCase): ) self.assertFalse(result) - def test__should_use_bqstorage_returns_fals...
[ "tests/unit/test_table.py::TestRowIterator::test__should_use_bqstorage_returns_false_w_warning_if_missing_dependency" ]
[ "tests/unit/test_table.py::TestEncryptionConfiguration::test_ctor_defaults", "tests/unit/test_table.py::TestEncryptionConfiguration::test_ctor_with_key", "tests/unit/test_table.py::TestTableBase::test_ctor_defaults", "tests/unit/test_table.py::TestTableBase::test_project", "tests/unit/test_table.py::TestTab...
{ "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/googleapis/python-bigquery/blob/4f727...
6cd83927aa79fc6f7f7c662742ba89a57ace8d7b
2025-05-17 13:21:34
docker.io/swerebenchv2/callowayproject-bump-my-version:347-6cd8392
callowayproject__bump-my-version-347
Method: VersionComponentSpec.__init__(self, *, calver_format: str | None = None, always_increment: bool | None = None, optional_value: str | None = None, independent: bool = False, first_value: str | None = None, values: list[str] | None = None) Location: bumpversion.versioning.models.VersionComponentSpec Inputs: Confi...
python
MIT
diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 3b4f0ef6..2b39562d 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -17,7 +17,7 @@ permissions: jobs: deploy-preview: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest st...
Fixes for CalVer auto_increment behavior If `auto_increment` is explicitly set, the value is kept. Otherwise, it is set to `True`. Introduced new tests to verify CalVer component behavior with and without auto-increment enabled. Fixes #345
always_increment value ignored when calver_format specified bump-my-version: 1.1.2 Python version: 3.12.3 Platform: Linux, x86_64 ## Scenario CalVer-based format, with a patch component which can be incremented even after the date has changed (e.g. to patch a maintained older release). ```toml [tool.bumpversion] curr...
callowayproject/bump-my-version
diff --git a/tests/conftest.py b/tests/conftest.py index 03b051a0..54ad4349 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -64,9 +64,21 @@ def get_semver(version: str) -> Version: @pytest.fixture def git_repo(tmp_path: Path) -> Path: """Generate a simple temporary git repo and return the path.""" - ...
[ "tests/test_versioning/test_models_version.py::TestCalVerVersion::test_auto_increment_false_does_not_increment" ]
[ "tests/test_versioning/test_models_version.py::TestSemVerVersion::test_acts_like_a_dict", "tests/test_versioning/test_models_version.py::TestSemVerVersion::test_length_is_number_of_parts", "tests/test_versioning/test_models_version.py::TestSemVerVersion::test_is_iterable", "tests/test_versioning/test_models_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": [ "https://callowayproject.github.io/bump-my-version/howtos...
9eae66dd720b0efeae7097ad00c12c42348f1f0b
2023-03-03 12:15:58
docker.io/swerebenchv2/ably-ably-python:474-9eae66d
ably__ably-python-474
Method: Channels.release(self, name) Location: ably.rest.channel.Channels.release Inputs: name (str) – the channel name to be released; if the channel does not exist the call is a no‑op. Outputs: None (no return value); does not raise an error when the channel is absent. Description: Deletes the Channel object from the...
python
Apache-2.0
diff --git a/ably/rest/channel.py b/ably/rest/channel.py index 5ea8efd..45f6cef 100644 --- a/ably/rest/channel.py +++ b/ably/rest/channel.py @@ -219,8 +219,19 @@ class Channels: def __iter__(self) -> Iterator[str]: return iter(self.__all.values()) - def release(self, key): - del self.__all[key...
RSN4b Compliance This change does the following: - Removes the `__delitem__` magic method from the REST `Channels` implementation (as not part of spec) - Fixes a non-compliance with `RSN4b` - whereby previously calling release on a non-existent channel would result in a KeyError being raised. Fixes #472
`RSN4b`: Error raised Spec point `RSN4b`: ``` Calling release() with a channel name that does not correspond to an extant channel entity must return without error ``` At the moment, calling release on a non-existent channel results in an error being raised due to it not appearing in the channel map.
ably/ably-python
diff --git a/test/ably/rest/restchannels_test.py b/test/ably/rest/restchannels_test.py index c6a791f..b567781 100644 --- a/test/ably/rest/restchannels_test.py +++ b/test/ably/rest/restchannels_test.py @@ -70,19 +70,11 @@ class TestChannels(BaseAsyncTestCase): assert isinstance(channel, Channel) ...
[ "test/ably/rest/restchannels_test.py::TestChannels::test_channels_release" ]
[ "test/ably/rest/restchannels_test.py::TestChannels::test_channel_has_presence", "test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_doesnt_updates_existing_with_none_options", "test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_returns_new_or_existing", "test/ably/rest/rest...
{ "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": [...
9e7ddb24276b5572f171153c4c1053fed04a7bc2
2020-05-27 07:10:15
docker.io/swerebenchv2/niconoe-pyinaturalist:22-9e7ddb2
niconoe__pyinaturalist-22
Method: pyinaturalist.api_requests.request(method: str, url: str, access_token: str = None, user_agent: str = None, params: Dict = None, headers: Dict = None, **kwargs) Location: pyinaturalist/api_requests.py Inputs: HTTP method name (e.g., "GET", "POST"), full request URL, optional access token for Bearer auth, opti...
python
MIT
diff --git a/pyinaturalist/api_requests.py b/pyinaturalist/api_requests.py new file mode 100644 index 0000000..e67f218 --- /dev/null +++ b/pyinaturalist/api_requests.py @@ -0,0 +1,55 @@ +# Some common functions for HTTP requests used by both the Node and REST API modules +import requests +from typing import Dict + +imp...
Update REST API module with param conversion + unit tests This PR takes the `node_api` parameter conversion/validation changes for issues #17 and #19 and applies them to all the endpoints in the `rest_api` module. To do this with minimal code duplication, this also adds an `api_requests` module for request-related func...
Boolean API params I just noticed while playing with the new taxa endpoints that boolean API parameters need to be expressed as JS strings, for example: `get_taxa(q='Lixus bardanae', is_active='false')` It would be better to be able to do: `get_taxa(q='Lixus bardanae', is_active=False)` To do: - investig...
niconoe/pyinaturalist
diff --git a/test/conftest.py b/test/conftest.py new file mode 100644 index 0000000..7d6122b --- /dev/null +++ b/test/conftest.py @@ -0,0 +1,52 @@ +""" +Shared unit test-related utilities. +Pytest will also automatically pick up any fixtures defined here. +""" +import json +import os +import re +from inspect import get...
[ "test/test_api_requests.py::test_http_methods[delete-DELETE]", "test/test_api_requests.py::test_http_methods[get-GET]", "test/test_api_requests.py::test_http_methods[post-POST]", "test/test_api_requests.py::test_http_methods[put-PUT]", "test/test_api_requests.py::test_request_headers[input_kwargs0-expected_...
[]
{ "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":...
2e792e95b4775d40e5cbe45e1116b1f76a4dab5c
2016-12-05 10:40:49
docker.io/swerebenchv2/kayak-pypika:23-2e792e9
kayak__pypika-23
Method: Criterion.as_(self, alias) Location: pypika/terms.py (class Criterion inherits from Term, gaining the .as_ alias method) Inputs: - alias: str – the name to assign as an alias to the criterion expression. Outputs: - Returns a Criterion (actually a Term alias wrapper) that renders to the original SQL criterion ...
python
Apache-2.0
diff --git a/pypika/terms.py b/pypika/terms.py index 47043a3..eba423a 100644 --- a/pypika/terms.py +++ b/pypika/terms.py @@ -263,7 +263,7 @@ class ListField(object): ) -class Criterion(object): +class Criterion(Term): def __and__(self, other): return ComplexCriterion(Boolean.and_, self, other...
Fixes #22 Changed Criterion to extend Term Extended Term to provide the missing functions on Criterion.
Alias for Criterions Criterion expressions cannot be given an alias due to missing .as_ function
kayak/pypika
diff --git a/pypika/tests/test_criterions.py b/pypika/tests/test_criterions.py index 782526b..12001de 100644 --- a/pypika/tests/test_criterions.py +++ b/pypika/tests/test_criterions.py @@ -12,6 +12,11 @@ __email__ = "theys@kayak.com" class CriterionTests(unittest.TestCase): t = Table('test', alias = 'crit') + ...
[ "pypika/tests/test_criterions.py::CriterionTests::test__criterion_with_alias" ]
[ "pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_bool", "pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_date", "pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_datetime", "pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_decimal",...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d57099ccaead43fc773a1d89931fc689ededd09c
2023-03-01 16:36:18
docker.io/swerebenchv2/aeye-lab-pymovements:225-d57099c
aeye-lab__pymovements-225
Method: get_filepaths(path, extension=None, regex=None) Location: pymovements.utils.paths Inputs: - **path**: str or pathlib.Path – root directory to search. - **extension** (optional): str – file extension filter (e.g., ".txt"). - **regex** (optional): compiled re.Pattern – regular‑expression filter applied to fi...
python
MIT
diff --git a/README.md b/README.md index f4406c6..97aa4c7 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ cloned and installed with ```bash git clone https://github.com/aeye-lab/pymovements.git +pip install --upgrade pip pip install -e ./pymovements ``` diff --git a/src/pymovements/datasets/dataset.py ...
Tests: add test coverage for pymovements.utils.paths in this pr we get 100% test coverage for pymovements.utils.paths, resolves #178
Add tests to utils/paths.py to achieve 100% test coverage ## Current Behavior Test coverage is currently at 59%: https://app.codecov.io/gh/aeye-lab/pymovements/blob/main/src/pymovements/utils/paths.py ## Expected Behavior Test coverage should be at 100%. ## Minimum acceptance criteria - [ ] use the `tmp_path`...
aeye-lab/pymovements
diff --git a/tests/datasets/test_dataset.py b/tests/datasets/test_dataset.py index e964177..2898d9d 100644 --- a/tests/datasets/test_dataset.py +++ b/tests/datasets/test_dataset.py @@ -157,11 +157,12 @@ def mock_toy(rootpath, raw_fileformat='csv'): for fileinfo_row in fileinfo.to_dicts(): event_df = pl.fr...
[ "tests/test_transforms.py::test_norm_raises_exception[4_dim_array_no_axis_raises_value_error]" ]
[ "tests/datasets/test_dataset.py::test_init_exceptions[filename_regex_none_value]", "tests/datasets/test_dataset.py::test_init_exceptions[filename_regex_wrong_type]", "tests/datasets/test_dataset.py::test_load_exceptions[Toy-no_files_present]", "tests/datasets/test_dataset.py::test_load_exceptions[Toy-subset_n...
{ "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": [ "https://app.codecov.io/gh/aeye-lab/pymovements/blob/ma...
cdbd596f3a5ea6f63c4b366d0b1c726bbe3558b2
2025-03-24 16:23:28
docker.io/swerebenchv2/sdv-dev-rdt:963-cdbd596
sdv-dev__rdt-963
No new interfaces are introduced.
python
custom-check-github
diff --git a/rdt/transformers/base.py b/rdt/transformers/base.py index 808e32a..1863462 100644 --- a/rdt/transformers/base.py +++ b/rdt/transformers/base.py @@ -327,19 +327,19 @@ class BaseTransformer: custom_args = [] args = inspect.getfullargspec(self.__init__) keys = args.args[1:] - ...
Fix `BaseTransformer.__repr__` when transformer has required arguments CU-86b4bz2r6, Resolve #961.
`BaseTransformer.__repr__` errors if transformer has positional arguments ### Environment Details Please indicate the following details about the environment in which you found the bug: * RDT version: * Python version: * Operating System: ### Error Description The `__repr__` method on the base transformer tries to p...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_base.py b/tests/unit/transformers/test_base.py index b2edc93..248f3bc 100644 --- a/tests/unit/transformers/test_base.py +++ b/tests/unit/transformers/test_base.py @@ -364,18 +364,19 @@ class TestBaseTransformer: # Setup class Dummy(BaseTransformer): - ...
[ "tests/unit/transformers/test_base.py::TestBaseTransformer::test___repr___with_parameters" ]
[ "tests/unit/transformers/test_base.py::test_set_random_states", "tests/unit/transformers/test_base.py::test_random_state", "tests/unit/transformers/test_base.py::test_random_state_random_states_is_none", "tests/unit/transformers/test_base.py::TestBaseTransformer::test_set_random_state", "tests/unit/transfor...
{ "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": [...
896a62135bcc151f2997e028c5125bec2cb2431f
2021-12-26 18:32:23
docker.io/swerebenchv2/pallets-jinja:1559-896a621
pallets__jinja-1559
Method: InternationalizationExtension._make_node(self, singular: str, plural: t.Optional[str], context: t.Optional[str], variables: t.Dict[str, nodes.Expr], plural_expr: t.Optional[nodes.Expr], vars_referenced: bool) Location: src/jinja2/ext.py Inputs: - **singular** – the message string to translate. - **plural** –...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index d641712d..323fc80d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,9 @@ Unreleased - ``unicode_urlencode`` is renamed to ``url_quote``. - Add support for native types in macros. :issue:`1510` +- The ``{% trans %}`` tag can use ``pgettext`` and ``npgette...
specify context for translation block A context string can be passed as the first token to a `{% trans %}` block to use `pgettext` and `npgettext`. ```python {% trans "title" trimmed count=count %} ``` fixes #1430
Add block syntax for pgettext Follow up on #441, #1126 It was difficult to come to an agreement on the syntax for block translation with context, so it was left out of #1126. However this should still be added. The possibilities that were discussed are: * `context` keywords: `{% trans context "mycontext" num=3...
pallets/jinja
diff --git a/tests/test_ext.py b/tests/test_ext.py index b54e905f..2e842e0a 100644 --- a/tests/test_ext.py +++ b/tests/test_ext.py @@ -43,6 +43,9 @@ newstyle_i18n_templates = { "pgettext.html": '{{ pgettext("fruit", "Apple") }}', "npgettext.html": '{{ npgettext("fruit", "%(num)s apple", "%(num)s apples",' ...
[ "tests/test_ext.py::TestNewstyleInternationalization::test_context_block", "tests/test_ext.py::TestNewstyleInternationalization::test_context_plural_block" ]
[ "tests/test_ext.py::TestExtensions::test_extend_late", "tests/test_ext.py::TestExtensions::test_loop_controls", "tests/test_ext.py::TestExtensions::test_do", "tests/test_ext.py::TestExtensions::test_extension_nodes", "tests/test_ext.py::TestExtensions::test_contextreference_node_passes_context", "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": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.djangoproject.com/en/3.1/topics/i18n/tran...
03c8c46c3b9524b0ddcca44a9f0d1596f5079be0
2024-10-17 18:56:06
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3759-03c8c46
aws-cloudformation__cfn-lint-3759
Method: GetAtt.fn_getatt(self, validator, schema, instance, path) Location: src/cfnlint/rules/functions/GetAtt.py, class **GetAtt** (subclass of BaseFn) Inputs: - **validator** – a rule‑validator object whose **context.resources** map contains the declared CloudFormation resources. - **schema** – the JSON‑Schem...
python
MIT-0
diff --git a/src/cfnlint/rules/functions/GetAtt.py b/src/cfnlint/rules/functions/GetAtt.py index 1780107d3..5cb39ac72 100644 --- a/src/cfnlint/rules/functions/GetAtt.py +++ b/src/cfnlint/rules/functions/GetAtt.py @@ -123,6 +123,17 @@ class GetAtt(BaseFn): pointer = getatts.match(region, [resour...
Make an exception for DocDB Cluster Port return type *Issue #, if available:* fix #3757 *Description of changes:* - Make an exception for DocDB Cluster Port return type By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
!GetAtt DocDB::Cluster.Port is reporting as an integer @kddejong after this change, it's not clear to me how we're supposed to Output for example an RDS DBCluster's Port, which is a number. `Value: !GetAtt DBCluster.Port` fails with E6101 Attempting to cast it with something like `Value: !Sub ${DBClus...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/results/integration/getatt-types.json b/test/fixtures/results/integration/getatt-types.json index bcf56c7db..2d15e311c 100644 --- a/test/fixtures/results/integration/getatt-types.json +++ b/test/fixtures/results/integration/getatt-types.json @@ -31,12 +31,12 @@ }, { "Filena...
[ "test/unit/rules/functions/test_getatt.py::test_validate[Valid", "test/unit/rules/outputs/test_value.py::test_output_value[input1-expected1]", "test/unit/rules/outputs/test_value.py::test_output_value[input2-expected2]", "test/unit/rules/outputs/test_value.py::test_output_value[input3-expected3]" ]
[ "test/unit/rules/functions/test_getatt.py::test_validate[Invalid", "test/unit/rules/outputs/test_value.py::test_output_value[input0-expected0]", "test/unit/rules/outputs/test_value.py::test_output_value[input4-expected4]", "test/unit/rules/outputs/test_value.py::test_output_value[input5-expected5]", "test/u...
{ "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/aws-cloudformation/cfn-lint/issues/...
436735d2f5d90b8340984c8ab6f8afe4563ffcc0
2023-09-26 09:56:39
docker.io/swerebenchv2/apiflask-apiflask:485-436735d
apiflask__apiflask-485
Function: get_filestorage_size(file: FileStorage) -> int Location: apiflask.helpers.get_filestorage_size Inputs: - file: a Werkzeug FileStorage object representing the uploaded file. The function reads the whole stream to determine its byte length. Outputs: - Returns the size of the file in bytes as an int. The file ...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index b696457..ca6d663 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,14 +2,16 @@ Released: - -- Allow adding multiple media types for a response ([issue #494][issue_494]) -- Support adding headers to the response schema ([issue #507][issue_507]) +- Add `FileType` and `FileSize...
Add file validators for File field fixes #253 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or update relevant docs, in the `docs` folder and in code docstring. - [x] Add an entry in `CHANGES.md` summarizing the change and linkin...
Add file validators for File field Add `FileType` and `FileSize` validators.
apiflask/apiflask
diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 2cb38e9..10c809e 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -1,8 +1,13 @@ +import io + import pytest +from werkzeug.datastructures import FileStorage from apiflask import get_reason_phrase from apiflask import pagination_builde...
[ "tests/test_helpers.py::test_get_reason_phrase[204]", "tests/test_helpers.py::test_get_reason_phrase[400]", "tests/test_helpers.py::test_get_reason_phrase[404]", "tests/test_helpers.py::test_get_reason_phrase[456]", "tests/test_helpers.py::test_get_reason_phrase[4123]", "tests/test_helpers.py::test_get_re...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": null, "confidence": null, "detected_issues": null, "difficulty": null, "external_urls": null, "intent_completeness": null, "pr_categories": null, "reasoning": null, "test_alignment_issues": null }, "num_modified_files": 7, "num_modified_lines": 250...
455fbd5eaa0270e03eac85a532e47ec75c7acd21
2024-01-13 19:36:37
docker.io/swerebenchv2/getmoto-moto:7211-455fbd5
getmoto__moto-7211
Method: SageMakerRuntimeBackend.invoke_endpoint_async(self, endpoint_name: str, input_location: str) -> str Location: moto/sagemakerruntime/models.py Inputs: - **endpoint_name** (str): name of the SageMaker endpoint to invoke. - **input_location** (str): S3 URI (e.g., `s3://bucket/key`) where the request payload is st...
python
Apache-2.0
diff --git a/moto/sagemakerruntime/models.py b/moto/sagemakerruntime/models.py index 26928bcf8..872ca4464 100644 --- a/moto/sagemakerruntime/models.py +++ b/moto/sagemakerruntime/models.py @@ -1,6 +1,8 @@ +import json from typing import Dict, List, Tuple from moto.core import BackendDict, BaseBackend +from moto.mot...
SagemakerRuntime: invoke_endpoint_async() implementation Fixes #7205 Similar to the `invoke_endpoint` implementation, but this `async` version returns an S3 bucket with the results. Configuring results is done in the same manner as well - see http://docs.getmoto.org/en/latest/docs/services/sagemaker-runtime.html...
[Enhancement] Add support for `invoke_endpoint_async` in `sagemaker-runtime` Hi Moto team, Thanks so much for this great library! I saw recently that you all shipped support for `sagemaker-runtime`'s `invoke_endpoint` method (https://github.com/getmoto/moto/issues/4180 and https://github.com/getmoto/moto/pull/6747)....
getmoto/moto
diff --git a/tests/test_sagemakerruntime/test_sagemakerruntime.py b/tests/test_sagemakerruntime/test_sagemakerruntime.py index 60b256d5a..9ccece62a 100644 --- a/tests/test_sagemakerruntime/test_sagemakerruntime.py +++ b/tests/test_sagemakerruntime/test_sagemakerruntime.py @@ -1,7 +1,10 @@ +import json + import boto3 ...
[ "tests/test_sagemakerruntime/test_sagemakerruntime.py::test_invoke_endpoint_async" ]
[ "tests/test_sagemakerruntime/test_sagemakerruntime.py::test_invoke_endpoint__default_results", "tests/test_sagemakerruntime/test_sagemakerruntime.py::test_invoke_endpoint" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/getmoto/moto/issues/4180", "h...
7f05154182fb5ff8194e42bcc357497251aa554b
2022-01-10 20:26:08
docker.io/swerebenchv2/brettcannon-gidgethub:174-7f05154
brettcannon__gidgethub-174
No new interfaces are introduced.
python
Apache-2.0
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5f76395..ecc17c5 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -27,6 +27,8 @@ branch. Ensure that the tests are all passing, and that the coverage remains at 100%. +Ensure that the code the quality checks by running ``nox --session lint``. + Update ...
Properly handle HTTP 202 ACCEPTED as successful Closes #171.
202 ACCEPTED considered as error From here, it looks like the only correct HTTP status codes are 200 OK, 201 CREATED, and 204 NO CONTENT: https://github.com/brettcannon/gidgethub/blob/8724568f87efe1a13c8e0e2251969c1ba9940c7a/gidgethub/sansio.py#L316-L318 However, some endpoints may also return 202 ACCEPTED, like ...
brettcannon/gidgethub
diff --git a/tests/test_sansio.py b/tests/test_sansio.py index 34e1ab3..2a8d521 100644 --- a/tests/test_sansio.py +++ b/tests/test_sansio.py @@ -442,6 +442,28 @@ class TestDecipherResponse: assert rate_limit.limit == 60 assert returned_data == data + def test_202(self): + # https://github....
[ "tests/test_sansio.py::TestDecipherResponse::test_202" ]
[ "tests/test_sansio.py::TestValidateEvent::test_malformed_signature", "tests/test_sansio.py::TestValidateEvent::test_validation", "tests/test_sansio.py::TestValidateEvent::test_failure", "tests/test_sansio.py::TestEvent::test_init", "tests/test_sansio.py::TestEvent::test_from_http_json", "tests/test_sansio...
{ "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/brettcannon/gidgethub/blob/8724568f87...
64164b5d58ddbef2d4b2ffee216452d48dc527d9
2023-04-28 15:07:08
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2720-64164b5
aws-cloudformation__cfn-lint-2720
Method: Conditions.__init__(self, template) Location: src/cfnlint/conditions.py Inputs: - **template** (Template) – the fully‑parsed CloudFormation template object that the runner is processing. Outputs: - Returns an instance of **Conditions** which encapsulates the evaluated condition map for the given template an...
python
MIT-0
diff --git a/src/cfnlint/runner.py b/src/cfnlint/runner.py index 63343612f..a5e60dc9b 100644 --- a/src/cfnlint/runner.py +++ b/src/cfnlint/runner.py @@ -5,6 +5,7 @@ SPDX-License-Identifier: MIT-0 import logging from typing import List, Optional, Sequence, Union +from cfnlint.conditions import Conditions from c...
Rebuild Conditions if a SAM transform *Issue #, if available:* fix #2719 *Description of changes:* - Rebuild Conditions if a SAM transform By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E0002 Unknown exception while processing rule E3001: 'ServerlessCodeDeployCondition' ### CloudFormation Lint Version 0.77.3 ### What operating system are you using? Ubuntu ### Describe the bug Suddenly cfn-lint fails to validate a template that haven't been touched for several months. cfn-lint seems to b...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/issues/sam_w_conditions.yaml b/test/fixtures/templates/issues/sam_w_conditions.yaml new file mode 100644 index 000000000..1f1526870 --- /dev/null +++ b/test/fixtures/templates/issues/sam_w_conditions.yaml @@ -0,0 +1,413 @@ +AWSTemplateFormatVersion: 2010-09-09 +Transform: AWS::Serve...
[ "test/integration/test_good_templates.py::TestQuickStartTemplates::test_module_integration", "test/integration/test_good_templates.py::TestQuickStartTemplates::test_templates" ]
[]
{ "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": [...
7e514f46eb078a46051a2f0f9139a8340beb16b5
2024-10-18 16:57:49
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3767-7e514f4
aws-cloudformation__cfn-lint-3767
Method: IdentityPolicyValidator.validate(self, validator: CfnTemplateValidator, policy: str, schema: dict, policy_type: Optional[Any] = None) Location: src/cfnlint/rules/resources/iam/identity_policy.py Inputs: - validator – an instance of CfnTemplateValidator used to resolve intrinsic functions and provide context. -...
python
MIT-0
diff --git a/src/cfnlint/data/schemas/other/iam/policy.json b/src/cfnlint/data/schemas/other/iam/policy.json index 0bbe33bed..99f30247c 100644 --- a/src/cfnlint/data/schemas/other/iam/policy.json +++ b/src/cfnlint/data/schemas/other/iam/policy.json @@ -68,6 +68,7 @@ ] }, "Condition": { + "additionalProperti...
Add additionalProps false to IAM conditions *Issue #, if available:* fix #3751 *Description of changes:* - Add additionalProps false to IAM conditions By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
AWS::IAM::ManagedPolicy Condition syntax error not detected ### CloudFormation Lint Version cfn-lint 1.16.1 ### What operating system are you using? Linux ### Describe the bug cfn-lint is not detecting missing Condition operator. ```shell $ cfn-lint --format json --include-checks I -t ./demo-template...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/iam/test_identity_policy.py b/test/unit/rules/resources/iam/test_identity_policy.py index 3ba94c683..ec145becd 100644 --- a/test/unit/rules/resources/iam/test_identity_policy.py +++ b/test/unit/rules/resources/iam/test_identity_policy.py @@ -162,3 +162,35 @@ class TestIdentityPoli...
[ "test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_string_statements_with_condition" ]
[ "test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_basic", "test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_multiple_effect", "test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_statements", "...
{ "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": [...
1f4b2db3207d2ff5ae53bc59f6475e1732f97867
2024-09-20 17:01:55
docker.io/swerebenchv2/amaranth-lang-amaranth:1520-1f4b2db
amaranth-lang__amaranth-1520
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 [0.5 backport] 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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
01477fc9624b70078fe1c82634d7c9e4938de942
2024-07-29 09:10:42
docker.io/swerebenchv2/projectmesa-mesa:2187-01477fc
projectmesa__mesa-2187
Function: SolaraViz(model_class, model_params, measures=None, space_drawer=None, portrait=None, agent_portrayal=None, **model_params_override) Location: mesa.visualization.jupyter_viz Inputs: - **model_class** – a subclass of `mesa.Model` that will be instantiated. - **model_params** – a `dict` of parameters passed to...
python
Apache-2.0
diff --git a/docs/tutorials/visualization_tutorial.ipynb b/docs/tutorials/visualization_tutorial.ipynb index 493324ea..7496227c 100644 --- a/docs/tutorials/visualization_tutorial.ipynb +++ b/docs/tutorials/visualization_tutorial.ipynb @@ -119,9 +119,9 @@ }, "outputs": [], "source": [ - "from mesa.visuali...
Rename JupyterViz to SolaraViz Fixes #2175.
Rename JupyterViz to SolaraViz I want to propose to rename `JupyterViz` to `SolaraViz` in the [visualization](https://github.com/projectmesa/mesa/tree/main/mesa/visualization). We build heavily onto Solara, and it's also used outside Jupyter notebook environments. I regularly call it the "Solara-based visualisation" ri...
projectmesa/mesa
diff --git a/tests/test_jupyter_viz.py b/tests/test_jupyter_viz.py index 76ee666e..92dc1b29 100644 --- a/tests/test_jupyter_viz.py +++ b/tests/test_jupyter_viz.py @@ -5,7 +5,7 @@ import ipyvuetify as vw import solara import mesa -from mesa.visualization.jupyter_viz import JupyterViz, Slider, UserInputs +from mesa.v...
[ "tests/test_jupyter_viz.py::TestMakeUserInput::test_checkbox", "tests/test_jupyter_viz.py::TestMakeUserInput::test_label_fallback", "tests/test_jupyter_viz.py::TestMakeUserInput::test_slider_int", "tests/test_jupyter_viz.py::TestMakeUserInput::test_unsupported_type", "tests/test_jupyter_viz.py::test_call_sp...
[]
{ "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/projectmesa/mesa/tree/main/mesa/visua...
9c1e809ca3f854b97cd22d42dcd50f309f4c791e
2020-05-20 17:22:02
docker.io/swerebenchv2/hypothesisworks-hypothesis:2441-9c1e809
hypothesisworks__hypothesis-2441
No new interfaces are introduced.
python
custom-check-github
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 590bdccf2..c5b10ddda 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -266,6 +266,7 @@ their individual contributions. * `Paul Lorett Amazona <https://github.com/whatevergeek>`_ * `Paul Stiverson <https://github.com/thismatters>`_ * `Peadar Coyle <https:/...
Python 3.9: Treat missing __args__ on generic types as None In Python 3.9, the `__args__` attribute is unset rather than set to None on types that aren't specialized. See: - https://docs.python.org/3.9/whatsnew/changelog.html?highlight=__args__#id2 (search `__args__`) - https://bugs.python.org/issue40397 Closes...
Python 3.9: get_type cannot resolve some typing types to a strategy Under Python 3.9 with the [test & tools libraries](https://github.com/HypothesisWorks/hypothesis/blob/master/CONTRIBUTING.rst#installing-from-source-and-testing) installed, `test_lookup.test_resolves_weird_types` fails to resolve `typing.Sequence` and ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_lookup.py b/hypothesis-python/tests/cover/test_lookup.py index 5197fda6b..8749af782 100644 --- a/hypothesis-python/tests/cover/test_lookup.py +++ b/hypothesis-python/tests/cover/test_lookup.py @@ -38,6 +38,7 @@ sentinel = object() generics = sorted( (t for t in type...
[ "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[Type]", "hypothesis-python/tests/cover/test_lookup.py::test_resolves_weird_types[Mapping]" ]
[ "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[ByteString]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[Callable]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[DefaultDict]", "hypothesis-python/tests/cover/test_lookup.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": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/blob/maste...
c8cd4de9060cbb13135f7456370abee19c8382eb
2024-07-08 11:43:30
docker.io/swerebenchv2/pyg-team-pytorch-geometric:9494-c8cd4de
pyg-team__pytorch_geometric-9494
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b64a1ab..4d9a45259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed +- Allow optional but untyped tensors in `MessagePassing` ([#9494](https://github.com/pyg-te...
Allow optional but untyped tensors in `MessagePassing` Fixes #9492
UnboundLocalError: local variable 'edge_attr' referenced before assignment ### 🐛 Describe the bug I found that `collect.jinja` template generator will assume the parameter `edge_attr` of the method `message` in the child class of `MessagePassing` to be exist even that parameter is set with a default value and is opti...
pyg-team/pytorch_geometric
diff --git a/test/nn/conv/test_message_passing.py b/test/nn/conv/test_message_passing.py index 76ff02dc7..07fc8c42c 100644 --- a/test/nn/conv/test_message_passing.py +++ b/test/nn/conv/test_message_passing.py @@ -740,3 +740,24 @@ def test_pickle(tmp_path): model = torch.load(path) torch.jit.script(model) + ...
[ "test/nn/conv/test_message_passing.py::test_my_optional_edge_attr_conv" ]
[ "test/nn/conv/test_message_passing.py::test_my_conv_basic", "test/nn/conv/test_message_passing.py::test_my_conv_save", "test/nn/conv/test_message_passing.py::test_my_conv_edge_index", "test/nn/conv/test_message_passing.py::test_my_commented_conv", "test/nn/conv/test_message_passing.py::test_my_kwargs_conv",...
{ "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/snap-stanford/prodigy", "http...
273f6421b4534899161f643b14316d9cb8e42b4b
2023-10-26 13:18:47
docker.io/swerebenchv2/cta-observatory-ctapipe:2429-273f642
cta-observatory__ctapipe-2429
Method: TelescopeParameterLookup.__getitem__(self, tel: int) Location: ctapipe/core/telescope_component.py Inputs: tel – integer identifier of a telescope expected to be present in the component’s attached Subarray. Must be a valid key in the subarray’s telescope dictionary. Outputs: Returns the stored parameter value...
python
BSD-3-Clause
diff --git a/ctapipe/core/telescope_component.py b/ctapipe/core/telescope_component.py index 2bac22e6..6b49dae9 100644 --- a/ctapipe/core/telescope_component.py +++ b/ctapipe/core/telescope_component.py @@ -217,8 +217,10 @@ class TelescopeParameterLookup: try: return self._value_for_tel_id...
Check if tel_id exists when looking up TelescopeParameters Fixes #2233.
TelescopeParameterLookup does not check wether telescope is in attaached subarray The following code fails: ```python TelescopeParamtereLookup.tel[0] *** KeyError: "TelescopeParameterLookup: no parameter value was set for telescope with tel_id=0. Please set it explicitly, or by telescope type or '*'." ``` which i...
cta-observatory/ctapipe
diff --git a/ctapipe/core/tests/test_telescope_component.py b/ctapipe/core/tests/test_telescope_component.py index 7aae1de4..e7f38995 100644 --- a/ctapipe/core/tests/test_telescope_component.py +++ b/ctapipe/core/tests/test_telescope_component.py @@ -342,3 +342,16 @@ def test_telescope_parameter_none(trait_type, mock_s...
[ "ctapipe/core/tests/test_telescope_component.py::test_telescope_parameter_nonexistent_telescope" ]
[ "ctapipe/core/tests/test_telescope_component.py::test_telescope_parameter_lookup", "ctapipe/core/tests/test_telescope_component.py::test_telescope_parameter_lookup_by_type", "ctapipe/core/tests/test_telescope_component.py::test_telescope_parameter_patterns", "ctapipe/core/tests/test_telescope_component.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": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/cta-observatory/ctapipe/blob/2021ad19...
351b45c7f13507d477afd66eb571274cd1224b8b
2024-01-30 19:56:07
docker.io/swerebenchv2/getmoto-moto:7283-351b45c
getmoto__moto-7283
Method: LambdaBackend.create_event_source_mapping(self, EventSourceArn: str, FunctionName: str) Location: moto/awslambda/models.py – `LambdaBackend.create_event_source_mapping` Inputs: - **EventSourceArn** – ARN string of a supported event source (DynamoDB, Kinesis, SQS). - **FunctionName** – ARN or name of the...
python
Apache-2.0
diff --git a/.gitignore b/.gitignore index e34bcfd32..956ec003f 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ other_langs/tests_dotnet/ExampleTestProject/obj other_langs/tests_ruby/Gemfile.lock other_langs/terraform/*/.terraform* other_langs/terraform/*/terraform* +other_langs/terraform/awslambda/lambda...
S3: list_objects_v2() should return more than 1000 files `list_objects_v2` called `list_objects` with a `max_keys`-value of 1000, which meant that we would always only get 1000 keys back - regardless of however were available. Passing `max_keys=None` means that we can just tell `list_objects()` to not truncate anyth...
Paginator has stopped working for me in moto 5 I have some code that uses pagination: https://github.com/lsst/resources/blob/main/python/lsst/resources/s3.py#L472 ```python s3_paginator = self.client.get_paginator("list_objects_v2") for page in s3_paginator.paginate(Bucket=self.netloc, Prefix=prefix, Delimiter="/"...
getmoto/moto
diff --git a/.github/workflows/tests_terraform_examples.yml b/.github/workflows/tests_terraform_examples.yml index 56e8f4daf..751f98c06 100644 --- a/.github/workflows/tests_terraform_examples.yml +++ b/.github/workflows/tests_terraform_examples.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false m...
[ "tests/test_s3/test_s3.py::test_list_objects_v2__more_than_1000" ]
[ "tests/test_s3/test_s3.py::test_keys_are_pickleable", "tests/test_s3/test_s3.py::test_my_model_save", "tests/test_s3/test_s3.py::test_object_metadata", "tests/test_s3/test_s3.py::test_resource_get_object_returns_etag", "tests/test_s3/test_s3.py::test_key_save_to_missing_bucket", "tests/test_s3/test_s3.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/lsst/resources/blob/main/python/lss...
0018a6b7452b4fcb1654e53422db07915fff88a8
2021-06-02 21:55:17
docker.io/swerebenchv2/niconoe-pyinaturalist:161-0018a6b
niconoe__pyinaturalist-161
Method: LifeList.from_taxonomy_json(cls, value: ResponseOrFile, user_id: int = None) -> Optional[LifeList] Location: pyinaturalist.models.life_list.LifeList Inputs: - **value** – JSON response object, path to a JSON file, or file‑like object containing the taxonomy payload returned by ``GET /observations/taxonomy``. -...
python
MIT
diff --git a/HISTORY.md b/HISTORY.md index d6e9abe..e2d476b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,6 +5,7 @@ ### New Endpoints * Added new function for **Observation sounds** endpoint: `upload_sounds()` +* Added new function for **Life list** endpoint: `get_observation_taxonomy()` ### Modified Endpoints ...
Add user life list endpoint (GET /observations/taxonomy) + models Closes #159
Add user life list endpoint iNaturalist life lists ([example](https://www.inaturalist.org/lifelists/jkcook?view=tree&details_view=observations)) use an undocumented endpoint, `GET /observations/taxonomy`, which looks quite useful. This provides a much faster and more concise way to create a taxonomy tree of your own ob...
niconoe/pyinaturalist
diff --git a/test/sample_data/get_observation_taxonomy.json b/test/sample_data/get_observation_taxonomy.json new file mode 100644 index 0000000..051dc7d --- /dev/null +++ b/test/sample_data/get_observation_taxonomy.json @@ -0,0 +1,100 @@ +{ + "count_without_taxon": 4, + "size": 9, + "results": [ + { + "id": ...
[ "test/test_models.py::test_from_json_file", "test/test_models.py::test_from_json_list_file", "test/test_models.py::test_from_json_file__empty", "test/test_models.py::test_annotation_converters", "test/test_models.py::test_annotation_empty", "test/test_models.py::test_annotation_values", "test/test_model...
[]
{ "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": [ "https://www.inaturalist.org/lifelists/jkcook?view=tree...
ced6ec369d3016dad69ef6f8a9ef41a484b3bdfb
2024-10-03 20:12:32
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3734-ced6ec3
aws-cloudformation__cfn-lint-3734
No new interfaces are introduced.
python
MIT-0
diff --git a/scripts/update_schemas_manually.py b/scripts/update_schemas_manually.py index f0da02b17..74beb6fdf 100755 --- a/scripts/update_schemas_manually.py +++ b/scripts/update_schemas_manually.py @@ -898,7 +898,10 @@ patches.extend( path="/", values={ ...
Update requiredXor for Vpc and Subnets *Issue #, if available:* fix #3729 *Description of changes:* - Update requiredXor for Subnets and VPCs By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Both CidrBlock and Ipv4NetmaskLength cannot be specified ### Is this feature request related to a new rule or cfn-lint capabilities? _No response_ ### Describe the feature you'd like to request When doing ``` Subnet: Type: AWS::EC2::Subnet Properties: VpcId: !Ref Vpc CidrBlock: 10.0.0....
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/results/integration/aws-ec2-subnet.json b/test/fixtures/results/integration/aws-ec2-subnet.json new file mode 100644 index 000000000..616b6f34a --- /dev/null +++ b/test/fixtures/results/integration/aws-ec2-subnet.json @@ -0,0 +1,86 @@ +[ + { + "Filename": "test/fixtures/templates/in...
[ "test/integration/test_integration_templates.py::TestQuickStartTemplates::test_templates" ]
[]
{ "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": "medium", "external_urls": [ "https://github.com/aws-cloudformation/cfn-lint/blob/ma...