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
19726c09cde31a8c2d922794b8c092b4a19202b3
2022-05-13 20:08:23
docker.io/swerebenchv2/planetlabs-planet-client-python:553-19726c0
planetlabs__planet-client-python-553
Function: and_filter(nested_filters) Location: planet/data_filter.py Inputs: nested_filters – List[dict] containing filter JSON objects to be combined with logical AND. Outputs: dict – JSON representation `{'type': 'AndFilter', 'config': nested_filters}`. Description: Builds an AndFilter that matches items satisfying a...
python
Apache-2.0
diff --git a/docs/api.md b/docs/api.md index 147ef1c..9c8b27a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -16,6 +16,14 @@ rendering: show_root_full_path: false +## ::: planet.DataClient + rendering: + show_root_full_path: false + +## ::: planet.data_filter + rendering: + show_root_full_p...
Data filter python api Closes #533 and #534
implement data api support for creating a data search filter similar to `order_request` ([ref](https://github.com/planetlabs/planet-client-python/blob/main/planet/order_request.py)), implement `data_filter`, which supports creation of a data search filter. This is the backend for `planet data filter` CLI command
planetlabs/planet-client-python
diff --git a/tests/unit/test_data_filter.py b/tests/unit/test_data_filter.py new file mode 100644 index 0000000..31e78c0 --- /dev/null +++ b/tests/unit/test_data_filter.py @@ -0,0 +1,212 @@ +# Copyright 2020 Planet Labs PBC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this f...
[ "tests/unit/test_data_filter.py::test_and_filter", "tests/unit/test_data_filter.py::test_or_filter", "tests/unit/test_data_filter.py::test_not_filter", "tests/unit/test_data_filter.py::test__range_filter_success", "tests/unit/test_data_filter.py::test__range_filter_nocallback", "tests/unit/test_data_filte...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.9, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": [...
3a97912b919e76b9bb90437975d215ca26f53e4d
2022-12-25 22:17:32
docker.io/swerebenchv2/ploomber-jupysql:22-3a97912
ploomber__jupysql-22
Method: SQLCommand.__init__(self, magic, user_ns, line, cell) Location: src/sql/command.py Inputs: - **magic**: the SqlMagic instance used to access argument parsing and configuration. - **user_ns**: dictionary of the current IPython user namespace (variables that may contain Engine objects). - **line**: raw ...
python
Apache-2.0
diff --git a/doc/connecting.md b/doc/connecting.md index d08a9b1..09f6b62 100644 --- a/doc/connecting.md +++ b/doc/connecting.md @@ -6,7 +6,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.14.0 + jupytext_version: 1.14.4 kernelspec: display_name: Python...
allow to pass existing `sqlalchemy.engine.Engine` Closes #16 I also added more unit tests and created `SQLCommand` to encapsulate the input parsing logic (which allows us to test it more easily)
Support passing existing connections The initialization locks the context to a specific engine. [See example](https://github.com/catherinedevlin/ipython-sql/issues/216) We'd like to allow users to connect to an engine directly by reference (similar to SQL alchemy).
ploomber/jupysql
diff --git a/src/tests/conftest.py b/src/tests/conftest.py index 13b9ee3..18480da 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -1,3 +1,4 @@ +import os import urllib.request from pathlib import Path @@ -44,6 +45,7 @@ def ip(): ip_session.register_magics(SqlMagic) ip_session.register_ma...
[ "src/tests/test_command.py::test_parsed[arg-with-option]", "src/tests/test_command.py::test_parsed[connection-string]", "src/tests/test_command.py::test_parsed[sql-query]", "src/tests/test_command.py::test_parsed[sql-query-in-line-and-cell]", "src/tests/test_command.py::test_parsed[parsed-var]", "src/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/catherinedevlin/ipython-sql/issues/...
ed98a5eb2db664ec010ce2cbe75d1b59270503de
2024-01-12 15:55:06
docker.io/swerebenchv2/aio-libs-aiohttp:8026-ed98a5e
aio-libs__aiohttp-8026
Method: ClientSession.__init__(self, *, timeout: ClientTimeout | None = None, **kwargs) Location: aiohttp/client.py Inputs: - **timeout** – must be either a `ClientTimeout` instance, `None`, or omitted (sentinel). Any other type (e.g., `int`, `str`) triggers a `ValueError`. - Additional keyword arguments are unchanged...
python
custom-check-github
diff --git a/CHANGES/8021.bugfix b/CHANGES/8021.bugfix new file mode 100644 index 000000000..f43843a58 --- /dev/null +++ b/CHANGES/8021.bugfix @@ -0,0 +1,1 @@ +Add runtime type check for ``ClientSession`` ``timeout`` parameter. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 931d5c5b9..e94381dcf 100644 --- a/CON...
Backport to 3.10: Add runtime type check for `ClientSession` `timeout` param (#8022) # Backport to 3.10 ## What do these changes do? Add runtime type check for `ClientSession` `timeout` param when creating a client. ## Are there changes in behavior for the user? A `ValueError` is raised when using someth...
ClientSession timeout AttributeError ### Describe the bug When you create a client with `client.ClientSession(timeout=500)` does not raise or warn that timeout must be implemented as `ClientTimeout` but fails when sending a get request Code lets you implement a client as `client.ClientSession(timeout='bad_arg')` ...
aio-libs/aiohttp
diff --git a/tests/test_client_session.py b/tests/test_client_session.py index 2823fc462..a0654ed8c 100644 --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -814,12 +814,6 @@ async def test_client_session_timeout_default_args(loop) -> None: await session1.close() -async def test_client_s...
[ "tests/test_client_session.py::test_client_session_timeout_zero", "tests/test_client_session.py::test_client_session_timeout_bad_argument", "tests/test_client_session.py::test_requote_redirect_url_default" ]
[ "tests/test_client_session.py::test_close_coro[pyloop]", "tests/test_client_session.py::test_init_headers_simple_dict[pyloop]", "tests/test_client_session.py::test_init_headers_list_of_tuples[pyloop]", "tests/test_client_session.py::test_init_headers_MultiDict[pyloop]", "tests/test_client_session.py::test_i...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/aio-libs/aiohttp" ], "inten...
90d67db6eae20ccde57356b694e013fd5864d14a
2023-04-13 10:34:24
docker.io/swerebenchv2/getmoto-moto:6208-90d67db
getmoto__moto-6208
Function: parse_template(template, template_data, tokenizer=None, until=None) Location: moto/ses/template.py Inputs: - **template** (str): The raw template string containing `{{variable}}` placeholders and optional single‑brace literals. - **template_data** (dict): Mapping of placeholder names to their replacement val...
python
Apache-2.0
diff --git a/moto/ses/template.py b/moto/ses/template.py index ec34cd19c..5c82c6091 100644 --- a/moto/ses/template.py +++ b/moto/ses/template.py @@ -10,7 +10,8 @@ def parse_template(template, template_data, tokenizer=None, until=None): for char in tokenizer: if until is not None and (char + tokenizer.peek...
SES - allow single curly brace in template Fixes #6206
AssertionError with SES Templates containing { Reproduction of Issue run moto_server Test Template (testTemplate.json): `{ "Template": { "TemplateName": "Test", "SubjectPart": "Test", "HtmlPart": "This is a { Test } {{test}}", "TextPart": "This is a { Test } {{test}}" } }` aws ......
getmoto/moto
diff --git a/tests/test_ses/test_templating.py b/tests/test_ses/test_templating.py index 0883013b0..a9346b3a9 100644 --- a/tests/test_ses/test_templating.py +++ b/tests/test_ses/test_templating.py @@ -24,3 +24,10 @@ def test_template_with_multiple_foreach(): "l2": [{"o1": "ob1", "o2": "ob2"}, {"o1": "oc1", "o2...
[ "tests/test_ses/test_templating.py::test_template_with_single_curly_brace" ]
[ "tests/test_ses/test_templating.py::test_template_without_args", "tests/test_ses/test_templating.py::test_template_with_simple_arg", "tests/test_ses/test_templating.py::test_template_with_foreach", "tests/test_ses/test_templating.py::test_template_with_multiple_foreach" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/getmoto/moto/blob/c44f0b7395310d9ab63...
63f4cfe679fb3d9322e56d8569207ecff4735238
2023-03-30 08:51:54
docker.io/swerebenchv2/pypa-packaging:684-63f4cfe
pypa__packaging-684
Method: Requirement.__init__(self, requirement_string: str) Location: packaging.requirements.Requirement class Inputs: A requirement specification string as defined by PEP 508 (e.g., “name @ url”, optional extras, version specifiers, and environment markers). The string may contain a URL with any scheme/netloc combinat...
python
custom-check-github
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8bf68c6..17ac85d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ Changelog ~~~~~~~~~~~~ * Enforce that the entire marker string is parsed (:issue:`687`) +* Requirement parsing no longer automatically validates the URL (:issue:`120`) 23.1 - 2023-04-1...
Remove URL validation from requirement parsing The scheme and path validation logic limits how users of the library can provide URL support. This limitation is lifted, and dependants now need to implement their own URL validation logic they see fit. Close #120.
URI parsing ``` $ python3 Python 3.6.4 (default, Jan 6 2018, 02:24:08) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import packaging.requirements >>> packaging.requirements.Requirement("pip @ file://localhost/localbuilds/pip-1.3.1-py33-none-any.whl") <Requireme...
pypa/packaging
diff --git a/tests/test_requirements.py b/tests/test_requirements.py index 4ccc477..45d3937 100644 --- a/tests/test_requirements.py +++ b/tests/test_requirements.py @@ -78,6 +78,7 @@ DIFFERENT_DEPENDENCIES = [ ("git+https://git.example.com/MyProject.git@master", ""), ("git+https://git.example.com/MyPr...
[ "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-gopher:/foo/com--extras0-package]", "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-gopher:/foo/com--extras0-pAcKaGe]", "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-gopher:/foo/com--extras0...
[ "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-None--extras0-package]", "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-None--extras0-pAcKaGe]", "tests/test_requirements.py::test_basic_valid_requirement_parsing[-None-None--extras0-Package]", "tests/test_require...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://www.python.org/dev/peps/pep-0508/" ], "i...
40dbd682f49bdd9cab9b8ee71f9e400595f5b21f
2018-07-03 00:02:36
docker.io/swerebenchv2/digitalocean-pynetbox:66-40dbd68
digitalocean__pynetbox-66
Function: api(url, **kwargs) Location: pynetbox/__init__.py (exposes the public factory for creating an ``Api`` instance) Inputs: - **url** (str) – the root URL of a NetBox instance (e.g., “http://localhost:8000/”). - **kwargs** (optional) – additional connection parameters accepted by ``Api.__init__`` such as ``token`...
python
Apache-2.0
diff --git a/pynetbox/api.py b/pynetbox/api.py index b68ce01..fceff1e 100644 --- a/pynetbox/api.py +++ b/pynetbox/api.py @@ -89,7 +89,7 @@ class Api(object): raise ValueError( '"private_key" and "private_key_file" cannot be used together.' ) - base_url = "{}/api".format...
Fixes #61 - URL with trailing frontslash Sanitizes the url positional argument given to Api() to remove a trailing frontslash if it's passed.
v2.3.4 of NetBox adds an extra backslash ("/") between hostname and URL ### Issue type [X] Bug report <!-- Unexpected or erroneous behavior --> ### Environment * Python version: 3.5 * NetBox version: 2.3.4 * PyNetBox version: 3.3.1 ### Description Using `pynetbox` querying against an instance of `Net...
digitalocean/pynetbox
diff --git a/tests/test_api.py b/tests/test_api.py index 3b5f558..f4ba9bb 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -41,6 +41,18 @@ class ApiTestCase(unittest.TestCase): ) self.assertTrue(api) + @patch( + 'pynetbox.lib.query.requests.post', + return_value=Response(fi...
[ "tests/test_api.py::ApiTestCase::test_sanitize_url" ]
[ "tests/test_api.py::ApiTestCase::test_get", "tests/test_api.py::ApiArgumentsTestCase::test_ssl_verify_default", "tests/test_api.py::ApiArgumentsTestCase::test_ssl_verify_false", "tests/test_api.py::ApiArgumentsTestCase::test_ssl_verify_string", "tests/test_api.py::ApiArgumentsTestCase::test_ssl_verify_true"...
{ "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": [...
b4e2f950f2d060ff907fc9ecf3f7688922bdd6be
2024-06-29 01:37:31
docker.io/swerebenchv2/getmoto-moto:7798-b4e2f95
getmoto__moto-7798
Method: ResourceGroupsTaggingAPIClient.get_resources(self, ResourcesPerPage=None, PaginationToken=None, ResourceTypeFilters=None, TagFilters=None, TagsPerPage=None, IncludeComplianceDetails=None, ExcludeCompliantResources=None, ResourceARNList=None) Location: boto3 client for the AWS service "resourcegroupstaggingapi" ...
python
Apache-2.0
diff --git a/moto/resourcegroupstaggingapi/models.py b/moto/resourcegroupstaggingapi/models.py index 55d5e5f55..c3548be44 100644 --- a/moto/resourcegroupstaggingapi/models.py +++ b/moto/resourcegroupstaggingapi/models.py @@ -211,7 +211,11 @@ class ResourceGroupsTaggingAPIBackend(BaseBackend): yield {"R...
ResourceGroupsTagging: Add support for `s3:bucket` resource type filter AWS Resource Groups Tagging API only supports S3 bucket resources[1], so `s3` and `s3:bucket` are interchangeable and return the same results. [1]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html ...
resourcegroupstaggingapi get_resources doesn't properly filter on s3:bucket When using the `get_resources` method from the resource groups tagging api with `s3:bucket` as an entry in `ResourceTypesFilters`, no S3 Buckets are being returned. Moto seems to only return S3 buckets when `s3` is provided as a filter rather t...
getmoto/moto
diff --git a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py b/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py index 60fc8cc6d..ed9dacc46 100644 --- a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py +++ b/tests/test_resourcegroupstaggingapi/test_resourcegro...
[ "tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_s3[s3:bucket]" ]
[ "tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_cloudformation", "tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_acm", "tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_backup", "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": "easy", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest/...
8a6d5bbb344dcf1610f87942c93a65b725e0f7ec
2023-01-23 22:21:01
docker.io/swerebenchv2/mit-ll-responsible-ai-hydra-zen:401-8a6d5bb
mit-ll-responsible-ai__hydra-zen-401
Method: ZenStore.__call__(self, __target: Any, *, name: Optional[str]=None, group: Optional[str]=None, provider: Optional[str]=None, **kwargs) Location: hydra_zen.wrapper._implementations.ZenStore.__call__ Inputs: - __target – an object to register; can be an instance or subclass of ``HydraConf``. - name, group,...
python
MIT
diff --git a/docs/requirements.txt b/docs/requirements.txt index e1e5ce86..08f5e6bf 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,5 +5,5 @@ sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-codeautolink==0.13.1 # third-party utilities -beartype==0.12.0 +beartype==0.11.0 pydantic==1.10.4 di...
Infer name/group for storing HydraConf instances/subclasses Closes #395
Specialized support for `HydraConf` in `ZenStore`? Inspired by #394 , it might be nice for `store`/`ZenStore` to have specialized support for instances/subclasses of `HydraConf` so that ```python store(HydraConf(job=JobConf(chdir=True))) ``` is equivalent to the long-form ```python store(HydraConf(job=JobCo...
mit-ll-responsible-ai/hydra-zen
diff --git a/tests/example_app/change_hydra_config.py b/tests/example_app/change_hydra_config.py new file mode 100644 index 00000000..627ed03a --- /dev/null +++ b/tests/example_app/change_hydra_config.py @@ -0,0 +1,25 @@ +# Copyright (c) 2023 Massachusetts Institute of Technology +# SPDX-License-Identifier: MIT + +from...
[ "tests/test_signature_parsing.py::test_user_specified_value_overrides_default[False]", "tests/test_signature_parsing.py::test_user_specified_value_overrides_default[True]", "tests/test_signature_parsing.py::test_builds_signature_shuffling_takes_least_path", "tests/test_signature_parsing.py::test_builds_with_f...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.84, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
6b8e970d4cc6eaf70dc1b59b47086689f3b2c474
2022-12-06 20:06:21
docker.io/swerebenchv2/pennylaneai-pennylane:3483-6b8e970
pennylaneai__pennylane-3483
Function: prod(*ops, do_queue=True, id=None, lazy=True) Location: pennylane.ops.op_math.prod.prod Inputs: - ops: one or more Operator instances to be multiplied. - do_queue (bool, optional): whether to queue the resulting Prod operator (default True). - id (str or None, optional): custom identifier for the Prod operato...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index aed8a4a2c..0570aa7a9 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -409,6 +409,9 @@ the optional `use_grouping` attribute. [(#3456)](https://github.com/PennyLaneAI/pennylane/pull/3456) +* Add the...
Add lazy=True keyword argument to qml.s_prod, qml.prod, and qml.op_sum **Context:** Currently, qml.pow and qml.adjoint both have a keyword argument lazy=True that indicates whether or not to perform some basic simplification steps. We are now doing similar things for qml.s_prod, qml.prod, and qml.op_sum, if lazy=False....
Add `lazy=True` keyword argument to `qml.s_prod`, `qml.prod`, and `qml.op_sum` Currently, `qml.pow` and `qml.adjoint` both have a keyword argument `lazy=True` that indicates whether or not to perform some basic simplification steps: ``` >>> qml.adjoint(qml.PauliX(0), lazy=True) Adjoint(PauliX(wires=[0])) >>> qml....
PennyLaneAI/pennylane
diff --git a/tests/ops/op_math/test_prod.py b/tests/ops/op_math/test_prod.py index 0fbae773c..cba54421e 100644 --- a/tests/ops/op_math/test_prod.py +++ b/tests/ops/op_math/test_prod.py @@ -1026,6 +1026,30 @@ class TestWrapperFunc: assert prod_class_op.wires == prod_func_op.wires assert prod_class_op.p...
[ "tests/ops/op_math/test_prod.py::TestWrapperFunc::test_non_lazy_mode", "tests/ops/op_math/test_prod.py::TestWrapperFunc::test_nonlazy_mode_queueing", "tests/ops/op_math/test_sprod.py::TestWrapperFunc::test_non_lazy_mode", "tests/ops/op_math/test_sprod.py::TestWrapperFunc::test_non_lazy_mode_queueing", "test...
[ "tests/ops/op_math/test_prod.py::TestInitialization::test_init_prod_op[foo]", "tests/ops/op_math/test_prod.py::TestInitialization::test_init_prod_op[bar]", "tests/ops/op_math/test_prod.py::TestInitialization::test_terms[ops_lst0]", "tests/ops/op_math/test_prod.py::TestInitialization::test_terms[ops_lst1]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
54ca6d0c7776fb861f8a082e86085d05ebdb82f3
2025-04-08 07:11:21
docker.io/swerebenchv2/getmoto-moto:8780-54ca6d0
getmoto__moto-8780
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/rds/models.py b/moto/rds/models.py index f3621b1df..3a291b6d6 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -2690,7 +2690,7 @@ class RDSBackend(BaseBackend): if database.status != "available": raise InvalidDBInstanceStateError(db_instance_identifier, "stop") ...
RDS: snapshot type should be `manual` when stopping a DBInstance Fixes #8779
[RDS - Moto 5.1.3] stop_db_instance does not respect DBSnapshotIdentifier as manual snapshots When calling stop_db_instance, you can provide a DBSnapshotIdentifier to create a manual snapshot as part of the db stop action. However, moto incorrectly tags this snapshot as an "automatic" snapshot instead of a manual one. ...
getmoto/moto
diff --git a/tests/test_rds/test_rds.py b/tests/test_rds/test_rds.py index 78dd005c4..7fdf0446c 100644 --- a/tests/test_rds/test_rds.py +++ b/tests/test_rds/test_rds.py @@ -289,6 +289,7 @@ def test_start_database(client): assert response["DBInstance"]["DBInstanceStatus"] == "stopped" response = client.describ...
[ "tests/test_rds/test_rds.py::test_start_database" ]
[ "tests/test_rds/test_rds.py::test_create_database", "tests/test_rds/test_rds.py::test_create_database_already_exists", "tests/test_rds/test_rds.py::test_database_with_deletion_protection_cannot_be_deleted", "tests/test_rds/test_rds.py::test_create_database_no_allocated_storage", "tests/test_rds/test_rds.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": [...
c8ab8c35caeb58b87060a23b43590bfc59a06618
2023-11-10 20:17:03
docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:184-c8ab8c3
mondeja__mkdocs-include-markdown-plugin-184
Function: get_file_content Location: src/mkdocs_include_markdown_plugin/event.py Inputs: - markdown: str – the full markdown source being processed. - page_src_path: str or pathlib.Path – absolute path of the page file currently rendered. - docs_dir: str or pathlib.Path – root directory of the documentation site. - dir...
python
Apache-2.0
diff --git a/pyproject.toml b/pyproject.toml index acfdad7..30a97b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mkdocs-include-markdown-plugin" -version = "6.0.3" +version = "6.0.4" description = "Mkdocs Markdown includer plugin." readme = "README.md" license = "Apache-2.0" @...
Fix logging variables not included formatting messages Fixes #183, regression from [v6.0.2](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases/tag/v6.0.2).
WARNING log variables not binded The following WARNING is logged, but no variable significant value is shown: `WARNING - plugins.mkdocs_include_markdown_plugin: Delimiter {delimiter_name} '{delimiter_value}' of '{directive}' directive at {relative_path}:{line_number} not detected in the file{plural_suffix} {readabl...
mondeja/mkdocs-include-markdown-plugin
diff --git a/tests/test_unit/test_glob_include.py b/tests/test_unit/test_glob_include.py index 3040981..10c878f 100644 --- a/tests/test_unit/test_glob_include.py +++ b/tests/test_unit/test_glob_include.py @@ -99,46 +99,30 @@ barbaz %} ''', [ - { - 'delimiter_name': 'star...
[ "tests/test_unit/test_glob_include.py::test_glob_include[start-end-not-found-directive=include]", "tests/test_unit/test_glob_include.py::test_glob_include[start-end-not-found-directive=include-markdown]", "tests/test_unit/test_include.py::test_include[start=foo", "tests/test_unit/test_include.py::test_include...
[ "tests/test_unit/test_glob_include.py::test_glob_include_absolute", "tests/test_unit/test_glob_include.py::test_glob_include[start-end-directive=include]", "tests/test_unit/test_glob_include.py::test_glob_include[start-end-directive=include-markdown]", "tests/test_unit/test_glob_include.py::test_glob_include[...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
fdff19c1f0d7a0b5c56d34ef4f4acbdb6677224c
2020-08-02 14:01:40
docker.io/swerebenchv2/ericmjl-pyjanitor:709-fdff19c
ericmjl__pyjanitor-709
No new interfaces are introduced.
python
MIT
diff --git a/.travis.yml b/.travis.yml index a207fd8..6bfd474 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ install: # We do this conditionally because it saves us some downloading if the # version is the same. - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O minic...
[ENH] Groupby_agg function # PR Description Please describe the changes proposed in the pull request: - Updates groupby_agg to cater for add_count method - Covers aggregation for null entries, pending when Pyjanitor's minimum version is 1.1, which natively supports keeping null values <!-- Doing so provides m...
Add add_count and add_total functions I know there is functionality with groupby_agg here, so I have been going back and forth on this one. But like the tidyverse there are helper functions the are more direct like tally or add_count, where you could use summarize() and count() or n() together to get the same output. ...
ericmjl/pyjanitor
diff --git a/tests/functions/test_groupby_agg.py b/tests/functions/test_groupby_agg.py index 9c1f3ca..e3c74c9 100644 --- a/tests/functions/test_groupby_agg.py +++ b/tests/functions/test_groupby_agg.py @@ -1,6 +1,7 @@ import numpy as np import pandas as pd import pytest +from pandas.testing import assert_frame_equal ...
[ "tests/functions/test_groupby_agg.py::test_groupby_agg_null_columns" ]
[ "tests/functions/test_groupby_agg.py::test_groupby_agg", "tests/functions/test_groupby_agg.py::test_groupby_agg_multi", "tests/functions/test_groupby_agg.py::test_groupby_agg_multi_column" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
a2cea76db4959471395afd5d766018bc05727d09
2023-07-28 15:51:29
docker.io/swerebenchv2/researchobject-ro-crate-py:155-a2cea76
researchobject__ro-crate-py-155
No new interfaces are introduced.
python
Apache-2.0
diff --git a/rocrate/metadata.py b/rocrate/metadata.py index 98e4583..e37c111 100644 --- a/rocrate/metadata.py +++ b/rocrate/metadata.py @@ -19,7 +19,7 @@ import json import warnings -from .model.metadata import Metadata, LegacyMetadata +from .model import Metadata, LegacyMetadata def read_metadata(metadata_pa...
Import model Fixes #147
Export entities/models in `rocrate.model.__init__` Hi, Would it be possible to simplify the imports of ro-crate-py, import/exporting entities like `Person`, `ContextEntity`, `Metadata`, etc, from the `__init__.py` file? So that instead of having to write ``` from rocrate.model.person import Person from rocra...
ResearchObject/ro-crate-py
diff --git a/test/test_cli.py b/test/test_cli.py index 4781fcd..de2aa23 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -22,7 +22,7 @@ from click.testing import CliRunner import pytest from rocrate.cli import cli -from rocrate.model.file import File +from rocrate.model import File from rocrate.model.metada...
[ "test/test_cli.py::test_cli_help[command_path0]", "test/test_cli.py::test_cli_help[command_path1]", "test/test_cli.py::test_cli_help[command_path2]", "test/test_cli.py::test_cli_help[command_path3]", "test/test_cli.py::test_cli_help[command_path4]", "test/test_cli.py::test_cli_help[command_path5]", "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://raw.githubusercontent.com/ResearchObject/ro-crat...
1a40c71e383d6520b384be8a2e92590ca108ea5e
2022-10-16 20:34:16
docker.io/swerebenchv2/pyomo-pyomo:2567-1a40c71
pyomo__pyomo-2567
Method: Objective.__init__(self, expr=None, sense=minimize, name=None, rule=None, **kwargs) Location: pyomo/core/base/objective.py (or base/component.py via _GeneralExpressionDataImpl) Inputs: - expr: a Pyomo expression object that must be numeric (e.g., LinearExpression, SumExpression, etc.). Relational expressions s...
python
custom-check-github
diff --git a/pyomo/core/base/expression.py b/pyomo/core/base/expression.py index 5535910f1..cc46a8be7 100644 --- a/pyomo/core/base/expression.py +++ b/pyomo/core/base/expression.py @@ -187,6 +187,11 @@ class _GeneralExpressionDataImpl(_ExpressionData): self._expr = None return expr = ...
Expression.set_value: raise exception for non-numeric expressions ## Fixes #378. ## Summary/Motivation: The root cause of #2562 was that the user was setting the value of an `Expression` component (in this case, the `Objective`) to a relational expression and not a numeric expression. Now that Pyomo is supporting ...
Using relational Expression in Objective The following model is sent to a solver without any warning or error: from pyomo.environ import * m = ConcreteModel() m.v = Var() m.e = Expression(expr=m.v**2 + 2 >= 10) m.obj = Objective(expr=m.e) While the user should be able to construct this mod...
Pyomo/pyomo
diff --git a/pyomo/core/tests/unit/test_obj.py b/pyomo/core/tests/unit/test_obj.py index 3d3c3099a..9b79da220 100644 --- a/pyomo/core/tests/unit/test_obj.py +++ b/pyomo/core/tests/unit/test_obj.py @@ -45,6 +45,15 @@ class TestScalarObj(unittest.TestCase): model.o.expr += 2 self.assertEqual(model.o.exp...
[ "pyomo/core/tests/unit/test_obj.py::TestScalarObj::test_scalar_invalid_expr" ]
[ "pyomo/core/tests/unit/test_obj.py::TestScalarObj::test_arguments", "pyomo/core/tests/unit/test_obj.py::TestScalarObj::test_dim", "pyomo/core/tests/unit/test_obj.py::TestScalarObj::test_empty_singleton", "pyomo/core/tests/unit/test_obj.py::TestScalarObj::test_expr1_option", "pyomo/core/tests/unit/test_obj.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
b9d65403cf5c63314728d62cbd313b2753e4ab30
2025-01-31 13:52:16
docker.io/swerebenchv2/stac-utils-pystac-client:782-b9d6540
stac-utils__pystac-client-782
Method: Client.get_collection(self, collection_id: str) -> Collection | CollectionClient Location: pystac_client/client.py Inputs: - collection_id (str): Identifier of the collection to retrieve. Must match the `id` field of a collection present in the catalog or reachable via the API. Outputs: - Returns a `Collectio...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index e1ecf9e..0c2c143 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- `Client.get_collection` for static catalogs [#782](https://github.com/stac-u...
Fix `Client.get_collection` for static catalogs **Related Issue(s):** - Closes #780 **Description:** * add static catalog to test data (copied from pystac) * ensure that `Client.get_collection` returns specified collection * ensure that if no matching collection is found it raises **PR Checklist:** ...
`get_collection` always returns last collection with a local catalog I am opening a local static STAC catalog as follows ``` client = Client.open(catalog) collection = client.get_collection(collection_name) ``` This always returns the last collection in the catalog. I think this clause needs a `break` to get out...
stac-utils/pystac-client
diff --git a/tests/data/test-case-1/catalog.json b/tests/data/test-case-1/catalog.json new file mode 100644 index 0000000..14edfa2 --- /dev/null +++ b/tests/data/test-case-1/catalog.json @@ -0,0 +1,24 @@ +{ + "type": "Catalog", + "id": "test", + "stac_version": "1.1.0", + "description": "test catalog", + "links": ...
[ "tests/test_client.py::test_get_collection_fallback_strategy_for_static_catalogs", "tests/test_client.py::test_get_collection_for_static_catalogs_raise_if_not_found" ]
[ "tests/test_client.py::TestAPI::test_instance", "tests/test_client.py::TestAPI::test_links", "tests/test_client.py::TestAPI::test_from_file", "tests/test_client.py::TestAPI::test_invalid_url", "tests/test_client.py::TestAPI::test_get_collections_with_conformance", "tests/test_client.py::TestAPI::test_get_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/stac-utils/pystac-client/blob/main/py...
5b48257d48a1218ee6d7b2a76d09992a74199428
2021-09-09 08:59:19
docker.io/swerebenchv2/hypothesisworks-hypothesis:3088-5b48257
hypothesisworks__hypothesis-3088
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..4ce625381 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch fixes :issue:`961`, where calling ``given()`` inline on a +bound method would fail to handle the...
Fix for inline `given()` on bound methods Fixes #961.
@given decorator doesn't supply "self" argument when used inline If I "decorate" a class's method inline, it doesn't supply the `self` argument when the resultant function is called. If I accept an `*args` argument instead (as with `show`), it *is* passed to the method, so I do not understand why it doesn't work for a ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_reflection.py b/hypothesis-python/tests/cover/test_reflection.py index 0f9b820f3..4605c8765 100644 --- a/hypothesis-python/tests/cover/test_reflection.py +++ b/hypothesis-python/tests/cover/test_reflection.py @@ -23,7 +23,7 @@ from unittest.mock import MagicMock, Mock, No...
[ "hypothesis-python/tests/cover/test_reflection.py::test_inline_given_handles_self" ]
[ "hypothesis-python/tests/cover/test_reflection.py::test_simple_conversion", "hypothesis-python/tests/cover/test_reflection.py::test_populates_defaults", "hypothesis-python/tests/cover/test_reflection.py::test_leaves_unknown_kwargs_in_dict", "hypothesis-python/tests/cover/test_reflection.py::test_errors_on_bad...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
6b25ea27102b6388dadc5864975655ffc4bffc5f
2021-05-20 21:35:41
docker.io/swerebenchv2/alteryx-woodwork:943-6b25ea2
alteryx__woodwork-943
Method: WoodworkTableAccessor.mutual_information(self, num_bins=10, nrows=None, include_index=False, callback=None) Location: woodwork/table_accessor.py, class WoodworkTableAccessor Inputs: - **num_bins** (int, default 10): number of bins used to discretize continuous columns before computing mutual information. - **nr...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 9bab73e..003bf7e 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -7,6 +7,7 @@ Future Release ============== * Enhancements * Add option to return ``TableSchema`` instead of ``DataFrame`` fro...
Add progress callback to mutual information functions - Add progress callback to mutual information functions - Closes #938
Add progress callback to mutual information - As a user, I wish I could use Woodwork to get the progress of my mutual information calculation. - The would be turn on via a parameter when running the mutual_info function, called `add_callback` #### Code Example ```python import pandas as pd from woodwork.demo import l...
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_statistics.py b/woodwork/tests/accessor/test_statistics.py index 8119ab3..bec7a07 100644 --- a/woodwork/tests/accessor/test_statistics.py +++ b/woodwork/tests/accessor/test_statistics.py @@ -197,6 +197,40 @@ def test_mutual_info_unique_cols(df_mi_unique): assert 'ints' in ...
[ "woodwork/tests/accessor/test_statistics.py::test_mutual_info_callback[df_mi_pandas]" ]
[ "woodwork/tests/accessor/test_statistics.py::test_get_mode", "woodwork/tests/accessor/test_statistics.py::test_accessor_replace_nans_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_accessor_make_categorical_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_mutual_info_sam...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e11702b74349573254b3fa2c65f3b6f1102d76e7
2023-08-11 20:31:24
docker.io/swerebenchv2/caikit-caikit:416-e11702b
caikit__caikit-416
Method: RuntimeHTTPServer._dataobject_to_pydantic(dm_class: Type) Location: caikit.runtime.http_server.RuntimeHTTPServer (class method) Inputs: **dm_class** – a subclass of `DataObjectBase` (decorated with `@dataobject`). The class may include inherited fields and type‑hinted attributes such as primitives, lists, o...
python
Apache-2.0
diff --git a/caikit/runtime/http_server.py b/caikit/runtime/http_server.py index 087661ad..34d9cf53 100644 --- a/caikit/runtime/http_server.py +++ b/caikit/runtime/http_server.py @@ -18,7 +18,17 @@ API based on the task definitions available at boot. """ # Standard from functools import partial -from typing import A...
🐛 Fix derived DM to pydantic conversion bug <!-- Thanks for sending a pull request! Here are some tips for you: 1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/caikit/caikit/blob/main/CONTRIBUTING.md 2. If this PR closes another issue, add 'closes #<issue number>' somewher...
Conversion of dataobjects-with-inheritance to pydantic models is broken ## Describe the bug ``` @dataobject class Base(DataObjectBase): foo: int bar: int @dataobject class Derived(Base): bar: str baz: str ``` If we create a `pydantic model` using our `._d...
caikit/caikit
diff --git a/tests/runtime/test_http_server.py b/tests/runtime/test_http_server.py index 797dd3de..ea7616e2 100644 --- a/tests/runtime/test_http_server.py +++ b/tests/runtime/test_http_server.py @@ -366,7 +366,34 @@ def test_pydantic_wrapping_with_enums(): assert token.text == "foo" -def test_pydantic_wrapping...
[ "tests/runtime/test_http_server.py::test_pydantic_wrapping_with_inheritance" ]
[ "tests/runtime/test_http_server.py::test_insecure_server", "tests/runtime/test_http_server.py::test_basic_tls_server", "tests/runtime/test_http_server.py::test_basic_tls_server_with_wrong_cert", "tests/runtime/test_http_server.py::test_mutual_tls_server", "tests/runtime/test_http_server.py::test_mutual_tls_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
dce062b479b5e88b46992eba573817e024d05278
2025-03-20 20:34:36
docker.io/swerebenchv2/sdv-dev-rdt:960-dce062b
sdv-dev__rdt-960
Method: IndexGenerator.__init__(self, prefix=None, starting_value=0, suffix=None) Location: rdt/transformers/id.py Inputs: - **prefix** (str, optional): string to prepend to each generated index. - **starting_value** (int, default 0): integer at which the counter starts. - **suffix** (str, optional): string to append ...
python
custom-check-github
diff --git a/rdt/transformers/__init__.py b/rdt/transformers/__init__.py index 1381bfe..75a20ba 100644 --- a/rdt/transformers/__init__.py +++ b/rdt/transformers/__init__.py @@ -22,7 +22,7 @@ from rdt.transformers.datetime import ( OptimizedTimestampEncoder, UnixTimestampEncoder, ) -from rdt.transformers.id i...
Rename IDGenerator to IndexGenerator - Fixes #947
Rename `IDGenerator` transformer to `IndexGenerator` ### Problem Description Currently the [IDGenerator transformer](https://docs.sdv.dev/rdt/transformers-glossary/id/idgenerator) is used to create an ID column from scratch when it represents an ordered index (`0, 1, 2, 3, ...`) with optional prefixes and suffixes (eg....
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_id.py b/tests/integration/transformers/test_id.py index eaa9067..cfa148c 100644 --- a/tests/integration/transformers/test_id.py +++ b/tests/integration/transformers/test_id.py @@ -4,12 +4,12 @@ import numpy as np import pandas as pd from rdt import HyperTransformer, ...
[ "tests/integration/transformers/test_id.py::TestIndexGenerator::test_end_to_end", "tests/integration/transformers/test_id.py::TestRegexGenerator::test_regexgenerator", "tests/integration/transformers/test_id.py::TestRegexGenerator::test_with_custom_regex", "tests/integration/transformers/test_id.py::TestRegex...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://docs.sdv.dev/rdt/transformers-glossary/id/idgene...
1a25881f507bdeea4d7660f3241f17cb8ba1fdf7
2021-03-11 16:14:06
docker.io/swerebenchv2/alteryx-woodwork:692-1a25881
alteryx__woodwork-692
Method: DataTable.mutual_information(self, num_bins=10, nrows=None, include_index=False) Location: woodwork/datatable.py (class DataTable) Inputs: - num_bins (int, default 10): number of bins used when discretizing continuous columns for MI calculation. - nrows (int | None, default None): optional number of rows to ...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 62d15bf..8afe971 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -8,6 +8,7 @@ Release Notes * Changes * Restrict Koalas version to ``<1.7.0`` due to breaking changes (:pr:`674`) * In...
Add include_index parameter to DataTable mutual info - Allows users to include the index column in mutual info calculations, where the default is to not include the index column - Closes #671
Add avoid_index parameter to mutual info to allow for more control - We should add the following parameters to the mutual info function and associated defaults. - `avoid_index=False` - This way the end-user can have more control of the logic for calculating MI - This is for the current DataTable implementation
alteryx/woodwork
diff --git a/woodwork/tests/datatable/test_datatable.py b/woodwork/tests/datatable/test_datatable.py index e2d8765..d7be162 100644 --- a/woodwork/tests/datatable/test_datatable.py +++ b/woodwork/tests/datatable/test_datatable.py @@ -974,10 +974,14 @@ def test_datatable_mutual_information(df_mi): pd.testing.assert_...
[ "woodwork/tests/datatable/test_datatable.py::test_mutual_info_on_index[sample_df_pandas]" ]
[ "woodwork/tests/datatable/test_datatable.py::test_datatable_df_property[sample_df_pandas]", "woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_datetime_time_index[time_index_df_pandas]", "woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_time_index[time_index_df_panda...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
78d8254156e6984ff556eb16c468cb53ab132a54
2021-01-13 12:39:25
docker.io/swerebenchv2/codezonediitj-pydatastructs:314-78d8254
codezonediitj__pydatastructs-314
Function: quick_sort(array: Array, **kwargs) Location: pydatastructs.linear_data_structures.algorithms.quick_sort Inputs: - array (Array): The linear data structure to be sorted. - start (int, optional): Starting index of the portion to sort; defaults to 0. - end (int, optional): Ending index of the portion to sort; d...
python
custom-check-github
diff --git a/pydatastructs/linear_data_structures/__init__.py b/pydatastructs/linear_data_structures/__init__.py index dcf4816..89cca83 100644 --- a/pydatastructs/linear_data_structures/__init__.py +++ b/pydatastructs/linear_data_structures/__init__.py @@ -29,6 +29,7 @@ from .algorithms import ( matrix_multiply_pa...
Adding Quicksort ##### Quicksort #### References to other Issues or PRs or Relevant literature Fixes #273. See https://github.com/codezonediitj/pydatastructs/issues/273 #### Brief description of what is fixed or changed This code fixes the quick sort issue on iterative implementation as reference with the ...
Quick Sort #### Description of the problem I suggest adding quicksort algorithm in linear data structures i.e linear_data_structures.algorithms.quick_sort() There are some sorting algorithms already there, with same nlogn complexity, but since most inbuilt sorting algorithms are implemented using quicksort, we sho...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_algorithms.py b/pydatastructs/linear_data_structures/tests/test_algorithms.py index d7c8c51..60effb1 100644 --- a/pydatastructs/linear_data_structures/tests/test_algorithms.py +++ b/pydatastructs/linear_data_structures/tests/test_algorithms.py @@ -1,7 +1,8 @@...
[ "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_merge_sort_parallel", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort_parallel", "pydatastructs/linear_data_structures/tests/te...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
9d4da6c2f6024d12612075f89e3d12c117e25a43
2021-08-07 10:22:48
docker.io/swerebenchv2/hypothesisworks-hypothesis:3052-9d4da6c
hypothesisworks__hypothesis-3052
Function: from_type(thing: Type[Ex]) -> SearchStrategy[Ex] Location: hypothesis.strategies Inputs: - **thing** – a type object for which a strategy is requested. If a string is supplied (e.g., a forward‑reference annotation that could not be resolved), it is considered an invalid type. Outputs: - Returns a `SearchStr...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..9f5caf38d --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,5 @@ +RELEASE_TYPE: patch + +This patch improves the error message for :issue:`3016`, where :pep:`585` +builtin generics with self-refer...
Improve error message for recursive forward references with PEP585 builtin generics Closes #3016; we'll need [CPython changes](https://bugs.python.org/issue41370) to actually get this working instead of just improving the error message. I think what happened is that the builtin generics changes assumed that annotati...
Issues with recursive data classes Given the following: ```python from dataclasses import dataclass from hypothesis import given, strategies as st @dataclass class User(): id: int following: list['User'] # works with typing.List @given(st.builds(User)) def test_user(u): pass ``` I always rece...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_lookup_py39.py b/hypothesis-python/tests/cover/test_lookup_py39.py index 2c3ac8fef..b0c56d7cd 100644 --- a/hypothesis-python/tests/cover/test_lookup_py39.py +++ b/hypothesis-python/tests/cover/test_lookup_py39.py @@ -13,11 +13,13 @@ # # END HEADER +import dataclasses ...
[ "hypothesis-python/tests/cover/test_lookup_py39.py::test_string_forward_ref_message" ]
[ "hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-integers()]", "hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-lists(floats())]", "hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-text()]", "hypothesis-pyt...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/HypothesisWorks/hypothesis/issues/301...
bc21883da89c26817e56b31ea1d418bfa5c792cd
2024-04-10 05:27:13
docker.io/swerebenchv2/wntrblm-nox:815-bc21883
wntrblm__nox-815
Method: run(command: Sequence[str] | str, *, env: Mapping[str, str | None] | None = None, paths: Sequence[Path] | None = None, silent: bool = False, success_codes: Iterable[int] | None = None, log: bool = True, external: ExternalType = False, stdout: int | IO[str] | None = None, stderr: int | IO[str] = subprocess.STDOU...
python
Apache-2.0
diff --git a/nox/command.py b/nox/command.py index 4882e3a..4f948e6 100644 --- a/nox/command.py +++ b/nox/command.py @@ -17,18 +17,23 @@ from __future__ import annotations import os import shlex import shutil +import subprocess import sys from collections.abc import Iterable, Mapping, Sequence -from typing import ...
feat: use static arguments instead of **kwargs Close #813. This provides better documentation, better signatures, and better static typing. This doesn't change too rapidly, so using `**` isn't that helpful. `**` is best for things that can't be determined statically. A few kwargs that previously distinguished betwee...
Remove legacy support for running a function in run? There's a legacy feature where `session.run([f, arg1], kw=1)` will run `f(arg1, kw=1)` for you, with a little bit of logging. I'm working on improving the static typing a bit, and this is messy. It's not in the static typing, it interferes with normal keyword argumen...
wntrblm/nox
diff --git a/tests/test_command.py b/tests/test_command.py index 9a50093..ae398e9 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -195,7 +195,15 @@ def test_run_path_existent(tmp_path: Path): with mock.patch("nox.command.popen") as mock_command: mock_command.return_value = (0, "") ...
[ "tests/test_command.py::test_run_path_existent", "tests/test_sessions.py::TestSession::test_run_install_only_should_install", "tests/test_sessions.py::TestSession::test_run_external_not_a_virtualenv", "tests/test_sessions.py::TestSession::test_run_external_condaenv", "tests/test_sessions.py::TestSession::te...
[ "tests/test_command.py::test_run_defaults", "tests/test_command.py::test_run_silent", "tests/test_command.py::test_run_not_in_path", "tests/test_command.py::test_run_verbosity", "tests/test_command.py::test_run_verbosity_failed_command", "tests/test_command.py::test_run_non_str", "tests/test_command.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
5cbd55547f936a5f1b66729a7d29c2a33706b39c
2025-05-06 04:07:14
docker.io/swerebenchv2/vacanza-holidays:2529-5cbd555
vacanza__holidays-2529
No new interfaces are introduced.
python
MIT
diff --git a/holidays/countries/argentina.py b/holidays/countries/argentina.py index 952ab4c9..bdda17ab 100644 --- a/holidays/countries/argentina.py +++ b/holidays/countries/argentina.py @@ -828,6 +828,9 @@ class ArgentinaStaticHolidays: * [Release P51020 (2021)](https://bcra.gob.ar/Pdfs/comytexord/P51020.pdf)...
Update Argentina holidays: add 2018 G20 Leaders' Summit for Buenos Aires <!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Adds November 30, 2018, as a one-off public holiday i...
Missing Argentina's One-Time Holiday for G20 Summit in 2018. 2018-11-30 was declared a public holiday in Argentina and is not yet implemented. **Sources** https://en.wikipedia.org/wiki/2018_G20_Buenos_Aires_summit https://argentinareports.com/bullrich-g20-leave-bs-as/2060/ https://www.theguardian.com/world/2018/nov/28...
vacanza/holidays
diff --git a/tests/countries/test_argentina.py b/tests/countries/test_argentina.py index e2a6499f..80118d14 100644 --- a/tests/countries/test_argentina.py +++ b/tests/countries/test_argentina.py @@ -99,6 +99,10 @@ class TestArgentina(CommonCountryTests, TestCase): "2024-12-31", ) + def test_s...
[ "tests/countries/test_argentina.py::TestArgentina::test_special_subdiv_holidays" ]
[ "tests/countries/test_argentina.py::TestArgentina::test_2022", "tests/countries/test_argentina.py::TestArgentina::test_2023", "tests/countries/test_argentina.py::TestArgentina::test_2024", "tests/countries/test_argentina.py::TestArgentina::test_all_saints_day", "tests/countries/test_argentina.py::TestArgent...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://en.wikipedia.org/wiki/2018_G20_Buenos_Aires_summ...
e3065ebb34b8be50c4521d3e84ab01bb98bbb99b
2023-02-14 16:20:21
docker.io/swerebenchv2/datadog-guarddog:156-e3065eb
datadog__guarddog-156
Method: NPMPackageScanner.download_and_get_package_info(self, directory: str, package_name: str, version=None) -> typing.Tuple[dict, str] Location: guarddog/scanners/npm_package_scanner.py Inputs: - **directory** (str): Path to a temporary directory where the tarball will be saved and extracted. - **package_name** (...
python
Apache-2.0
diff --git a/guarddog/scanners/npm_package_scanner.py b/guarddog/scanners/npm_package_scanner.py index df9e335..cc4df17 100644 --- a/guarddog/scanners/npm_package_scanner.py +++ b/guarddog/scanners/npm_package_scanner.py @@ -1,6 +1,7 @@ import logging import os import pathlib +import typing from urllib.parse import...
Fix package extraction for namespaced npm packages (fixes #155) * Before this PR, scanning a namespaced npm package such as `@datadog/browser-logs` caused the package to be extracted to a path containing an `/` which obviously breaks, see #155 * The code computing the path where the package is extracted was also dupl...
Unable to scan npm packages within a namespace (e.g. @typescript-eslint/eslint-plugin) ``` Found 0 potentially malicious indicators scanning @typescript-eslint/eslint-plugin version 5.29.0 Some rules failed to run while scanning @typescript-eslint/eslint-plugin version 5.29.0: * download-package: [Errno 2] No su...
DataDog/guarddog
diff --git a/tests/core/test_npm_package_scanner.py b/tests/core/test_npm_package_scanner.py index 993c891..95bf5b8 100644 --- a/tests/core/test_npm_package_scanner.py +++ b/tests/core/test_npm_package_scanner.py @@ -9,17 +9,28 @@ from guarddog.scanners import NPMPackageScanner def test_download_and_get_package_info()...
[ "tests/core/test_npm_package_scanner.py::test_download_and_get_package_info", "tests/core/test_npm_package_scanner.py::test_download_and_get_package_info_npm_namespaced" ]
[ "tests/core/test_npm_package_scanner.py::test_download_and_get_package_info_non_existing_packages" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
4024bc25fd29df74dfc54a6049b89b9928bb597f
2018-08-28 08:47:34
docker.io/swerebenchv2/mirumee-ariadne:24-4024bc2
mirumee__ariadne-24
Function: serialize(date) Location: tests/test_custom_scalars.py Inputs: <date: datetime.date> – a Python date instance that must be a valid date object. Outputs: <str> – the ISO‑8601 formatted string “YYYY‑MM‑DD”. Raises no error for valid input; behaviour for invalid types is undefined (treated as runtime error). Fu...
python
BSD-3-Clause
diff --git a/ariadne/resolvers.py b/ariadne/resolvers.py index 388e3ad..8f7bf77 100644 --- a/ariadne/resolvers.py +++ b/ariadne/resolvers.py @@ -24,16 +24,24 @@ def add_resolve_functions_to_schema(schema: GraphQLSchema, resolvers: dict): if isinstance(type_object, GraphQLObjectType): add_resolve_f...
Bidirectional scalars This PR updates `add_resolve_functions_to_schema` to pass `serializer`, `parse_literal` and `parse_value` functions to `Scalar`. Fixes #13 ### TODO * [x] Test read-only scalar * [x] Test input scalar
`add_resolve_functions_to_schema` should support Scalars parse_value and parse_literal Currently Ariadne Scalar support is limited to serializing python types to JSON before returning them to client, but we also want to support using custom scalars for input. Our `add_resolve_functions_to_scalar` utility could suppo...
mirumee/ariadne
diff --git a/tests/test_custom_scalars.py b/tests/test_custom_scalars.py new file mode 100644 index 0000000..954933b --- /dev/null +++ b/tests/test_custom_scalars.py @@ -0,0 +1,128 @@ +from datetime import date, datetime + +from graphql import graphql +from graphql.language.ast import StringValue + +from ariadne import...
[ "tests/test_custom_scalars.py::test_serialize_date_obj_to_date_str", "tests/test_custom_scalars.py::test_parse_literal_valid_str_ast_to_date_instance", "tests/test_custom_scalars.py::test_parse_literal_invalid_str_ast_to_date_instance", "tests/test_custom_scalars.py::test_parse_literal_invalid_int_ast_errors"...
[ "tests/test_queries.py::test_query_root_type_default_resolver", "tests/test_queries.py::test_query_custom_type_default_resolver", "tests/test_queries.py::test_query_custom_type_object_default_resolver", "tests/test_queries.py::test_query_custom_type_custom_resolver", "tests/test_queries.py::test_query_custo...
{ "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": [...
b2dcd5bbff0b2b89af833f55bd9f3bb089266a43
2025-02-12 14:02:44
docker.io/swerebenchv2/sdv-dev-rdt:942-b2dcd5b
sdv-dev__rdt-942
Method: FloatFormatter.__init__(self, learn_rounding_scheme: bool, missing_value_generation: str | None = None, missing_value_replacement: Any = None, **kwargs) Location: rdt/transformers/numerical.py Inputs: - **learn_rounding_scheme** – whether the transformer should infer a rounding scheme from the data (bool, requ...
python
custom-check-github
diff --git a/rdt/transformers/base.py b/rdt/transformers/base.py index 84c44b8..808e32a 100644 --- a/rdt/transformers/base.py +++ b/rdt/transformers/base.py @@ -142,17 +142,6 @@ class BaseTransformer: elif model_missing_values is False: self._set_missing_value_generation('random') - def _set_...
Allow me to opt out of replacing missing values (`missing_value_replacement=None`) CU-86b3v4nm3 Resolve #938
Allow me to opt out of replacing missing values (`missing_value_replacement=None`) ### Problem Description A number of the RDT transformers have a `missing_value_replacement` parameter that describes how to replace missing values in the forward transform. There are a variety of strategies that include replacement with ...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_numerical.py b/tests/integration/transformers/test_numerical.py index 7c01118..d272ec7 100644 --- a/tests/integration/transformers/test_numerical.py +++ b/tests/integration/transformers/test_numerical.py @@ -1,5 +1,8 @@ +import re + import numpy as np import pandas as ...
[ "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_missing_value_generation_random_and_nans", "tests/unit/transformers/test_base.py::TestBaseTransformer::test_reverse_transforn_with_nan" ]
[ "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_missing_value_generation_from_column", "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_int", "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_int_nan_default_missing_value_generatio...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
fe100e903ec7cdf55aeb3a9607e05558ce269e1c
2024-11-03 11:58:31
docker.io/swerebenchv2/berriai-litellm:6563-fe100e9
berriai__litellm-6563
Method: LangFuseLogger._prepare_metadata(self, metadata) Location: litellm/integrations/langfuse/langfuse.py Inputs: `metadata` – any object (commonly a dict, list, set, tuple, or Pydantic BaseModel) that may contain nested mutable structures or non‑serializable objects such as thread locks or functions. Outputs:...
python
custom-check-github
diff --git a/litellm/integrations/langfuse/langfuse.py b/litellm/integrations/langfuse/langfuse.py index 182c88637..e5142dc69 100644 --- a/litellm/integrations/langfuse/langfuse.py +++ b/litellm/integrations/langfuse/langfuse.py @@ -1,10 +1,10 @@ #### What this does #### # On success, logs events to Langfuse impo...
fix(langfuse.py): metadata deepcopy can cause unhandled error ## Title Fix Langfuse integration error and optimize `metadata` handling ## Relevant issues Fixes #6314 ## Type 🐛 Bug Fix 🧹 Refactoring ## Changes - Optimize Copying of `metadata` in langfuse integration - Recursive copy of mutable ...
[Bug]: Langfuse Integration Error: TypeError: cannot pickle '_thread.RLock' object ### What happened When using the Langfuse integration with litellm.log_langfuse_v2, a TypeError: cannot pickle '_thread.RLock' object is raised during the logging process. This appears to be caused by attempting to deepcopy data conta...
BerriAI/litellm
diff --git a/tests/logging_callback_tests/test_langfuse_unit_tests.py b/tests/logging_callback_tests/test_langfuse_unit_tests.py index 2a6cbe00a..20b33f81b 100644 --- a/tests/logging_callback_tests/test_langfuse_unit_tests.py +++ b/tests/logging_callback_tests/test_langfuse_unit_tests.py @@ -1,19 +1,13 @@ -import json ...
[ "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_langfuse_logger_prepare_metadata[None]", "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_langfuse_logger_prepare_metadata[metadata0]", "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_langfuse_logger_prepare_metadata[...
[ "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_dynamic_langfuse_credentials_are_passed", "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_get_dynamic_langfuse_logging_config", "tests/logging_callback_tests/test_langfuse_unit_tests.py::test_get_langfuse_logger_for_request_with_cac...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
93e7cc4a97160cf860307a44f394e1d0740dc2c3
2020-02-24 18:15:51
docker.io/swerebenchv2/codezonediitj-pydatastructs:99-93e7cc4
codezonediitj__pydatastructs-99
Method: SinglyLinkedList.__new__(cls) Location: class SinglyLinkedList (pydatastructs.linear_data_structures.linked_lists) Inputs: cls – the class being instantiated. No other parameters. Outputs: Returns a new SinglyLinkedList instance with `head`, `tail` set to None and `size` 0. Description: Creates an empty...
python
custom-check-github
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..0749145 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +parallel = True +source = pydatastructs +omit = + */tests/* + +[report] +exclude_lines = + pragma: no cover + + raise NotImplementedError diff --git a/.gitignore b/.gitign...
DoublyLinkedList Fixed and SinglyLinkedList 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 for...
Add Linked Lists #### Description of the problem Currently the package does not have Queues or Linked Lists. While working with issue #22-Add Queue It was discovered that to add a Queue which is efficient enough to perform popleft() action in O(1) time we need linked lists to implement Queues just like the collec...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_linked_lists.py b/pydatastructs/linear_data_structures/tests/test_linked_lists.py index 4709fd6..0087031 100644 --- a/pydatastructs/linear_data_structures/tests/test_linked_lists.py +++ b/pydatastructs/linear_data_structures/tests/test_linked_lists.py @@ -1,4...
[ "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_DoublyLinkedList", "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_SinglyLinkedList" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/codezonediitj/pydatastructs/issues/2...
0e4194b238ffd006441f1a33373062d9c7272d0e
2021-01-04 21:22:50
docker.io/swerebenchv2/pycqa-pyflakes:604-0e4194b
pycqa__pyflakes-604
No new interfaces are introduced.
python
MIT
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index 0d65506..38f8f73 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -992,7 +992,10 @@ class Checker(object): if all_binding: all_names = set(all_binding.names) - undefined = all_names.difference(scope)...
deterministic ordering for errors in __all__ Resolves #603 I couldn't figure out a way to test this that wasn't flakey and without writing a bunch of test infra to look at the actual messages (since they're all the same type) Here's a demo of the fix however: ```console $ python3 -m pyflakes t.py t.py:1:1 un...
"undefined name in __all__" has non-deterministic ordering Found this while putting together a tool to look for regressions in the latest release and noticed that this produces things out-of-order! ```console $ cat t.py __all__ = ('a', 'b', 'c', 'd') $ python3 -m pyflakes t.py t.py:1:1 undefined name 'a' in __a...
PyCQA/pyflakes
diff --git a/pyflakes/test/test_type_annotations.py b/pyflakes/test/test_type_annotations.py index d5a3e08..409238b 100644 --- a/pyflakes/test/test_type_annotations.py +++ b/pyflakes/test/test_type_annotations.py @@ -524,6 +524,21 @@ class TestTypeAnnotations(TestCase): maybe_int = tsac('Maybe[int]', 42) ...
[ "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_quoted_TypeVar_bound", "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_quoted_TypeVar_constraints" ]
[ "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_async_def", "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type", "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type_m...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
017b9667e9a619a56911769bb09a3abd9921ff08
2023-05-18 14:30:27
docker.io/swerebenchv2/stfc-psyclone:2147-017b966
stfc__psyclone-2147
Method: RoutineSymbol.__init__(self, name, datatype=None, visibility=..., interface=..., is_pure=None, is_elemental=None) Location: src/psyclone/psyir/symbols/routinesymbol.py Inputs: - name (str) – the symbol name - datatype (optional DataType or DataTypeSymbol) – defaults to NoType if omitted - visibility (optio...
python
BSD-3-Clause
diff --git a/changelog b/changelog index e6c7d653b..bb0e0a575 100644 --- a/changelog +++ b/changelog @@ -465,6 +465,8 @@ 157) PR #2131 towards #1618. Improves the error handling when we find a Routine with the same name as an LFRic Builtin. + 158) PR #2147 for #2119. Add elemental and pure routine attributes. + ...
(Closes #2119) Add support for elemental and pure routine attributes
[nemo] PSyclone loses ‘ELEMENTAL’ and ‘IMPURE ELEMENTAL’ subroutine prefixes Simon has reported that: PSyclone appears to falsely drop ‘ELEMENTAL’ and ‘IMPURE ELEMENTAL’ subroutine prefixes. ‘ELEMENTAL’ and ‘IMPURE ELEMENTAL’ prefixes have recently been added to some functions in NEMO ‘main’. In builds without AGRIF...
stfc/PSyclone
diff --git a/src/psyclone/tests/domain/common/extract_driver_creator_test.py b/src/psyclone/tests/domain/common/extract_driver_creator_test.py index f5edcba78..94987707b 100644 --- a/src/psyclone/tests/domain/common/extract_driver_creator_test.py +++ b/src/psyclone/tests/domain/common/extract_driver_creator_test.py @@ ...
[ "src/psyclone/tests/domain/common/extract_driver_creator_test.py::test_driver_creation_import_modules", "src/psyclone/tests/domain/nemo/transformations/nemo_arrayrange2loop_trans_test.py::test_validate_with_a_function_call", "src/psyclone/tests/domain/nemo/transformations/nemo_arrayrange2loop_trans_test.py::tes...
[ "src/psyclone/tests/domain/common/extract_driver_creator_test.py::test_driver_creation1", "src/psyclone/tests/domain/common/extract_driver_creator_test.py::test_driver_creation2", "src/psyclone/tests/domain/common/extract_driver_creator_test.py::test_rename_suffix_if_name_clash", "src/psyclone/tests/domain/co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0547b3c6f993d737c5849a392646a2dc82c9c2a9
2018-12-07 23:45:20
docker.io/swerebenchv2/digitalocean-pynetbox:128-0547b3c
digitalocean__pynetbox-128
Method: Record.__init__(self, init_data, parent, endpoint) Location: pynetbox/core/response.py Inputs: - init_data (dict): raw payload representing the record, possibly containing nested dicts, lists of dicts, and primitive fields. - parent (object or None): the parent record or collection that owns this record, may ...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index fa5129b..612bfea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ + +v4.0.3 (2018-12-07) + +## Bug Fixes +* [#127](https://github.com/digitalocean/pynetbox/issues/127) - Fixes `__iter__` method on Record object so that it properly return lists record objects. ...
Fixes #127 - Record iter doesn't handle list of records Fixes __iter__ method on Record object to properly return lists of other record objects. Like tagged_vlans on Interface objects.
Record iter doesn't handle list of records When casting a record as dict, any lists within the record are not converted to dicts. An example of this is tagged_vlans for interfaces. The following update to the Record __iter__ resolves the issue: ``` def __iter__(self): for i in dict(self._init_cache):...
digitalocean/pynetbox
diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index 0f18c92..833c407 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -77,3 +77,56 @@ class RecordTestCase(unittest.TestCase): test.nested_dict = 1 test.string_field = 'foobaz' self.assertEqu...
[ "tests/unit/test_response.py::RecordTestCase::test_dict" ]
[ "tests/unit/test_response.py::RecordTestCase::test_diff", "tests/unit/test_response.py::RecordTestCase::test_serialize_list_of_ints", "tests/unit/test_response.py::RecordTestCase::test_serialize_list_of_records", "tests/unit/test_response.py::RecordTestCase::test_serialize_tag_set" ]
{ "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":...
77961478cdaf9cf55c8b15fd1db0681ff75ffcfb
2021-05-14 14:21:34
docker.io/swerebenchv2/pallets-click:1896-7796147
pallets__click-1896
Function: click.command(name: Union[str, Callable, None] = None, cls: Optional[Type[Command]] = None, **attrs: Any) -> Union[Command, Callable[[Callable[..., Any]], Command]] Location: click.decorators.command Inputs: - name: optional command name or a callable when used without parentheses. - cls: optional custom Comm...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 463a967..9d30887 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -20,6 +20,8 @@ Unreleased locale detection is removed. :issue:`2198` - Single options boolean flags with ``show_default=True`` only show the default if it is ``True``. :issue:`1971` +- The ``comman...
Add support for optional decorator parentheses <!-- Before opening a PR, open a ticket describing the issue or feature the PR will address. Follow the steps in CONTRIBUTING.rst. Replace this comment with a description of the change. Describe how it addresses the linked ticket. --> <!-- Link to relevant issue...
raise a more descriptive exception when @command decorator isn't called Click 7.0, Python 3.7.4 Having done `pip install -e .` on my package to set up the CLI command, this error is raised because I decorated the main CLI function with `click.command` instead of `click.command()`: ``` Traceback (most recent call...
pallets/click
diff --git a/tests/test_command_decorators.py b/tests/test_command_decorators.py new file mode 100644 index 0000000..8d07531 --- /dev/null +++ b/tests/test_command_decorators.py @@ -0,0 +1,37 @@ +import click + + +def test_command_no_parens(runner): + @click.command + def cli(): + click.echo("hello") + + ...
[ "tests/test_command_decorators.py::test_command_no_parens", "tests/test_command_decorators.py::test_group_no_parens" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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|B4", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories"...
be672b2b18a12b71db08caba0d6ac81f88431719
2025-05-19 21:57:31
docker.io/swerebenchv2/berriai-litellm:10959-be672b2
berriai__litellm-10959
Method: list_guardrails_v2(self) Location: litellm/proxy/guardrails/guardrail_endpoints.py Inputs: None (relies on global prisma_client and in‑memory guardrail handler). Outputs: ListGuardrailsResponse – an object whose **guardrails** attribute is a list of GuardrailInfoResponse objects. The function merges guardrai...
python
custom-check-github
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 649eda96e..8ed64face 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -12731,5 +12731,19 @@ "/v1/images/g...
[Fix] List Guardrails - Show config.yaml guardrails on litellm ui ## [Fix] List Guardrails - Show config.yaml guardrails on litellm ui Fixes #10951 - Ensure the UI lists guardrails on the config.yaml and from DB - Ensure the UI allows clicking into config.yaml guardrails <img width="1065" alt="Screensho...
[Bug]: Custom GuardRail not Working ### What happened? I've upgraded my LiteLLM from version 1.68 to 1.70.0 and I had to rollback. All my custom guardrails stopped working, even though they are on the config file, they are not shown in the UI. I've checked the documentation and I noticed that stuff changed for guardra...
BerriAI/litellm
diff --git a/tests/guardrails_tests/test_guardrails_config.py b/tests/guardrails_tests/test_guardrails_config.py index c2a902204..f76e3f5ec 100644 --- a/tests/guardrails_tests/test_guardrails_config.py +++ b/tests/guardrails_tests/test_guardrails_config.py @@ -93,11 +93,11 @@ def test_guardrail_list_of_event_hooks(): ...
[ "tests/guardrails_tests/test_guardrails_config.py::test_guardrail_info_response", "tests/guardrails_tests/test_guardrails_config.py::test_guardrail_list_of_event_hooks", "tests/guardrails_tests/test_guardrails_config.py::test_guardrail_masking_logging_only" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.89, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0eb7ff3768f832e56dd139aad4737d6e0a28611e
2019-01-25 21:25:40
docker.io/swerebenchv2/falconry-falcon:1419-0eb7ff3
falconry__falcon-1419
Method: Request.if_match(self) Location: falcon/request.py Inputs: None (property accessed via `req.if_match` on a `Request` instance) Outputs: `list` of `falcon.util.structures.ETag` objects representing each token from the `If-Match` header, or `None` if the header is absent. Empty list if header is present but conta...
python
Apache-2.0
diff --git a/docs/api/util.rst b/docs/api/util.rst index 9d8400e..f7e9771 100644 --- a/docs/api/util.rst +++ b/docs/api/util.rst @@ -19,3 +19,6 @@ Miscellaneous .. autoclass:: falcon.TimezoneGMT :members: + +.. autoclass:: falcon.ETag + :members: diff --git a/falcon/request.py b/falcon/request.py index 4e6ae...
refactor(falcon.request): Change etag headers to return a list of ETag Closes #1211 `W/` prefix was simply ignored as proposed in the issue by @kgriffs.
Change Request.if_none_match to return a list of ETag The list should contain each ETag with quotes stripped. In the case of an asterisk, the result will be ``['*']``. TODO: How to handle the `W/` prefix? I believe it can simply be ignored, since the recipient is supposed to always use the weak comparison algorithm...
falconry/falcon
diff --git a/tests/test_request_attrs.py b/tests/test_request_attrs.py index cbecf4a..2e710ff 100644 --- a/tests/test_request_attrs.py +++ b/tests/test_request_attrs.py @@ -5,6 +5,7 @@ import pytest import falcon from falcon.request import Request, RequestOptions +from falcon.request_helpers import make_etag impor...
[ "tests/test_request_attrs.py::TestRequestAttributes::test_missing_qs", "tests/test_request_attrs.py::TestRequestAttributes::test_empty", "tests/test_request_attrs.py::TestRequestAttributes::test_host", "tests/test_request_attrs.py::TestRequestAttributes::test_subdomain", "tests/test_request_attrs.py::TestRe...
[]
{ "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.87, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5ac90a788d92769243f3003852b60d2a9ac33591
2022-10-28 22:02:10
docker.io/swerebenchv2/alteryx-woodwork:1557-5ac90a7
alteryx__woodwork-1557
Method: WoodworkColumnAccessor.init(self, logical_type=None, semantic_tags=None, description=None, origin=None, nullable=None, **kwargs) Location: woodwork/column_accessor.py Inputs: - self: WoodworkColumnAccessor instance bound to a pandas Series. - logical_type (optional): LogicalType class or string indicating the d...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 23edbb9..817d693 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -10,6 +10,7 @@ Future Release * Fixes * Fixed bug relating to ``dependence`` calculations to ensure columns exist in dataframe...
Fix TypeValidationError message in `column_accessor.py` - fixes #1556
Incorrect Error Message When Woodwork-initializing Series I ran into this error: ``` >>> x = pd.Series([pd.NA, 5, 4, 3, 2]) >>> x.ww.init() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/shripad.badithe/woodwork/woodwork/column_accessor.py", line 112, in init raise Ty...
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_column_accessor.py b/woodwork/tests/accessor/test_column_accessor.py index 5b114af..ae58579 100644 --- a/woodwork/tests/accessor/test_column_accessor.py +++ b/woodwork/tests/accessor/test_column_accessor.py @@ -168,7 +168,7 @@ def test_accessor_init_with_invalid_logical_type(sa...
[ "woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_invalid_logical_type[sample_series_pandas]" ]
[ "woodwork/tests/accessor/test_column_accessor.py::test_accessor_init[sample_series_pandas]", "woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema[sample_series_pandas]", "woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema_errors[sample_series_pandas]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
c4acabc836ab969e95199aa976e85c01df720a27
2024-08-08 00:02:48
docker.io/swerebenchv2/aio-libs-aiohttp:8641-c4acabc
aio-libs__aiohttp-8641
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/8641.bugfix.rst b/CHANGES/8641.bugfix.rst new file mode 100644 index 000000000..9c85ac044 --- /dev/null +++ b/CHANGES/8641.bugfix.rst @@ -0,0 +1,3 @@ +Fixed WebSocket ping tasks being prematurely garbage collected -- by :user:`bdraco`. + +There was a small risk that WebSocket ping tasks would be pr...
Fix WebSocket ping tasks being prematurely garbage collected <!-- Thank you for your contribution! --> ## What do these changes do? The event loop only keeps weak references to tasks, we need to hold a strong reference to ensure that the ping task is not prematurely garbage collected. https://docs.python...
Risk of websocket ping tasks being garbage collected before they finish These are at risk of being garbage collected before they finish. This is an existing problem to be solved in a future PR https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task > Important Save a reference to the...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index d54dc3fc3..ccf235d27 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,7 +6,7 @@ # aiodns==3.2.0 ; sys_platform == "linux" or sys_platform == "darwin" # via -r requirements/runtime-deps.in -aiohappyeyeballs==2.3.4 +aiohappyeyebal...
[ "tests/test_client_ws_functional.py::test_close_websocket_while_ping_inflight[pyloop]" ]
[ "tests/test_client_ws_functional.py::test_send_recv_text[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes_bad_type[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_text_bad_type[pyloop]", "tests/test_client_w...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.python.org/3/library/asyncio-task.html#as...
44e555486f4a8f1e6f3be1b4f9da6248bd933e4a
2021-07-14 10:55:34
docker.io/swerebenchv2/slackapi-python-slack-sdk:1061-44e5554
slackapi__python-slack-sdk-1061
Method: WebClient.admin_conversations_search(self, **kwargs) → SlackResponse Location: slack_sdk/web/client.py Inputs: Arbitrary keyword arguments passed as query parameters (e.g., query=str). The method forwards these args to the API via `params=kwargs` instead of `json=kwargs`. Outputs: Returns a ``SlackResponse`` ob...
python
MIT
diff --git a/.gitignore b/.gitignore index ea79bd8..68dd7ab 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,5 @@ tmp.txt logs/ .pytype/ +*.db +.env* diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 5bf0a18..c6d94e9 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/...
Fix #1049 by correcting request body format and next_cursor extraction ## Summary This pull request resolves #1049. While checking this issue, I found that the `__next__` iteration does not work if an API method use the JSON request body format. Thus, I've updated all other API methods that support pagination to use...
WebClient's paginated response iterator does not work for admin.conversations.search API Usually, `next_cursor` in an API response exists under `response_metadata` property. However, only admin.conversations.search API method's response has it at the top level: https://github.com/slackapi/java-slack-sdk/blob/main/slack...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/web/test_web_client_issue_1049.py b/tests/slack_sdk/web/test_web_client_issue_1049.py new file mode 100644 index 0000000..ebe3642 --- /dev/null +++ b/tests/slack_sdk/web/test_web_client_issue_1049.py @@ -0,0 +1,26 @@ +import json +import unittest + +from slack_sdk.web import WebClient +from...
[ "tests/slack_sdk/web/test_web_client_issue_1049.py::TestWebClient_Issue_1049::test_the_pattern" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/slackapi/java-slack-sdk/blob/main/s...
d47f13b118534771c54fffa829a8458793b0448e
2023-05-25 17:24:07
docker.io/swerebenchv2/altair-viz-altair:3068-d47f13b
altair-viz__altair-3068
Method: Chart.from_json(json_str: str, *, validate: bool = True) Location: altair.vegalite.v5.api.Chart (classmethod) Inputs: a JSON string produced by Chart.to_json; optional boolean `validate` to enforce schema validation. Outputs: a new Chart instance reconstructed from the JSON representation; raises ValueErr...
python
BSD-3-Clause
diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index e9aa439c..ed449bca 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -3395,9 +3395,12 @@ def _remove_layer_props(chart, subcharts, layer_props): else: raise ValueError(f"There are inconsistent ...
Fix bug in reconstructing layered charts with from_json/from_dict Fixes #3067. When reconstructing a layered chart which has `height`or `width` defined on the top-level with `from_dict`, the code so far checked that the layers have that property set to `Undefined` or to the same value as the layered chart itself. Howev...
JSON to Chart failure in v5.0.0 As part of a larger application, we're moving chart content around in JSON format via `Chart.to_json` and `Chart.from_json`. However, I'm encountering an error after updating to Altair v5.0.0. An example that used to work previously - based on the layered chart in https://altair-viz.gith...
altair-viz/altair
diff --git a/tests/examples_arguments_syntax/natural_disasters.py b/tests/examples_arguments_syntax/natural_disasters.py index 031c1e98..890580a6 100644 --- a/tests/examples_arguments_syntax/natural_disasters.py +++ b/tests/examples_arguments_syntax/natural_disasters.py @@ -36,7 +36,7 @@ alt.Chart(source).transform_fil...
[ "tests/test_examples.py::test_from_and_to_json_roundtrip[tests.examples_arguments_syntax]", "tests/test_examples.py::test_from_and_to_json_roundtrip[tests.examples_methods_syntax]" ]
[ "tests/test_examples.py::test_render_examples_to_chart[tests.examples_arguments_syntax]", "tests/test_examples.py::test_render_examples_to_chart[tests.examples_methods_syntax]", "tests/test_examples.py::test_render_examples_to_png[tests.examples_arguments_syntax-vl-convert]", "tests/test_examples.py::test_ren...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://altair-viz.github.io/altair-tutorial/notebooks/0...
82a3f61d1798a0048a2af76d5ea747d116765b62
2025-05-06 14:26:24
docker.io/swerebenchv2/dynaconf-dynaconf:1295-82a3f61
dynaconf__dynaconf-1295
Method: Settings.load_file(self, filename: str, *, env: str | bool | None = None, silent: bool = False) Location: dynaconf/base.py → class Settings (instance method) Inputs: - **filename** – path to the settings file to be loaded. - **env** – optional environment selector. - If a string (e.g., `"development...
python
MIT
diff --git a/docs/advanced.md b/docs/advanced.md index ecc7e3b..346bea2 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -392,6 +392,10 @@ be loaded programmatically again. - Calls to `load_file` will be recorded on the inspect history and include module and line number. +**new in 3.2.11** + +- load_file wi...
feat: envless load file Allow loading a file bypassing the env config closes #1294 ```py settings.load_file(toml_path_envless, env=False) ``` env=False will load the file ignoring environment layers
[RFC] Allow loading files bypassing environment config Problem: When having `Dynaconf(environments=True)` the settings file must be layered by envs. ```toml [envname] key = value ``` But when explicitly calling `settings.load_file(path)` I want to be able to bypass the env and load the whole top level of the file li...
dynaconf/dynaconf
diff --git a/tests/test_base.py b/tests/test_base.py index 726ae8a..ef515c4 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -1033,6 +1033,50 @@ def test_from_env_method(clean_env, tmpdir): assert settings.A_DEFAULT == "From default env" +def test_envless_load_file(tmpdir): + """Ensure passing se...
[ "tests/test_base.py::test_envless_load_file" ]
[ "tests/test_base.py::test_deleted_raise", "tests/test_base.py::test_delete_and_set_again", "tests/test_base.py::test_accepts_only_upper", "tests/test_base.py::test_populate_obj", "tests/test_base.py::test_populate_obj_with_keys", "tests/test_base.py::test_populate_obj_with_ignore", "tests/test_base.py::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0056e982c5a85b26935b8c750cc00cf4b1e66ebc
2024-02-13 04:21:57
docker.io/swerebenchv2/amaranth-lang-amaranth:1115-0056e98
amaranth-lang__amaranth-1115
Method: Value.as_signed(self) Location: class **Value** in *amaranth/hdl/_ast.py* Inputs: - **self** – a :class:`Value` instance. Outputs: - Returns a signed view of ``self`` as an :class:`Operator` with operator ``"s"``. - Raises **ValueError** with message *"Cannot create a 0‑width signed value"* when ``l...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_ast.py b/amaranth/hdl/_ast.py index 6355654..e19a280 100644 --- a/amaranth/hdl/_ast.py +++ b/amaranth/hdl/_ast.py @@ -483,7 +483,14 @@ class Value(metaclass=ABCMeta): Returns ------- :class:`Value`, :pc:`signed(len(self))`, :ref:`assignable <lang-assignable>` + + ...
hdl._ast: deprecate `ValueCastable.lowermethod`. Fixes #1114.
Deprecate and remove `ValueCastable.lowermethod` This isn't actually serving any useful purpose. - Deprecation PR: N/A - Removal PR: N/A (for milestone 0.6)
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index 83bbb77..4b14f6b 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -343,7 +343,7 @@ class ValueTestCase(FHDLTestCase): self.assertRepr(Const(256, signed(9)).shift_left(-5), "(s (slice (const 9'sd-256) 5:9)...
[ "tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong", "tests/test_hdl_ast...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
9cc9242f27f5841671b9a4a762ef2553fb506d4f
2016-02-18 18:54:19
docker.io/swerebenchv2/rpi-distro-python-gpiozero:203-9cc9242
rpi-distro__python-gpiozero-203
No new interfaces are introduced.
python
custom-check-github
diff --git a/gpiozero/devices.py b/gpiozero/devices.py index a1feb4e..5e5b29b 100644 --- a/gpiozero/devices.py +++ b/gpiozero/devices.py @@ -243,7 +243,7 @@ class GPIODevice(ValuesMixin, GPIOBase): def _read(self): try: return self.pin.state == self._active_state - except TypeError: + ...
Catch AttributeError inside GPIODevice._read Fixes #202
repr is broken for closed devices Example interactive code: ```python >>> from gpiozero import LED >>> led = LED(21) >>> led <gpiozero.LED object on pin GPIO21, active_high=True, is_active=False> >>> led.close() >>> led.closed True >>> led Traceback (most recent call last): File "gpiozero/output_devices.py...
RPi-Distro/python-gpiozero
diff --git a/tests/test_devices.py b/tests/test_devices.py index 9dff553..0312c7e 100644 --- a/tests/test_devices.py +++ b/tests/test_devices.py @@ -13,5 +13,55 @@ from gpiozero.pins.mock import MockPin from gpiozero import * -# TODO devices tests! +# TODO add more devices tests! + +def test_device_no_pin(): + ...
[ "tests/test_devices.py::test_device_repr_after_close" ]
[ "tests/test_devices.py::test_device_no_pin", "tests/test_devices.py::test_device_init", "tests/test_devices.py::test_device_init_twice_same_pin", "tests/test_devices.py::test_device_init_twice_different_pin", "tests/test_devices.py::test_device_close", "tests/test_devices.py::test_device_reopen_same_pin",...
{ "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9d79f5da2c6c41abb6693bcedd8b63835aaa1880
2024-06-17 17:21:22
docker.io/swerebenchv2/pennylaneai-pennylane:5866-9d79f5d
pennylaneai__pennylane-5866
Function: process_queue(queue: AnnotatedQueue) -> tuple[list[ops_or_meas], list["pennylane.measurements.MeasurementProcess"]] Location: pennylane.queuing Inputs: - **queue**: An `AnnotatedQueue` containing objects that are expected to have a `_queue_category` attribute (i.e., `Operator` or `MeasurementProcess` objects)...
python
Apache-2.0
diff --git a/doc/code/qml_queuing.rst b/doc/code/qml_queuing.rst index 841e600cb..13e48d62b 100644 --- a/doc/code/qml_queuing.rst +++ b/doc/code/qml_queuing.rst @@ -15,4 +15,4 @@ Overview :no-heading: :include-all-objects: :no-inherited-members: - :skip: contextmanager, OrderedDict, RLock + :skip: ...
add error on processing queue if object does not have a `_queue_category` **Context:** **Description of the Change:** Adds an error to `qml.queuing.process_queue` if it encounters an object without a `_queue_category` property that sorts it into the operations or measurements queue. **Benefits:** An informa...
[BUG] Using qml.apply on measurementProcess separated by commas returns () ### Expected behavior I am trying to use qml.apply to write test cases, specifically to parametrize across many different measurementProcesses. Some of these MPs look something like this: ``` dev = qml.device("default.qubit", wires=2, sho...
PennyLaneAI/pennylane
diff --git a/tests/test_queuing.py b/tests/test_queuing.py index ad3c80638..ec4bf18ef 100644 --- a/tests/test_queuing.py +++ b/tests/test_queuing.py @@ -451,16 +451,9 @@ class TestApplyOp: op1 = qml.apply(5) op2 = qml.apply(6, q1) - tape2 = qml.tape.QuantumScript.from_queu...
[ "tests/test_queuing.py::test_process_queue_error_if_not_operator_or_measurement" ]
[ "tests/test_queuing.py::TestStopRecording::test_stop_recording_on_function_inside_QNode", "tests/test_queuing.py::TestStopRecording::test_stop_recording_directly_on_op", "tests/test_queuing.py::TestStopRecording::test_nested_stop_recording_on_function", "tests/test_queuing.py::TestStopRecording::test_stop_rec...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
d90e6a9fe3e2bd859fc011e97e54a16d5f74e5b5
2024-11-16 14:08:01
docker.io/swerebenchv2/jelmer-dulwich:1441-d90e6a9
jelmer__dulwich-1441
No new interfaces are introduced.
python
custom-check-github
diff --git a/dulwich/objects.py b/dulwich/objects.py index 48d3712f..03426eda 100644 --- a/dulwich/objects.py +++ b/dulwich/objects.py @@ -728,8 +728,8 @@ def _format_message(headers, body): yield git_line(field, lines[0]) for line in lines[1:]: yield b" " + line + b"\n" + yield b"\n" ...
Fix empty message serialization Fixes #1429, incorrect signature verification for commits with an empty message, as encoded by CGit.
GPG signature verification fails incorrectly for commits with empty message I've hit this problem in my messy dev environment. I figure I should make a PR for a nice clean repo case as a unit test. Do you have a recommendation on where commit signature verification test cases should go? An example of a GPG signed co...
jelmer/dulwich
diff --git a/tests/compat/test_porcelain.py b/tests/compat/test_porcelain.py index f20d9001..003b9c43 100644 --- a/tests/compat/test_porcelain.py +++ b/tests/compat/test_porcelain.py @@ -126,7 +126,6 @@ class CommitCreateSignTestCase(PorcelainGpgTestCase, CompatTestCase): "commit", "--...
[ "tests/test_objects.py::TagSerializeTests::test_serialize_none_message" ]
[ "tests/test_objects.py::TestHexToSha::test_reverse", "tests/test_objects.py::TestHexToSha::test_simple", "tests/test_objects.py::BlobReadTests::test_chunks", "tests/test_objects.py::BlobReadTests::test_create_blob_from_string", "tests/test_objects.py::BlobReadTests::test_decompress_simple_blob", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://archive.softwareheritage.org/api/1/revision/92...
7421fadf3836bb275a770999450059ef0219867e
2021-10-04 10:43:34
docker.io/swerebenchv2/researchobject-ro-crate-py:76-7421fad
researchobject__ro-crate-py-76
Method: DataEntity.__init__(self, crate, identifier, properties=None) Location: rocrate/model/data_entity.py Inputs: - **crate** – ROCrate instance that will contain this entity. - **identifier** – String identifier for the entity (e.g., “#mysterious” or a relative/absolute path). Must be non‑empty; validation that ...
python
Apache-2.0
diff --git a/rocrate/model/data_entity.py b/rocrate/model/data_entity.py index d04d364..e9acbe5 100644 --- a/rocrate/model/data_entity.py +++ b/rocrate/model/data_entity.py @@ -24,13 +24,14 @@ from .entity import Entity class DataEntity(Entity): - def __init__(self, crate, identifier, properties=None): - ...
Handle unknown data entities Fixes #74. The library does not crash anymore if it encounters an "unexpected" data entity, i.e., something linked to from `hasPart` that's not a `File` or `Dataset`. Rather, the entity is added to the crate as a `DataEntity`. No-op `write` and `write_zip` methods have been added to `Dat...
Bug: Won't load a crate with hasPart reference to a RepositoryCollection. Loading the below test data gives an error: ``` File "/Users/pt/working/ro-crate-py/test.py", line 3, in <module> crate = ROCrate("haspart") File "/Users/pt/rocrate/lib/python3.9/site-packages/rocrate/rocrate.py", line 92, in __init_...
ResearchObject/ro-crate-py
diff --git a/test/test_model.py b/test/test_model.py index aaf5169..e9d211c 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -20,7 +20,9 @@ import uuid import pytest from rocrate.rocrate import ROCrate +from rocrate.model.data_entity import DataEntity from rocrate.model.file import File +from rocrate.mo...
[ "test/test_model.py::test_data_entities", "test/test_read.py::test_generic_data_entity" ]
[ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
446afc9dc21b786531b1171d14ca31adf4f084a3
2022-07-01 09:09:38
docker.io/swerebenchv2/pallets-werkzeug:2442-446afc9
pallets__werkzeug-2442
Function: parse_options_header(value: str, multiple: bool = False) Location: src/werkzeug/http.py Inputs: - **value** – the raw header value string to be parsed (e.g., `"something; fileName=\"File.ext\""`). - **multiple** – optional flag (deprecated) that, when true, returns a list of values for repeated options; defau...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 749f6563..c5247876 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,7 +9,9 @@ Version 2.2.0 - Fix compatibility with Python 3.11 by ensuring that ``end_lineno`` and ``end_col_offset`` are present on AST nodes. :issue:`2425` - Add a new faster matching router based...
Lowercase the parsed options names I cannot find a RFC that indicates that the option names are case sensitive whereas RFC6266 states that the `filename` option name is case insensitive. Therefore the best user experience is to lowercase the names. This will cause breaking changes if case sensitivity is relied up...
multipart disposition parameter parser is case-sensitive in violation of RFC6266 I was trying to implement a file uploader for a very-legacy system that is using a `content-disposition: form-data; name="message"; fileName="sample.txt"` header in multipart/form-data uploads. Flask/werkzeug/sansio is [only looking for...
pallets/werkzeug
diff --git a/tests/test_http.py b/tests/test_http.py index 5936bfa5..623114cb 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -358,6 +358,10 @@ class TestHTTPUtility: assert http.parse_options_header(" , a ") == ("", {}) assert http.parse_options_header(" ; a ") == ("", {}) + def test...
[ "tests/test_http.py::TestHTTPUtility::test_parse_options_header_case_insensitive" ]
[ "tests/test_http.py::TestHTTPUtility::test_accept", "tests/test_http.py::TestHTTPUtility::test_mime_accept", "tests/test_http.py::TestHTTPUtility::test_accept_matches", "tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity", "tests/test_http.py::TestHTTPUtility::test_charset_accept", "tests/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pallets/werkzeug/blob/main/src/werkze...
6d19148e537d3f1faca34fdcd91b2cb6778017c4
2023-10-12 14:27:10
docker.io/swerebenchv2/sdv-dev-rdt:718-6d19148
sdv-dev__rdt-718
Method: OrderedUniformEncoder.__init__(self, order) Location: rdt/transformers/categorical.py Inputs: order – iterable of categorical values (list, Series, etc.). Must contain no duplicate entries; NaNs are normalised to None via ``fill_nan_with_none``. Outputs: None (initialises the transformer). Raises ``TransformerI...
python
custom-check-github
diff --git a/rdt/transformers/categorical.py b/rdt/transformers/categorical.py index 7d36259..b4d544f 100644 --- a/rdt/transformers/categorical.py +++ b/rdt/transformers/categorical.py @@ -210,6 +210,13 @@ class OrderedUniformEncoder(UniformEncoder): def __init__(self, order): self.order = fill_nan_with...
The `OrderedLabelEncoder` and `OrderedUniformEncoder` should not accept duplicate categories Resolve #673
The `OrderedLabelEncoder` should not accept duplicate categories ### Environment Details * RDT version: 1.6.0 (latest) * Python version: 3.10 * Operating System: Linux (Google Colab) ### Error Description The [OrderedLabelEncoder](https://docs.sdv.dev/rdt/transformers-glossary/categorical/orderedlabelencoder) ac...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_categorical.py b/tests/unit/transformers/test_categorical.py index 98ebe62..afd9d16 100644 --- a/tests/unit/transformers/test_categorical.py +++ b/tests/unit/transformers/test_categorical.py @@ -344,6 +344,19 @@ class TestOrderedUniformEncoder: # Asserts pd.te...
[ "tests/unit/transformers/test_categorical.py::TestOrderedUniformEncoder::test___init___duplicate_categories", "tests/unit/transformers/test_categorical.py::TestOrderedLabelEncoder::test___init___duplicate_categories" ]
[ "tests/unit/transformers/test_categorical.py::TestUniformEncoder::test___init___bad_order_by", "tests/unit/transformers/test_categorical.py::TestUniformEncoder::test__order_categories_alphabetical", "tests/unit/transformers/test_categorical.py::TestUniformEncoder::test__order_categories_alphabetical_with_nans",...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.sdv.dev/rdt/transformers-glossary/categor...
77753651311b337a5e91d31ff3485d93c33957cc
2020-05-12 07:36:57
docker.io/swerebenchv2/rochacbruno-dynaconf:338-7775365
rochacbruno__dynaconf-338
Method: LazySettings.__init__(self, **kwargs) Location: dynaconf/base.py Inputs: Arbitrary keyword arguments; new supported flag `lowercase_read` (bool) which is an alias for the internal configuration key `LOWERCASE_READ_FOR_DYNACONF`. Existing flags such as `ENVLESS_MODE` remain unchanged. Outputs: Returns a new `Laz...
python
MIT
diff --git a/Makefile b/Makefile index 8adef78..dc36a12 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ test_examples: cd example/toml_with_secrets/;pwd;python program.py cd example/envs;pwd;python app.py cd example/envless_mode;pwd;python app.py + cd example/lower_read;pwd;python app.py cd example/custo...
Fix #272 allow lowercase keys Fix #272 allow access of lowercase keys - `settings.lowercase_key` is allowed - `settings.dynaconf` is a proxy to internal methods - `settings.__reserved_attributes` validates key names - `LazySettings __init__ parameters can receive lower case configs`
Inconsistent/undefined behavior in when accessing settings with lower-case names Hey, I'd like to discuss this behavior I just encountered when I was using a Dynaconf Settings object alongside a regular dict, and trying to use the same code for accessing both of them. Assuming there is a Dynaconf Settings instance nam...
rochacbruno/dynaconf
diff --git a/tests/test_base.py b/tests/test_base.py index e57d356..f550127 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -791,3 +791,27 @@ def test_envless_mode(tmpdir): assert settings.HELLO == "world" assert settings.DEFAULT == 1 assert settings.DATABASES.default.port == 8080 + + +def te...
[ "tests/test_base.py::test_lowercase_read_mode" ]
[ "tests/test_base.py::test_deleted_raise", "tests/test_base.py::test_accepts_only_upper", "tests/test_base.py::test_populate_obj", "tests/test_base.py::test_populate_obj_with_keys", "tests/test_base.py::test_populate_obj_with_ignore", "tests/test_base.py::test_call_works_as_get", "tests/test_base.py::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": 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": 89,...
c16d91ff168281e369a542a00c31f37c788975d1
2017-05-31 05:24:51
docker.io/swerebenchv2/timothycrosley-isort:536-c16d91f
timothycrosley__isort-536
Method: SortImports.__init__(self, file_contents: str, *, force_sort_within_sections: bool = False, force_to_top: list[str] | None = None, **kwargs) Location: isort/isort.py → class SortImports Inputs: - **file_contents** – the source code to be sorted (string). - **force_sort_within_sections** – when ``True`` forces...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d09727e..cbf5ef28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequen - Fixed issue #491: Non ending parentheses withing single line comments no longer cause formatting issues - ...
Feature/fix issue 473 Fixes #473
force_to_top not respected by force_sort_within_sections force_to_top seems to be applied before sections are sorted when force_sort_within_sections is specified: testisort.py ``` import foo import z from foo import bar ``` ~/.isort.cfg ``` [settings] force_to_top=z force_sort_within_sections=True ``` ``` $ isort ...
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index bb7fd84d..5b959bed 100644 --- a/test_isort.py +++ b/test_isort.py @@ -2084,6 +2084,7 @@ def test_inconsistent_behavior_in_python_2_and_3_issue_479(): 'from workalendar.europe import UnitedKingdom\n') assert SortImports(file_contents=test_input).ou...
[ "test_isort.py::test_sort_within_sections_with_force_to_top_issue_473" ]
[ "test_isort.py::test_happy_path", "test_isort.py::test_code_intermixed", "test_isort.py::test_correct_space_between_imports", "test_isort.py::test_sort_on_number", "test_isort.py::test_line_length", "test_isort.py::test_output_modes", "test_isort.py::test_qa_comment_case", "test_isort.py::test_length_...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9f4da5159a098256dfbccd2c926107953a6812e5
2024-04-30 00:14:46
docker.io/swerebenchv2/keras-team-keras:19641-9f4da51
keras-team__keras-19641
Function: conv(inputs, kernel, strides=1, padding="valid", data_format=None, **kwargs) Location: keras.ops.nn (imported in tests as `knn`) Inputs: - **inputs**: ndarray or tensor of rank 5 (batch, depth, height, width, channels) when `data_format="channels_last"` or (batch, channels, depth, height, width) when `data_fo...
python
Apache-2.0
diff --git a/keras/src/backend/tensorflow/nn.py b/keras/src/backend/tensorflow/nn.py index cb6bff3b4..e590d10e2 100644 --- a/keras/src/backend/tensorflow/nn.py +++ b/keras/src/backend/tensorflow/nn.py @@ -252,6 +252,12 @@ def conv( # If kernel's in_channel does not match input's channels, it indicates ...
support conv3d on cpu for TF Resolves #19591
Conv3D crash when the data_format is 'channels_first' and using Tensorflow backend According to the [document](https://keras.io/api/layers/convolution_layers/convolution3d/) of Conv3D in keras website, Conv3D should accept inputs with data format 'channels_first' or 'channels_last'. While in this [colab](https://colab...
keras-team/keras
diff --git a/keras/src/ops/nn_test.py b/keras/src/ops/nn_test.py index 2c825c4f4..4f85e96cd 100644 --- a/keras/src/ops/nn_test.py +++ b/keras/src/ops/nn_test.py @@ -1445,23 +1445,29 @@ class NNOpsCorrectnessTest(testing.TestCase, parameterized.TestCase): ) self.assertAllClose(outputs, expected) - ...
[ "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d0", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d10", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d2", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d4", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest...
[ "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_average_pool", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_batch_normalization", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_conv", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_conv_transpose", "keras/src/ops/nn_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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://keras.io/api/layers/convolution_layers/convoluti...
9c953751030480eb3aa41b88af169a3a50b9c2fd
2025-03-27 08:23:15
docker.io/swerebenchv2/aristanetworks-anta:1125-9c95375
aristanetworks__anta-1125
No new interfaces are introduced.
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 5c87e29b..2245cb17 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -396,3 +396,5 @@ RedistributedProtocol = Annotated[ ] RedistributedAfiSafi = Annotated[Literal["v4u", "v4m", "v6u", "v6m"], BeforeValidator(bgp_redistributed_route_proto_ab...
feat(anta.tests): Hardware module tests should impose input restrictions Added Strict check for the power supply and power supply fan state. Fixes #1070 # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have run pre-commit for code l...
Enhancement(anta.tests): Hardware module tests should impose input restrictions on fields using field validators Currently, some tests are accepting inputs as plain strings. We should implement field validation in these cases. Example: ``` anta.tests.hardware: - VerifyEnvironmentPower: states: ...
aristanetworks/anta
diff --git a/anta/tests/hardware.py b/anta/tests/hardware.py index 9e0453f9..8bac413d 100644 --- a/anta/tests/hardware.py +++ b/anta/tests/hardware.py @@ -9,6 +9,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, ClassVar +from anta.custom_types import PowerSupplyFanStatus, PowerSupplyStatus...
[ "tests/units/anta_tests/test_hardware.py::test[anta.tests.hardware.VerifyTransceiversManufacturers-success]", "tests/units/anta_tests/test_hardware.py::test[anta.tests.hardware.VerifyTransceiversManufacturers-failure]", "tests/units/anta_tests/test_hardware.py::test[anta.tests.hardware.VerifyTemperature-success...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
097df2a2edca999e5dbff03db9040800178acb42
2024-10-07 09:10:20
docker.io/swerebenchv2/apiflask-apiflask:615-097df2a
apiflask__apiflask-615
Method: APIScaffold.input(self, schema, location: str = 'json', *, required: bool = False, description: str | None = None, example: t.Any | None = None, examples: dict[str, t.Any] | None = None, validation: bool = True, **kwargs) → t.Callable[[DecoratedType], DecoratedType] Location: src/apiflask/scaffold.py Inputs: - ...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index 577af54..f0ec363 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +## Version 2.3.0 + +Released: - + +- Support skipping the validation for the request body with `@input(validation=False)` ([issue #573][issue_573]). + +[issue_573]: https://github.com/apiflask/apiflask...
Add flag to allow disabling of validation on input(issue 573) <!-- For features and bug fixes, before opening a PR, please open an issue describing the bug or feature the PR will address. You can skip this step if it's a typo fix. Replace this comment with a description of the change. Describe how it addresses th...
Add flag to allow disabling of validation on input ## Suggestion There has been use cases where validation is not always wanted for input but having the input schema in the docs is. It would be nice if there was a way to optionally disable validation for a given input schema and just have APIFlask pass the unaltered J...
apiflask/apiflask
diff --git a/tests/test_decorator_input.py b/tests/test_decorator_input.py index c473e8b..7453592 100644 --- a/tests/test_decorator_input.py +++ b/tests/test_decorator_input.py @@ -11,7 +11,10 @@ from .schemas import Files from .schemas import Foo from .schemas import Form from .schemas import FormAndFiles +from api...
[ "tests/test_decorator_input.py::test_skip_validation", "tests/test_decorator_input.py::test_location_raw_data" ]
[ "tests/test_decorator_input.py::test_input", "tests/test_decorator_input.py::test_input_with_query_location", "tests/test_decorator_input.py::test_input_with_form_location", "tests/test_decorator_input.py::test_input_with_files_location", "tests/test_decorator_input.py::test_input_with_form_and_files_locati...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
e97c21c1cf56303903ec2d42f776b8b90204d53d
2022-02-27 14:55:42
docker.io/swerebenchv2/martinthoma-flake8-simplify:109-e97c21c
martinthoma__flake8-simplify-109
No new interfaces are introduced.
python
MIT
diff --git a/flake8_simplify/__init__.py b/flake8_simplify/__init__.py index 3686a57..db11afc 100644 --- a/flake8_simplify/__init__.py +++ b/flake8_simplify/__init__.py @@ -165,7 +165,7 @@ def add_meta(root: ast.AST, level: int = 0) -> None: previous_sibling = None for node in ast.iter_child_nodes(root): ...
SIM113: Remove false-positive in double-loop Thank you, Skylion007! Closes #25
[Adjust Rule] SIM113 False Positive in Nested Loops ## Desired change SIM113 False Positive in nested loops In this case, we could using enumerate is rather tricky. How do you suggest we best do it in nested loops like so? * **Rule(s)**: SIM113 * **Adjustment**: In which way should it/they be adjusted? The resul...
MartinThoma/flake8-simplify
diff --git a/tests/test_100_rules.py b/tests/test_100_rules.py index 30b2448..44ed391 100644 --- a/tests/test_100_rules.py +++ b/tests/test_100_rules.py @@ -276,36 +276,48 @@ def test_sim112_get_with_default(): def test_sim113(): ret = _results( - """for el in iterable: + """ +idx = 0 +for el in i...
[ "tests/test_100_rules.py::test_sim113", "tests/test_100_rules.py::test_sim113_false_positive[double-loop]", "tests/test_100_rules.py::test_sim113_false_positive[while-loop]" ]
[ "tests/test_100_rules.py::test_sim102_pattern1", "tests/test_100_rules.py::test_sim102_pattern2", "tests/test_100_rules.py::test_sim102_not_active1", "tests/test_100_rules.py::test_sim102_not_active2", "tests/test_100_rules.py::test_sim103_true_false", "tests/test_100_rules.py::test_sim104", "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/MartinThoma/flake8-simplify/issues/...
82c608674a6295077afc753eb894fbf69dbc0dd4
2024-07-20 02:24:19
docker.io/swerebenchv2/google-jax:22541-82c6086
google__jax-22541
Function: normal(key, shape, dtype=jnp.float32) Location: jax.random.normal Inputs: - key: a PRNGKey generated by jax.random.key or related functions. - shape: either an int (treated as a one‑dimensional shape) or an iterable of ints specifying the desired output shape. - dtype (optional): a floating‑point o...
python
Apache-2.0
diff --git a/jax/_src/array.py b/jax/_src/array.py index 796d313ae..0485bbe2c 100644 --- a/jax/_src/array.py +++ b/jax/_src/array.py @@ -32,6 +32,7 @@ from jax._src import dispatch from jax._src import dtypes from jax._src import errors from jax._src import profiler +from jax._src import tree_util from jax._src imp...
make core.as_named_shape treat `int` like `tuple[int]` fixes #21343
jax.random.normal(key, 1000) error message is bad Come on: ``` In [16]: jax.random.normal(jax.random.key(0), 1000) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[16], line 1 ----> 1 jax.random.normal...
google/jax
diff --git a/tests/pjit_test.py b/tests/pjit_test.py index bc37a3798..3b56a4f70 100644 --- a/tests/pjit_test.py +++ b/tests/pjit_test.py @@ -4241,35 +4241,6 @@ class ArrayPjitTest(jtu.JaxTestCase): self.assertArraysEqual(out, np_inp) self.assertEqual(out.sharding, s2) - @parameterized.named_parameters( - ...
[ "tests/random_test.py::JnpWithKeyArrayTest::test_int_shape" ]
[ "tests/pjit_test.py::PJitTest::testAutodiffCache", "tests/pjit_test.py::PJitTest::testAutodiff_2", "tests/pjit_test.py::PJitTest::testAutodiff_2x1", "tests/pjit_test.py::PJitTest::testAutodiff_2x2", "tests/pjit_test.py::PJitTest::testBasic1D", "tests/pjit_test.py::PJitTest::testBasic1DWithMeshContextManag...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
560c5f6e29cebc6ff84424c7f0f3d85eadac1e27
2021-08-02 00:04:10
docker.io/swerebenchv2/mie-lab-trackintel:298-560c5f6
mie-lab__trackintel-298
Method: read_positionfixes_gpd(gdf, tracked_at="tracked_at", user_id="user_id", geom_col=None, crs=None, tz=None, mapper=None) Location: trackintel.io.from_geopandas Inputs: - **gdf**: GeoDataFrame containing point geometry (positionfixes). - **tracked_at**, **user_id**: column names in *gdf* to be mapped to the...
python
MIT
diff --git a/trackintel/io/from_geopandas.py b/trackintel/io/from_geopandas.py index adb7636..8fecdea 100644 --- a/trackintel/io/from_geopandas.py +++ b/trackintel/io/from_geopandas.py @@ -1,9 +1,12 @@ import pandas as pd +import geopandas as gpd from trackintel.io.file import _localize_timestamp -def read_posi...
ENH: Default to geometry for `read_*_gpd` functions. closes #278 Default of `read_*_gpd` functions now opt for the geometry of the GeoDataFrame if available. Also added a function `_trackintel_model` that the functions call instead of doing everything themselves. Added tests for this new function. Added crs keyw...
change default for geom_col argument in read_*_gpd to geometry.name When we use a `read_*_gpd` (e.g., `read_staypoints_gpd`) with a valid geodataframe it throws an error if the geometry column is not named 'geom'. I think if the geometry dataframe is already valid it should default to the geometry.name argument.
mie-lab/trackintel
diff --git a/tests/io/test_file.py b/tests/io/test_file.py index 67e027b..1478c14 100644 --- a/tests/io/test_file.py +++ b/tests/io/test_file.py @@ -13,7 +13,7 @@ class TestPositionfixes: """Test basic reading and writing functions.""" orig_file = os.path.join("tests", "data", "positionfixes.csv") ...
[ "tests/io/test_file.py::TestPositionfixes::test_from_to_csv", "tests/io/test_file.py::TestPositionfixes::test_set_crs", "tests/io/test_file.py::TestPositionfixes::test_set_datatime_tz", "tests/io/test_file.py::TestPositionfixes::test_set_index_warning", "tests/io/test_file.py::TestPositionfixes::test_set_in...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
f95e0500b24a844743f008cb64162e4de6257153
2023-04-27 08:08:16
docker.io/swerebenchv2/pypa-bandersnatch:1442-f95e050
pypa__bandersnatch-1442
Method: SimpleAPI.__init__(self, storage_backend: Storage, format: Union[SimpleFormat, str], diff_file_list: List[Path], digest_name: Union[SimpleDigest, str], hash_index: bool, root_uri: Optional[str]) Location: src/bandersnatch/simple.py Inputs: - **storage_backend** – concrete implementation of the bandersnatc...
python
AFL-3.0
diff --git a/CHANGES.md b/CHANGES.md index 27a083e..a3f6a67 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,10 @@ +# Unreleased + +## Bug Fixes + +- Fix digest used for file hashes in PEP 691 simple JSON file output `PR #1442` + - The `digest_name` setting from configuration (default value: `sha256`) will now be u...
Use the configurable digest_name for simple JSON PEP 691 specifies that each file's hashes dictionary must contain only hash algorithms that can be passed, without arguments, to hashlib.new(). PyPI has started using a "blake2b_256" key for digests, which is blake2b with the digest size set to 32 bytes, and makes it ...
package json digest dict mapped to simple json hashes dict causes pip >23 to fail blake2b_256 has been added to the digest dict in package json, pip does not know how to handle this hash name. Causing and exception when trying to install packages with pip23 or later. If you check https://pypi.org/simple/pip against...
pypa/bandersnatch
diff --git a/src/bandersnatch/tests/test_main.py b/src/bandersnatch/tests/test_main.py index d69eebf..dcfed0a 100644 --- a/src/bandersnatch/tests/test_main.py +++ b/src/bandersnatch/tests/test_main.py @@ -128,7 +128,7 @@ def test_main_throws_exception_on_unsupported_digest_name( with pytest.raises(ValueError) as e...
[ "src/bandersnatch/tests/test_main.py::test_main_help", "src/bandersnatch/tests/test_main.py::test_main_create_config", "src/bandersnatch/tests/test_main.py::test_main_cant_create_config", "src/bandersnatch/tests/test_main.py::test_main_throws_exception_on_unsupported_digest_name", "src/bandersnatch/tests/te...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pypi.org/simple/pip", "https://pypi.org/...
fd5b75e2212698766f8ee10f4f448ed07dd99a47
2023-12-21 13:46:43
docker.io/swerebenchv2/researchobject-ro-crate-py:169-fd5b75e
researchobject__ro-crate-py-169
Method: Entity.id(self) Location: rocrate/model/entity.py – defined as a `@property` returning the entity’s identifier. Inputs: None (read‑only accessor). Outputs: `str` – the immutable identifier of the entity, formatted by `format_id`. Description: Retrieves the entity’s identifier. The identifier is stored i...
python
Apache-2.0
diff --git a/rocrate/model/entity.py b/rocrate/model/entity.py index 41bf09b..fa26218 100644 --- a/rocrate/model/entity.py +++ b/rocrate/model/entity.py @@ -30,9 +30,9 @@ class Entity(MutableMapping): def __init__(self, crate, identifier=None, properties=None): self.crate = crate if identifier: -...
Make Entity id a readonly property Fixes #140.
Entity id should not be modifiable It's used to index the entity in the crate's `__entity_map`, so changing it leads to inconsistencies: ```pycon >>> from rocrate.rocrate import ROCrate >>> crate = ROCrate() >>> d = crate.add_dataset("FOO") >>> crate._ROCrate__entity_map {..., 'arcp://uuid,2f145cc1-20be-4cd7-ac...
ResearchObject/ro-crate-py
diff --git a/test/test_model.py b/test/test_model.py index e7b5343..9f00a48 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -505,3 +505,10 @@ def test_add_no_duplicates(test_data_dir, tmpdir): assert ret["name"] == "Jim" assert ret in crate.get_entities() assert crate.contextual_entities == [...
[ "test/test_model.py::test_immutable_id" ]
[ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
90c554834892af2c641bfc18949ee9d476cc9846
2024-12-08 08:35:37
docker.io/swerebenchv2/xknx-xknx:1617-90c5548
xknx__xknx-1617
Method: DPT8ByteSigned.to_knx(value: int | float) → DPTArray Location: xknx/dpt/dpt_29.py, class DPT8ByteSigned Inputs: *value* – integer or float to be encoded; must be within the signed 64‑bit range [-9 223 372 036 854 775 808, 9 223 372 036 854 775 807]. Values outside this range trigger a ConversionError. Outputs: ...
python
MIT
diff --git a/docs/changelog.md b/docs/changelog.md index 03333483..b3e6188d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,6 +6,11 @@ nav_order: 2 # Changelog + +### DPT + +- Add DPT 29 - 8byte signed definitions: generic, 29.010, 29.011, 20.012 + ### Management - Add rate limit (in packets per s...
Add DPT 29 definitions <!-- You are awesome! Thanks for contributing to our project! Please, DO NOT DELETE ANY TEXT from this template!. --> ## Description <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that ar...
Add DPT 29 support Add DPT 29 - 8 byte signed values transcoders. <img width="894" alt="Bildschirmfoto 2024-12-05 um 23 08 18" src="https://github.com/user-attachments/assets/f7b40699-fd00-48b4-ac38-c49a9d98db10">
XKNX/xknx
diff --git a/test/dpt_tests/dpt_29_test.py b/test/dpt_tests/dpt_29_test.py new file mode 100644 index 00000000..71a0671a --- /dev/null +++ b/test/dpt_tests/dpt_29_test.py @@ -0,0 +1,35 @@ +"""Unit test for KNX 8 byte signed objects.""" + +import pytest + +from xknx.dpt import DPT8ByteSigned, DPTArray +from xknx.excepti...
[ "test/dpt_tests/dpt_29_test.py::TestDPT8ByteSigned::test_values[\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00-0]", "test/dpt_tests/dpt_29_test.py::TestDPT8ByteSigned::test_values[\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01-1]", "test/dpt_tests/dpt_29_test.py::TestDPT8ByteSigned::test_values[\\x00\\x00\\x00\\x00\\x00\\x...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "partial", "pr_categories": ...
c9536b117e39fef41b9ccb5e07463eecda15ba2a
2024-11-14 22:29:12
docker.io/swerebenchv2/getmoto-moto:8316-c9536b1
getmoto__moto-8316
Function: get_indexing_configuration() Location: moto/iot/responses.py – method IoTResponse.get_indexing_configuration(self) → str Inputs: none (the boto3 IoT client invokes this without parameters) Outputs: JSON‑encoded dict containing the current indexing configuration, e.g. { "thingIndexingConfiguration": {...},...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index e5ee66fff..2349a0b5f 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -4628,7 +4628,7 @@ - [ ] get_buckets_aggregation - [ ] get_cardinality - [ ] get_effective_policies -- [ ] get_indexing_configuration +- [X] get_...
EC2: create_fleet() now correctly handles Overrides with a single value Fixes #8311
moto/core/responses.py `_get_multi_param` bug > Guidance on **how to reproduce the issue**. Ideally, this should be a *small* code sample that can be run immediately by the maintainers. Failing that, let us know what you're doing, how often it happens, what environment you're using, etc. Be thorough...
getmoto/moto
diff --git a/tests/test_ec2/test_fleets.py b/tests/test_ec2/test_fleets.py index e2db4ceba..a8080ce80 100644 --- a/tests/test_ec2/test_fleets.py +++ b/tests/test_ec2/test_fleets.py @@ -328,6 +328,35 @@ def test_create_fleet_request_with_tags(): assert tag in instance["Tags"] +@mock_aws +@pytest.mark.pa...
[ "tests/test_ec2/test_fleets.py::test_create_fleet_using_launch_template_config__overrides_single[overrides0]", "tests/test_ec2/test_fleets.py::test_create_fleet_using_launch_template_config__overrides_single[overrides1]", "tests/test_iot/test_iot_indexing_configuration.py::test_validate_default_indexing_configu...
[ "tests/test_ec2/test_fleets.py::test_launch_template_is_created_properly", "tests/test_ec2/test_fleets.py::test_create_spot_fleet_with_lowest_price", "tests/test_ec2/test_fleets.py::test_create_on_demand_fleet", "tests/test_ec2/test_fleets.py::test_create_diversified_spot_fleet", "tests/test_ec2/test_fleets...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/getmoto/moto/blob/1b91aee1de3d26902...
0c0a7708b65d2266d25f7bd580ce468fdf90753a
2021-06-17 18:30:19
docker.io/swerebenchv2/scoutapp-scout-apm-python:656-0c0a770
scoutapp__scout_apm_python-656
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 84e1880..6eb1893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## Pending +- Improved debug logging for requests. It now includes some summary + information about the request. + ([Issue #654](https://github.com/scoutapp/scout_apm_python/iss...
Improved debug logging for requests. It now contains summary information for the request that is logged after the request has been sent. Closes #654
Improve debug level logging We currently don't capture a lot of useful information when logging is set to debug. This can make identifying support issues tough The configuration that we collect at the top of the log is very useful, but once we get to actually recording the requests, we don't have much visibility. As...
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_tracked_request.py b/tests/unit/core/test_tracked_request.py index fcb9062..c3848a2 100644 --- a/tests/unit/core/test_tracked_request.py +++ b/tests/unit/core/test_tracked_request.py @@ -185,6 +185,37 @@ def test_finish_does_captures_memory_on_real_requests(tracked_request): asser...
[ "tests/unit/core/test_tracked_request.py::test_finish_log_request_info" ]
[ "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": "easy", "external_urls": [ "https://s3-us-west-1.amazonaws.com/scout-public-download...
bb3262e2fa88264dbc8b4d9f497dddd87adee0f2
2024-08-27 08:02:30
docker.io/swerebenchv2/sdv-dev-rdt:875-bb3262e
sdv-dev__rdt-875
Method: FloatFormatter._set_fitted_parameters(self, column_name, null_transformer, rounding_digits, dtype) Location: rdt/transformers/numerical.py Inputs: - column_name (str): name of the column being fitted. - null_transformer (NullTransformer): transformer responsible for handling missing values. - rounding_digi...
python
custom-check-github
diff --git a/rdt/transformers/numerical.py b/rdt/transformers/numerical.py index 64a5967..1425670 100644 --- a/rdt/transformers/numerical.py +++ b/rdt/transformers/numerical.py @@ -236,8 +236,9 @@ class FloatFormatter(BaseTransformer): self._min_value = min(min_max_values) self._max_value = ma...
FloatFormatter does not round the data correctly for integer columns when using _set_fitted_parameters CU-86b1w6d98 Resolve #874
FloatFormatter does not round the data correctly for integer columns when using _set_fitted_parameters ### Environment Details * RDT version: 1.12.3 ### Error Description We can't currently set the `rounding_digits` attribute of the `FloatFormatter` to 0 with `_set_fitted_parameters`. It seems to be because of...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_numerical.py b/tests/integration/transformers/test_numerical.py index 056cb94..93a78ab 100644 --- a/tests/integration/transformers/test_numerical.py +++ b/tests/integration/transformers/test_numerical.py @@ -287,6 +287,26 @@ class TestFloatFormatter: rev...
[ "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test__set_fitted_parameter_rounding_to_integer", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__set_fitted_parameters" ]
[ "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_missing_value_generation_from_column", "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_int", "tests/integration/transformers/test_numerical.py::TestFloatFormatter::test_int_nan_default_missing_value_generatio...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/sdv-dev/RDT/blob/bb3262e2fa88264dbc8b...
26c59a9268292aa90bbdd3389ef7bfbc4b7efa7b
2020-08-29 13:25:42
docker.io/swerebenchv2/ericmjl-pyjanitor:728-26c59a9
ericmjl__pyjanitor-728
Method: DataFrame.sort_timestamps_monotonically(self, direction="increasing", strict=False) Location: janitor.timeseries Inputs: direction (str) – either `"increasing"` or `"decreasing"`; strict (bool) – when True, duplicate timestamps are removed (first occurrence kept). The `self` DataFrame must have a `pd.DateTimeIn...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4b64fc2..f301a9f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,6 @@ new version (on deck) ===================== - +- [ENH] Added function ``sort_timestamps_monotonically`` to timeseries functions @UGuntupalli v0.20.9 ======= diff --git a/janitor/timeser...
[ENH] Add sort_timestamps_monotonically # PR Description This PR adds back the `sort_timestamps_monotonically` functionality from PR #720. In that PR, the source branch was removed, so to salvage the PR, I manually added back the functions in this PR. To fix the failing tests on #720, I also reverted the `pd.asse...
Add the ability to test and sort timestamps to be monotonic in a pandas data frame # Brief Description Following up on #703, this issue seeks to introduce the ability to sort the timestamps in a pandas data frame monotonically I would like to propose... # Example API ```python def _test_for_monotonicity( ...
ericmjl/pyjanitor
diff --git a/tests/timeseries/test_sort_timestamps_monotonically.py b/tests/timeseries/test_sort_timestamps_monotonically.py new file mode 100644 index 0000000..813fffa --- /dev/null +++ b/tests/timeseries/test_sort_timestamps_monotonically.py @@ -0,0 +1,52 @@ +import pytest +import pandas as pd +from random import ran...
[ "tests/timeseries/test_sort_timestamps_monotonically.py::test_sort_timestamps_monotonically", "tests/timeseries/test_sort_timestamps_monotonically.py::test_sort_timestamps_monotonically_decreasing" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "partial", "pr_categories": ...
e5df8dc8af87970b9ff792681998244b8314d2da
2020-10-28 18:46:25
docker.io/swerebenchv2/enthought-envisage:354-e5df8dc
enthought__envisage-354
Method: ExtensionPoint.connect_extension_point_traits(obj) Location: envisage/extension_point.py – class method of ``ExtensionPoint``. Inputs: - **obj** (HasTraits instance): object whose ExtensionPoint traits should be connected to the global ``ExtensionPoint`` listeners and have their internal cache initialised. Out...
python
custom-check-github
diff --git a/envisage/extension_point.py b/envisage/extension_point.py index 4391e576..835edb8c 100644 --- a/envisage/extension_point.py +++ b/envisage/extension_point.py @@ -11,11 +11,14 @@ # Standard library imports. +from functools import wraps import inspect +import warnings import weakref # Enthought lib...
Support observe("name:items") for ExtensionPoint [Requires Traits 6.1] Closes #291 This PR allows `on_trait_change("name_items")` to be migrated to `observe("name:items")` where the `name` is defined as an `ExtensionPoint` trait. After considering all the constraints and alternative approach (see #291), I have co...
Support for observe in ExtensionPoint Traits 6.1 introduces a new trait notification/observation framework: `observe`. The mini-language for this framework has changed for observing mutations in a container such as a list. Currently `ExtensionPoint` emits property change event using a trait named _name_ and _name_it...
enthought/envisage
diff --git a/envisage/tests/test_extension_point.py b/envisage/tests/test_extension_point.py index b1c6257e..82b969a6 100644 --- a/envisage/tests/test_extension_point.py +++ b/envisage/tests/test_extension_point.py @@ -10,12 +10,16 @@ """ Tests for extension points. """ # Standard library imports. +import pickle i...
[ "envisage/tests/test_extension_point.py::ExtensionPointTestCase::test_mutate_extension_point_no_effect", "envisage/tests/test_extension_point.py::ExtensionPointTestCase::test_set_typed_extension_point_emit_change", "envisage/tests/test_extension_point_changed.py::ExtensionPointChangedTestCase::test_add_plugin_w...
[ "envisage/tests/test_extension_point.py::ExtensionPointTestCase::test_extension_point_changed", "envisage/tests/test_extension_point.py::ExtensionPointTestCase::test_extension_point_str_representation", "envisage/tests/test_extension_point.py::ExtensionPointTestCase::test_extension_point_with_no_id", "envisag...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [ ...
dae4f4947e8d092c87246befc8c2694afc096b7e
2023-02-24 23:02:39
docker.io/swerebenchv2/getmoto-moto:5980-dae4f49
getmoto__moto-5980
Method: GlueClient.get_jobs(self, MaxResults=None, NextToken=None) Location: moto.glue.responses.GlueResponse.get_jobs (exposed through the boto3 Glue client) Inputs: - MaxResults (optional, int): maximum number of jobs to return in this call; enables pagination. - NextToken (optional, str): pagination token returned f...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index c602ce7b1..7bd4458ab 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -2391,7 +2391,7 @@ ## ecs <details> -<summary>80% implemented</summary> +<summary>78% implemented</summary> - [X] create_capacity_provider -...
EC2: describe_instances() should be able to filter by exact tag-values Fixes #5966 When checking if tags match, we put a lot of effort into ensuring that we support regexes - but we should also support specific tags that look like a regex, but are actually an exact match
describe_instances fails to find instances when filtering by tag value contains square brackets (json encoded) ## Problem Using boto3 ```describe_instances``` with filtering by tag key/value where the value cotnains a json encoded string (containing square brackets), the returned instances list is empty. This works wi...
getmoto/moto
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py index 0c670c80b..491baa9e7 100644 --- a/tests/test_ec2/test_instances.py +++ b/tests/test_ec2/test_instances.py @@ -1,5 +1,6 @@ import base64 import ipaddress +import json import warnings from unittest import SkipTest, mock from uuid ...
[ "tests/test_ec2/test_instances.py::test_get_instances_filtering_by_tag", "tests/test_glue/test_glue.py::test_get_jobs_job_name_exists", "tests/test_glue/test_glue.py::test_get_jobs_with_max_results", "tests/test_glue/test_glue.py::test_get_jobs_from_next_token", "tests/test_glue/test_glue.py::test_get_jobs_...
[ "tests/test_ec2/test_instances.py::test_add_servers", "tests/test_ec2/test_instances.py::test_instance_launch_and_terminate", "tests/test_ec2/test_instances.py::test_instance_terminate_discard_volumes", "tests/test_ec2/test_instances.py::test_instance_terminate_keep_volumes_explicit", "tests/test_ec2/test_i...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
14c2fa92302084e4850e5323ed56721e43fbbdb9
2021-03-24 18:08:37
docker.io/swerebenchv2/python-markdown-markdown:1121-14c2fa9
python-markdown__markdown-1121
Method: TocExtension.__init__(self, permalink=False, permalink_title='Permanent link', slugify=None, **kwargs) Location: markdown.extensions.toc Inputs: - **permalink** (bool, optional): Enable generation of anchor links for headings when True. - **permalink_title** (str, optional): Text for the title attribute of t...
python
BSD-3-Clause
diff --git a/docs/change_log/index.md b/docs/change_log/index.md index d7487a3..aed19e3 100644 --- a/docs/change_log/index.md +++ b/docs/change_log/index.md @@ -3,6 +3,10 @@ title: Change Log Python-Markdown Change Log ========================= +Under development: version 3.3.5 (a bug-fix release). + +* Make the `s...
toc: Do not remove diacritical marks when `slugify_unicode` is used Update the existing test and add a new one to make sure that the behavior of default `slugify` function has not changed. Fixes #1118.
TOC:Anchor link written in Japanese does not work I'm using the extension TOC with slugify_unicode for Japanese. And I'm using anchor links. In some cases, Japanese anchor link does not work. That is when Japanese characters contains dakuon(for example 'ba') or handakuon(for example 'pa'). I think this i...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_toc.py b/tests/test_syntax/extensions/test_toc.py index 04893e3..83c990f 100644 --- a/tests/test_syntax/extensions/test_toc.py +++ b/tests/test_syntax/extensions/test_toc.py @@ -534,9 +534,9 @@ class TestTOC(TestCase): from markdown.extensions.toc import slugify_u...
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testPermalinkWithUnicodeInID", "tests/test_syntax/extensions/test_toc.py::TestTOC::testPermalinkWithUnicodeTitle" ]
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLink", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClass", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClasses", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithD...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://towardsdatascience.com/difference-between-nfd-nf...
927e069db8a2d2545c2ac30c0c1e5e0840d15e69
2025-02-18 15:31:06
docker.io/swerebenchv2/airtai-faststream:2073-927e069
airtai__faststream-2073
Method: AsgiFastStream.__init__(self, broker: Broker, *, asgi_routes: Sequence[Tuple[str, Callable]] = (), **kwargs) Location: faststream/asgi/app.py (class AsgiFastStream, subclass of FastStream) Inputs: - **broker**: instance of a FastStream broker (e.g., RabbitBroker, KafkaBroker). Required; previously the class cou...
python
Apache-2.0
diff --git a/faststream/_internal/application.py b/faststream/_internal/application.py index ff2e39fa..1074c44c 100644 --- a/faststream/_internal/application.py +++ b/faststream/_internal/application.py @@ -197,6 +197,7 @@ class Application(ABC, AsyncAPIApplication): ) -> None: self._log(log_level, "FastS...
feat: allow broker setting in on_startup hook # Description I've managed to achieve the expected behaviour mentioned in the issue #1884. ## Examples Now it is possible to set broker in on_startup hook ```python from faststream import FastStream from faststream.kafka import KafkaBroker app = FastStrea...
Feature: Allow broker creation in on_startup hook For some reason, I need to delay the creation of an app's broker in an `on_startup` hook. This is mainly because my application has a pretty heavy warmup bootstrap that loads a lot of data into memory so I need to delay this bootstrap (which actually includes broker cre...
airtai/faststream
diff --git a/tests/asgi/testcase.py b/tests/asgi/testcase.py index fccfedb7..0407e9d7 100644 --- a/tests/asgi/testcase.py +++ b/tests/asgi/testcase.py @@ -1,4 +1,5 @@ from typing import Any +from unittest.mock import AsyncMock import pytest from starlette.testclient import TestClient @@ -14,33 +15,45 @@ class Asgi...
[ "tests/cli/rabbit/test_app.py::test_startup_fails_if_no_broker_was_provided" ]
[ "tests/cli/rabbit/test_app.py::test_init", "tests/cli/rabbit/test_app.py::test_init_without_broker", "tests/cli/rabbit/test_app.py::test_init_without_logger", "tests/cli/rabbit/test_app.py::test_set_broker", "tests/cli/rabbit/test_app.py::test_set_broker_in_on_startup_hook", "tests/cli/rabbit/test_app.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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/airtai/faststream/blob/9b7c33e87654...
10611b5fc36e68f33765a07b7690fbfbdb1fea84
2021-06-22 14:00:52
docker.io/swerebenchv2/pallets-click:1970-10611b5
pallets__click-1970
Method: Option.__init__(self, param_decls: Optional[Sequence[str]] = None, show_default: Union[bool, str] = False, prompt: Union[bool, str] = False, confirmation_prompt: Union[bool, str] = False, prompt_required: bool = True, **kwargs) Location: src/click/core.py Inputs: - **param_decls** – optional sequence of option...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 4a75360..8f978ff 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,8 @@ Unreleased - ``is_bool_flag`` is not set to ``True`` if ``is_flag`` is ``False``. :issue:`1925` - Bash version detection is locale independent. :issue:`1940` +- Empty ``default`` value i...
Empty default value in help output This PR solves the problem with printing empty default values in `--help` output when `@click.option` has `multiple=True` set. - fixes #1969 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or upd...
Empty default value in --help output for option with multiple=True ## Minimal reproducible example that demonstrates the bug ```python #!/usr/bin/env python3 import click @click.command() @click.option('--multioption', multiple=True, default=None, help='My help', show_default=True) def info(_multioption): ...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index bddd194..53179e8 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -728,6 +728,16 @@ def test_do_not_show_no_default(runner): assert "[default: None]" not in message +def test_do_not_show_default_empty_multiple(): + """When sho...
[ "tests/test_options.py::test_do_not_show_default_empty_multiple" ]
[ "tests/test_options.py::test_prefixes", "tests/test_options.py::test_invalid_option", "tests/test_options.py::test_invalid_nargs", "tests/test_options.py::test_nargs_tup_composite_mult", "tests/test_options.py::test_counting", "tests/test_options.py::test_unknown_options[--foo]", "tests/test_options.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
f5fec1231f5c6212fc5c5faf7e42780da721fdd9
2018-09-05 06:08:49
docker.io/swerebenchv2/keon-algorithms:402-f5fec12
keon__algorithms-402
No new interfaces are introduced.
python
MIT
diff --git a/algorithms/search/search_rotate.py b/algorithms/search/search_rotate.py index ade0270..a92a15e 100644 --- a/algorithms/search/search_rotate.py +++ b/algorithms/search/search_rotate.py @@ -37,9 +37,6 @@ There are 2 possible solution: iterative and recursion. Recursion helps you understand better the above ...
Update is_sorted.py Changes made- 1) The first 2 return statements have been changed to break statements. This ensures that the code after the first for loop is executed. Previously it would never execute the latter part. 2) The second append statement should add elements to stack and not storage_stack. Try the test ...
Issue in the code of algorithms/algorithms/stack/is_sorted.py Some changes need to be made in the code. 1)The first 2 return statements have to be changed to break statements. This ensures that the code after the first for loop is executed. Previously it would never execute the latter part. 2)The second append stat...
keon/algorithms
diff --git a/tests/test_stack.py b/tests/test_stack.py index d04b27f..78822bc 100644 --- a/tests/test_stack.py +++ b/tests/test_stack.py @@ -25,6 +25,7 @@ class TestSuite(unittest.TestCase): # Test case: bottom [6, 3, 5, 1, 2, 4] top self.assertFalse(is_sorted([6, 3, 5, 1, 2, 4])) self.assert...
[ "tests/test_stack.py::TestSuite::test_is_sorted" ]
[ "tests/test_stack.py::TestSuite::test_is_consecutive", "tests/test_stack.py::TestSuite::test_is_valid_parenthesis", "tests/test_stack.py::TestSuite::test_remove_min", "tests/test_stack.py::TestSuite::test_simplify_path", "tests/test_stack.py::TestSuite::test_stutter", "tests/test_stack.py::TestSuite::test...
{ "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": [...
4ae3207bd02550b2467e0751723f925c44586511
2020-10-01 17:58:07
docker.io/swerebenchv2/alteryx-evalml:1252-4ae3207
alteryx__evalml-1252
Function: graph_prediction_vs_actual(y_true, y_pred, outlier_threshold=None) Location: evalml/model_understanding/graphs.py Inputs: - **y_true** (array‑like or pd.Series): true target values for a regression problem. - **y_pred** (array‑like or pd.Series): predicted values produced by a regression model. - **outlier_th...
python
BSD-3-Clause
diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index ba1af6d6..1b811832 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -247,6 +247,7 @@ Graph Utils graph_permutation_importance binary_objective_vs_threshold graph_binary_objective_vs_threshold...
Add Plot for Prediction vs Actual for Regression Problems fix #772 Added `outlier_threshold` for simple outlier detection Updated Model_Understanding doc [here](https://evalml.alteryx.com/en/bc_772_plot/user_guide/model_understanding.html#Predicted-Vs-Actual-Values-Graph-for-Regression-Problems) Regular docum...
Add predicted vs actual plot (regression) It would be helpful to add a predicted vs actual plot util method for regression pipelines. Options: * Simplest: scatter plot. This is where we should start * Bin along each axis to produce a 2d heatmap * In the future, this can be extended to order by datetime for timese...
alteryx/evalml
diff --git a/evalml/tests/model_understanding_tests/test_graphs.py b/evalml/tests/model_understanding_tests/test_graphs.py index 291af8e1..3e21440d 100644 --- a/evalml/tests/model_understanding_tests/test_graphs.py +++ b/evalml/tests/model_understanding_tests/test_graphs.py @@ -19,6 +19,7 @@ from evalml.model_understan...
[ "evalml/tests/model_understanding_tests/test_graphs.py::test_normalize_confusion_matrix_error", "evalml/tests/model_understanding_tests/test_graphs.py::test_precision_recall_curve_return_type", "evalml/tests/model_understanding_tests/test_graphs.py::test_graph_precision_recall_curve_title_addition", "evalml/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.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": [...
bac3222c1dd51741887a2187ef0be10e8902c5af
2018-10-14 16:38:32
docker.io/swerebenchv2/keon-algorithms:432-bac3222
keon__algorithms-432
Method: RandomListNode.__init__(self, label) Location: algorithms.linkedlist.copy_random_pointer Inputs: label – the identifier/value for the node (typically an int) Outputs: None (initializes instance fields: .label = label, .next = None, .random = None) Description: Constructs a node used in a linked list with a rand...
python
MIT
diff --git a/algorithms/arrays/plus_one.py b/algorithms/arrays/plus_one.py index f63aafa..473b6c7 100644 --- a/algorithms/arrays/plus_one.py +++ b/algorithms/arrays/plus_one.py @@ -42,7 +42,7 @@ def plus_one_v2(digits): def plus_one_v3(num_arr): for idx in reversed(list(enumerate(num_arr))): - num_arr[id...
Fix array plus one v3 (Put an `X` inside the `[ ]` to denote check mark `[X]`.) - [ ] **If creating a new file :** - [ ] added links to it in the README files ? - [ ] included tests with it ? - [ ] added description (overview of algorithm, time and space compleixty, and possible edge case) in docstrings...
Test fail. arrays/plus_one makes tests fail The function plus_one_v3() tries to access the index as if it was an actual index (number) but since it's being used in a for loop with an enumerate, it is actually a tuple of (idx,value) for all the items in the list I discovered this while making a PR for another issue s...
keon/algorithms
diff --git a/tests/test_linkedlist.py b/tests/test_linkedlist.py index 435ac72..6b7f1f4 100644 --- a/tests/test_linkedlist.py +++ b/tests/test_linkedlist.py @@ -1,3 +1,5 @@ +import unittest + from algorithms.linkedlist import ( reverse_list, reverse_list_recursive, is_sorted, @@ -6,16 +8,17 @@ from algorithm...
[ "tests/test_linkedlist.py::TestSuite::test_is_cyclic", "tests/test_linkedlist.py::TestSuite::test_is_palindrome", "tests/test_linkedlist.py::TestSuite::test_is_palindrome_dict", "tests/test_linkedlist.py::TestSuite::test_is_palindrome_stack", "tests/test_linkedlist.py::TestSuite::test_is_sorted", "tests/t...
[]
{ "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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
da17941f75f0703e378fa591ce6a48ac44516668
2025-05-05 20:52:10
docker.io/swerebenchv2/meltano-sdk:3019-da17941
meltano__sdk-3019
No new interfaces are introduced.
python
Apache-2.0
diff --git a/singer_sdk/singerlib/json.py b/singer_sdk/singerlib/json.py index 1c9855e3..2a4e60f5 100644 --- a/singer_sdk/singerlib/json.py +++ b/singer_sdk/singerlib/json.py @@ -59,5 +59,6 @@ def serialize_json(obj: object, **kwargs: t.Any) -> str: use_decimal=True, default=_default_encoding, ...
fix: Encode `nan`, `inf` and `-inf` values as `null` in Singer stream Changes the behavior of JSON serialization for Singer output to convert `nan`, `inf` and `-inf` values to `null` in compliance with the ECMA-262 specification. ## Implementation details - `simplejson` supports this with the `ignore_nan=True`[^1...
bug: ValueError: Out of range float values are not JSON compliant ### Singer SDK Version 0.34.1 ### Is this a regression? - [ ] Yes ### Python Version 3.9 ### Bug scope Taps (catalog, state, etc.) ### Operating System MacOS ### Description I get `ValueError: Out of range float values are not JSON compliant` ...
meltano/sdk
diff --git a/tests/singerlib/encoding/test_simple.py b/tests/singerlib/encoding/test_simple.py index 7ce7f5bd..098c7276 100644 --- a/tests/singerlib/encoding/test_simple.py +++ b/tests/singerlib/encoding/test_simple.py @@ -104,3 +104,18 @@ def test_write_message(): assert out.getvalue() == ( '{"type":"REC...
[ "tests/singerlib/encoding/test_simple.py::test_encode_nan_values[nan]", "tests/singerlib/encoding/test_simple.py::test_encode_nan_values[inf]", "tests/singerlib/encoding/test_simple.py::test_encode_nan_values[-inf]" ]
[ "tests/singerlib/encoding/test_simple.py::test_deserialize[unparsable]", "tests/singerlib/encoding/test_simple.py::test_deserialize[record]", "tests/singerlib/encoding/test_simple.py::test_process_lines", "tests/singerlib/encoding/test_simple.py::test_process_unknown_message", "tests/singerlib/encoding/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
e639db11eb827066651e1af056845f24a37bec30
2022-12-21 08:35:07
docker.io/swerebenchv2/sanic-org-sanic-ext:163-e639db1
sanic-org__sanic-ext-163
Method: Sanic.add_route(self, handler, uri, methods=None, strict_slashes=True, host=None, unquote=None) Location: sanic_ext/extensions/http/methods.py (indirectly via add_auto_handlers) – the signature now forwards the `unquote` argument to Sanic's route registration. Inputs: - **handler** (`Callable`): the async view...
python
MIT
diff --git a/sanic_ext/extensions/http/methods.py b/sanic_ext/extensions/http/methods.py index 756411d..176167d 100644 --- a/sanic_ext/extensions/http/methods.py +++ b/sanic_ext/extensions/http/methods.py @@ -92,6 +92,7 @@ def add_auto_handlers( strict_slashes=group.strict, ...
Pass unquote thru add_route Closes #148 Requires https://github.com/sanic-org/sanic/pull/2639
[Bug] Sanic-ext breaks @app.route(unquote=True) **Describe the bug** Sanic v21.3 adds [the `unquote` arg in `@app.route`](https://sanic.dev/en/guide/release-notes/v21.3.html#unquote-in-route) to url-decode parameters in routes. But when sanic-ext is loaded, parameters will not be decoded even `unquote` is set. **Sc...
sanic-org/sanic-ext
diff --git a/tests/extensions/http/test_methods.py b/tests/extensions/http/test_methods.py index faf27d0..7d8e207 100644 --- a/tests/extensions/http/test_methods.py +++ b/tests/extensions/http/test_methods.py @@ -1,3 +1,4 @@ +import pytest from sanic import Sanic from sanic.response import empty, text @@ -85,3 +86,...
[ "tests/extensions/http/test_methods.py::test_unquote_add_route[True]" ]
[ "tests/extensions/http/test_methods.py::test_trace_and_connect_available", "tests/extensions/http/test_methods.py::test_auto_head", "tests/extensions/http/test_methods.py::test_auto_options", "tests/extensions/http/test_methods.py::test_auto_trace", "tests/extensions/http/test_methods.py::test_unquote_add_r...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://sanic.dev/en/guide/release-notes/v21.3.html#unqu...
a6f1185b5c865fe253a07d39f6ec76b310bbf36c
2024-09-28 15:24:14
docker.io/swerebenchv2/callowayproject-bump-my-version:239-a6f1185
callowayproject__bump-my-version-239
Class: HookError Location: bumpversion.exceptions Inputs: None (instantiated without arguments) Outputs: Exception instance indicating that a hook script failed; subclass of BumpVersionError. Description: Raised by `run_hooks` when a hook command returns a non‑zero exit code, allowing callers (e.g., tests) to catch and...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1b1f5a2..cb99927c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.6.7' + rev: 'v0.6.8' hooks: - id: r...
Fail when hooks fail When a setup, pre-commit, or post-commit hook returns a non-zero response, an error is raised. The stdout and stderr are logged as warnings to the console. Fixes #236
bump-my-version does not fail if script hooks fail * bump-my-version version: 0.26.1 * Python version: 3.12.3 * Operating System: Ubuntu 22.04 ### Description When a command in a pre or post commit hook fails, I expect the bump to fail as well, but this does not happen. This is because the errors on `subproc...
callowayproject/bump-my-version
diff --git a/tests/test_hooks/test_run_hooks.py b/tests/test_hooks/test_run_hooks.py index f7538924..c75ae580 100644 --- a/tests/test_hooks/test_run_hooks.py +++ b/tests/test_hooks/test_run_hooks.py @@ -1,6 +1,9 @@ """Tests for the run_hooks function.""" from bumpversion import hooks +import pytest + +from bumpvers...
[ "tests/test_hooks/test_run_hooks.py::test_calls_each_hook", "tests/test_hooks/test_run_hooks.py::test_raises_exception_if_hook_fails", "tests/test_hooks/test_run_hooks.py::test_does_not_call_each_hook_when_dry_run" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://github.com/callowayproject/bump-my-version/blo...
08e945b5bf1cc110e4200cf45a391c7b284da6ef
2024-08-01 18:48:03
docker.io/swerebenchv2/aristanetworks-anta:773-08e945b
aristanetworks__anta-773
Method: VerifyBFDPeersRegProtocols.test(self) Location: class VerifyBFDPeersRegProtocols in anta/tests/bfd.py Inputs: None (operates on `self.inputs` which is an instance of `VerifyBFDPeersRegProtocols.Input` containing a list of `BFDPeer` models with fields `peer_address: IPv4Address`, `vrf: str`, `protocols: list[Bfd...
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 56c21397..153fd701 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -198,3 +198,4 @@ BgpDropStats = Literal[ "prefixRtMembershipDroppedMaxRouteLimitViolated", ] BgpUpdateError = Literal["inUpdErrWithdraw", "inUpdErrIgnore", "inUpdErrDi...
feat(anta): Added test case to verify registered protocol for IPv4 BFD peers # Description All neighbor IPs where PEER_GROUP has BFD_ENABLED=true should be displayed with respective registered protocol(i.e ISIS or BGP etc) **Note: Added revision fix in VerifyBFDPeersIntervals, VerifyBFDSpecificPeers revision 1 as...
Add the test case to verify the BFD status, registered protocol. Pass/Fail Criteria All neighbor IPs where PEER_GROUP has BFD_ENABLED=true should be displayed with respective registered protocol(i.e ISIS or BGP)
aristanetworks/anta
diff --git a/anta/tests/bfd.py b/anta/tests/bfd.py index f19e9cc9..0b171a6d 100644 --- a/anta/tests/bfd.py +++ b/anta/tests/bfd.py @@ -13,7 +13,7 @@ from typing import TYPE_CHECKING, Any, ClassVar from pydantic import BaseModel, Field -from anta.custom_types import BfdInterval, BfdMultiplier +from anta.custom_type...
[ "tests/units/anta_tests/test_bfd.py::test[<property" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0eb6653595cf7ce762070b99e2788482d9386c27
2023-12-11 16:28:26
docker.io/swerebenchv2/ecmwf-earthkit-data:272-0eb6653
ecmwf__earthkit-data-272
No new interfaces are introduced.
python
Apache-2.0
diff --git a/earthkit/data/readers/grib/output.py b/earthkit/data/readers/grib/output.py index 92ae513..11bcec7 100644 --- a/earthkit/data/readers/grib/output.py +++ b/earthkit/data/readers/grib/output.py @@ -197,6 +197,18 @@ class GribOutput: except ValueError: metadata["shortName"] = par...
Fix setting grib levtype test fixes #271
Test test_grib_output_pl fails ### What happened? This test fails with `gribapi.errors.ReadOnlyError: Value is read only` when trying to set `levtype=pl` on a GRIB message. This happens because since ecCodes 2.33.0 `levtype` is a readonly key. ### What are the steps to reproduce the bug? See above ### Versi...
ecmwf/earthkit-data
diff --git a/tests/grib/test_grib_output.py b/tests/grib/test_grib_output.py index 1eba7fc..56b9617 100644 --- a/tests/grib/test_grib_output.py +++ b/tests/grib/test_grib_output.py @@ -138,14 +138,17 @@ def test_grib_output_mars_labeling(): sys.version_info < (3, 10), reason="ignore_cleanup_errors requires Py...
[ "tests/grib/test_grib_output.py::test_grib_output_pl[levtype0]", "tests/grib/test_grib_output.py::test_grib_output_pl[levtype1]" ]
[ "tests/grib/test_grib_output.py::test_grib_save_when_loaded_from_file", "tests/grib/test_grib_output.py::test_grib_output_latlon", "tests/grib/test_grib_output.py::test_grib_output_o96", "tests/grib/test_grib_output.py::test_grib_output_o160", "tests/grib/test_grib_output.py::test_grib_output_mars_labeling"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
4e47da4c14e7ebc584f4e430bfaf6b81c57d4456
2022-08-02 03:40:55
docker.io/swerebenchv2/wntrblm-nox:641-4e47da4
wntrblm__nox-641
Method: SessionRunner.execute(self) Location: nox.sessions.SessionRunner Inputs: None (uses the runner's internal `func` and `venv` attributes) Outputs: nox.sessions.Result – a result object indicating success or failure; during execution the session’s environment is automatically populated with the key `"NOX_CUR...
python
Apache-2.0
diff --git a/nox/sessions.py b/nox/sessions.py index d017dc8..4a66229 100644 --- a/nox/sessions.py +++ b/nox/sessions.py @@ -724,6 +724,7 @@ class SessionRunner: with cwd: self._create_venv() session = Session(self) + session.env["NOX_CURRENT_SESSION"] = ses...
Export session name in envvar NOX_CURRENT_SESSION Closes #636. The environment variable `NOX_CURRENT_SESSION` is populated with the name of the current session in all subcommands of that session. There were a couple places to place this small bit of code. Each location caused some problems with the existing tests. ...
Set environment variable when running commands ### How would this feature be useful? Setting an environment variable in the environment of `session.run`'d commands would allow the child process to know it is being executed by nox and perhaps even what session of nox is being. Personally, I would find this useful when ...
wntrblm/nox
diff --git a/tests/test_sessions.py b/tests/test_sessions.py index f753595..5f1422f 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -900,6 +900,8 @@ class TestSessionRunner: def make_runner_with_mock_venv(self): runner = self.make_runner() runner._create_venv = mock.Mock() + ...
[ "tests/test_sessions.py::TestSessionRunner::test_execute_check_env" ]
[ "tests/test_sessions.py::test__normalize_path", "tests/test_sessions.py::test__normalize_path_hash", "tests/test_sessions.py::test__normalize_path_give_up", "tests/test_sessions.py::TestSession::test_create_tmp", "tests/test_sessions.py::TestSession::test_create_tmp_twice", "tests/test_sessions.py::TestSe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": [...
9d76837d6816edd3565deb14c999641104bfd576
2024-02-20 09:59:24
docker.io/swerebenchv2/stfc-psyclone:2508-9d76837
stfc__psyclone-2508
Method: SymbolTable.check_for_clashes(self, other_table, symbols_to_skip=()) Location: src/psyclone/psyir/symbols/symbol_table.py Inputs: - other_table: SymbolTable – the table whose symbols are to be compared against the current one. - symbols_to_skip (optional): Iterable[Symbol] – symbols that must be ignored dur...
python
BSD-3-Clause
diff --git a/changelog b/changelog index 5112b5491..8d9a9478e 100644 --- a/changelog +++ b/changelog @@ -11,6 +11,9 @@ 5) PR #2506. Update test and integration test dependencies. + 6) PR #2508 for #2507. Add a symbols_to_ignore argument to some + symbol_table operations and use it to fix inline transformation iss...
(Closes #2507) extend InlineTrans to ignore clash between formal arguments
InlineTrans should ignore formal arguments when checking for symbol clashes As reported by Hugo, the following code: def test_apply_argument_clash(fortran_reader, fortran_writer): ''' Check that the dummy arguments to the inlined routine are not included when checking for clashes (sin...
stfc/PSyclone
diff --git a/src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py b/src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py index f9e2ff60a..d60ef3a31 100644 --- a/src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py +++ b/src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py @@ -52,7 +52,6 @@ from psyclone.psyGen impo...
[ "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_check_for_clashes_cannot_rename", "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_table_merge", "src/psyclone/tests/psyir/transformations/inline_trans_test.py::test_symbols_to_skip", "src/psyclone/tests/psyir/transformations/inline_tran...
[ "src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py::test_lfricdofmap_stubdecln_err", "src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py::test_cma_asm_cbanded_dofmap_error", "src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py::test_cma_apply_indirection_dofmap_error", "src/psyclone/tests/domain/lfri...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
6505971ecb0dda833b9828ba71522f2805655674
2024-02-23 20:49:34
docker.io/swerebenchv2/getmoto-moto:7385-6505971
getmoto__moto-7385
Method: CostExplorerBackend.get_cost_and_usage(self, body: str) -> Dict[str, Any> Location: moto/ce/models.py Inputs: - `self`: the CostExplorerBackend instance (region & account context). - `body`: the raw JSON request body (as a string) received from the Cost Explorer API call, used as a key to retrieve queued res...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index a54cb2956..c51d2e8d7 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -735,7 +735,7 @@ ## ce <details> -<summary>18% implemented</summary> +<summary>21% implemented</summary> - [ ] create_anomaly_monitor - [ ] ...
CostExplorer - get_cost_and_usage() Fixes #5596
Plans on Cost Explorer's get_cost_and_usage Hello! I am aware Cost Explorer is available now in moto, but only for [certain features](http://docs.getmoto.org/en/latest/docs/services/ce.html?highlight=cost%20explorer#moto.ce.models.CostExplorerBackend). So, I have a quick question, are there any plans on mocking Cost E...
getmoto/moto
diff --git a/tests/test_ce/test_ce_cost_and_usage.py b/tests/test_ce/test_ce_cost_and_usage.py new file mode 100644 index 000000000..584d38134 --- /dev/null +++ b/tests/test_ce/test_ce_cost_and_usage.py @@ -0,0 +1,64 @@ +import boto3 +import requests + +from moto import mock_aws, settings + +# See our Development Tips ...
[ "tests/test_ce/test_ce_cost_and_usage.py::test_get_cost_and_usage", "tests/test_ce/test_ce_cost_and_usage.py::test_set_query_results" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [ "http://docs.getmoto.org/en/latest/docs/services/ce.htm...
c7b54856c5fd4182263133dc3e03827471ca981e
2021-02-10 10:17:54
docker.io/swerebenchv2/sabnzbd-sabnzbd:1794-c7b5485
sabnzbd__sabnzbd-1794
Function: get_resolution(job_name) Location: sabnzbd/sorting.py Inputs: job_name – a string (or any value) representing the original job name; None or non‑string values are tolerated and result in an empty string. Outputs: a lower‑cased resolution string such as "1080p", "720p", "240i", or an empty string if no resolut...
python
custom-check-github
diff --git a/interfaces/Config/templates/config_sorting.tmpl b/interfaces/Config/templates/config_sorting.tmpl index 2fdd0caa7..322a0a155 100644 --- a/interfaces/Config/templates/config_sorting.tmpl +++ b/interfaces/Config/templates/config_sorting.tmpl @@ -130,6 +130,11 @@ <td>%e_n<...
add resolution pattern key to sorting closes #1789
Movie Sorting - Please add resolution under Pattern key Here's my sort string. I want resolution (720p/1080p depending on the movie) in my folder name currently not available in the pattern key. %.title.%y/%.title.%y.%ext Example result. Movie.Name.2009.720p or 1080p\Movie.Name.2009 CD1.mkv
sabnzbd/sabnzbd
diff --git a/tests/test_sorting.py b/tests/test_sorting.py new file mode 100644 index 000000000..a5086c97f --- /dev/null +++ b/tests/test_sorting.py @@ -0,0 +1,46 @@ +#!/usr/bin/python3 -OO +# Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> +# +# This program is free software; you can redistribute it and/or +# ...
[ "tests/test_sorting.py::TestSorting::test_get_resolution[Ubuntu.optimized.for.1080p.Screens-Canonical-1080p]", "tests/test_sorting.py::TestSorting::test_get_resolution[Debian_for_240i_Scientific_Calculators-FTPMasters-240i]", "tests/test_sorting.py::TestSorting::test_get_resolution[OpenBSD", "tests/test_sorti...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
2eee8cbdb4637a5c5bf0fd77c93fdbc3d4ed1e59
2023-04-27 13:10:15
docker.io/swerebenchv2/alteryx-evalml:4161-2eee8cb
alteryx__evalml-4161
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 25797289..740496b4 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -3,6 +3,7 @@ Release Notes **Future Releases** * Enhancements * Fixes + * Fixed bug where resetting the holdout data ind...
Fix resetting y_holdout index for time series Closes #4159
Time Series estimators fail when y_holdout.index is reset Repro: ``` target = "#Passengers" time_index = "Month" data = pd.read_csv(f"~/Downloads/AirPassengers.csv") X = data.drop(target, axis=1) y = data[target] problem_configuration = { "max_delay": 52, "gap": 0, "forecast_horizon": 5, "t...
alteryx/evalml
diff --git a/evalml/tests/pipeline_tests/test_time_series_pipeline.py b/evalml/tests/pipeline_tests/test_time_series_pipeline.py index eb56488b..e3d7ce42 100644 --- a/evalml/tests/pipeline_tests/test_time_series_pipeline.py +++ b/evalml/tests/pipeline_tests/test_time_series_pipeline.py @@ -668,6 +668,69 @@ def test_pre...
[ "evalml/tests/pipeline_tests/test_time_series_pipeline.py::test_predict_in_sample_index_error" ]
[ "evalml/tests/pipeline_tests/test_time_series_pipeline.py::test_invalid_targets_time_series_classification_pipeline[ts_binary-1]", "evalml/tests/pipeline_tests/test_time_series_pipeline.py::test_invalid_targets_time_series_classification_pipeline[ts_binary-2]", "evalml/tests/pipeline_tests/test_time_series_pipe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://user-images.githubusercontent.com/60074782/234...
d456c2b5f509104dd97b74ce40c597531784e2ca
2024-08-20 14:32:03
docker.io/swerebenchv2/crossgl-crosstl:41-d456c2b
crossgl__crosstl-41
No new interfaces are introduced.
python
Apache-2.0
diff --git a/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py b/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py index 910eec2..e936097 100644 --- a/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py +++ b/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py @@ -157,9 +157,13 @@ class HLSLToCrossGLConverter: ...
Added else if support to Directx backend Grammar and AST update to support else if commands. Provides else if support using a recursive based approach, might break due to recursion limit, but highly unlikely. I had to place the else if token before else in the Regex parser, otherwise it would be considered as 2 s...
Add `else if` Conditional Statements to the DirectX backend To add `else if` support to CrossGL, modify the following files in the `crosstl/src/backend/DirectX` directory: - [ ] **DirectxLexer.py** : Add token recognition for `else if`. - [ ] **DirectxParser.py** : Update grammar and AST to handle `else if`. - [ ]...
CrossGL/crosstl
diff --git a/tests/test_backend/test_directx/test_codegen.py b/tests/test_backend/test_directx/test_codegen.py index c72432c..8e7e3a8 100644 --- a/tests/test_backend/test_directx/test_codegen.py +++ b/tests/test_backend/test_directx/test_codegen.py @@ -262,6 +262,59 @@ def test_function_call_codegen(): pytest....
[ "tests/test_backend/test_directx/test_codegen.py::test_else_if_codegen", "tests/test_backend/test_directx/test_parser.py::test_else_if_parsing" ]
[ "tests/test_backend/test_directx/test_codegen.py::test_struct_codegen", "tests/test_backend/test_directx/test_codegen.py::test_if_codegen", "tests/test_backend/test_directx/test_codegen.py::test_for_codegen", "tests/test_backend/test_directx/test_codegen.py::test_else_codegen", "tests/test_backend/test_dire...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.87, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://discord.com/invite/uyRQKXhcyW" ], "int...
08dcf993229894901e33b88ab9b8c0cf19c88415
2018-04-04 07:36:59
docker.io/swerebenchv2/takluyver-flit:169-08dcf99
takluyver__flit-169
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/.gitignore b/.gitignore index c2acbe3..d64b220 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__/ /tests/samples/dist/ /htmlcov/ /.coverage +/.pytest_cache diff --git a/.travis.yml b/.travis.yml index 8afc588..b43c127 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: ...
Official support for markdown and plain text descriptions Fixes #166. Until recently, PyPI only supported rst descriptions, falling back to plain text if the rst was invalid. Now a new metadata field `Description-Content-Type` lets us specify whether the description is rst, markdown or plain text. This new code uses...
Support publishing markdown descriptions to Warehouse PEP 566 is now implemented in Warehouse: https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi
takluyver/flit
diff --git a/tests/samples/bad-description-ext.toml b/tests/samples/bad-description-ext.toml new file mode 100644 index 0000000..1062829 --- /dev/null +++ b/tests/samples/bad-description-ext.toml @@ -0,0 +1,9 @@ +[build-system] +requires = ["flit"] + +[tool.flit.metadata] +module = "module1" +author = "Sir Robin" +auth...
[ "tests/test_inifile.py::test_description_file", "tests/test_inifile.py::test_bad_description_extension" ]
[ "tests/test_inifile.py::test_invalid_classifier", "tests/test_inifile.py::test_classifiers_with_space", "tests/test_inifile.py::test_requires_with_empty_lines[requires_with_empty_lines.ini-requires_dist-expected0]", "tests/test_inifile.py::test_requires_with_empty_lines[dev_requires_with_empty_lines.ini-dev_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": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://dustingram.com/articles/2018/03/16/markdown-de...
f9c7f05c4078cc7ebb571c6b5aa10c1cc2662962
2024-10-04 09:34:17
docker.io/swerebenchv2/holoviz-holoviews:6403-f9c7f05
holoviz__holoviews-6403
Method: Plot.cleanup(self) Location: holoviews.plotting.bokeh.plot.BokehPlot (inherits from holoviews.plotting.plot.Plot) Inputs: None Outputs: Performs cleanup of all streams attached to the plot and any of its sub‑plots, removing their internal `_subscribers` entries. After calling, any `Stream` (e.g., `Pipe`) that w...
python
BSD-3-Clause
diff --git a/holoviews/core/data/cudf.py b/holoviews/core/data/cudf.py index 0cd8f6d0e..f316e5e6e 100644 --- a/holoviews/core/data/cudf.py +++ b/holoviews/core/data/cudf.py @@ -205,7 +205,8 @@ class cuDFInterface(PandasInterface): with warnings.catch_warnings(): warnings.filterwarn...
enh: Add Scalebar support for subcoordinate_y plots Resolves #6292 Example: ``` python import holoviews as hv import numpy as np hv.extension("bokeh") common_opts = dict(subcoordinate_y=True, scalebar=True, scalebar_unit=('cm', 'm'),) c1 = hv.Curve(np.random.rand(1000), label='c1').opts(color='lightblue'...
Attach ScaleBar to subcoordinate axis Allow adding scale bars to individual subplot/subcoordinate_y ranges. The current implementation only allows for a scale bar to be positioned relative to the entire plot. This depends on progress in Bokeh: https://github.com/bokeh/bokeh/issues/13921 A possible API might be to us...
holoviz/holoviews
diff --git a/holoviews/tests/plotting/bokeh/test_elementplot.py b/holoviews/tests/plotting/bokeh/test_elementplot.py index c465ac46b..50c34c507 100644 --- a/holoviews/tests/plotting/bokeh/test_elementplot.py +++ b/holoviews/tests/plotting/bokeh/test_elementplot.py @@ -21,7 +21,7 @@ from holoviews import opts from holo...
[ "holoviews/tests/plotting/bokeh/test_elementplot.py::TestElementPlot::test_active_tools_drag", "holoviews/tests/plotting/bokeh/test_elementplot.py::TestElementPlot::test_active_tools_draw_stream", "holoviews/tests/plotting/bokeh/test_elementplot.py::TestElementPlot::test_active_tools_scroll", "holoviews/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": "B3", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/bokeh/bokeh/issues/13921" ], ...
1982ec4c08281c055677bf63cc72b36411d1a190
2020-03-01 01:49:46
docker.io/swerebenchv2/hypothesisworks-hypothesis:2363-1982ec4
hypothesisworks__hypothesis-2363
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..7d1ee1a61 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch fixes :issue:`2341`, ensuring that the printed output from a +stateful test cannot use variable ...
Ensure stateful vars are defined before use Fixes #2341, after considerably more frustrated debugging than the diff might suggest :sweat_smile:
Stateful printing referring to undefined variable Run this example with pytest (hypothesis 5.4.1, but also seen with 4.57.1): ```python import hypothesis.strategies as st from hypothesis.stateful import RuleBasedStateMachine, Bundle, initialize, rule class MyStateMachine(RuleBasedStateMachine): data = Bund...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_stateful.py b/hypothesis-python/tests/cover/test_stateful.py index 95bd28e7c..de9933dea 100644 --- a/hypothesis-python/tests/cover/test_stateful.py +++ b/hypothesis-python/tests/cover/test_stateful.py @@ -1159,3 +1159,24 @@ def test_reproduce_failure_fails_if_no_error(): ...
[ "hypothesis-python/tests/cover/test_stateful.py::test_arguments_do_not_use_names_of_return_values" ]
[ "hypothesis-python/tests/cover/test_stateful.py::test_bad_machines_fail[BalancedTrees]", "hypothesis-python/tests/cover/test_stateful.py::test_bad_machines_fail[DepthMachine]", "hypothesis-python/tests/cover/test_stateful.py::test_bad_machines_fail[RoseTreeStateMachine]", "hypothesis-python/tests/cover/test_s...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/issues/2...
dbcd0e1be020f63636794e7a2722cb99f92ac040
2019-05-28 13:30:39
docker.io/swerebenchv2/maas-python-libmaas:219-dbcd0e1
maas__python-libmaas-219
Method: Node.delete(self) Location: maas/client/viscera/nodes.py (class Node) Inputs: None (uses the instance’s `system_id` attribute internally) Outputs: Returns a coroutine that, when awaited, performs no value (implicitly `None`). It triggers `self._handler.delete(system_id=self.system_id)`. If the handler raises...
python
custom-check-github
diff --git a/maas/client/viscera/nodes.py b/maas/client/viscera/nodes.py index 56bfb3b..5deec33 100644 --- a/maas/client/viscera/nodes.py +++ b/maas/client/viscera/nodes.py @@ -158,3 +158,7 @@ class Node(Object, metaclass=NodeTypeMeta): if 'pool' in self._changed_data: self._changed_data['pool'] =...
Add ability to delete a node (aka: machine, device, and/or controller). Fixes #202.
Can't delete nodes/machines ## Environment python-libmaas==0.6.1 Python 3.6.7 ## Problem As stated in [the docs](http://maas.github.io/python-libmaas/client/nodes/index.html#deleting-nodes) a node/machine should have the method `delete()`. Instead, when you call it, you will get the error `AttributeError: 'Machin...
maas/python-libmaas
diff --git a/maas/client/viscera/tests/test_nodes.py b/maas/client/viscera/tests/test_nodes.py index 76c1d9c..c7ca194 100644 --- a/maas/client/viscera/tests/test_nodes.py +++ b/maas/client/viscera/tests/test_nodes.py @@ -268,6 +268,19 @@ class TestNode(TestCase): self.assertIsInstance(region, RegionController)...
[ "maas/client/viscera/tests/test_nodes.py::TestNode::test__delete" ]
[ "maas/client/viscera/tests/test_nodes.py::TestNode::test__as_device_requires_device_type", "maas/client/viscera/tests/test_nodes.py::TestNode::test__as_device_returns_device_type", "maas/client/viscera/tests/test_nodes.py::TestNode::test__as_machine_requires_machine_type", "maas/client/viscera/tests/test_node...
{ "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "http://maas.github.io/python-libmaas/client/nodes/index....
bec59161b2c7d12afad2943e6d75a393cf52185b
2021-06-06 16:15:01
docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:51-bec5916
mondeja__mkdocs-include-markdown-plugin-51
No new interfaces are introduced.
python
Apache-2.0
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 33c175b..4a3b4f0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.0.1 +current_version = 3.1.0 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
Allow to include from different parts of the same page Using the same `start` and `end` arguments, allow to include multiple times from the same page. Closes #50
Having several start-end tags in included page Having several start-end tags in included page, results in including only the first appearance. Is it possible to have more than one section included? ```markdown <!--start-tag--> ## Important Content1 <!--end-tag--> [unimportant content] <!--start-tag--> #...
mondeja/mkdocs-include-markdown-plugin
diff --git a/tests/test_include.py b/tests/test_include.py index 74c3507..df8bcfc 100644 --- a/tests/test_include.py +++ b/tests/test_include.py @@ -92,6 +92,46 @@ This must be included. id='start/end (unescaped special characters)', ), + # Multiples start and end matchs + pytest.p...
[ "tests/test_include.py::test_include[multiple-start-end-matchs]", "tests/test_include_markdown.py::test_include_markdown[multiple-start-end-matchs]" ]
[ "tests/test_include.py::test_include[simple", "tests/test_include.py::test_include[newline", "tests/test_include.py::test_include[start/end]", "tests/test_include.py::test_include[start/end", "tests/test_include.py::test_include[preserve", "tests/test_include.py::test_include[custom", "tests/test_includ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
0c5f00a3f1b1e4ab1e085281639ac8b5241c73dd
2024-01-12 20:57:32
docker.io/swerebenchv2/ploomber-jupysql:980-0c5f00a
ploomber__jupysql-980
Method: Parameters.validate(self, obj, value) Location: src/sql/traits.py → class Parameters(TraitType) Inputs: <obj>: the instance owning the trait; <value>: the user‑provided value which may be a bool, a non‑empty string, or other types. Accepted string values are “warn”, “enabled”, “disabled”. Booleans are depre...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index bca8bac..21d45b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # CHANGELOG +* [Fix] Fix error when fuzzy matching configuration file (now we only match config keys) (#975 by @maciejb) +* [Fix] Fix error that caused JupySQL to read a config file even when...
Disable Named Parameters ## Describe your changes - Edited the `named_parameters` option in config to have 3 options: - `warn`: default, it behaves the same as we set it to right now False - `enabled`: behaves as setting to True - `disabled`: completely disables named parameters using exec_driver_sql - Crea...
A value is required for bind parameter 'fruit' (snowflake) ### What happens? The snowflake query `select parse_json('{"fruit":"banana"}'):fruit` errors with: ``` RuntimeError: (Your query contains named parameters (fruit) but the named parameters feature is disabled. Enable it with: %config SqlMagic.named_parameter...
ploomber/jupysql
diff --git a/src/tests/test_config.py b/src/tests/test_config.py index 7cbd937..a17d344 100644 --- a/src/tests/test_config.py +++ b/src/tests/test_config.py @@ -415,10 +415,11 @@ autocommit = true ), ( """ -[tool.jupySql.SqlMagic] +[tool.jupysql.SQLMagics] autocommit = true """, - ...
[ "src/tests/test_config.py::test_error_on_toml_parsing[\\n[tool.jupysql.SQLMagics]\\nautocommit", "src/tests/test_config.py::test_user_config_load_sequence_and_messages[[tool.JupySQL.SqlMagic]--expected_messages6]" ]
[ "src/tests/test_config.py::test_dsn_filename_default_value", "src/tests/test_config.py::test_dsn_filename_resolves_user_directory", "src/tests/test_config.py::test_no_error_if_connection_file_doesnt_exist", "src/tests/test_config.py::test_no_error_if_connection_file_doesnt_have_default_section", "src/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": [ "https://docs.snowflake.com/en/sql-reference/functions/...
89577a3649db9decf353d9dadd8d5a5a27f18b8f
2024-06-18 04:35:48
docker.io/swerebenchv2/omni-us-jsonargparse:530-89577a3
omni-us__jsonargparse-530
Method: SignatureArguments.add_class_arguments(self, theclass: type, nested_key: Optional[str] = None, as_group: bool = True, as_positional: bool = False, default: Optional[Union[dict, Namespace, LazyInitBaseClass]] = None, skip: Optional[Set[Union[str, int]]] = None, instantiate: bool = True, fail_untyped: bool = True...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0b49968..51f6ecb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -40,6 +40,8 @@ Fixed - List of union of classes not accepted by ``add_subclass_arguments`` in ``python>=3.11`` (`#522 <https://github.com/omni-us/jsonargparse/pull/522>`__). +- Optional pydantic mo...
Fix: Optional pydantic model failing to parse with __pydantic_private__ error ## What does this PR do? Fixes #521 ## Before submitting - [x] Did you read the [contributing guideline](https://github.com/omni-us/jsonargparse/blob/main/CONTRIBUTING.rst)? - [n/a] Did you update **the documentation**? (readme and ...
`CLI` fails to instantiate a Pydantic object if it has `typing.Optional` annotation <!-- If you like this project, please ⭐ star it https://github.com/omni-us/jsonargparse/ --> ## 🐛 Bug report `CLI` fails to instantiate a Pydantic object if it has `typing.Optional` annotation. ### To reproduce In `main.py`...
omni-us/jsonargparse
diff --git a/jsonargparse_tests/test_dataclass_like.py b/jsonargparse_tests/test_dataclass_like.py index 995f740..9d884c4 100644 --- a/jsonargparse_tests/test_dataclass_like.py +++ b/jsonargparse_tests/test_dataclass_like.py @@ -680,6 +680,10 @@ if pydantic_support: class PydanticAnnotatedField(pydantic.BaseMo...
[ "jsonargparse_tests/test_signatures.py::test_add_class_failure_not_a_class" ]
[ "jsonargparse_tests/test_dataclass_like.py::test_add_dataclass_arguments", "jsonargparse_tests/test_dataclass_like.py::test_add_dataclass_nested_defaults", "jsonargparse_tests/test_dataclass_like.py::test_add_class_with_dataclass_attributes", "jsonargparse_tests/test_dataclass_like.py::test_add_class_dataclas...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
688f007183eaf1b0516dcf123d0d5d9f65ec7b4e
2018-11-10 04:56:42
docker.io/swerebenchv2/takluyver-flit:232-688f007
takluyver__flit-232
Method: Metadata.supports_py2(self) Location: flit/common.py, class Metadata (defined as a @property) Inputs: self – a Metadata instance; uses the attribute `self.requires_python` (a string, may be empty or None) Outputs: bool – `True` if the parsed Requires‑Python specifier does **not** restrict the project to Python ...
python
BSD-3-Clause
diff --git a/flit/buildapi.py b/flit/buildapi.py index 53c6315..f2bc385 100644 --- a/flit/buildapi.py +++ b/flit/buildapi.py @@ -30,10 +30,8 @@ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None): dist_info_name(metadata.name, metadata.version)) dist_info.mkdir() ...
Check for Python 2 support a little more thoroughly Fixes #227.
requires-python parsing too picky I had `requires-python = ">= 3.7"` and `flit build` made a wheel tagged `-py2.py3-none-any.whl` If I put `requires-python = ">=3.7"` then I get the desired `-py3-none-any.whl`
takluyver/flit
diff --git a/tests/test_common.py b/tests/test_common.py index e78355c..6221062 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -72,3 +72,22 @@ class ModuleTests(TestCase): def test_normalize_file_permissions(): assert normalize_file_permissions(0o100664) == 0o100644 # regular file assert nor...
[ "tests/test_common.py::test_supports_py2[-True]", "tests/test_common.py::test_supports_py2[>2.7-True]", "tests/test_common.py::test_supports_py2[3-False]", "tests/test_common.py::test_supports_py2[>=", "tests/test_common.py::test_supports_py2[<4,", "tests/test_common.py::test_supports_py2[>3.4-False]", ...
[ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
cccaf931f88dff9e21ce89570e017278e7364dc6
2021-09-29 17:15:27
docker.io/swerebenchv2/pypa-build:365-cccaf93
pypa__build-365
Function: _parse_build_system_table(pyproject_toml) Location: build._parse_build_system_table Inputs: - pyproject_toml: Mapping[str, Any] – a dictionary representing the parsed pyproject.toml (must contain a “build-system” table or be empty). Outputs: - Dict[str, Any] – a normalized build‑system table containing at l...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 78652a1..41be321 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,16 @@ Changelog +++++++++ +Unreleased +========== + +- Add schema validation for ``build-system`` table to check conformity + with PEP 517 and PEP 518 (`PR #365`_, Fixes `#364`_) + +.. _PR #...
build: validate `build-system` table schema Closes #364.
Validate build-system table schema I just spend a bunch of time debugging an error due to me mistakenly setting `build-backend = ['something']` in the `build-system` table. We should verify the schema (types) and provide a helpful error message if something is wrong. https://www.python.org/dev/peps/pep-0518/#buil...
pypa/build
diff --git a/tests/test_projectbuilder.py b/tests/test_projectbuilder.py index c61871e..221897d 100644 --- a/tests/test_projectbuilder.py +++ b/tests/test_projectbuilder.py @@ -570,4 +570,63 @@ def test_log(mocker, caplog, test_flit_path): ('INFO', 'something'), ] if sys.version_info >= (3, 8): # st...
[ "tests/test_projectbuilder.py::test_parse_valid_build_system_table_type[pyproject_toml0-parse_output0]", "tests/test_projectbuilder.py::test_parse_valid_build_system_table_type[pyproject_toml1-parse_output1]", "tests/test_projectbuilder.py::test_parse_valid_build_system_table_type[pyproject_toml2-parse_output2]...
[ "tests/test_projectbuilder.py::test_check_dependency[extras_dep-None]", "tests/test_projectbuilder.py::test_check_dependency[missing_dep-expected1]", "tests/test_projectbuilder.py::test_check_dependency[requireless_dep-None]", "tests/test_projectbuilder.py::test_check_dependency[extras_dep[undefined_extra]-No...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.python.org/dev/peps/pep-0518/#build-system...
1a2767c6fa603420724db34314a124093e8f1061
2021-03-16 06:54:01
docker.io/swerebenchv2/pyfar-pyfar:123-1a2767c
pyfar__pyfar-123
Method: Coordinates.__getitem__(self, index) Location: class Coordinates in pyfar/coordinates.py Inputs: - **index** (int, slice, or array‑like): indices used to slice the coordinate points. Must be a valid index for the underlying points array. Outputs: - Returns a **new Coordinates** instance that is a **copy** of ...
python
MIT
diff --git a/pyfar/coordinates.py b/pyfar/coordinates.py index acf494a0..38f3848e 100644 --- a/pyfar/coordinates.py +++ b/pyfar/coordinates.py @@ -1632,9 +1632,9 @@ class Coordinates(object): return kdtree def __getitem__(self, index): - """Return mutable slice of Coordinates object at index.""" ...
Coordinates __getitem__ bugfix ### Which issue(s) are closed by this pull request? Closes #122 ### Changes proposed in this pull request: - New Coordinates object is returned by calling self.copy() - Added test
Coordinates __getitem__, slicing bug ## Description Slicing of coordinates changes the original object instead of returning a new object. ## What I Did ``` import pyfar coords = pyfar.Coordinates([0,1], [0,1], [0,1]) coords_sliced = coords[0] coords.cshape == (2,) ```
pyfar/pyfar
diff --git a/tests/test_coordinates.py b/tests/test_coordinates.py index 5e863d88..13df4bc3 100644 --- a/tests/test_coordinates.py +++ b/tests/test_coordinates.py @@ -413,6 +413,13 @@ def test_getitem(): assert isinstance(new, Coordinates) assert new.cshape == (1, 5) + # test if sliced object stays untou...
[ "tests/test_coordinates.py::test_getitem" ]
[ "tests/test_coordinates.py::test_coordinates_init", "tests/test_coordinates.py::test__systems", "tests/test_coordinates.py::test_coordinate_names", "tests/test_coordinates.py::test_exist_systems", "tests/test_coordinates.py::test_systems", "tests/test_coordinates.py::test_coordinates_init_val", "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
690f65a841bab232c2789685044cdf6c37a3856f
2025-03-05 16:35:38
docker.io/swerebenchv2/rhayes777-pyautofit:1115-690f65a
rhayes777__pyautofit-1115
Method: FactorGraphModel.make_result(self, samples_summary: SamplesSummary, paths: AbstractPaths, samples: Optional[SamplesPDF] = None, search_internal: Optional[object] = None, analysis: Optional[object] = None) → CombinedResult Location: autofit.graphical.declarative.collection.FactorGraphModel Inputs: - **samples_s...
python
MIT
diff --git a/autofit/graphical/declarative/collection.py b/autofit/graphical/declarative/collection.py index 9bad8fb29..341e51c24 100644 --- a/autofit/graphical/declarative/collection.py +++ b/autofit/graphical/declarative/collection.py @@ -1,20 +1,21 @@ -from typing import Union +from typing import Union, Optional ...
feature/graphical result Resolves #1112 Also makes CombinedResult a kind of Result. Seems better but may have unexpected consequences
Graphical Model 3: Using a Result The following example compares a run using analysis summing and graph: https://github.com/Jammy2211/autolens_workspace_test/blob/main/model_graph/task_3_result.py You can run it fast by using the export PYAUTOFIT_TEST_MODE=1 environment variable. This tries to use the `result` retur...
rhayes777/PyAutoFit
diff --git a/test_autofit/graphical/test_combined_analysis.py b/test_autofit/graphical/test_combined_analysis.py new file mode 100644 index 000000000..b19fa8b21 --- /dev/null +++ b/test_autofit/graphical/test_combined_analysis.py @@ -0,0 +1,33 @@ +import autofit as af +from autofit.non_linear.paths.null import NullPath...
[ "test_autofit/graphical/test_combined_analysis.py::test_make_result" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/Jammy2211/autolens_workspace_test/b...
0ed820f5649bcb27531d73cfc023763712fc8bf9
2024-07-18 05:28:29
docker.io/swerebenchv2/keras-team-keras:20008-0ed820f
keras-team__keras-20008
Function: conv(inputs, kernel, strides, padding='valid', data_format=None, dilation_rate=1, groups=1) Location: keras/src/backend/tensorflow/nn.py Inputs: - **inputs**: Tensor (rank 3‑5) containing the data to be convolved. - **kernel**: Tensor containing the convolution filter weights; its shape must be compatible wit...
python
Apache-2.0
diff --git a/keras/src/backend/tensorflow/nn.py b/keras/src/backend/tensorflow/nn.py index 3eef471f7..85e4dd63d 100644 --- a/keras/src/backend/tensorflow/nn.py +++ b/keras/src/backend/tensorflow/nn.py @@ -237,28 +237,25 @@ def conv( dilations=dilation_rate, ) - # Reason for making this functi...
Fix conv + channel_first + tensorflow + CPU Using tensor.device will fail for a symbolic tensor. Fixes #19991
Regression bug when using 3D convolution with channels_first on GPU The following code stopped working after release 3.3.3 when running on GPU and using `run_eagerly=False` ```python import keras import numpy as np # 3D input with channels_first model_input = keras.Input(shape=(1, 10, 10, 10)) # (None, 1, 10,...
keras-team/keras
diff --git a/keras/src/ops/nn_test.py b/keras/src/ops/nn_test.py index 178da7854..689a3b00d 100644 --- a/keras/src/ops/nn_test.py +++ b/keras/src/ops/nn_test.py @@ -1479,6 +1479,19 @@ class NNOpsCorrectnessTest(testing.TestCase, parameterized.TestCase): ) self.assertAllClose(outputs, expected, rtol=1e...
[ "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d0", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d10", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d2", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_conv_3d4", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest...
[ "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_average_pool", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_batch_normalization", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_conv", "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_conv_transpose", "keras/src/ops/nn_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": "medium", "external_urls": [ "https://github.com/keras-team/keras/blob/master/keras/...
0abf9d82d058ff00cbe979972874b95f01625453
2020-01-19 17:59:02
docker.io/swerebenchv2/materials-consortia-optimade-python-tools:142-0abf9d8
materials-consortia__optimade-python-tools-142
No new interfaces are introduced.
python
MIT
diff --git a/MANIFEST.in b/MANIFEST.in index 37b65cb9..4a047b4d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ recursive-include optimade/server/ *.ini *.json -recursive-include optimade/server/data * -recursive-include optimade/grammar *.g +recursive-include optimade/server/data/ * +recursive-include opti...
Make sure relevant package data is included in distributions Fixes #141 Bumps version to v0.3.2
Lark files not being distributed The grammar Lark files are not being distributed anymore in the normal installation packages. This is a crucial bug that needs to be fixed!
Materials-Consortia/optimade-python-tools
diff --git a/tests/test_setup.py b/tests/test_setup.py new file mode 100644 index 00000000..ff972b7a --- /dev/null +++ b/tests/test_setup.py @@ -0,0 +1,58 @@ +import os +from pathlib import Path +import re +import tempfile +import unittest + + +class TestSetup(unittest.TestCase): + """Test ./setup.py""" + + def t...
[ "tests/test_setup.py::TestSetup::test_distributions_package" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...
f0d77b28e86292e3404c883541d15ff51207bfa3
2022-03-14 18:35:12
docker.io/swerebenchv2/xonsh-xonsh:4715-f0d77b2
xonsh__xonsh-4715
No new interfaces are introduced.
python
custom-check-github
diff --git a/news/fix-globbing-path-containing-regex.rst b/news/fix-globbing-path-containing-regex.rst new file mode 100644 index 00000000..30e06e20 --- /dev/null +++ b/news/fix-globbing-path-containing-regex.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <new...
Fix regex globbing for paths that contain special regex characters Fixes #4690 This PR fixes the issue that regex globbing for paths like `test+a/model` and `test*1/model` is broken. Currently, these paths do not get matched by the pattern `.*/model`. ## Cause of the issue The cause of the issue is that `reglob(...
Regex globbing broken for path including active regex characters Paths including active regex characters such as `test+a/model` are not matched by regex globbing: ```xonsh mkdir -p test/model mkdir -p test+a/model mkdir -p test*1/model for d in `.*/model`: print(d) ``` Gives the following output ```o...
xonsh/xonsh
diff --git a/requirements/tests.txt b/requirements/tests.txt index fc49411f..fea8a4d2 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -18,9 +18,7 @@ pre-commit pyte>=0.8.0 # types related -# mypy==0.931 -git+git://github.com/python/mypy.git@9b3147701f054bf8ef42bd96e33153b05976a5e1 -# TODO: repla...
[ "tests/test_builtins.py::test_repath_containing_asterisk[test*1/model-.*/model]", "tests/test_builtins.py::test_repath_containing_asterisk[hello/test*1/model-hello/.*/model]", "tests/test_builtins.py::test_repath_containing_plus_sign[test+a/model-.*/model]", "tests/test_builtins.py::test_repath_containing_plu...
[ "tests/test_builtins.py::test_repath_HOME_PATH_itself", "tests/test_builtins.py::test_repath_HOME_PATH_contents", "tests/test_builtins.py::test_repath_HOME_PATH_var", "tests/test_builtins.py::test_repath_HOME_PATH_var_brace", "tests/test_builtins.py::test_helper_int", "tests/test_builtins.py::test_helper_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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":...
58335e728fff5b98bd85b96fead271429773a593
2022-10-11 13:31:50
docker.io/swerebenchv2/cs-si-eodag:524-58335e7
cs-si__eodag-524
Function: get_bucket_name_and_prefix(url=None, bucket_path_level=None) Location: eodag.utils Inputs: - **url** (optional str): product location which may be an S3 URL, HTTP/HTTPS URL, or a plain path. - **bucket_path_level** (optional int): index in the path segments that should be treated as the bucket name; when pro...
python
Apache-2.0
diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py index e27ffe9c..e5d9d2a9 100644 --- a/eodag/plugins/download/aws.py +++ b/eodag/plugins/download/aws.py @@ -34,7 +34,12 @@ from eodag.api.product.metadata_mapping import ( properties_from_xml, ) from eodag.plugins.download.base import Dow...
fix: aws bucket extraction - Refactors and updates `get_bucket_name_and_prefix()` - updates `mundi` configuration with `bucket_path_level = 0` and up-to-date search endpoint fixes #519
Capella Bucket Download issue **Bucket Issue** Hi there, I'm trying to download Capella's Open data from [this stac index]](https://www.stacindex.org/catalogs/capella-space-open-data#/BrVjRL9LGRjg8ipuaKLhdHr1kD4sbvyd8QTYGwbMTTtkR4fzPd4yeiApxyrQkiq/LGziSG3zruu42mUQkBqrXkRPLdBZyfQ9WBqmakLW8v6Q2jtwGXLNgDPJyeVfFR6XkZHa8...
CS-SI/eodag
diff --git a/tests/context.py b/tests/context.py index 1428ddf0..f23c149a 100644 --- a/tests/context.py +++ b/tests/context.py @@ -61,6 +61,7 @@ from eodag.plugins.download.http import HTTPDownload from eodag.plugins.manager import PluginManager from eodag.plugins.search.base import Search from eodag.utils import ( ...
[ "tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_collision_avoidance", "tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_existing", "tests/units/test_download_plugins.py::TestDownloadPluginBase::te...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.stacindex.org/catalogs/capella-space-open-...
7a8d506e3d8bda7a8b7ccf583f67c633da1ab4b7
2025-04-21 20:54:05
docker.io/swerebenchv2/lektor-lektor:1224-7a8d506
lektor__lektor-1224
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/lektor/utils.py b/lektor/utils.py index 9cbcd9a..a518f00 100644 --- a/lektor/utils.py +++ b/lektor/utils.py @@ -827,8 +827,9 @@ class URLBuilder: if url == "/": return url if trailing_slash is None: - _, last = url.split("/", 1) + _, last = url.rsplit("/...
fix: Fix bug in url generation ### Issue(s) Resolved Fixes #1080 ### Related Issues / Links ### Description of Changes - [x] Added unit test(s) covering the changes (if testable) I've fixed a small error with url handling and added a realistic test case.
Bug: `build_url` may remove trailing slash Found this by browsing through the source. Havent tested whether this is actually an issue, but: https://github.com/lektor/lektor/blob/dbae91e9c767093349b122f62e114e32e8291f85/lektor/utils.py#L666-L668 shouldn't that actually be ```py last = url.split("/")[-1] # or: ...
lektor/lektor
diff --git a/tests/test_utils.py b/tests/test_utils.py index 04ea966..7338804 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -197,6 +197,10 @@ def test_url_builder(): assert build_url(["a", None, "b", "", "c"]) == "/a/b/c/" +def test_url_builder_dot_handling(): + assert build_url(["blog", "01...
[ "tests/test_utils.py::test_url_builder_dot_handling" ]
[ "tests/test_utils.py::test_join_path[a-b-a/b]", "tests/test_utils.py::test_join_path[/a-b-/a/b]", "tests/test_utils.py::test_join_path[a@b-c-a@b/c]", "tests/test_utils.py::test_join_path[a@b--a@b]", "tests/test_utils.py::test_join_path[a@b-@c-a@c]", "tests/test_utils.py::test_join_path[a@b/c-a@b-a/a@b]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/lektor/lektor/blob/dbae91e9c767093349...
9fb6d3d922244455773b1177921fb7f44fe4d3d3
2025-02-07 18:27:16
docker.io/swerebenchv2/materials-consortia-optimade-python-tools:2224-9fb6d3d
materials-consortia__optimade-python-tools-2224
Function: get_info(request: Request) -> InfoResponse Location: optimade/server/routers/info.py Inputs: - **request** (fastapi.Request): The incoming HTTP request object used to derive base URL and other request‑specific metadata. Outputs: - **InfoResponse**: A JSON‑API compliant response model whose `data.attributes`...
python
MIT
diff --git a/openapi/index_openapi.json b/openapi/index_openapi.json index a1e48112..858d1415 100644 --- a/openapi/index_openapi.json +++ b/openapi/index_openapi.json @@ -3,7 +3,7 @@ "info": { "title": "OPTIMADE API - Index meta-database", "description": "The [Open Databases Integration for Materials Desig...
Add configurable `license` and `available_licenses` info fields Closes #1254. Duplicate of #1423 which has to be remerged due to a failed release. To-do: - [x] Add to models - [x] Add to OpenAPI - [x] Add to config and server response - [x] Testing - [x] Documentation
Support for specifying database licenses Now that https://github.com/Materials-Consortia/OPTIMADE/pull/414 is merged, we should add support for specifying a database license, with some thought about how we should increment `__api_version__` whilst supporting these as of yet unreleased features.
Materials-Consortia/optimade-python-tools
diff --git a/tests/server/routers/test_info.py b/tests/server/routers/test_info.py index b5e2369e..71f65e0f 100644 --- a/tests/server/routers/test_info.py +++ b/tests/server/routers/test_info.py @@ -20,9 +20,19 @@ class TestInfoEndpoint(RegularEndpointTests): "formats", "entry_types_by_format"...
[ "tests/server/routers/test_info.py::TestInfoEndpoint::test_info_endpoint_attributes" ]
[ "tests/server/routers/test_info.py::TestInfoEndpoint::test_response_okay", "tests/server/routers/test_info.py::TestInfoEndpoint::test_meta_response", "tests/server/routers/test_info.py::TestInfoEndpoint::test_serialize_response", "tests/server/routers/test_info.py::TestInfoStructuresEndpoint::test_response_ok...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/Materials-Consortia/OPTIMADE/pull/4...
a1eebdadc7d86f2e93685ac46c726c609ea5ba99
2024-08-10 19:22:23
docker.io/swerebenchv2/getmoto-moto:7965-a1eebda
getmoto__moto-7965
Method: Organizations.Client.create_account(self, AccountName: str, Email: str, RoleName: str = "OrganizationAccountAccessRole", **kwargs) Location: boto3 client for the Amazon Organizations service (`boto3.client("organizations")`). Inputs: - **AccountName** – name for the new AWS account (string, required). - ...
python
Apache-2.0
diff --git a/moto/organizations/models.py b/moto/organizations/models.py index eacdcdee6..2f0f03b18 100644 --- a/moto/organizations/models.py +++ b/moto/organizations/models.py @@ -88,6 +88,35 @@ class FakeAccount(BaseModel): self.attached_policies: List[FakePolicy] = [] self.tags = {tag["Key"]: tag["...
Organizations: create_account() now comes preconfigured with an IAM role Fixes #7962
Organizations `create_account()` should create an IAM role in the new "account" Hello! Long time, first time. Thanks for the library -- it's hugely useful. I have a (hopefully) small enhancement request. In AWS Organizations, calling the `organizations:CreateAccount` API results in an IAM role named `OrganizationAcc...
getmoto/moto
diff --git a/tests/test_organizations/test_organizations_boto3.py b/tests/test_organizations/test_organizations_boto3.py index 9fa3d567d..5c1ee7d18 100644 --- a/tests/test_organizations/test_organizations_boto3.py +++ b/tests/test_organizations/test_organizations_boto3.py @@ -1,12 +1,14 @@ import json +import os impo...
[ "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_organizations/test_organizations_boto3.py::test_create_organization[us-east-1-aws]", "tests/test_organizations/test_organizations_boto3.py::test_create_organization[cn-north-1-aws-cn]", "tests/test_organizations/test_organizations_boto3.py::test_create_organization[us-isob-east-1-aws-iso-b]", "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": "B6", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/lates...
17827befc4f70d3617f34ed1538403ae7225c8da
2024-10-02 16:06:56
docker.io/swerebenchv2/openmdao-openmdao:3379-17827be
openmdao__openmdao-3379
Method: OptionsDictionary.items(self, recordable_only=False) Location: openmdao.utils.options_dictionary.OptionsDictionary Inputs: - recordable_only (bool, optional): If True, the iterator yields only options whose metadata includes `'recordable': True`. Default is False, yielding all options. Outputs: - Yields tuple...
python
custom-check-github
diff --git a/openmdao/utils/options_dictionary.py b/openmdao/utils/options_dictionary.py index c989a956d..ffe4a86e8 100644 --- a/openmdao/utils/options_dictionary.py +++ b/openmdao/utils/options_dictionary.py @@ -548,10 +548,15 @@ class OptionsDictionary(object): else: self._raise(f"Option '{name}...
Added 'recordable_only' option to OptionsDictionary items method. ### Summary Added 'recordable_only' option to OptionsDictionary items method. ### Related Issues - Resolves #3378 ### Backwards incompatibilities None ### New Dependencies None
Add a `recordable_only` argument to options dictionary items method. ### Desired capability or behavior. In some situations users may need to iterate through options to be serialized, but the presence of non-recordable options causes errors. This could be handled by ``` for key, meta in options_dict.items(): ...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_serialize.py b/openmdao/core/tests/test_serialize.py index cc3adc943..9c53edb47 100644 --- a/openmdao/core/tests/test_serialize.py +++ b/openmdao/core/tests/test_serialize.py @@ -27,6 +27,20 @@ class SerializeTestCase(unittest.TestCase): om.n2(p, show_browser=False) + ...
[ "openmdao/core/tests/test_serialize.py::SerializeTestCase::test_recordable_only" ]
[ "openmdao/core/tests/test_serialize.py::SerializeTestCase::test_serialize_n2" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [...