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
6ce4f1d24fa950a8216178913e6d90c4ef5687fa
2023-09-19 17:35:03
docker.io/swerebenchv2/mirumee-ariadne-codegen:218-6ce4f1d
mirumee__ariadne-codegen-218
Method: ResultTypesGenerator.__init__(self, schema: GraphQLSchema, operation_definition: OperationDefinitionNode, *, add_typename: bool = False, custom_scalars: Mapping[str, str] | None = None, convert_camel_case: bool = False, enum_name_prefix: str = "", scalar_name_prefix: str = "", type_name_prefix: str = "", type_n...
python
BSD-3-Clause
diff --git a/CHANGELOG.md b/CHANGELOG.md index a08bc82..26bfd50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## UNRELEASED + +- Fixed generating results for nullable fields with nullable directives. + + ## 0.9.0 (2023-09-11) - Fixed generating operation string for nested inline frag...
Set to None if nullable directive used on nullable field The None should always be set on fields decorated by nullable directives. Resolves #217
Applying @skip/@include to Nullable field lead to wrong model According to [the spec](https://github.com/graphql/graphql-spec/blame/October2021/spec/Section%206%20--%20Execution.md#L487-L489), if `@skip`/`@include` is applied, execution of that field is ignored, thus not producing field in final data. Using https://...
mirumee/ariadne-codegen
diff --git a/tests/client_generators/result_types_generator/schema.py b/tests/client_generators/result_types_generator/schema.py index 1e5fa4e..3eff265 100644 --- a/tests/client_generators/result_types_generator/schema.py +++ b/tests/client_generators/result_types_generator/schema.py @@ -48,6 +48,7 @@ type CustomType2 ...
[ "tests/client_generators/result_types_generator/test_directives.py::test_generator_returns_module_with_handled_skip_and_include_directives[include]", "tests/client_generators/result_types_generator/test_directives.py::test_generator_returns_module_with_handled_skip_and_include_directives[skip]" ]
[ "tests/client_generators/result_types_generator/test_directives.py::test_generate_adds_base_class_to_generated_type_provided_by_mixin_directive", "tests/client_generators/result_types_generator/test_directives.py::test_generate_handles_multiple_mixin_directives", "tests/client_generators/result_types_generator/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/graphql/graphql-spec/blame/October202...
305279a39a1d70a49ff89b4d09644e62d65e735c
2021-05-21 20:06:14
docker.io/swerebenchv2/pennylaneai-pennylane:1353-305279a
pennylaneai__pennylane-1353
Method: CircuitGraph.max_simultaneous_measurements(self) Location: pennylane/circuit_graph.py – property of the ``CircuitGraph`` class. Inputs: - ``self`` – the ``CircuitGraph`` instance representing the compiled quantum circuit. Outputs: - ``int`` – the maximum number of measurement processes (``expval``, ``var``, `...
python
Apache-2.0
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index c0a68ec87..a2d4b3f1f 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -322,6 +322,9 @@ random_mat2 = rng.standard_normal(3, requires_grad=False) <h3>Bug fixes</h3> +* Fixes drawing QNodes that contain multiple measurements on a single wi...
Fix CircuitDrawer single wire multiple observables **Context** QNodes can have multiple measurements on the same wire so long as they are part of qubit-wise commuting observables. Drawing such QNodes results in an error, unfortunately. This boils down to how the `CircuitGraph` processes observables. It assumes that...
Drawing fails for (a) qubit-wise commuting observables, and (b) QNodes with no operations Consider the following minimal example in which a QNode returns multiple qubit wise commuting obeservables: ```python import networkx import pennylane as qml from pennylane import expval, PauliX, PauliY, PauliZ dev = qml....
PennyLaneAI/pennylane
diff --git a/tests/circuit_drawer/test_circuit_drawer.py b/tests/circuit_drawer/test_circuit_drawer.py index 473d9c301..f96e0afd5 100644 --- a/tests/circuit_drawer/test_circuit_drawer.py +++ b/tests/circuit_drawer/test_circuit_drawer.py @@ -736,8 +736,6 @@ class TestCircuitDrawerIntegration: """Test that a qub...
[ "tests/circuit_drawer/test_circuit_drawer.py::TestCircuitDrawerIntegration::test_same_wire_multiple_measurements", "tests/circuit_graph/test_circuit_graph.py::TestCircuitGraph::test_max_simultaneous_measurements[circuit_measure_max_once-1]" ]
[ "tests/circuit_drawer/test_circuit_drawer.py::TestFunctions::test_remove_duplicates[input0-expected_output0]", "tests/circuit_drawer/test_circuit_drawer.py::TestFunctions::test_remove_duplicates[input1-expected_output1]", "tests/circuit_drawer/test_circuit_drawer.py::TestFunctions::test_remove_duplicates[input2...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
fae889d467a0a19385978f7e979234771a0eb10d
2023-02-22 18:02:01
docker.io/swerebenchv2/pallets-werkzeug:2596-fae889d
pallets__werkzeug-2596
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 84757d0c..707cf8c9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,8 @@ Unreleased :issue:`2550` - A URL converter's ``part_isolating`` defaults to ``False`` if its ``regex`` contains a ``/``. :issue:`2582` +- A custom converter's regex can have captur...
Allow the router to cope with nested groups The previous, regex table, version of the router wrapped each converter's regex in a named capturing group which was then extracted from the match and passed to the converter as the value with the name matching the rule variable name. This meant that any nested groups within ...
app.route mixes up parameters passed when multiple regex patterns are used We recently upgraded from Flask v1.1.2 to Flask v2.2.2 and were surprised when many of our project unit tests started failing because Flask v2.2.2 is not passing the correct parameters to a route function. This worked correctly in the previous ...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index 735bd07e..a0ffc145 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -778,6 +778,35 @@ def test_converter_with_tuples(): assert kwargs["foo"] == ("qwert", "yuiop") +def test_nested_regex_groups(): + """ + Regression test for...
[ "tests/test_routing.py::test_nested_regex_groups" ]
[ "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": "medium", "external_urls": [ "https://github.com/pallets/werkzeug/issues/2590", ...
4598a9bf31d59c1982f40a89593b250e68b1c754
2025-06-22 13:40:56
docker.io/swerebenchv2/berriai-litellm:11964-4598a9b
berriai__litellm-11964
Function: unpack_defs(schema: dict, defs: dict) -> None Location: litellm.litellm_core_utils.prompt_templates.common_utils.unpack_defs Inputs: - **schema** (dict): A JSON‑Schema style dictionary that may contain "$ref" entries, "$defs"/"definitions", and nested constructs such as "anyOf", "items", "allOf", etc. The fun...
python
custom-check-github
diff --git a/litellm/litellm_core_utils/prompt_templates/common_utils.py b/litellm/litellm_core_utils/prompt_templates/common_utils.py index a4ba25fc4..6b70f690f 100644 --- a/litellm/litellm_core_utils/prompt_templates/common_utils.py +++ b/litellm/litellm_core_utils/prompt_templates/common_utils.py @@ -16,6 +16,7 @@ f...
Fix unpack_defs handling of nested $ref inside anyOf items ## Title Fix unpack_defs handling of $ref inside anyOf/items structures ## Relevant issues Fixes #11372 ## Pre-Submission checklist - [x] I have added testing in the `tests/litellm/` directory (see `test_unpack_defs_resolves_nested_ref_inside_any...
[Bug]: Structured output - $ref Resolution Failure in anyOf/items Structures ### What happened? ## Summary LiteLLM's `unpack_defs()` function fails to properly resolve `$ref` references when they appear inside `items` within `anyOf` structures, resulting in empty `items: {}` objects being sent to the LLM instead of th...
BerriAI/litellm
diff --git a/tests/test_litellm/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py b/tests/test_litellm/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py index 4210d27e8..56ea91aef 100644 --- a/tests/test_litellm/litellm_core_utils/prompt_templa...
[ "tests/test_litellm/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py::test_unpack_defs_resolves_nested_ref_inside_anyof_items" ]
[ "tests/test_litellm/test_utils.py::test_aaamodel_prices_and_context_window_json_is_valid", "tests/test_litellm/test_utils.py::test_all_model_configs", "tests/test_litellm/test_utils.py::test_anthropic_web_search_in_model_info", "tests/test_litellm/test_utils.py::TestProxyFunctionCalling::test_bedrock_converse...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
ace7aea375f0abea88a16c01ce86139c03dbdbef
2024-02-09 02:10:05
docker.io/swerebenchv2/amaranth-lang-amaranth:1095-ace7aea
amaranth-lang__amaranth-1095
Method: ShapeCastable.__init__(self, *args, **kwargs) Location: amaranth/hdl/_ast.py Inputs: any positional (*args) and keyword (**kwargs) arguments accepted by subclasses. Outputs: Raises TypeError with message "Can't instantiate abstract class ShapeCastable" when the class being instantiated is exactly ShapeCastable;...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_ast.py b/amaranth/hdl/_ast.py index c2fe98f..5084574 100644 --- a/amaranth/hdl/_ast.py +++ b/amaranth/hdl/_ast.py @@ -191,6 +191,12 @@ class ShapeCastable: The source code of the :mod:`amaranth.lib.data` module can be used as a reference for implementing a fully featured sha...
hdl.ast: make it impossible to construct `*Castable` instances. Fixes #1072.
`ShapeCastable()` is a valid expression This shouldn't be possible to do since it's an abstract class.
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index 8829aa7..14e1f8a 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -191,6 +191,11 @@ class ShapeCastableTestCase(FHDLTestCase): sc = MockShapeCastable(MockShapeCastable(unsigned(1))) self.assertEqual(Shape.cast(sc), unsig...
[ "tests/test_hdl_ast.py::ShapeCastableTestCase::test_abstract", "tests/test_hdl_ast.py::ValueCastableTestCase::test_abstract" ]
[ "tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong", "tests/test_hdl_ast...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.97, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
6b7a8de770bfe2cfea2079b587aca2796e5bf16a
2020-11-29 19:10:33
docker.io/swerebenchv2/rock-learning-pytransform3d:72-6b7a8de
rock-learning__pytransform3d-72
Function: perpendicular_to_vector(a) Location: pytransform3d.rotations.perpendicular_to_vector Inputs: - a: array‑like of shape (3,); a 3‑D direction vector. No requirement for unit length; components are real numbers. The function treats the special case when the z‑component is near zero. Outputs: - b: ndarray of shap...
python
custom-check-github
diff --git a/doc/source/api.rst b/doc/source/api.rst index 4c663f88..b43eda64 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -113,10 +113,11 @@ Quaternion and Axis-Angle Operations :toctree: _apidoc/ :template: function.rst + ~pytransform3d.rotations.axis_angle_from_two_directions + ~pytransf...
[MRG] Add axis-angle from two vectors Fixes #12
Rotation from two vectors [Eigen offers this function.](https://github.com/libigl/eigen/blob/master/Eigen/src/Geometry/Quaternion.h#L578)
rock-learning/pytransform3d
diff --git a/pytransform3d/test/test_rotations.py b/pytransform3d/test/test_rotations.py index 0525cb1d..123da020 100644 --- a/pytransform3d/test/test_rotations.py +++ b/pytransform3d/test/test_rotations.py @@ -100,6 +100,23 @@ def test_perpendicular_to_vectors(): assert_array_almost_equal(perpendicular_to_vectors...
[ "pytransform3d/test/test_rotations.py::test_perpendicular_to_vector" ]
[ "pytransform3d/test/test_rotations.py::test_norm_vector", "pytransform3d/test/test_rotations.py::test_norm_zero_vector", "pytransform3d/test/test_rotations.py::test_norm_angle", "pytransform3d/test/test_rotations.py::test_norm_axis_angle", "pytransform3d/test/test_rotations.py::test_norm_compact_axis_angle"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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/libigl/eigen/blob/master/Eigen/src/...
2d592cd7cdd7f73ea749cbcef30c7220eaa53b4f
2023-11-13 07:20:39
docker.io/swerebenchv2/slackapi-python-slack-sdk:1423-2d592cd
slackapi__python-slack-sdk-1423
Method: SlackResponse.__getitem__(self, key) Location: slack_sdk/web/slack_response.py Inputs: - **key** (str): The name of a field from the Slack API JSON payload (e.g., "ok", "error"). Outputs: - Returns the value associated with *key* in the underlying response data (type varies). - Raises **KeyError** if the key ...
python
MIT
diff --git a/README.md b/README.md index 5da4406..03a48d1 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,9 @@ except SlackApiError as e: assert e.response["ok"] is False assert e.response["error"] # str like 'invalid_auth', 'channel_not_found' print(f"Got an error: {e.response['error']}") + # ...
Fix #1421 Update SlackApiError exception handling for web client ## Summary This pull request resolves #1421, also updated unit tests and README. ### Category (place an `x` in each of the `[ ]`) - [x] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async...
SlackApiError: 'dict' object has no attribute 'status_code' `slack_sdk.web` reports the `'dict' object has no attribute 'status_code'` error when attempting to retrieve the SlackApiError's `status_code`. ### Reproducible in: ```bash $ pip list | grep slack slack-sdk 3.23.0 $ pip freeze | grep slack ...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/web/test_web_client.py b/tests/slack_sdk/web/test_web_client.py index 46810de..024915a 100644 --- a/tests/slack_sdk/web/test_web_client.py +++ b/tests/slack_sdk/web/test_web_client.py @@ -150,7 +150,7 @@ class TestWebClient(unittest.TestCase): self.fail("SlackApiError expected ...
[ "tests/slack_sdk/web/test_web_client.py::TestWebClient::test_html_response_body_issue_718", "tests/slack_sdk/web/test_web_client_http_retry_server_error.py::TestWebClient_HttpRetry_ServerError::test_html_response_body_issue_829", "tests/slack_sdk/web/test_web_client_issue_829.py::TestWebClient_Issue_829::test_h...
[ "tests/slack_sdk/web/test_web_client.py::TestWebClient::test_api_calls_include_user_agent", "tests/slack_sdk/web/test_web_client.py::TestWebClient::test_builtin_api_methods_send_json", "tests/slack_sdk/web/test_web_client.py::TestWebClient::test_default_team_id", "tests/slack_sdk/web/test_web_client.py::TestW...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [ "https://slack.dev/python-slack-sdk/web/index.html#rate...
89d5366c888f430003aa6f16a13ad9cdd2826d95
2025-02-26 10:45:31
docker.io/swerebenchv2/pymc-devs-pytensor:1250-89d5366
pymc-devs__pytensor-1250
Function: vecdot(x1: TensorLike, x2: TensorLike, dtype: Optional[DTypeLike] = None) Location: pytensor.tensor.math Inputs: - x1 – tensor variable, any shape; last axis is the vector dimension. - x2 – tensor variable, same shape as x1 (broadcastable); last axis matches x1’s. - dtype – optional desired output dtype; if ...
python
custom-check-github
diff --git a/pytensor/link/numba/dispatch/basic.py b/pytensor/link/numba/dispatch/basic.py index 7685c17d9..19e91e5f8 100644 --- a/pytensor/link/numba/dispatch/basic.py +++ b/pytensor/link/numba/dispatch/basic.py @@ -243,93 +243,6 @@ def impl_to_scalar(x): raise TypingError(f"{x} must be a scalar compatible ty...
Expose vecdot, vecmat and matvec helpers ## Summary - Add vecdot, vecmat, and matvec helpers to match NumPy's API - Use existing Blockwise operations but provide more intuitive interface - Include comprehensive tests for all three functions ## Test plan - Added a new TestMatrixVectorOps class with tests for all ...
Expose `vecdot`, `vecmat` and `matvec` helpers ### Description Newer numpy versions introduced the vecmat and matvec (and they had vecdot for a while), which we have internally as different Blockwise versions of `Dot`, just like `matmul`. We should expose those as we do with `matmul`: https://github.com/pymc-devs/pyt...
pymc-devs/pytensor
diff --git a/tests/tensor/test_math.py b/tests/tensor/test_math.py index 9ab4fd104..38207d0f5 100644 --- a/tests/tensor/test_math.py +++ b/tests/tensor/test_math.py @@ -89,6 +89,7 @@ from pytensor.tensor.math import ( logaddexp, logsumexp, matmul, + matvec, max, max_and_argmax, maximum,...
[ "tests/tensor/test_math.py::TestAddBroadcast::test_good", "tests/tensor/test_math.py::TestAddBroadcast::test_bad_build", "tests/tensor/test_math.py::TestAddBroadcast::test_bad_compile", "tests/tensor/test_math.py::TestAddBroadcast::test_bad_runtime", "tests/tensor/test_math.py::TestAddBroadcast::test_grad",...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/pymc-devs/pytensor/blob/5d4e9e0749a...
88a84d12df5ab83e0a9cecf54c80a53ad6e4503a
2023-01-11 21:32:30
docker.io/swerebenchv2/openmdao-openmdao:2771-88a84d1
openmdao__openmdao-2771
Method: System.get_io_metadata(self, includes=None, excludes=None, tags=(), get_remote=False, rank=None, return_rel_names=True) Location: openmdao.core.system.System Inputs: - includes (str or iterable, optional): pattern(s) to filter variable names. - excludes (str or iterable, optional): pattern(s) to exclude from th...
python
custom-check-github
diff --git a/openmdao/core/system.py b/openmdao/core/system.py index 26d032ab1..6e86c8477 100644 --- a/openmdao/core/system.py +++ b/openmdao/core/system.py @@ -4066,7 +4066,7 @@ class System(object): includes=None, excludes=None, tags=(), get_remote=False, rank=None, r...
Fix bug in System.get_io_metadata() ### Summary Fix bug in System.get_io_metadata() that caused the discrete property to always be reported as True Also: - added tests - added `set` and `type` to the types that can be compared in assert_near_equal. ### Related Issues - Resolves #2710 ### Backwards inc...
Problem with get_io_metadata: `discrete` is always set to `True` ### Description `get_io_metadata()` seems to return `discrete: True` for all variables even if no discrete variable is declared. ### Example ```python import openmdao.api as om from openmdao.test_suite.components.sellar_feature import SellarMDA pro...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_discrete.py b/openmdao/core/tests/test_discrete.py index f474f8c90..777764171 100644 --- a/openmdao/core/tests/test_discrete.py +++ b/openmdao/core/tests/test_discrete.py @@ -721,6 +721,62 @@ class DiscreteTestCase(unittest.TestCase): self.assertEqual(prob['x'], 10) + ...
[ "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_get_io_metadata_discrete", "openmdao/core/tests/test_system.py::TestSystem::test_get_io_metadata" ]
[ "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_connection_from_input", "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_connection_to_output", "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_deriv_err", "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_dis...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
c2c0d5886af4c696b903fee3e774262bf2afb9e3
2025-03-30 16:49:20
docker.io/swerebenchv2/3yourmind-django-migration-linter:300-c2c0d58
3yourmind__django-migration-linter-300
No new interfaces are introduced.
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f9e2b4..e40ebc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 5.x.y +Bug: +- Don't detect an index creation during a transaction with an exclusive lock, when the table is being created (#264) + Miscellaneous: - Add support for Python 3.13 diff --g...
Don't detect an index creation during a transaction with an exclusive lock, when the table is being created Fix #264 Created from https://github.com/3YOURMIND/django-migration-linter/pull/295
`CREATE_INDEX` and `CREATE_INDEX_EXCLUSIVE` docs are not helpful Hi! Thanks for working on this project. Today I updated to v5 and got some new CI failures. Here's my migration file: https://github.com/tough-dev-school/python-testing-homework/blob/master/server/apps/identity/migrations/0001_initial.py It generat...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index 6dbce6b..fdd1c83 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -315,6 +315,13 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): 'CREATE INDEX ON "films" ((lower("title")));',...
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_exclusive_with_prior_table_creation" ]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/tough-dev-school/python-testing-homew...
6a80b40a3fc40c4a1a7f1f8920569913324ce069
2020-10-30 21:26:38
docker.io/swerebenchv2/alteryx-evalml:1386-6a80b40
alteryx__evalml-1386
Method: ObjectiveBase.is_defined_for_problem_type(cls, problem_type) Location: evalml/objectives/objective_base.py Inputs: `problem_type` – a member of `ProblemTypes` enum (e.g., `ProblemTypes.BINARY`, `ProblemTypes.REGRESSION`, `ProblemTypes.TIME_SERIES_REGRESSION`). Outputs: `bool` – returns `True` if the suppl...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 872abedf..6c06395d 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -6,6 +6,8 @@ Release Notes * Added ability to freeze hyperparameters for AutoMLSearch :pr:`1284` * Added the index id to...
Add TimeSeriesRegression problem type ### Pull Request Description Fix #1378 . ----- *After creating the pull request: in order to pass the **release_notes_updated** check you will need to update the "Future Release" section of* `docs/source/release_notes.rst` *to include this pull request by adding :pr:`123`.*
Implement problem type for time series regression Currently we have a convention that each defined objective maps to a single problem type. In the future we will add objectives that are only valid for time series regression, but we would also want to evaluate the pipeline on "standard" regression metrics like MSE or MA...
alteryx/evalml
diff --git a/evalml/tests/automl_tests/test_automl.py b/evalml/tests/automl_tests/test_automl.py index f6f6845d..bf80da47 100644 --- a/evalml/tests/automl_tests/test_automl.py +++ b/evalml/tests/automl_tests/test_automl.py @@ -1108,28 +1108,32 @@ def test_error_during_train_test_split(mock_fit, mock_score, mock_train_t...
[ "evalml/tests/problem_type_tests/test_problem_types.py::test_handle_string", "evalml/tests/problem_type_tests/test_problem_types.py::test_handle_problem_types", "evalml/tests/problem_type_tests/test_problem_types.py::test_all_problem_types" ]
[ "evalml/tests/automl_tests/test_automl.py::test_automl_data_check_results_is_none_before_search", "evalml/tests/automl_tests/test_automl.py::test_automl_str_no_param_search", "evalml/tests/automl_tests/test_automl.py::test_automl_serialization_protocol", "evalml/tests/automl_tests/test_automl.py::test_invalid...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
9bd6eb79b7d516d2804de08268de5f1e8c80b27d
2020-03-15 01:04:38
docker.io/swerebenchv2/brettcannon-gidgethub:102-9bd6eb7
brettcannon__gidgethub-102
Method: BadRequestUnknownError.__init__(self, response: str) Location: gidgethub.BadRequestUnknownError (subclass of BadRequest) Inputs: `response` – a string containing the raw response body returned by GitHub when a 422 status is received and the payload is not JSON. Outputs: Initializes the exception instance,...
python
Apache-2.0
diff --git a/docs/__init__.rst b/docs/__init__.rst index b5386f2..9dc8acb 100644 --- a/docs/__init__.rst +++ b/docs/__init__.rst @@ -45,6 +45,18 @@ Exceptions Inherits from :exc:`HTTPException`. +.. exception:: BadRequestUnknownError + + Exception for ``422`` status code responses which do not include a JSON ...
Raise a unique exception if an error has no JSON Closes #81
Handle case when GitHub doesn't return JSON error So I've done _something_ wrong and got HTTP 422 (it wasn't obvious from logs, only from checking sansio code...): ```python-traceback File "/app/.heroku/python/lib/python3.7/site-packages/gidgethub/abc.py", line 82, in _make_request data, self.rate_limit, more ...
brettcannon/gidgethub
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index b51b042..ecdb2de 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -2,6 +2,7 @@ import http from gidgethub import ( BadRequest, + BadRequestUnknownError, GitHubBroken, HTTPException, InvalidField, @@ -...
[ "tests/test_exceptions.py::TestHTTPException::test_status_code_only", "tests/test_exceptions.py::TestHTTPException::test_message", "tests/test_exceptions.py::test_GitHubBroken", "tests/test_exceptions.py::test_BadRequest", "tests/test_exceptions.py::test_BadRequestUnknownError", "tests/test_exceptions.py:...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/brettcannon/gidgethub/issues/81" ...
a57c5c85d4b0d3ecb08dcfc50c615e29aee875b8
2025-02-02 12:05:36
docker.io/swerebenchv2/getmoto-moto:8551-a57c5c8
getmoto__moto-8551
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/models/__init__.py b/moto/dynamodb/models/__init__.py index 74e76f1fa..d15cd9045 100644 --- a/moto/dynamodb/models/__init__.py +++ b/moto/dynamodb/models/__init__.py @@ -627,60 +627,51 @@ class DynamoDBBackend(BaseBackend): ] = [] # [(Code, Message, Item), ..] for item in t...
ECR: Lifecycle Policies() now support the tagPatternList-parameter Fixes #8484
BUG: ECR stub not allowing official fields Per [ECR Docs](https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html#lifecycle_policy_syntax) ECR supports some fields which moto is erroring out on. <img width="938" alt="image" src="https://github.com/user-attachments/assets/6ae7c054-7016-4...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb_transact.py b/tests/test_dynamodb/test_dynamodb_transact.py index 13e635302..fec16b170 100644 --- a/tests/test_dynamodb/test_dynamodb_transact.py +++ b/tests/test_dynamodb/test_dynamodb_transact.py @@ -307,34 +307,38 @@ def test_transact_write_items_put_conditional_express...
[ "tests/test_dynamodb/test_dynamodb_transact.py::test_transact_write_items_failure__return_item[ConditionCheck]", "tests/test_dynamodb/test_dynamodb_transact.py::test_transact_write_items_failure__return_item[Delete]", "tests/test_dynamodb/test_dynamodb_transact.py::test_transact_write_items_failure__return_item...
[ "tests/test_dynamodb/test_dynamodb_transact.py::test_invalid_transact_get_items", "tests/test_dynamodb/test_dynamodb_transact.py::test_transact_get_items_should_return_empty_map_for_non_existent_item", "tests/test_dynamodb/test_dynamodb_transact.py::test_valid_transact_get_items", "tests/test_dynamodb/test_dy...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B3", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.aws.amazon.com/AmazonECR/latest/userguide/l...
5c867632f7b8b1cd0ce29cb084ae5da500e7a604
2025-03-24 13:32:50
docker.io/swerebenchv2/narwhals-dev-narwhals:2280-5c86763
narwhals-dev__narwhals-2280
Method: Expr.mode(self) Location: narwhals/_arrow/series.py (via the generated expression for mode) Inputs: No parameters. Returns a Series containing the mode of the column(s). May raise <code>narwhals.exceptions.ShapeError</code> when the expression is applied to multiple columns that produce results of differing l...
python
MIT
diff --git a/narwhals/_arrow/series.py b/narwhals/_arrow/series.py index 08ec2e51..d16d2e9d 100644 --- a/narwhals/_arrow/series.py +++ b/narwhals/_arrow/series.py @@ -28,6 +28,7 @@ from narwhals._arrow.utils import native_to_narwhals_dtype from narwhals._arrow.utils import nulls_like from narwhals._arrow.utils import...
fix: Expr.mode broadcasting closes #2273 This is definitely not THE solution, we need to find a better way of preserving the `_broadcast` attribute in some cases <!-- # Thanks for contributing a pull request! ## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob...
[Bug]: `Expr.mode` inconsistent output when applied to multiple columns ### Describe the bug When applying expr.mode() on multiple columns (e.g. `df.select(nw.all().mode())`) and one returns one and another multiple values the output is incosistent. This is due to to an issue on the `polars` side of the operation. I...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/mode_test.py b/tests/expr_and_series/mode_test.py index c20a57c6..a18c8292 100644 --- a/tests/expr_and_series/mode_test.py +++ b/tests/expr_and_series/mode_test.py @@ -3,6 +3,8 @@ from __future__ import annotations import pytest import narwhals.stable.v1 as nw +from narwhals.excep...
[ "tests/expr_and_series/mode_test.py::test_mode_different_lengths[pandas]", "tests/expr_and_series/mode_test.py::test_mode_different_lengths[pyarrow]", "tests/expr_and_series/mode_test.py::test_mode_different_lengths[pandas[pyarrow]]", "tests/expr_and_series/mode_test.py::test_mode_single_expr[pyarrow]", "te...
[ "tests/expr_and_series/rolling_var_test.py::test_rolling_var_expr_lazy_ungrouped[pandas-expected_a0-2-None-False-0]", "tests/expr_and_series/rolling_var_test.py::test_rolling_var_expr_lazy_ungrouped[polars[eager]-expected_a1-2-2-False-1]", "tests/expr_and_series/rolling_var_test.py::test_rolling_var_series[pyar...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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.pola.rs/api/python/dev/reference/expressi...
5861760d7e0fb5bdd7d9639faac8a512dacc4c41
2019-04-21 05:20:34
docker.io/swerebenchv2/neogeny-tatsu:102-5861760
neogeny__tatsu-102
Method: Buffer.line_info(self, pos=None) Location: tatsu/buffering.py Inputs: - **pos** (int, optional): character offset inside the buffer for which line information is requested. If omitted, the buffer’s current cursor position is used. Must be ≥ 0 and ≤ buffer length. Outputs: - **LineInfo** object describing the ...
python
custom-check-github
diff --git a/tatsu/buffering.py b/tatsu/buffering.py index cba470c..4ab6cf7 100644 --- a/tatsu/buffering.py +++ b/tatsu/buffering.py @@ -340,9 +340,7 @@ class Buffer(object): if pos is None: pos = self._pos - if pos >= len(self._line_cache): - return LineInfo(self.filename, sel...
[buffering] fix lineinfo consistency fixes #79
Error message doesn't contains line on witch error happens ```python import tatsu GRAMMAR_TEXT = """ start = ATTRIBUTE operator value ; ATTRIBUTE = /[A-Za-z]+/; operator = '=' | '!=' ; value = NUMBER ; NUMBER = /[0-9]+/ ; """ def parse(data): with open('gr.py', 'w') as fd...
neogeny/TatSu
diff --git a/test/buffering_test.py b/test/buffering_test.py index e9d00d2..802ccf9 100644 --- a/test/buffering_test.py +++ b/test/buffering_test.py @@ -81,8 +81,8 @@ class BufferingTests(unittest.TestCase): start = n + 1 text_len = len(self.text) info = self.buf.line_info(1 + text_le...
[ "test/buffering_test.py::BufferingTests::test_line_info_consistency" ]
[ "test/buffering_test.py::BufferingTests::test_goto_consistency", "test/buffering_test.py::BufferingTests::test_line_consistency", "test/buffering_test.py::BufferingTests::test_linecount", "test/buffering_test.py::BufferingTests::test_next_consisntency", "test/buffering_test.py::BufferingTests::test_pos_cons...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0b8b13530e9da7a6979aaa038b80316893e25f94
2019-04-21 04:44:39
docker.io/swerebenchv2/neogeny-tatsu:101-0b8b135
neogeny__tatsu-101
No new interfaces are introduced.
python
custom-check-github
diff --git a/grammar/tatsu.ebnf b/grammar/tatsu.ebnf index 6ff697e..f017615 100644 --- a/grammar/tatsu.ebnf +++ b/grammar/tatsu.ebnf @@ -25,9 +25,13 @@ directive = '@@' !'keyword' ~ ( - name:('comments' | 'eol_comments' | 'whitespace') ~ + name:('comments' | 'eol_comments') ~ ...
[directives] allow None/False for @@whitespace fixes #73
Allow False as a value for @@whitespace Currently using this inside my grammar: ``` @@whitespace :: /(?!)/ ``` which doesn't match anything. ``` @@whitespace :: False ``` would be more descriptive and probably more performant. `True` would set it to the default value. Alternatively it could accept a string and...
neogeny/TatSu
diff --git a/test/grammar/directive_test.py b/test/grammar/directive_test.py index b91e86e..530def0 100644 --- a/test/grammar/directive_test.py +++ b/test/grammar/directive_test.py @@ -4,6 +4,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera import unittest import tatsu +from tat...
[ "test/grammar/directive_test.py::DirectiveTests::test_whitespace_none_directive" ]
[ "test/grammar/directive_test.py::DirectiveTests::test_eol_comments_re_directive", "test/grammar/directive_test.py::DirectiveTests::test_grammar_directive", "test/grammar/directive_test.py::DirectiveTests::test_left_recursion_directive", "test/grammar/directive_test.py::DirectiveTests::test_nameguard_directive...
{ "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.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
fe6bf777316d7044a484d39206c30afa0ea8ec53
2017-04-21 17:50:38
docker.io/swerebenchv2/kayak-pypika:38-fe6bf77
kayak__pypika-38
Method: Joiner.using(self, *fields) Location: pypika/queries.py → class Joiner Inputs: one or more column names as strings (e.g., `'id'` or `'foo', 'bar'`). At least one field must be supplied; otherwise a JoinException is raised. Outputs: the original Query object (the query being built) with an additional JOIN … USIN...
python
Apache-2.0
diff --git a/README.rst b/README.rst index 2154b78..3bba5bd 100644 --- a/README.rst +++ b/README.rst @@ -289,11 +289,13 @@ After adding a ``GROUP BY`` clause to a query, the ``HAVING`` clause becomes ava Joining Tables and Subqueries """"""""""""""""""""""""""""" -Tables and subqueries can be joined to any query us...
Added support for joins with USING and updated the documentation Fixes #36 Added support for USING joins with tests. Rewrote the join documentation to omit low level details and to cover both join types.
additional Join functionality - It would be a nice convenience function just to specify a string or list of strs if the column(s) to join on are the same in both tables. e.g. from_(t1).join(t2).on('c1') - it's not clear how I can construct a join USING clause "... from t1 join t2 USING (c1, c2)" i'm happy to con...
kayak/pypika
diff --git a/pypika/tests/test_joins.py b/pypika/tests/test_joins.py index ad423f9..7667ced 100644 --- a/pypika/tests/test_joins.py +++ b/pypika/tests/test_joins.py @@ -31,6 +31,16 @@ class JoinTypeTests(unittest.TestCase): self.assertEqual('SELECT * FROM "abc" JOIN "efg" ON "abc"."foo"="efg"."bar"', str(query...
[ "pypika/tests/test_joins.py::JoinTypeTests::test_join_using_multiple_fields", "pypika/tests/test_joins.py::JoinTypeTests::test_join_using_string_field_name" ]
[ "pypika/tests/test_joins.py::JoinTypeTests::test_inner_join", "pypika/tests/test_joins.py::JoinTypeTests::test_join_arithmetic_field", "pypika/tests/test_joins.py::JoinTypeTests::test_join_on_complex_criteria", "pypika/tests/test_joins.py::JoinTypeTests::test_join_with_arithmetic_function_in_select", "pypik...
{ "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.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
0a7947567f400192f6099c47fa84e2bde36e531e
2024-06-20 19:47:09
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3357-0a79475
aws-cloudformation__cfn-lint-3357
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/data/schemas/other/iam/policy.json b/src/cfnlint/data/schemas/other/iam/policy.json index b6bac4ecc..ad27109d7 100644 --- a/src/cfnlint/data/schemas/other/iam/policy.json +++ b/src/cfnlint/data/schemas/other/iam/policy.json @@ -20,7 +20,14 @@ "type": "string" }, "AwsPrincipalArn": { -...
Allow OAI IDs in IAM policies *Issue #, if available:* fix #3352 *Description of changes:* - Allow OAI IDs in IAM policies By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E3002, E3031 & E3512 for AWS::S3::BucketPolicy with OAI ### CloudFormation Lint Version 1.3.0+ (git a7906eaaa) ### What operating system are you using? Mac ### Describe the bug CFN template with an S3 BucketPolicy referencing a CloudFront Origin Access Identity raises 3 errors in cfn-lint v1 ``` E3002 '*' was ...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/iam/test_resource_policy.py b/test/unit/rules/resources/iam/test_resource_policy.py index 6ca3d61ae..b88accf9b 100644 --- a/test/unit/rules/resources/iam/test_resource_policy.py +++ b/test/unit/rules/resources/iam/test_resource_policy.py @@ -54,6 +54,7 @@ class TestResourcePolicy(...
[ "test/unit/rules/resources/iam/test_resource_policy.py::TestResourcePolicy::test_object_multiple_effect" ]
[ "test/unit/rules/resources/iam/test_resource_policy.py::TestResourcePolicy::test_object_basic", "test/unit/rules/resources/iam/test_resource_policy.py::TestResourcePolicy::test_object_statements", "test/unit/rules/resources/iam/test_resource_policy.py::TestResourcePolicy::test_string_statements" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
dd844b2447f48b6b8e8c5a033b5a3fb84325b6f9
2021-02-25 16:45:40
docker.io/swerebenchv2/alteryx-woodwork:632-dd844b2
alteryx__woodwork-632
Method: WoodworkTableAccessor.value_counts(self, ascending=False, top_n=10, dropna=False) Location: woodwork/table_accessor.py → class WoodworkTableAccessor Inputs: - **self** – WoodworkTableAccessor instance wrapping a DataFrame. - **ascending** (bool, default False) – If True, sort each column’s value‑counts from le...
python
BSD-3-Clause
diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index c592b32..b58f70f 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -24,6 +24,7 @@ WoodworkTableAccessor WoodworkTableAccessor.to_dictionary WoodworkTableAccessor.to_parquet WoodworkTableAccess...
Add Value counts to table accesor - Moves over value counts method from DataTables - Closes #561
Add df.ww.value_counts to Accessor Another method that will overwrite the Pandas operation
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_statistics.py b/woodwork/tests/accessor/test_statistics.py index 471b462..3804cee 100644 --- a/woodwork/tests/accessor/test_statistics.py +++ b/woodwork/tests/accessor/test_statistics.py @@ -533,3 +533,49 @@ def test_describe_with_include(sample_df): assert col_name in...
[ "woodwork/tests/accessor/test_statistics.py::test_value_counts[categorical_df_pandas]" ]
[ "woodwork/tests/accessor/test_statistics.py::test_get_mode", "woodwork/tests/accessor/test_statistics.py::test_accessor_replace_nans_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_accessor_make_categorical_for_mutual_info", "woodwork/tests/accessor/test_statistics.py::test_mutual_info_sam...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
96d497c2b8f5495fe603ffb1a7675e95f342dd2c
2018-11-09 07:32:34
docker.io/swerebenchv2/graphql-python-graphene:864-96d497c
graphql-python__graphene-864
Function: dict_or_attr_resolver(attname, default_value, root, info, **args) Location: graphene/types/resolver.py Inputs: - attname (str): name of the attribute or key to resolve. - default_value (Any): value to return when the key/attribute is missing. - root (dict or object): the source data; if a dict the lookup i...
python
MIT
diff --git a/docs/execution/execute.rst b/docs/execution/execute.rst index 21345aa..1c28548 100644 --- a/docs/execution/execute.rst +++ b/docs/execution/execute.rst @@ -24,7 +24,7 @@ You can pass context to a query via ``context``. class Query(graphene.ObjectType): name = graphene.String() - def ...
[863] DateTime, Date, and Time now accept datetime.datetime, datetime.date,… … and datetime.time resp. inputs when used as variables Fixes #863
[Enhancement] DateTime inputs should accept Python datetimes `DateTime`, `Date`, and `Time` will not accept corresponding instances of `datetime.*` when used as variables, you have to format your variables as strings. The following code simply providing Python datetimes should be supported in addition to string form...
graphql-python/graphene
diff --git a/graphene/types/tests/test_datetime.py b/graphene/types/tests/test_datetime.py index 98e5e7a..0d9ee11 100644 --- a/graphene/types/tests/test_datetime.py +++ b/graphene/types/tests/test_datetime.py @@ -2,6 +2,7 @@ import datetime import pytz from graphql import GraphQLError +import pytest from ..datet...
[ "graphene/types/tests/test_datetime.py::test_datetime_query", "graphene/types/tests/test_datetime.py::test_date_query", "graphene/types/tests/test_datetime.py::test_time_query", "graphene/types/tests/test_datetime.py::test_bad_datetime_query", "graphene/types/tests/test_datetime.py::test_bad_date_query", ...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.86, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e73e1293bd34ecec41acbc2abe6730edb8191c7e
2021-03-09 22:14:37
docker.io/swerebenchv2/alteryx-woodwork:685-e73e129
alteryx__woodwork-685
Method: WoodworkTableAccessor.physical_types(self) Location: woodwork/table_accessor.py Inputs: None (uses self._dataframe and self.schema.logical_types) Outputs: dict mapping each column name to its physical dtype string (derived via _get_valid_dtype) Description: Returns a dictionary of the physical dtypes for ea...
python
BSD-3-Clause
diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index 9438175..1dff1a6 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -72,7 +72,6 @@ Schema Schema.add_semantic_tags Schema.index Schema.logical_types - Schema.physical_types Schema.renam...
Remove dtype from Schema dictionary - Removes the `dtype` field from the Schema columns dictionary, relying on Series dtype when checking the dtype of a column. - Adds a separate repr for Schema and Table Accessor since only the Table Accessor has access to physical types - Closes #653
Remove dtype from column dictionary When Woodwork is initialized, the Schema object creates data dictionaries for each column and stores these in the Schema object. These column dictionaries include the dtype of the column, which is currently set to the value of the `LogicalType.pandas_dtype` on init. This is problemat...
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py index 03f50bf..2b65442 100644 --- a/woodwork/tests/accessor/test_table_accessor.py +++ b/woodwork/tests/accessor/test_table_accessor.py @@ -112,6 +112,19 @@ def test_accessor_schema_property(sample_df): ass...
[ "woodwork/tests/schema/test_schema.py::test_schema_types", "woodwork/tests/schema/test_schema.py::test_schema_repr[small_df_pandas]", "woodwork/tests/schema/test_schema.py::test_schema_repr_empty", "woodwork/tests/schema/test_schema_column.py::test_get_column_dict" ]
[ "woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]", "woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]", "woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]", "woodwork/tests/ac...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e3e85aa82df2a811ad59b11215a3d22a8f6f1c01
2023-08-04 20:04:18
docker.io/swerebenchv2/pennylaneai-pennylane:4441-e3e85aa
pennylaneai__pennylane-4441
Method: Operator.__sub__(self, other) Location: pennylane/operation.py Inputs: - **other**: the right‑hand operand. Accepts either an **Operator** instance (for operator‑operator subtraction) or a **TensorLike** object (e.g., a scalar or NumPy array) for numeric subtraction. Any other type is considered unsupported. O...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 8a9ccee85..4a9add0c3 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -311,6 +311,9 @@ array([False, False]) and `var` measurements. [(#4426)](https://github.com/PennyLaneAI/pennylane/pull/4426) +* ...
bugfix: substraction works with new opmath **Context:** Subtraction of new opmath was broken when the operator being subtracted is a prod. See bug report for details, but in short, this used to happen: ```pycon >>> qml.PauliZ(0) - qml.prod(qml.PauliX(0), qml.PauliY(1)) PauliZ(wires=[0]) + ([-1*(PauliX(wires=[0])) -...
[BUG] Unexpected behaviour with operator subtraction and `.simplify()` ### Expected behavior I am trying to combine Pauli strings using addition/subtraction and tensor products. Subtracting operators from each other and simplifying the result should be possible. For example, ``` >>> H1 = qml.PauliZ(0) >>> H2 = ...
PennyLaneAI/pennylane
diff --git a/tests/test_operation.py b/tests/test_operation.py index 13c93332b..a6067c207 100644 --- a/tests/test_operation.py +++ b/tests/test_operation.py @@ -1147,6 +1147,14 @@ class TestOperatorIntegration: neg_op = -qml.PauliX(0) assert np.allclose(a=neg_op.matrix(), b=np.array([[0, -1], [-1, 0]]...
[ "tests/test_operation.py::TestOperatorIntegration::test_sub_obs_from_op", "tests/test_operation.py::TestNewOpMath::TestAdd::test_sub_operators[op04-op14]" ]
[ "tests/test_operation.py::test_qutrit_subspace_op_errors[subspace0-Elements", "tests/test_operation.py::test_qutrit_subspace_op_errors[subspace1-The", "tests/test_operation.py::test_qutrit_subspace_op_errors[subspace2-Elements", "tests/test_operation.py::test_qutrit_subspace_op_errors[subspace3-Elements", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
1cb65451107b76a6e34852fa1830d0a7c14996c7
2023-04-26 03:55:38
docker.io/swerebenchv2/pycqa-docformatter:190-1cb6545
pycqa__docformatter-190
No new interfaces are introduced.
python
MIT
diff --git a/src/docformatter/syntax.py b/src/docformatter/syntax.py index 9afbeb6..567a995 100644 --- a/src/docformatter/syntax.py +++ b/src/docformatter/syntax.py @@ -338,8 +338,9 @@ def do_split_description( ) ) - if _lines[-1] == "": - _lines.pop(-1) + ...
fix: IndexError when only URL in long description Fixes #189.
List index out of range when formatting docstring with URL I'm on newly-released docformatter 1.6.3. When I run on a docstring of the following format, I get an `IndexError: list index out of range` at `File ".../lib/python3.11/site-packages/docformatter/syntax.py", line 341, in do_split_description if _lines[-1] ...
PyCQA/docformatter
diff --git a/tests/test_format_docstring.py b/tests/test_format_docstring.py index df1d764..92bc507 100644 --- a/tests/test_format_docstring.py +++ b/tests/test_format_docstring.py @@ -1298,6 +1298,43 @@ num_iterations is the number of updates - instead of a better definition of conv INDENTATION, docstring...
[ "tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_with_only_link_in_description[args0]" ]
[ "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring[args0]", "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_summary_that_ends_in_quote[args0]", "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_bad_indentation[args0]", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
130eac0bfdb61f417cc94ea168565725e62ce8d9
2024-06-21 13:07:23
docker.io/swerebenchv2/stfc-psyclone:2628-130eac0
stfc__psyclone-2628
Method: FortranWriter.schedule_node(self, node) Location: src/psyclone/psyir/backend/fortran.py (class FortranWriter) Inputs: - **node** – a :py:class:`psyclone.psyir.nodes.Schedule` instance whose children are PSyIR statements to be emitted as Fortran code. Outputs: - **str** – the concatenated Fortran source produc...
python
BSD-3-Clause
diff --git a/changelog b/changelog index c9f4885d5..2abfa78a0 100644 --- a/changelog +++ b/changelog @@ -317,6 +317,8 @@ 119) PR #2775. Adds Call.get_callee() which matches the arguments of a Call against the signature of potential callees. + 120) PR #2628 for #2624. Improves debug_string output for Schedules. + ...
(Closes #2624) Add `FortranWriter().schedule_node()`. Avoids defaulting to `str(schedule)` for `Schedule().debug_string()` and raising a `VisitorError` using `FortranWriter()(Schedule())`.
Schedule.debug_string() defaults to str() and FortranWriter raises an error on it. `Schedule.debug_string()` defaults to `Node.debug_string()` which uses `DebugWriter` and defaults to `str()`. `FortranWriter()(schedule)` raises a `VisitorError`. Script: ```python from psyclone.psyir.frontend.fortran import Fort...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyir/backend/fortran_test.py b/src/psyclone/tests/psyir/backend/fortran_test.py index 32c6b3807..d51fbfd52 100644 --- a/src/psyclone/tests/psyir/backend/fortran_test.py +++ b/src/psyclone/tests/psyir/backend/fortran_test.py @@ -2035,3 +2035,24 @@ def test_pointer_assignments(fortran_rea...
[ "src/psyclone/tests/psyir/backend/fortran_test.py::test_fw_schedule" ]
[ "src/psyclone/tests/psyir/backend/fortran_test.py::test_gen_intent", "src/psyclone/tests/psyir/backend/fortran_test.py::test_gen_intent_error", "src/psyclone/tests/psyir/backend/fortran_test.py::test_gen_indices", "src/psyclone/tests/psyir/backend/fortran_test.py::test_gen_indices_error", "src/psyclone/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
1380fa27e35c50c6dbdfd7884ed22e46563c370c
2023-01-06 00:07:54
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2548-1380fa2
aws-cloudformation__cfn-lint-2548
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py index a461f8418..04bd2b7d7 100644 --- a/src/cfnlint/rules/resources/properties/Properties.py +++ b/src/cfnlint/rules/resources/properties/Properties.py @@ -380,6 +380,21 @@ class Properties(CloudForm...
fix (rule) - Allow a GetAtt for objects in rule E3002 *Issue #, if available:* fix #2537 *Description of changes:* - Fix rule E3002 to allow GetAtt for an object/dict By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E3002 false positives with intrinsics returning complex types ### CloudFormation Lint Version 0.72.5 ### What operating system are you using? Linux (Fedora) ### Describe the bug When using intrinsic functions to retrieve complex (ie structured) data from custom resources for other resources E3002 incorrectly marks...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/bad/resource_properties.yaml b/test/fixtures/templates/bad/resource_properties.yaml index c30638a9d..96069028d 100644 --- a/test/fixtures/templates/bad/resource_properties.yaml +++ b/test/fixtures/templates/bad/resource_properties.yaml @@ -48,3 +48,13 @@ Resources: VpcConfig:...
[ "test/unit/rules/resources/properties/test_properties.py::TestResourceProperties::test_file_positive", "test/unit/rules/resources/properties/test_properties.py::TestSpecifiedCustomResourceProperties::test_file_positive" ]
[ "test/unit/rules/resources/properties/test_properties.py::TestResourceProperties::test_E3012_in_bad_template", "test/unit/rules/resources/properties/test_properties.py::TestResourceProperties::test_E3012_match_has_extra_attributes", "test/unit/rules/resources/properties/test_properties.py::TestResourcePropertie...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
f841d66ebe332eaacbd91141664b84cabaa96ce1
2025-03-13 09:24:07
docker.io/swerebenchv2/aristanetworks-anta:1098-f841d66
aristanetworks__anta-1098
Function: LoggingQuery(regex_match: RegexString, last_number_messages: int, severity_level: LogSeverityLevel = "informational") Location: anta/input_models/logging.py Inputs: - regex_match – a string containing a regular expression to search in log entries (type RegexString, required). - last_number_messages – positiv...
python
Apache-2.0
diff --git a/anta/cli/get/utils.py b/anta/cli/get/utils.py index 42fb4d89..e6090650 100644 --- a/anta/cli/get/utils.py +++ b/anta/cli/get/utils.py @@ -350,17 +350,18 @@ def print_test(test: type[AntaTest], *, short: bool = False) -> None: # Need to handle the fact that we nest the routing modules in Examples. ...
feat(anta.cli): Add possibility to render multiple examples for the same test # Description Fixes #1097 # Checklist: <!-- Delete not relevant items !--> - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have run pre-commit for code linting a...
Enhancement(anta.tests): Generate examples/tests.yaml to Include Multiple Examples in Docstrings We have scenario ``` class Input(AntaTest.Input): """Input model for the VerifyNTPAssociations test.""" ntp_servers: list[NTPServer] | None = None """List of NTP servers.""" ntp_pool: NTPPool | None = None """NTP ...
aristanetworks/anta
diff --git a/anta/tests/logging.py b/anta/tests/logging.py index 51b83aa6..f13860e2 100644 --- a/anta/tests/logging.py +++ b/anta/tests/logging.py @@ -15,6 +15,7 @@ from ipaddress import IPv4Address from typing import TYPE_CHECKING, ClassVar from anta.custom_types import LogSeverityLevel +from anta.input_models.log...
[ "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": [], "intent_completeness": "complete", "pr_categories":...
131b2cb244e56ea22d0c08a18e53beab842fb62e
2022-04-22 13:36:17
docker.io/swerebenchv2/corteva-rioxarray:516-131b2cb
corteva__rioxarray-516
No new interfaces are introduced.
python
custom-check-github
diff --git a/docs/history.rst b/docs/history.rst index 48dea99c..102f0f3c 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,7 +3,7 @@ History Latest ------ - +- BUG: Fix WarpedVRT param cache in :func:`rioxarray.open_rasterio` (issue #515) 0.11.0 ------ diff --git a/rioxarray/_io.py b/rioxarray/_io.py ...
BUG: Fix WarpedVRT param cache in open_rasterio <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #515 - [x] Tests added - [x] Fully documented, including `docs/history.rst` for all changes and `docs/rioxarray.rst` for new API The input arguments don't match the prop...
Opening VRT with GCPs results in DataArray of zeros #### Code Sample, a copy-pastable example if possible The following loads geo coordinates correctly, but the data array is all zeros ```python import rioxarray import rasterio from rasterio.vrt import WarpedVRT with rasterio.open('cint16.tif') as src: w...
corteva/rioxarray
diff --git a/test/integration/test_integration__io.py b/test/integration/test_integration__io.py index 74409231..fba3970d 100644 --- a/test/integration/test_integration__io.py +++ b/test/integration/test_integration__io.py @@ -38,6 +38,11 @@ from test.integration.test_integration_rioxarray import ( _create_gdal_gc...
[ "test/integration/test_integration__io.py::test_rasterio_vrt_gcps__data_exists" ]
[ "test/integration/test_integration__io.py::test_build_subdataset_filter[netcdf:../../test/test_data/input/PLANET_SCOPE_3D.nc:blue-green-None-False]", "test/integration/test_integration__io.py::test_build_subdataset_filter[netcdf:../../test/test_data/input/PLANET_SCOPE_3D.nc:blue-blue-None-True]", "test/integrat...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://gist.github.com/scottyhq/211d417aa826593d8b3cac1...
4a001137d469c3163fadc9f64554e3e9384fd342
2023-03-17 19:12:24
docker.io/swerebenchv2/pennylaneai-pennylane:3921-4a00113
pennylaneai__pennylane-3921
Method: SampleMP.shape(self, device) Location: pennylane/measurements/sample.py, class SampleMP (inherits from SampleMeasurement) Inputs: device – a PennyLane device instance (provides .shots, .wire configuration, and optional shot vector). The method must be called after the measurement object is bound to a device...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 56d423515..b86cd9fda 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -197,6 +197,9 @@ (~2e-8) in the computed dipole moment values, resulting from the new [PySCF 2.2.0](https://github.com/pyscf/pyscf/re...
Fix jitting with sample bug Fix #3904 [sc-35043] Jitting failed when sampling occurred on only a subset of wires. This PR updates `SampleMP.shape` to use the measurement processes's wires if they are non-trivial (`>0`).
[BUG] `Sample` does not work with jitting when a subset of wires are used ### Expected behavior `qml.sample` works without errors when a circuit with parameters is jitted and a subset of the circuit wires are specified in the call to `qml.sample`. ### Actual behavior An exception is raised due to a mismatch be...
PennyLaneAI/pennylane
diff --git a/tests/measurements/test_sample.py b/tests/measurements/test_sample.py index 93499abe9..03ac762a0 100644 --- a/tests/measurements/test_sample.py +++ b/tests/measurements/test_sample.py @@ -45,9 +45,9 @@ def custom_measurement_process(device, spy): class TestSample: """Tests for the sample function""" ...
[ "tests/measurements/test_sample.py::TestSample::test_shape_wires[1]", "tests/measurements/test_sample.py::TestSample::test_shape_wires[10]" ]
[ "tests/measurements/test_sample.py::TestSample::test_sample_dimension[1]", "tests/measurements/test_sample.py::TestSample::test_sample_dimension[10]", "tests/measurements/test_sample.py::TestSample::test_sample_combination", "tests/measurements/test_sample.py::TestSample::test_single_wire_sample", "tests/me...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
4e7ceecd091ff34d5d8b18a274dea4d3a3f1fa66
2025-01-30 21:40:14
docker.io/swerebenchv2/stingraysoftware-stingray:874-4e7ceec
stingraysoftware__stingray-874
Method: VarEnergySpectrum.__init__(self, events=None, freq_interval=None, energy_spec=None, ref_band=None, bin_time=1, use_pi=False, segment_size=None, events2=None, return_complex=False, min_phot_per_segment=10) Location: stingray/varenergyspectrum.py → class VarEnergySpectrum Inputs: - events (EventList or None): pr...
python
MIT
diff --git a/docs/changes/874.bugfix.rst b/docs/changes/874.bugfix.rst new file mode 100644 index 00000000..5e7e2387 --- /dev/null +++ b/docs/changes/874.bugfix.rst @@ -0,0 +1,1 @@ +Set a lower limit to the number of photons in a segment of data used for certain ``VarEnergySpectrum`` subclasses. This avoids, e.g., spur...
Covariance spectrum fixes Resolves #873
Bad tail of covariance spectra at small count rates. ### Description of the Bug At low count rates, covariance spectra can appear like this: <img width="562" alt="Screenshot 2025-01-30 at 22 11 43" src="https://github.com/user-attachments/assets/df572565-aff6-45fa-ad8c-8eaed811fdae" /> It turns out that this is due ...
StingraySoftware/stingray
diff --git a/stingray/tests/test_varenergyspectrum.py b/stingray/tests/test_varenergyspectrum.py index e3767894..a1e5cf44 100644 --- a/stingray/tests/test_varenergyspectrum.py +++ b/stingray/tests/test_varenergyspectrum.py @@ -1,3 +1,4 @@ +import copy from multiprocessing import Event import os import numpy as np @@...
[ "stingray/tests/test_varenergyspectrum.py::TestVarEnergySpectrum::test_invalid_energy_spec[2]", "stingray/tests/test_varenergyspectrum.py::TestVarEnergySpectrum::test_invalid_energy_spec[a]", "stingray/tests/test_varenergyspectrum.py::TestCovarianceIO::test_astropy_roundtrip", "stingray/tests/test_varenergysp...
[ "stingray/tests/test_varenergyspectrum.py::TestExcVarEnergySpectrum::test_allocate", "stingray/tests/test_varenergyspectrum.py::TestExcVarEnergySpectrum::test_invalid_norm", "stingray/tests/test_varenergyspectrum.py::TestVarEnergySpectrum::test_no_spectrum_func_raises", "stingray/tests/test_varenergyspectrum....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "insufficient", "pr_categori...
17ee78552ddff147e1aaefcac70364c4a8520d99
2024-06-12 20:22:49
docker.io/swerebenchv2/spikeinterface-spikeinterface:3024-17ee785
spikeinterface__spikeinterface-3024
Function: has_spython() Location: spikeinterface.sorters.utils (implemented in spikeinterface.sorters.utils.misc) Inputs: None Outputs: bool – True if the Python package **spython** can be imported, False otherwise. Description: Checks for the presence of the optional *spython* library required for Singularity‑based so...
python
MIT
diff --git a/src/spikeinterface/sorters/runsorter.py b/src/spikeinterface/sorters/runsorter.py index baec6aaac..80608f897 100644 --- a/src/spikeinterface/sorters/runsorter.py +++ b/src/spikeinterface/sorters/runsorter.py @@ -19,7 +19,16 @@ from .. import __version__ as si_version from ..core import BaseRecording, Nump...
Add more container dependency checks in `run_sorter` This PR closes #2855 by adding in additional checks on container and GPU dependencies when running `run_sorter()`. It adds checks that `docker` or `singularity` are installed (if running sorter with `docker` or `singularity` respectively) and also that the corres...
Additional checks on GPU when running containerised sorting I often have a hard time debugging GPU issues when running containerised sorting. There are already a lot of useful checks in SI and performing checks is not always straightforward e.g. #1398 as can't always rely on commands like `nvidia-smi` being accessible....
SpikeInterface/spikeinterface
diff --git a/src/spikeinterface/sorters/tests/test_runsorter_dependency_checks.py b/src/spikeinterface/sorters/tests/test_runsorter_dependency_checks.py new file mode 100644 index 000000000..83d6ec316 --- /dev/null +++ b/src/spikeinterface/sorters/tests/test_runsorter_dependency_checks.py @@ -0,0 +1,170 @@ +import os +...
[ "src/spikeinterface/sorters/tests/test_runsorter_dependency_checks.py::TestRunersorterDependencyChecks::test_has_spython[spython]", "src/spikeinterface/sorters/tests/test_runsorter_dependency_checks.py::TestRunersorterDependencyChecks::test_has_docker_python[docker]", "src/spikeinterface/sorters/tests/test_runs...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://www.howtogeek.com/devops/how-to-use-an-nvidia-...
38db52eb4bc74735d32ddeccd1afea1805007de8
2021-12-08 20:13:16
docker.io/swerebenchv2/laspy-laspy:182-38db52e
laspy__laspy-182
No new interfaces are introduced.
python
custom-check-github
diff --git a/laspy/point/record.py b/laspy/point/record.py index 0f4eec9..cdc8980 100644 --- a/laspy/point/record.py +++ b/laspy/point/record.py @@ -310,10 +310,10 @@ class ScaleAwarePointRecord(PackedPointRecord): def change_scaling(self, scales=None, offsets=None) -> None: """See :meth:`.LasData.chang...
Fix change_scaling Fixes #181
change_scaling in ScaleAwarePointRecord changes x, y, z When writing a script to merge multiple las files with different offsets and scales together, I noticed unexpected behaviour in the change_scaling method in `ScaleAwarePointRecord`. I had expected this would keep `x`, `y`, `z` constant but alter `X`, `Y`, `Z` and ...
laspy/laspy
diff --git a/tests/test_common.py b/tests/test_common.py index fd109fa..80438ab 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -283,3 +283,46 @@ def test_las_data_getitem_slice(): # https://numpy.org/doc/stable/reference/arrays.indexing.html assert np.all(las.classification[:10] == 1) as...
[ "tests/test_common.py::test_change_scaling" ]
[ "tests/test_common.py::test_change_format[las0]", "tests/test_common.py::test_change_format[las1]", "tests/test_common.py::test_change_format[las2]", "tests/test_common.py::test_change_format[las3]", "tests/test_common.py::test_coords_do_not_break[las0]", "tests/test_common.py::test_coords_do_not_break[la...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
974914523542045104806e52be8135027603f771
2021-08-19 13:47:27
docker.io/swerebenchv2/virtuslab-git-machete:179-9749145
virtuslab__git-machete-179
No new interfaces are introduced.
python
MIT
diff --git a/git_machete/cmd.py b/git_machete/cmd.py index 03f722b..9772a79 100644 --- a/git_machete/cmd.py +++ b/git_machete/cmd.py @@ -89,7 +89,7 @@ class MacheteClient: def read_definition_file(self, verify_branches: bool = True) -> None: with open(self._definition_file_path) as f: - lines...
Fix wrong line number when branch reappears in definition file && limit stack trace in certain Exceptions closes #153 and #171
Line numbers displayed in errors refer to non-empty lines, not all lines .git/machete file: ``` master develop develop ``` The empty lines lead to an error in `git machete status`: `.git/machete, line 3: branch develop re-appears in the tree definition. Edit the definition file manually with git ma...
VirtusLab/git-machete
diff --git a/git_machete/tests/functional/test_machete.py b/git_machete/tests/functional/test_machete.py index f549acf..fb587a0 100644 --- a/git_machete/tests/functional/test_machete.py +++ b/git_machete/tests/functional/test_machete.py @@ -10,8 +10,10 @@ from contextlib import redirect_stdout from typing import Itera...
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_branch_reappers_in_definition" ]
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_few_possible_downstream_branches_and_yes_option", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_no_downstream_branches", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_wi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
3845d0c06d3eb571daf7320072af9db885cfd6e9
2024-09-02 07:15:34
docker.io/swerebenchv2/pyfar-pyfar:680-3845d0c
pyfar__pyfar-680
Method: Coordinates.__add__(self, other) Location: pyfar/classes/coordinates.py Inputs: *self* – Coordinates instance; *other* – Coordinates instance, int or float. Numbers are broadcast to match the shape of *self*. Outputs: Coordinates instance containing element‑wise sum. Raises TypeError with message “Addition is o...
python
MIT
diff --git a/pyfar/__init__.py b/pyfar/__init__.py index f205bb0b..08912f95 100644 --- a/pyfar/__init__.py +++ b/pyfar/__init__.py @@ -11,7 +11,7 @@ from .classes.audio import Signal, TimeData, FrequencyData from .classes.audio import (add, subtract, multiply, divide, power, matrix_multipl...
add arithmetics for coordinates ### Which issue(s) are closed by this pull request? Closes #632 ### Changes proposed in this pull request: - [x] addition of 2 Coordinates objects - [x] substraction of 2 Coordinates objects - [x] dot product - [x] cross product - [x] multiply and devide with numbers - [x] add doc at ...
Arithmetic operations with pf.Coordinates It would be nice to be able to use arithmetic operations with pf.Coordinates, similar to audio objects. ideas would be: - [x] addition of 2 Coordinates objects - [x] substraction of 2 Coordinates objects - [x] dot product - [x] cross product
pyfar/pyfar
diff --git a/tests/test_coordiantes_arithmetic.py b/tests/test_coordiantes_arithmetic.py new file mode 100644 index 00000000..8187699f --- /dev/null +++ b/tests/test_coordiantes_arithmetic.py @@ -0,0 +1,144 @@ +import pytest +import pyfar as pf +import numpy.testing as npt +import numpy as np + + +@pytest.mark.parametr...
[ "tests/test_coordiantes_arithmetic.py::test_arithmetic_coordinates[True---other0]", "tests/test_coordiantes_arithmetic.py::test_arithmetic_coordinates[True---other1]", "tests/test_coordiantes_arithmetic.py::test_arithmetic_coordinates[True---1]", "tests/test_coordiantes_arithmetic.py::test_arithmetic_coordina...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
43cb8bf7d4e8753b6e717224504bd4222e3b7ef9
2022-10-24 14:48:53
docker.io/swerebenchv2/pennylaneai-pennylane:3206-43cb8bf
pennylaneai__pennylane-3206
Method: ControlledQubitUnitary.__init__(self, U, control_wires, wires, control_values=None) Location: pennylane/ops/qubit/matrix_ops.py – class ControlledQubitUnitary Inputs: - **U** – array‑like (2ᴺ×2ᴺ) unitary matrix that defines the operation on the target wires. - **control_wires** – sequence of wire identifiers th...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 2949050b8..5d9832fe5 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -140,6 +140,9 @@ keyword argument when using `GellMann`, which determines which of the 8 Gell-Man * New `null.qubit` device. The `nul...
Fix `ControlledQubitUnitary.pow` Fixes #3190 `ControlledQubitUnitary.pow` now copies over the control values of the original operation. While there, I added the `ControlledQubitUnitary.control_values` property, because it makes life easier. While `Controlled` also has the `control_values` property, they differ ...
[BUG] Incorrect control values in `ControlledQubitUnitary.pow()` ### Expected behavior For some integer `x` and 2x2 unitary matrix `mat`, using `ControlledQubitUnitary.pow()` has the following expected behaviour: ```pycon >>> op = qml.ControlledQubitUnitary(mat, control_wires=[0, 1], wires=2, control_values="00") >...
PennyLaneAI/pennylane
diff --git a/tests/ops/qubit/test_matrix_ops.py b/tests/ops/qubit/test_matrix_ops.py index 61e5ffa30..203b17469 100644 --- a/tests/ops/qubit/test_matrix_ops.py +++ b/tests/ops/qubit/test_matrix_ops.py @@ -817,13 +817,16 @@ class TestControlledQubitUnitary: ] ) - op = qml.ControlledQubitUn...
[ "tests/ops/qubit/test_matrix_ops.py::TestControlledQubitUnitary::test_pow[2]", "tests/ops/qubit/test_matrix_ops.py::TestControlledQubitUnitary::test_pow[-1]", "tests/ops/qubit/test_matrix_ops.py::TestControlledQubitUnitary::test_pow[-2]" ]
[ "tests/ops/qubit/test_matrix_ops.py::TestQubitUnitary::test_qubit_unitary_noninteger_pow", "tests/ops/qubit/test_matrix_ops.py::TestQubitUnitary::test_qubit_unitary_noninteger_pow_broadcasted", "tests/ops/qubit/test_matrix_ops.py::TestQubitUnitary::test_qubit_unitary_pow[1]", "tests/ops/qubit/test_matrix_ops....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9b3060fd56e1e65a0d69a27b8a13583ce716a538
2024-06-13 17:04:54
docker.io/swerebenchv2/pennylaneai-pennylane:5851-9b3060f
pennylaneai__pennylane-5851
Function: qml.equal(op1: pennylane.operation.Operator, op2: pennylane.operation.Operator, rtol: float = 1e-5, atol: float = 1e-8) -> bool Location: pennylane/ops/functions/equal.py Inputs: Two Operator instances; optional relative and absolute tolerances for numerical comparison. Outputs: Boolean indicating equality. R...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index f944e02b5..847bcf3d6 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -341,6 +341,10 @@ <h3>Bug fixes 🐛</h3> +* Fixes a bug where `Sum`'s with repeated identical operations ended up with the same hash...
fix sum hash issue **Context:** `Sum.hash` uses `frozenset` to calculate the hash in an order independent way. The problem is that `frozenset` ignores the fact that some operations may occur multiple times in the sum. This leads to an incorrect hash. The bad hash then propagated to incorrect `eigvals` and `di...
[BUG] Incorrect answers from qml.var due to sum hashing ### Expected behavior Given some circuit like this, ``` dev = qml.device("default.qubit", wires=3) @qml.qnode(dev) def circuit_separated(): qml.RX(np.pi / 3, 0) qml.RZ(np.pi / 3, 0) return [ qml.var(qml.Z(0)), qml.var(qml.X(0)) ...
PennyLaneAI/pennylane
diff --git a/tests/ops/functions/conftest.py b/tests/ops/functions/conftest.py index 0be32f31e..93ff0de19 100644 --- a/tests/ops/functions/conftest.py +++ b/tests/ops/functions/conftest.py @@ -35,6 +35,7 @@ from pennylane.ops.op_math.pow import PowObs, PowOperation, PowOpObs _INSTANCES_TO_TEST = [ qml.sum(qml.P...
[ "tests/ops/op_math/test_sum.py::TestProperties::test_hash", "tests/ops/op_math/test_sum.py::TestProperties::test_eigendecomposition_repeat_operations", "tests/ops/op_math/test_sum.py::TestIntegration::test_measurement_process_sample", "tests/ops/op_math/test_sum.py::TestIntegration::test_measurement_process_c...
[ "tests/ops/functions/test_equal.py::test_assert_equal_types", "tests/ops/functions/test_equal.py::test_assert_equal_unspecified", "tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops0]", "tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops1]", "tests/ops/funct...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2f1d25a96e100380e87aebcf5f2ea7b678493ebd
2025-01-27 14:24:27
docker.io/swerebenchv2/pymc-devs-pytensor:1179-2f1d25a
pymc-devs__pytensor-1179
Method: pt_pow.__call__(base: TensorVariable | scalar, exponent: TensorVariable | scalar) → TensorVariable Location: pytensor.tensor.basic.pt_pow (the underlying Op for the ``**`` operator) Inputs: - **base** – a scalar or TensorVariable; when the underlying scalar constant value is exactly ``1`` the operation is simpl...
python
custom-check-github
diff --git a/pytensor/tensor/rewriting/math.py b/pytensor/tensor/rewriting/math.py index aa2d279f4..03fa1ae09 100644 --- a/pytensor/tensor/rewriting/math.py +++ b/pytensor/tensor/rewriting/math.py @@ -1905,13 +1905,40 @@ def local_reciprocal_canon(fgraph, node): @register_canonicalize @node_rewriter([pt_pow]) def lo...
Add rewrite for `1 ** x = 1` <!-- !! Thank your for opening a PR !! --> <!--- Provide a self-contained summary of your changes in the Title above --> <!--- This is what will be shown in the automatic release notes: https://github.com/pymc-devs/pytensor/releases --> ## Description <!--- Describe your changes in ...
Rewrite `1 ** x` to `1` ### Description This is another useless operation rewrite in the flavor of `0 * x = 0`. We could potentially also do `0 ** x = 0`, but only if we were somehow positive (pun intended) that `x` is strictly positive.
pymc-devs/pytensor
diff --git a/tests/tensor/rewriting/test_math.py b/tests/tensor/rewriting/test_math.py index debcf44c6..d344d29da 100644 --- a/tests/tensor/rewriting/test_math.py +++ b/tests/tensor/rewriting/test_math.py @@ -4571,3 +4571,22 @@ def test_log_kv_stabilization(): out.eval({x: 1000.0}, mode=mode), -1003.2...
[ "tests/tensor/rewriting/test_math.py::test_pow_1_rewrite[scalar]", "tests/tensor/rewriting/test_math.py::test_pow_1_rewrite[tensor]" ]
[ "tests/tensor/rewriting/test_math.py::test_add_canonizer_problem0", "tests/tensor/rewriting/test_math.py::TestGreedyDistribute::test_main", "tests/tensor/rewriting/test_math.py::TestGreedyDistribute::test_kording_bug", "tests/tensor/rewriting/test_math.py::TestAlgebraicCanonizer::test_muldiv[e0-exp_g0]", "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": [], "intent_completeness": "complete", "pr_categories":...
c0377bf80e72134ad7bf29aa847f0301fbdb130f
2023-11-12 23:16:04
docker.io/swerebenchv2/aio-libs-aiohttp:7829-c0377bf
aio-libs__aiohttp-7829
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/7829.misc b/CHANGES/7829.misc new file mode 100644 index 000000000..9eb060f47 --- /dev/null +++ b/CHANGES/7829.misc @@ -0,0 +1,3 @@ +Improved URL handler resolution time by indexing resources in the UrlDispatcher. +For applications with a large number of handlers, this should increase performance s...
Index resources in the UrlDispatcher to avoid linear search for most cases <!-- Thank you for your contribution! --> ## What do these changes do? The time complexity of the UrlDispatcher on a hit averaged `O(n)` The UrlDispatcher now keeps an index of all resources and will attempt to avoid doing a linear sear...
UrlDispatcher improvements ### Describe the bug The UrlDispatcher currently has to do a linear search to dispatch urls which has an average time complexity of `O(n)`. This means that urls that are registered first can be found faster than urls that are registered later. ### To Reproduce Results ``` % pyt...
aio-libs/aiohttp
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py index 5f5687eac..adb1e52e7 100644 --- a/tests/test_urldispatch.py +++ b/tests/test_urldispatch.py @@ -1264,10 +1264,17 @@ async def test_prefixed_subapp_overlap(app: Any) -> None: subapp2.router.add_get("/b", handler2) app.add_subapp("/ss", su...
[ "tests/test_urldispatch.py::test_prefixed_subapp_overlap", "tests/test_urldispatch.py::test_prefixed_subapp_empty_route", "tests/test_web_urldispatcher.py::test_order_is_preserved[pyloop]" ]
[ "tests/test_urldispatch.py::test_register_uncommon_http_methods", "tests/test_urldispatch.py::test_add_partial_handler", "tests/test_urldispatch.py::test_add_sync_handler", "tests/test_urldispatch.py::test_add_route_root", "tests/test_urldispatch.py::test_add_route_simple", "tests/test_urldispatch.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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
4a457a725e1c0349372672ab440eff745c04f915
2017-07-03 04:14:44
docker.io/swerebenchv2/pre-commit-pre-commit-hooks:211-4a457a7
pre-commit__pre-commit-hooks-211
Function: main(argv=None) Location: pre_commit_hooks/check_executables_have_shebangs.py Inputs: Optional iterable of strings (filenames). If omitted, defaults to sys.argv parsed by argparse; each string is a path to a file to check. Outputs: Integer exit code – 0 when all provided files contain a valid shebang (`#!` as...
python
MIT
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index dac48f0..1aba741 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -51,6 +51,15 @@ # for backward compatibility files: '' minimum_pre_commit_version: 0.15.0 +- id: check-executables-have-shebangs + name: Check that ...
Add a checker for executables without shebangs Fixes #99
Hook idea: executable files should have a shebang or not be executable Alternatively, files with a shebang should be executable
pre-commit/pre-commit-hooks
diff --git a/tests/check_executables_have_shebangs_test.py b/tests/check_executables_have_shebangs_test.py new file mode 100644 index 0000000..0e28986 --- /dev/null +++ b/tests/check_executables_have_shebangs_test.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import +from __future__ impo...
[ "tests/check_executables_have_shebangs_test.py::test_has_shebang[#!/bin/bash\\nhello", "tests/check_executables_have_shebangs_test.py::test_has_shebang[#!/usr/bin/env", "tests/check_executables_have_shebangs_test.py::test_has_shebang[#!python]", "tests/check_executables_have_shebangs_test.py::test_has_shebang...
[]
{ "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": [...
0e252159cc88f2db567379e21c2e9b8453108d26
2023-10-30 22:32:15
docker.io/swerebenchv2/bluesky-bluesky:1627-0e25215
bluesky__bluesky-1627
Method: msg_mutator(plan, msg_proc) Location: bluesky.preprocessors.msg_mutator Inputs: - **plan** – an iterator/generator that yields ``bluesky.Msg`` objects (the original plan). - **msg_proc** – a callable ``msg -> Msg`` that receives each message, returns a (possibly modified) ``Msg`` to be yielded, or ``None`` t...
python
BSD-3-Clause
diff --git a/bluesky/preprocessors.py b/bluesky/preprocessors.py index 859bdcfd..5c92cb54 100644 --- a/bluesky/preprocessors.py +++ b/bluesky/preprocessors.py @@ -214,7 +214,7 @@ def plan_mutator(plan, msg_proc): def msg_mutator(plan, msg_proc): """ - A simple preprocessor that mutates or deletes single mess...
Fix/msg mutator <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Correctly handle the exception communication channel in `msg_mutator`. Fixes code from 3dd2ef03d73fc9b614abff1724a55a06ba74374b (2016). ## Motivation and Context ...
no stop document ^C after a previous ^C and typing `RE.stop()` or `RE.abort()` <!--- Provide a general summary of the issue in the Title above --> If `^C` is issued by the user after `RE.stop()` or `RE.abort()`, bluesky does not respond. This may happen because the user made a mistake and should have typed `RE.hault...
bluesky/bluesky
diff --git a/bluesky/tests/test_bec.py b/bluesky/tests/test_bec.py index 49a818a1..71193fb3 100644 --- a/bluesky/tests/test_bec.py +++ b/bluesky/tests/test_bec.py @@ -1,3 +1,5 @@ +import warnings + import ast import pytest import jsonschema @@ -214,10 +216,10 @@ def test_plot_ints(RE): RE(bps.mov(s, int(0))) ...
[ "bluesky/tests/test_plans.py::test_errors_through_msg_mutator", "bluesky/tests/test_preprocessors.py::test_exceptions_through_msg_mutator" ]
[ "bluesky/tests/test_bec.py::test_hints[False]", "bluesky/tests/test_bec.py::test_hints[True]", "bluesky/tests/test_bec.py::test_simple[False]", "bluesky/tests/test_bec.py::test_simple[True]", "bluesky/tests/test_bec.py::test_blank_hints[False]", "bluesky/tests/test_bec.py::test_blank_hints[True]", "blue...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
f736b78a3208d22d819b5a3daa10140cee89e854
2023-02-01 19:25:06
docker.io/swerebenchv2/openmdao-openmdao:2797-f736b78
openmdao__openmdao-2797
Method: Group.set_input_defaults(self, name, val, **kwargs) Location: Called on a Group (or Problem.model) instance before calling prob.setup(). Inputs: - **name** (str): The promoted name of an input variable for which a default value is being supplied. Must correspond to an existing input in the group hierarchy; oth...
python
custom-check-github
diff --git a/openmdao/core/group.py b/openmdao/core/group.py index 556d01787..1733feced 100644 --- a/openmdao/core/group.py +++ b/openmdao/core/group.py @@ -1165,6 +1165,9 @@ class Group(System): self._auto_ivc_warnings = [] for prom, metalist in self._group_inputs.items(): + if prom not ...
Got rid of KeyError so that a better, previously collected error could be displayed. ### Related Issues - Resolves #2793 ### Backwards incompatibilities None ### New Dependencies None
Keyerror if you try to set_input_defaults on a variable that doesn't exist. ### Description If I try to set_input_defaults on a variable that doesn't exist, I get a KeyError. Of course, I should get an error, but the message is non-informative: builtins.KeyError: 'bad' Needs a clearer message at a more approp...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_group.py b/openmdao/core/tests/test_group.py index 36821b392..fe5fb83ce 100644 --- a/openmdao/core/tests/test_group.py +++ b/openmdao/core/tests/test_group.py @@ -1435,6 +1435,24 @@ class TestGroup(unittest.TestCase): "for the connection '_auto_ivc.v0' to 'G.foo.test_pa...
[ "openmdao/core/tests/test_group.py::TestGroup::test_set_input_defaults_keyerror" ]
[ "openmdao/core/tests/test_group.py::TestSubsystemConfigError::test_add_subsystem_error_on_config", "openmdao/core/tests/test_group.py::TestGroup::test_add_subsystem_class", "openmdao/core/tests/test_group.py::TestGroup::test_connect_to_flat_array", "openmdao/core/tests/test_group.py::TestGroup::test_connect_t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
ee85eb58d092758a32892b8db3c3e3b06bf4e576
2020-06-26 20:00:26
docker.io/swerebenchv2/python-markdown-markdown:991-ee85eb5
python-markdown__markdown-991
Method: recursionlimit.__init__(self, limit) Location: markdown.test_tools.recursionlimit Inputs: limit (int) – the additional recursion depth to allow; the actual limit set will be util._get_stack_depth() + limit. Outputs: None (initializes instance state). Description: Stores the target recursion limit and records th...
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index 752564d..339c98c 100644 --- a/docs/change_log/release-3.3.md +++ b/docs/change_log/release-3.3.md @@ -53,6 +53,7 @@ The following new features have been included in the 3.3 release: The following bug fixes are included in the 3.3 rele...
Limit depth of blockquotes using Python's recursion limit. If the Python stack comes within 100 frames of the recursion limit, then the nesting limit of blockquotes is met. Any remaining text, including angle brackets, are simply wrapped in a paragraph. To increasing the nesting depth, increase Python's recursion li...
Parsing >>>>>>… takes quadratic time and eventually crashes with recursion error ```pycon >>> import markdown, timeit >>> num, dur = timeit.Timer(lambda: markdown.markdown(">" * 100)).autorange(); dur / num 0.004344235559692607 >>> num, dur = timeit.Timer(lambda: markdown.markdown(">" * 200)).autorange(); dur / num...
Python-Markdown/markdown
diff --git a/markdown/test_tools.py b/markdown/test_tools.py index be7bbf1..fb407bb 100644 --- a/markdown/test_tools.py +++ b/markdown/test_tools.py @@ -20,9 +20,10 @@ License: BSD (see LICENSE.md for details). """ import os +import sys import unittest import textwrap -from . import markdown +from . import markdo...
[ "tests/test_syntax/blocks/test_blockquotes.py::TestBlockquoteBlocks::test_nesting_limit" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
dd9c2bf51a8b2251c0970d68f727f5f5431d4ec9
2022-08-31 01:01:17
docker.io/swerebenchv2/apiflask-apiflask:353-dd9c2bf
apiflask__apiflask-353
Method: APIFlask.input(self, schema, location='json', **kwargs) Location: src/apiflask/scaffold.py – method returned by APIFlask (inherited from APIScaffold) and used as a decorator on view functions. Inputs: - **schema** – a marshmallow Schema class or instance that describes the expected request data. - **loca...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index 639fc3f..49d11cc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,9 @@ Released: - - Add `Enum` field from marshmallow 3.18. +- Fix OpenAPI spec generating for path parameters when path schema is provided ([issue #350][issue_350]). + +[issue_350]: https://github.com/api...
Allow path parameters overriding <!-- For features and bug fixes, before opening a PR, please open an issue describing the bug or feature the PR will address. You can skip this step if it's a typo fix. Replace this comment with a description of the change. Describe how it addresses the linked issue. --> <!-- ...
Allow path parameters overriding APIFlask currently doesn't allow overriding path parameters specification. The proposal is to add such feature. Consider following example: I'm writing an endpoint which takes (among other things) one or several path parameters, and let's say, that one of them is of enum type which ...
apiflask/apiflask
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3490f31..720d9a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: pip install -U setuptools python -m pip install -U pip - name: cache mypy - uses: actions/c...
[ "tests/test_decorator_input.py::test_input_with_path_location" ]
[ "tests/test_decorator_input.py::test_input", "tests/test_decorator_input.py::test_input_with_query_location", "tests/test_decorator_input.py::test_input_with_form_location", "tests/test_decorator_input.py::test_input_with_files_location", "tests/test_decorator_input.py::test_input_with_form_and_files_locati...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
f918c8905c4ce32cce00c61091cd61aea9c0481a
2018-09-21 20:45:47
docker.io/swerebenchv2/theacodes-nox:140-f918c89
theacodes__nox-140
Method: GlobalConfig.__init__(self, args) Location: nox/__main__.py Inputs: *args – an argparse.Namespace containing command‑line options. Important new attribute: args.error_on_missing_interpreters (bool) which is stored on the instance as self.error_on_missing_interpreters. Outputs: None (initialises instance fields)...
python
Apache-2.0
diff --git a/docs/usage.rst b/docs/usage.rst index 5160b09..0f68542 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -104,6 +104,14 @@ By default nox will continue to run all sessions even if one fails. You can use nox --stop-on-first-error +Failing sessions when the interpreter is missing +----------------...
Skip sessions with missing interpreters Note: This changes Nox's behavior. Previously, missing interpreters would cause a failed session. Now they just cause a warning. The previous behavior can be used via ``--error-on-missing-interpreters``. Replaces #138 Closes #136 Releated #93
Skip sessions that want to use 32-bit Python on non-Windows The current experience is not a good one: ``` $ nox -s unit-3.5-32 -r nox > Running session unit-3.5-32 nox > Session unit-3.5-32 raised exception RuntimeError("Locating 32-bit Python ('3.5-32') is only supported on Windows.") Traceback (most recent cal...
theacodes/nox
diff --git a/tests/test_main.py b/tests/test_main.py index 97081d2..9a39356 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -40,6 +40,7 @@ def test_global_config_constructor(): list_sessions=False, reuse_existing_virtualenvs=True, stop_on_first_error=False, + error_on_missi...
[ "tests/test_main.py::test_global_config_constructor", "tests/test_sessions.py::TestSession::test_error", "tests/test_sessions.py::TestSessionRunner::test_execute_skip_missing_interpreter", "tests/test_sessions.py::TestSessionRunner::test_execute_error_missing_interpreter", "tests/test_sessions.py::TestResul...
[ "tests/test_main.py::test_main_no_args", "tests/test_main.py::test_main_long_form_args", "tests/test_main.py::test_main_short_form_args", "tests/test_main.py::test_main_explicit_sessions", "tests/test_main.py::test_main_session_from_nox_env_var[foo-sessions0]", "tests/test_main.py::test_main_session_from_...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
446b18d35a5fa0be6b3531d30a0706fc82247313
2022-08-01 12:52:16
docker.io/swerebenchv2/pycqa-flake8:1642-446b18d
pycqa__flake8-1642
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index f5c93ce..36fe976 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -23,7 +23,10 @@ def _stat_key(s: str) -> Tuple[int, int]: def _find_config_file(path: str) -> Optional[str]: # on windows if the homedir i...
skip skipping home if home does not exist resolves #1640
Exception if HOME is not an existing path ### how did you install flake8? ```console $ pip install flake8 ``` ### unmodified output of `flake8 --bug-report` ```json { "platform": { "python_implementation": "CPython", "python_version": "3.9.13", "system": "Linux" }, "plugins": [ { ...
PyCQA/flake8
diff --git a/tests/unit/test_options_config.py b/tests/unit/test_options_config.py index 7a7c4f7..bdc2208 100644 --- a/tests/unit/test_options_config.py +++ b/tests/unit/test_options_config.py @@ -78,6 +78,13 @@ def test_find_config_ignores_homedir(tmp_path): assert config._find_config_file(str(subdir)) is Non...
[ "tests/unit/test_options_config.py::test_find_config_ignores_unknown_homedir" ]
[ "tests/unit/test_options_config.py::test_config_not_found_returns_none", "tests/unit/test_options_config.py::test_config_file_without_section_is_not_considered", "tests/unit/test_options_config.py::test_config_file_with_parse_error_is_not_considered", "tests/unit/test_options_config.py::test_config_file_with_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
2b354fb3da4613bbfab526b87454ee1d10a2a931
2023-04-13 20:51:14
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2691-2b354fb
aws-cloudformation__cfn-lint-2691
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py b/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py index c77cf9984..607852edf 100644 --- a/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py +++ b/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py @@ -36,19 +36,6 @@ class Se...
Can use SecurityGroupId in default vpc SGs *Issue #, if available:* fix #2310 *Description of changes:* Can use SecurityGroupId in default vpc SGs By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E2506 prevents using SourceSecurityGroupId for non-vpc security groups https://github.com/aws-cloudformation/cfn-lint/blob/4a7af2bd53a9ad1ccaba3a509437c53102ade522/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py#L33-L40 I couldn't see any reason in the [cloudformation reference](https://docs.aws.amazon.com...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/ec2/test_sg_ingress.py b/test/unit/rules/resources/ec2/test_sg_ingress.py index abfb1cdcf..f01e3d60f 100644 --- a/test/unit/rules/resources/ec2/test_sg_ingress.py +++ b/test/unit/rules/resources/ec2/test_sg_ingress.py @@ -27,5 +27,5 @@ class TestPropertySgIngress(BaseRuleTestCase)...
[ "test/unit/rules/resources/ec2/test_sg_ingress.py::TestPropertySgIngress::test_file_negative" ]
[ "test/unit/rules/resources/ec2/test_sg_ingress.py::TestPropertySgIngress::test_file_positive" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.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/blob/4a7a...
5f58277c919c6526dc45df5cf56c9af8907aa550
2022-08-23 20:50:56
docker.io/swerebenchv2/librosa-librosa:1561-5f58277
librosa__librosa-1561
Function: librosa.resample(y, *, orig_sr, target_sr, res_type="kaiser_best", fix=True, scale=False, axis=-1, **kwargs) Location: librosa.core.audio.resample Inputs: - y (np.ndarray): audio time‑series of arbitrary dimensionality, with the sampling axis containing *n* samples. - orig_sr (number > 0): original sampling r...
python
ISC
diff --git a/librosa/core/audio.py b/librosa/core/audio.py index fc27c004..a3492828 100644 --- a/librosa/core/audio.py +++ b/librosa/core/audio.py @@ -500,7 +500,7 @@ def to_mono(y): @cache(level=20) def resample( - y, *, orig_sr, target_sr, res_type="kaiser_best", fix=True, scale=False, **kwargs + y, *, orig...
High-dimensional resampling, axis targeting #### Reference Issue Fixes #1559 #### What does this implement/fix? Explain your changes. This PR extends multichannel support to all resampling backends. It also extends the resample API to support a target axis. #### Any other comments? This is ready for ...
Support ndim>2 in all resamplers **Is your feature request related to a problem? Please describe.** Noted in #1556 , our support for resampling of high-dimensional (ndim>2) signals is not exactly complete. Some converters support this out of the box (resampy, scipy) and others do not (samplerate, soxr). **Describe...
librosa/librosa
diff --git a/tests/test_multichannel.py b/tests/test_multichannel.py index d9272333..42b535c8 100644 --- a/tests/test_multichannel.py +++ b/tests/test_multichannel.py @@ -1008,3 +1008,35 @@ def test_trim_multichannel(y_multi): # intersection of the individual intervals assert ival[0] == max(ival0[0], ival1[0]...
[ "tests/test_multichannel.py::test_resample_highdim[x0-sinc_fastest]", "tests/test_multichannel.py::test_resample_highdim[x0-soxr_qq]", "tests/test_multichannel.py::test_resample_highdim_axis[x0--1-sinc_fastest]", "tests/test_multichannel.py::test_resample_highdim_axis[x0--1-soxr_qq]", "tests/test_multichann...
[ "tests/test_multichannel.py::test_stack_memory_multi[1]", "tests/test_multichannel.py::test_stack_memory_multi[-1]", "tests/test_multichannel.py::test_click_multi", "tests/test_multichannel.py::test_mel_to_stft_multi[1024-1]", "tests/test_multichannel.py::test_mel_to_stft_multi[1024-2]", "tests/test_multi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": "partial", "pr_categories": ...
7e3a58843d8a70b6dddaf70dfbcb2abaecad07cb
2021-03-20 18:34:21
docker.io/swerebenchv2/neogeny-tatsu:183-7e3a588
neogeny__tatsu-183
Method: ParseContext.__init__(self, rule_name, model, semantics=None, trace=False, whitespace=None, ignorecase=None, **kwargs) Location: tatsu/contexts.py (class ParseContext) Inputs: - rule_name (str): name of the start rule to invoke. - model (Grammar): grammar model providing rules, keywords, etc. - semantics (...
python
custom-check-github
diff --git a/.pylintrc b/.pylintrc index 75a1593..280bbe7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -10,7 +10,7 @@ extension-pkg-whitelist= # Add files or directories to the blacklist. They should be base names, not # paths. -ignore=CVS,bootstrap.py,model.py +ignore=CVS,bootstrap.py,model.py,tmp # Add files or d...
[grammars] set keywords to uppercase if ignorecase fixes #167
Ignorecase needs uppercase keywords when reserving Reserving keywords and ignoring case does not work as expected: ``` @@ignorecase :: True @@keyword :: if @name rule = /\w+/ if_exp $ ; if_exp = 'if' /\d/ ; ``` **The 'if' is parsed as the rule while it should error.** This is because in [contexts.py](...
neogeny/TatSu
diff --git a/test/grammar/keyword_test.py b/test/grammar/keyword_test.py index d8574da..da65540 100644 --- a/test/grammar/keyword_test.py +++ b/test/grammar/keyword_test.py @@ -132,3 +132,29 @@ class KeywordTests(unittest.TestCase): self.fail('accepted keyword "%s" as name' % k) except Fai...
[ "test/grammar/keyword_test.py::KeywordTests::test_ignorecase_keywords" ]
[ "test/grammar/keyword_test.py::KeywordTests::test_check_unicode_name", "test/grammar/keyword_test.py::KeywordTests::test_keywords_in_rule_names", "test/grammar/keyword_test.py::KeywordTests::test_python_keywords_in_rule_names", "test/parser_equivalence_test.py::test_model_parse" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/neogeny/TatSu/blob/master/tatsu/conte...
42319b57fd9038acdbe1434e3ec2f8a996df0023
2020-11-12 16:17:49
docker.io/swerebenchv2/alteryx-evalml:1429-42319b5
alteryx__evalml-1429
Function: print_deps() Location: evalml.utils.cli_utils Inputs: None (previously required a list of dependency names; now takes no arguments) Outputs: None (logs the version of every package reported by `get_installed_packages` via the library logger) Description: Prints the version number of each installed package (i....
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 822f1381..b1320ed8 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -13,6 +13,7 @@ Release Notes * Added a ``random_state`` parameter to ``make_pipeline_from_components`` function :pr:`1411` ...
Removing core-requirements from installed package ### Pull Request Description Fixes #1328 Based on the discussion on #1293, I am printing out all of the installed packages instead of just the core requirements. This is what the cli output looks like now: ``` > evalml info EvalML version: 0.15.0 EvalML ...
Remove `core-requirements.txt` from installed package https://github.com/alteryx/evalml/pull/1293 updated and fixed our CLI tool by adding `core-requirements.txt` to our package data so it is readable. However, users may be confused as to why this is being installed. We should look into how to achieve the same function...
alteryx/evalml
diff --git a/evalml/tests/utils_tests/test_cli_utils.py b/evalml/tests/utils_tests/test_cli_utils.py index b01ca0c3..587e2519 100644 --- a/evalml/tests/utils_tests/test_cli_utils.py +++ b/evalml/tests/utils_tests/test_cli_utils.py @@ -1,12 +1,13 @@ import os +import pathlib from unittest.mock import patch import p...
[ "evalml/tests/utils_tests/test_cli_utils.py::test_print_deps_info" ]
[ "evalml/tests/utils_tests/test_cli_utils.py::test_print_cli_info_cmd", "evalml/tests/utils_tests/test_cli_utils.py::test_print_info", "evalml/tests/utils_tests/test_cli_utils.py::test_print_sys_info", "evalml/tests/utils_tests/test_cli_utils.py::test_sys_info", "evalml/tests/utils_tests/test_cli_utils.py::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/alteryx/evalml/pull/1293" ], ...
9be0c216220800b1f26f0320cc23d334ddc9eab5
2018-11-12 12:27:10
docker.io/swerebenchv2/dcs4cop-xcube:2-9be0c21
dcs4cop__xcube-2
Method: DefaultInputProcessor.pre_process(self, dataset: xr.Dataset) -> xr.Dataset Location: xcube/genl2c/default/inputprocessor.py, class DefaultInputProcessor Inputs: An xarray.Dataset that may contain a singleton "time" dimension and must pass internal validation (latitude and longitude coordinate variables present,...
python
MIT
diff --git a/xcube/genl2c/default/inputprocessor.py b/xcube/genl2c/default/inputprocessor.py index 72ce4881..7ae5d416 100644 --- a/xcube/genl2c/default/inputprocessor.py +++ b/xcube/genl2c/default/inputprocessor.py @@ -67,12 +67,15 @@ class DefaultInputProcessor(InputProcessor, metaclass=ABCMeta): def pre_proces...
Forman fix reprojection of wgs84 sources This will close #1
Default input processor We currently must specify a class name for the input processor to be used for each input dataset. If datasets are already in xcube's "standard format", that is: * Have dimensions `lat`, `lon`, optionally `time` of length 1; * have coordinate variables `lat[lat]`, `lon[lat]`, `time[time]` ...
dcs4cop/xcube
diff --git a/test/genl2c/default/test_inputprocessor.py b/test/genl2c/default/test_inputprocessor.py index 703b6e54..55627710 100644 --- a/test/genl2c/default/test_inputprocessor.py +++ b/test/genl2c/default/test_inputprocessor.py @@ -49,7 +49,16 @@ class DefaultInputProcessorTest(unittest.TestCase): self.asse...
[ "test/genl2c/default/test_inputprocessor.py::DefaultInputProcessorTest::test_pre_process" ]
[ "test/genl2c/default/test_inputprocessor.py::DefaultInputProcessorTest::test_post_process", "test/genl2c/default/test_inputprocessor.py::DefaultInputProcessorTest::test_props", "test/genl2c/default/test_inputprocessor.py::DefaultInputProcessorTest::test_reprojection_info" ]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "insufficient", "pr_categori...
71bb89353e764edd14839359ca6aadbaf18c3134
2020-07-14 12:33:44
docker.io/swerebenchv2/django-channels:1468-71bb893
django__channels-1468
Function: get_handler_name(message) Location: Inputs: - **message** (dict): Incoming channel layer message that must contain a `"type"` key (string). The function validates the presence of this key and processes the value. Outputs: - Returns a **str** representing the handler method name after replacing `.` with `_`....
python
BSD-3-Clause
diff --git a/channels/consumer.py b/channels/consumer.py index 704c038..33af10c 100644 --- a/channels/consumer.py +++ b/channels/consumer.py @@ -17,10 +17,11 @@ def get_handler_name(message): # Check message looks OK if "type" not in message: raise ValueError("Incoming message has no 'type' attribute...
fix(consumer): get_handler_name Perform check after replace into get_handler_name to avoid class private members call. Close #1430
get_handler_name allow call to private methods Hi there ! ## Environment: - python3.8 - channels 2.4.0 ## Bug: Not sure if it's really a bug or an intended behaviour. But it seem that the function [get_handler_name](https://github.com/django/channels/blob/42070bfe400048d7c8efe551d37f7ac0d26d8e7e/channels/consu...
django/channels
diff --git a/tests/test_generic_websocket.py b/tests/test_generic_websocket.py index 552c8c7..5d8d568 100644 --- a/tests/test_generic_websocket.py +++ b/tests/test_generic_websocket.py @@ -289,3 +289,69 @@ async def test_async_json_websocket_consumer(): await communicator.send_to(bytes_data=b"w\0\0\0") with p...
[ "tests/test_generic_websocket.py::test_block_leading_dot_type_function_call" ]
[ "tests/test_generic_websocket.py::test_websocket_consumer", "tests/test_generic_websocket.py::test_websocket_consumer_subprotocol", "tests/test_generic_websocket.py::test_websocket_consumer_groups", "tests/test_generic_websocket.py::test_async_websocket_consumer", "tests/test_generic_websocket.py::test_asyn...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/django/channels/blob/42070bfe400048d7...
25d1bcdb0eb34ef06b90b5691b56e5e71bd0cc18
2025-02-28 08:27:26
docker.io/swerebenchv2/pyfar-pyfar:776-25d1bcd
pyfar__pyfar-776
No new interfaces are introduced.
python
MIT
diff --git a/pyfar/dsp/dsp.py b/pyfar/dsp/dsp.py index 0aabd899..3ab8ee07 100644 --- a/pyfar/dsp/dsp.py +++ b/pyfar/dsp/dsp.py @@ -1292,7 +1292,8 @@ def find_impulse_response_delay(impulse_response, N=1): ir = impulse_response.time[ch] ir = np.real(ir) if mode == 'real' else np.imag(ir) - ...
hot fix for crash in dsp.find_impulse_response_delay ### Which issue(s) are closed by this pull request? Closes #775 ### Changes proposed in this pull request: - Add if case for catching the bug - Add test for the critical case. The new test failed before changing `find_impulse_response_dealy`, indicating...
Find IR delay - Polyfit Error I was using the function `pyfar.dsp.find_impulse_response_delay()` and stumbled upon an error that I cannot seem to pinpoint exactly. The function works fine for impulse responses that are very similar to the one I attached to this issue, but for this one, the polynomial fit fails. Maybe y...
pyfar/pyfar
diff --git a/tests/test_dsp.py b/tests/test_dsp.py index e8a18f4d..98715054 100644 --- a/tests/test_dsp.py +++ b/tests/test_dsp.py @@ -764,7 +764,8 @@ def test_impulse_response_delay(is_complex): npt.assert_allclose(start_sample_est, start_sample, atol=1e-2) -def test_impulse_response_delay_sinc(): +@pytest.ma...
[ "tests/test_dsp.py::test_impulse_response_delay_sinc[-1]" ]
[ "tests/test_dsp.py::test_phase_rad", "tests/test_dsp.py::test_phase_deg", "tests/test_dsp.py::test_phase_unwrap", "tests/test_dsp.py::test_phase_deg_unwrap", "tests/test_dsp.py::test_phase_rad_complex", "tests/test_dsp.py::test_phase_deg_complex", "tests/test_dsp.py::test_phase_unwrap_complex", "tests...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/user-attachments/files/18966566/ir_...
30024f0495eb75a8c8414d52094e779289070316
2022-09-15 10:13:48
docker.io/swerebenchv2/hikari-py-hikari:1284-30024f0
hikari-py__hikari-1284
No new interfaces are introduced.
python
MIT
diff --git a/changes/1284.bugfix.md b/changes/1284.bugfix.md new file mode 100644 index 00000000..6b8986de --- /dev/null +++ b/changes/1284.bugfix.md @@ -0,0 +1,1 @@ +Ignore guild create events which contain unavailable guilds diff --git a/dev-requirements/safety.txt b/dev-requirements/safety.txt index c4d6f390..de1f81...
Ignore GUILD_CREATE which contain unavailable guilds ### Checklist <!-- Make sure to tick all the following boxes by putting an `x` in between (like this `[x]`) --> - [x] I have run `nox` and all the pipelines have passed. - [x] I have made unittests according to the code I have added/modified/deleted. ### Relate...
Handle unavailable guilds in GUILD_CREATE ### Steps to reproduce Join an unavailable guild ### Expected result Torn between fully ignoring the event or calling `on_guild_delete` so it dispatches a `GuildUnavailableEvent` ### Actual result ![image](https://user-images.githubusercontent.com/29100934/170681...
hikari-py/hikari
diff --git a/tests/hikari/impl/test_event_manager.py b/tests/hikari/impl/test_event_manager.py index 1374433b..50839974 100644 --- a/tests/hikari/impl/test_event_manager.py +++ b/tests/hikari/impl/test_event_manager.py @@ -246,12 +246,46 @@ async def test_on_channel_pins_update(self, stateless_event_manager_impl, shard...
[ "tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_guild_create_when_unavailable_guild" ]
[ "tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_guild_emojis_update_stateful", "tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_channel_delete_stateful", "tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_guild_delete_stateless_when_available",...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
58d2adce57f2c4e447eb12b892ebbb09cccbdcc3
2021-02-25 13:06:10
docker.io/swerebenchv2/python-attrs-attrs:770-58d2adc
python-attrs__attrs-770
Function: make_class(name, attrs, bases=(object,), **attributes_arguments) Location: src/attr/_make.py Inputs: - **name** (str): the name of the class to create. - **attrs** (dict): mapping attribute names to ``attr.ib`` definitions. - **bases** (tuple, optional): base classes for the new class; can include generic dyn...
python
MIT
diff --git a/src/attr/_compat.py b/src/attr/_compat.py index b0ead6e..6939f33 100644 --- a/src/attr/_compat.py +++ b/src/attr/_compat.py @@ -28,6 +28,15 @@ if PY2: def isclass(klass): return isinstance(klass, (type, types.ClassType)) + def new_class(name, bases, kwds, exec_body): + """ + ...
Fix make_class for dynamic generic classes Fixes #756 Does this look OK to you @avinashmnit30?
attr.make_class does not work with Python>=3.7 In attr.make_class function line 2818: `type_ = type(name, bases, body)` cannot be used for dynamic generic class creation beyond python 3.7 and leads to an error `TypeError: type() doesn't support MRO entry resolution; use types.new_class()`. The error can be recreated...
python-attrs/attrs
diff --git a/tests/test_make.py b/tests/test_make.py index 05d0530..9486cfe 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -1118,6 +1118,22 @@ class TestMakeClass(object): assert "C(a=1, b=2)" == repr(C()) + @pytest.mark.skipif(PY2, reason="Python 3-only") + def test_generic_dynamic_clas...
[ "tests/test_make.py::TestMakeClass::test_generic_dynamic_class" ]
[ "tests/test_make.py::TestCountingAttr::test_returns_Attr", "tests/test_make.py::TestCountingAttr::test_validators_lists_to_wrapped_tuples", "tests/test_make.py::TestCountingAttr::test_validator_decorator_single", "tests/test_make.py::TestCountingAttr::test_validator_decorator[<lambda>0]", "tests/test_make.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/python-attrs/attrs/issues/756", ...
a3da1da12bfdb0f7c7ca96fb8b7969c5b9af8b70
2022-12-31 10:11:09
docker.io/swerebenchv2/jelmer-dulwich:1108-a3da1da
jelmer__dulwich-1108
Method: DiskRefsContainer.add_packed_refs(self, new_refs: Dict[bytes, Optional[bytes]]) Location: dulwich.refs.DiskRefsContainer Inputs: - **new_refs** – a mapping where each key is a reference name (bytes, e.g. b"refs/heads/master") and each value is either a 20‑byte object SHA (bytes) to store as a packed ref, or No...
python
custom-check-github
diff --git a/dulwich/cli.py b/dulwich/cli.py index f6f2a14b..8d55278b 100755 --- a/dulwich/cli.py +++ b/dulwich/cli.py @@ -300,6 +300,18 @@ class cmd_symbolic_ref(Command): porcelain.symbolic_ref(".", ref_name=ref_name, force="--force" in args) +class cmd_pack_refs(Command): + def run(self, argv): + ...
Add 'pack-refs' command This contains the following changes: * [Handle more errors when trying to read a ref](https://github.com/jelmer/dulwich/commit/2339d6a0a8e76573ad1828cd33b3ecfdd859e87b) Some files aren't just not there, but actually invalid. Different operating systems handle that differently, but rather ...
Add ability to pack refs With how hg-git manages refs — only updating them on pull or push, and not on commit — I believe it makes sense to me to always pack them. Within the context of hg-git, refs are only updated on push or pull, but read _a lot_ — most commands that display a commit will always decorate it, and tha...
jelmer/dulwich
diff --git a/dulwich/tests/test_porcelain.py b/dulwich/tests/test_porcelain.py index e20ee484..8ea4015b 100644 --- a/dulwich/tests/test_porcelain.py +++ b/dulwich/tests/test_porcelain.py @@ -3140,6 +3140,43 @@ class FindUniqueAbbrevTests(PorcelainTestCase): porcelain.find_unique_abbrev(self.repo.object_sto...
[ "dulwich/tests/test_porcelain.py::PackRefsTests::test_all", "dulwich/tests/test_porcelain.py::PackRefsTests::test_not_all", "dulwich/tests/test_refs.py::DiskRefsContainerTests::test_add_packed_refs" ]
[ "dulwich/tests/test_porcelain.py::ArchiveTests::test_simple", "dulwich/tests/test_porcelain.py::UpdateServerInfoTests::test_simple", "dulwich/tests/test_porcelain.py::CommitTests::test_custom_author", "dulwich/tests/test_porcelain.py::CommitTests::test_no_verify", "dulwich/tests/test_porcelain.py::CommitTes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://foss.heptapod.net/mercurial/hg-git/-/issues/39...
884af5c20fdc95c9c7352df35c37273391464fb9
2025-05-20 20:12:59
docker.io/swerebenchv2/pallets-click:2935-884af5c
pallets__click-2935
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 6cdc25c..45e3dac 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,7 @@ Version 8.2.1 - Fix flag value handling for flag options with a provided type. :issue:`2894` :issue:`2897` :pr:`2930` +- Fix shell completion for nested groups. :issue:`2906` :pr:`2907` ...
fix shell completion for nested groups continues #2907 fixes #2906
Completion for commands in nested groups is broken in Click 8.2.0 ## Summary In Click 8.2.0, completion for commands in nested groups doesn't work as expected anymore. Instead of completing command options and/or arguments, completion infinitely repeats the command names for the group. ## Example program Inspired by...
pallets/click
diff --git a/tests/test_shell_completion.py b/tests/test_shell_completion.py index 3511f07..fb39486 100644 --- a/tests/test_shell_completion.py +++ b/tests/test_shell_completion.py @@ -40,6 +40,36 @@ def test_group(): assert _get_words(cli, [], "-") == ["-a", "--help"] +@pytest.mark.parametrize( + ("args", ...
[ "tests/test_shell_completion.py::test_nested_group[args2--expect2]", "tests/test_shell_completion.py::test_nested_group[args3---expect3]", "tests/test_shell_completion.py::test_nested_group[args4--expect4]", "tests/test_shell_completion.py::test_nested_group[args5---expect5]" ]
[ "tests/test_shell_completion.py::test_command", "tests/test_shell_completion.py::test_group", "tests/test_shell_completion.py::test_nested_group[args0--expect0]", "tests/test_shell_completion.py::test_nested_group[args1--expect1]", "tests/test_shell_completion.py::test_group_command_same_option", "tests/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pallets/click/blob/af73ce4793bf38edf1...
4d84ce5c70b808193162269f558f94cf3126f4e6
2025-02-21 09:29:24
docker.io/swerebenchv2/aeye-lab-pymovements:964-4d84ce5
aeye-lab__pymovements-964
Class: UCL Location: pymovements.datasets.ucl.UCL Inputs: No required positional arguments; all fields have default values (e.g., name='UCL', has_files dict, mirrors dict, resources dict, extract dict, filename_format dict, filename_format_schema_overrides dict, trial_columns list, pixel_columns list, column_map dict, ...
python
MIT
diff --git a/docs/source/bibliography.bib b/docs/source/bibliography.bib index 5d68486..ad07c4c 100644 --- a/docs/source/bibliography.bib +++ b/docs/source/bibliography.bib @@ -365,3 +365,18 @@ volume = {35}, journal = {Data in Brief}, doi = {10.1016/j.dib.2021.106909} } + +@article{UCL, + author = { + Fra...
dataset: add UCL dataset resolves #956. we might wanna contact Stefan Frank and ask for a name (?)
Add the Frank et al. (2013) data The data is available with the paper: Frank, S.L., Fernandez Monsalve, I., Thompson, R.L. et al. Reading time data for evaluating broad-coverage models of English sentence processing. Behav Res 45, 1182–1190 (2013). https://doi.org/10.3758/s13428-012-0313-y
aeye-lab/pymovements
diff --git a/tests/unit/datasets/datasets_test.py b/tests/unit/datasets/datasets_test.py index 46eefd6..dd3bfa5 100644 --- a/tests/unit/datasets/datasets_test.py +++ b/tests/unit/datasets/datasets_test.py @@ -49,6 +49,7 @@ import pymovements as pm pytest.param(pm.datasets.SBSAT, 'SBSAT', id='SBSAT'), ...
[ "tests/unit/datasets/datasets_test.py::test_public_dataset_registered[path_str-downloads_None-dataset_path_None-BSC]", "tests/unit/datasets/datasets_test.py::test_public_dataset_registered[path_str-downloads_None-dataset_path_None-BSCII]", "tests/unit/datasets/datasets_test.py::test_public_dataset_registered[pa...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://doi.org/10.3758/s13428-012-0313-y" ], "in...
84f1416111b105f96f9270edb15c72311409136f
2024-07-23 14:43:38
docker.io/swerebenchv2/aeye-lab-pymovements:767-84f1416
aeye-lab__pymovements-767
Function: pm.gaze.from_asc(file: str | Path, *, patterns: str | list[dict[str, Any] | str] = 'eyelink', metadata_patterns: list[dict[str, Any] | str] | None = None, schema: dict[str, Any] | None = None, experiment: Experiment | None = None, add_columns: dict[str, str] | None = None, column_schema_overrides: dict[str, A...
python
MIT
diff --git a/src/pymovements/dataset/dataset_files.py b/src/pymovements/dataset/dataset_files.py index dfc4c40..1553fdd 100644 --- a/src/pymovements/dataset/dataset_files.py +++ b/src/pymovements/dataset/dataset_files.py @@ -377,7 +377,7 @@ def load_gaze_file( column_schema_overrides=definition.filename_fo...
feat!: Custom patterns for parsing logged metadata in ASC files ## Description Fixes #758 ## Implemented changes - [x] **BREAKING:** Return metadata dictionary from `from_asc()` - [x] Add argument `matadata_patterns` to `from_asc()` and `parse_eyelink()` - [x] Default value of `None` for metadata keys specif...
Allow custom patterns for extracting logged metadata from ASC files ## Description of the problem Currently, the `from_asc()` only supports custom regex patterns via the `patterns` argument, which adds the captured values to columns in the dataframe. It would be useful if we could also extract session-level metadata...
aeye-lab/pymovements
diff --git a/tests/functional/gaze_file_processing_test.py b/tests/functional/gaze_file_processing_test.py index b824469..219fcaf 100644 --- a/tests/functional/gaze_file_processing_test.py +++ b/tests/functional/gaze_file_processing_test.py @@ -156,7 +156,7 @@ def test_gaze_file_processing(gaze_from_kwargs): elif ...
[ "tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[eyelink_monocular]", "tests/unit/gaze/io/asc_test.py::test_from_asc_has_shape_and_schema[eyelink_asc_mono_pattern_eyelink]", "tests/unit/gaze/io/asc_test.py::test_from_asc_has_shape_and_schema[eyelink_asc_mono_pattern_list]", "tests/uni...
[ "tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[csv_monocular]", "tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[csv_binocular]", "tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[ipc_monocular]", "tests/functional/gaze_file_processin...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
36dbd37bb59cc184ff7d98024af50d5a39802f61
2024-07-06 19:55:55
docker.io/swerebenchv2/salesforce-policy-sentry:484-36dbd37
salesforce__policy_sentry-484
Function: get_services_data() Location: policy_sentry/querying/services.py Inputs: None Outputs: list[dict[str, str]] – each dict contains the keys “prefix” (service prefix string) and “service_name” (human‑readable service name string). No exceptions are raised under normal operation. Description: Retrieves the full l...
python
MIT
diff --git a/policy_sentry/command/query.py b/policy_sentry/command/query.py index e2735e0d..76a7f092 100644 --- a/policy_sentry/command/query.py +++ b/policy_sentry/command/query.py @@ -11,6 +11,8 @@ from typing import Any import click import yaml + +from policy_sentry.querying.services import get_services_data f...
add query command for service data ## What does this PR do? - this adds a new `query` sub-command `service-table` - also added for this specific output a `csv` format variant Fixes #475 ex. ``` $ policy_sentry query service-table --fmt csv prefix,service_name a4b,Alexa for Business execute-api,Amazon A...
How does one list all the services? ## Problem I was having issues finding the service name for amazon health events (`health`) and privateca (`acm-pca`) and it would be nice to do query a service-table that could match on the service name, description, etc ## Proposal ```bash ✗ policy_sentry query service-ta...
salesforce/policy_sentry
diff --git a/test/querying/test_query_services.py b/test/querying/test_query_services.py new file mode 100644 index 00000000..8bcadf6a --- /dev/null +++ b/test/querying/test_query_services.py @@ -0,0 +1,16 @@ +import unittest + +from policy_sentry.querying.services import get_services_data + + +class QueryServicesTestC...
[ "test/querying/test_query_services.py::QueryServicesTestCase::test_get_services_data" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
a56c02d8644be488d7b379dfa077869c5abc4e75
2025-04-18 11:49:01
docker.io/swerebenchv2/narwhals-dev-narwhals:2395-a56c02d
narwhals-dev__narwhals-2395
Function: is_numpy_scalar(scalar: Any) -> bool Location: narwhals.dependencies.is_numpy_scalar Inputs: - scalar: Any – the value to test; no type restriction at runtime, but callers typically expect a NumPy scalar or any object. Outputs: - Returns a boolean (runtime) that is also a TypeGuard[_NumpyScalar]; true if ``...
python
MIT
diff --git a/narwhals/dependencies.py b/narwhals/dependencies.py index 1f49ef96..fb815468 100644 --- a/narwhals/dependencies.py +++ b/narwhals/dependencies.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: import duckdb import ibis import modin.pandas as mpd - import numpy as np import pandas as pd imp...
fix: Use `np.generic` in `is_numpy_scalar` Closes #2394 ## What type of PR is this? (check all applicable) - [ ] 💾 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] 🔧 Optimization - [ ] 📝 Documentation - [x] ✅ Test - [ ] 🐳 Other ## Related issues - Closes #2394 ## Checklist - [x] Code follows ...
[Bug]: `is_numpy_scalar` reeturns `True` for non-numpy scalars ### Describe the bug The function signature of `narwhals.dependencies.is_numpy_scalar` says that it narrows the type to `np.generic`m but it is not necessarily the case, as `numpy.is_scalar` also returns `True` for Python scalars. A potential fix would be ...
narwhals-dev/narwhals
diff --git a/tests/dependencies/is_numpy_scalar_test.py b/tests/dependencies/is_numpy_scalar_test.py new file mode 100644 index 00000000..3a0d3499 --- /dev/null +++ b/tests/dependencies/is_numpy_scalar_test.py @@ -0,0 +1,44 @@ +from __future__ import annotations + +import datetime as dt +from typing import TYPE_CHECKIN...
[ "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_invalid[word]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_invalid[-70]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_invalid[94.999]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scal...
[ "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_valid[word]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_valid[data4]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_invalid[data4]", "tests/dependencies/is_numpy_scalar_test.py::test_is_numpy_scalar_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
e454a805f3025a08feb0df6e09e7eaffdbca6c5a
2016-12-03 20:05:30
docker.io/swerebenchv2/axelrod-python-axelrod:778-e454a80
axelrod-python__axelrod-778
Method: AshlockFingerprint.create_edges(self, points, progress_bar=True) Location: axelrod/fingerprint.py, class AshlockFingerprint Inputs: - points: list of Point objects (namedtuple with x, y) representing coordinates in the unit square. - progress_bar: bool flag (default True) indicating whether a tqdm progress b...
python
custom-check-github
diff --git a/axelrod/fingerprint.py b/axelrod/fingerprint.py index 9e54eebf..bb730660 100644 --- a/axelrod/fingerprint.py +++ b/axelrod/fingerprint.py @@ -1,6 +1,7 @@ import axelrod as axl import numpy as np import matplotlib.pyplot as plt +import tqdm from axelrod.strategy_transformers import JossAnnTransformer, D...
Add a variety of progress bars to the fingerprint. Most are straight forward, for the creation of the points I had to refactor things slightly (as it's a product of two lists there wasn't a straightforward way of using tqdm on it). Closes #768.
A couple of extra progress bars for the fingerprint Would be good to pass the progress bar method to the `create_points` function and also `generate_data`. For big fingerprints there is a bit of a lag where there is no user feedback during these phases. (Also: currently the `read_interactions_from_file` call is not...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_fingerprint.py b/axelrod/tests/unit/test_fingerprint.py index b6e8a1e3..2101e8cf 100644 --- a/axelrod/tests/unit/test_fingerprint.py +++ b/axelrod/tests/unit/test_fingerprint.py @@ -33,22 +33,24 @@ class TestFingerprint(unittest.TestCase): self.assertEqual(fingerprint.probe...
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_construct_tournament_elemets", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_edges", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_points", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::t...
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_generate_data", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_in_memory_fingerprint", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_init", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_majority_fi...
{ "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.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
c8f26573e2292f2fa13f1893a4b63bfc2dea8941
2024-01-06 14:54:39
docker.io/swerebenchv2/callowayproject-bump-my-version:119-c8f2657
callowayproject__bump-my-version-119
Function: replace_cli(search: str, replace: str, *, verbose: bool = False, no_configured_files: bool = False, allow_dirty: bool = False, dry_run: bool = False, ignore_missing_version: bool = False, **other_options) Location: bumpversion/cli.py (the Click command implementation for the “replace” sub‑command) Inputs:    ...
python
MIT
diff --git a/bumpversion/files.py b/bumpversion/files.py index 4bca5e87..aee9c505 100644 --- a/bumpversion/files.py +++ b/bumpversion/files.py @@ -74,11 +74,13 @@ class ConfiguredFile: search: Optional[str] = None, replace: Optional[str] = None, ) -> None: + replacements = [replace, file_c...
Fixed empty string replacement bug Only a missing replacement value will trigger one of the fallback options. Fixes #117
Empty string replacement (`--replace ""`) is interpreted as absence of parameter * bump-my-version version: 0.15.4 * Python version: 3.12.1 * Operating System: macOS 14.2.1 ### Description A simple search and replace of plain string by an empty one is polluted by non-matching rules from the configuration file. ...
callowayproject/bump-my-version
diff --git a/tests/test_cli.py b/tests/test_cli.py index 20532f76..ba5b4654 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -576,6 +576,7 @@ def test_replace_with_empty_string(tmp_path, fixtures_path): cli.cli, [ "replace", + "--verbose", ...
[ "tests/test_cli.py::test_replace_with_empty_string" ]
[ "tests/test_cli.py::test_version_displays_library_version", "tests/test_cli.py::test_bump_no_configured_files", "tests/test_cli.py::test_bump_nested_regex", "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_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
f36220e6c458e9b99ad435fb2a1e387267cd867b
2024-08-31 06:37:39
docker.io/swerebenchv2/mpmath-mpmath:857-f36220e
mpmath__mpmath-857
Function: read_format_spec(format_spec: str) Location: mpmath.libmp.libmpf.read_format_spec Inputs: - **format_spec** – a format‑specification string following Python’s mini‑language for floats (e.g., ``".2f"``, ``"g"``, or an empty string). Outputs: - Returns a **dict** with the parsed fields: * ``altern...
python
BSD-3-Clause
diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py index 09d24d0..48394fe 100644 --- a/mpmath/libmp/libmpf.py +++ b/mpmath/libmp/libmpf.py @@ -1450,9 +1450,9 @@ def read_format_spec(format_spec): 'alternate': False, 'thousands_separators': '', 'width': -1, - 'precision': 6, +...
Fix formatting of mpf's when format type is missing In this case it was incorrectly assumed, that this is an equivalent of 'g' formatting type. It's not: 1) when no precision is specified - it should be equal to repr_deps(prec) to represent the given value faithfully. 2) when fixed-point is used to format the result...
Formatting mpf's is incompatible with Python if formatting type is missing Documentation [says](https://docs.python.org/3/library/string.html#format-specification-mini-language): "For [float](https://docs.python.org/3/library/functions.html#float) this is the same as 'g', except that when fixed-point notation is used t...
mpmath/mpmath
diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py index de2b377..dfb6b1a 100644 --- a/mpmath/tests/test_format.py +++ b/mpmath/tests/test_format.py @@ -8,6 +8,7 @@ from hypothesis import given, settings from mpmath import fp, inf, mp, nan, ninf, workdps +from mpmath.libmp.libmpf import read_for...
[ "mpmath/tests/test_format.py::test_mpf_fmt_cpython", "mpmath/tests/test_format.py::test_mpf_floats_None" ]
[ "mpmath/tests/test_format.py::test_mpf_float", "mpmath/tests/test_format.py::test_mpf_floats_fFeE", "mpmath/tests/test_format.py::test_mpf_floats_gG", "mpmath/tests/test_format.py::test_mpf_fmt", "mpmath/tests/test_format.py::test_issue_858", "mpmath/tests/test_format.py::test_errors" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.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/string.html#format-s...
1798b1f35b9c993e0f2e76058d5e0ac64ee53df9
2024-05-02 11:08:13
docker.io/swerebenchv2/pennylaneai-pennylane:5623-1798b1f
pennylaneai__pennylane-5623
Method: param_shift(tape, gradient_recipes=None, f0=None, broadcast=False, **kwargs) Location: pennylane/gradients/param_shift.py Inputs: - **tape** (*QuantumScript*): the original circuit to be differentiated. - **gradient_recipes** (*optional, tuple/list*): custom gradient recipes for each trainable parameter; each r...
python
Apache-2.0
diff --git a/doc/releases/changelog-0.36.0.md b/doc/releases/changelog-0.36.0.md index 77826722f..c81e7c571 100644 --- a/doc/releases/changelog-0.36.0.md +++ b/doc/releases/changelog-0.36.0.md @@ -564,8 +564,9 @@ [(#5610)](https://github.com/PennyLaneAI/pennylane/pull/5610) * Using shot vectors with `param_shift(...
Fix `param_shift(..., broadcast=True)` with zero-length gradient recipes **Context:** **Description of the Change:** Introduces a special branch for the rare case of zero-length parameter-shift recipes. **Benefits:** Fixes #5622 **Possible Drawbacks:** **Related GitHub Issues:** Fixes #5622 [sc-62416...
[BUG] `param_shift` with `broadcast=True` does not work with zero-length recipes ### Expected behavior `param_shift` has feature parity between `broadcast=True` and `broadcast=False` ### Actual behavior The (somewhat esoteric) example from the test suite below runs with `broadcast=False` but not with `broadcast=True...
PennyLaneAI/pennylane
diff --git a/tests/gradients/parameter_shift/test_parameter_shift.py b/tests/gradients/parameter_shift/test_parameter_shift.py index 7a0efd917..0dd03d8fa 100644 --- a/tests/gradients/parameter_shift/test_parameter_shift.py +++ b/tests/gradients/parameter_shift/test_parameter_shift.py @@ -536,7 +536,8 @@ class TestParam...
[ "tests/gradients/parameter_shift/test_parameter_shift.py::TestParamShift::test_custom_recipe_unshifted_only[False-ops_with_custom_recipe0-True]", "tests/gradients/parameter_shift/test_parameter_shift.py::TestParamShift::test_custom_recipe_unshifted_only[False-ops_with_custom_recipe1-True]", "tests/gradients/par...
[ "tests/gradients/parameter_shift/test_parameter_shift.py::TestGetOperationRecipe::test_custom_recipe_first_order[RX-frequencies0-None]", "tests/gradients/parameter_shift/test_parameter_shift.py::TestGetOperationRecipe::test_custom_recipe_first_order[RX-frequencies1-shifts1]", "tests/gradients/parameter_shift/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
2c368d2dea37272caf8b1f88e9b218d3c42f9c2a
2024-11-23 09:48:30
docker.io/swerebenchv2/narwhals-dev-narwhals:1430-2c368d2
narwhals-dev__narwhals-1430
No new interfaces are introduced.
python
MIT
diff --git a/narwhals/dataframe.py b/narwhals/dataframe.py index b0d9adbd..8bdb195f 100644 --- a/narwhals/dataframe.py +++ b/narwhals/dataframe.py @@ -962,21 +962,24 @@ class DataFrame(BaseFrame[DataFrameT]): >>> import narwhals as nw >>> import pandas as pd >>> import polars as p...
feat: make sure `from narwhals.stable.v1.dependencies` import works closes #1426 <!-- # 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) ...
feat: make `dependencies` available under `narwhals.stable.v1` for type checkers Currently ``` from narwhals.stable.v1.dependencies import is_pandas_like_dataframe ```` raises, but ``` from narwhals.stable.v1 import dependencies ``` passes
narwhals-dev/narwhals
diff --git a/tests/conftest.py b/tests/conftest.py index 922d69e9..68e03449 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,9 +9,9 @@ import polars as pl import pyarrow as pa import pytest -from narwhals.dependencies import get_cudf from narwhals.dependencies import get_dask_dataframe -from narwhals.d...
[ "tests/dependencies/is_pandas_dataframe_test.py::test_is_pandas_dataframe", "tests/dependencies/is_into_dataframe_test.py::test_is_into_dataframe", "tests/dependencies/is_into_series_test.py::test_is_into_series", "tests/translate/to_py_scalar_test.py::test_to_py_scalar_value_error[input_value1]", "tests/tr...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
3250158583094959df03fa1ecaa3a34b0d6557af
2023-05-26 09:57:43
docker.io/swerebenchv2/owkin-pydeseq2:133-3250158
owkin__pydeseq2-133
Method: DeseqDataSet.__init__(self, counts, clinical, design_factors=None, *, intercept=True, min_mu=1e-6, min_disp=0.0, max_disp=None, **kwargs) Location: pydeseq2/dds.py – class `DeseqDataSet` (inherits from `anndata.AnnData`). The constructor builds the design matrix from `design_factors` and now calls the private m...
python
MIT
diff --git a/pydeseq2/dds.py b/pydeseq2/dds.py index 887f135..f611df6 100644 --- a/pydeseq2/dds.py +++ b/pydeseq2/dds.py @@ -217,6 +217,9 @@ class DeseqDataSet(ad.AnnData): intercept=True, ) + # Check that the design matrix has full rank + self._check_full_rank_design() + ...
BUG `beta` not initialized in `irls_solver` when the design is not a full rank matrix #### Reference Issue or PRs Fixes #132 #### What does your PR implement? Be specific. * Initializes `beta` with log mean (normalized) counts when the design is not a full rank matrix. This as such is not enough, because (as ...
[BUG]` beta` referenced before assignment **Describe the bug** ``` lib/python3.10/site-packages/pydeseq2/utils.py", line 471, in irls_solver mu = np.maximum(size_factors * np.exp(X @ beta), min_mu) UnboundLocalError: local variable 'beta' referenced before assignment ``` ![image](https://github.com/owki...
owkin/PyDESeq2
diff --git a/tests/test_edge_cases.py b/tests/test_edge_cases.py index 37175e5..e60d0e3 100644 --- a/tests/test_edge_cases.py +++ b/tests/test_edge_cases.py @@ -116,7 +116,7 @@ def test_nan_factors(): def test_one_factor(): - """Test that a ValueError is thrown when the design factor takes only one value .""" +...
[ "tests/test_edge_cases.py::test_rank_deficient_design" ]
[ "tests/test_edge_cases.py::test_nan_counts", "tests/test_edge_cases.py::test_numeric_counts", "tests/test_edge_cases.py::test_integer_counts", "tests/test_edge_cases.py::test_non_negative_counts", "tests/test_edge_cases.py::test_one_factor", "tests/test_edge_cases.py::test_reference_level", "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": "B4", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
f4eaa8745608baa5dcc93ad4eddc548d3354a7d6
2024-05-19 03:06:55
docker.io/swerebenchv2/getmoto-moto:7704-f4eaa87
getmoto__moto-7704
Method: NetworkManagerBackend.create_global_network(self, description: Optional[str], tags: Optional[List[Dict[str, str]]]) -> GlobalNetwork Location: moto/networkmanager/models.py (class NetworkManagerBackend) Inputs: - description – optional string describing the global network (may be None). - tags – optional lis...
python
Apache-2.0
diff --git a/moto/backend_index.py b/moto/backend_index.py index f57075621..04984eca9 100644 --- a/moto/backend_index.py +++ b/moto/backend_index.py @@ -120,6 +120,7 @@ backend_url_patterns = [ ("meteringmarketplace", re.compile("https?://aws-marketplace.(.+).amazonaws.com")), ("moto_api._internal", re.compil...
Feature: Add NetworkManager resource support Resolves #7703 Adds support for NetworkManager with the following endpoints - CreateGlobalNetwork - DescribeGlobalNetworks - CreateCoreNetwork - DeleteCoreNetwork - ListCoreNetworks - GetCoreNetwork - TagResource - UntagResource
Feature - Add basic support for Network Manager. Global and Core Networks Would be great to mock network manager resources and basic api endpoints. https://docs.aws.amazon.com/networkmanager/latest/APIReference/Welcome.html For example: - CreateGlobalNetwork - CreateCoreNetwork - Delete* - GetCoreNetwork - D...
getmoto/moto
diff --git a/tests/test_networkmanager/__init__.py b/tests/test_networkmanager/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_networkmanager/test_networkmanager.py b/tests/test_networkmanager/test_networkmanager.py new file mode 100644 index 000000000..6ebed4a0f --- /dev/null +++ b/...
[ "tests/test_networkmanager/test_networkmanager.py::test_create_global_network", "tests/test_networkmanager/test_networkmanager.py::test_create_core_network", "tests/test_networkmanager/test_networkmanager.py::test_delete_core_network", "tests/test_networkmanager/test_networkmanager.py::test_tag_resource", "...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://docs.aws.amazon.com/networkmanager/latest/APIRef...
2eb6f06d9ebec0a7b8da3ab2828667160429b1b7
2021-05-17 03:25:58
docker.io/swerebenchv2/hypothesisworks-hypothesis:2965-2eb6f06
hypothesisworks__hypothesis-2965
Method: JustStrategy.__repr__(self) Location: hypothesis.strategies._internal.misc.JustStrategy Inputs: self – the JustStrategy instance. The method inspects the instance’s `_transformations` list, which contains any `(name, function)` pairs added by `.filter()` or `.map()` calls. Outputs: `str` – a textual representat...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..f050115f1 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,6 @@ +RELEASE_TYPE: patch + +This patch fixes :issue:`2964`, where ``.map()`` and ``.filter()`` methods +were omitted from the ``repr()`...
Ensure `filter` appears in repr of `just(...).filter(...)` Fixes #2964.
[Bug?] `.filter` ignored on `just` strategy Hi, I hope this has not been reported before. I checked the issues and read the [changelog] ~but could not find anything related~ and this seems to be related to issue https://github.com/HypothesisWorks/hypothesis/issues/2036. [changelog]: https://hypothesis.readthedocs.i...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/nocover/test_pretty_repr.py b/hypothesis-python/tests/nocover/test_pretty_repr.py index 5f2ac6170..c379fa5e2 100644 --- a/hypothesis-python/tests/nocover/test_pretty_repr.py +++ b/hypothesis-python/tests/nocover/test_pretty_repr.py @@ -15,6 +15,8 @@ from collections import Ordere...
[ "hypothesis-python/tests/nocover/test_pretty_repr.py::test_sampled_transform_reprs[just(1).filter(foo).map(bar)]" ]
[ "hypothesis-python/tests/nocover/test_pretty_repr.py::test_repr_evals_to_thing_with_same_repr", "hypothesis-python/tests/nocover/test_pretty_repr.py::test_sampled_transform_reprs[none().filter(foo).map(bar)]", "hypothesis-python/tests/nocover/test_pretty_repr.py::test_sampled_transform_reprs[sampled_from([1," ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://hypothesis.readthedocs.io/en/latest/changes.html...
067532288f9c8337ef6b05cac12c351b196788a7
2024-01-11 00:09:41
docker.io/swerebenchv2/meltano-sdk:2144-0675322
meltano__sdk-2144
Method: Stream.generate_child_contexts(self, record: dict, context: dict | None) -> t.Iterable[dict | None] Location: singer_sdk/streams/core.py → class Stream Inputs: - **record** (dict): A single parent‑record emitted by the stream. - **context** (dict | None): Optional partition or state context associated with the ...
python
Apache-2.0
diff --git a/docs/parent_streams.md b/docs/parent_streams.md index 235dbfac..fec6d8fb 100644 --- a/docs/parent_streams.md +++ b/docs/parent_streams.md @@ -8,18 +8,21 @@ from a parent record each time the child stream is invoked. 1. Set `parent_stream_type` in the child-stream's class to the class of the parent. 2. ...
feat: Support fanning out parent record into multiple child contexts/syncs Closes #1862 <!-- readthedocs-preview meltano-sdk start --> ---- 📚 Documentation preview 📚: https://meltano-sdk--2144.org.readthedocs.build/en/2144/ <!-- readthedocs-preview meltano-sdk end -->
feat: Support fanning out parent record into multiple child syncs ### Feature scope Taps (catalog, state, stream maps, tests, etc.) ### Description The current paradigm assumes developers want to sync a child stream _once_ for every parent record. However, it's possible that a single parent record has informat...
meltano/sdk
diff --git a/tests/core/test_parent_child.py b/tests/core/test_parent_child.py index 7fd01a15..8b9ad2a1 100644 --- a/tests/core/test_parent_child.py +++ b/tests/core/test_parent_child.py @@ -167,3 +167,100 @@ def test_child_deselected_parent(tap_with_deselected_parent: MyTap): assert all(msg["type"] == SingerMessa...
[ "tests/core/test_parent_child.py::test_one_parent_many_children" ]
[ "tests/core/test_parent_child.py::test_parent_context_fields_in_child", "tests/core/test_parent_child.py::test_skip_deleted_parent_child_streams", "tests/core/test_parent_child.py::test_child_deselected_parent" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://meltano.slack.com/archives/CMN8HELB0/p16898181...
bf7cf1a01efbe5f74d8da24a2f5894c0df965b28
2024-07-21 08:07:00
docker.io/swerebenchv2/apiflask-apiflask:589-bf7cf1a
apiflask__apiflask-589
Method: APIFlask.doc(self, *, hide: bool | None = None, operation_id: str | None = None, security: str | list[str | dict[str, list]] | None = None, extensions: dict[str, typing.Any] | None = None) Location: Defined in `src/apiflask/scaffold.py` (inherited by `APIFlask`), used as a decorator on view functions to regis...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index 7b1d7b5..b58e23f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,9 +4,11 @@ Unreleased - Use postponed evaluation of annotations ([pr #585][pr_585]). - Add static OpenAPI docs example ([issue #587][issue_587]). +- Add spec extensions support with `@doc(extensions=...)` for ...
Support adding custom field to operation object (view function) #571 <!-- For features and bug fixes, before opening a PR, please open an issue describing the bug or feature the PR will address. You can skip this step if it's a typo fix. Replace this comment with a description of the change. Describe how it addre...
Support adding custom field to operation object (view function) Hi, is there anyway to specify custom fields (starting with x-) for a given route with a metadata parameter in the doc decorator? ```python @app.route("/compute-intermodal-routes-co2eq", methods=["GET"]) @app.doc( summary="Compute intermodal ro...
apiflask/apiflask
diff --git a/tests/test_openapi_extensions.py b/tests/test_openapi_extensions.py new file mode 100644 index 0000000..e0597bb --- /dev/null +++ b/tests/test_openapi_extensions.py @@ -0,0 +1,13 @@ +from openapi_spec_validator import validate_spec + + +def test_specification_extensions(app, client): + @app.get('/') + ...
[ "tests/test_openapi_extensions.py::test_specification_extensions" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
1b880ef5a849b2922982d90dbcb9f60166b4da2e
2017-06-12 08:55:38
docker.io/swerebenchv2/kayak-pypika:53-1b880ef
kayak__pypika-53
Method: Rank.over(self, *terms) Location: pypika/analytics.py → class Rank (inherits AnalyticFunction) Inputs: one or more Term objects (e.g., Table.column) that define the PARTITION BY clause; any number of arguments accepted. Outputs: returns the same Rank instance (enables method‑chaining). The terms are stored inte...
python
Apache-2.0
diff --git a/README.rst b/README.rst index 2bd955d..f6f22bc 100644 --- a/README.rst +++ b/README.rst @@ -52,7 +52,7 @@ Selecting Data ^^^^^^^^^^^^^^ The entry point for building queries is ``pypika.Query``. In order to select columns from a table, the table must -first be added to the query. For simple queries wi...
Fixes #47 Added support and documentation for analytic functions. Added wrappers for NTILE, RANK, FIRST_VALUE, LAST_VALUE, AVG, MEDIAN, STDDEV
Support analytic queries for Vertica and Oracle https://my.vertica.com/docs/7.1.x/HTML/Content/Authoring/SQLReferenceManual/Functions/Analytic/AnalyticFunctions.htm Add support for analytical functions and queries using PARTITION OVER
kayak/pypika
diff --git a/pypika/tests/test_aggregate.py b/pypika/tests/test_aggregate.py index b37c7bd..e7802aa 100644 --- a/pypika/tests/test_aggregate.py +++ b/pypika/tests/test_aggregate.py @@ -1,8 +1,7 @@ # coding: utf-8 import unittest -from pypika import Case -from pypika import Field, functions as fn +from pypika import...
[ "pypika/tests/test_aggregate.py::IsAggregateTests::test__agg_case_is_aggregate", "pypika/tests/test_aggregate.py::IsAggregateTests::test__agg_func_arithmetic_is_aggregate", "pypika/tests/test_aggregate.py::IsAggregateTests::test__agg_func_is_aggregate", "pypika/tests/test_aggregate.py::IsAggregateTests::test_...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://my.vertica.com/docs/7.1.x/HTML/Content/Authori...
50037f2b193fe644aeebe4c5fee3e1d02821c488
2021-08-25 15:55:33
docker.io/swerebenchv2/dhi-mikeio:227-50037f2
dhi__mikeio-227
Method: Dfs0.end_time(self) Location: mikeio/dfs0.py, class Dfs0, @property end_time Inputs: None (property accessor). Relies on internal state set during initialization and read(): `_source` (DfsFile), `_start_time` (datetime) and the file’s time‑axis metadata (equidistant flag, time step, number of steps, or time spa...
python
BSD-3-Clause
diff --git a/mikeio/dfs.py b/mikeio/dfs.py index cd60dacc..36b7e482 100644 --- a/mikeio/dfs.py +++ b/mikeio/dfs.py @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta +from datetime import datetime from abc import abstractmethod import warnings @@ -12,7 +12,7 @@ from .dfsutil import _valid_item_numbers, _vali...
Dfs0 end_time property. Closes #203
end_time property does not work in dfs0 https://github.com/DHI/mikeio/blob/ed60b7caeb1e2a2003266a69607157f2f3302c20/mikeio/dfs0.py#L424 Will throw an error since _end_time is not defined. Its implementation should be similar to that in dfs.py as it depends on the type of TimeAxis.
DHI/mikeio
diff --git a/tests/test_dfs0.py b/tests/test_dfs0.py index c0f8f014..51dc9f26 100644 --- a/tests/test_dfs0.py +++ b/tests/test_dfs0.py @@ -142,6 +142,17 @@ def test_read_units_write_new(tmpdir): assert ds2.items[0].unit == ds.items[0].unit +def test_read_start_end_time(): + + dfs0file = r"tests/testdata/ran...
[ "tests/test_dfs0.py::test_read_start_end_time" ]
[ "tests/test_dfs0.py::test_repr", "tests/test_dfs0.py::test_repr_equidistant", "tests/test_dfs0.py::test_simple_write", "tests/test_dfs0.py::test_write_float", "tests/test_dfs0.py::test_write_double", "tests/test_dfs0.py::test_write_int_not_possible", "tests/test_dfs0.py::test_write_2darray", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/DHI/mikeio/blob/ed60b7caeb1e2a20032...
be479584026cec65bdbcf6ae9b6e14d04a436878
2024-08-26 21:40:27
docker.io/swerebenchv2/amaranth-lang-amaranth:1493-be47958
amaranth-lang__amaranth-1493
Method: MemoryData.Init(self, init, *, shape, depth) Location: amaranth/hdl/_mem.py (class MemoryData) Inputs: - **init** – iterable of integer‑like values (e.g., list or tuple) that will be used to initialise the memory contents. - **shape** – either an integer width (e.g., ``8``) for an unsigned memory cell or a...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_ast.py b/amaranth/hdl/_ast.py index d99cd72..3f87e9e 100644 --- a/amaranth/hdl/_ast.py +++ b/amaranth/hdl/_ast.py @@ -1946,6 +1946,57 @@ class _SignalMeta(ABCMeta): return signal +# also used for MemoryData.Init +def _get_init_value(init, shape, what="signal"): + orig_init = i...
hdl.mem: mask initial value to shape. Fixes #1492.
struggling to understand source of an error https://github.com/q3w3e3/amaranthSieve/blob/e1dbdbd0e990d9dbdeb7c2e92550d1058a265ef5/src/amaranth_sieve/sieve2.py ``` % pdm run test ================================================ test session starts ================================================= platform darwin -...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_mem.py b/tests/test_hdl_mem.py index 504e598..fb45965 100644 --- a/tests/test_hdl_mem.py +++ b/tests/test_hdl_mem.py @@ -31,3 +31,29 @@ class MemoryDataTestCase(FHDLTestCase): with self.assertRaisesRegex(ValueError, r"^Value \(memory-row \(memory-data data\) 0\) can...
[ "tests/test_hdl_mem.py::InitTestCase::test_ones", "tests/test_hdl_mem.py::InitTestCase::test_trunc", "tests/test_lib_memory.py::MemoryTestCase::test_constructor_wrong", "tests/test_lib_memory.py::MemoryTestCase::test_init_set_wrong", "tests/test_sim.py::SimulatorIntegrationTestCase::test_mem_shape" ]
[ "tests/test_hdl_mem.py::MemoryDataTestCase::test_repr", "tests/test_hdl_mem.py::MemoryDataTestCase::test_row", "tests/test_hdl_mem.py::MemoryDataTestCase::test_row_elab", "tests/test_hdl_mem.py::MemoryDataTestCase::test_row_wrong", "tests/test_lib_memory.py::WritePortTestCase::test_constructor", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/q3w3e3/amaranthSieve/blob/e1dbdbd0e...
7813fa1ba7deeeaa7ae1af146ebb862ac70e5b76
2024-02-19 15:35:09
docker.io/swerebenchv2/rhayes777-pyautofit:947-7813fa1
rhayes777__pyautofit-947
Method: AbstractPriorModel.items(self) Location: autofit.mapper.prior_model.abstract.AbstractPriorModel Inputs: self – the prior‑model instance (no extra arguments) Outputs: list of (key, value) tuples for each public attribute that is a component of the model, excluding private (prefixed with “_”) and internal bookkee...
python
MIT
diff --git a/autofit/database/model/model.py b/autofit/database/model/model.py index 775098679..36cde5adb 100644 --- a/autofit/database/model/model.py +++ b/autofit/database/model/model.py @@ -6,8 +6,6 @@ import numpy as np from autoconf.class_path import get_class, get_class_path from ..sqlalchemy_ import sa, decl...
feature/unparamatised argument Resolves #928
Model Components With No Free Parameters In the Database The following test script: https://github.com/Jammy2211/autolens_workspace_test/blob/main/scripts/database/scrape/slam_pix.py Gives the following error: ``` Traceback (most recent call last): File "/mnt/c/Users/Jammy/Results/slacs/paper/mge.py", line...
rhayes777/PyAutoFit
diff --git a/test_autofit/database/test_regression.py b/test_autofit/database/test_regression.py index 85ee87d8e..bae58d94e 100644 --- a/test_autofit/database/test_regression.py +++ b/test_autofit/database/test_regression.py @@ -21,3 +21,21 @@ def test_object_to_instance(model): db.Object.from_object(model)()....
[ "test_autofit/database/test_regression.py::test_model_with_parameterless_component" ]
[ "test_autofit/database/test_regression.py::test_instance_from_prior_medians", "test_autofit/database/test_regression.py::test_object_to_instance", "test_autofit/database/test_regression.py::test_instance_in_collection" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/Jammy2211/autolens_workspace_test/b...
4f48bd6f2c1e4c07c62272576ec646e3b9cc5891
2024-12-30 20:27:51
docker.io/swerebenchv2/dasdae-dascore:476-4f48bd6
dasdae__dascore-476
Method: BaseSpool.chunk(self, time=None, overlap=None, keep_partial=False) Location: dascore.core.spool.BaseSpool (or any subclass implementing the public Spool API) Inputs: - **time** (float | ellipsis | None, optional): Desired chunk length in coordinate units. Can be: * ellipsis (`...`) to let the system infer th...
python
custom-check-github
diff --git a/dascore/utils/chunk.py b/dascore/utils/chunk.py index 671e6df..ca7bb98 100644 --- a/dascore/utils/chunk.py +++ b/dascore/utils/chunk.py @@ -78,7 +78,11 @@ def get_intervals( if overlap > length: msg = "Cant chunk when overlap is greater than chunk size" raise ParameterError(msg) - ...
fix issue 475 and 474 ## Description This PR fixes #474 and #475. ## Checklist I have (if applicable): - [ ] referenced the GitHub issue this PR closes. - [ ] documented the new feature with docstrings or appropriate doc page. - [ ] included a test. See [testing guidelines](https://dascore.org/contribut...
Spool.chunk does not count samples correctly ## Description <!-- Provide a clear description of the issue. --> The code below raises an error because the chunk function is one sample short. Related to #356. ```python import dascore as dc from dascore.utils.time import to_float spool = dc.get_example_spo...
DASDAE/dascore
diff --git a/tests/test_core/test_patch_chunk.py b/tests/test_core/test_patch_chunk.py index 541826f..8bccf7b 100644 --- a/tests/test_core/test_patch_chunk.py +++ b/tests/test_core/test_patch_chunk.py @@ -166,6 +166,23 @@ class TestChunk: with pytest.raises(ParameterError, match=msg): diverse_spoo...
[ "tests/test_core/test_patch_chunk.py::TestChunk::test_issue_474", "tests/test_core/test_patch_chunk.py::TestChunk::test_issue_475" ]
[ "tests/test_core/test_patch_chunk.py::TestChunk::test_merge_eq", "tests/test_core/test_patch_chunk.py::TestChunk::test_merge_chunk_adjacent_no_overlap", "tests/test_core/test_patch_chunk.py::TestChunk::test_adjacent_merge_no_overlap", "tests/test_core/test_patch_chunk.py::TestChunk::test_chunk_doesnt_modify_o...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
b05b0739ef1be47f242ecd1685c3f4a6defcee9e
2025-04-30 21:54:47
docker.io/swerebenchv2/stanfordnlp-dspy:8146-b05b073
stanfordnlp__dspy-8146
Method: Predict.__call__(self, *args, **kwargs) Location: dspy.predict.predict.Predict Inputs: *args – any positional arguments (must be empty); **kwargs – keyword arguments matching the fields defined in the Predict signature (e.g., question=str) Outputs: Returns a Prediction object containing the model’s fields (e.g....
python
MIT
diff --git a/dspy/clients/lm.py b/dspy/clients/lm.py index 023ade47..f77bc40e 100644 --- a/dspy/clients/lm.py +++ b/dspy/clients/lm.py @@ -231,35 +231,25 @@ class LM(BaseLM): return {key: getattr(self, key) for key in state_keys} | self.kwargs -def litellm_completion(request: Dict[str, Any], num_retries: i...
Fix predict usage tracking fix #8145 It actually indicates a bigger problem that our `dspy.Predict`'s `__call__` is not using the `Module.__call__`. We override the `__call__` in `dspy.Predict` to disallow positional args, but it should still utilize the parent's `__call__`. We also improve the error message on ...
[Bug] Usage tracking does not work with Predict ### What happened? Using the code sample provided in PR #8014 , I am not able to get usage tracking when replacing ChainOfThought with Predict. It always returns None. See below for simple example. ### Steps to reproduce ``` import dspy dspy.settings.configure(lm=dspy...
stanfordnlp/dspy
diff --git a/tests/predict/test_predict.py b/tests/predict/test_predict.py index 3461de47..c6052606 100644 --- a/tests/predict/test_predict.py +++ b/tests/predict/test_predict.py @@ -11,6 +11,7 @@ import dspy from dspy import Predict, Signature from dspy.utils.dummies import DummyLM from unittest.mock import patch, ...
[ "tests/predict/test_predict.py::test_lm_usage", "tests/predict/test_predict.py::test_positional_arguments", "tests/streaming/test_streaming.py::test_default_status_streaming_in_async_program" ]
[ "tests/predict/test_predict.py::test_initialization_with_string_signature", "tests/predict/test_predict.py::test_reset_method", "tests/predict/test_predict.py::test_lm_after_dump_and_load_state", "tests/predict/test_predict.py::test_call_method", "tests/predict/test_predict.py::test_instructions_after_dump_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
39ac74e9abdcc5fa86085f6f4672b90434d3a86e
2022-08-21 07:59:30
docker.io/swerebenchv2/tefra-xsdata:699-39ac74e
tefra__xsdata-699
Method: FilterClasses.run(self) Location: xsdata/codegen/handlers/filter_classes.py Inputs: self – the handler instance, which has a `container` attribute of type `ClassContainer` and accesses the configuration `self.container.config.output.filter_strategy`. Outputs: None (the method mutates the container). It may set ...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93b6f028..669a9003 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: end-of-file-fixer - id: debug-statements - repo: https://github.com/myint/docformatter - rev: v1.5.0-rc1 + rev:...
Introduce codegen filter strategy: referred globals ## 📒 Description Add a new filter strategy for generated classes in order to filter out global types that are not referenced anywhere. This new strategy will accommodate certain schemas where simple types are defined as global elements and since xsdata default ...
remove useless classes in the generated models + use booleans instead of True False enum. I have 2 things that I need to improve to simplify the generated classes from my xsd file. A sample to illustrate the issue: ``` <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml...
tefra/xsdata
diff --git a/tests/codegen/handlers/test_filter_classes.py b/tests/codegen/handlers/test_filter_classes.py new file mode 100644 index 00000000..c61a277d --- /dev/null +++ b/tests/codegen/handlers/test_filter_classes.py @@ -0,0 +1,73 @@ +from unittest import mock + +from xsdata.codegen.container import ClassContainer +f...
[ "tests/codegen/handlers/test_filter_classes.py::FilterClassesTests::test_filter_all", "tests/codegen/handlers/test_filter_classes.py::FilterClassesTests::test_filter_all_globals", "tests/codegen/handlers/test_filter_classes.py::FilterClassesTests::test_filter_referred_globals", "tests/codegen/handlers/test_fi...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B6", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
2806558108a97105e7fc200462c58c0aadf81084
2025-02-28 23:11:38
docker.io/swerebenchv2/canonical-operator:1599-2806558
canonical__operator-1599
Method: _TestingPebbleClient.start_services(self, services: List[str], timeout: float = 30.0, delay: float = 0.1) -> pebble.ChangeID Location: ops/_private/harness.py Inputs: - services: list of service names; must be non‑empty; TypeError if a plain string is passed; pebble.APIError (400) if the list is empty or conta...
python
Apache-2.0
diff --git a/.github/workflows/publish-ops-scenario.yaml b/.github/workflows/publish-ops-scenario.yaml index 1efe190..9ed2dd0 100644 --- a/.github/workflows/publish-ops-scenario.yaml +++ b/.github/workflows/publish-ops-scenario.yaml @@ -29,7 +29,7 @@ jobs: run: python -m build working-directory: ./tes...
fix: in tests, raise the same error as Pebble when an invalid service is provided This PR addresses the TODO and notes in the start/stop/restart service methods of Harness (and via inheritance, Scenario). * Raise an APIError rather than RuntimeError, with the same message as Pebble, when a service doesn't exist. * ...
Align the exception raised from Harness when a service does not exist Basically, we want to [fix this TODO](https://github.com/canonical/operator/blob/449793f9867eba11dc2e7e1c28ea3dca1e1da231/ops/testing.py#L3123) (and the related following ones). When starting, stopping, restarting a service, if the service does no...
canonical/operator
diff --git a/.github/workflows/test-publish-ops-scenario.yaml b/.github/workflows/test-publish-ops-scenario.yaml index 39833cc..28c6045 100644 --- a/.github/workflows/test-publish-ops-scenario.yaml +++ b/.github/workflows/test-publish-ops-scenario.yaml @@ -26,7 +26,7 @@ jobs: run: python -m build work...
[ "test/test_charm.py::test_meta_charm_user[root]", "test/test_charm.py::test_meta_charm_user[sudoer]", "test/test_charm.py::test_meta_charm_user[non-root]", "test/test_charm.py::test_meta_charm_user_default", "test/test_testing.py::TestTestingPebbleClient::test_get_services_start_stop", "test/test_testing....
[ "test/test_charm.py::test_basic", "test/test_charm.py::test_observe_decorated_method", "test/test_charm.py::test_observer_not_referenced_warning", "test/test_charm.py::test_empty_action", "test/test_charm.py::test_helper_properties", "test/test_charm.py::test_relation_events", "test/test_charm.py::test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/canonical/operator/blob/449793f9867...
27f188a422cfd8f5db6119bd81c2b8b9f292eb1c
2023-09-27 00:38:36
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:277-27f188a
py-cov-action__python-coverage-comment-action-277
Function: parse_diff_output(diff: str) Location: coverage_comment/coverage.py Inputs: `diff` – a string containing the output of `git diff --unified=0` (or similar). The diff may include file deletions, renames, and hunks with added/removed lines. Only added line numbers are considered; files with no added lines ar...
python
MIT
diff --git a/coverage_comment/coverage.py b/coverage_comment/coverage.py index 75c43bf..29d4bb0 100644 --- a/coverage_comment/coverage.py +++ b/coverage_comment/coverage.py @@ -288,11 +288,11 @@ def parse_diff_output(diff: str) -> dict[pathlib.Path, list[int]]: current_file = pathlib.Path(line.removeprefix...
Account for file deletions in git diff parsing Probably closes #275 We didn't account for getting `/dev/null` without prefix as added filename for file deletions.
`parse_diff_output()` raises AssertionError in v3.12 Hello, and thanks for creating this GH Action! I have a workflow that fails on v3.12 but succeeds on v3.11... <details> <summary>Stack trace from failing workflow run when using v3.12...</summary> ```bash Notice: Generating comment for PR Error: Critical err...
py-cov-action/python-coverage-comment-action
diff --git a/tests/unit/test_coverage.py b/tests/unit/test_coverage.py index 7d30c31..05ab09e 100644 --- a/tests/unit/test_coverage.py +++ b/tests/unit/test_coverage.py @@ -246,7 +246,15 @@ def test_parse_line_number_diff_line(git, line_number_diff_line, expected): def test_parse_diff_output(git): - diff = """d...
[ "tests/unit/test_coverage.py::test_parse_diff_output" ]
[ "tests/unit/test_coverage.py::test_compute_coverage[0-10-0]", "tests/unit/test_coverage.py::test_compute_coverage[0-0-1]", "tests/unit/test_coverage.py::test_compute_coverage[5-0-1]", "tests/unit/test_coverage.py::test_compute_coverage[5-10-0.5]", "tests/unit/test_coverage.py::test_compute_coverage[1-100-0....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/py-cov-action/python-coverage-comment...
1148de54df7509a6a6a764954a10e5ac894a9877
2023-10-10 21:50:39
docker.io/swerebenchv2/wtforms-wtforms:809-1148de5
wtforms__wtforms-809
Method: SelectField.pre_validate(self, form) Location: src/wtforms/fields/choices.py – class SelectField Inputs: - **form**: the Form instance being validated. - Relies on the field’s attributes **self.choices** (may be ``None``) and **self.validate_choice** (bool). Outputs: - Returns ``None`` (no return value). -...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index f030527..8adc247 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,8 @@ Version 3.x.x Unreleased - Display :class:`~wtforms.Flags` values in their repr. :pr:`808` +- :class:`~fields.SelectField` and :class:`~fields.SelectMultipleField` + ``choices`` can be `None` if...
Select(Multiple)Field choice can be None if validate_choice is False Allow `SelectField` and `SelectMultipleField` choice to be `None` if choice validation is disabled. Fixes #735
Breaking Change between 2.3 and 3.0 on SelectField(validate_choice=False) ### Actual Behavior ```python >>> import wtforms >>> class F(wtforms.Form): ... foo = wtforms.SelectField(validate_choice=False) >>> f = F() >>> f.validate() Traceback (most recent call last): File "scratch_27.py", line 7, in <mod...
wtforms/wtforms
diff --git a/tests/fields/test_select.py b/tests/fields/test_select.py index 82db6f0..aa5874a 100644 --- a/tests/fields/test_select.py +++ b/tests/fields/test_select.py @@ -132,6 +132,12 @@ def test_dont_validate_choices(): assert len(form.a.errors) == 0 +def test_choices_can_be_none_when_choice_validation_is_...
[ "tests/fields/test_select.py::test_choices_can_be_none_when_choice_validation_is_disabled", "tests/fields/test_selectmultiple.py::test_choices_can_be_none_when_choice_validation_is_disabled" ]
[ "tests/fields/test_select.py::test_select_field_copies_choices", "tests/fields/test_select.py::test_defaults", "tests/fields/test_select.py::test_with_data", "tests/fields/test_select.py::test_value_coercion", "tests/fields/test_select.py::test_iterable_options", "tests/fields/test_select.py::test_default...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/wtforms/wtforms/issues/606" ], ...
85b7af36e1f832f57df41e1bfb1aff59fd05dca6
2025-02-21 23:19:20
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1446-85b7af3
pyjanitor-devs__pyjanitor-1446
Method: Series.select(self, *args, index=None, columns=None, axis='columns', invert=False) Location: janitor/functions/select.py Inputs: - **self**: a `pandas.Series` (the series on which the method is called). - **args**: optional positional selectors (string, glob, regex, slice, array‑like, etc.) – not allowe...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6278eca..889c2cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- [ENH] Added support for pd.Series.select - Issue #1394 @samukweku + ## [v0.30.0] - 2024-12-04 ## [v0.29.2] - 2024-09-28 @@ -28,7 +30,7 @@ - [ENH] Added a `clean_na...
[ENH] Add support for `pd.Series.select` # PR Description Please describe the changes proposed in the pull request: - Add support for `pd.Series.select` **This PR resolves #1394 .** Please tag maintainers to review. - @ericmjl
extend the `select` function to `pd.Series` At the moment, `jn.select` applies only to DataFrames. Extending to pd.Series would be handy, especially when selecting MultiIndexes.
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_select.py b/tests/functions/test_select.py index 605103f..114901b 100644 --- a/tests/functions/test_select.py +++ b/tests/functions/test_select.py @@ -1,7 +1,7 @@ import numpy as np import pandas as pd import pytest -from pandas.testing import assert_frame_equal +from pandas.testing...
[ "tests/functions/test_select.py::test_series_axis", "tests/functions/test_select.py::test_series_select" ]
[ "tests/functions/test_select.py::test_args_and_rows_and_columns", "tests/functions/test_select.py::test_args_invert", "tests/functions/test_select.py::test_args_axis", "tests/functions/test_select.py::test_invert", "tests/functions/test_select.py::test_invert_args", "tests/functions/test_select.py::test_s...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
d55866d55d20a0e54730dbb354bea04bba8a7973
2021-04-26 15:35:00
docker.io/swerebenchv2/datalad-datalad:5603-d55866d
datalad__datalad-5603
Function: _gh_exception(exc_cls, status, data) Location: datalad/support/github_.py Inputs: - exc_cls: exception class (e.g., gh.BadCredentialsException) to instantiate. - status: status code or message passed to the exception constructor. - data: additional data payload for the exception. Outputs: - Returns an instanc...
python
custom-check-github
diff --git a/datalad/support/github_.py b/datalad/support/github_.py index 6848a6785..10c3023d7 100644 --- a/datalad/support/github_.py +++ b/datalad/support/github_.py @@ -79,6 +79,17 @@ def _get_tokens_for_login(login, tokens): return selected_tokens +def _gh_exception(exc_cls, status, data): + """Compati...
MNT: github: Add compatibility wrapper for GithubException A few spots in the code base instantiate GithubException with two arguments, but in PyGithub v1.55 (released today) GithubException and its subclasses require an additional argument (`headers`). Add a helper that tries to create an exception with three arg...
Incompatible with PyGithub v1.55 ``` ====================================================================== ERROR: datalad.support.tests.test_github_.test__make_github_repos ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/dl-miniconda-z1552950/...
datalad/datalad
diff --git a/datalad/support/tests/test_github_.py b/datalad/support/tests/test_github_.py index a8eaa212b..acbc22cda 100644 --- a/datalad/support/tests/test_github_.py +++ b/datalad/support/tests/test_github_.py @@ -33,6 +33,7 @@ from .. import github_ from ..github_ import ( _gen_github_entity, _get_github...
[ "datalad/support/tests/test_github_.py::test_get_repo_url", "datalad/support/tests/test_github_.py::test__make_github_repos" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://travis-ci.com/github/datalad/datalad/jobs/501116...
a88906b48302c16cd684b0bf2f0775d97c6b7a38
2024-07-16 16:33:10
docker.io/swerebenchv2/stac-utils-pystac:1365-a88906b
stac-utils__pystac-1365
Function: __getattr__(value: str) Location: pystac/client.py Inputs: - **value** (str): Name of the attribute to retrieve from the underlying `pystac_client` module. Outputs: - Returns the requested attribute from `pystac_client` if the module is installed. - Raises `ImportError` with the message `"Please install py...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index fc41c797..8d5e77e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - Add netCDF to pystac.media_type ([#1386](https://github.com/stac-utils/pystac/pull/1386)) +- Add convenience method for accessing pystac_client ([#1365](https://github.com/stac...
Add convenience method for accessing pystac_client **Related Issue(s):** - Closes #1334 **Description:** ```python from pystac.client import Client ``` **PR Checklist:** - [x] `pre-commit` hooks pass locally - [x] Tests pass (run `scripts/test`) - [x] Documentation has been updated to reflect change...
Namespace the client so we do `from pystac.client import Client` This is a pedantic nice-to-have! I would love to be able to get the client like `from pystac.client import Client` rather than `from pystac_client import Client`. It's a little thing, but it would make me happy!
stac-utils/pystac
diff --git a/tests/test_pystac_client.py b/tests/test_pystac_client.py new file mode 100644 index 00000000..83353a53 --- /dev/null +++ b/tests/test_pystac_client.py @@ -0,0 +1,43 @@ +# mypy: ignore-errors +import builtins +import sys +from types import ModuleType +from typing import Any + +import pytest + +real_import ...
[ "tests/test_pystac_client.py::test_import_pystac_client_when_not_available" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
89047523cb9ee2556062678a57863530cbbfa06a
2022-03-30 18:40:11
docker.io/swerebenchv2/senth-minecraft-mod-manager:171-8904752
senth__minecraft-mod-manager-171
Method: Downloader.download(self, url: str, filename: str) -> str Location: minecraft_mod_manager/gateways/downloader.py Inputs: - url (str): The HTTP URL of the file to fetch. Must be a non‑empty string. - filename (str): Destination path where the downloaded file should be saved. Must be a writable path. Outputs: -...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 71e835b..ece4185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Colored output continued to next messages [#141](https://github.com/Senth/minecraft-mod-manager/issues/141) ...
Retry fetch/download if timed out or other reason ### What changed? - Downloader now automatically retries 5 times with exponential backoff ### Testing - [X] Added unit tests - [ ] Added integration tests - [ ] ...Your own tests... ### Checklist - [x] I have reviewed my own code ### Related Issues Fixes ...
Retry if downloading fails due to overload or some other issue ### Describe the bug Sometimes mods fail to download from Modrinth due to the server being overloaded. This makes tests fail sometimes, but probably also makes installation and updates fail. ### Steps to reproduce Ran tests ### Expected Behavior ...
Senth/minecraft-mod-manager
diff --git a/minecraft_mod_manager/gateways/downloader_test.py b/minecraft_mod_manager/gateways/downloader_test.py index 73809d6..eb4bb82 100644 --- a/minecraft_mod_manager/gateways/downloader_test.py +++ b/minecraft_mod_manager/gateways/downloader_test.py @@ -9,8 +9,8 @@ from requests.models import Response from requ...
[ "minecraft_mod_manager/gateways/downloader_test.py::test_use_filename_when_it_exists", "minecraft_mod_manager/gateways/downloader_test.py::test_use_downloaded_filename_when_no_filename_specified", "minecraft_mod_manager/gateways/downloader_test.py::test_use_downloaded_filename_add_jar_when_no_filename_specified...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
a6db0abee70bd61e3c9c6782e9b5856395307c94
2023-03-16 10:54:52
docker.io/swerebenchv2/pyg-team-pytorch-geometric:6928-a6db0ab
pyg-team__pytorch_geometric-6928
Method: DenseGATConv.__init__(self, in_channels: int, out_channels: int, heads: int = 1, concat: bool = True, negative_slope: float = 0.2, dropout: float = 0.0, bias: bool = True) Location: torch_geometric.nn.dense.dense_gat_conv.DenseGATConv Inputs: - **in_channels** (int): size of each input node feature vector. -...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 67c67b9a6..c8f25bf2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added +- Added the `DenseGATConv` module ([#6928](https://github.com/pyg-team/pytorch_geometric/pull/6...
Add `DenseGATConv` operator Added `DenseGATConv` operator that supports most features of the sparse counterpart except bipartite graphs (which do not makes sense given adjacency matrices) and edge attention. This PR resolves #1141.
GATConv but for Dense Networks ## 🚀 Feature Hi, I have a very simple request. I've seen that you've made dense formulations of a couple of the graph convolution types and graph pooling operators. Could you make the same thing for GATConv (and NNConv for that matter). If you don't have the bandwidth, just give me so...
pyg-team/pytorch_geometric
diff --git a/test/nn/dense/test_dense_gat_conv.py b/test/nn/dense/test_dense_gat_conv.py new file mode 100644 index 000000000..72c4ccc4b --- /dev/null +++ b/test/nn/dense/test_dense_gat_conv.py @@ -0,0 +1,66 @@ +import pytest +import torch + +from torch_geometric.nn import DenseGATConv, GATConv +from torch_geometric.te...
[ "test/nn/dense/test_dense_gat_conv.py::test_dense_gat_conv[True-1]", "test/nn/dense/test_dense_gat_conv.py::test_dense_gat_conv[True-4]", "test/nn/dense/test_dense_gat_conv.py::test_dense_gat_conv[False-1]", "test/nn/dense/test_dense_gat_conv.py::test_dense_gat_conv[False-4]", "test/nn/dense/test_dense_gat_...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": "partial", "pr_categories": ...
209e4e674276aa589fa51ee629ac3b193124e95c
2025-03-16 15:06:33
docker.io/swerebenchv2/narwhals-dev-narwhals:2224-209e4e6
narwhals-dev__narwhals-2224
Method: DataFrame.with_columns(self, *exprs, **named_exprs) Location: narwhals/dataframe.py (DataFrame subclass) Inputs: - *exprs: zero or more column expressions (e.g., `nw.col("a")`). - **named_exprs: keyword arguments where each value is a Series‑like object to be inserted as a new column (e.g., `second=seco...
python
MIT
diff --git a/narwhals/_arrow/utils.py b/narwhals/_arrow/utils.py index 2d4f8544..7edbe473 100644 --- a/narwhals/_arrow/utils.py +++ b/narwhals/_arrow/utils.py @@ -13,6 +13,7 @@ from typing import overload import pyarrow as pa import pyarrow.compute as pc +from narwhals.exceptions import ShapeError from narwhals.ut...
feat: Raise uniform error when passing Series of different lengths to `with_columns` closes #2197 <!-- # 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 al...
Different error-ing behaviour with `native_namespace=pd` compared to the orginal pandas? I am not sure if I do something wrong or if this is on purpose, but it seems that narwhals has a different error-ing behaviour with `native_namespace=pd` as pandas itself (at least in my little use case): I also wonder why narwhal...
narwhals-dev/narwhals
diff --git a/tests/frame/with_columns_test.py b/tests/frame/with_columns_test.py index 5756bb9b..c793a3e0 100644 --- a/tests/frame/with_columns_test.py +++ b/tests/frame/with_columns_test.py @@ -5,6 +5,7 @@ import pandas as pd import pytest import narwhals.stable.v1 as nw +from narwhals.exceptions import ShapeError...
[ "tests/frame/with_columns_test.py::test_with_columns_series_shape_mismatch[pandas[pyarrow]]", "tests/frame/with_columns_test.py::test_with_columns_series_shape_mismatch[pandas]", "tests/frame/with_columns_test.py::test_with_columns_series_shape_mismatch[pyarrow]" ]
[ "tests/frame/with_columns_test.py::test_with_columns_empty[pandas[pyarrow]]", "tests/frame/with_columns_test.py::test_with_columns_order[pandas[pyarrow]]", "tests/frame/with_columns_test.py::test_with_columns_int_col_name_pandas", "tests/frame/with_columns_test.py::test_with_columns_order[polars[eager]]", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
bdcbe2ee9da8f422c80b0090bfd95162401a7c5d
2022-02-07 02:50:10
docker.io/swerebenchv2/pypa-setuptools-scm:681-bdcbe2e
pypa__setuptools_scm-681
Method: Wd.commit_testfile(self, reason=None, **kwargs) Location: testing/conftest.py Inputs: - reason (optional str): placeholder used in the test file content and commit message; if omitted a default “test‑{reason}” is generated. - **kwargs: currently used for `signed=True` to request a GPG‑signed commit; any additi...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e171cc8..74f0f5a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,8 @@ +v6.4.3 +====== + +* fix #548: correctly handle parsing the commit timestamp of HEAD when ``log.showSignature`` is set + v6.4.2 ====== diff --git a/src/setuptools_scm/git.py b/src/setupto...
Suppress GPG signature when getting HEAD committer date (#548) When users have `log.showSignature` enabled, `get_head_date` fails with `ValueError: time data 'gpg: Signature made [...]' does not match format '%Y-%m-%d'`, as observed in #548, #621, psf/black#2059, and so on. Short of rewriting `get_head_date` to use ...
GPG Signature causes: Preparing wheel metadata: finished with status 'error' **By creating this issue, I want to create awareness about the following behavior:** I came across the following Error: pre-commit fails when setting up the black environment. ``` ... File "/private/var/folders/zs/...
pypa/setuptools_scm
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 542b221..0778236 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -38,6 +38,29 @@ jobs: msystem: MINGW64 install: git mingw-w64-x86_64-python mingw-w64-x86_64-pytho...
[ "testing/test_git.py::test_git_getdate_signed_commit" ]
[ "testing/test_git.py::test_parse_describe_output[3.3.1-rc26-0-g9df187b-3.3.1-rc26-0-g9df187b-False]", "testing/test_git.py::test_parse_describe_output[17.33.0-rc-17-g38c3047c0-17.33.0-rc-17-g38c3047c0-False]", "testing/test_git.py::test_root_relative_to", "testing/test_git.py::test_root_search_parent_director...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/psf/black/issues/2059", "http...
0b2d2af6ee57a73941a1b5e44712cb7b76f6a6aa
2022-12-26 14:22:02
docker.io/swerebenchv2/sanic-org-sanic-ext:168-0b2d2af
sanic-org__sanic-ext-168
Function: Component(model_class) Location: sanic_ext/extensions/openapi/definitions.py Inputs: - **model_class** (type: ``type``) – The class to be turned into an OpenAPI component. It may be a regular dataclass/attrs class, a Pydantic ``BaseModel`` subclass, or a Pydantic dataclass created via ``pydantic.dataclasses.d...
python
MIT
diff --git a/sanic_ext/extensions/openapi/definitions.py b/sanic_ext/extensions/openapi/definitions.py index ab476a8..af20519 100644 --- a/sanic_ext/extensions/openapi/definitions.py +++ b/sanic_ext/extensions/openapi/definitions.py @@ -20,7 +20,7 @@ from typing import ( from sanic.exceptions import SanicException ...
Elegantly handle Pydantic model schema Closes #152 ```python class Alert(BaseModel): hit: dict[str, Any] last_updated: datetime @pydataclass class AlertResponse: alert: Alert rule_id: str ``` This will automatically drop all references and pydantic classes into components: ```json ...
[Bug] When Pydantic model refers to another model, swagger errors out and redoc crashes with an error **Describe the bug** Invalid openapi spec is created when nested models are present in Pydantic models. **Screenshots** Redoc error: ![image](https://user-images.githubusercontent.com/22248828/203652682-b41c0b46-...
sanic-org/sanic-ext
diff --git a/tests/extensions/openapi/test_model_to_spec.py b/tests/extensions/openapi/test_model_to_spec.py new file mode 100644 index 0000000..8563509 --- /dev/null +++ b/tests/extensions/openapi/test_model_to_spec.py @@ -0,0 +1,97 @@ +from dataclasses import dataclass +from datetime import datetime +from typing impo...
[ "tests/extensions/openapi/test_model_to_spec.py::test_pydantic_base_model[AlertResponseDataclass-False]", "tests/extensions/openapi/test_model_to_spec.py::test_pydantic_base_model[AlertResponseAttrs-False]" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://user-images.githubusercontent.com/22248828/203...
56acfbceca41658960edf191aed11efe61134ae8
2024-09-04 10:59:34
docker.io/swerebenchv2/aristanetworks-anta:815-56acfbc
aristanetworks__anta-815
Method: VerifyBGPPeerGroup.test(self) Location: anta.tests.routing.bgp.VerifyBGPPeerGroup Inputs: None (operates on `self.inputs.bgp_peers`, a list of `BgpPeer` objects). Outputs: Updates `self.result` – marks success when every peer is found in the JSON output of `show bgp neighbors vrf all` and its `peerGroupName`...
python
Apache-2.0
diff --git a/anta/input_models/routing/bgp.py b/anta/input_models/routing/bgp.py index 2eb14e4b..e51e0e11 100644 --- a/anta/input_models/routing/bgp.py +++ b/anta/input_models/routing/bgp.py @@ -142,6 +142,8 @@ class BgpPeer(BaseModel): """IPv4 address of the BGP peer.""" vrf: str = "default" """Optional...
feat(anta): Added the test case for verify BGP peer group of the BGP IPv4 peer(s) # Description Verifies BGP peer group of the BGP IPv4 peer(s). Expected Results ---------------- * Success: The test will pass if the peer group is correctly assigned to the BGP peer(s). * Failure: The test will f...
Add the test case to verify BGP peer group Test case to verify the BGP neighbors inherits the configuration from and member of peer-group. Sample output: `DLFW1#show ip bgp neighbors 172.31.100.0` BGP neighbor is 172.31.100.0, remote AS 42, external link Description: SPW1_Ethernet3 BGP version 4, remote ...
aristanetworks/anta
diff --git a/anta/tests/routing/bgp.py b/anta/tests/routing/bgp.py index e1797422..89ad386a 100644 --- a/anta/tests/routing/bgp.py +++ b/anta/tests/routing/bgp.py @@ -1226,7 +1226,7 @@ class VerifyBgpRouteMaps(AntaTest): """Validate that 'inbound_route_map' or 'outbound_route_map' field is provided in each...
[ "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerGroup-success]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerGroup-failure-incorrect-peer-group]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPee...
[ "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success-peer-state-check-true]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
30251684ac1d4d9783ca88f1cc2fc39f8f7f2275
2023-02-02 17:39:56
docker.io/swerebenchv2/agnostiqhq-covalent:1508-3025168
agnostiqhq__covalent-1508
Function: _result_from(lattice_record) Location: covalent_dispatcher._db.load Inputs: Lattice record instance (attributes: storage_path, function_filename, function_string_filename, docstring_filename, executor_data_filename, workflow_executor_data_filename, inputs_filename, named_args_filename, named_kwargs_filename, ...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b1e4e31..2d99654d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +### Changed + +- Location of function to load result from the database now moved to load ...
add remaining redispatch functionality Fixes #1475 <!-- ⚠️ Your pull request title should be short detailed and understandable for all. ⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's a new fe...
Redispatch workflows: SDK To support iterative workflow development, we want to introduce the ability to *redispatch* previously run workflows. This issue tracks the necessary changes to the SDK. The main task is to implement the `LocalDispatcher.redispatch` static method. ## UX - `ct.redispatch(dispatch_id)()`...
AgnostiqHQ/covalent
diff --git a/tests/covalent_dispatcher_tests/_db/load_test.py b/tests/covalent_dispatcher_tests/_db/load_test.py new file mode 100644 index 00000000..5c36f330 --- /dev/null +++ b/tests/covalent_dispatcher_tests/_db/load_test.py @@ -0,0 +1,224 @@ +# Copyright 2023 Agnostiq Inc. +# +# This file is part of Covalent. +# +#...
[ "tests/covalent_dispatcher_tests/_db/load_test.py::test_result_from", "tests/covalent_dispatcher_tests/_db/load_test.py::test_get_result_object_from_storage", "tests/covalent_dispatcher_tests/_db/load_test.py::test_get_result_object_from_storage_exception", "tests/covalent_dispatcher_tests/_db/update_test.py:...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/AgnostiqHQ/covalent/blob/redispatch...
dbe6c1e974bfb1f74462f42fb55635d197221ccf
2024-02-25 16:59:55
docker.io/swerebenchv2/callowayproject-bump-my-version:147-dbe6c1e
callowayproject__bump-my-version-147
Function: get_all_file_configs(config_dict) Location: bumpversion/config/utils.py Inputs: - **config_dict** (dict): The parsed `[tool.bumpversion]` section of a bumpversion TOML configuration. Expected to contain global settings and a `"files"` list where each entry may specify per‑file overrides. Outputs: - **List[F...
python
MIT
diff --git a/bumpversion/cli.py b/bumpversion/cli.py index 37064f58..daee9878 100644 --- a/bumpversion/cli.py +++ b/bumpversion/cli.py @@ -163,14 +163,14 @@ click.rich_click.OPTION_GROUPS = { ), ) @click.option( - "--ignore-missing-files", - is_flag=True, + "--ignore-missing-files/--no-ignore-missing-fi...
Fixed --ignore-missing-version and --ignore-missing-files options. The CLI options were defaulting to `False` when missing. This overrode the configuration. Fixes #140
ignore_missing_version not honored when set in config file * bump-my-version version: 0.17.4 * Python version: 3.10.13 * Operating System: Ubuntu 22.04.4 LTS ### Description I am trying to setup version bumping for one of our projects. The project contains a submodule that we don't want to bump and the submodul...
callowayproject/bump-my-version
diff --git a/tests/test_config/test_create.py b/tests/test_config/test_create.py index 1e269565..b366fe22 100644 --- a/tests/test_config/test_create.py +++ b/tests/test_config/test_create.py @@ -105,7 +105,27 @@ class TestCreateConfiguration: default_config["current_version"] = "0.1.0" default_config[...
[ "tests/test_config/test_utils.py::TestGetAllFileConfigs::test_uses_defaults_for_missing_keys" ]
[ "tests/test_config/test_create.py::TestGetDefaultsFromDest::test_existing_path_returns_existing_config", "tests/test_config/test_create.py::TestGetDefaultsFromDest::test_missing_path_returns_default_config", "tests/test_config/test_create.py::TestGetDefaultsFromDest::test_existing_path_with_no_config_returns_de...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2d59242bf731b258e2f155fece933ae66acbe03b
2024-02-19 20:12:22
docker.io/swerebenchv2/amaranth-lang-amaranth:1152-2d59242
amaranth-lang__amaranth-1152
No new interfaces are introduced.
python
BSD-2-Clause
diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index ec7b699..a6367bd 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -744,6 +744,16 @@ class ModuleEmitter: emit_assignments(proc, _nir.Net.from_const(1)) assert pos == len(cell.assignments) + def shorten_operand(s...
back.rtlil: Opportunistically trim zero and sign extension on operands. Fixes #1148.
New IR causes DSP inference issues with Quartus The following design (within the Details) infers 2 DSP blocks: `Info (21062): Implemented 2 DSP elements`. <details> ```python from amaranth import * from amaranth.lib import wiring from amaranth.lib.wiring import In, Out from amaranth_boards.de10_nano import ...
amaranth-lang/amaranth
diff --git a/tests/test_back_rtlil.py b/tests/test_back_rtlil.py index 47d7b4b..480a3f2 100644 --- a/tests/test_back_rtlil.py +++ b/tests/test_back_rtlil.py @@ -123,16 +123,16 @@ class RHSTestCase(RTLILTestCase): wire width 1 $8 cell $neg $9 parameter \A_SIGNED 0 - ...
[ "tests/test_back_rtlil.py::RHSTestCase::test_operator_add_imm", "tests/test_back_rtlil.py::RHSTestCase::test_operator_addsub", "tests/test_back_rtlil.py::RHSTestCase::test_operator_cmp", "tests/test_back_rtlil.py::RHSTestCase::test_operator_divmod", "tests/test_back_rtlil.py::RHSTestCase::test_operator_eq",...
[ "tests/test_back_rtlil.py::TreeTestCase::test_tree", "tests/test_back_rtlil.py::RHSTestCase::test_anyvalue", "tests/test_back_rtlil.py::RHSTestCase::test_initial", "tests/test_back_rtlil.py::RHSTestCase::test_operator_bitwise", "tests/test_back_rtlil.py::RHSTestCase::test_operator_mux", "tests/test_back_r...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.intel.com/content/www/us/en/docs/programma...
afb0a6bed467d8b4c4a295d4cb4dccd674bc05e1
2022-05-16 13:21:31
docker.io/swerebenchv2/hypothesisworks-hypothesis:3344-afb0a6b
hypothesisworks__hypothesis-3344
No new interfaces are introduced.
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..8cb0b4149 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch by Cheuk Ting Ho adds support for :pep:`655` ``Required`` and ``NotRequired`` as attributes of +...
Handle TypedDict classes with PEP-655 (Not)Required keys Added handling of annotation of `Required` and `NotRequired` in `TypedDict` in `from_typed`. Closes #3339
Teach `from_type()` to handle `TypedDict` classes with PEP-655 `(Not)Required` keys [PEP-655](https://peps.python.org/pep-0655/) defines a better way to mark some keys as required and others as not-required on the `TypedDict` class - before, you had to define a parent class with some keys and a child class with others....
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/typing_extensions/test_backported_types.py b/hypothesis-python/tests/typing_extensions/test_backported_types.py index 6bf6cc1ea..cd8ebfc77 100644 --- a/hypothesis-python/tests/typing_extensions/test_backported_types.py +++ b/hypothesis-python/tests/typing_extensions/test_backported_...
[ "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typeddict_not_required", "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typeddict_not_required_can_skip", "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typeddict_required", "hypothe...
[ "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typing_extensions_Literal[dog]", "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typing_extensions_Literal[goldfish]", "hypothesis-python/tests/typing_extensions/test_backported_types.py::test_typing_extensions_L...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://peps.python.org/pep-0655/", "https://git...
f49fa59de4db65461608be3e6a971a02610ee34f
2020-07-17 16:18:31
docker.io/swerebenchv2/bluesky-bluesky:1378-f49fa59
bluesky__bluesky-1378
Function: is_movable(obj) Location: bluesky.utils.is_movable Inputs: obj – any Python object; the function checks for the presence of the required movable attributes (`name`, `parent`, `read`, `describe`, `read_configuration`, `describe_configuration`, `set`, `stop`). Outputs: bool – `True` if the object has all requir...
python
BSD-3-Clause
diff --git a/bluesky/plan_patterns.py b/bluesky/plan_patterns.py index 303c79a5..a4f6f46e 100644 --- a/bluesky/plan_patterns.py +++ b/bluesky/plan_patterns.py @@ -11,7 +11,7 @@ try: except ImportError: from toolz import partition -from .utils import snake_cyclers, Movable +from .utils import snake_cyclers, is_m...
ENH: allow "movable" objects that match bluesky interface with instance attributes This PR changes the way that bluesky checks if an argument is "movable". Before: `isinstance(obj, Movable)`, now: `is_movable(obj)`. Current behavior requires all of the expected attributes to be implemented as class attributes. With ...
check of isinstance(obj, Movable) only accepts class attributes, rejecting potentially valid objects I'm trying to get yaqc-bluesky settable objects to work in a `grid_scan`, but bluesky is claiming that my arguments are invalid. In particular, my objects are failing to pass `isinstance(obj, Movable)` [1]. The `Mova...
bluesky/bluesky
diff --git a/bluesky/tests/test_utils.py b/bluesky/tests/test_utils.py index 69cba2a4..c894e294 100644 --- a/bluesky/tests/test_utils.py +++ b/bluesky/tests/test_utils.py @@ -4,7 +4,7 @@ import numpy as np from functools import reduce import operator -from bluesky.utils import ensure_generator, Msg, merge_cycler, M...
[ "bluesky/tests/test_utils.py::test_single_msg_to_gen", "bluesky/tests/test_utils.py::test_cycler_merge_pseudo[traj0]", "bluesky/tests/test_utils.py::test_cycler_merge_pseudo[traj1]", "bluesky/tests/test_utils.py::test_cycler_merge_pseudo_real_clash[children0]", "bluesky/tests/test_utils.py::test_cycler_merg...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/bluesky/bluesky/blob/master/bluesky...
92971a5dec3bab3f9ea2853f4c1fc07cb2f4807e
2023-02-28 01:35:19
docker.io/swerebenchv2/joke2k-faker:1806-92971a5
joke2k__faker-1806
Method: SBN9.__init__(self, registrant: Optional[str] = None, publication: Optional[str] = None) Location: faker/providers/sbn/sbn.py Inputs: - registrant – string of digits (may be None) representing the registrant part of the SBN. - publication – string of digits (may be None) representing the publication part of th...
python
MIT
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index b0203685..71721f80 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 17.3.0 +current_version = 17.4.0 files = VERSION faker/__init__.py docs/conf.py commit = True tag = True diff --git a/CHANGELOG.md b/CHANGEL...
Add SBN provider ### What does this change Adds an SBN provider that generates (pre-International) Standard Book Numbers. ### What was wrong See #1803 ### How this fixes it Takes the current ISBN provider implementation and modifies it to match the older SBN model. This includes removing the usage of EA...
Support for 9 digit SBN * Faker version: 17.0.0 * OS: Windows 10 Brief summary of the issue goes here. Before the formation of the ISBN there was a non-international Standard Book Number (SBN) used for a few years. While no longer used today, it might be nice to include SBNs as they are still on many books from ...
joke2k/faker
diff --git a/tests/providers/test_sbn.py b/tests/providers/test_sbn.py new file mode 100644 index 00000000..9048b649 --- /dev/null +++ b/tests/providers/test_sbn.py @@ -0,0 +1,62 @@ +import pytest + +from faker.providers.sbn import SBN9 +from faker.providers.sbn.en_US import Provider as SBNProvider +from faker.provider...
[ "tests/providers/test_sbn.py::TestISBN9::test_check_digit_is_correct", "tests/providers/test_sbn.py::TestISBN9::test_format_length", "tests/providers/test_sbn.py::TestProvider::test_reg_pub_separation", "tests/providers/test_sbn.py::TestProvider::test_rule_not_found", "tests/utils/test_utils.py::UtilsTestCa...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
6271cee2e8b2cf9a392377271bc9ed8345ce77c8
2020-06-25 17:34:29
docker.io/swerebenchv2/pallets-click:1604-6271cee
pallets__click-1604
Function: click.argument(name, **kwargs) Location: src/click/core.py (factory that returns an Argument instance) Inputs: - **name** (str): the argument name. - **nargs** (int, optional): number of values the argument consumes. Can be `1`, `>1`, or `-1` for unbounded. - **default** (Any, optional): default value used wh...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index adb5805..d7a780d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -31,6 +31,8 @@ Unreleased - The ``BOOL`` type accepts the values "on" and "off". :issue:`1629` - A ``Group`` with ``invoke_without_command=True`` will always invoke its result callback. :issue:`1178` +...
nargs=-1 works with envvar This PR aims to fix two bugs: 1. Initially combining `nargs=-1` and `envvar` would yield an empty tuple where the expected behaviour of `nargs=-1` is to take on an unlimited number of arguments passed in `envvar`. @amy-lei and I added a fix so that now combining `nargs=-1` with `envvar` s...
Can't mix nargs=-1 with envvar `@click.argument(name, nargs=2, envvar=NAME)` Works as expected. If you set `NAME="a b"` and run your command `name` in the called function will be a tuple of `('a', 'b')`. `@click.argument(name, nargs=-1, envvar=NAME)` on the other hand doesn't work as expected. If you call it ...
pallets/click
diff --git a/tests/test_arguments.py b/tests/test_arguments.py index c5fee42..445b880 100644 --- a/tests/test_arguments.py +++ b/tests/test_arguments.py @@ -18,7 +18,7 @@ def test_nargs_star(runner): assert result.output.splitlines() == ["src=foo.txt|bar.txt", "dst=dir"] -def test_nargs_default(runner): +def t...
[ "tests/test_arguments.py::test_nargs_envvar[2--2-Argument", "tests/test_arguments.py::test_nargs_envvar[2-a-2-Argument", "tests/test_arguments.py::test_nargs_envvar[2-a", "tests/test_arguments.py::test_nargs_envvar[-1-a", "tests/test_arguments.py::test_nargs_default[value0-2-Argument", "tests/test_argumen...
[ "tests/test_arguments.py::test_nargs_star", "tests/test_arguments.py::test_argument_unbounded_nargs_cant_have_default", "tests/test_arguments.py::test_nargs_tup", "tests/test_arguments.py::test_nargs_tup_composite", "tests/test_arguments.py::test_nargs_err", "tests/test_arguments.py::test_file_args", "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": [], "intent_completeness": "complete", "pr_categories":...
9d0be3fe32fd647d87338adc681013ec191f7a1b
2022-03-20 21:35:34
docker.io/swerebenchv2/senth-minecraft-mod-manager:166-9d0be3f
senth__minecraft-mod-manager-166
Method: ModrinthApi.get_all_versions(self, mod) Location: minecraft_mod_manager/gateways/api/modrinth_api.py Inputs: - **mod** (Mod): a Mod object containing at least `name` and identifier fields used to build the request URL. Outputs: - **List[VersionInfo]**: a list of VersionInfo objects constructed from the Mo...
python
MIT
diff --git a/.gitignore b/.gitignore index 8af626a..fa4dbfc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ .vscode **/__pycache__ -debug.log -/mods -node_modules -packages -.yarn -coverage -.eslintrc +temp diff --git a/CHANGELOG.md b/CHANGELOG.md index 081cc84..76907c2 100644 --- a/CHANGELOG.md +++ b/CHANGE...
Fix if Modrinth versions had empty 'files' array. ### What changed? - Catches IndexError and skips that version ### Testing - [X] Added unit tests - [ ] Added integration tests - [ ] ...Your own tests... ### Related Issues Fixes #145
mcman crashes with lazy-language-loader ### Describe the bug Minecraft Mod Manager crashes when attempting to download the lazy language loader mod ### Steps to reproduce Steps to reproduce the behavior: 1. have lazy-language-loader in your mods folder 2. Then ran `mmm update -v 1.18 --beta --mod-loader fabric ...
Senth/minecraft-mod-manager
diff --git a/minecraft_mod_manager/gateways/api/modrinth_api_test.py b/minecraft_mod_manager/gateways/api/modrinth_api_test.py index 42914ef..4e7de70 100644 --- a/minecraft_mod_manager/gateways/api/modrinth_api_test.py +++ b/minecraft_mod_manager/gateways/api/modrinth_api_test.py @@ -15,6 +15,7 @@ from .modrinth_api im...
[ "minecraft_mod_manager/gateways/api/modrinth_api_test.py::test_get_versions_without_files" ]
[ "minecraft_mod_manager/gateways/api/modrinth_api_test.py::test_find_mod_id_by_slug[Find", "minecraft_mod_manager/gateways/api/modrinth_api_test.py::test_find_mod_id_by_slug[Site", "minecraft_mod_manager/gateways/api/modrinth_api_test.py::test_get_all_versions_directly_when_we_have_mod_id" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d3146bbf0dddcb0cd979691bd171be69e12c0af5
2022-02-09 06:52:43
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1014-d3146bb
pyjanitor-devs__pyjanitor-1014
Method: DataFrame.fill_empty(self, column_names: Union[Hashable, Iterable[Hashable], None] = None, value: Any = None) Location: janitor/functions/fill.py Inputs: - **self** – a pandas DataFrame on which the method is invoked. - **column_names** – either a single column label (Hashable) or any iterable of column...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index cb3e1ee..64b5707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - [ENH] Add `xlsx_table`, for reading tables from an Excel sheet. @samukweku - [ENH] minor improvements for conditional_join; equality only joins are no longer supported; there has to be ...
[BUG] Extend `fill_empty`'s `column_names` type range <!-- Thank you for your PR! BEFORE YOU CONTINUE! Please add the appropriate three-letter abbreviation to your title. The abbreviations can be: - [DOC]: Documentation fixes. - [ENH]: Code contributions and new features. - [TST]: Test-related contributions. ...
[BUG] Extend `fill_empty`'s `column_names` type range # Brief Description <!-- Please provide a brief description of your bug. Do NOT paste the stack trace here. --> https://github.com/pyjanitor-devs/pyjanitor/blob/3fab49e8c89f1a5e4ca7a6e4fdbbe8e2f7b89c66/janitor/functions/fill.py#L148-L152 Quickly fix this, c...
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_fill_empty.py b/tests/functions/test_fill_empty.py index d9155c4..ed8a463 100644 --- a/tests/functions/test_fill_empty.py +++ b/tests/functions/test_fill_empty.py @@ -1,4 +1,5 @@ import pytest +import pandas as pd @pytest.mark.functions @@ -11,3 +12,22 @@ def test_fill_empty(null...
[ "tests/functions/test_fill_empty.py::test_column_names_iterable_type[column_names2]", "tests/functions/test_fill_empty.py::test_column_names_iterable_type[column_names3]", "tests/functions/test_fill_empty.py::test_column_names_iterable_type[column_names4]", "tests/functions/test_fill_empty.py::test_column_nam...
[ "tests/functions/test_fill_empty.py::test_fill_empty", "tests/functions/test_fill_empty.py::test_fill_empty_column_string", "tests/functions/test_fill_empty.py::test_column_names_iterable_type[column_names0]", "tests/functions/test_fill_empty.py::test_column_names_iterable_type[column_names1]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/pyjanitor-devs/pyjanitor/blob/3fab49e...
3d274d0bfab142bc45504533f2c2b5f5ce519fd7
2020-12-13 05:58:40
docker.io/swerebenchv2/python-attrs-attrs:732-3d274d0
python-attrs__attrs-732
Method: _Nothing.__bool__(self) Location: src/attr/_make.py Inputs: self – the singleton instance representing an unset attribute. Outputs: bool – always returns False, making attr.NOTHING evaluate to False in boolean contexts. Description: Provides a falsey truth value for the sentinel object `attr.NOTHING`, aligning ...
python
MIT
diff --git a/changelog.d/732.change.rst b/changelog.d/732.change.rst new file mode 100644 index 0000000..b1acc4b --- /dev/null +++ b/changelog.d/732.change.rst @@ -0,0 +1,1 @@ +``bool(attr.NOTHING)`` is now ``False``. diff --git a/src/attr/_make.py b/src/attr/_make.py index 1ed202f..7992e1d 100644 --- a/src/attr/_make....
Make NOTHING falsey Fixes #720
Make bool(attr.NOTHING) == False `attr.NOTHING` describes an non-existing/unset attribute in an object. However, `bool(attr.NOTHING)` currently evaluates to True which is unnatural and does not really fit. ## Other python empty values The meaning of `attr.NOTHING` is very near to `None` but in contrast the latte...
python-attrs/attrs
diff --git a/tests/test_dunders.py b/tests/test_dunders.py index 2f1ebab..52b72f7 100644 --- a/tests/test_dunders.py +++ b/tests/test_dunders.py @@ -808,6 +808,13 @@ class TestNothing(object): assert not (_Nothing() != _Nothing()) assert 1 != _Nothing() + def test_false(self): + """ + ...
[ "tests/test_dunders.py::TestNothing::test_false" ]
[ "tests/test_dunders.py::TestEqOrder::test_eq_ignore_attrib", "tests/test_dunders.py::TestEqOrder::test_equal[C0]", "tests/test_dunders.py::TestEqOrder::test_equal[C1]", "tests/test_dunders.py::TestEqOrder::test_unequal_same_class[C0]", "tests/test_dunders.py::TestEqOrder::test_unequal_same_class[C1]", "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
5ca0501f378058c69a7e80673dd83ec3d1b11e75
2025-06-10 15:18:18
docker.io/swerebenchv2/conan-io-conan:18444-5ca0501
conan-io__conan-18444
No new interfaces are introduced.
python
MIT
diff --git a/conan/cli/commands/cache.py b/conan/cli/commands/cache.py index 1f1240caf..52abdb58b 100644 --- a/conan/cli/commands/cache.py +++ b/conan/cli/commands/cache.py @@ -187,5 +187,6 @@ def cache_backup_upload(conan_api: ConanAPI, parser, subparser, *args): """ Upload all the source backups present in ...
[fix] Add support for Git tree-less repository when getting the URL Hello! :wave: This PR addresses the reported bug #18415, when using a Git repository with the tree-less feature. In the reported issue, it was commented to use `strip` instead of `rstrip` as originally designed in the PR #10594. That original PR ...
[bug] git remote parsing fails in treeless clones ### Describe the bug When the local repository was cloned "treeless", then newer versions of git (tested with 2.43.0) add another token to the output of "git remote -v" that is then wrongly parsed in [conan/tools/scm/git.py#get_remote_url()](https://github.com/conan-io...
conan-io/conan
diff --git a/test/functional/tools/scm/test_git.py b/test/functional/tools/scm/test_git.py index 7e0a46d09..89f3c9a1d 100644 --- a/test/functional/tools/scm/test_git.py +++ b/test/functional/tools/scm/test_git.py @@ -1253,3 +1253,63 @@ class TestGitShallowTagClone: assert "pkg/0.1: URL: {}".format(url) in ...
[ "test/functional/tools/scm/test_git.py::TestGitTreelessRemote::test_treeless_clone", "test/functional/tools/scm/test_git.py::TestGitTreelessRemote::test_treeless_clone_with_parenthesis" ]
[ "test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_commit_local", "test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_url", "test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_pushed_commit", "test/functional/tools/scm/test_git.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/conan-io/conan/blob/8e0bca03824d7960a...
edf4ccc363b40e67ed9f23d9967138f19ab33378
2023-05-26 18:29:52
docker.io/swerebenchv2/pyomo-pyomo:2849-edf4ccc
pyomo__pyomo-2849
Method: IndexedComponent_slice.wildcard_keys(self, sort=SortComponents.UNSORTED) Location: pyomo.core.base.indexed_component_slice.IndexedComponent_slice Inputs: - **self** – the slice object on which the method is invoked. - **sort** (optional) – a member of the ``SortComponents`` enum controlling the ordering...
python
custom-check-github
diff --git a/pyomo/contrib/fbbt/fbbt.py b/pyomo/contrib/fbbt/fbbt.py index b8a2bf20c..047e1396e 100644 --- a/pyomo/contrib/fbbt/fbbt.py +++ b/pyomo/contrib/fbbt/fbbt.py @@ -444,7 +444,7 @@ def _prop_bnds_leaf_to_root_GeneralExpression(node, bnds_dict, feasibility_tol): is more conservative). """ if n...
Restore slice API broken by #2829 ## Fixes #2844. ## Summary/Motivation: This restores the old (pre6.6.0) slice API. ## Changes proposed in this PR: - add argument default to restore previous `slice.wildcard_*()` API - revert change to test to exercise old API ### Legal Acknowledgement By contributing to...
IndexedComponent_slice wildcard methods argspec changes cause TypeError in 6.6.0 ## Summary We started noticing errors in unrelated PRs (e.g. https://github.com/watertap-org/watertap/actions/runs/5084274162/jobs/9136351337?pr=1037) after Pyomo 6.6.0 was released. From a quick search, it looks like #2829 added a `...
Pyomo/pyomo
diff --git a/pyomo/contrib/fbbt/tests/test_fbbt.py b/pyomo/contrib/fbbt/tests/test_fbbt.py index 5e8d656ee..5fafad4a9 100644 --- a/pyomo/contrib/fbbt/tests/test_fbbt.py +++ b/pyomo/contrib/fbbt/tests/test_fbbt.py @@ -1317,20 +1317,6 @@ class FbbtTestBase(object): self.assertAlmostEqual(m.y.lb, 0) self...
[ "pyomo/core/tests/unit/test_indexed_slice.py::TestComponentSlices::test_iterators" ]
[ "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_abs", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_acos", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_always_feasible", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::test_asin", "pyomo/contrib/fbbt/tests/test_fbbt.py::TestFBBT::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/watertap-org/watertap/actions/runs/50...