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
848d28d67e45cda7a06c4c8ed2768e6a8cb1c016
2020-05-31 15:27:12
docker.io/swerebenchv2/wtforms-wtforms:614-848d28d
wtforms__wtforms-614
Method: Flags.__getattr__(self, name) Location: wtforms/fields/core.py → class Flags Inputs: *name* – attribute name requested on a Flags instance. Outputs: Returns the attribute’s value if it exists; otherwise returns **None** (previously returned False). Description: Provides a unified flags object where miss...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 50f43a2..a199f46 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -34,7 +34,7 @@ Unreleased - Render attribute names like ``for_`` and ``class_`` are normalized consistently so later values override those specified earlier. :issue:`449`, :pr:`596` - +- Flags can ...
HTML5 widgets by default This patch is based upon #467, the changes are in the last commit 44a1cec. It fixes #594
Use HTML 5 widgets The HTML 5 widgets are kept in their own section and not used by default, but this distinction doesn't make sense today. "HTML 5" is just "HTML" now. No supported browser doesn't understand those input types, and ones that aren't supported fall back to text anyway. I already sort of started this b...
wtforms/wtforms
diff --git a/tests/test_fields.py b/tests/test_fields.py index f36ce71..0986534 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -119,7 +119,7 @@ class TestFlags: def test_existing_values(self, flags): assert flags.required is True assert "required" in flags - assert flags.o...
[ "tests/test_fields.py::TestDefaults::test", "tests/test_fields.py::TestLabel::test", "tests/test_fields.py::TestLabel::test_auto_label", "tests/test_fields.py::TestLabel::test_override_for", "tests/test_fields.py::TestLabel::test_escaped_label_text", "tests/test_fields.py::TestFlags::test_existing_values"...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
ca9519bf182650cd464d6825de451471b3243627
2024-07-04 12:57:24
docker.io/swerebenchv2/keras-team-keras:19955-ca9519b
keras-team__keras-19955
Method: KerasVariable.__int__(self) Location: keras/src/backend/common/variables.py (class KerasVariable) Inputs: self – a KerasVariable instance; must be scalar (ndim == 0) to succeed. Outputs: Returns Python ``int`` representing the variable’s scalar value. Raises ``TypeError`` with message *“Only scalar arrays...
python
Apache-2.0
diff --git a/keras/src/backend/common/keras_tensor.py b/keras/src/backend/common/keras_tensor.py index d0ff42516..1314a266d 100644 --- a/keras/src/backend/common/keras_tensor.py +++ b/keras/src/backend/common/keras_tensor.py @@ -90,6 +90,20 @@ class KerasTensor: return ops.Squeeze(axis)(self) + def __in...
Improve `keras.Variable`'s dtype consistency and add `__int__`, `__float__` and `__round__` This should fix #19952 and #19846 I have found that the built-in ops of `keras.Variable` behave differently compared to `keras.ops.*`. This PR resolves it, and the corresponding tests have been included. An example of the...
Can't get learning rate as a value instead of a keras.Variable (and docs are incorrect) I need to capture the learning rate from a compiled keras model (tensorflow backend but it shouldn't matter). Previously I did this with tf.keras.backend.get_value(...), but keras 3.0 doesn't seem to have an equivalent. I want to ...
keras-team/keras
diff --git a/keras/src/backend/common/variables_test.py b/keras/src/backend/common/variables_test.py index 7ece491e8..ab40c905c 100644 --- a/keras/src/backend/common/variables_test.py +++ b/keras/src/backend/common/variables_test.py @@ -1,3 +1,5 @@ +import itertools + import numpy as np import pytest from absl.testi...
[ "keras/src/backend/common/variables_test.py::VariableOpsCorrentnessTest::test_float", "keras/src/backend/common/variables_test.py::VariableOpsCorrentnessTest::test_int", "keras/src/backend/common/variables_test.py::VariableOpsCorrentnessTest::test_round", "keras/src/backend/common/variables_test.py::VariableO...
[ "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialization", "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialize_already_initialized", "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_variable_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://keras.io/api/callbacks/learning_rate_scheduler...
41a48da66062b4e948ef1f6ce5183d2752304ecf
2015-04-08 12:07:19
docker.io/swerebenchv2/mozilla-services-cliquet:203-41a48da
mozilla-services__cliquet-203
Function: initialize(config, version=None, project_name=None, default_settings=None) Location: cliquet/__init__.py Inputs: - **config**: a `Configurator` instance whose `add_settings` and `get_settings` methods are used. - **version** *(optional)*: string specifying the application version. - **project_name** *(option...
python
custom-check-github
diff --git a/cliquet/__init__.py b/cliquet/__init__.py index 2392479f..4ed489ed 100644 --- a/cliquet/__init__.py +++ b/cliquet/__init__.py @@ -301,7 +301,7 @@ def initialize_cliquet(*args, **kwargs): initialize(*args, **kwargs) -def initialize(config, version=None, project_name=None): +def initialize(config, v...
Provide default settings in initialize (fixes #136)
Provide extra default settings in initialize_cliquet In order to extend and override cliquet default settings in applications.
mozilla-services/cliquet
diff --git a/cliquet/tests/test_initialization.py b/cliquet/tests/test_initialization.py index 6b4b1496..22a7c4b4 100644 --- a/cliquet/tests/test_initialization.py +++ b/cliquet/tests/test_initialization.py @@ -59,6 +59,12 @@ class InitializationTest(unittest.TestCase): self.assertEqual(config.registry.setting...
[ "cliquet/tests/test_initialization.py::InitializationTest::test_overriden_default_settings" ]
[ "cliquet/tests/test_initialization.py::InitializationTest::test_environment_values_override_configuration", "cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_no_version_is_specified", "cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_specified_version_is_not_string"...
{ "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": [...
4305c850761bc5586f14b184c53403cfcfc17ea7
2023-06-13 20:19:10
docker.io/swerebenchv2/tomwhite-cubed:211-4305c85
tomwhite__cubed-211
Function: cubed.runtime.executors.lithops.map_unordered(map_function, map_iterdata, include_modules=[], timeout=None, retries=2, use_backups=False, return_stats=False, **kwargs) Location: cubed/runtime/executors/lithops.py Inputs: - **map_function** (callable): user‑provided function to apply to each element of *map_it...
python
Apache-2.0
diff --git a/cubed/runtime/executors/lithops.py b/cubed/runtime/executors/lithops.py index 0d6cde5d..6f1510f1 100644 --- a/cubed/runtime/executors/lithops.py +++ b/cubed/runtime/executors/lithops.py @@ -60,7 +60,8 @@ def map_unordered( map_function, map_iterdata, include_modules=[], - max_failures=3, ...
Make Lithops retries apply per-task Fixes #210
Lithops executor's maximum retries setting should be per-task not per-array Currently `LithopsDagExecutor` has a `max_failures` setting that raises an exception if there are more than this number of failures when computing an array (it defaults to 3). This works but for very large arrays you are more likely to get e...
tomwhite/cubed
diff --git a/cubed/tests/runtime/test_lithops.py b/cubed/tests/runtime/test_lithops.py index 800f5c42..0f0b0f61 100644 --- a/cubed/tests/runtime/test_lithops.py +++ b/cubed/tests/runtime/test_lithops.py @@ -1,14 +1,9 @@ +import platform from functools import partial import pytest -from cubed.tests.runtime.utils i...
[ "cubed/tests/runtime/test_lithops.py::test_success[timing_map0-3-2]", "cubed/tests/runtime/test_lithops.py::test_success[timing_map1-3-2]", "cubed/tests/runtime/test_lithops.py::test_success[timing_map2-3-2]", "cubed/tests/runtime/test_lithops.py::test_success[timing_map3-3-2]", "cubed/tests/runtime/test_li...
[ "cubed/tests/runtime/test_python_async.py::test_success[timing_map0-3-2]", "cubed/tests/runtime/test_python_async.py::test_success[timing_map1-3-2]", "cubed/tests/runtime/test_python_async.py::test_success[timing_map2-3-2]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
c3a8f90ac4d79eb5c655740d0fd88f393af7f306
2023-07-27 18:34:37
docker.io/swerebenchv2/meltano-sdk:1881-c3a8f90
meltano__sdk-1881
No new interfaces are introduced.
python
Apache-2.0
diff --git a/singer_sdk/helpers/capabilities.py b/singer_sdk/helpers/capabilities.py index 55aff8ce..f5b5fa30 100644 --- a/singer_sdk/helpers/capabilities.py +++ b/singer_sdk/helpers/capabilities.py @@ -99,6 +99,13 @@ TARGET_SCHEMA_CONFIG = PropertiesList( description="The default target database schema name t...
fix: Expose `add_record_metadata` as a builtin target setting Closes #1199 <!-- readthedocs-preview meltano-sdk start --> ---- :books: Documentation preview :books:: https://meltano-sdk--1881.org.readthedocs.build/en/1881/ <!-- readthedocs-preview meltano-sdk end -->
[Bug]: Setting `add_record_metadata` should be surfaced as builtin target configuration ### Singer SDK Version 0.14.0 ### Python Version NA ### Bug scope Targets (data type handling, batching, SQL object generation, etc.) ### Operating System NA ### Description The flag is retrieved from config in https://gith...
meltano/sdk
diff --git a/tests/core/test_target_base.py b/tests/core/test_target_base.py index f9b342d3..de344c7e 100644 --- a/tests/core/test_target_base.py +++ b/tests/core/test_target_base.py @@ -75,6 +75,7 @@ def test_target_about_info(): assert "flattening_enabled" in about.settings["properties"] assert "flattening_...
[ "tests/core/test_target_base.py::test_target_about_info" ]
[ "tests/core/test_target_base.py::test_get_sink", "tests/core/test_target_base.py::test_validate_record", "tests/core/test_target_base.py::test_sql_get_sink", "tests/core/test_target_base.py::test_add_sqlsink_and_get_sink" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/meltano/sdk/blob/253851e005a925496849...
ce88e71ea7d7a939d952cfd1771f974d91b78879
2020-11-04 20:51:11
docker.io/swerebenchv2/tefra-xsdata:310-ce88e71
tefra__xsdata-310
Method: AnyTypeNode.child(self, qname: str, attrs: Dict, ns_map: Dict, position: int) -> XmlNode Location: xsdata/formats/dataclass/parsers/nodes.py Inputs: qname – child element name; attrs – attributes of the child element; ns_map – namespace prefix map in scope; position – integer position of the child in the docume...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 725224f8..71807971 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.3.5 + rev: v...
Resolve #306 Lookup xsi type for xs:anyType derived elements ### Description Currently fields derived from elements with type `xs:anyType` and fields derived from `xs:any` wildcards are using the same flow for parsing/serializing. This prevents any xsi:type lookups. ### What I did - Introduced `AnyTypeNode` ...
xsi:type not working on xsd:anyType elements I have a use case were we wrap lists of 'items' in an xml where the elements are in the xsd marked as 'xs:anyType'. The xml though specifies the type with something like: ` xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="api:searchResultItem" ` so, the a...
tefra/xsdata
diff --git a/tests/formats/dataclass/parsers/test_nodes.py b/tests/formats/dataclass/parsers/test_nodes.py index e74f0c7a..4eaedee6 100644 --- a/tests/formats/dataclass/parsers/test_nodes.py +++ b/tests/formats/dataclass/parsers/test_nodes.py @@ -23,6 +23,7 @@ from xsdata.formats.dataclass.models.generics import AnyEle...
[ "tests/formats/dataclass/parsers/test_nodes.py::ElementNodeTests::test_bind", "tests/formats/dataclass/parsers/test_nodes.py::ElementNodeTests::test_bind_with_derived_element", "tests/formats/dataclass/parsers/test_nodes.py::ElementNodeTests::test_bind_with_mixed_content_var", "tests/formats/dataclass/parsers...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ba517aba0e3dbddb925fcb47f9a0359432fd4a10
2021-06-19 11:35:55
docker.io/swerebenchv2/pyqtgraph-pyqtgraph:1845-ba517ab
pyqtgraph__pyqtgraph-1845
Method: ColorMap.getStops(self, mode=BYTE) Location: pyqtgraph/colormap.py → class ColorMap Inputs: - **mode** (optional): can be one of the class constants `ColorMap.BYTE`, `ColorMap.FLOAT`, `ColorMap.QCOLOR` or a case‑insensitive string `'byte'`, `'float'`, `'qcolor'`. If omitted, defaults to `BYTE`. Outputs:...
python
custom-check-github
diff --git a/pyqtgraph/colormap.py b/pyqtgraph/colormap.py index 5f58da67..2a153954 100644 --- a/pyqtgraph/colormap.py +++ b/pyqtgraph/colormap.py @@ -5,6 +5,8 @@ from os import path, listdir from collections.abc import Callable, Sequence import warnings +__all__ = ['ColorMap'] + _mapCache = {} def listMaps(sou...
Separate out mouse events stolen by AxisItem While it graphically makes sense to draw the AxisItem on top of what is plotted, particularly for images, this has unintended side-effects: If AxisItem is placed above the ViewBox, which places itself at z order -100, then it will grab mouse events inside its bounding box. ...
Regression: modified zoom behavior with showGrid <!-- In the following, please describe your issue in detail! --> <!-- If some of the sections do not apply, just remove them. --> ### Short description Enabling the grid on a `PlotItem`causes zoom on the `ViewBox` to affect only the y axis when it should affect bo...
pyqtgraph/pyqtgraph
diff --git a/tests/test_colormap.py b/tests/test_colormap.py new file mode 100644 index 00000000..35e62d34 --- /dev/null +++ b/tests/test_colormap.py @@ -0,0 +1,75 @@ +import pytest +import pyqtgraph as pg +from pyqtgraph.Qt import QtGui + +pos = [0.0, 0.5, 1.0] +qcols = [ + QtGui.QColor('#FF0000'), + QtGui.QColo...
[ "tests/test_colormap.py::test_ColorMap_getStops[color_list0]", "tests/test_colormap.py::test_ColorMap_getStops[color_list1]", "tests/test_colormap.py::test_ColorMap_getColors[color_list0]", "tests/test_colormap.py::test_ColorMap_getColors[color_list1]" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
1ce57f64c9fecb655856dd1f3098c7bf7a1d37fa
2023-02-05 19:53:49
docker.io/swerebenchv2/pallets-werkzeug:2583-1ce57f6
pallets__werkzeug-2583
Method: BaseConverter.__init_subclass__(cls, **kwargs) Location: src/werkzeug/routing/converters.py → class BaseConverter Inputs: - **cls** – the subclass being created (a subclass of ``BaseConverter``). - **kwargs** – any keyword arguments passed to ``type.__init_subclass__`` (normally unused). Outputs: None (retur...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 1ca61776..13a1f4be 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,8 @@ Unreleased - ``Request.get_json()`` will raise a ``415 Unsupported Media Type`` error if the ``Content-Type`` header is not ``application/json``, instead of a generic 400. :issue:`25...
default `part_isolating=False` if regex has `/` fixes #2582 The default is only set if the new converter class sets `regex` and doesn't set `part_isolating`. This way, a converter can override `part_isolating` if it knows better, and can inherit `regex` and not change `part_isolating` if it was set manually in the ...
default `part_isolating=False` if the converter regex contains a `/` Users didn't know about the `Converter.part_isolating` change as part of the router speedup, so custom converters that matched slashes stopped working. It should be possible to detect whether it should be disabled in most cases, so users won't need to...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index 15d25a7c..a77d89f7 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -800,6 +800,20 @@ def test_any_converter_build_validates_value() -> None: assert str(exc.value) == "'invalid' is not one of 'patient', 'provider'" +def test_part...
[ "tests/test_routing.py::test_part_isolating_default" ]
[ "tests/test_routing.py::test_basic_routing", "tests/test_routing.py::test_merge_slashes_match", "tests/test_routing.py::test_merge_slash_encoding[/merge/%//path-/merge/%25/path]", "tests/test_routing.py::test_merge_slash_encoding[/merge//st/path-/merge/st/path]", "tests/test_routing.py::test_merge_slashes_b...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pallets/werkzeug/issues/2506#issuecom...
ad67fc66da24f4587c072b13bdaade357eeb6022
2024-04-09 17:05:23
docker.io/swerebenchv2/sinaptik-ai-pandas-ai:1099-ad67fc6
sinaptik-ai__pandas-ai-1099
Method: ResponseSerializer.serialize_dataframe(self, df: pandas.DataFrame) Location: pandasai.responses.response_serializer.ResponseSerializer Inputs: `df` – a pandas DataFrame whose columns and rows are to be serialized. Outputs: `dict` with keys `"headers"` (list of column names in order) and `"rows"` (list of ...
python
custom-check-github
diff --git a/pandasai/pipelines/chat/code_execution.py b/pandasai/pipelines/chat/code_execution.py index ba673dc6..5c038313 100644 --- a/pandasai/pipelines/chat/code_execution.py +++ b/pandasai/pipelines/chat/code_execution.py @@ -96,7 +96,7 @@ class CodeExecution(BaseLogicUnit): if not OutputValidat...
feat: support series in response serializer - [x] Closes #918. - [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing).
Code generation crash on question "Give me full names of people was in class 3 grouped by second name" ### System Info pandas AI 1.5.17 ### 🐛 Describe the bug I have a table with column Name and ask question "Give me full names of people was in class 3 grouped by second name". And I see this crash. Data...
Sinaptik-AI/pandas-ai
diff --git a/tests/unit_tests/responses/test_response_serializer.py b/tests/unit_tests/responses/test_response_serializer.py new file mode 100644 index 00000000..1d363061 --- /dev/null +++ b/tests/unit_tests/responses/test_response_serializer.py @@ -0,0 +1,34 @@ +import unittest + +import pandas as pd + +from pandasai....
[ "tests/unit_tests/responses/test_response_serializer.py::TestResponseSerializer::test_serialize_dataframe_from_series" ]
[ "tests/unit_tests/responses/test_response_serializer.py::TestResponseSerializer::test_serialize_dataframe", "tests/unit_tests/responses/test_response_serializer.py::TestResponseSerializer::test_serialize_dataframe_from_df" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/gventuri/pandas-ai/files/14113732/tit...
88efb088fba2669db30df083285c826ded400cae
2024-10-31 18:24:52
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3805-88efb08
aws-cloudformation__cfn-lint-3805
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/properties/StringLength.py b/src/cfnlint/rules/resources/properties/StringLength.py index 819ac1189..4f2f78d01 100644 --- a/src/cfnlint/rules/resources/properties/StringLength.py +++ b/src/cfnlint/rules/resources/properties/StringLength.py @@ -9,7 +9,7 @@ from typing import Any ...
Fix validating min/maxLength with array types *Issue #, if available:* fix #3804 *Description of changes:* - Fix validating min/maxLength with array types By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Ignored policy size limitation ### CloudFormation Lint Version 1.18.3 ### What operating system are you using? Debian GNU/Linux 12 (bookworm) ### Describe the bug The `AWS::IAM::ManagedPolicy` has based on the CloudFormation specification a max size set as 131072, however the managed policy maximum size is 6144, ...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/properties/test_string_length.py b/test/unit/rules/resources/properties/test_string_length.py index ebd161542..77a3e55aa 100644 --- a/test/unit/rules/resources/properties/test_string_length.py +++ b/test/unit/rules/resources/properties/test_string_length.py @@ -37,6 +37,12 @@ def ...
[ "test/unit/rules/resources/properties/test_string_length.py::test_min_length[instance19-20-schema19-1]", "test/unit/rules/resources/properties/test_string_length.py::test_max_length[instance19-4-schema19-1]" ]
[ "test/unit/rules/resources/properties/test_string_length.py::test_min_length[foo-2-schema0-0]", "test/unit/rules/resources/properties/test_string_length.py::test_min_length[foo-4-schema1-1]", "test/unit/rules/resources/properties/test_string_length.py::test_min_length[instance2-2-schema2-0]", "test/unit/rules...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.aws.amazon.com/IAM/latest/UserGuide/refer...
df9ad4085d60710b507b54c8fc369ee186eb1d64
2022-10-17 18:57:10
docker.io/swerebenchv2/pallets-click:2380-df9ad40
pallets__click-2380
Method: BaseCommand.main(self, *args, prog_name=None, complete_varargs=False, stdin=None, stdout=None, stderr=None, env=None, show_default=None, standalone_mode=True, **extra) Location: src/click/core.py Inputs: - *args / prog_name: command line arguments to parse. - standalone_mode (bool): when False, Click does no...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 674e449..37646a9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,8 @@ Unreleased - Improve command name detection when using Shiv or PEX. :issue:`2332` - Avoid showing empty lines if command help text is empty. :issue:`2368` - ZSH completion script works whe...
Do not suppress EOFError/KeyboardInterrupt when standalone is disabled Raise `Abort()` exception in a chain with the original exception. <!-- 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 t...
Unable to see EOFError exception in the traceback with disabled standalone mode According to the [docs](https://click.palletsprojects.com/en/8.0.x/exceptions/?highlight=standalone%20mode#what-if-i-don-t-want-that) disabled standalone mode disables exception handling. However, click still suppresses `EOFError` (as well ...
pallets/click
diff --git a/tests/test_commands.py b/tests/test_commands.py index d72a182..ed9d96f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -397,3 +397,15 @@ def test_group_invoke_collects_used_option_prefixes(runner): runner.invoke(group, ["command1"]) assert opt_prefixes == {"-", "--", "~", "+...
[ "tests/test_commands.py::test_abort_exceptions_with_disabled_standalone_mode[EOFError]", "tests/test_commands.py::test_abort_exceptions_with_disabled_standalone_mode[KeyboardInterrupt]" ]
[ "tests/test_commands.py::test_other_command_invoke", "tests/test_commands.py::test_other_command_forward", "tests/test_commands.py::test_forwarded_params_consistency", "tests/test_commands.py::test_auto_shorthelp", "tests/test_commands.py::test_no_args_is_help", "tests/test_commands.py::test_default_maps"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://click.palletsprojects.com/en/8.0.x/exceptions/?h...
715856fdb69deceba4d54afe4ccf3f7ad304c5ec
2020-10-17 20:40:35
docker.io/swerebenchv2/xknx-xknx:470-715856f
xknx__xknx-470
Method: Sensor.__init__(self, xknx: XKNX, name: str, group_address_state: str | None = None, sync_state: bool = True, always_callback: bool = False, value_type: str | None = None, device_updated_cb: Callable[[Device], Awaitable[None]] | None = None) Location: xknx/devices/sensor.py Inputs: - **xknx** – the centra...
python
MIT
diff --git a/changelog.md b/changelog.md index 97c850a5..26bbe12a 100644 --- a/changelog.md +++ b/changelog.md @@ -4,11 +4,12 @@ ### Devices +- Sensor: add `always_callback` option - ClimateMode: Refactor climate modes in operation_mode and controller_mode, also fixes a bug for binary operation modes where the mo...
Use Semaphore instead of Lock. <!-- 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...
Use Semaphores in StateUpdater In https://github.com/XKNX/xknx/pull/457 we adjusted the state updater to update each value one by one. However, we should leverage the power of semaphores to update more than one state concurrently as the bus can handle more than one telegram per second. A value between 3 and 5 should...
XKNX/xknx
diff --git a/test/devices_tests/sensor_test.py b/test/devices_tests/sensor_test.py index 2043eb3c..5875ea4e 100644 --- a/test/devices_tests/sensor_test.py +++ b/test/devices_tests/sensor_test.py @@ -47,6 +47,55 @@ class TestSensor(unittest.TestCase): self.assertEqual(sensor.unit_of_measurement(), "K") ...
[ "test/devices_tests/sensor_test.py::TestSensor::test_always_callback_sensor" ]
[ "test/devices_tests/sensor_test.py::TestSensor::test_has_group_address", "test/devices_tests/sensor_test.py::TestSensor::test_process", "test/devices_tests/sensor_test.py::TestSensor::test_process_callback", "test/devices_tests/sensor_test.py::TestSensor::test_str_absolute_temperature", "test/devices_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": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/XKNX/xknx/pull/457" ], "int...
e09311e26f1bfd6941ccaca3d1fd2ba089e1f18b
2025-07-19 18:14:14
docker.io/swerebenchv2/vacanza-holidays:2737-e09311e
vacanza__holidays-2737
Class: Niue Location: holidays.countries.niue.Niue Inputs: *args, **kwargs – optional positional arguments and keyword arguments; common keywords include `years` (iterable of years to generate) and `observed_rule` (rule for observed holidays, defaults to SAT_SUN_TO_NEXT_MON_TUE). Outputs: Instance of a holiday calend...
python
MIT
diff --git a/README.md b/README.md index 03931878..b23b3d33 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ and detailed information. ## Available Countries -We currently support 220 country codes. The standard way to refer to a country is by using its [ISO +We currently support 221 country codes. The s...
Add Niue holidays <!-- 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. --> Added support for NU holidays. Closes #2667 ## Type of change <!-- Type of change you want to in...
Add Niue holidays URLs: - https://en.wikipedia.org/wiki/Public_holidays_in_Niue
vacanza/holidays
diff --git a/tests/countries/test_niue.py b/tests/countries/test_niue.py new file mode 100644 index 00000000..78fa5ff7 --- /dev/null +++ b/tests/countries/test_niue.py @@ -0,0 +1,232 @@ +# holidays +# -------- +# A fast, efficient Python library for generating country, province and state +# specific sets of holiday...
[ "tests/countries/test_niue.py::TestNiue::test_annexation_day", "tests/countries/test_niue.py::TestNiue::test_anzac_day", "tests/countries/test_niue.py::TestNiue::test_boxing_day", "tests/countries/test_niue.py::TestNiue::test_christmas_day", "tests/countries/test_niue.py::TestNiue::test_code", "tests/coun...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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|B4|B6", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": true, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [ "https://en.wikipedia.org/wiki/Public_holidays_in_N...
e12d7ed609a3193acf2da9a7009d3abfaa29f64e
2025-06-15 11:48:03
docker.io/swerebenchv2/getmoto-moto:8984-e12d7ed
getmoto__moto-8984
Method: Route53Backend.change_tags_for_resource(self, resource_type: str, resource_id: str, tags: Any) Location: moto/route53/models.py, class Route53Backend Inputs: - **resource_type** (str): The type of Route53 resource (e.g., `"hostedzone"`). - **resource_id** (str): Identifier of the resource. For hosted zon...
python
Apache-2.0
diff --git a/moto/route53/models.py b/moto/route53/models.py index 1a64dd772..228bb393b 100644 --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -68,7 +68,7 @@ def create_route53_zone_id( # type: ignore tags: Tags = None, ) -> str: # New ID's look like this Z1RWWTK7Y8UDDQ - return "".join([ran...
Route53: change_tags_for_resource(): Validate ZoneId parameter Fixes #8931 - Increases the size of the HostedZoneID to 22 characters (inline with AWS) - This was originally introduced in #1184, which was 8 years ago, so maybe the length was 15 back then? In any case, it's 22 now for new hosted zones. - Adds Res...
Route53 Hosted Zone tags can be looked up by /hostedzone/<id>, should fail ### Description When creating a Route53 hosted zone, the boto response contains an id of the form `/hostedzone/<id>`. When using moto, this can then be passed into `change_tags_for_resource`, whereas AWS requires the `/hostedzone/` prefix to be...
getmoto/moto
diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py index 5cffe26d5..c8afc1b58 100644 --- a/tests/test_route53/test_route53.py +++ b/tests/test_route53/test_route53.py @@ -478,7 +478,7 @@ def test_list_or_change_tags_for_resource_request(): "HealthThreshold": 123, ...
[ "tests/test_route53/test_route53_hosted_zone_ids.py::test_hosted_zone_id_in_change_tags" ]
[ "tests/test_route53/test_route53.py::test_create_hosted_zone", "tests/test_route53/test_route53.py::test_get_hosted_zone", "tests/test_route53/test_route53.py::test_list_hosted_zones", "tests/test_route53/test_route53.py::test_delete_hosted_zone", "tests/test_route53/test_route53.py::test_delete_hosted_zone...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
784950296ad5a12431c6e2411de28fcb3c605720
2021-02-05 09:51:19
docker.io/swerebenchv2/aio-libs-aiosmtpd:242-7849502
aio-libs__aiosmtpd-242
Function: __version__() Location: aiosmtpd/__init__.py (module‑level attribute, also re‑exported in aiosmtpd.smtp) Inputs: None Outputs: str – the package version identifier; when imported from aiosmtpd.smtp the same object is returned (identity check). Description: Provides the library’s version string as a public att...
python
Apache-2.0
diff --git a/aiosmtpd/__init__.py b/aiosmtpd/__init__.py index e69de29..05c9e9e 100644 --- a/aiosmtpd/__init__.py +++ b/aiosmtpd/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2014-2021 The aiosmtpd Developers +# SPDX-License-Identifier: Apache-2.0 + +__version__ = "1.3.0a4" diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/doc...
FIX for "No module named 'public'" during installation (Original PR notes moved into HTML comment) ## What do these changes do? Move the `__version__` attribute from `smtp.py` to `__init__.py` This is enough to prevent breakage when installing using `setuptools<46.4.0` (see [this PR](https://github.com/pypa/se...
Can't install Version 1.2.4 - No module named 'public' **System:** CentOS 7 **Python Version:** 3.6 (from Software Collection) **PIP Version:** 21.0.1 **Virtualenv:** yes **Description:** When I try to install version 1.2.4 from pypi, the install will be discarded and version 1.2.2 is insalled instead. The...
aio-libs/aiosmtpd
diff --git a/aiosmtpd/tests/test_server.py b/aiosmtpd/tests/test_server.py index 94ea6ab..1262bfe 100644 --- a/aiosmtpd/tests/test_server.py +++ b/aiosmtpd/tests/test_server.py @@ -8,9 +8,10 @@ import os import socket import unittest +from aiosmtpd import __version__ as init_version from aiosmtpd.controller import...
[ "aiosmtpd/tests/test_server.py::TestServer::test_default_max_command_size_limit", "aiosmtpd/tests/test_server.py::TestServer::test_server_attribute", "aiosmtpd/tests/test_server.py::TestServer::test_smtp_utf8", "aiosmtpd/tests/test_server.py::TestServer::test_socket_error", "aiosmtpd/tests/test_server.py::T...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9055a27e37dcfdb889894c876e743f084b2ad4c8
2025-01-19 12:54:02
docker.io/swerebenchv2/xknx-xknx:1642-9055a27
xknx__xknx-1642
Function: Climate.__init__(self, xknx: XKNX, name: str, *, group_address_on_off: GroupAddressesType = None, group_address_on_off_state: GroupAddressesType = None, group_address_temperature_setpoint: GroupAddressesType = None, group_address_temperature_setpoint_state: GroupAddressesType = None, group_address_mode: Group...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c704cb61..df83b218 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - tomli exclude_types: [csv, json] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.8.3' + rev...
Add swing and horizontal swing to climate device <!-- You are awesome! Thanks for contributing to our project! Please, DO NOT DELETE ANY TEXT from this template!. --> ## Description Add swing and horizontal swing support to climate device Fixes #466 ## Type of change <!-- Please tick the applicable o...
Feature request: Add Fan mode and Swing mode to climate KNX devices Hi All, Would it be possible to add Fan Mode and Swing Mode to KNX Climate devices? It is supported by Home Assistant in other Climate integrations (e.g. Sensibo Climate). If needed I can help with testing, I have a KNX modules for Mitsubishi A/C unit...
XKNX/xknx
diff --git a/requirements/testing.txt b/requirements/testing.txt index 71d8adca..9c109460 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -7,7 +7,7 @@ pytest==8.3.4 pytest-asyncio==0.25.2 pytest-cov==6.0.0 pytest-icdiff==0.9 -ruff==0.8.6 +ruff==0.9.2 setuptools==75.8.0 tox==4.23.2 tox-gh-a...
[ "test/devices_tests/climate_test.py::TestClimate::test_swing", "test/devices_tests/climate_test.py::TestClimate::test_horizontal_swing", "test/str_test.py::TestStringRepresentations::test_climate" ]
[ "test/devices_tests/climate_test.py::TestClimate::test_support_temperature", "test/devices_tests/climate_test.py::TestClimate::test_support_target_temperature", "test/devices_tests/climate_test.py::TestClimate::test_support_operation_mode", "test/devices_tests/climate_test.py::TestClimate::test_support_operat...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
f1aac5bc4465e1ec622e4643e60ba38f8d2cea06
2022-06-09 15:13:17
docker.io/swerebenchv2/qiskit-qiskit-ibm-runtime:367-f1aac5b
qiskit__qiskit-ibm-runtime-367
Method: QiskitRuntimeService.jobs(self, *, project: Optional[str] = None, job_tags: Optional[List[str]] = None, session_id: Optional[str] = None, created_after: Optional[datetime] = None, created_before: Optional[datetime] = None, descending: bool = True) → List[RuntimeJob] Location: qiskit_ibm_runtime/qiskit_runtime_s...
python
Apache-2.0
diff --git a/qiskit_ibm_runtime/api/clients/runtime.py b/qiskit_ibm_runtime/api/clients/runtime.py index ca4b7395..039c1062 100644 --- a/qiskit_ibm_runtime/api/clients/runtime.py +++ b/qiskit_ibm_runtime/api/clients/runtime.py @@ -219,6 +219,8 @@ class RuntimeClient(BaseBackendClient): project: str = None, ...
Filter jobs with created after/before parameters <!-- ⚠️ The pull request title should be short detailed and understandable for all. ⚠️ Also, please add a release note file using reno if the change needs to be documented in the release notes. ⚠️ If your pull request fixes an open issue, please link to the issue. ...
Filter jobs using created after and before dates **What is the expected feature or enhancement?** The API support filtering jobs created after and before a particular date https://us-east.quantum-computing.cloud.ibm.com/openapi#/Jobs/list_jobs. Add `created_after` and `created_before` datetime parameters to `Qisk...
Qiskit/qiskit-ibm-runtime
diff --git a/test/integration/test_retrieve_job.py b/test/integration/test_retrieve_job.py index db527395..aa46e524 100644 --- a/test/integration/test_retrieve_job.py +++ b/test/integration/test_retrieve_job.py @@ -13,7 +13,7 @@ """Tests for job functions using real runtime service.""" import uuid - +from datetime ...
[ "test/unit/test_job_retrieval.py::TestRetrieveJobs::test_jobs_filter_by_date" ]
[ "test/unit/test_job_retrieval.py::TestRetrieveJobs::test_different_hgps", "test/unit/test_job_retrieval.py::TestRetrieveJobs::test_jobs_bad_instance", "test/unit/test_job_retrieval.py::TestRetrieveJobs::test_jobs_filter_by_instance", "test/unit/test_job_retrieval.py::TestRetrieveJobs::test_jobs_filter_by_job_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://us-east.quantum-computing.cloud.ibm.com/openap...
7cf9ba361be9822e92989476c5fb690351481a3a
2024-10-20 06:22:13
docker.io/swerebenchv2/cogent3-cogent3:2050-7cf9ba3
cogent3__cogent3-2050
Function: split_name_and_support(name_field: str | None) -> tuple[str | None, float | None] Location: cogent3.core.tree module Inputs: - **name_field** – a string (or None) representing the Newick name field; may be empty, contain only a support value (e.g., `"24"`), only a name (e.g., `"edge.98"`), or a name and supp...
python
BSD-3-Clause
diff --git a/src/cogent3/core/tree.py b/src/cogent3/core/tree.py index 3df647b30..d12319495 100644 --- a/src/cogent3/core/tree.py +++ b/src/cogent3/core/tree.py @@ -27,6 +27,7 @@ Definition of relevant terms or abbreviations: from __future__ import annotations +import contextlib import json import numbers impor...
ENH: add function to split the internal name field in newick into name and support value, fixes #2045 #2045 ## Summary by Sourcery Add a new function to split internal node name fields in Newick format into separate name and support values, and implement corresponding tests to ensure correct functionality. New Featu...
ENH: extend support for bootstrap values from newick strings `cogent3` stores support values (e.g. from a bootstrap) as `<phylonode>.params["support"]` entry. This information is also stored in some versions of newick strings. For example, IQTree uses `((a,b)##:0.1,..` and `((a,b)node_name/##:0.1,..` where `##` is an i...
cogent3/cogent3
diff --git a/tests/test_core/test_tree.py b/tests/test_core/test_tree.py index c05b8d42a..cca1f4342 100644 --- a/tests/test_core/test_tree.py +++ b/tests/test_core/test_tree.py @@ -14,7 +14,8 @@ from numpy.testing import assert_allclose, assert_equal from cogent3 import load_tree, make_tree, open_ from cogent3._ver...
[ "tests/test_core/test_tree.py::TreeTests::test_make_tree", "tests/test_core/test_tree.py::TreeNodeTests::test_Parent", "tests/test_core/test_tree.py::TreeNodeTests::test_ancestors", "tests/test_core/test_tree.py::TreeNodeTests::test_append", "tests/test_core/test_tree.py::TreeNodeTests::test_bifurcating", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
aa5c1ac5d6f558ad4ef3948c025da78361318827
2020-02-25 10:50:12
docker.io/swerebenchv2/enthought-envisage:275-aa5c1ac
enthought__envisage-275
Function: ref(obj, callback=None) Location: envisange.safeweakref.ref Inputs: - obj: any Python object. If the object is a bound method (has a ``__self__`` attribute), it is treated specially. - callback (optional): a callable that will be invoked when the referenced object is about to be finalized. May be ``None``. O...
python
custom-check-github
diff --git a/envisage/extension_registry.py b/envisage/extension_registry.py index 8a98cb2b..ddc655d9 100644 --- a/envisage/extension_registry.py +++ b/envisage/extension_registry.py @@ -11,6 +11,8 @@ # Standard library imports. import logging +import types +import weakref # Enthought library imports. from trai...
Deprecate safeweakref and replace its uses Some `safeweakref`-related cleanup, aimed at eventual removal of the `safeweakref` module. - Don't try to make `safeweakref` a drop-in replacement for `weakref`: `safeweakref` no longer does `from weakref import *` - Deprecate the existing `safeweakref.ref` - Replace exis...
Get rid of (or streamline) safeweakref There are two aspects of the safeweakref module: - provide `WeakMethod`, which isn't available in Python 2 - cache weak method references by the object they live on I believe that the cache is unnecessary, and since we no longer support Python 2, we can get `WeakMethod` fro...
enthought/envisage
diff --git a/envisage/tests/test_extension_registry.py b/envisage/tests/test_extension_registry.py index a6d230fb..c19e2270 100644 --- a/envisage/tests/test_extension_registry.py +++ b/envisage/tests/test_extension_registry.py @@ -9,6 +9,7 @@ """ Tests for the base extension registry. """ # Standard library imports...
[ "envisage/tests/test_safeweakref.py::SafeWeakrefTestCase::test_can_create_weakref_to_bound_method", "envisage/tests/test_safeweakref.py::SafeWeakrefTestCase::test_deprecated", "envisage/tests/test_safeweakref.py::SafeWeakrefTestCase::test_get_builtin_weakref_for_non_bound_method", "envisage/tests/test_safewea...
[ "envisage/tests/test_extension_registry.py::ExtensionRegistryTestCase::test_add_extension_point", "envisage/tests/test_extension_registry.py::ExtensionRegistryTestCase::test_empty_registry", "envisage/tests/test_extension_registry.py::ExtensionRegistryTestCase::test_get_extension_point", "envisage/tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0c869c2158090b6e2eb5703ec030cf7c53e02077
2024-08-09 09:48:19
docker.io/swerebenchv2/getmoto-moto:7955-0c869c2
getmoto__moto-7955
Function: search(Resource: str, **kwargs) Location: boto3 SageMaker client (`client.search(Resource="ModelPackageGroup", ...)`) Inputs: - **Resource** (str) – must be set to `"ModelPackageGroup"` to retrieve model package groups. - Optional keyword arguments such as **SearchExpression**, **NextToken**, **MaxResults**,...
python
Apache-2.0
diff --git a/moto/sagemaker/models.py b/moto/sagemaker/models.py index 1090d5702..57a09c537 100644 --- a/moto/sagemaker/models.py +++ b/moto/sagemaker/models.py @@ -3179,6 +3179,23 @@ class SageMakerModelBackend(BaseBackend): for trial_component_summary in trial_component_summaries: resu...
Sagemaker: search() now supports ModelPackageGroups Fixes #7898
Incorrect behavior of SageMaker Client Search Method # Environment Information - Python Version: 3.8.12 - boto3 == 1.24.4 - pytest == 8.3.2 - moto == 5.0.11 # Documentation Reference According to the [latest moto documentation](https://docs.getmoto.org/en/latest/docs/services/sagemaker.html) for sagemaker imp...
getmoto/moto
diff --git a/tests/test_sagemaker/test_sagemaker_model_package_groups.py b/tests/test_sagemaker/test_sagemaker_model_package_groups.py index 9ed8c30a6..927a9491b 100644 --- a/tests/test_sagemaker/test_sagemaker_model_package_groups.py +++ b/tests/test_sagemaker/test_sagemaker_model_package_groups.py @@ -267,3 +267,35 @...
[ "tests/test_sagemaker/test_sagemaker_model_package_groups.py::test_search_model_package_groups" ]
[ "tests/test_sagemaker/test_sagemaker_model_package_groups.py::test_create_model_package_group", "tests/test_sagemaker/test_sagemaker_model_package_groups.py::test_list_model_package_groups", "tests/test_sagemaker/test_sagemaker_model_package_groups.py::test_list_model_package_groups_creation_time_before", "te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.getmoto.org/en/latest/docs/services/sagem...
1d8d0a0b0359ae6da5b99fd3fa8cb016b74b8a6c
2024-10-04 12:32:44
docker.io/swerebenchv2/googleapis-python-bigquery:2039-1d8d0a0
googleapis__python-bigquery-2039
Function: determine_requested_streams(preserve_order: bool, max_stream_count: Union[int, None]) -> int Location: google.cloud.bigquery._pandas_helpers Inputs: - preserve_order (bool): if True, order must be preserved; this forces a single stream and overrides max_stream_count. - max_stream_count (int | None): optional ...
python
Apache-2.0
diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py index 210ab487..bf7d10c0 100644 --- a/google/cloud/bigquery/_pandas_helpers.py +++ b/google/cloud/bigquery/_pandas_helpers.py @@ -21,13 +21,14 @@ from itertools import islice import logging import queue import warnings -...
feat: updates to allow users to set max_stream_count Adds a function `determine_requested_streams()` to compare `preserve_order` and the new argument `max_stream_count` to determine how many streams to request. ``` preserve_order (bool): Whether to preserve the order of streams. If True, this limits the number...
Make `max_stream_count` configurable when using Bigquery Storage API Currently, for API that can use BQ Storage Client to fetch data like `to_dataframe_iterable` or `to_arrow_iterable`, the client library always uses the maximum number of read streams recommended by BQ server. https://github.com/googleapis/python-b...
googleapis/python-bigquery
diff --git a/tests/unit/test__pandas_helpers.py b/tests/unit/test__pandas_helpers.py index 203cc1d1..3a5fddac 100644 --- a/tests/unit/test__pandas_helpers.py +++ b/tests/unit/test__pandas_helpers.py @@ -18,6 +18,7 @@ import decimal import functools import operator import queue +from typing import Union from unittes...
[ "tests/unit/test__pandas_helpers.py::test_do_all", "tests/unit/test__pandas_helpers.py::test_all_", "tests/unit/test__pandas_helpers.py::test_verify_pandas_imports_no_pandas", "tests/unit/test__pandas_helpers.py::test_determine_requested_streams[True-10-1]", "tests/unit/test__pandas_helpers.py::test_determi...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/googleapis/python-bigquery/blob/ef8...
7b40929a3f5ca285e058267c42ea3d3ad947ed98
2020-01-13 08:08:17
docker.io/swerebenchv2/hypothesisworks-hypothesis:2322-7b40929
hypothesisworks__hypothesis-2322
Function: _can_hash(val) Location: hypothesis.strategies._internal.types._can_hash Inputs: val – any Python object whose hashability needs to be determined; no particular type constraints. Outputs: bool – True if hash(val) succeeds without raising, False otherwise (e.g., for signaling NaN Decimals or other unhashable v...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..5ad532169 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,6 @@ +RELEASE_TYPE: patch + +This patch fixes :issue:`2320`, where ``from_type(Set[Hashable])`` could raise +an internal error because `...
Ensure generic set elems can be hashed Fixes #2320.
`from_type(Set[Decimal])` raises an internal error because signalling NaN is not hashable I've gotten `from_type(Set[Hashable])` to reliably fail during generation. It seems that `Hashable` generates `Decimal` objects, which is fine. However, hypothesis fails when trying to hash signaling NaNs. I'm not too familiar ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_lookup.py b/hypothesis-python/tests/cover/test_lookup.py index ec99d728a..1fa1088f3 100644 --- a/hypothesis-python/tests/cover/test_lookup.py +++ b/hypothesis-python/tests/cover/test_lookup.py @@ -632,3 +632,21 @@ def test_can_cast(): def test_timezone_lookup(type_): ...
[ "hypothesis-python/tests/cover/test_lookup.py::test_generic_collections_only_use_hashable_elements[Set]", "hypothesis-python/tests/cover/test_lookup.py::test_generic_collections_only_use_hashable_elements[FrozenSet]", "hypothesis-python/tests/cover/test_lookup.py::test_generic_collections_only_use_hashable_elem...
[ "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[ByteString]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[Callable]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[DefaultDict]", "hypothesis-python/tests/cover/test_lookup.py::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/issues/2...
e8326f899e037904a8e47928e4eedec6a56cf5ef
2020-07-17 21:51:37
docker.io/swerebenchv2/samuelcolvin-pydantic:1737-e8326f8
samuelcolvin__pydantic-1737
Method: BaseModel.__init__(self, **data) -> BaseModel Location: pydantic/main.py Inputs: keyword arguments matching model fields; fields may be annotated with `enum.Enum` or `enum.IntEnum` (or subclasses thereof). Outputs: a model instance; if a value for an `Enum` field is not an instance of the enum (or an allowed ...
python
MIT
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52084de03..97e5776b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.6', '3.7', '3.8'] + python-version: ['3.6', '...
feat(field): add `Enum` and `IntEnum` as valid types for fields _This is a proposal as I agree with the author of the issue. Feel free to close it if need be_ ## Change Summary Support `Enum` type as follows ```python class Model(BaseModel): fruit: Enum ``` ## Related issue number closes #1735 ##...
Doesn't correctly validate when type is Enum # Bug Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`: ``` pydantic version: 1.5.1 pydantic compiled: True install path: /Users/<redacted>/.venvs/<redacted>/lib/python3.6/site-packages/pydan...
samuelcolvin/pydantic
diff --git a/tests/requirements.txt b/tests/requirements.txt index b7a012b01..8fee4e032 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,8 +2,8 @@ black==20.8b1 coverage==5.3 flake8==3.8.4 flake8-quotes==3.2.0 -isort==5.6.1 -mypy==0.782 +isort==5.6.4 +mypy==0.790 pycodestyle==2.6.0 pyflakes==...
[ "tests/test_schema.py::test_enum_schema_custom_field", "tests/test_schema.py::test_enum_and_model_have_same_behaviour", "tests/test_schema.py::test_unenforced_constraints_schema[kwargs8-Callable]", "tests/test_schema.py::test_unparameterized_schema_generation", "tests/test_schema.py::test_frozen_set", "te...
[ "tests/test_schema.py::test_key", "tests/test_schema.py::test_by_alias", "tests/test_schema.py::test_by_alias_generator", "tests/test_schema.py::test_sub_model", "tests/test_schema.py::test_schema_class", "tests/test_schema.py::test_schema_repr", "tests/test_schema.py::test_schema_class_by_alias", "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": "hard", "external_urls": [ "https://pydantic-docs.helpmanual.io/usage/types/#enums-a...
3cd4a4f40a62aa28e19d3fdcd58bdc2bf7def373
2020-11-05 00:33:17
docker.io/swerebenchv2/niconoe-pyinaturalist:72-3cd4a4f
niconoe__pyinaturalist-72
Function: get_access_token(username: str = None, password: str = None, app_id: str = None, app_secret: str = None, user_agent: str = None) → str Location: pyinaturalist.rest_api Inputs: Optional credential strings; if any are omitted the function falls back to environment variables `INAT_USERNAME`, `INAT_PASSWORD`,...
python
MIT
diff --git a/README.md b/README.md index e821c43..80a9c2c 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,14 @@ This requires creating an [iNaturalist app](https://www.inaturalist.org/oauth/ap ```python from pyinaturalist.rest_api import get_access_token token = get_access_token( - username='<your_inaturalis...
Add support for providing credentials via environment variables Closes #68 * Added tests * Added examples of setting environment variables in python, bash, Windows cmd, and PowerShell
Add support for providing credentials via environment variables As an alternative to passing user credentials as arguments to `rest_api.get_access_token()`, it would be useful to also have the option of providing these via shell environment variables, for example: ``` export INAT_USERNAME="" export INAT_PASSWORD="" ...
niconoe/pyinaturalist
diff --git a/test/conftest.py b/test/conftest.py index b3e156e..34703c7 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -11,6 +11,14 @@ from unittest.mock import MagicMock HTTP_FUNC_PATTERN = re.compile(r"(get|put|post|delete)_.+") SAMPLE_DATA_DIR = abspath(join(dirname(__file__), "sample_data")) + +MOCK_CR...
[ "test/test_rest_api.py::test_get_access_token__envars", "test/test_rest_api.py::test_get_access_token__mixed_args_and_envars", "test/test_rest_api.py::test_get_access_token__missing_creds" ]
[ "test/test_request_params.py::test_convert_bool_params", "test/test_request_params.py::test_convert_datetime_params[created_d1-19951231T235959-1995-12-31T23:59:59-08:00]", "test/test_request_params.py::test_convert_datetime_params[created_d2-2008-08-08", "test/test_request_params.py::test_convert_datetime_par...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://docs.aws.amazon.com/cli/latest/userguide/cli-c...
2920a2653ca6d30269d16562ba55848bce70bacb
2025-02-14 15:20:39
docker.io/swerebenchv2/galileo-galilei-kedro-mlflow:633-2920a26
galileo-galilei__kedro-mlflow-633
Method: MlflowArtifactDataset.__init__(self, dataset: dict, run_id: str | None = None, artifact_path: str | None = None, credentials: dict | None = None, metadata: dict | None = None) Location: kedro_mlflow/io/artifacts/mlflow_artifact_dataset.py Inputs: - dataset – definition dict for the underlying Kedro dataset (typ...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d9ec86..e3e8b55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- :sparkles: All datasets can now take a metadata parameter ([#625](https://github.com/Galileo-Galilei/kedro-mlflow/issues/625), [#633](https://github.com/Ga...
Enable all datasets to take a `metadata` parameter ## Description Fixes #625. Make all kedro-mlflow datasets take a `metadata` parameter, thus aligning with kedro datasets. ## Development notes Added a `metadata` parameters to all datasets and tested that it is properly set and it does not appear when `datase...
Add `metadata` parameters to kedro-mlflow datasets <!-- **_If you like the repo, please give it a :star:_** --> Hi, First of all, thanks a lot for this amazing plugin! ## Description <!-- A clear and concise description of what you want to achieve. An image or a code example is worth thousand words! --> It seems tha...
Galileo-Galilei/kedro-mlflow
diff --git a/tests/io/artifacts/test_mlflow_artifact_dataset.py b/tests/io/artifacts/test_mlflow_artifact_dataset.py index 8d67ee6..1590731 100644 --- a/tests/io/artifacts/test_mlflow_artifact_dataset.py +++ b/tests/io/artifacts/test_mlflow_artifact_dataset.py @@ -376,3 +376,23 @@ def test_artifact_dataset_legacy_datas...
[ "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_artifact_dataset_with_metadata[None]", "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_artifact_dataset_with_metadata[metadata1]", "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_artifact_dataset_with_metadata[metadata2]", "tests/io...
[ "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_mlflow_csv_pkl_dataset_save_reload[CSVDataset-.csv-df1-None]", "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_mlflow_csv_pkl_dataset_save_reload[pandas.CSVDataset-.csv-df1-None]", "tests/io/artifacts/test_mlflow_artifact_dataset.py::test_mlflo...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://docs.kedro.org/en/stable/hooks/common_use_case...
c9536b117e39fef41b9ccb5e07463eecda15ba2a
2024-11-14 20:56:44
docker.io/swerebenchv2/getmoto-moto:8315-c9536b1
getmoto__moto-8315
Method: IoTClient.get_indexing_configuration(self) Location: moto/iot/responses.py → def get_indexing_configuration(self) → json.dumps(self.iot_backend.get_index_configuration()) Inputs: No required parameters. The call is made on a boto3 IoT client (e.g., boto3.client("iot")). Outputs: Returns a JSON‑encoded dict (co...
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_...
S3: get_object_attributes() now also works for Glacier objects Fixes #8307
S3 get_object_attributes fails for GLACIER objects Environment: Python 3.11 Windows 11 Pro moto==5.0.20 pytest==8.3.3 My failing test ``` def test_get_glacier_object_attributes(self) -> None: s3 = client( "s3", region_name="eu-west-1" ) s3.create_buc...
getmoto/moto
diff --git a/tests/test_iot/test_iot_indexing_configuration.py b/tests/test_iot/test_iot_indexing_configuration.py new file mode 100644 index 000000000..d2ec29a58 --- /dev/null +++ b/tests/test_iot/test_iot_indexing_configuration.py @@ -0,0 +1,63 @@ +import boto3 + +from moto import mock_aws + + +@mock_aws +def test_va...
[ "tests/test_iot/test_iot_indexing_configuration.py::test_validate_default_indexing_configuration", "tests/test_iot/test_iot_indexing_configuration.py::test_update_indexing_mode", "tests/test_s3/test_s3_storageclass.py::test_s3_get_object_from_glacier" ]
[ "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_standard", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_infrequent_access", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_intelligent_tiering", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_copy", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
5b804940e3a885bb46b5b5e827d3aab837df62ef
2025-01-05 12:44:12
docker.io/swerebenchv2/getmoto-moto:8469-5b80494
getmoto__moto-8469
Function: split_words(s: str) -> List[str] Location: moto.secretsmanager.list_secrets.filters Inputs: - s (str): The string to be split into words. Words are identified by transitions from lowercase to uppercase letters and by non‑letter delimiters. Empty tokens are ignored. Outputs: - List[str]: A list of word token...
python
Apache-2.0
diff --git a/moto/secretsmanager/list_secrets/filters.py b/moto/secretsmanager/list_secrets/filters.py index 5a863b01a..2d0a5b828 100644 --- a/moto/secretsmanager/list_secrets/filters.py +++ b/moto/secretsmanager/list_secrets/filters.py @@ -1,3 +1,4 @@ +import re from typing import TYPE_CHECKING, List if TYPE_CHECK...
SecretsManager: list_secrets() now properly splits words when filtering Fixes #8421 [The documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/list_secrets.html) states that when filtering by e.g. name or description, the search happens by `Prefix match`. W...
SecretsManager List Secrets Filter with Key all deviated from boto3 ## How to reproduce ```python @pytest.fixture def secretsmanager_client(): with mock_aws(): yield boto3.client("secretsmanager", region_name="us-east-1") def test_list_secrets(secretsmanager_client): secretsmanager_client.create_...
getmoto/moto
diff --git a/tests/test_secretsmanager/test_list_secrets.py b/tests/test_secretsmanager/test_list_secrets.py index 37de56a78..ba26bba7c 100644 --- a/tests/test_secretsmanager/test_list_secrets.py +++ b/tests/test_secretsmanager/test_list_secrets.py @@ -1,4 +1,5 @@ from datetime import datetime +from uuid import uuid4 ...
[ "tests/test_secretsmanager/test_list_secrets.py::test_empty", "tests/test_secretsmanager/test_list_secrets.py::test_list_secrets", "tests/test_secretsmanager/test_list_secrets.py::test_with_name_filter", "tests/test_secretsmanager/test_list_secrets.py::test_with_tag_key_filter", "tests/test_secretsmanager/t...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
d376920146ca0ec422286cb8434d86b74e64b2fa
2021-01-24 01:32:51
docker.io/swerebenchv2/projectmesa-mesa:979-d376920
projectmesa__mesa-979
Method: FixedBatchRunner.__init__(self, model_cls, parameters_list, fixed_parameters=None, iterations=1, max_steps=100, model_reporters=None, agent_reporters=None) Location: mesa.batchrunner Inputs: - **model_cls**: class – the Mesa Model subclass to instantiate for each run. - **parameters_list**: list[dict] – each di...
python
Apache-2.0
diff --git a/mesa/batchrunner.py b/mesa/batchrunner.py index 0c43c584..4178cb23 100644 --- a/mesa/batchrunner.py +++ b/mesa/batchrunner.py @@ -100,6 +100,11 @@ class FixedBatchRunner: self.iterations = iterations self.max_steps = max_steps + for params in self.parameters_list: + if...
Fix order of variable_params in model and agent vars data frames Demonstrates and ~(hopefully soon)~ fixes #978. As mentioned in https://github.com/projectmesa/mesa/issues/978#issuecomment-765809899, there's an issue where `set()` is used, which results in a non-deterministic order of the columns of data frames crea...
BatchRunner swaps content of variable_params columns, only in random proportion of executions **Describe the bug** When using BatchRunner, and calling get_model_vars_dataframe(), the contents of the columns in the output of two variable parameters are swapped: the column heads stay the same, but matches with the para...
projectmesa/mesa
diff --git a/tests/test_batchrunner.py b/tests/test_batchrunner.py index 86714911..564b4e36 100644 --- a/tests/test_batchrunner.py +++ b/tests/test_batchrunner.py @@ -8,7 +8,7 @@ import unittest from mesa import Agent, Model from mesa.time import BaseScheduler from mesa.datacollection import DataCollector -from mesa...
[ "tests/test_batchrunner.py::TestBatchRunner::test_agent_level_vars", "tests/test_batchrunner.py::TestBatchRunner::test_model_level_vars", "tests/test_batchrunner.py::TestBatchRunner::test_model_with_variable_kwargs_list_mixed_length" ]
[ "tests/test_batchrunner.py::TestBatchRunner::test_model_with_fixed_parameters_as_kwargs", "tests/test_batchrunner.py::TestBatchRunner::test_model_with_only_fixed_parameters", "tests/test_batchrunner.py::TestBatchRunner::test_model_with_variable_and_fixed_kwargs", "tests/test_batchrunner.py::TestBatchRunner::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.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
7870eb344b143dbc3b4f1a03b0a1e178196b8ef8
2024-06-10 12:29:08
docker.io/swerebenchv2/amaranth-lang-amaranth:1377-7870eb3
amaranth-lang__amaranth-1377
Method: Module.submodules.__setitem__(self, name: str, submodule: Module) Location: amaranth/hdl/_dsl.py Inputs: - **name** – a string identifier for the submodule; must be non‑empty. - **submodule** – an instance of :class:`Module` to be added as a named submodule. Outputs: - No return value. - Raises :class:`NameE...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_dsl.py b/amaranth/hdl/_dsl.py index a73f20f..c66df2e 100644 --- a/amaranth/hdl/_dsl.py +++ b/amaranth/hdl/_dsl.py @@ -654,6 +654,8 @@ class Module(_ModuleBuilderRoot, Elaboratable): if name == None: self._anon_submodules.append((submodule, src_loc)) else: + ...
Add a diagnostic for slicing `data.View` This is meaningless for a view but meaningful for the underlying value. Fixes #1375.
Indexing into signals with layouts could be improved Motivating example: If you have `s = Signal(Layout)`, you can index a specific field with `s.field` or `s[field]`; or index a slice with `s.as_value()[0:4]`. If you try to index it directly as `s[0:4]` you get `KeyError: slice(0, 4, None)`. This is a bit of a s...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_dsl.py b/tests/test_hdl_dsl.py index a255ff6..ecbed9d 100644 --- a/tests/test_hdl_dsl.py +++ b/tests/test_hdl_dsl.py @@ -887,6 +887,12 @@ class DSLTestCase(FHDLTestCase): with self.assertRaisesRegex(NameError, r"^Submodule named 'foo' already exists$"): m1.submodules.fo...
[ "tests/test_hdl_dsl.py::DSLTestCase::test_submodule_named_empty", "tests/test_lib_data.py::ViewTestCase::test_index_wrong_slice" ]
[ "tests/test_hdl_dsl.py::DSLTestCase::test_Case_after_Default_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_bits_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_outside_Switch_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_pattern_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
c8db79c15e5778757d6cdbdffcbf35101cef99d0
2025-03-08 14:09:17
docker.io/swerebenchv2/systemd-mkosi:3586-c8db79c
systemd__mkosi-3586
Method: Drive.__init__(self, id: str, size: int, directory: Optional[Path], options: Optional[str], file_id: str, persist: bool = False) Location: mkosi/config.py (class Drive) Inputs: - **id** – identifier string for the drive. - **size** – size in bytes (int). - **directory** – optional Path where the backing fi...
python
null
diff --git a/mkosi/config.py b/mkosi/config.py index 002b3e41..7ebb3daa 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -156,6 +156,7 @@ class Drive: directory: Optional[Path] options: Optional[str] file_id: str + persist: bool # We use negative numbers for specifying special constants @@ -...
Add option to persist runtime drives Fixes #3576
Offer persist flag for `Drives=` Currently the `Drives=` option is very similar to a scratch disk as they are removed after each run. It would be useful to add a new flag `persist`, which, when set, suppresses removal of the respective file. This flag should require that `file-id` is set for it to function. This is us...
systemd/mkosi
diff --git a/tests/test_json.py b/tests/test_json.py index 1207459a..ff5d4bf4 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -156,6 +156,7 @@ def test_config() -> None: "FileId": "red", "Id": "abc", "Options": "abc,qed", + "P...
[ "tests/test_json.py::test_config" ]
[ "tests/test_json.py::test_args[None]", "tests/test_json.py::test_args[/baz/qux]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
fe9fcd32cd51232b161214b9eccfd215d4713227
2025-04-30 14:12:18
docker.io/swerebenchv2/jlowin-fastmcp:283-fe9fcd3
jlowin__fastmcp-283
Method: FastMCPOpenAPI.__init__(self, openapi_spec: dict, client: httpx.AsyncClient, route_maps: list[RouteMap] | None = None) Location: src/fastmcp/server/openapi.py Inputs: - openapi_spec – the OpenAPI document generated by FastAPI (JSON‑serialisable dictionary). - client – an httpx.AsyncClient used to call the under...
python
Apache-2.0
diff --git a/src/fastmcp/server/openapi.py b/src/fastmcp/server/openapi.py index 65e3781..ce26dd8 100644 --- a/src/fastmcp/server/openapi.py +++ b/src/fastmcp/server/openapi.py @@ -10,12 +10,12 @@ from re import Pattern from typing import TYPE_CHECKING, Any, Literal import httpx -from mcp.types import TextContent +...
Ensure openapi tool responses are properly converted Closes #275, supersedes #277 If an openapi tool returned a list, it was not properly converted to an MCP response. This ensures _convert_to_content is always called.
api endpoints returning lists of items cause error in openapi ### Description Given there's an endpoint in openapi spec consisting of a list as root. When the endpoint gets called and returns back the list The response is not converted to TextContent and therefor throws an error ### Example Code ```Python ``` ### ...
jlowin/fastmcp
diff --git a/tests/server/test_openapi.py b/tests/server/test_openapi.py index 49cc6f8..8ef8c05 100644 --- a/tests/server/test_openapi.py +++ b/tests/server/test_openapi.py @@ -19,6 +19,8 @@ from fastmcp.server.openapi import ( OpenAPIResource, OpenAPIResourceTemplate, OpenAPITool, + RouteMap, + Ro...
[ "tests/server/test_openapi.py::TestTools::test_call_tool_return_list" ]
[ "tests/server/test_openapi.py::test_create_openapi_server", "tests/server/test_openapi.py::test_create_openapi_server_classmethod", "tests/server/test_openapi.py::test_create_fastapi_server_classmethod", "tests/server/test_openapi.py::test_create_openapi_server_with_timeout", "tests/server/test_openapi.py::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/jlowin/fastmcp/blob/ee68d1429d4fc3c...
053fc16c031eaf4d3efe3f712466707b0a175396
2023-02-27 13:28:04
docker.io/swerebenchv2/ploomber-jupysql:168-053fc16
ploomber__jupysql-168
Function: get_table_statistics(name: str, schema: str | None = None) Location: sql.inspect Inputs: - **name** – the table name to profile (required, string). - **schema** – optional schema qualifier for the table (string or None). Outputs: Returns an instance of `TableDescription` containing descriptive statistics...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5be7c4d..392ae3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # CHANGELOG ## 0.7.0dev - +* [Feature] Adds `%sqlcmd profile` (#66) * [API Change] Deprecates old SQL parametrization: `$var`, `:var`, and `{var}` in favor of `{{var}}` * [Feature] Adds sql...
Table profile added ## Describe your changes `profile` magic command added to `%sqlcmd`. How to use it: `%sqlcmd profile -t table_name` ## Issue ticket number and link Closes #66 ## Checklist before requesting a review - [X] I have performed a self-review of my code - [X] I have added thorough [tests](...
proposal: `%sqlcmd profile` When working with a new dataset, practitioners need to explore and summarize it quickly: column values, types, distributions, etc. We could create a `%sqlcmd profile` magic that produces an HTML table/report of a table. Similar to [pandas-profiling](https://github.com/ydataai/pandas-profilin...
ploomber/jupysql
diff --git a/src/tests/integration/test_generic_db_opeations.py b/src/tests/integration/test_generic_db_opeations.py index b39ddf2..0590783 100644 --- a/src/tests/integration/test_generic_db_opeations.py +++ b/src/tests/integration/test_generic_db_opeations.py @@ -3,6 +3,7 @@ import pytest import warnings from sql.te...
[ "src/tests/test_magic_cmd.py::test_error[%sqlcmd", "src/tests/test_magic_cmd.py::test_table_schema_profile", "src/tests/test_magic_cmd.py::test_table_profile_store" ]
[ "src/tests/test_magic_cmd.py::test_tables", "src/tests/test_magic_cmd.py::test_tables_with_schema", "src/tests/test_magic_cmd.py::test_columns", "src/tests/test_magic_cmd.py::test_columns_with_schema" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/ydataai/pandas-profiling" ], ...
2de021529465a04c023005b7178b4f79d0eb59f2
2023-12-10 12:18:02
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1315-2de0215
pyjanitor-devs__pyjanitor-1315
Method: pandas.DataFrame.explode_index(self, names_sep: Union[str, None] = None, names_pattern: Union[str, None] = None, axis: str = "columns", level_names: list = None) → pandas.DataFrame Location: janitor/functions/explode_index.py Inputs: - **self** – the calling DataFrame. - **names_sep** – optional string separato...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7675607..c6b874a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - [ENH] `select` function now supports variable arguments - PR #1288 @samukweku - [ENH] `conditional_join` now supports timedelta dtype. - PR #1297 @samukweku - [ENH] `get_join_indices`...
[ENH] explode_index # PR Description Please describe the changes proposed in the pull request: - add explode_index function **This PR resolves #1283 .** <!-- As you go down the PR template, please feel free to delete sections that are irrelevant. --> # PR Checklist <!-- This checklist exists for newco...
explode_levels # Brief Description I would like to propose an `explode_levels` function, as an inverse to `collapse_levels` - essentially converting a single column index to a MultiIndex. This offers a chaining alternative to `df.columns = df.columns.str.split(names_sep, expand=True)` # Example API ```pyth...
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_explode_index.py b/tests/functions/test_explode_index.py new file mode 100644 index 0000000..48bb685 --- /dev/null +++ b/tests/functions/test_explode_index.py @@ -0,0 +1,104 @@ +import pandas as pd +import pytest +from pandas.testing import assert_frame_equal + + +@pytest.fixture +def ...
[ "tests/functions/test_explode_index.py::test_type_axis", "tests/functions/test_explode_index.py::test_axis_values", "tests/functions/test_explode_index.py::test_names_sep_pattern", "tests/functions/test_explode_index.py::test_names_sep_pattern_both_none", "tests/functions/test_explode_index.py::test_names_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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
54377ab72a838b278455e9ed6cd352316325619e
2020-05-22 05:47:44
docker.io/swerebenchv2/scoutapp-scout-apm-python:523-54377ab
scoutapp__scout_apm_python-523
Function: get_python_packages_versions() Location: scout_apm.core.metadata Inputs: None (no parameters). Internally iterates over `importlib.metadata.distributions()` (or `importlib_metadata.distributions` on older Python) to read each distribution’s `metadata` mapping. Outputs: List[Tuple[str, str]] – a sorted list of...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index b283850..3995556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,23 @@ # Changelog +## Pending + +### Fixed + +- Fix crash when scanning packages that have a Name or Version that is + `None`. + ([Issue #522](https://github.com/scoutapp/scout_apm_python/issues...
Fix crash when scanning packages with incomplete metadata Fixes #522.
Error with the scout add-on in Heroku With version 2.14.1 of this package, I encounter the following error: ` File "/code/nluproxy/__init__.py", line 3, in <module> from .celery import app as celery_app File "/code/nluproxy/celery.py", line 12, in <module> scout_apm.celery.install(app) File "/...
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_metadata.py b/tests/unit/core/test_metadata.py index e7d5243..8cbe03b 100644 --- a/tests/unit/core/test_metadata.py +++ b/tests/unit/core/test_metadata.py @@ -5,8 +5,8 @@ import sys import pytest -from scout_apm.core.metadata import report_app_metadata -from tests.compat import mo...
[ "tests/unit/core/test_metadata.py::test_get_python_packages_versions_None_package" ]
[ "tests/unit/core/test_metadata.py::test_report_app_metadata", "tests/unit/core/test_metadata.py::test_report_app_metadata_no_importlib_metadata" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
7cabf206313e8b1b0e46eaa0e1d1af1b1b6ad318
2024-02-16 16:18:53
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3060-7cabf20
aws-cloudformation__cfn-lint-3060
Method: Template.has_serverless_transform(self) Location: src/cfnlint/template/template.py Inputs: None Outputs: bool – True if the template’s Transform declaration includes "AWS::Serverless-2016-10-31", otherwise False Description: Detects whether a CloudFormation template uses the SAM Serverless transform, enabling r...
python
MIT-0
diff --git a/src/cfnlint/rules/resources/properties/PropertiesTemplated.py b/src/cfnlint/rules/resources/properties/PropertiesTemplated.py index 23f70fc81..c79fb2c7e 100644 --- a/src/cfnlint/rules/resources/properties/PropertiesTemplated.py +++ b/src/cfnlint/rules/resources/properties/PropertiesTemplated.py @@ -60,6 +6...
Set Application location when its a string *Issue #, if available:* fix #3047 *Description of changes:* - Ignore W3002 when the template is serverless By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Support SAM `AWS::Serverless::Application` without triggering W3002 ### Is this feature request related to a new rule or cfn-lint capabilities? rules, New capability ### Describe the feature you'd like to request This is similar to https://github.com/aws-cloudformation/cfn-lint/issues/2297. When using a SAM template...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/good/resources/properties/templated_code_sam.yaml b/test/fixtures/templates/good/resources/properties/templated_code_sam.yaml new file mode 100644 index 000000000..dda15233c --- /dev/null +++ b/test/fixtures/templates/good/resources/properties/templated_code_sam.yaml @@ -0,0 +1,6 @@...
[ "test/unit/rules/resources/properties/test_properties_templated.py::TestPropertiesTemplated::test_file_positive" ]
[ "test/unit/rules/resources/properties/test_properties_templated.py::TestPropertiesTemplated::test_file_negative_4" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/aws-cloudformation/cfn-lint/issues/22...
b27cc1bd913bc8f0e2761fa641f7dd8eaa2257f3
2023-04-06 13:41:37
docker.io/swerebenchv2/myremylar-pygame-gui:439-b27cc1b
myremylar__pygame_gui-439
Method: UIPanel.__init__(self, relative_rect: pygame.Rect, starting_height: int = 1, manager: Optional[IUIManagerInterface] = None, *, element_id: str = 'panel', object_id: Optional[Union[ObjectID, str]] = None, anchors: Optional[Dict[str, Any]] = None, margins: Optional[Dict[str, int]] = None, visible: int = 1, contai...
python
MIT
diff --git a/pygame_gui/elements/ui_button.py b/pygame_gui/elements/ui_button.py index 494a4a3..29841a3 100644 --- a/pygame_gui/elements/ui_button.py +++ b/pygame_gui/elements/ui_button.py @@ -225,7 +225,8 @@ class UIButton(UIElement): if self.held: return self.in_hold_range((hover_x, hover_y)) ...
Unify name for starting height parameter across codebase fixes #407
Make starting layer height params consistent Just a small UX issue. In `UIPanel` the param is `starting_layer_height` but in `UIElement` it's `starting_height`, while in `UITextBox` it's `layer_starting_height`. **Expected behaviour** Preferably these would all be the same param name, unless you have a particular d...
MyreMylar/pygame_gui
diff --git a/tests/test_elements/test_ui_panel.py b/tests/test_elements/test_ui_panel.py index 89ec1ce..2fdbc37 100644 --- a/tests/test_elements/test_ui_panel.py +++ b/tests/test_elements/test_ui_panel.py @@ -15,12 +15,12 @@ class TestUIPanel: def test_creation(self, _init_pygame, _display_surface_return_none, d...
[ "tests/test_elements/test_ui_panel.py::TestUIPanel::test_creation", "tests/test_elements/test_ui_panel.py::TestUIPanel::test_creation_with_margins", "tests/test_elements/test_ui_panel.py::TestUIPanel::test_update", "tests/test_elements/test_ui_panel.py::TestUIPanel::test_add_button", "tests/test_elements/te...
[ "tests/test_elements/test_ui_text_box.py::TestUITextBox::test_creation", "tests/test_elements/test_ui_text_box.py::TestUITextBox::test_set_text", "tests/test_elements/test_ui_text_box.py::TestUITextBox::test_kwargs_set_text", "tests/test_elements/test_ui_text_box.py::TestUITextBox::test_clear", "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": "B2|B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories"...
27ca3c4340ebd47e56f764cd69804fcd2490e262
2022-10-21 00:56:40
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2428-27ca3c4
aws-cloudformation__cfn-lint-2428
Function: cfnlint.decode.cfn_json.load(filename) Location: src/cfnlint/decode/cfn_json.py Inputs: - **filename** (str): Path to a JSON CloudFormation template file. The file must exist and be readable. Outputs: - Returns the parsed template as a Python object (typically a dict). - May raise **cfnlint.decode.cfn_json...
python
MIT-0
diff --git a/src/cfnlint/decode/cfn_json.py b/src/cfnlint/decode/cfn_json.py index 4b94f1326..c5e2c5cc4 100644 --- a/src/cfnlint/decode/cfn_json.py +++ b/src/cfnlint/decode/cfn_json.py @@ -20,11 +20,13 @@ class DuplicateError(Exception): Error thrown when the template contains duplicates """ - def __init...
feat(decode) - Report on all duplicates in a yaml/json file *Issue #, if available:* fix #1906 *Description of changes:* - Update the json/yaml decoding so that all duplicates are reported back By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under ...
Only the first two Resource Duplicate are found - E0000 *cfn-lint version: (`cfn-lint 0.45.0`) Build from source: Commit: 002b3d1* *Description of issue.* This issue was 1st described on #1868 and fixed on #1900 I was validating the fix and it works if there are two duplicated resources, but not if you have 3...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/bad/duplicate.json b/test/fixtures/templates/bad/duplicate.json index 2f945d489..e589e104f 100644 --- a/test/fixtures/templates/bad/duplicate.json +++ b/test/fixtures/templates/bad/duplicate.json @@ -19,6 +19,12 @@ "Properties" : { "TopicName" : "deployed-topic" } - ...
[ "test/unit/module/test_api.py::TestLint::test_duplicate_json_template", "test/unit/module/test_duplicate.py::TestDuplicate::test_fail_run", "test/unit/module/test_duplicate.py::TestDuplicate::test_fail_yaml_run" ]
[ "test/unit/module/test_api.py::TestLint::test_invalid_json_template", "test/unit/module/test_api.py::TestLint::test_invalid_json_template_lint_all", "test/unit/module/test_api.py::TestLint::test_invalid_yaml_template", "test/unit/module/test_api.py::TestLint::test_invalid_yaml_template_lint_all", "test/unit...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
8bf55cbe0e9000bc9ec08281f8442a2cffa522ad
2023-03-17 23:38:59
docker.io/swerebenchv2/getmoto-moto:6086-8bf55cb
getmoto__moto-6086
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/cloudformation/models.py b/moto/cloudformation/models.py index c13d60fbd..4d07a96b2 100644 --- a/moto/cloudformation/models.py +++ b/moto/cloudformation/models.py @@ -25,6 +25,7 @@ from .utils import ( generate_stackset_id, yaml_tag_constructor, validate_template_cfn_lint, + get_stac...
CloudFormation - support AWS::CloudFormation::Stack-resources Fixes #6020 Involves some minor refactorings: - extracting the `get_stack_from_s3_url`-method to utils.py, as it is now called from both responses.py and models.py - `MODEL_LIST` is now essentially a lazy property, to avoid any timing issues (e.g., t...
Feat: Cloudformation Stack (as cludformation resource) Stacks are already supported via `mock_cloudformation` ``` boto_cloudformation_client.create_stack(StackName=stack_name, TemplateBody=str(template_dict)) ``` Would be good to be able to use cloudformation as well to create new stacks. Example resource templa...
getmoto/moto
diff --git a/tests/test_cloudformation/test_cloudformation_nested_stacks.py b/tests/test_cloudformation/test_cloudformation_nested_stacks.py new file mode 100644 index 000000000..ce4b6919b --- /dev/null +++ b/tests/test_cloudformation/test_cloudformation_nested_stacks.py @@ -0,0 +1,183 @@ +import boto3 +import json +fr...
[ "tests/test_cloudformation/test_cloudformation_nested_stacks.py::test_create_basic_stack", "tests/test_cloudformation/test_cloudformation_nested_stacks.py::test_create_stack_with_params", "tests/test_cloudformation/test_cloudformation_nested_stacks.py::test_update_stack_with_params", "tests/test_cloudformatio...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
6a88d238d735a87be13ff4be024fc7978ce40655
2023-10-27 18:21:25
docker.io/swerebenchv2/rstudio-vetiver-python:201-6a88d23
rstudio__vetiver-python-201
Function: vetiver_endpoint(url: str) -> str Location: vetiver.server Inputs: - **url** (str): the prediction endpoint URL; may include a trailing “/”. Outputs: - (str): the same URL with any trailing slash removed (default: `"http://127.0.0.1:8000/predict"`). Description: Normalizes a Vetiver prediction endpoint by s...
python
MIT
diff --git a/setup.cfg b/setup.cfg index ef3a541..62cd44f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ install_requires = nest-asyncio requests pins>=0.7.1 - rsconnect-python>=1.11.0 + rsconnect-python>=1.8.0 plotly pip-tools httpx diff --git a/vetiver/rsconnect.py b/veti...
[BUG] remove trailing backslash closes #194
handling trailing backslash on prediction endpoints Currently, on Posit Connect, if you add a trailing backslash-- `connectapi.com/myapi/predict/` rather than `connectapi.com/myapi/predict`-- you get a mysterious error: ```python ConnectionError: HTTPConnectionPool(host='xxx', port=000): Max retries exceeded with u...
rstudio/vetiver-python
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aa4cec2..2c59f4b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,6 @@ jobs: docker-compose up --build -d pip freeze > requirements.txt make dev - cat requirement...
[ "vetiver/tests/test_server.py::test_vetiver_endpoint" ]
[ "vetiver/tests/test_server.py::test_get_ping", "vetiver/tests/test_server.py::test_get_docs", "vetiver/tests/test_server.py::test_get_metadata", "vetiver/tests/test_server.py::test_get_prototype", "vetiver/tests/test_server.py::test_complex_prototype" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
f21e226bdbea61fe35ea91c111e553c9e7ba59a0
2024-01-23 14:25:28
docker.io/swerebenchv2/ecmwf-earthkit-data:285-f21e226
ecmwf__earthkit-data-285
Method: NetCDFReader.as_level(self, level) Location: earthkit/data/readers/netcdf.py Inputs: - **level**: Union[str, int, float, np.generic] – a coordinate value representing a vertical level. May be a string (e.g., "500") or a numeric type. Outputs: - Returns the original string unchanged if *level* is a `str`. - Ot...
python
Apache-2.0
diff --git a/earthkit/data/readers/netcdf.py b/earthkit/data/readers/netcdf.py index 355c688..d847d68 100644 --- a/earthkit/data/readers/netcdf.py +++ b/earthkit/data/readers/netcdf.py @@ -8,6 +8,7 @@ # import datetime +import logging from contextlib import closing from itertools import product @@ -23,6 +24,8 @...
Allow string coordinates in netcdf Fixes #260
String coordinates in netcdf datasets https://github.com/ecmwf/earthkit-data/blob/fe88303a00cc3dcbb2890f3dab1ebbb13a9d5c15/earthkit/data/readers/netcdf.py#L36 I'm trying to read a netcdf dataset with string coordinates. The netcdf field is a list of points, each point has an ID (for instance G0001) and a time series...
ecmwf/earthkit-data
diff --git a/tests/netcdf/test_netcdf_fieldlist.py b/tests/netcdf/test_netcdf_fieldlist.py new file mode 100644 index 0000000..fe15119 --- /dev/null +++ b/tests/netcdf/test_netcdf_fieldlist.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python3 + +# (C) Copyright 2020 ECMWF. +# +# This software is licensed under the terms of the ...
[ "tests/netcdf/test_netcdf_fieldlist.py::test_netcdf_fieldlist_string_coord" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/ecmwf/earthkit-data/blob/fe88303a00cc...
52b514e3d7c32a4269a9f0174bcba72fbf192cac
2025-04-21 18:02:37
docker.io/swerebenchv2/openmdao-openmdao:3516-52b514e
openmdao__openmdao-3516
No new interfaces are introduced.
python
custom-check-github
diff --git a/openmdao/drivers/pyoptsparse_driver.py b/openmdao/drivers/pyoptsparse_driver.py index ed8d93199..9f11b6ff2 100644 --- a/openmdao/drivers/pyoptsparse_driver.py +++ b/openmdao/drivers/pyoptsparse_driver.py @@ -191,7 +191,7 @@ class pyOptSparseDriver(Driver): """ if pyoptsparse is None: ...
`pyOptSparseDriver` will now raise an `ImportError` instead of a `RuntimeError` if `pyoptsparse` is not installed. ### Summary `pyOptSparseDriver` will now raise an `ImportError` instead of a `RuntimeError` if `pyoptsparse` is not installed. ### Related Issues - Resolves #3510 ### Backwards incompatibilitie...
When pyoptsparse isn't installed, a RuntimeError is raised instead of an ImportError. ### Desired capability or behavior. When the pyOptSparseDriver detects that pyOptSparse has not been installed, it raises a RuntimeError: if pyoptsparse is None: # pyoptsparse is not installed raise R...
OpenMDAO/OpenMDAO
diff --git a/openmdao/drivers/tests/test_pyoptsparse_driver.py b/openmdao/drivers/tests/test_pyoptsparse_driver.py index 358e28e34..02690b2c1 100644 --- a/openmdao/drivers/tests/test_pyoptsparse_driver.py +++ b/openmdao/drivers/tests/test_pyoptsparse_driver.py @@ -157,7 +157,7 @@ class TestNotInstalled(unittest.TestCas...
[ "openmdao/drivers/tests/test_pyoptsparse_driver.py::TestNotInstalled::test_pyoptsparse_not_installed" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
2ef83aeb1bc08d842d315c9c403be5b1bbfe5881
2020-03-19 14:49:18
docker.io/swerebenchv2/codezonediitj-pydatastructs:177-2ef83ae
codezonediitj__pydatastructs-177
Function: merge_sort_parallel(array, num_threads, **kwargs) Location: pydatastructs.linear_data_structures.algorithms.merge_sort_parallel Inputs: - array: OneDimensionalArray or DynamicOneDimensionalArray instance to be sorted. - num_threads: int, maximum number of threads to use. - start (optional): int, starti...
python
custom-check-github
diff --git a/pydatastructs/linear_data_structures/__init__.py b/pydatastructs/linear_data_structures/__init__.py index a6e0d74..f5dcce9 100644 --- a/pydatastructs/linear_data_structures/__init__.py +++ b/pydatastructs/linear_data_structures/__init__.py @@ -2,7 +2,8 @@ __all__ = [] from . import ( arrays, - l...
Added parallel merge sort <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs or Relevant literature <!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact format, e.g. "Fixes #1234"....
Parallel merge sort #### Description of the problem I propose parallel merge sort in python. Parallel Merge Sort first divides the unsorted list into smallest possible sub-lists, compares it with the adjacent list, and merges it in a sorted order. It implements parallelism very nicely by following the divide and conq...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_algorithm.py b/pydatastructs/linear_data_structures/tests/test_algorithm.py new file mode 100644 index 0000000..d33f802 --- /dev/null +++ b/pydatastructs/linear_data_structures/tests/test_algorithm.py @@ -0,0 +1,33 @@ +from pydatastructs import ( + merge_s...
[ "pydatastructs/linear_data_structures/tests/test_algorithm.py::test_merge_sort_parallel" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://stanford.edu/~rezab/classes/cme323/S16/notes/L...
264035577d7687fff6680eed1a22dadc906b894b
2025-05-18 07:47:12
docker.io/swerebenchv2/pydicom-pynetdicom:998-2640355
pydicom__pynetdicom-998
No new interfaces are introduced.
python
MIT
diff --git a/docs/changelog/v3.0.0.rst b/docs/changelog/v3.0.0.rst index a397639cb..3911eab8a 100644 --- a/docs/changelog/v3.0.0.rst +++ b/docs/changelog/v3.0.0.rst @@ -16,6 +16,8 @@ Changes * Minimum supported pydicom version is 3.0 (:issue:`981`) * Added support for Python 3.13 * Updated SOP classes to version 202...
Improvements for handling P-DATA received during association release <!-- Please use Github's 'Draft Pull Request' for PRs that are in-progress --> #### Reference issue * Change FSM to put P-DATA PDUs into the DIMSE queue instead of the `to_user_queue` * Add `Association._sent_release` flag that is set once associat...
Incoming N-EVENT-REPORT RSP messages during release cause deadlock / exception **Describe the bug** We are currently facing an issue when releasing the association. I looks like N-EVENT-REPORT RSP messages are sometimes arriving or sent during the release procedure and cause 3 different kind of behaviours: - Everythi...
pydicom/pynetdicom
diff --git a/pynetdicom/tests/encoded_pdu_items.py b/pynetdicom/tests/encoded_pdu_items.py index 48d90302f..00747776b 100644 --- a/pynetdicom/tests/encoded_pdu_items.py +++ b/pynetdicom/tests/encoded_pdu_items.py @@ -433,7 +433,7 @@ a_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x00\x00" a_p_abort = b"\x07\x00\x00\x00\x...
[ "pynetdicom/tests/test_acse.py::TestNegotiateRelease::test_release_n_event_report", "pynetdicom/tests/test_acse.py::TestNegotiateRelease::test_release_c_echo_request" ]
[ "pynetdicom/tests/test_acse.py::TestACSE::test_default", "pynetdicom/tests/test_acse.py::TestACSE::test_is_aborted", "pynetdicom/tests/test_acse.py::TestACSE::test_is_release_requested", "pynetdicom/tests/test_acse.py::TestNegotiationRequestor::test_no_requested_cx", "pynetdicom/tests/test_acse.py::TestNego...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pydicom/pynetdicom/files/10968816/f...
c82afe35a8dbe3802e7f97721a1d6f4d84214f43
2022-04-15 15:25:39
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1066-c82afe3
pyjanitor-devs__pyjanitor-1066
Method: DataFrame.count_cumulative_unique(self, column_name: Hashable, dest_column_name: Hashable, case_sensitive: bool = True) → pandas.DataFrame Location: janitor/functions/count_cumulative_unique.py Inputs: - **column_name** – name of an existing column in the calling DataFrame; must be present else a `ValueError` w...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 53e9a2c..3a9b715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - [ENH] Let `filter_string` suit parameters of `Series.str.contains` Issue #1003 and #1047. @Zeroto521 - [ENH] `names_glue` in `pivot_wider` now takes a string form, using str.format_map ...
[ENH/DOC] Fix case_sensitive bug in `count_cumulative_unique` and add MWE # PR Description Please describe the changes proposed in the pull request: - Fixed bug: `count_cumulative_unique` now no longer modifies the column being counted in the output when `case_sensitive` argument is set to False, resolves #1065. ...
Incorrectly modified output of `count_cumulative_unique` when `case_sensitive` is turned off # Brief Description The `case_sensitive` parameter of `count_cumulative_unique` when set to False, would modify the column which is being counted, and this change is then (wrongly) propagated to the output. The implementa...
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_count_cumulative_unique.py b/tests/functions/test_count_cumulative_unique.py index e15ad56..da934a2 100644 --- a/tests/functions/test_count_cumulative_unique.py +++ b/tests/functions/test_count_cumulative_unique.py @@ -1,23 +1,100 @@ +import numpy as np +import pandas as pd import pyt...
[ "tests/functions/test_count_cumulative_unique.py::test_column_name_not_exists", "tests/functions/test_count_cumulative_unique.py::test_original_column_values_not_altered[False]", "tests/functions/test_count_cumulative_unique.py::test_not_case_sensitive_but_nonstring" ]
[ "tests/functions/test_count_cumulative_unique.py::test_original_column_values_not_altered[True]", "tests/functions/test_count_cumulative_unique.py::test_case_sensitive", "tests/functions/test_count_cumulative_unique.py::test_not_case_sensitive" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
42b7386df4382ec69db1cc4d08280650c1e63239
2022-01-04 14:00:27
docker.io/swerebenchv2/bimmerconnected-bimmer-connected:394-42b7386
bimmerconnected__bimmer_connected-394
Method: RemoteServices.trigger_charge_now(self) Location: bimmer_connected.remote_services.RemoteServices Inputs: None (besides the implicit ``self`` instance). Outputs: RemoteServiceStatus – the status object representing the result of the remote “charge now” request (includes success/failure and any event identifi...
python
Apache-2.0
diff --git a/bimmer_connected/account.py b/bimmer_connected/account.py index 2f30326..e24b468 100644 --- a/bimmer_connected/account.py +++ b/bimmer_connected/account.py @@ -10,10 +10,8 @@ This library is not affiliated with or endorsed by BMW Group. import base64 import datetime -import hashlib import json import...
Fix login unauthorized ## Proposed change <!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue in the additional information section. --> This PR includes...
Connection Issue: Authentication failed ### Describe the issue Connection is no longer possible. MyBMW-App is still working, password has not been changed. Last successful update was about 24h ago, error also occured before this last update ```DEBUG:bimmer_connected.account:Getting vehicle list DEBUG:urllib3.conn...
bimmerconnected/bimmer_connected
diff --git a/test/test_remote_services.py b/test/test_remote_services.py index ffdba9b..e773f28 100644 --- a/test/test_remote_services.py +++ b/test/test_remote_services.py @@ -91,6 +91,7 @@ class TestRemoteServices(TestCase): ("CLIMATE_STOP", "trigger_remote_air_conditioning_stop", True), ("V...
[ "test/test_remote_services.py::TestRemoteServices::test_trigger_remote_services" ]
[ "test/test_remote_services.py::TestRemoteServices::test_get_remote_position", "test/test_remote_services.py::TestRemoteServices::test_get_remote_position_fail_without_observer", "test/test_remote_services.py::TestRemoteServices::test_get_remote_position_too_old", "test/test_remote_services.py::TestRemoteServi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
969a0323deecca7dcf3de8bd801cdc9befc116f9
2024-06-10 09:17:39
docker.io/swerebenchv2/stfc-psyclone:2609-969a032
stfc__psyclone-2609
Method: ACCRoutineDirective.__init__(self, parallelism="seq", **kwargs) Location: src/psyclone/psyir/nodes/acc_directives.py Inputs: *parallelism* – optional str specifying the OpenACC routine level of parallelism; allowed values are "seq", "vector", "worker", "gang". Additional keyword arguments passed to the base...
python
BSD-3-Clause
diff --git a/changelog b/changelog index 21278fdbe..b7735c83d 100644 --- a/changelog +++ b/changelog @@ -131,6 +131,10 @@ 47) PR #2625 for #2619. Adds a create function for OMPParallelDoDirective to avoid issues from using its parent class' create method. + 48) PR #2609 for #2407. The OpenACC routine directive an...
(Closes #2407) acc routine clauses This is a small fix that is required because more recent versions of the OpenACC standard mandate that an `ACC routine` have a clause specifying the level of parallelism. This PR just adds a suitable property to the `ACCRoutineDirective` class and defaults it to 'seq'. It also expands...
Support parallelism clause on `ACC routine` directive. ![image](https://github.com/stfc/PSyclone/assets/17409212/49e941f5-3e49-4ace-9d7f-36c26076acd4) where ![image](https://github.com/stfc/PSyclone/assets/17409212/35e39116-c40f-4b4a-b400-573d053c6f83) This issue will allow `gang`, `worker` or `vector` to be specifi...
stfc/PSyclone
diff --git a/src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py b/src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py index ce8de067c..706848462 100644 --- a/src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py +++ b/src/psyclo...
[ "src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py::test_accroutinetrans_with_kern", "src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py::test_accroutinetrans_with_routine", "src/psyclone/tests/psyir/nodes/acc_directives_test.py::test_acc_routine_...
[ "src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py::test_loop_fuse_error", "src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py::test_omp_parallel_loop", "src/psyclone/tests/domain/gocean/transformations/gocean1p0_transformations_test.py::test_omp_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
6a7dd98e9639d7e3b6ab3d67a2c065d7f6309b92
2021-06-10 14:07:08
docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:53-6a7dd98
mondeja__mkdocs-include-markdown-plugin-53
No new interfaces are introduced.
python
Apache-2.0
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 4a3b4f0..8ad3c10 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.1.0 +current_version = 3.1.1 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
Make heading-offset cumulative over nested inclusions Closes #52
Make heading-offset cumulative over nested inclusions Use case is: **File A.md**: ```# A``` **File B.md**: ```# B``` **File C.md**: ``` #C {% include-markdown "./A.md" heading-offset=1 %} {% include-markdown "./B.md" heading-offset=1 %} ``` which is already rendered as following: # C ...
mondeja/mkdocs-include-markdown-plugin
diff --git a/tests/test_nested_includes.py b/tests/test_nested_includes.py index 18bdb54..b141cef 100644 --- a/tests/test_nested_includes.py +++ b/tests/test_nested_includes.py @@ -114,11 +114,44 @@ Some test from final included. ''', id='includer -> file -> markdown', ), + + # cumulative_...
[ "tests/test_nested_includes.py::test_nested_include[cumulative_heading_offset]" ]
[ "tests/test_nested_includes.py::test_nested_include[includer", "tests/test_nested_includes.py::test_nested_include_relpath" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2e3a935a2270af24d7d77de5cb9ee5cbc341fdfc
2024-05-16 15:26:38
docker.io/swerebenchv2/cubed-dev-cubed:462-2e3a935
cubed-dev__cubed-462
Function: map_overlap(func, *args, dtype=None, chunks=None, depth=None, boundary=None, trim=False, **kwargs) Location: cubed.overlap.map_overlap Inputs: - func: callable that will be applied to each overlapped block. - *args: one or more Cubed array arguments (currently only one is supported); the array(s) to map over....
python
Apache-2.0
diff --git a/cubed/__init__.py b/cubed/__init__.py index c04ce4d0..ffa3abe6 100644 --- a/cubed/__init__.py +++ b/cubed/__init__.py @@ -18,6 +18,7 @@ from .core.array import compute, measure_reserved_mem, visualize from .core.gufunc import apply_gufunc from .core.ops import from_array, from_zarr, map_blocks, store, to...
Limited implementation of map_overlap Fixes #199
Add map_overlap as a new core op It would be nice to add `map_overlap` alongside `map_blocks`, `blockwise`, `rechunk`, and `apply_gufunc`. It's currently not directly used within xarray (even within `xarray.map_blocks`, which builds a HLG), but maybe it could / should be used there (cc @dcherian) Regardless I thi...
cubed-dev/cubed
diff --git a/cubed/tests/test_overlap.py b/cubed/tests/test_overlap.py new file mode 100644 index 00000000..0d8e3a18 --- /dev/null +++ b/cubed/tests/test_overlap.py @@ -0,0 +1,79 @@ +import numpy as np +from numpy.testing import assert_array_equal + +import cubed +import cubed.array_api as xp + + +def test_map_overlap_...
[ "cubed/tests/test_overlap.py::test_map_overlap_1d", "cubed/tests/test_overlap.py::test_map_overlap_2d", "cubed/tests/test_overlap.py::test_map_overlap_trim" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/xgcm/xgcm/blob/f4adb05fab54a852ad3d...
41ac43997e8517d81e1df1f7ac89ef764193dd50
2024-02-13 00:18:32
docker.io/swerebenchv2/sdv-dev-rdt:760-41ac439
sdv-dev__rdt-760
Function: learn_rounding_digits(data) Location: rdt.transformers.utils.learn_rounding_digits Inputs: *data* – a **pandas.Series** containing numeric values (may include NaN or infinite values). The series name is used for logging when no rounding scheme is detected. Outputs: **int** – the maximum number of decimal plac...
python
custom-check-github
diff --git a/rdt/transformers/numerical.py b/rdt/transformers/numerical.py index 86bc437..94be5b7 100644 --- a/rdt/transformers/numerical.py +++ b/rdt/transformers/numerical.py @@ -1,7 +1,5 @@ """Transformers for numerical data.""" import copy -import logging -import sys import warnings import numpy as np @@ -11,...
Move `_learn_rounding_digit` from `FloatFormatter` to `utils` CU-86ayzwvxg, Resolve #750.
Move the _learn_rounding_digits of the FloatFormatter into a helper ### Problem Description Currently, the method to learn the rounding of a column, `_learn_rounding_digits`, is defined inside the `FloatFormatter`. We would like to move it into a helper file so other transformers can use it. ### Additional cont...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_numerical.py b/tests/unit/transformers/test_numerical.py index c023edc..0b0f4a4 100644 --- a/tests/unit/transformers/test_numerical.py +++ b/tests/unit/transformers/test_numerical.py @@ -24,86 +24,6 @@ class TestFloatFormatter(TestCase): assert nt.missing_value_replace...
[ "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test___init__super_attrs", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit_enforce_min_max_values_false", "tests/unit/transformers/test_numerica...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/sdv-dev/RDT/blob/c3c86acc50b3c9165f...
5229feba9daa511ab2e884482e16776bf29bf9c1
2025-05-08 16:57:16
docker.io/swerebenchv2/pymc-devs-pytensor:1396-5229feb
pymc-devs__pytensor-1396
Function: reuse_lu_decomposition_multiple_solves(fgraph, node) Location: pytensor.tensor._linalg.solve.rewriting.reuse_lu_decomposition_multiple_solves Inputs: - **fgraph**: a `FunctionGraph` representing the current computation graph. - **node**: an `Apply` node (expected to be a `Blockwise` containing a `Solve` core ...
python
custom-check-github
diff --git a/pytensor/compile/mode.py b/pytensor/compile/mode.py index f80dfaaf5..63a1ba835 100644 --- a/pytensor/compile/mode.py +++ b/pytensor/compile/mode.py @@ -490,6 +490,8 @@ PYTORCH = Mode( "fusion", "inplace", "scan_save_mem_prealloc", + "reuse_lu_decomposition_...
Reuse LU decomposition in Solve Requires #1394 This PR adds the rewrites to reuse an LU decomposition of the same A matrix across multiple solves: 1. Distinct Solve operations such as in a graph containing both the forward and backward pass of Solve) 2. Blockwise Solve where A is broadcasted by b 3. Scan Solv...
Solve to Solve LU optimization ### Description Unfinished optimization: ```python from pytensor.tensor.elemwise import DimShuffle from pytensor.tensor.slinalg import Solve class GlobalSolveToLUSolve(GraphRewriter): def __init__(self, eager: bool): self.eager = eager def apply(self, fgraph): ...
pymc-devs/pytensor
diff --git a/tests/tensor/linalg/__init__.py b/tests/tensor/linalg/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/tensor/linalg/test_rewriting.py b/tests/tensor/linalg/test_rewriting.py new file mode 100644 index 000000000..6f04fac5f --- /dev/null +++ b/tests/tensor/linalg/test_rewriting...
[ "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_forward_and_gradient[False]", "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_forward_and_gradient[True]", "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_blockwise[False]", "tests/tensor/linalg/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": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
7ae5a8ceb68096d12ea5f91fe01db0d0fe1b8f2a
2025-04-11 18:55:13
docker.io/swerebenchv2/narwhals-dev-narwhals:2372-7ae5a8c
narwhals-dev__narwhals-2372
Method: Expr.over(self, partition_by: Sequence[str], order_by: Sequence[str] | None = None, reverse: bool = False) Location: narwhals/_pandas_like/expr.py (and analogous implementations for Polars, Dask, etc.) Inputs: - **partition_by** – column name(s) defining groups over which the aggregation is computed. Acce...
python
MIT
diff --git a/narwhals/_dask/expr.py b/narwhals/_dask/expr.py index 6fa8e7e3..a1f0abe4 100644 --- a/narwhals/_dask/expr.py +++ b/narwhals/_dask/expr.py @@ -644,9 +644,18 @@ class DaskExpr( message=".*`meta` is not specified", category=UserWarning, ) ...
fix: `nw.len().over` was unnecessarily raising for pandas-like closes #2369 <!-- # Thanks for contributing a pull request! ## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md --> ## What type of PR is this? (check all applicable) - [ ...
[Bug]: `nw.len().over("column")` not working for pandas DataFrames ### Describe the bug ```python df.with_columns(a_len_per_group=nw.len().over("b")) ``` Raises an exception when df native DataFrame is a pandas DataFrame while it works as expected when df native DataFrame is a polars DataFrame. ### Steps or code to ...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/over_test.py b/tests/expr_and_series/over_test.py index be800852..2e53ab1d 100644 --- a/tests/expr_and_series/over_test.py +++ b/tests/expr_and_series/over_test.py @@ -428,3 +428,17 @@ def test_over_without_partition_by( ) expected = {"a": [1, 2, -1], "b": [1, 3, 4], "i": [0...
[ "tests/expr_and_series/over_test.py::test_len_over_2369[pandas]", "tests/expr_and_series/over_test.py::test_len_over_2369[pandas[pyarrow]]" ]
[ "tests/expr_and_series/over_test.py::test_over_cummax[pandas[pyarrow]]", "tests/expr_and_series/over_test.py::test_over_diff[pandas]", "tests/expr_and_series/over_test.py::test_over_without_partition_by[pyarrow]", "tests/expr_and_series/over_test.py::test_over_cum_reverse[pandas[pyarrow]-cum_min-expected_b1]"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
acc91bc4f47e38f43277fcdfd8ca855734c4fbbc
2020-10-17 10:38:18
docker.io/swerebenchv2/pallets-click:1693-acc91bc
pallets__click-1693
Function: Choice(choices, case_sensitive=True) Location: src/click/types.py – class Choice(ParamType) definition Inputs: - **choices** – iterable of values (strings or values convertible to string) that are allowed for the option. - **case_sensitive** – bool, default True. When False, validation and shell‑completion tr...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 4845673..cb6cd13 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -151,6 +151,8 @@ Unreleased ending of a phrase or double linebreak. :issue:`1082` - Skip progress bar render steps for efficiency with very fast iterators by setting ``update_min_steps``. :issue:`676...
Case insensitive shell completions for Choice(..., case_sensitive=False) This PR adds the logic and a test for checking case insensitive completions for `Choice` instances which have the argument `case_sensitive=False`. What changed was having the `Choice` class' `shell_complete`-method take `self.case_sensitive` i...
shell completion is case sensitive, even with click.Choice(case_sensitive=False) ### Expected Behavior Since I set case_sensitive to False, I would expect shell completions to search without case sensitivity. ```python import click from click._bashcomplete import get_choices options = ['Paul', 'Simon', 'Art'...
pallets/click
diff --git a/tests/test_shell_completion.py b/tests/test_shell_completion.py index e85dc32..40cb88f 100644 --- a/tests/test_shell_completion.py +++ b/tests/test_shell_completion.py @@ -304,3 +304,13 @@ def test_context_settings(runner): env={"COMP_WORDS": "", "COMP_CWORD": "0", "_CLI_COMPLETE": "bash_complete"...
[ "tests/test_shell_completion.py::test_choice_case_sensitive[False-expect0]" ]
[ "tests/test_shell_completion.py::test_command", "tests/test_shell_completion.py::test_group", "tests/test_shell_completion.py::test_group_command_same_option", "tests/test_shell_completion.py::test_chained", "tests/test_shell_completion.py::test_help_option", "tests/test_shell_completion.py::test_argument...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
6425dbfd0d33a9ed198391838438a0659cfb3368
2023-04-09 12:22:44
docker.io/swerebenchv2/pallets-werkzeug:2639-6425dbf
pallets__werkzeug-2639
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 87dfed5a..30fe8ae2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -99,6 +99,7 @@ Unreleased - ``secure_filename`` looks for more Windows reserved file names. :pr:`2622` - Update type annotation for ``best_match`` to make ``default`` parameter clearer. :issue:`2625`...
Correctly implement multipart parsing for empty fields According to RFC2046 body-part := MIME-part-headers [CRLF *OCTET] Meaning there should only be a blank line if there is are body octets, hence if the field is empty it should not be present. The previous implementation assumed the blacnk line would always...
Parsing of some post form data fails on empty fields Some post form data containing empty field values fail to be parsed correctly, even though they are parsed successfully with other frameworks like python cgi or multiport. The problem is with such data (multiline for legibility): ``` --foo\r\n Content-Type: text...
pallets/werkzeug
diff --git a/tests/sansio/test_multipart.py b/tests/sansio/test_multipart.py index f9c48b47..1d836d64 100644 --- a/tests/sansio/test_multipart.py +++ b/tests/sansio/test_multipart.py @@ -30,7 +30,7 @@ asdasd decoder.receive_data(data) decoder.receive_data(None) events = [decoder.next_event()] - while ...
[ "tests/sansio/test_multipart.py::test_empty_field" ]
[ "tests/sansio/test_multipart.py::test_decoder_simple", "tests/sansio/test_multipart.py::test_chunked_boundaries" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
419f6ca67d093b1cf4bd665ee213e918315b0321
2025-01-15 02:40:34
docker.io/swerebenchv2/aristanetworks-anta:1008-419f6ca
aristanetworks__anta-1008
Method: VerifyLoggingLogsGeneration.render(self, template: AntaTemplate) -> list[AntaCommand] Location: anta/tests/logging.py – inside class VerifyLoggingLogsGeneration Inputs: - self: instance of VerifyLoggingLogsGeneration - template: AntaTemplate containing a `{severity_level}` placeholder Outputs: - List containi...
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 3af27db9..5810620e 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -263,3 +263,4 @@ SnmpVersion = Literal["v1", "v2c", "v3"] SnmpHashingAlgorithm = Literal["MD5", "SHA", "SHA-224", "SHA-256", "SHA-384", "SHA-512"] SnmpEncryptionAlgorithm =...
fix(anta.tests): Updated Logging Module with Adding a user defined field for send cmd severity level # Description VerifyLoggingTimestamp: Added user defined filed for send command log severity level. Fixes #922 # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a ...
ANTA v1.x : VerifyLoggingTimestamp : RFE : Want user defined field for send cmd severity level http://anta.arista.com/stable/api/tests.logging/#anta.tests.logging.VerifyLoggingTimestamp As per the defaults EOS has debugging sev level and I have changed it to notifications I notice in the code ANTA uses send cmd w...
aristanetworks/anta
diff --git a/anta/tests/logging.py b/anta/tests/logging.py index 4a1c594e..15ec3dd4 100644 --- a/anta/tests/logging.py +++ b/anta/tests/logging.py @@ -14,13 +14,12 @@ import re from ipaddress import IPv4Address from typing import TYPE_CHECKING, ClassVar -from anta.models import AntaCommand, AntaTest +from anta.cust...
[ "tests/units/anta_tests/test_logging.py::test[anta.tests.logging.VerifyLoggingPersistent-success]", "tests/units/anta_tests/test_logging.py::test[anta.tests.logging.VerifyLoggingPersistent-failure-disabled]", "tests/units/anta_tests/test_logging.py::test[anta.tests.logging.VerifyLoggingPersistent-failure-not-sa...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://anta.arista.com/stable/api/tests.logging/#anta....
22992c04d3a77c5be0cfb52da7993107688a27e3
2023-10-28 19:40:06
docker.io/swerebenchv2/mill1000-midea-msmart:93-22992c0
mill1000__midea-msmart-93
Method: StateResponse.__init__(self, payload: memoryview) Location: msmart/device/AC/command.py, class StateResponse (subclass of Response) Inputs: - **payload** (memoryview): a memoryview over the raw StateResponse byte sequence. Must contain the full AC state payload (at least 16 bytes). Byte 15 may hold extra tempe...
python
MIT
diff --git a/msmart/device/AC/command.py b/msmart/device/AC/command.py index b9e8df3..5a4d46e 100644 --- a/msmart/device/AC/command.py +++ b/msmart/device/AC/command.py @@ -618,6 +618,13 @@ class StateResponse(Response): self.display_on = (payload[14] != 0x70) + # Decode additional temperature re...
Improve reported temperature precision Close #92
Improve temperature sensor resolution Some units are capable of reporting additional temperature sensor precision in byte 15 of the StateResponse message. e.g. ``` Byte 11 12 13 14 15 16 c00188647f7f00 00 00 00 00 63 45 0c 00 56 19 00000000000002 ``` The indoor temperature is the lower n...
mill1000/midea-msmart
diff --git a/msmart/device/AC/test_command.py b/msmart/device/AC/test_command.py index 9ffcec3..160ac3c 100644 --- a/msmart/device/AC/test_command.py +++ b/msmart/device/AC/test_command.py @@ -42,6 +42,7 @@ class TestStateResponse(_TestResponseBase): return cast(StateResponse, resp) def test_message_che...
[ "msmart/device/AC/test_command.py::TestStateResponse::test_message_additional_precision" ]
[ "msmart/device/AC/test_command.py::TestStateResponse::test_message_checksum", "msmart/device/AC/test_command.py::TestStateResponse::test_message_v2", "msmart/device/AC/test_command.py::TestStateResponse::test_message_v3", "msmart/device/AC/test_command.py::TestStateResponse::test_target_temperature", "msmar...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/mill1000/midea-ac-py/issues/11#issuec...
4447b04f9e02b52d24a4b0bbbda3cf94edf8f26e
2024-11-20 22:21:07
docker.io/swerebenchv2/systemd-mkosi:3216-4447b04
systemd__mkosi-3216
Method: ConfigAction.__call__(self, parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: str | list[str] | None, option_string: str | None = None) Location: mkosi/config.py, class ConfigAction (subclass of argparse.Action) Inputs: - parser – the ArgumentParser instance handling the CLI. - nam...
python
null
diff --git a/mkosi/config.py b/mkosi/config.py index ca88a1e3..0cb6cb33 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3950,11 +3950,14 @@ class ConfigAction(argparse.Action): s = SETTINGS_LOOKUP_BY_DEST[self.dest] if values is None or isinstance(values, str): - setattr(namespace,...
Allow resetting and freshly populating collection/list settings via CLI flags Previously it was only possible to completely reset but not append, or only append but not reset to collection/list settings via command line arguments. Now we track if a setting has ever been set to None (i.e. reset) during command line par...
Unable to reset list variables to empty list from CLI ### mkosi commit the issue has been seen with main ### Used host distribution Fedora 40 ### Used target distribution Fedora 40 ### Linux kernel version used 6.11.6-200.fc40.x86_64 ### CPU architectures issue was seen on x86_64 ### Unexpected behaviour you ...
systemd/mkosi
diff --git a/tests/test_config.py b/tests/test_config.py index 13765dce..f572739b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1341,3 +1341,27 @@ def test_split_artifacts_compat(tmp_path: Path) -> None: with chdir(d): _, [config] = parse_config() assert config.split_artifacts ...
[ "tests/test_config.py::test_cli_collection_reset" ]
[ "tests/test_config.py::test_compression_enum_creation", "tests/test_config.py::test_compression_enum_bool", "tests/test_config.py::test_compression_enum_str", "tests/test_config.py::test_parse_ini", "tests/test_config.py::test_parse_config", "tests/test_config.py::test_parse_includes_once", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
de4fcceefd7b4794093ed53899f2212a29e27ecc
2018-11-29 20:48:26
docker.io/swerebenchv2/kinto-kinto-http.py:189-de4fcce
kinto__kinto-http.py-189
Method: Client.get_paginated_records(self, *, collection=None, bucket=None, **kwargs) Location: kinto_http/__init__.py (inside class Client) Inputs: - collection (optional str): name of the collection to query. - bucket (optional str): name of the bucket that holds the collection. - **kwargs: additional query para...
python
custom-check-github
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0ac31c9..c982642 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,7 +7,9 @@ This document describes changes between each past release. 10.2.0 (unreleased) =================== -- Nothing changed yet. +**New feature** + +- Created new method on client to get pagina...
Expose methods for paginated lists (fixes #175) Solves #175 * [x] Add tests. * [x] Create ``client.get_paginated_records`` method. * [x] Make tests run correctly on Travis-CI. * [x] Add a changelog entry. * [x] Add _limit parameter. * [x] Add if_none_match.
Expose methods for paginated lists Currently there is no way to consume the content of individual pages using `get_records()`. We could add a generator `get_paginated_records()` that would yield individual pages... ```py for page_records in client.get_paginated_records(_limit=100): print(len(page_records))...
Kinto/kinto-http.py
diff --git a/kinto_http/tests/functional.py b/kinto_http/tests/functional.py index e2351ee..15bc5c7 100644 --- a/kinto_http/tests/functional.py +++ b/kinto_http/tests/functional.py @@ -311,6 +311,19 @@ class FunctionalTest(unittest.TestCase): records = client.get_records() assert len(records) == 10 ...
[ "kinto_http/tests/test_client.py::RecordTest::test_pagination_generator_if_none_match", "kinto_http/tests/test_client.py::RecordTest::test_pagination_is_followed_generator" ]
[ "kinto_http/tests/test_client.py::ClientTest::test_batch_does_not_raise_exception_if_batch_4xx_errors_are_ignored", "kinto_http/tests/test_client.py::ClientTest::test_batch_options_are_transmitted", "kinto_http/tests/test_client.py::ClientTest::test_batch_raises_exception", "kinto_http/tests/test_client.py::C...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
3a7f10fece9df37a72adc4c642f26cf208256322
2023-02-23 20:42:17
docker.io/swerebenchv2/getmoto-moto:5969-3a7f10f
getmoto__moto-5969
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/elasticache/exceptions.py b/moto/elasticache/exceptions.py index 8ce9ff14f..fe14cb050 100644 --- a/moto/elasticache/exceptions.py +++ b/moto/elasticache/exceptions.py @@ -1,3 +1,4 @@ +from typing import Any from moto.core.exceptions import RESTError EXCEPTION_RESPONSE = """<?xml version="1.0"?> @@...
KMS: re_encrypt() should accept alias Fixes #5963 Follow-up to #5959
KMS key alias not supported in `re_encrypt` operation Thanks for the quick fix on #5957. I believe the same issue is happening with the `DestinationKeyId` argument for [`re_encrypt()`](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kms.html#KMS.Client.re_encrypt): ``` >>> kms.re_encrypt(...
getmoto/moto
diff --git a/tests/test_kms/test_kms_encrypt.py b/tests/test_kms/test_kms_encrypt.py index 6db34dcc3..a1b4c8aea 100644 --- a/tests/test_kms/test_kms_encrypt.py +++ b/tests/test_kms/test_kms_encrypt.py @@ -76,6 +76,24 @@ def test_encrypt_using_key_arn(): kms.encrypt(KeyId=key_details["KeyMetadata"]["Arn"], Plaintex...
[ "tests/test_kms/test_kms_encrypt.py::test_re_encrypt_using_aliases" ]
[ "tests/test_kms/test_kms_encrypt.py::test_create_key_with_empty_content", "tests/test_kms/test_kms_encrypt.py::test_encrypt[some", "tests/test_kms/test_kms_encrypt.py::test_encrypt_using_alias_name", "tests/test_kms/test_kms_encrypt.py::test_encrypt_using_alias_arn", "tests/test_kms/test_kms_encrypt.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": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/lates...
a2a9c53ea262ea0d39e76aa18430ce071fbe68d5
2024-01-03 17:10:14
docker.io/swerebenchv2/python-markdown-markdown:1426-a2a9c53
python-markdown__markdown-1426
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/changelog.md b/docs/changelog.md index 84f0bfa..53104f6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fix edge-case crash in `InlineProcessor` with `AtomicString` (#1406). * Fix edge-case cr...
Fix handling of bogus comments. As with most implementations, we now pass through bogus comments (as defined by the HTML Spec) unaltered except that they are HTML escaped. This deviates from the reference implementation which compeltely ignores them. As the reference implementation seems to not have even contemplated t...
Python Markdown turns `</#rrggbb>` into HTML comment, even while in inline code When you put `</#rrggbb>` as-is inside a inline code block will Python Markdown convert it into a HTML comment (`<!--#rrggbb-->`), which feels odd. Is there a way to prevent this? Using HTML escape methods such as `&lt;/#rrggbb&gt;` will...
Python-Markdown/markdown
diff --git a/tests/test_syntax/blocks/test_html_blocks.py b/tests/test_syntax/blocks/test_html_blocks.py index 22b9498..85b0c48 100644 --- a/tests/test_syntax/blocks/test_html_blocks.py +++ b/tests/test_syntax/blocks/test_html_blocks.py @@ -782,16 +782,16 @@ class TestHTMLBlocks(TestCase): '<!-- *foo* -->'...
[ "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_bogus_comment", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_bogus_comment_endtag" ]
[ "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks_with_blank_lines", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_amperstand", "tests/test_syntax/blocks/test_h...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
2051469a2be722121369b416a5c14435c9e82f90
2023-05-03 16:39:12
docker.io/swerebenchv2/pallets-werkzeug:2692-2051469
pallets__werkzeug-2692
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 2d83ee59..fa8d36a8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ Unreleased - ``Authorization.from_header`` and ``WWWAuthenticate.from_header`` detects tokens that end with base64 padding (``=``). :issue:`2685` +- Remove usage of ``warnings.catch_war...
Remove uses of warnings.catch_warnings (#2690) This removes the use of `warnings.catch_warnings`, thus preventing the rest of the global warnings registry (and the ensuing repetition of warnings filtered with the "default" action) as discussed at #2690. <!-- Before opening a PR, open a ticket describing the issu...
Use of warnings.catch_warnings resets the global warnings registry There is a long-standing bug in Python python/cpython#73858 whereby any use of `warnings.catch_warnings` causes all memory of which warnings have already been displayed to be lost. So warnings whose [action](https://docs.python.org/3/library/warnings.h...
pallets/werkzeug
diff --git a/tests/test_urls.py b/tests/test_urls.py index 8baf0ad6..56bca8e9 100644 --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -1,11 +1,15 @@ import io +import warnings import pytest from werkzeug import urls from werkzeug.datastructures import OrderedMultiDict -pytestmark = [pytest.mark.filterwarn...
[ "tests/test_urls.py::test_url_parse_does_not_clear_warnings_registry" ]
[ "tests/test_urls.py::test_parsing", "tests/test_urls.py::test_fileurl_parsing_windows[127.0.0.1-True]", "tests/test_urls.py::test_fileurl_parsing_windows[127.0.0.1-False]", "tests/test_urls.py::test_fileurl_parsing_windows[::1-True]", "tests/test_urls.py::test_fileurl_parsing_windows[::1-False]", "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.python.org/3/library/warnings.html#the-wa...
afdfb120fff5cb5f8d0184d411369f5dddaed5b3
2022-04-05 19:59:01
docker.io/swerebenchv2/pallets-click:2248-afdfb12
pallets__click-2248
Method: Option.__init__(self, param_decls: List[str], **kwargs) Location: src/click/core.py – class Option(Parameter) Inputs: - param_decls: list of option flag strings (e.g. ["-a"]) - kwargs may include: * count (bool) – whether the option should count occurrences * multiple (bool) – whether the option may be giv...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index a618f5a..16a982d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,9 @@ Unreleased - Use verbose form of ``typing.Callable`` for ``@command`` and ``@group``. :issue:`2255` +- Show error when attempting to create an option with + ``multiple=True, is_flag=Tr...
Disallow use of is_flag and multiple in options Raises a TypeError similar to when specifying both `count=True` and `is_flag=True`. - fixes #2246 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [ ] Add or update relevant docs, in the docs...
Flags with `multiple=True` trigger `TypeError` Adding an option with `is_flag=True` and `multiple=True` will trigger a `TypeError` in `Parameter.consume_value()` due to bad default value. ```py import click @click.command() @click.option("-v", is_flag=True, multiple=True) def main(v): click.echo(v) if ...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index 2e1f291..d4090c7 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -904,3 +904,21 @@ def test_type_from_flag_value(): ) def test_is_bool_flag_is_correctly_set(option, expected): assert option.is_bool_flag is expected + + +@pytest.ma...
[ "tests/test_options.py::test_invalid_flag_combinations[kwargs2-'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": [...
f488ea16cd2f9b81cf4602c257e7963421b40156
2022-05-02 22:33:53
docker.io/swerebenchv2/pallets-werkzeug:2413-f488ea1
pallets__werkzeug-2413
Method: AnyConverter.to_url(self, value) Location: src/werkzeug/routing/converters.py Inputs: - **value** (any): the value supplied for the ``<any(...):name>`` placeholder. Must be one of the items given when the converter was declared (e.g., ``"patient"``, ``"provider"``). Outputs: - **str** – the string representat...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index c5247876..e9e0418d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,8 @@ Version 2.2.0 machine. :pr:`2433` - Names within options headers are always converted to lowercase. This matches :rfc:`6266` that the case is not relevant. :issue:`2442` +- ``AnyCo...
`any` converter validates the value to `url_for` Add method for to_url for AnyConverter. Add protection for AnyConverter to raise a ValueError for items not specified in the rule when the build method is called by running a `value in set(items)` check. Add test for assertions where values do match to items in the ru...
`any` converter should validate value to `url_for` Expectation: When using `url_for` for an endpoint with an `<any(foo, bar):arg>` argument in its route, it will raise an error for arguments that are not part of the any statement. Actual result: It returns an invalid URL Example: ``` from flask import Flask...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index 4a188b02..b1d2ee11 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -757,6 +757,19 @@ def test_anyconverter(): assert a.match("/a.2") == ("yes_dot", {"a": "a.2"}) +def test_any_converter_build_validates_value() -> None: + m = ...
[ "tests/test_routing.py::test_any_converter_build_validates_value" ]
[ "tests/test_routing.py::test_basic_routing", "tests/test_routing.py::test_merge_slashes_match", "tests/test_routing.py::test_merge_slash_encoding[/merge/%//path-/merge/%25/path]", "tests/test_routing.py::test_merge_slash_encoding[/merge//st/path-/merge/st/path]", "tests/test_routing.py::test_merge_slashes_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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2128076fe11505570014e8213014310906a58de4
2024-12-10 20:47:53
docker.io/swerebenchv2/mozilla-mozdownload:709-2128076
mozilla__mozdownload-709
Method: Scraper.extension_regex(self) Location: class Scraper in mozdownload/scraper.py Inputs: None (uses self.extension and FALLBACK_FILE_EXTENSIONS internally) Outputs: str – a regular‑expression fragment for the file extension; returns the primary extension (e.g. “tar.xz”) or a group like “(tar.xz|tar.bz2)” when...
python
custom-check-github
diff --git a/mozdownload/scraper.py b/mozdownload/scraper.py index 9f32d92..6e180be 100755 --- a/mozdownload/scraper.py +++ b/mozdownload/scraper.py @@ -68,14 +68,16 @@ DEFAULT_FILE_EXTENSIONS = {'android-arm64-v8a': 'apk', 'android-armeabi-v7a': 'apk', 'android-x...
Add support for tar.xz archive file formats Fixes #708.
Use tar.xz archives for Linux if available by default As the following blog post explains the downloadable builds for Firefox switched from `tar.bz2` to `tar.xz`. We should update mozdownload to support this file extension and at least for newer builds prefer this extension over `tar.bz2`. https://blog.nightly.mozil...
mozilla/mozdownload
diff --git a/tests/daily_scraper/test_daily_scraper.py b/tests/daily_scraper/test_daily_scraper.py index 077f424..6b35f87 100644 --- a/tests/daily_scraper/test_daily_scraper.py +++ b/tests/daily_scraper/test_daily_scraper.py @@ -20,14 +20,14 @@ firefox_tests = [ '2013-10-01-03-02-04-mozilla-central-firefox-27.0a1...
[ "tests/daily_scraper/test_daily_scraper.py::test_scraper[args2-2013-10-01-03-02-04-mozilla-central-firefox-27.0a1.en-US.linux-i686.tar.xz-firefox/nightly/2013/10/2013-10-01-03-02-04-mozilla-central/firefox-27.0a1.en-US.linux-i686.tar.xz]", "tests/daily_scraper/test_daily_scraper.py::test_scraper[args3-2013-10-01-...
[ "tests/daily_scraper/test_daily_scraper.py::test_scraper[args0-2013-10-01-03-02-04-mozilla-central-firefox-27.0a1.en-US.win32.installer.exe-firefox/nightly/2013/10/2013-10-01-03-02-04-mozilla-central/firefox-27.0a1.en-US.win32.installer.exe]", "tests/daily_scraper/test_daily_scraper.py::test_scraper[args1-2013-10...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://blog.nightly.mozilla.org/2024/11/28/announcing...
889c78ecb02fee854540a2f457f55ad14b3ba9ce
2023-11-22 03:21:15
docker.io/swerebenchv2/canonical-operator:1074-889c78e
canonical__operator-1074
Method: LogTarget.__init__(self, name: str, raw: Optional[LogTargetDict] = None) Location: ops.pebble.LogTarget class Inputs: - **name** – identifier of the log target (string). - **raw** – optional dictionary matching ``LogTargetDict`` containing keys: ``override`` (str), ``type`` (str), ``location`` (str), ``servi...
python
Apache-2.0
diff --git a/CHANGES.md b/CHANGES.md index 3ff9384..dd9b2c8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,6 @@ # 2.9.0 +* Added log target support to `ops.pebble` layers and plans. * Added `Harness.run_action()`, `testing.ActionOutput`, and `testing.ActionFailed` # 2.8.0 diff --git a/HACKING.md b/HACKING.m...
feat: expose the ability to set Pebble log targets Exposes the `log-targets` section of the Pebble layer spec, to allow charms to configure log forwarding in Pebble without having to provide layers as plain YAML. New types: * `LogTargetDict`: a typed dictionary similar to `ServiceDict` and `CheckDict`. * `LogTar...
Layer object support for log-forwarding as a field `log-targets` has been added as a field to pebble as of https://github.com/canonical/pebble/pull/267. However, the current implementation of ops.pebble.Layer discards this from the argument of the init. This must be handled properly so that the layer yaml file could be...
canonical/operator
diff --git a/.github/workflows/framework-tests.yaml b/.github/workflows/framework-tests.yaml index 8a69adf..c3bdd4a 100644 --- a/.github/workflows/framework-tests.yaml +++ b/.github/workflows/framework-tests.yaml @@ -77,7 +77,7 @@ jobs: run: pip install tox~=4.2 - name: Install Pebble - run: go...
[ "test/test_framework.py::TestFramework::test_auto_register_event_types", "test/test_framework.py::TestFramework::test_bad_sig_observer", "test/test_framework.py::TestFramework::test_ban_concurrent_frameworks", "test/test_framework.py::TestFramework::test_conflicting_event_attributes", "test/test_framework.p...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/canonical/pebble/pull/267" ], ...
cf6e23af371a10b581cb606d228fbdd831595007
2023-05-03 00:02:26
docker.io/swerebenchv2/lektor-lektor:1143-cf6e23a
lektor__lektor-1143
Method: _CompatURL.replace(self, **kwargs) Location: lektor/compat.py – class _CompatURL (subclass of urllib.parse.SplitResult) Inputs: keyword arguments for any SplitResult fields (scheme, netloc, path, query, fragment) to replace in the URL. Outputs: a new _CompatURL instance with the requested components repla...
python
BSD-3-Clause
diff --git a/lektor/compat.py b/lektor/compat.py index b73e3c2..7df0859 100644 --- a/lektor/compat.py +++ b/lektor/compat.py @@ -1,11 +1,19 @@ +from __future__ import annotations + import os import stat import sys import tempfile +import urllib.parse from functools import partial from itertools import chain +from...
Fix #1142: address deprecation of werkzeug.urls.url_parse <!--- Remember to please check that your code passes tests locally. Test with the Makefile commands `make test`, or if you only need to test just Python / JS `make test-python` or `make test-js`. ---> ### Issue(s) Resolved <!--- List the issue(s) below...
Deprecated Werkzeug APIs in use Werkzeug 2.3 deprecated a number of functions in the `werkzeug.urls` module. Lektor uses some of these methods: * `werkzeug.urls.url_parse` (in favor of `urllib.parse.urlsplit`) * `werkzeug.urls.url_join` (in favor of `urllib.parse.urljoin`) It also removes the `werkzeug.urls.URL` w...
lektor/lektor
diff --git a/tests/test_compat.py b/tests/test_compat.py index 03a3eb4..b6410aa 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,8 +1,11 @@ import os from pathlib import Path +from urllib.parse import urlsplit import pytest +from werkzeug import urls as werkzeug_urls +from lektor.compat import ...
[ "tests/test_compat.py::test_ensure_tree_writeable", "tests/test_compat.py::test_TemporaryDirectory[FixedTemporaryDirectory]", "tests/test_compat.py::test_TemporaryDirectory[TemporaryDirectory]", "tests/test_compat.py::test_compatURL_replace[_CompatURL]", "tests/test_compat.py::test_compatURL_replace[werkzeu...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
672dbf32f565a14632bcfd081c3c553c821fca77
2022-07-21 14:02:57
docker.io/swerebenchv2/azure-walinuxagent:2633-672dbf3
azure__walinuxagent-2633
GoalStateHistory.__init__(self, time: datetime, tag: str) Location: azurelinuxagent.common.utils.archive.GoalStateHistory Inputs: - **time** – a ``datetime`` object representing the goal‑state timestamp. - **tag** – optional string used to suffix the history directory (e.g., an incarnation identifier). Outputs: Cr...
python
Apache-2.0
diff --git a/azurelinuxagent/common/protocol/goal_state.py b/azurelinuxagent/common/protocol/goal_state.py index 8b508f61..4d354e56 100644 --- a/azurelinuxagent/common/protocol/goal_state.py +++ b/azurelinuxagent/common/protocol/goal_state.py @@ -352,12 +352,12 @@ class GoalState(object): certs_uri = findt...
Cleanup history directory when creating new subdirectories Fixes #2619 When reporting status, if the status blob is None, upload_status_blob forces fetching a new goal state: ``` def upload_status_blob(self): extensions_goal_state = self.get_goal_state().extensions_goal_state if extensions...
[BUG] Waagent history files consuming all inodes I'm running a number of Azure VMs with Centos linux servers and noticed this issue permeating across a number of them. It seems the inodes have been consumed entirely, although memory usage is relatively low. ``` $ df -H Filesystem Size Used Avail Use% Mounted...
Azure/WALinuxAgent
diff --git a/tests/utils/test_archive.py b/tests/utils/test_archive.py index 5eee67c7..ce97d65f 100644 --- a/tests/utils/test_archive.py +++ b/tests/utils/test_archive.py @@ -6,8 +6,9 @@ import zipfile from datetime import datetime, timedelta import azurelinuxagent.common.logger as logger +from azurelinuxagent.comm...
[ "tests/utils/test_archive.py::TestArchive::test_goal_state_history_init_should_purge_old_items" ]
[ "tests/utils/test_archive.py::TestArchive::test_archive_should_zip_all_but_the_latest_goal_state_in_the_history_folder", "tests/utils/test_archive.py::TestArchive::test_purge_legacy_goal_state_history" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
4002d1cb278e711969aea34e2a75610ca69593ea
2021-09-17 19:04:04
docker.io/swerebenchv2/qiskit-community-ecosystem:22-4002d1c
qiskit-community__ecosystem-22
Method: Repository.__init__(self, name: str, url: str, description: str, licence: str, contact_info: Optional[str] = None, alternatives: Optional[str] = None, affiliations: Optional[str] = None, labels: Optional[List[str]] = None, created_at: Optional[int] = None, updated_at: Optional[int] = None) Location: ecosystem/e...
python
Apache-2.0
diff --git a/.pylintrc b/.pylintrc index e54adeb..304f3e1 100644 --- a/.pylintrc +++ b/.pylintrc @@ -588,7 +588,7 @@ valid-metaclass-classmethod-first-arg=cls max-args=20 # Maximum number of attributes for a class (see R0902). -max-attributes=12 +max-attributes=13 # Maximum number of boolean expressions in an if...
Submission: implement python parser for template ### Summary Add parser script for submission form. - [x] parse - [x] test Closes #10
Submission: implement python parser for template <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected behavior? Submission for membership in ecosystem is handled throug...
qiskit-community/ecosystem
diff --git a/tests/ressources/issue.md b/tests/ressources/issue.md new file mode 100644 index 0000000..b570147 --- /dev/null +++ b/tests/ressources/issue.md @@ -0,0 +1,27 @@ +### Github repo + +http://github.com/awesome/awesome + +### Description + +An awesome repo for awesome project + +### Email + +toto@gege.com + +#...
[ "tests/test_manager.py::TestManager::test_issue_parsing" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/qiskit-community/ecosystem/blob/mai...
cfa8fba6915c53ab251362d885963be3c238795c
2021-03-07 17:28:40
docker.io/swerebenchv2/django-channels:1651-cfa8fba
django__channels-1651
Method: InMemoryChannelLayer.__init__(self, expiry: float = None, **kwargs) Location: channels.layers.InMemoryChannelLayer Inputs: - expiry (float, optional): maximum age in seconds for messages in a channel; messages older than this are discarded during cleanup. - **kwargs: other parameters accepted by the base `Base...
python
BSD-3-Clause
diff --git a/channels/layers.py b/channels/layers.py index fa9a9aa..5f26037 100644 --- a/channels/layers.py +++ b/channels/layers.py @@ -247,11 +247,11 @@ class InMemoryChannelLayer(BaseChannelLayer): queue = self.channels.setdefault(channel, asyncio.Queue()) # Do a plain direct receive - _, ...
Fix InMemoryChannelLayer growing indefinitely In `InMemoryChannelLayer` it was possible for channels with expired messages to live indefinitely since the check for deleting them always evaluated to `False`. Fixes #1574.
InMemoryChannelLayer grows indefinitely InMemoryChannelLayer has this in the `_clean_expired` method: # Is the channel now empty and needs deleting? if not queue: del self.channels[channel] Queues are always truthy even if empty. So that `del` statement will not be reache...
django/channels
diff --git a/tests/test_inmemorychannel.py b/tests/test_inmemorychannel.py index 6544f7a..90e02b1 100644 --- a/tests/test_inmemorychannel.py +++ b/tests/test_inmemorychannel.py @@ -106,3 +106,65 @@ async def test_groups_channel_full(channel_layer): await channel_layer.group_send("test-group", {"type": "message.1"}...
[ "tests/test_inmemorychannel.py::test_expiry_single", "tests/test_inmemorychannel.py::test_expiry_unread", "tests/test_inmemorychannel.py::test_expiry_multi" ]
[ "tests/test_inmemorychannel.py::test_multi_send_receive", "tests/test_inmemorychannel.py::test_groups_basic", "tests/test_inmemorychannel.py::test_groups_channel_full" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
bd61f1b6ee6cebfd997bf75cc47baa5f8d3df22e
2021-05-01 07:09:46
docker.io/swerebenchv2/samuelcolvin-pydantic:2720-bd61f1b
samuelcolvin__pydantic-2720
Method: BaseConfig (class) Location: pydantic/config.py Inputs: No constructor arguments; class attributes can be overridden in subclasses. Outputs: Typed configuration attributes: - title: Optional[str] = None - anystr_lower: bool = False - anystr_strip_whitespace: bool = False - min_anystr_length: int = 0 - max_anyst...
python
MIT
diff --git a/changes/2719-PrettyWood.md b/changes/2719-PrettyWood.md new file mode 100644 index 000000000..90a037c07 --- /dev/null +++ b/changes/2719-PrettyWood.md @@ -0,0 +1,1 @@ +add missing type annotations in `BaseConfig` and handle `max_length = 0` diff --git a/docs/usage/model_config.md b/docs/usage/model_config....
fix: add missing BaseConfig type annotations and handle `max_length = 0` <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Cha...
Incomplete type annotations in BaseConfig yield mypy errors when Config is defined from BaseConfig ### Checks * [X] I added a descriptive title to this issue * [X] I have searched (google, github) for similar issues and couldn't find anything * [X] I have read and followed [the docs](https://pydantic-docs.helpmanu...
samuelcolvin/pydantic
diff --git a/tests/mypy/modules/success.py b/tests/mypy/modules/success.py index 55c687944..7aed98358 100644 --- a/tests/mypy/modules/success.py +++ b/tests/mypy/modules/success.py @@ -12,8 +12,10 @@ from uuid import UUID from pydantic import ( UUID1, + BaseConfig, BaseModel, DirectoryPath, + Ex...
[ "tests/test_types.py::test_constrained_str_max_length_0" ]
[ "tests/test_types.py::test_constrained_bytes_good", "tests/test_types.py::test_constrained_bytes_default", "tests/test_types.py::test_constrained_bytes_too_long", "tests/test_types.py::test_constrained_bytes_lower_enabled", "tests/test_types.py::test_constrained_bytes_lower_disabled", "tests/test_types.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://pydantic-docs.helpmanual.io/", "https://...
b9189df64353acc64e9a758b642c5310012ef3eb
2024-08-29 19:34:17
docker.io/swerebenchv2/aio-libs-aiohttp:8934-b9189df
aio-libs__aiohttp-8934
Method: TCPSite.name(self) Location: aiohttp.web_runner.TCPSite (property) Inputs: None – uses the instance’s internal `_host`, `_port`, and `_ssl_context` attributes. Outputs: `str` – URL string constructed with scheme (`http` or `https`), host (`"0.0.0.0"` when `_host` is falsy, otherwise the provided host), an...
python
custom-check-github
diff --git a/CHANGES/8929.bugfix.rst b/CHANGES/8929.bugfix.rst new file mode 100644 index 000000000..229d5abd0 --- /dev/null +++ b/CHANGES/8929.bugfix.rst @@ -0,0 +1,1 @@ +Fixed ``Site.name`` when host is an empty string -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/web_runner.py b/aiohttp/web_runner.py index 2fe22...
[PR #8929/c0c3376e backport][3.10] Fix Site.name with empty host **This is a backport of PR #8929 as merged into master (c0c3376e6699d0741424c43ac1b25beea366b1fd).** Fixes #6585.
TCPSite.name raises ValueError if host is empty string ### Describe the bug `aiohttp` creates a TCP server by calling `loop.create_server()` in `TCPSite.start()`. The `loop.create_server()` function allows for empty string to be passed as `host` parameter, effectively binding the server socket to `INADDR_ANY`. Here's ...
aio-libs/aiohttp
diff --git a/tests/test_web_runner.py b/tests/test_web_runner.py index c7c942632..b71c34fe9 100644 --- a/tests/test_web_runner.py +++ b/tests/test_web_runner.py @@ -165,6 +165,13 @@ async def test_tcpsite_default_host(make_runner: Any) -> None: assert port == 8080 +async def test_tcpsite_empty_str_host(make_ru...
[ "tests/test_web_runner.py::test_tcpsite_empty_str_host[pyloop]" ]
[ "tests/test_web_runner.py::test_site_for_nonfrozen_app[pyloop]", "tests/test_web_runner.py::test_runner_setup_handle_signals[pyloop]", "tests/test_web_runner.py::test_runner_setup_without_signal_handling[pyloop]", "tests/test_web_runner.py::test_site_double_added[pyloop]", "tests/test_web_runner.py::test_si...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.python.org/3/library/asyncio-eventloop.html...
d96e07a79aef643a363449b86847008152599f64
2023-12-15 18:19:23
docker.io/swerebenchv2/callowayproject-bump-my-version:104-d96e07a
callowayproject__bump-my-version-104
Method: cli.cli Location: bumpversion/cli.py (Click command entry point) Inputs: - ctx: click.Context (automatically provided by Click) - version: str – the version part to bump (e.g., “patch”) - current_version: Optional[str] – overrides version from config - parse: Optional[str] – custom parse regex - serialize: Opti...
python
MIT
diff --git a/bumpversion/cli.py b/bumpversion/cli.py index 7b9cc86e..bcb08d26 100644 --- a/bumpversion/cli.py +++ b/bumpversion/cli.py @@ -141,7 +141,7 @@ click.rich_click.OPTION_GROUPS = { ) @click.option( "--regex/--no-regex", - default=False, + default=None, envvar="BUMPVERSION_REGEX", help="T...
Fixes global regex value Fixes #64 Changed default regex CLI value to None. The default value of False was overriding other values.
Global `regex` configuration not inherited in sub-sections * bump-my-version version: 0.10.0 * Python version: 3.11.15 * Operating System: macOS ### Description The `no_regex` parameter from the top-level section of a configuration file is not inherited in sub-sections. ### What I Did Here is a `changelog...
callowayproject/bump-my-version
diff --git a/tests/fixtures/basic_cfg.toml b/tests/fixtures/basic_cfg.toml index a1b14936..7808ae95 100644 --- a/tests/fixtures/basic_cfg.toml +++ b/tests/fixtures/basic_cfg.toml @@ -41,6 +41,6 @@ replace = """**unreleased** [tool.bumpversion.parts.release] optional_value = "gamma" values =[ - "dev", - "gamma", + ...
[ "tests/test_cli.py::test_bump_nested_regex" ]
[ "tests/test_cli.py::test_version_displays_library_version", "tests/test_cli.py::test_bump_no_configured_files", "tests/test_cli.py::test_bump_legacy", "tests/test_cli.py::test_no_configured_files_still_file_args_work", "tests/test_cli.py::test_missing_explicit_config_file", "tests/test_cli.py::test_cli_op...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
4b1882cc5129800bc378895314a865dadf4259d2
2022-08-02 05:36:24
docker.io/swerebenchv2/hypothesisworks-hypothesis:3427-4b1882c
hypothesisworks__hypothesis-3427
Method: FailedHealthCheck.__init__(self, message: str) Location: src/hypothesis/errors.py Inputs: a single positional argument *message* – the error message describing why the health check failed. The previous two‑argument form (message, check) has been removed; the health‑check label is no longer stored on the excepti...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..413baa647 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch makes ``FailedHealthCheck`` and ``DeadlineExceeded`` exceptions +picklable, for compatibility wi...
Fix pickle errors for exceptions Closes #3426.
Error with Django parallel test runner: hypothesis.errors.DeadlineExceeded is unpickleable ``` <snip> File "/usr/lib/python3.8/unittest/suite.py", line 122, in run test(result) File "/root/apps/netdb_demo/lib/python3.8/site-packages/hypothesis/extra/django/_impl.py", line 47, in __call__ return unittes...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/conjecture/test_engine.py b/hypothesis-python/tests/conjecture/test_engine.py index 99c4ce549..5177bb20b 100644 --- a/hypothesis-python/tests/conjecture/test_engine.py +++ b/hypothesis-python/tests/conjecture/test_engine.py @@ -404,7 +404,7 @@ def fails_health_check(label, **kwargs)...
[ "hypothesis-python/tests/cover/test_regressions.py::test_exceptions_are_picklable[DeadlineExceeded('Test", "hypothesis-python/tests/cover/test_regressions.py::test_no_missed_custom_init_exceptions" ]
[ "hypothesis-python/tests/conjecture/test_engine.py::test_can_index_results", "hypothesis-python/tests/conjecture/test_engine.py::test_non_cloneable_intervals", "hypothesis-python/tests/conjecture/test_engine.py::test_deletable_draws", "hypothesis-python/tests/conjecture/test_engine.py::test_can_load_data_from...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9e53cae88e03e49406210108928714ba56f90f5b
2024-08-26 20:11:56
docker.io/swerebenchv2/aristanetworks-anta:802-9e53cae
aristanetworks__anta-802
Method: AntaCatalog.merge_catalogs(cls, catalogs: list[AntaCatalog]) → AntaCatalog Location: anta/catalog.py (class method of AntaCatalog) Inputs: - catalogs: list of AntaCatalog instances to be combined. Must be iterable; each element is expected to have a `.tests` attribute containing a sequence of test definitions. ...
python
Apache-2.0
diff --git a/anta/catalog.py b/anta/catalog.py index 30bd3406..7ed4bc71 100644 --- a/anta/catalog.py +++ b/anta/catalog.py @@ -10,9 +10,11 @@ import logging import math from collections import defaultdict from inspect import isclass +from itertools import chain from json import load as json_load from pathlib impor...
feat(anta): Added merge_catalogs function # Description - Added `merge_catalogs` function to the `catalog.py` module. - Updated `AntaCatalog.merge` to use that function. Fixes #715 # Checklist: <!-- Delete not relevant items !--> - [X] My code follows the style guidelines of this project - [X] I have ...
Improve AntaCatalog merge function Add support for multiple catalog instances as inputs. Suggestion using `itertools`: ``` @staticmethod def merge(catalogs: list[AntaCatalog]) -> AntaCatalog: """Merge multiple AntaCatalog instances. Args: ---- catalogs: List of An...
aristanetworks/anta
diff --git a/tests/units/test_catalog.py b/tests/units/test_catalog.py index 76358dd4..13046f29 100644 --- a/tests/units/test_catalog.py +++ b/tests/units/test_catalog.py @@ -345,6 +345,17 @@ class TestAntaCatalog: tests = catalog.get_tests_by_tags(tags={"leaf", "spine"}, strict=True) assert len(tests...
[ "tests/units/test_catalog.py::TestAntaCatalog::test_merge_catalogs", "tests/units/test_catalog.py::TestAntaCatalog::test_merge" ]
[ "tests/units/test_catalog.py::TestAntaCatalog::test_parse[test_catalog0]", "tests/units/test_catalog.py::TestAntaCatalog::test_parse[test_catalog1]", "tests/units/test_catalog.py::TestAntaCatalog::test_parse[test_catalog_with_tags]", "tests/units/test_catalog.py::TestAntaCatalog::test_parse[test_empty_catalog...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
2c346ecd0bf6961124bcfa1b0aeb30dc72f50869
2024-08-03 19:39:35
docker.io/swerebenchv2/cuthbertlab-music21:1725-2c346ec
cuthbertlab__music21-1725
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/music21/base.py b/music21/base.py index b85f2a9ac..a474d78f4 100644 --- a/music21/base.py +++ b/music21/base.py @@ -800,7 +800,7 @@ class Music21Object(prebase.ProtoM21Object): return self._style @style.setter - def style(self, newStyle: Style): + def style(self, newStyle: Style|None)...
Export stem styles on notes with implicit stem directions **Before** Stem styles were only exported if a stemDirection was explicit. **Now** If a stem has style information, the stem direction is calculated and the stem element is written with style info. Fixes #1724
Stem styles aren't exported unless stemDirection is explicit **music21 version** dev **Problem summary** Stem styles (e.g. colors) aren't exported if the stem direction is unspecified. **Steps to reproduce** ```py s = converter.parse('tinyNotation: 2/4 c2') s.recurse().notes.first().style.stemStyle = style...
cuthbertLab/music21
diff --git a/music21/musicxml/test_m21ToXml.py b/music21/musicxml/test_m21ToXml.py index 8d368b061..0dabca2d7 100644 --- a/music21/musicxml/test_m21ToXml.py +++ b/music21/musicxml/test_m21ToXml.py @@ -27,6 +27,7 @@ from music21 import note from music21 import repeat from music21 import spanner from music21 import st...
[ "music21/musicxml/test_m21ToXml.py::Test::test_stem_style_without_direction" ]
[ "music21/musicxml/test_m21ToXml.py::Test::testArpeggioMarkSpanners", "music21/musicxml/test_m21ToXml.py::Test::testArpeggioMarkSpannersNonArpeggiate", "music21/musicxml/test_m21ToXml.py::Test::testArpeggios", "music21/musicxml/test_m21ToXml.py::Test::testArticulationSpecialCases", "music21/musicxml/test_m21...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
fc2e21b8ff37837c38781048b936486c4fe3243f
2023-01-15 22:02:00
docker.io/swerebenchv2/getmoto-moto:5847-fc2e21b
getmoto__moto-5847
Method: GlueBackend.delete_registry(self, registry_id) Location: moto/glue/models.py Inputs: registry_id – a dict specifying either RegistryArn or RegistryName identifying the registry to delete. Outputs: dict – the deleted registry’s representation (including RegistryName, RegistryArn, etc.). Raises an error if the re...
python
Apache-2.0
diff --git a/moto/glue/models.py b/moto/glue/models.py index 738f741c9..26cfbbc0e 100644 --- a/moto/glue/models.py +++ b/moto/glue/models.py @@ -2,7 +2,7 @@ import time from collections import OrderedDict from datetime import datetime import re -from typing import List +from typing import Dict, List from moto.cor...
S3: Enable bucket logging Fixes #5597 Requests are now logged in the target bucket, if configured. Implementation details: - We log the request as it comes in - We assume the request succeeds, i.e every request returns a 200 status code - Because we log the request as it comes in, we persist one request/line...
s3_put_bucket_logging does not actually create and write to logging file. moto 4.0.8 inside conda using python 3.8.6 I'm trying to measure the number of GET/PUT requests I make to the mock s3 session. AFAICT the way you do this in actual S3 is to enable bucket logging and read the log. moto is not actually creating ...
getmoto/moto
diff --git a/tests/terraformtests/terraform-tests.success.txt b/tests/terraformtests/terraform-tests.success.txt index edba3828f..01e53f602 100644 --- a/tests/terraformtests/terraform-tests.success.txt +++ b/tests/terraformtests/terraform-tests.success.txt @@ -200,6 +200,8 @@ events: - TestAccEventsConnection - T...
[ "tests/test_glue/test_schema_registry.py::test_get_schema", "tests/test_glue/test_schema_registry.py::test_update_schema", "tests/test_glue/test_schema_registry.py::test_list_registries", "tests/test_glue/test_schema_registry.py::test_get_registry[RegistryArn]", "tests/test_glue/test_schema_registry.py::tes...
[ "tests/test_glue/test_schema_registry.py::test_create_registry_valid_input", "tests/test_glue/test_schema_registry.py::test_create_registry_valid_partial_input", "tests/test_glue/test_schema_registry.py::test_create_registry_invalid_registry_name_too_long", "tests/test_glue/test_schema_registry.py::test_creat...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
104ece6cc30eb57b480a1bd3c3cbcdd542fec744
2022-01-21 16:34:03
docker.io/swerebenchv2/pytask-dev-pytask:200-104ece6
pytask-dev__pytask-200
Function: task(name: Optional[str] = None) -> str Location: _pytask.task_utils.task Inputs: - **name** (Optional[str]): An optional explicit task identifier supplied to the ``@pytask.mark.task`` decorator. If omitted, the decorator returns ``None`` and the task name defaults to the function’s name. Outputs: - **str**...
python
custom-check-github
diff --git a/docs/source/changes.rst b/docs/source/changes.rst index 9e15327..e8011d4 100644 --- a/docs/source/changes.rst +++ b/docs/source/changes.rst @@ -14,9 +14,12 @@ all releases are available on `PyPI <https://pypi.org/project/pytask>`_ and - :gh:`193` adds more figures to the documentation. - :gh:`194` update...
Mark arbitrary function as tasks with `@pytask.mark.task`. Closes #175.
ENH: Add a `@pytask.mark.task` decorator to mark functions as tasks irrespective of the name. #### Is your feature request related to a problem? Currently, task functions must be prefixed with ``task_`` to be considered by pytask which is an unnecessary limitation as some user might prefer a different naming scheme....
pytask-dev/pytask
diff --git a/tests/test_task.py b/tests/test_task.py new file mode 100644 index 0000000..511f8b2 --- /dev/null +++ b/tests/test_task.py @@ -0,0 +1,68 @@ +import textwrap + +import pytest +from _pytask.nodes import create_task_name +from _pytask.outcomes import ExitCode +from pytask import main + + +@pytest.mark.paramet...
[ "tests/test_task.py::test_task_with_task_decorator[the_only_task-task_example]", "tests/test_task.py::test_task_with_task_decorator[the_only_task-func]", "tests/test_task.py::test_task_with_task_decorator[None-func]", "tests/test_task.py::test_task_with_task_decorator_with_parametrize[the_only_task-task_examp...
[ "tests/test_task.py::test_task_with_task_decorator[None-task_example]", "tests/test_task.py::test_task_with_task_decorator_with_parametrize[None-task_example]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://pytask-dev.readthedocs.io/en/latest/reference_...
aad90d09c01c9a8fe4e91fca3d6a1a0a85ded02a
2016-10-16 16:45:57
docker.io/swerebenchv2/backblaze-b2-command-line-tool:259-aad90d0
backblaze__b2_command_line_tool-259
Method: Bucket.download_file_by_id(self, file_id, download_dest, progress_listener=None, range_=None) Location: b2/bucket.py – class Bucket Inputs: - file_id (str): B2 file identifier. - download_dest (AbstractDownloadDestination): destination object that receives file data. - progress_listener (ProgressListener, opti...
python
custom-check-github
diff --git a/README.md b/README.md index a2de296..768e21b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The command-line tool that gives easy access to all of the capabilities of B2 Cl This program provides command-line access to the B2 service. -Version 0.6.9 +Version 0.6.7 # Installation @@ -33,7...
Add optional range_ parameter to download_file_by_* (API level) Resolves #250
Feature request: Optional range parameter for download request Hi! Developer of B2Fuse here. An idea was put forth to use B2 CLI Python API as backend for B2Fuse to handle integration against B2. This is an excellent idea but requires an additional feature from B2 CLI. In order to use B2 CLI Python API in B2Fuse th...
Backblaze/B2_Command_Line_Tool
diff --git a/test/test_bucket.py b/test/test_bucket.py index f77c35d..dd35586 100644 --- a/test/test_bucket.py +++ b/test/test_bucket.py @@ -8,7 +8,7 @@ # ###################################################################### -from __future__ import absolute_import, division, print_function +from __future__ import ...
[ "test/test_bucket.py::TestPartialDownload::test_download_by_id_progress" ]
[ "test/test_bucket.py::TestReauthorization::testCreateBucket", "test/test_bucket.py::TestListParts::testEmpty", "test/test_bucket.py::TestListParts::testThree", "test/test_bucket.py::TestUploadPart::test_error_in_state", "test/test_bucket.py::TestListUnfinished::test_empty", "test/test_bucket.py::TestListU...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.85, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
3741c8e9767cef39c4c0a99da55fb2b799320556
2020-12-30 11:40:37
docker.io/swerebenchv2/hypothesisworks-hypothesis:2726-3741c8e
hypothesisworks__hypothesis-2726
Function: from_type(thing: Type[Ex]) -> SearchStrategy[Ex] Location: hypothesis.strategies (exposed as ``hypothesis.strategies.from_type``) Inputs: - **thing** – a concrete, non‑abstract type (class or callable). Its ``__signature__`` and type hints are inspected. Keyword‑only and positional‑or‑keyword parameters that...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..3c36676c1 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,6 @@ +RELEASE_TYPE: minor + +This release upgrades :func:`~hypothesis.strategies.from_type`, to infer +strategies for type-annotated arg...
Distinguish `from_type()` from `builds()` by inferring strategies for parameters with default values Closes #2708.
When `st.from_type()` falls back to `st.builds()`, try passing `infer` for arguments with default values For functions, `builds` uses a `just(default_value)` strategy for kwargs with a `default_value`, but it also allows you to use `infer` to instead use something to the effect of `just(default_value) | from_type(type_...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_lookup.py b/hypothesis-python/tests/cover/test_lookup.py index 65d5be203..f6bec5b42 100644 --- a/hypothesis-python/tests/cover/test_lookup.py +++ b/hypothesis-python/tests/cover/test_lookup.py @@ -793,3 +793,13 @@ class AnnotatedConstructorWithSignature(typing.Generic[_Va...
[ "hypothesis-python/tests/cover/test_lookup.py::test_from_type_can_be_default_or_annotation", "hypothesis-python/tests/nocover/test_build_signature.py::test_from_type_uses_signature_attribute", "hypothesis-python/tests/nocover/test_build_signature.py::test_from_type_can_be_default_or_annotation", "hypothesis-p...
[ "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.ByteString]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.Callable]", "hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.ChainMap]", "hypothesis-python/tests/cove...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://hypothesis.readthedocs.io/en/latest/details.ht...
c884530a1da933814eaaaa9fa2db605e8ecaf116
2020-07-19 15:21:01
docker.io/swerebenchv2/joerick-cibuildwheel:408-c884530
joerick__cibuildwheel-408
No new interfaces are introduced.
python
custom-check-github
diff --git a/cibuildwheel/bashlex_eval.py b/cibuildwheel/bashlex_eval.py index 57791b2c..2c61bc54 100644 --- a/cibuildwheel/bashlex_eval.py +++ b/cibuildwheel/bashlex_eval.py @@ -1,15 +1,14 @@ -import shlex import subprocess from typing import Callable, Dict, List, NamedTuple, Optional, Sequence import bashlex # ...
Fix quotes in command in bashlex_eval Closes #406
CIBW_ENVIRONMENT broken in 1.5.3 Somehow, my line of `export CIBW_ENVIRONMENT='... CCACHE_BASEDIR=`python -c "import tempfile; import os; print(os.path.realpath(tempfile.gettempdir()))"` ...'` (see https://github.com/YannickJadoul/Parselmouth/blob/1f3dd9abc63afdf4a1d26db40d210bb4187118a8/.travis.yml#L143; yes, I know I...
joerick/cibuildwheel
diff --git a/unit_test/environment_test.py b/unit_test/environment_test.py index 0827cc0d..ab690a84 100644 --- a/unit_test/environment_test.py +++ b/unit_test/environment_test.py @@ -40,7 +40,7 @@ def test_inheritance(): def test_shell_eval(): - environment_recipe = parse_environment('VAR="$(echo "a test" strin...
[ "unit_test/environment_test.py::test_shell_eval" ]
[ "unit_test/environment_test.py::test_basic_parsing", "unit_test/environment_test.py::test_quotes", "unit_test/environment_test.py::test_inheritance", "unit_test/environment_test.py::test_shell_eval_and_env", "unit_test/environment_test.py::test_empty_var", "unit_test/environment_test.py::test_no_vars", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/YannickJadoul/Parselmouth/blob/1f3d...
7870eb344b143dbc3b4f1a03b0a1e178196b8ef8
2024-06-10 12:23:06
docker.io/swerebenchv2/amaranth-lang-amaranth:1376-7870eb3
amaranth-lang__amaranth-1376
Method: SubmoduleDict.__setitem__(self, name, submodule) Location: amaranth/hdl/_dsl.py (accessed via Module.submodules) Inputs: - **name** (str): key under which the submodule is stored. Must be a non‑empty string; an empty string triggers `NameError("Submodule name must not be empty")`. - **submodule** (Elaboratable...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_dsl.py b/amaranth/hdl/_dsl.py index a73f20f..c66df2e 100644 --- a/amaranth/hdl/_dsl.py +++ b/amaranth/hdl/_dsl.py @@ -654,6 +654,8 @@ class Module(_ModuleBuilderRoot, Elaboratable): if name == None: self._anon_submodules.append((submodule, src_loc)) else: + ...
Forbid empty string as submodule name This is semantically ambiguous and breaks the RTLIL emitter. Fixes #1209.
Zero-length submodule name breaks things The following design: ``` from amaranth import * from amaranth.back import verilog class Bar(Elaboratable): def elaborate(self, platform): m = Module() m.d.sync += Signal().eq(1) return m class Foo(Elaboratable): def elaborate(self...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_dsl.py b/tests/test_hdl_dsl.py index a255ff6..ecbed9d 100644 --- a/tests/test_hdl_dsl.py +++ b/tests/test_hdl_dsl.py @@ -887,6 +887,12 @@ class DSLTestCase(FHDLTestCase): with self.assertRaisesRegex(NameError, r"^Submodule named 'foo' already exists$"): m1.submodules.fo...
[ "tests/test_hdl_dsl.py::DSLTestCase::test_submodule_named_empty" ]
[ "tests/test_hdl_dsl.py::DSLTestCase::test_Case_after_Default_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_bits_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_outside_Switch_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_pattern_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
bbfe2c5b3a903303520f7677fe0859467fd827e9
2025-05-23 16:58:35
docker.io/swerebenchv2/pysmt-pysmt:812-bbfe2c5
pysmt__pysmt-812
No new interfaces are introduced.
python
Apache-2.0
diff --git a/pysmt/smtlib/parser/parser.py b/pysmt/smtlib/parser/parser.py index 40f5ec5..2a14fa9 100644 --- a/pysmt/smtlib/parser/parser.py +++ b/pysmt/smtlib/parser/parser.py @@ -773,6 +773,11 @@ class SmtLibParser(object): keyword = tk[1:] tk = tokens.consume() value = None + ...
Parse value annotations with ":" as keywords Fixes #809
`SmtLibParser` fails to parse annotations without associated values When parsing annotations, the parser always tries to read an associated value: https://github.com/pysmt/pysmt/blob/8aaf1d3309e7402db20fafd6075a9ce7142fed85/pysmt/smtlib/parser/parser.py#L773-L790 However, following the SMT-LIB specs: ``` 〈attribute_va...
pysmt/pysmt
diff --git a/pysmt/test/smtlib/test_annotations.py b/pysmt/test/smtlib/test_annotations.py index bcda7af..8e0b764 100644 --- a/pysmt/test/smtlib/test_annotations.py +++ b/pysmt/test/smtlib/test_annotations.py @@ -167,8 +167,10 @@ class TestBasic(TestCase): script = parser.get_script(buf) ann = script....
[ "pysmt/test/smtlib/test_annotations.py::TestBasic::test_annotations_colon_values" ]
[ "pysmt/test/smtlib/test_annotations.py::TestBasic::test_basic", "pysmt/test/smtlib/test_annotations.py::TestBasic::test_complex_annotations_values", "pysmt/test/smtlib/test_annotations.py::TestBasic::test_interpreting_annotations", "pysmt/test/smtlib/test_annotations.py::TestBasic::test_remove", "pysmt/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pysmt/pysmt/blob/8aaf1d3309e7402db20f...
25d6b50a84229598a2ecc3f865b9bbdabc8346b9
2023-06-13 07:53:20
docker.io/swerebenchv2/celery-celery:8312-25d6b50
celery__celery-8312
Method: ChainMap.__init__(self, *maps, **kwargs) Location: celery.utils.collections.ChainMap Inputs: zero or more mapping objects to be used as underlying maps; optional keyword arguments passed to the first map. Outputs: a new ChainMap instance whose internal observers list is isolated per instance. Description: Const...
python
custom-check-github
diff --git a/celery/bin/worker.py b/celery/bin/worker.py index 9dd158203..0cc3d6664 100644 --- a/celery/bin/worker.py +++ b/celery/bin/worker.py @@ -166,8 +166,8 @@ def detach(path, argv, logfile=None, pidfile=None, uid=None, type=LOG_LEVEL, help_group="Worker Options", help...
Fixes #8224 Fixes worker command optimizations flag ## Description This PR fixes #8224 wherein the `optimizations` flag of the worker command lost its double `-`, resulting in unintended breaking behaviour in 5.*.
Why has the CLI worker command flag `optimizations` changed from `--optimizations` in 5.*? This question is referencing this code: https://github.com/celery/celery/blob/3b1c768c39f641a70d3086bd5a1079a421f94344/celery/bin/worker.py#L169 ``` @click.option('optimization', '-O', default='...
celery/celery
diff --git a/t/unit/utils/test_collections.py b/t/unit/utils/test_collections.py index 79ccc0117..2f1838990 100644 --- a/t/unit/utils/test_collections.py +++ b/t/unit/utils/test_collections.py @@ -2,13 +2,14 @@ import pickle from collections.abc import Mapping from itertools import count from time import monotonic +...
[ "t/unit/utils/test_collections.py::test_ChainMap::test_observers_not_shared" ]
[ "t/unit/utils/test_collections.py::test_DictAttribute::test_get_set_keys_values_items", "t/unit/utils/test_collections.py::test_DictAttribute::test_setdefault", "t/unit/utils/test_collections.py::test_DictAttribute::test_contains", "t/unit/utils/test_collections.py::test_DictAttribute::test_items", "t/unit/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/celery/celery/blob/3b1c768c39f641a7...
b807b8794a54bd0d6def24d73873d8898c5f487d
2021-12-24 14:49:20
docker.io/swerebenchv2/pallets-werkzeug:2307-b807b87
pallets__werkzeug-2307
Method: MapAdapter.build(self, endpoint: str, values: Optional[Mapping[str, Any]] = None, *, method: str = 'GET', force_external: bool = False, append_unknown: bool = True) Location: src/werkzeug/routing.py → class MapAdapter Inputs: - **endpoint** – name of the rule to build a URL for. - **values** – mapping of URL...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 1d1f6a14..e7c85ee0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -56,6 +56,11 @@ Unreleased convert the value to an int. :issue:`2230` - Always use ``socket.fromfd`` when restarting the dev server. :pr:`2287` +- When passing a dict of URL values to ``Map.build...
`MapAdapter.build` does not flatten list value from plain dict It should be possible to pass a list value to a custom URL converter when building. However, after some other changes to the code to support `MultiDict`, a regression was introduced that made that difficult. This changes the behavior so flattening single...
MapAdapter.build() should not flatten a value passed as single-item-list <!-- This issue tracker is a tool to address bugs in Werkzeug itself. Please use Pallets Discord or Stack Overflow for questions about your own code. Replace this comment with a clear outline of what the bug is. --> Let's consider this code...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index be3767d2..e8c7a429 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -1,4 +1,5 @@ import gc +import typing as t import uuid import pytest @@ -754,48 +755,108 @@ def test_anyconverter(): @pytest.mark.parametrize( - ("value", "e...
[ "tests/test_routing.py::test_build_values_dict[int-value2-TypeError]", "tests/test_routing.py::test_build_values_dict[list-value3-/1]", "tests/test_routing.py::test_build_values_dict[list-value4-/1.None.2]", "tests/test_routing.py::test_build_values_multidict[int-None-TypeError]", "tests/test_routing.py::te...
[ "tests/test_routing.py::test_basic_routing", "tests/test_routing.py::test_merge_slashes_match", "tests/test_routing.py::test_merge_slash_encoding[/merge/%//path-/merge/%25/path]", "tests/test_routing.py::test_merge_slash_encoding[/merge//st/path-/merge/st/path]", "tests/test_routing.py::test_merge_slashes_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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pallets/werkzeug/blob/fb7ddd89ae307...
a7cff9ac45d8ed0ea471a26f8244ecafb6ec04c1
2019-06-19 12:08:46
docker.io/swerebenchv2/aspp-pelita:604-a7cff9a
aspp__pelita-604
Function: load_team_from_module(path) Location: pelita/scripts/pelita_player.py Inputs: - **path** (str): path to a Python module (file or package) that defines a callable `move` function and a string `TEAM_NAME`. Outputs: - Returns a **Team** instance (pelita.player.team.Team) that wraps the `move` function. - May ...
python
custom-check-github
diff --git a/pelita/game.py b/pelita/game.py index 1ecf0a00..c94b66fe 100644 --- a/pelita/game.py +++ b/pelita/game.py @@ -129,6 +129,9 @@ class GameState: #: Random number generator rnd: typing.Any + #: Timeout length + timeout_length: typing.Optional[int] + #: Viewers viewers: typing.List ...
Fix timeout handling in RemoteTeam Closes #598. Further refactoring of RemoteTeam/ZMQConnection will come in later PRs. This PR also removes old-style factory-based loading `def team` and fixes a bug where a belated message from a client would lead to a newer message being ignored (thus giving a second time out).
--timeout setting is ignored in RemoteTeam We need to add (or rather: reenable) proper handling of timeouts in RemoteTeam. Also, each timeout now creates two errors. The timeout itself and an illegal move error.
ASPP/pelita
diff --git a/test/test_pelita_player.py b/test/test_pelita_player.py index b4766658..9bdb4276 100644 --- a/test/test_pelita_player.py +++ b/test/test_pelita_player.py @@ -7,7 +7,7 @@ import tempfile import pelita from pelita import libpelita -from pelita.scripts.pelita_player import load_factory, load_team +from pe...
[ "test/test_pelita_player.py::TestLoadFactory::test_simple_module_import", "test/test_pelita_player.py::TestLoadFactory::test_simple_file_import", "test/test_pelita_player.py::TestLoadFactory::test_failing_import", "test/test_pelita_player.py::TestLoadFactory::test_import_of_pyc", "test/test_pelita_player.py...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.84, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
6db4a3e31f587b10228b70fa29d1ce2ee52744a3
2024-08-19 16:03:27
docker.io/swerebenchv2/aio-libs-aiohttp:8742-6db4a3e
aio-libs__aiohttp-8742
Method: ContentTypeError.__init__(self, request_info: aiohttp.RequestInfo, history: Tuple[aiohttp.ClientResponse, ...], *, status: int | None = None, message: str | None = None) Location: aiohttp/client_reqrep.py – called from ClientResponse.json when the response has an unexpected Content‑Type. Inputs: - **request_inf...
python
custom-check-github
diff --git a/CHANGES/8736.misc.rst b/CHANGES/8736.misc.rst new file mode 100644 index 000000000..34ed19aeb --- /dev/null +++ b/CHANGES/8736.misc.rst @@ -0,0 +1,1 @@ +Improved performance of the WebSocket reader -- by :user:`bdraco`. diff --git a/CHANGES/8742.bugfix.rst b/CHANGES/8742.bugfix.rst new file mode 100644 ind...
Fix status not being set when ClientResponse.json raises ContentTypeError <!-- Thank you for your contribution! --> ## What do these changes do? Fix status not being set when ClientResponse.json raises ContentTypeError ## Are there changes in behavior for the user? The status will be set ## Is it a s...
ClientResponse.json() doesn't set status code ### Describe the bug When ClientResponse.json() raises a ContentTypeError it doesn't set the HTTP status code in that exception object. Presumably there is a status code available at that point otherwise the call to `read()` inside of `json()` would have thrown an exceptio...
aio-libs/aiohttp
diff --git a/tests/test_client_response.py b/tests/test_client_response.py index fa282ccc5..cf9f338f2 100644 --- a/tests/test_client_response.py +++ b/tests/test_client_response.py @@ -676,11 +676,13 @@ async def test_json_invalid_content_type( h = {"Content-Type": "data/octet-stream"} response._headers = CIM...
[ "tests/test_client_response.py::test_json_invalid_content_type[pyloop]" ]
[ "tests/test_client_response.py::test_http_processing_error", "tests/test_client_response.py::test_del", "tests/test_client_response.py::test_close[pyloop]", "tests/test_client_response.py::test_wait_for_100_1[pyloop]", "tests/test_client_response.py::test_wait_for_100_2[pyloop]", "tests/test_client_respon...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
3dd92096d5258b915ebcaa60002d202151488c29
2025-01-27 11:51:25
docker.io/swerebenchv2/ecmwf-earthkit-data:599-3dd9209
ecmwf__earthkit-data-599
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/release_notes/version_0.12_updates.rst b/docs/release_notes/version_0.12_updates.rst index 0b5bdf4..b7227ab 100644 --- a/docs/release_notes/version_0.12_updates.rst +++ b/docs/release_notes/version_0.12_updates.rst @@ -1,6 +1,16 @@ Version 0.12 Updates ///////////////////////// + +Version 0.12.2 +...
Fix max recursion depth exceeded when concatenate Fixes #588
RecursionError: maximum recursion depth exceeded ### What happened? I have some grib2 files for 3 different variables and I am trying to group them into a single file. However when trying to save the results to this new file I am hitting a `RecursionError` ### What are the steps to reproduce the bug? See code snipp...
ecmwf/earthkit-data
diff --git a/tests/grib/test_grib_concat.py b/tests/grib/test_grib_concat.py index 5c92f47..1e94e1d 100644 --- a/tests/grib/test_grib_concat.py +++ b/tests/grib/test_grib_concat.py @@ -150,6 +150,17 @@ def test_grib_from_empty_3(): _check_save_to_disk(ds3, 8, md) +# See github issue #588 +def test_grib_concat_...
[ "tests/grib/test_grib_concat.py::test_grib_concat_large" ]
[ "tests/grib/test_grib_concat.py::test_grib_concat[oper]", "tests/grib/test_grib_concat.py::test_grib_concat[multi]", "tests/grib/test_grib_concat.py::test_grib_concat_3a[oper]", "tests/grib/test_grib_concat.py::test_grib_concat_3a[multi]", "tests/grib/test_grib_concat.py::test_grib_concat_3b[oper]", "test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
f6cf6a0e77dd504cfc35dd499dd8694b0b80b4ae
2024-06-17 09:58:10
docker.io/swerebenchv2/keras-team-keras:19863-f6cf6a0
keras-team__keras-19863
Function: print_summary(model, line_length=None, positions=None, expand_nested=False, print_fn=print) Location: keras/src/utils/summary_utils.py Inputs: - **model**: a `keras.Model` (or any `keras.layers.Layer` that supports the summary utilities). Must be an instantiated model; it may have been built manually via a cu...
python
Apache-2.0
diff --git a/keras/src/utils/summary_utils.py b/keras/src/utils/summary_utils.py index 94c82af7f..7fe10f776 100644 --- a/keras/src/utils/summary_utils.py +++ b/keras/src/utils/summary_utils.py @@ -76,17 +76,31 @@ def bold_text(x, color=None): def format_layer_shape(layer): - if not layer._inbound_nodes: + if...
Improve `Model.summary` Fix #19535 Besides `layer._inbound_nodes`, we can also use `layer._build_shape_dict` to get the output shapes. With this PR, we can try our best to show the output shape of the custom model subclassed from `keras.Model` ```python import keras class MyModel(keras.Model): def ...
model.summary() broken for custom models subclassed from keras.Model ### Current behavior? **Custom model classes built from keras.Model do not think they get built properly, and the model.summary() is missing information.** However, the model will run just fine. In keras version 2.15.0, we see it working properly, ...
keras-team/keras
diff --git a/keras/src/utils/summary_utils_test.py b/keras/src/utils/summary_utils_test.py index 7b917da4f..439b94644 100644 --- a/keras/src/utils/summary_utils_test.py +++ b/keras/src/utils/summary_utils_test.py @@ -40,3 +40,37 @@ class SummaryUtilsTest(testing.TestCase, parameterized.TestCase): self....
[ "keras/src/utils/summary_utils_test.py::SummaryUtilsTest::test_print_model_summary_custom_build" ]
[ "keras/src/utils/summary_utils_test.py::SummaryUtilsTest::test_print_model_summary0", "keras/src/utils/summary_utils_test.py::SummaryUtilsTest::test_print_model_summary1" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://keras.io/api/models/model/#by-subclassing-the-mo...
b3610ca472e9007de8847bb4e54752d55a749456
2025-01-15 21:20:43
docker.io/swerebenchv2/meltano-sdk:2830-b3610ca
meltano__sdk-2830
Method: Property.__init__(self, name: str, wrapped: t.Type[T], *, allowed_values: list | None = None, examples: list | None = None, nullable: bool | None = None, title: str | None = None, deprecated: bool | None = None, **kwargs: t.Any) Location: singer_sdk.typing.Property class – constructor used to define a JSON Sche...
python
Apache-2.0
diff --git a/singer_sdk/typing.py b/singer_sdk/typing.py index 338973d9..74eb7623 100644 --- a/singer_sdk/typing.py +++ b/singer_sdk/typing.py @@ -649,6 +649,8 @@ class Property(JSONTypeHelper[T], t.Generic[T]): *, nullable: bool | None = None, title: str | None = None, + deprecated: b...
feat: Allow developers to mark stream schema and settings fields as deprecated Closes #2116 <!-- readthedocs-preview meltano-sdk start --> ---- 📚 Documentation preview 📚: https://meltano-sdk--2830.org.readthedocs.build/en/2830/ <!-- readthedocs-preview meltano-sdk end -->
feat: Support using JSON Schema's `deprecated` keyword to mark deprecated settings ### Feature scope Configuration (settings parsing, validation, etc.) ### Description https://github.com/meltano/sdk/blob/40b633385b3ec5462d90042213bfb236c57ccbab/singer_sdk/typing.py#L520-L530 is the place where this change would nee...
meltano/sdk
diff --git a/tests/core/test_jsonschema_helpers.py b/tests/core/test_jsonschema_helpers.py index 8729012a..dbaf89a6 100644 --- a/tests/core/test_jsonschema_helpers.py +++ b/tests/core/test_jsonschema_helpers.py @@ -495,12 +495,14 @@ def test_inbuilt_type(json_type: JSONTypeHelper, expected_json_schema: dict): ...
[ "tests/core/test_jsonschema_helpers.py::test_to_json", "tests/core/test_jsonschema_helpers.py::test_any_type", "tests/core/test_jsonschema_helpers.py::test_nested_complex_objects", "tests/core/test_jsonschema_helpers.py::test_default_value", "tests/core/test_jsonschema_helpers.py::test_tap_config_default_in...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/meltano/sdk/blob/40b633385b3ec5462d...
c4b2df872d0ab49da939bf8bda001fa4e2d2ea06
2022-08-19 03:48:14
docker.io/swerebenchv2/yt-dlp-yt-dlp:4704-c4b2df8
yt-dlp__yt-dlp-4704
Method: JSInterpreter.call_function(self, name, *args, **kwargs) Location: yt_dlp/jsinterp.py Inputs: - **name** (str): the identifier of a JavaScript function defined in the interpreter’s source code. - Optional positional/keyword arguments passed to the JavaScript function (not used in the test but supported by the...
python
Unlicense
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 4330006cc..491e02dec 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -90,6 +90,7 @@ args_to_str, bug_reports_message, date_from_str, + deprecation_warning, determine_ext, determine_protocol, encode_compat_str, @@...
[crunchyroll:beta] Use anonymous access instead of redirecting ### Description of your *pull request* and other information Eliminates the beta -> non-beta redirect code, due to changes in the api making it impossible. Instead, uses anonymous access to the beta api, which already works, and its momentarily used by t...
Crunchyroll beta - KeyError('byId') ### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE - [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2022.08.14** ([update instructions](https://gi...
yt-dlp/yt-dlp
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 863e52458..778607fb2 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -129,6 +129,11 @@ def test_precedence(self): self.assertEqual(jsi.call_function('x'), [20, 20, 30, 40, 50]) def test_builtins(self): + jsi = JSIn...
[ "test/test_jsinterp.py::TestJSInterpreter::test_builtins" ]
[ "test/test_jsinterp.py::TestJSInterpreter::test_array_access", "test/test_jsinterp.py::TestJSInterpreter::test_assignments", "test/test_jsinterp.py::TestJSInterpreter::test_basic", "test/test_jsinterp.py::TestJSInterpreter::test_calc", "test/test_jsinterp.py::TestJSInterpreter::test_call", "test/test_jsin...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.78, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/yt-dlp/yt-dlp#update", "https...
b0faefbf5b8dfcd4c27b4d727908573028af59ba
2018-09-21 01:06:14
docker.io/swerebenchv2/rpi-distro-python-gpiozero:678-b0faefb
rpi-distro__python-gpiozero-678
Method: Robot.__init__(self, left=None, right=None, pwm=True, pin_factory=None, *args) Location: gpiozero.boards Inputs: - left (tuple of two GPIO pin numbers) – required, must be a tuple; otherwise GPIOPinMissing is raised. - right (tuple of two GPIO pin numbers) – required, must be a tuple; otherwise GPIOPinMissing...
python
custom-check-github
diff --git a/gpiozero/boards.py b/gpiozero/boards.py index 1810af6..1379745 100644 --- a/gpiozero/boards.py +++ b/gpiozero/boards.py @@ -1180,15 +1180,27 @@ class Robot(SourceMixin, CompositeDevice): backward inputs of the right motor's controller. Use three pins if your motor controller requires an e...
Allow Robot classes to take pwm argument, close #481 Tests added, docs updated
Robot classes don't allow pwm=False I'm trying to use MockPin to test a robot script but I can't disable PWM: ``` python >>> robot = Robot((1, 2), (3, 4), pwm=False) TypeError: __init__() got an unexpected keyword argument 'pwm' >>> robot = CamJamKitRobot(pwm=False) TypeError: __init__() got an unexpected keyword argu...
RPi-Distro/python-gpiozero
diff --git a/tests/test_boards.py b/tests/test_boards.py index ee86bbe..c8a34da 100644 --- a/tests/test_boards.py +++ b/tests/test_boards.py @@ -19,6 +19,7 @@ def setup_function(function): # dirty, but it does the job Device.pin_factory.pin_class = MockPWMPin if function.__name__ in ( 'test_robot', +...
[ "tests/test_boards.py::test_robot_bad_init", "tests/test_boards.py::test_robots", "tests/test_boards.py::test_robot_nopwm", "tests/test_boards.py::test_robots_nopwm", "tests/test_boards.py::test_enable_pin_motor_robot_nopwm" ]
[ "tests/test_boards.py::test_composite_output_on_off", "tests/test_boards.py::test_composite_output_toggle", "tests/test_boards.py::test_composite_output_value", "tests/test_boards.py::test_led_collection_bad_init", "tests/test_boards.py::test_led_board_bad_init", "tests/test_boards.py::test_led_bar_graph_...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
fefc0eaa19f8498c2df240b2a5174384132e0dde
2025-02-26 03:40:53
docker.io/swerebenchv2/openmdao-aviary:676-fefc0ea
openmdao__aviary-676
Function: convert_strings_to_data(string_list, data_type=None) Location: aviary.utils.functions Inputs: - string_list: list of str – raw string entries (e.g., from a CSV) to be converted. - data_type: type or tuple of types, optional – the expected target type(s) for each entry (e.g., float, int, bool, str, Path, en...
python
custom-check-github
diff --git a/aviary/utils/aviary_values.py b/aviary/utils/aviary_values.py index e0d55959..f50a5e7d 100644 --- a/aviary/utils/aviary_values.py +++ b/aviary/utils/aviary_values.py @@ -60,6 +60,7 @@ class AviaryValues(NamedValues): if key in _MetaData.keys(): expected_types = _MetaData[key]['types...
Read float instead of int if data type is float ### Summary This PR tries to address the bug in issue #662. A new argument `data_type` (with default to `None`) is added to `utils/functions.py:convert_strings_to_data`. When `data_type` is given, this function tries to read as the needed data. For example, if the meta...
Some floats in the csv file are processed as integers if they are whole numbers (like 1.0). ### Description This is documented in utils/functions.py : convert_strings_to_data try: # if the value is a number store it as a float or an int as appropriate # BUG this returns floats that can...
OpenMDAO/Aviary
diff --git a/aviary/utils/test/test_functions.py b/aviary/utils/test/test_functions.py index c1be71ba..1f189884 100644 --- a/aviary/utils/test/test_functions.py +++ b/aviary/utils/test/test_functions.py @@ -8,7 +8,7 @@ from openmdao.utils.assert_utils import assert_near_equal from aviary.variable_info.options import...
[ "aviary/utils/test/test_functions.py::TestConvertStrings2Data::test_read_boolean", "aviary/utils/test/test_functions.py::TestConvertStrings2Data::test_read_float", "aviary/utils/test/test_functions.py::TestConvertStrings2Data::test_read_int", "aviary/utils/test/test_functions.py::TestConvertStrings2Data::test...
[ "aviary/utils/test/test_functions.py::TestOpts2Vals::test_default_units", "aviary/utils/test/test_functions.py::TestOpts2Vals::test_specified_units", "aviary/utils/test/test_functions.py::TestGetPath::test_non_existent_path", "aviary/utils/test/test_functions.py::TestGetPath::test_path_from_path_object_absolu...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.95, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
ecd5f6fc0c1859161307cd8f4360fc63c70127f2
2022-11-16 15:54:32
docker.io/swerebenchv2/pennylaneai-pennylane:3369-ecd5f6f
pennylaneai__pennylane-3369
Function: execute(tapes, device, gradient_fn=None, interface=None, mode=None, gradient_kwargs=None, cache=True, cachesize=10000, max_diff=1, override_shots: int = False, expand_fn="device", max_expansion=10, device_batch_transform=True) Location: pennylane/interfaces/execution.py Inputs: - **tapes** – sequence of ``Qu...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index f67b7ceed..240278bcd 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -44,8 +44,15 @@ attributes were modified. [#3292](https://github.com/PennyLaneAI/pennylane/pull/3292) +* If the device originall...
batch transform occurs with the correct number of shots Fixes #3368 . Currently, device batch transformations occur with the number of shots originally specified on the device, not the number of shots used for the execution. In the cases where the device has no shots but the execution does, this leads to errors if ...
[BUG] Hamiltonian expansion with dynamic shots fails ### Expected behavior I expect that a Hamiltonian expectation value is expanded if the execution occurs with finite shots. ### Actual behavior If the device has `shots=None` upon construction, but the circuit is dynamically executed with finite shots, Hamiltonian...
PennyLaneAI/pennylane
diff --git a/tests/interfaces/test_autograd.py b/tests/interfaces/test_autograd.py index 34f34e2b5..50c6c2d6b 100644 --- a/tests/interfaces/test_autograd.py +++ b/tests/interfaces/test_autograd.py @@ -210,6 +210,15 @@ class TestBatchTransformExecution: spy.assert_called() assert np.allclose(res[0], n...
[ "tests/interfaces/test_autograd.py::TestBatchTransformExecution::test_batch_transform_dynamic_shots", "tests/returntypes/test_autograd_new.py::TestBatchTransformExecution::test_batch_transform_dynamic_shots" ]
[ "tests/interfaces/test_autograd.py::TestAutogradExecuteUnitTests::test_import_error", "tests/interfaces/test_autograd.py::TestAutogradExecuteUnitTests::test_jacobian_options[autograd]", "tests/interfaces/test_autograd.py::TestAutogradExecuteUnitTests::test_jacobian_options[auto]", "tests/interfaces/test_autog...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
b50968d9f3100ba701648f15b6a94a80783c75a3
2020-05-12 21:03:10
docker.io/swerebenchv2/pythainlp-pythainlp:399-b50968d
pythainlp__pythainlp-399
Function: countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float Location: pythainlp/util/thai.py Inputs: - **text** (str): the input string to analyze. If empty or not a string, the function returns 0.0. - **ignore_chars** (str, optional): characters to be excluded from the analysis; defaults to a p...
python
Apache-2.0
diff --git a/pythainlp/util/thai.py b/pythainlp/util/thai.py index 1a78dc32..b141b260 100644 --- a/pythainlp/util/thai.py +++ b/pythainlp/util/thai.py @@ -127,7 +127,7 @@ def countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float: # output: 0.0 """ if not text or not isinstance(text...
Make countthai() to cover a case that the text has only ignore_chars This PR will close #398 Prevent divide by zero
countthai not cover all cases **Describe the bug** Input countthai('123') or countthai(' ') or countthai('1 2 3 4') create error instead of zero? **To Reproduce** Steps to reproduce the behavior: 1. from pythainlp.util import countthai 2. input either '123' or ' ' **Expected behavior** it should return zero...
PyThaiNLP/pythainlp
diff --git a/tests/test_util.py b/tests/test_util.py index 34d2491e..958fa201 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -340,8 +340,11 @@ class TestUtilPackage(unittest.TestCase): # ### pythainlp.util.thai def test_countthai(self): - self.assertEqual(countthai(""), 0) + self....
[ "tests/test_util.py::TestUtilPackage::test_countthai" ]
[ "tests/test_util.py::TestUtilPackage::test_collate", "tests/test_util.py::TestUtilPackage::test_date", "tests/test_util.py::TestUtilPackage::test_is_native_thai", "tests/test_util.py::TestUtilPackage::test_isthai", "tests/test_util.py::TestUtilPackage::test_isthaichar", "tests/test_util.py::TestUtilPackag...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
b650fe545ac2ee3c807f987dbe44933cc5529b14
2018-12-22 12:03:50
docker.io/swerebenchv2/http-apis-hydrus:308-b650fe5
http-apis__hydrus-308
No new interfaces are introduced.
python
MIT
diff --git a/hydrus/data/db_models.py b/hydrus/data/db_models.py index c341e8f..6484d29 100644 --- a/hydrus/data/db_models.py +++ b/hydrus/data/db_models.py @@ -1,6 +1,7 @@ """Models for Hydra Classes.""" from sqlalchemy import create_engine, ForeignKey +from sqlalchemy.sql import func from sqlalchemy.ext.declarat...
Add created and last_modified fields <!-- Please create/claim an issue before sending a PR --> <!-- Add issue number (Eg: fixes #123) --> Fixes #216 ### Checklist - [x] My branch is up-to-date with upstream/develop branch. - [x] Everything works and tested for Python 3.5.2 and above. ### Description <!-- ...
Add created/updated attributes for Instance model ### I'm submitting a - [X] feature request. ### Expected Behaviour: We shall be able to track creation and updating datetime of the instances for server/client sync reason. ### Solution Add a `created` and `updated` attributes [here](https://github.com/HTTP-AP...
HTTP-APIs/hydrus
diff --git a/hydrus/tests/test_app.py b/hydrus/tests/test_app.py index a632d2d..54fba8a 100644 --- a/hydrus/tests/test_app.py +++ b/hydrus/tests/test_app.py @@ -6,10 +6,9 @@ import random import string import json import re -import uuid from hydrus.app import app_factory from hydrus.utils import set_session, ...
[ "hydrus/tests/test_app.py::ViewsTestCase::test_endpointClass_DELETE", "hydrus/tests/test_app.py::ViewsTestCase::test_endpointClass_POST" ]
[ "hydrus/tests/test_app.py::ViewsTestCase::test_Collections_GET", "hydrus/tests/test_app.py::ViewsTestCase::test_Collections_PUT", "hydrus/tests/test_app.py::ViewsTestCase::test_Endpoints_Contexts", "hydrus/tests/test_app.py::ViewsTestCase::test_EntryPoint_context", "hydrus/tests/test_app.py::ViewsTestCase::...
{ "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": "B5", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/HTTP-APIs/hydrus/blob/master/hydrus/d...
1ff212e09c9eca19a77231774b6c20afe394dbdb
2016-04-18 22:09:33
docker.io/swerebenchv2/boto-botocore:886-1ff212e
boto__botocore-886
No new interfaces are introduced.
python
Apache-2.0
diff --git a/botocore/client.py b/botocore/client.py index 9e240f718..ebda5db07 100644 --- a/botocore/client.py +++ b/botocore/client.py @@ -154,6 +154,11 @@ class ClientCreator(object): config_kwargs['s3'] = s3_configuration + def _conditionally_unregister_fix_s3_host(self, endpoint_url, emitter): + ...
Respect custom endpoints in fix_s3_host Currently we inject the hard-coded value `s3.amazonaws.com` as the endpoint url for S3 requests when switching from path style to virtual host addressing. This has the effect of clobbering custom endpoint urls. This PR will try to determine if the endpoint url is an S3 endpoin...
fix_s3_hosts always assumes you're using central aws instead of a local S3. I've noticed when attempting to generate presigned urls that the logic behind fix_s3_hosts and the virtual styling always assumes you're using AWS S3. [fix_s3_host](https://github.com/boto/botocore/blob/6065566237de957507fc63ae4d3a034c87552adf/...
boto/botocore
diff --git a/tests/functional/test_s3.py b/tests/functional/test_s3.py index 23a7fd75f..5cd3c20e0 100644 --- a/tests/functional/test_s3.py +++ b/tests/functional/test_s3.py @@ -155,6 +155,17 @@ class BaseS3AddressingStyle(BaseSessionTest): self.http_response.content = b'' +class TestCustomEndpointUrl(BaseS...
[ "tests/functional/test_s3.py::TestCustomEndpointUrl::test_provided_endpoint_url_is_not_mutated", "tests/unit/test_client.py::TestAutoGeneratedClient::test_custom_endpoint_unregisters_fix_s3_host" ]
[ "tests/functional/test_s3.py::TestOnlyAsciiCharsAllowed::test_validates_non_ascii_chars_trigger_validation_error", "tests/functional/test_s3.py::TestS3GetBucketLifecycle::test_multiple_transitions_returns_one", "tests/functional/test_s3.py::TestS3PutObject::test_500_error_with_non_xml_body", "tests/functional...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/boto/botocore/blob/6065566237de9575...
93bea7cc87bdb9fb2bb0ab0cb3faef1717b24004
2020-07-16 02:06:21
docker.io/swerebenchv2/cuthbertlab-music21:578-93bea7c
cuthbertlab__music21-578
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/music21/stream/__init__.py b/music21/stream/__init__.py index e3d28c408..2acb6b31d 100644 --- a/music21/stream/__init__.py +++ b/music21/stream/__init__.py @@ -5864,19 +5864,16 @@ class Stream(core.StreamCoreMixin, base.Music21Object): # alteredPitches]) # need to move through notes i...
Let makeAccidentals() recurse Fixes #577. Easy patch, so I just forged on. Before: calling `makeAccidentals()` on a Measure with substreams would have no effect. Such calls are made by `makeNotation()` and xml export. Now: just let `makeAccidentals()` recurse over the input Stream. Question: is there a valid...
Making voices can disrupt makeAccidentals() Based on case reported by Igor Praznik, music21 list 3/3/20. ``` s = stream.Stream() s.insert(key.Key('Gb')) s.insert(0, note.Note('D-5')) s.insert(0, note.Note('D-4')) s.show() # During export to xml, makeNotation(), makeVoices(), makeMeasures() ``` <img width="13...
cuthbertLab/music21
diff --git a/music21/test/testStream.py b/music21/test/testStream.py index 8925c2bef..4f76c7174 100644 --- a/music21/test/testStream.py +++ b/music21/test/testStream.py @@ -5993,13 +5993,22 @@ class Test(unittest.TestCase): p = stream.Part() p.append([m1, m2]) # p.show() - # test resul...
[ "music21/test/testStream.py::Test::testHaveAccidentalsBeenMadeInVoices" ]
[ "music21/test/testStream.py::Test::testAccumulatedTimeA", "music21/test/testStream.py::Test::testAccumulatedTimeB", "music21/test/testStream.py::Test::testActivateVariantsA", "music21/test/testStream.py::Test::testActivateVariantsB", "music21/test/testStream.py::Test::testActivateVariantsBySpanA", "music2...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/cuthbertLab/music21/blob/93bea7cc87bd...
a0aa47fb3d08e24320e22bfac00f627d29ac1f96
2024-10-27 09:29:58
docker.io/swerebenchv2/cubed-dev-cubed:596-a0aa47f
cubed-dev__cubed-596
Function: var(x, /, *, axis=None, correction=0.0, keepdims=False, split_every=None) Location: cubed/array_api/statistical_functions.py Inputs: - x: array‑like object supporting the Array API; dtype must be a real floating‑point type. - axis: optional int, tuple of ints, or None specifying the reduction axes. - correcti...
python
Apache-2.0
diff --git a/api_status.md b/api_status.md index 45cb046b..76925976 100644 --- a/api_status.md +++ b/api_status.md @@ -84,9 +84,9 @@ This table shows which parts of the the [Array API](https://data-apis.org/array- | | `mean` | :white_check_mark: | | ...
Implement `var` and `std` using a numerically stable parallel algorithm Fixes #29 This uses the algorithm mentioned in https://github.com/cubed-dev/cubed/issues/29#issuecomment-2368108624. I also included some of the tests from #327 by @alxmrs.
Implement `var` and `std` Similar to the implementation of `mean`.
cubed-dev/cubed
diff --git a/.github/workflows/jax-tests.yml b/.github/workflows/jax-tests.yml index 01de4044..43b9229a 100644 --- a/.github/workflows/jax-tests.yml +++ b/.github/workflows/jax-tests.yml @@ -44,7 +44,7 @@ jobs: - name: Run tests run: | # exclude tests that rely on structured types since JAX d...
[ "cubed/tests/test_array_api.py::test_var[False-0.0-None]", "cubed/tests/test_array_api.py::test_var[False-0.0-0]", "cubed/tests/test_array_api.py::test_var[False-0.0-1]", "cubed/tests/test_array_api.py::test_var[False-0.0-axis3]", "cubed/tests/test_array_api.py::test_var[False-1.0-None]", "cubed/tests/tes...
[ "cubed/tests/test_array_api.py::test_object_bool[single-threaded]", "cubed/tests/test_array_api.py::test_arange[single-threaded]", "cubed/tests/test_array_api.py::test_asarray[single-threaded]", "cubed/tests/test_array_api.py::test_ones[single-threaded]", "cubed/tests/test_array_api.py::test_ones_like[singl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.84, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
63586fa698cad7005f561fcdbb5ce590fb2484b1
2024-04-25 19:25:50
docker.io/swerebenchv2/keras-team-keras:19618-63586fa
keras-team__keras-19618
Method: PSNR.call(self, x1, x2) Location: keras.src.ops.nn.PSNR Inputs: - **x1**: Tensor-like object (e.g., `KerasTensor` or NumPy/TF/Torch array). - **x2**: Tensor-like object with the same shape as `x1`. Outputs: Tensor scalar representing the PSNR value (dtype matches inputs). Description: Executes the PSNR o...
python
Apache-2.0
diff --git a/keras/api/_tf_keras/keras/ops/__init__.py b/keras/api/_tf_keras/keras/ops/__init__.py index 118c5a692..386730deb 100644 --- a/keras/api/_tf_keras/keras/ops/__init__.py +++ b/keras/api/_tf_keras/keras/ops/__init__.py @@ -72,6 +72,7 @@ from keras.src.ops.nn import moments from keras.src.ops.nn import multi_...
Remove `PYTORCH_ENABLE_MPS_FALLBACK` flag requirement for mps Running with MPS used to require this flag since the feature was experimental. It has since graduated to stable in PyTorch (see https://pytorch.org/docs/stable/notes/mps.html). We can go ahead and remove the flag check. Fix #19436.
keras with pytorch backend and mps set to default should use an mps generatir in randperm Keras with pytorch backend and mps set to default needs to use an mps generator in randperm The following code ``` import os os.environ["KERAS_BACKEND"] = "torch" import torch as torch torch.set_default_device('mps'...
keras-team/keras
diff --git a/keras/src/ops/nn_test.py b/keras/src/ops/nn_test.py index 5e52a6c26..433bb0f46 100644 --- a/keras/src/ops/nn_test.py +++ b/keras/src/ops/nn_test.py @@ -654,6 +654,12 @@ class NNOpsDynamicShapeTest(testing.TestCase, parameterized.TestCase): x = KerasTensor([None, 2, 3]) self.assertEqual(kn...
[ "keras/src/ops/nn_test.py::NNOpsDynamicShapeTest::test_psnr", "keras/src/ops/nn_test.py::NNOpsStaticShapeTest::test_psnr", "keras/src/ops/nn_test.py::NNOpsCorrectnessTest::test_psnr" ]
[ "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": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
d8a30a316e5c66cd418d7789bfca7c4aa04de687
2021-01-29 15:52:26
docker.io/swerebenchv2/pypa-build:218-d8a30a3
pypa__build-218
Method: ProjectBuilder.__init__(self, srcdir, python_executable=sys.executable) Location: src/build/__init__.py Inputs: - srcdir (str): absolute or relative path to the project source directory. - python_executable (str or bytes, optional): path to the Python interpreter used for backend calls (defaults to the curre...
python
MIT
diff --git a/src/build/__init__.py b/src/build/__init__.py index 1abf0eb..f6513c4 100644 --- a/src/build/__init__.py +++ b/src/build/__init__.py @@ -116,17 +116,15 @@ def _working_directory(path): # type: (str) -> Iterator[None] class ProjectBuilder(object): - def __init__(self, srcdir, config_settings=None, p...
build: make `config_settings` an argument of hook calls Closes #216.
Varying `config_settings` between hook calls Configuration settings should be allowed to vary between distributions, hooks and hook calls, e.g. an option which is valid for a wheel might not be valid for an sdist or a different hook. The `config_settings` parameter can either be removed from the constructor or hook wr...
pypa/build
diff --git a/tests/test_main.py b/tests/test_main.py index 445a2aa..840ec30 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -118,7 +118,7 @@ def test_build_isolated(mocker, test_flit_path): required_cmd.assert_called_with('sdist') install.assert_any_call(['dep1', 'dep2']) - build_cmd.assert_c...
[ "tests/test_main.py::test_build_isolated", "tests/test_main.py::test_build_no_isolation_check_deps_empty", "tests/test_main.py::test_build_no_isolation_with_check_deps[missing_deps0-\\n\\tfoo]", "tests/test_main.py::test_build_no_isolation_with_check_deps[missing_deps1-\\n\\tfoo\\n\\tbar\\n\\tbaz", "tests/t...
[ "tests/test_main.py::test_parse_args[cli_args0-build_args0]", "tests/test_main.py::test_parse_args[cli_args1-build_args1]", "tests/test_main.py::test_parse_args[cli_args2-build_args2]", "tests/test_main.py::test_parse_args[cli_args3-build_args3]", "tests/test_main.py::test_parse_args[cli_args4-build_args4]"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
6376c63deba1abab6ac0087a77897f599c0e807a
2024-09-11 17:41:54
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3684-6376c63
aws-cloudformation__cfn-lint-3684
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/HardCodedArnProperties.py b/src/cfnlint/rules/resources/HardCodedArnProperties.py index 50fde2eb1..0fce8446a 100644 --- a/src/cfnlint/rules/resources/HardCodedArnProperties.py +++ b/src/cfnlint/rules/resources/HardCodedArnProperties.py @@ -47,6 +47,12 @@ class HardCodedArnProper...
Exceptions for hardcoded authorizer uri in I3042 *Issue #, if available:* fix #3683 *Description of changes:* - Exceptions for hardcoded authorizer uri in I3042 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
API Gateway Lambda authorizer URI incorrectly fails I3042:accountId check ### CloudFormation Lint Version 1.12.4 ### What operating system are you using? Mac/Ubuntu ### Describe the bug cfn-lint expects the `:lambda:` segment of the API Gateway Lambda authorizer URI to not be a hardcoded account ID, when the `:lam...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/bad/hard_coded_arn_properties.yaml b/test/fixtures/templates/bad/hard_coded_arn_properties.yaml index de51db292..f57b35b6c 100644 --- a/test/fixtures/templates/bad/hard_coded_arn_properties.yaml +++ b/test/fixtures/templates/bad/hard_coded_arn_properties.yaml @@ -77,3 +77,11 @@ Reso...
[ "test/unit/rules/resources/test_hardcodedarnproperties.py::TestHardCodedArnProperties::test_file_negative_accountid" ]
[ "test/unit/rules/resources/test_hardcodedarnproperties.py::TestHardCodedArnProperties::test_file_negative_partition", "test/unit/rules/resources/test_hardcodedarnproperties.py::TestHardCodedArnProperties::test_file_negative_region", "test/unit/rules/resources/test_hardcodedarnproperties.py::TestHardCodedArnProp...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...