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
f529fb0ecee621a1cb80439db4483c48c2cea135
2025-01-26 19:33:17
docker.io/swerebenchv2/pyro-ppl-numpyro:1960-f529fb0
pyro-ppl__numpyro-1960
Function: log1mexp(x) Location: numpyro.distributions.util Inputs: x – scalar or array of real numbers (ArrayLike). Must be finite; returns special values for edge cases (nan for x > 0, -inf for x = 0). Outputs: ArrayLike of the same shape as x containing log(1 - exp(x)) computed in a numerically stable way. Returns -j...
python
Apache-2.0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75363953..793c886a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: python -m pip install --upgrade pip pip install jaxlib pip install jax - pip install .[doc,test] + ...
Add `log1mexp` and `logdiffexp` functions ## Summary Adds numerically stable implementations of `log1mexp` and `logdiffexp`, following [Machler 2012](https://cran.r-project.org/web/packages/Rmpfr/vignettes/log1mexp-note.pdf). Provides a custom jvp for `log1mexp` to increase numerical stability near 0. Closes #1368 ...
log1m_exp and log_diff_exp functions When writing custom distributions, it is often helpful to have numerically stable implementations of `log_diff_exp(a, b) := log(exp(a) - exp(b))` and particularly `log1m_exp(x) := log(1 - exp(x))`. The naive implementations are not stable for many probabilistic programming use cases...
pyro-ppl/numpyro
diff --git a/test/test_distributions_util.py b/test/test_distributions_util.py index 84af13fc..14b89143 100644 --- a/test/test_distributions_util.py +++ b/test/test_distributions_util.py @@ -4,14 +4,15 @@ from numbers import Number import numpy as np -from numpy.testing import assert_allclose +from numpy.testing im...
[ "test/test_distributions_util.py::test_binary_cross_entropy_with_logits[0.2-10.0]", "test/test_distributions_util.py::test_binary_cross_entropy_with_logits[0.6--10.0]", "test/test_distributions_util.py::test_binop_batch_rule[xlogy]", "test/test_distributions_util.py::test_binop_batch_rule[xlog1py]", "test/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.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://mc-stan.org/docs/2_29/functions-reference/comp...
e344e9102fc0fa29a1eb56f9a403d208bec44554
2022-11-15 15:19:02
docker.io/swerebenchv2/opencybersecurityalliance-stix-shifter:1191-e344e91
opencybersecurityalliance__stix-shifter-1191
No new interfaces are introduced.
python
custom-check-github
diff --git a/stix_shifter_modules/elastic_ecs/stix_translation/query_constructor.py b/stix_shifter_modules/elastic_ecs/stix_translation/query_constructor.py index 25ccef99..cc93a420 100644 --- a/stix_shifter_modules/elastic_ecs/stix_translation/query_constructor.py +++ b/stix_shifter_modules/elastic_ecs/stix_translatio...
elastic_ecs: wrap MATCHES regex in forward slashes Fixes #1190 See https://www.elastic.co/guide/en/elasticsearch/reference/8.5/query-dsl-query-string-query.html#_regular_expressions
elastic_ecs MATCHES operator is translated incorrectly **Describe the bug** The MATCHES operator doesn't work with elastic_ecs at all. I believe the problem is that the module uses Elasticsearch "query string" syntax (this doesn't appear to be documented anywhere however) and regular expressions should be wrapped in ...
opencybersecurityalliance/stix-shifter
diff --git a/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py b/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py index f10c7e3e..168bf2e5 100644 --- a/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query....
[ "stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py::TestStixtoQuery::test_match_operator", "stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py::TestStixtoQuery::test_match_operator_with_backslash" ]
[ "stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py::TestStixtoQuery::test_combined_observations_with_one_qualifier", "stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_stix_to_query.py::TestStixtoQuery::test_complex_query", "stix_shifter_modules/ela...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://www.elastic.co/guide/en/elasticsearch/reference/...
4560b8be726ea97f603e51e27779251f73c89d8a
2024-07-03 10:39:58
docker.io/swerebenchv2/stfc-psyclone:2645-4560b8b
stfc__psyclone-2645
Method: SymbolTable.lookup(self, name, visibility=None, scope_limit=None, otherwise=DEFAULT_SENTINEL) Location: src/psyclone/psyir/symbols/symbol_table.py Inputs: - **name** (str): the identifier of the symbol to search for. - **visibility** (optional, Symbol.Visibility or list of Symbol.Visibility): filter to only sym...
python
BSD-3-Clause
diff --git a/changelog b/changelog index f03c62ce6..49e41c448 100644 --- a/changelog +++ b/changelog @@ -169,6 +169,9 @@ 59) PR #2649 towards #2586. Adds support for pointer assignments of the form `var =[>] this[%...]%procedure(...)`. + 60) PR #2645 for #2585. Add an optional "otherwise" argument to + the Symbol...
(Closes #2585) Add an optional, 'default' argument to SymbolTable.lookup()
Extend SymbolTable.lookup() with a "default value" argument to avoid need for try...except. Currently the `lookup` method of SymbolTable will raise a `KeyError` if a Symbol cannot be found (c.f. a Python dict). However, this leads to a lot of try..except blocks which could be avoided if we could just tell the method t...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyir/symbols/symbol_table_test.py b/src/psyclone/tests/psyir/symbols/symbol_table_test.py index 0df99b9b9..e3b50f7d8 100644 --- a/src/psyclone/tests/psyir/symbols/symbol_table_test.py +++ b/src/psyclone/tests/psyir/symbols/symbol_table_test.py @@ -1230,7 +1230,7 @@ def test_lookup_1(): ...
[ "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_lookup_default_value" ]
[ "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_instance", "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_default_vis_symbol_table", "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_parent_symbol_table", "src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_symbol...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
127c420c0e89eaad20e5f13c72d86264047f7f7c
2023-12-22 00:33:22
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:323-127c420
py-cov-action__python-coverage-comment-action-323
Method: github.download_artifact(github, repository, artifact_name, run_id, filename) Location: coverage_comment/github.py Inputs: `github` – GitHub client instance; `repository` – repository identifier string “owner/repo”; `artifact_name` – name of the artifact to download; `run_id` – **int** identifier of the wor...
python
MIT
diff --git a/coverage_comment/annotations.py b/coverage_comment/annotations.py index 310573d..d8f6109 100644 --- a/coverage_comment/annotations.py +++ b/coverage_comment/annotations.py @@ -1,24 +1,99 @@ from __future__ import annotations +import dataclasses +import functools +import itertools +import pathlib +from c...
Group annotations for (almost) contiguous lines Closes #322 Groups multiple annotations into a single one with `line` and `lineEnd`, where all the lines in the groups are missing coverage, authorizing gaps in the middle of groups as long as they are shorter than 3 lines and don't contain a covered or an excluded li...
"missing line" annotations that span multiple lines? The annotations get a bit noisy when an entire multi-line clause of code is missed. There's an annotation on every line. GitHub Action annotations have an `endLine` attribute, so we could create one annotation for an entire block of lines. The difficulty is in kn...
py-cov-action/python-coverage-comment-action
diff --git a/tests/conftest.py b/tests/conftest.py index 5838325..9399d5b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -245,7 +245,8 @@ def diff_coverage_obj(): pathlib.Path("codebase/code.py"): coverage_module.FileDiffCoverage( path=pathlib.Path("codebase/code.py"), ...
[ "tests/integration/test_github.py::test_is_default_branch[refs/heads/main-True]", "tests/integration/test_github.py::test_is_default_branch[refs/heads/other-False]", "tests/integration/test_github.py::test_is_public[private-False]", "tests/integration/test_github.py::test_is_public[internal-False]", "tests/...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
44d449df787dd90b75a65b959d4de9497996500b
2024-12-19 20:56:56
docker.io/swerebenchv2/narwhals-dev-narwhals:1625-44d449d
narwhals-dev__narwhals-1625
Method: Expr.is_nan(self) Location: narwhals/expr.py Inputs: None – called on an Expr object representing a column or series. Outputs: Expr – a new expression that evaluates to a boolean mask where each element is True if the original value is NaN, otherwise False (or null for non‑numeric nullable types). Descripti...
python
MIT
diff --git a/docs/api-reference/expr.md b/docs/api-reference/expr.md index fef26d1e..299ab2d4 100644 --- a/docs/api-reference/expr.md +++ b/docs/api-reference/expr.md @@ -32,6 +32,7 @@ - is_first_distinct - is_in - is_last_distinct + - is_nan - is_null - is_unique ...
feat: add is_nan expression & series method - add support for pandas, arrow, dask - add to docs - add tests <!-- # 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 t...
feat: is_nan Looks like this would be useful to Tubular: https://github.com/lvgig/tubular/pull/349#discussion_r1884006320 There would need to be a caveat in the docstring about how pandas doesn't distinguish between nan and null but other libraries typically do This requires some attention to check that we get su...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/dt/datetime_attributes_test.py b/tests/expr_and_series/dt/datetime_attributes_test.py index 0235920e..ad5f8dc3 100644 --- a/tests/expr_and_series/dt/datetime_attributes_test.py +++ b/tests/expr_and_series/dt/datetime_attributes_test.py @@ -32,6 +32,7 @@ data = { ("microsecond...
[ "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_attributes_series[pandas[nullable]-weekday-expected11]", "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_attributes[polars[eager]-weekday-expected11]", "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_a...
[ "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_attributes_series[pandas[pyarrow]-day-expected3]", "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_attributes[polars[lazy]-second-expected6]", "tests/expr_and_series/dt/datetime_attributes_test.py::test_datetime_chained_at...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A|B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/lvgig/tubular/pull/349#discussion...
d305d18eca496ecc3895c7ba7bbbf0d92c755be4
2022-06-16 20:58:37
docker.io/swerebenchv2/qiskit-qiskit-ibm-runtime:380-d305d18
qiskit__qiskit-ibm-runtime-380
Function: hms_to_seconds(hms: str) -> int Location: qiskit_ibm_runtime/utils/converters.py Inputs: - hms (str): a duration string containing hours, minutes, and/or seconds (e.g., "2h 30m 10s", "1h", "45m", "30s", "1h30m"). The string must be parsable by `dateutil.parser.parse`; unsupported units (days, weeks, etc.) ...
python
Apache-2.0
diff --git a/qiskit_ibm_runtime/estimator.py b/qiskit_ibm_runtime/estimator.py index 725ee320..1cc96e49 100644 --- a/qiskit_ibm_runtime/estimator.py +++ b/qiskit_ibm_runtime/estimator.py @@ -23,6 +23,7 @@ from .exceptions import IBMInputValueError from .ibm_backend import IBMBackend from .qiskit_runtime_service impor...
Add support to specify max_time for runtime session <!-- ⚠️ The pull request title should be short detailed and understandable for all. ⚠️ Also, please add a release note file using reno if the change needs to be documented in the release notes. ⚠️ If your pull request fixes an open issue, please link to the issu...
Session Budgeting: add a way for users to specify max_time a user wants to run a session **What is the expected feature or enhancement?** Add a way for users to specify `max_time` in seconds a user wants to run a session at the primitive level. Sampler: ``` with Sampler(...., max_time=1800) as sampler: ... ...
Qiskit/qiskit-ibm-runtime
diff --git a/test/unit/test_utils_converters.py b/test/unit/test_utils_converters.py new file mode 100644 index 00000000..e9948b93 --- /dev/null +++ b/test/unit/test_utils_converters.py @@ -0,0 +1,47 @@ +# This code is part of Qiskit. +# +# (C) Copyright IBM 2022. +# +# This code is licensed under the Apache License, V...
[ "test/unit/test_utils_converters.py::TestUtilsConverters::test_hms_to_seconds" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.9, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": [...
7fd3f4391ab7651df57edb9fa7ed543f2d5f17fa
2023-08-30 08:38:32
docker.io/swerebenchv2/pdm-project-pdm:2215-7fd3f43
pdm-project__pdm-2215
Method: MetaConvertError.__init__(self, errors: list[str], *, data: dict[str, Any], settings: dict[str, Any]) Location: pdm/formats/base.py – class MetaConvertError Inputs: - errors – list of error message strings collected during conversion. - data – partial metadata dictionary that has been successfully resolved bef...
python
MIT
diff --git a/news/2203.bugfix.md b/news/2203.bugfix.md new file mode 100644 index 00000000..6a6f855e --- /dev/null +++ b/news/2203.bugfix.md @@ -0,0 +1,1 @@ +Handle parsing errors when converting from poetry-style metadata. diff --git a/src/pdm/formats/__init__.py b/src/pdm/formats/__init__.py index 971f2d01..96e096ee ...
fix: Handle parsing errors when converting from poetry-style metadata Close #2203 Signed-off-by: Frost Ming <me@frostming.com> ## Pull Request Checklist - [ ] A news fragment is added in `news/` describing what is new. - [ ] Test cases added for changed code. ## Describe what you have changed in this PR.
Cannot install pgobject, Invalid specifier: '>=3.5.4|^4.2.0' - [x] I have searched the issue tracker and believe that this is not a duplicate. **Make sure you run commands with `-v` flag before pasting the output.** ## Steps to reproduce Install pygobject ```bash pdm add pygobject ``` ## Actual behavior ...
pdm-project/pdm
diff --git a/tests/fixtures/poetry-error.toml b/tests/fixtures/poetry-error.toml new file mode 100644 index 00000000..0e2bb6aa --- /dev/null +++ b/tests/fixtures/poetry-error.toml @@ -0,0 +1,14 @@ +[tool.poetry] +name = "test-poetry" +version = "0.1.0" +description = "" +authors = ["Frost Ming <me@frostming.com>"] +rea...
[ "tests/test_formats.py::test_convert_pipfile", "tests/test_formats.py::test_convert_requirements_file[True]", "tests/test_formats.py::test_convert_requirements_file[False]", "tests/test_formats.py::test_convert_requirements_file_without_name", "tests/test_formats.py::test_convert_poetry", "tests/test_form...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
da941204f992e7fbdd09a02e530089139dcc7d7d
2021-06-17 20:21:48
docker.io/swerebenchv2/mie-lab-trackintel:252-da94120
mie-lab__trackintel-252
Method: trackintel.analysis.labelling._check_categories(categories, allowed_categories) Location: trackintel/analysis/labelling.py Inputs: - **categories** – iterable (e.g., pandas Series) containing category labels to be validated. - **allowed_categories** – collection (set, list, or tuple) of strings that are...
python
MIT
diff --git a/docs/modules/analysis.rst b/docs/modules/analysis.rst index 49b95e5..9803348 100644 --- a/docs/modules/analysis.rst +++ b/docs/modules/analysis.rst @@ -4,12 +4,12 @@ Analysis The analysis module provides a variety of functions to analyze the mobility datasets computed by trackintel. -Label -===== +Lab...
ENH: Fix init.py and label module closes #242 - the imports of read functions (e.g., `from trackintel.io.file import read_positionfixes_csv`) in `trackintel/__init__.py` ensures we can directly call `ti.read_positionfixes_csv()` instead of going into the IO module (e.g., `ti.io.file.read_positionfixes_csv()`). I am ...
Remove wildcard imports from __init__.py files We should remove Wildcard imports from the \_\_init\_\_.py files. [Example from trackintel](https://github.com/mie-lab/trackintel/blob/master/trackintel/analysis/__init__.py) Reasons: [Official python documentation](https://docs.python.org/3/tutorial/modules.html) >...
mie-lab/trackintel
diff --git a/tests/analysis/test_label.py b/tests/analysis/test_label.py index fdceefd..01704eb 100644 --- a/tests/analysis/test_label.py +++ b/tests/analysis/test_label.py @@ -5,7 +5,7 @@ import pandas as pd import pytest import trackintel as ti -from trackintel.analysis.label import _check_categories +from tracki...
[ "tests/analysis/test_label.py::TestCreate_activity_flag::test_create_activity_flag", "tests/analysis/test_label.py::TestCreate_activity_flag::test_wrong_input_parameter", "tests/analysis/test_label.py::TestPredict_transport_mode::test_wrong_input_parameter", "tests/analysis/test_label.py::TestPredict_transpor...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.85, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/mie-lab/trackintel/blob/master/trac...
ca3966f57a34fa4a3c0b3eb1a90e3f1cc1951bf3
2024-09-19 18:55:58
docker.io/swerebenchv2/twisted-treq:400-ca3966f
twisted__treq-400
Method: MultipartParser.__init__(self, stream: IO[bytes], boundary: bytes, content_length: int = -1, disk_limit: int = 2**30, mem_limit: int = 2**20, memfile_limit: int = 2**18, buffer_size: int = 2**16, charset: str = "latin1") Location: src/treq/_multipart.py Inputs: *stream* – a binary file‑like object supporting ``...
python
custom-check-github
diff --git a/changelog.d/399.bugfix.rst b/changelog.d/399.bugfix.rst new file mode 100644 index 0000000..d5d2ec9 --- /dev/null +++ b/changelog.d/399.bugfix.rst @@ -0,0 +1,3 @@ +treq has vendored its dependency on the ``multipart`` library to avoid import +conflicts with ``python-multipart``; it should now be installabl...
vendor multipart until https://github.com/defnull/multipart/issues/53 is addressed this is an attempt at a minimally-invasive integration, modifying it just enough to get our lint to pass without changing too much about either the lint configuration or the vendored file. Fixes #399
`multipart` dependency conflicts with `python-multipart`, making impossible to install `treq` and `starlette` on the same system There are currently two multipart implementations on PyPI: [multipart](https://pypi.org/project/multipart/) and [python-multipart](https://pypi.org/project/python-multipart/). Both install th...
twisted/treq
diff --git a/src/treq/test/test_multipart.py b/src/treq/test/test_multipart.py index 999f1af..7b12300 100644 --- a/src/treq/test/test_multipart.py +++ b/src/treq/test/test_multipart.py @@ -5,7 +5,7 @@ from typing import cast, AnyStr from io import BytesIO -from multipart import MultipartParser # type: ignore +fro...
[ "src/treq/test/test_multipart.py::MultiPartProducerTestCase::test_bytesPassThrough", "src/treq/test/test_multipart.py::MultiPartProducerTestCase::test_defaultCooperator", "src/treq/test/test_multipart.py::MultiPartProducerTestCase::test_failOnUnknownParams", "src/treq/test/test_multipart.py::MultiPartProducer...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://pypi.org/project/multipart/", "https://pyp...
b3cd4988467b14c61d42eaae691ad2ab04923eff
2024-10-01 14:44:37
docker.io/swerebenchv2/celery-celery:9331-b3cd498
celery__celery-9331
Method: PersistentScheduler._create_schedule(self) Location: celery.beat.PersistentScheduler Inputs: self – the PersistentScheduler instance. No additional arguments. Outputs: None (returns None). May raise or handle exceptions internally. If a dbm.error (or KeyError, UnicodeDecodeError, TypeError) occurs while initial...
python
custom-check-github
diff --git a/celery/beat.py b/celery/beat.py index 9656493ec..86ad837f0 100644 --- a/celery/beat.py +++ b/celery/beat.py @@ -1,6 +1,7 @@ """The periodic task scheduler.""" import copy +import dbm import errno import heapq import os @@ -572,7 +573,7 @@ class PersistentScheduler(Scheduler): # new ...
Fix: Treat dbm.error as a corrupted schedule file *Note*: Before submitting this pull request, please review our [contributing guidelines](https://docs.celeryq.dev/en/main/contributing.html). ## Description <!-- Please describe your pull request. NOTE: All patches should be made against main, not a maintenanc...
Corrupted scheduler database Hello, I'm using celery in a django project in production env and sometimes, after a release PersistentScheduler become corrupted and i can't figure why. The last release it happen i updated celery from 4.1.0 to 4.1.1 and updated my CELERY_BEAT_SCHEDULE settings (adding two new beats)...
celery/celery
diff --git a/t/unit/app/test_beat.py b/t/unit/app/test_beat.py index a95e8e414..b81a11426 100644 --- a/t/unit/app/test_beat.py +++ b/t/unit/app/test_beat.py @@ -1,3 +1,4 @@ +import dbm import errno import sys from datetime import datetime, timedelta, timezone @@ -688,6 +689,25 @@ class test_PersistentScheduler: ...
[ "t/unit/app/test_beat.py::test_PersistentScheduler::test_create_schedule_corrupted_dbm_error" ]
[ "t/unit/app/test_beat.py::test_BeatLazyFunc::test_beat_lazy_func", "t/unit/app/test_beat.py::test_ScheduleEntry::test_next", "t/unit/app/test_beat.py::test_ScheduleEntry::test_is_due", "t/unit/app/test_beat.py::test_ScheduleEntry::test_repr", "t/unit/app/test_beat.py::test_ScheduleEntry::test_reduce", "t/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
da9f67da30b398b3665c3501015339278cfd3223
2025-07-15 16:40:26
docker.io/swerebenchv2/openmdao-openmdao:3566-da9f67d
openmdao__openmdao-3566
No new interfaces are introduced.
python
custom-check-github
diff --git a/openmdao/core/component.py b/openmdao/core/component.py index 77c692df9..6fb685fba 100644 --- a/openmdao/core/component.py +++ b/openmdao/core/component.py @@ -2489,7 +2489,7 @@ class Component(System): # Perform the FD here. approximation.compute_approximations(self, jac=...
fix for bug in check_totals for directional derivs - Issue #3565 ### Summary FD and analytic values were swapped in the compact_print output. Also updated 'calc val' and 'fd val' headers by adding '@ max viol' to them to emphasize that the value given is at the location where the maximum violation is found. ##...
Swapped rev and fd derivatives printed by check_totals when directional, compact_print=True? ### Description I was noticing that check totals seems to swap finite difference and reverse mode derivatives, I believe when compact_print and directional are both true. The example prints the following output with the latest...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_check_partials.py b/openmdao/core/tests/test_check_partials.py index 8eca31ae1..13e4458a9 100644 --- a/openmdao/core/tests/test_check_partials.py +++ b/openmdao/core/tests/test_check_partials.py @@ -1202,7 +1202,7 @@ class TestProblemCheckPartials(unittest.TestCase): str...
[ "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_check_partials_display_rev", "openmdao/core/tests/test_check_partials.py::TestCheckPartialsMultipleSteps::test_multi_fd_steps", "openmdao/core/tests/test_check_partials.py::TestCheckPartialsMultipleSteps::test_single_fd_step_fwd", "op...
[ "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_bug_local_method", "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_check_partials_show_only_incorrect", "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_check_partials_worst_subjac"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
88c5dc4e4f3b2f4b62ecb966c984e9344ced6176
2024-07-31 16:35:36
docker.io/swerebenchv2/cubed-dev-cubed:528-88c5dc4
cubed-dev__cubed-528
Function: flip(x, /, *, axis=None) Location: cubed.array_api.manipulation_functions.flip (exposed as cubed.flip) Inputs: - x – an Array API‑compatible array object. - axis – optional int, tuple of ints, or None. Axes to reverse; if None all axes are reversed. Values are validated against ``x.ndim``. Outputs: An arra...
python
Apache-2.0
diff --git a/api_status.md b/api_status.md index ae929c94..bc618839 100644 --- a/api_status.md +++ b/api_status.md @@ -59,7 +59,7 @@ This table shows which parts of the the [Array API](https://data-apis.org/array- | | `broadcast_to` | :white_check_mark: | | ...
Implement `flip` Fixes #114
Implement `flip` This can be implemented using indexing, although it needs a step size of -1, which is not currently implemented. See https://data-apis.org/array-api/latest/API_specification/generated/signatures.manipulation_functions.flip.html
cubed-dev/cubed
diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml index 813e667f..f41649a4 100644 --- a/.github/workflows/array-api-tests.yml +++ b/.github/workflows/array-api-tests.yml @@ -96,7 +96,6 @@ jobs: # not implemented array_api_tests/test_array_object.py::test_se...
[ "cubed/tests/test_array_api.py::test_flip[single-threaded-shape0-chunks0-None]", "cubed/tests/test_array_api.py::test_flip[single-threaded-shape1-chunks1-0]", "cubed/tests/test_array_api.py::test_flip[single-threaded-shape2-chunks2-None]", "cubed/tests/test_array_api.py::test_flip[single-threaded-shape3-chunk...
[ "cubed/tests/test_array_api.py::test_object_bool[single-threaded]", "cubed/tests/test_array_api.py::test_arange[single-threaded]", "cubed/tests/test_array_api.py::test_asarray[single-threaded]", "cubed/tests/test_array_api.py::test_ones[single-threaded]", "cubed/tests/test_array_api.py::test_ones_like[singl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://data-apis.org/array-api/latest/API_specificati...
380008389b32ca2b7de7c73f670a9eee1562004e
2024-10-13 20:47:53
docker.io/swerebenchv2/pallets-click:2788-3800083
pallets__click-2788
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 7bb0762..495eb2a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -51,6 +51,9 @@ Unreleased - Add ``ProgressBar(hidden: bool)`` to allow hiding the progressbar. :issue:`2609` - A ``UserWarning`` will be shown when multiple parameters attempt to use the same name. :is...
Added functionality to set flag_value correctly when using envvar ```python @click.option('--upper', flag_value='upper', envvar='UPPER') def cmd(upper): click.echo(upper) return upper ``` ### Default use The expectation of the above code when running `python cmd.py --upper` is to print to stdout `upper...
`flag_value` is not taken into account with `envvar` When using the ~~--debug option~~ `DEBUG` environment variable in the sample command, the debug value is not correctly set (`flag_value`). It is expected to be either `logging.DEBUG` or `None`, but it seems to be getting the integer value directly from the environmen...
pallets/click
diff --git a/tests/test_arguments.py b/tests/test_arguments.py index 825bcc4..5dc56a4 100644 --- a/tests/test_arguments.py +++ b/tests/test_arguments.py @@ -198,6 +198,19 @@ def test_nargs_envvar(runner, nargs, value, expect): assert result.return_value == expect +def test_envvar_flag_value(runner): + @...
[ "tests/test_arguments.py::test_envvar_flag_value" ]
[ "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[opts0]", "tests/test_arguments.py::test_nargs_tup_composite[opts1]", "tests/test_arguments.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": [], "intent_completeness": "complete", "pr_categories":...
f0ae6438c637fcfb9b18bdd943e996b2b1cca7f2
2025-01-28 08:31:51
docker.io/swerebenchv2/aristanetworks-anta:1021-f0ae643
aristanetworks__anta-1021
No new interfaces are introduced.
python
Apache-2.0
diff --git a/anta/custom_types.py b/anta/custom_types.py index 8ca3c1c2..67646f6e 100644 --- a/anta/custom_types.py +++ b/anta/custom_types.py @@ -23,16 +23,6 @@ REGEX_TYPE_PORTCHANNEL = r"^Port-Channel[0-9]{1,6}$" REGEXP_TYPE_HOSTNAME = r"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9...
refactor(anta): Update MultiProtocolCaps custom type to make it more restrictive # Description Updated MultiProtocolCaps custom type to make it more restrictive Fixes #1015 #### Note: Added codespell ignore in the custom_types.py file, to avoid the spelling check in regex pattern # Checklist: - [x] My code fo...
MultiProtocolCaps custom type should be more restrictive Even though `MultiProtocolCaps` has support for abbreviations (IPv4 Unicast, etc.), it supports any string today: ```yaml anta.tests.routing: bgp: - VerifyBGPPeerMPCaps: bgp_peers: - peer_address: 10.1.254.21 vrf: default ...
aristanetworks/anta
diff --git a/anta/tests/routing/bgp.py b/anta/tests/routing/bgp.py index bffeda7e..aeab1e47 100644 --- a/anta/tests/routing/bgp.py +++ b/anta/tests/routing/bgp.py @@ -550,7 +550,8 @@ class VerifyBGPPeerMPCaps(AntaTest): vrf: default strict: False capabilities: - ...
[ "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerMPCaps-success]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerMPCaps-failure-incorrect-capabilities]", "tests/units/test_custom_types.py::test_bgp_multiprotocol_capabilities_abbreviati...
[ "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.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
bee273e9a5b825ff410e3405eb41a339814813d1
2022-10-08 19:58:49
docker.io/swerebenchv2/python-semver-python-semver:365-bee273e
python-semver__python-semver-365
Method: Version.bump_prerelease(self, token: Optional[str] = "rc") Location: src/semver/version.py Inputs: token – optional string; empty string removes any prefix and starts a numeric prerelease (e.g., “1”), None uses the default “rc” prefix; if the version already has a prerelease component the argument is ignored. O...
python
BSD-3-Clause
diff --git a/changelog.d/344.bugfix.rst b/changelog.d/344.bugfix.rst new file mode 100644 index 0000000..9daa9e7 --- /dev/null +++ b/changelog.d/344.bugfix.rst @@ -0,0 +1,5 @@ +Allow empty string, a string with a prefix, or ``None`` +as token in +:meth:`Version.bump_build <semver.Version.bump_build>` and +:meth:`Versio...
Fix #344 Allow empty string for bump method The methods `.bump_prerelease('')` and `.bump_build('')` generates a prerelease and build part without the token.
Unable to create pre-release with an empty token <!-- Remove the comments below and adapt it to your needs --> # Situation Unable to create pre-release with an empty token. # To Reproduce Run this script: ```python ver = semver.VersionInfo.parse('1.0.0') ver = ver.bump_prerelease(''); print(ver) # 1....
python-semver/python-semver
diff --git a/tests/test_bump.py b/tests/test_bump.py index c28e190..34e0b2a 100644 --- a/tests/test_bump.py +++ b/tests/test_bump.py @@ -66,6 +66,30 @@ def test_should_versioninfo_bump_multiple(): assert v.bump_prerelease().bump_build().bump_build().bump_prerelease() == expected +def test_should_versioninfo_bu...
[ "tests/test_bump.py::test_should_versioninfo_bump_prerelease_with_empty_str" ]
[ "tests/test_bump.py::test_should_bump_major", "tests/test_bump.py::test_should_bump_minor", "tests/test_bump.py::test_should_bump_patch", "tests/test_bump.py::test_should_versioninfo_bump_major_and_minor", "tests/test_bump.py::test_should_versioninfo_bump_minor_and_patch", "tests/test_bump.py::test_should...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [ "https://semver.org/#spec-item-9" ], "intent_co...
d395e3803982cec4a525d55e476c653189290009
2020-05-16 22:45:41
docker.io/swerebenchv2/wtforms-wtforms:605-d395e38
wtforms__wtforms-605
Method: SelectMultipleField.iter_choices(self) Location: src/wtforms/fields/core.py Inputs: None (relies on `self.choices`, which may be a list/tuple of (value, label) pairs, a simple iterable of values, an empty list, or `None`). Outputs: Yields tuples `(value, label, selected)` where `selected` is a bool indicating i...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index a7ecb68..ad5b983 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,8 @@ Unreleased - :class:`~fields.SelectField`, :class:`~fields.SelectMultipleField` and :class:`~fields.RadioField` *choices* parameter can be a callable. :pr:`608` +- Choices shortcut f...
Choices shortcut for SelectMultipleField Fixes #603 Port of #526 for `SelectMultipleField`.
Shortcut for SelectMultipleField choices #526 brought a shortcut for `SelectField` choices, but this does not work with `SelectMultipleField`. ```python >>> import wtforms >>> class F(wtforms.Form): ... single = wtforms.SelectField(choices=["foo", "bar", "baz"]) ... multiple = wtforms.SelectMultipleField...
wtforms/wtforms
diff --git a/tests/test_fields.py b/tests/test_fields.py index 965b951..15fb5e1 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -486,6 +486,19 @@ class TestSelectMultipleField: '<option selected value="bar">bar</option>', ] + def test_choice_shortcut(self): + F = make_f...
[ "tests/test_fields.py::TestSelectMultipleField::test_choice_shortcut", "tests/test_fields.py::TestSelectMultipleField::test_empty_choice[None]" ]
[ "tests/test_fields.py::TestDefaults::test", "tests/test_fields.py::TestLabel::test", "tests/test_fields.py::TestLabel::test_auto_label", "tests/test_fields.py::TestLabel::test_override_for", "tests/test_fields.py::TestLabel::test_escaped_label_text", "tests/test_fields.py::TestFlags::test_existing_values"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
0d945d1be08f2ba8475513216a66411f053c3217
2024-01-28 16:32:04
docker.io/swerebenchv2/aio-libs-aiohttp:8076-0d945d1
aio-libs__aiohttp-8076
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/3551.misc b/CHANGES/3551.misc new file mode 100644 index 000000000..63965c148 --- /dev/null +++ b/CHANGES/3551.misc @@ -0,0 +1,1 @@ +Replace all tmpdir fixtures with tmp_path in test suite. diff --git a/CHANGES/8074.bugfix.rst b/CHANGES/8074.bugfix.rst new file mode 100644 index 000000000..16c71445...
[PR #3955/8960063e backport][3.9] Replace all tmpdir fixtures with tmp_path (#3551) **This is a backport of PR #3955 as merged into master (8960063ef4137d6c547a687a45ed55b943e9b8d1).** tmp_path is the replacement fixture in pytest for tmpdir; tmp_path uses the builtin pathlib.Path class. As it says on the tin, this...
Replace tmpdir fixture with tmp_path in tests I always stumble on `py.path` methods. A new `pytest` supports `tmp_path` fixture https://docs.pytest.org/en/latest/tmpdir.html#the-tmp-path-factory-fixture to work with `pathlib.Path`. The issue is easy and waits for a champion.
aio-libs/aiohttp
diff --git a/tests/test_client_request.py b/tests/test_client_request.py index 6521b70ad..f8107ffad 100644 --- a/tests/test_client_request.py +++ b/tests/test_client_request.py @@ -762,8 +762,8 @@ async def test_pass_falsy_data(loop) -> None: await req.close() -async def test_pass_falsy_data_file(loop, tmpdir)...
[ "tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-/]", "tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-?]", "tests/test_http_parser.py::test_bad_headers[py-parser-pyloop-Content-Length:", "tests/test_http_parser.py::test_http_request_bad_status_line_number[py-parser-pyloop-ut...
[ "tests/test_client_request.py::test_method1[pyloop]", "tests/test_client_request.py::test_method2[pyloop]", "tests/test_client_request.py::test_method3[pyloop]", "tests/test_client_request.py::test_method_invalid[pyloop]", "tests/test_client_request.py::test_version_1_0[pyloop]", "tests/test_client_reques...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.pytest.org/en/latest/tmpdir.html#the-tmp-pa...
b248ebacce902433b9be05cb110fe4943e3d613c
2024-10-10 16:07:23
docker.io/swerebenchv2/pymc-devs-pytensor:1028-b248eba
pymc-devs__pytensor-1028
Method: Cholesky.inplace_on_inputs(self, allowed_inplace_inputs: list[int]) -> Op Location: pytensor/tensor/slinalg.py, class Cholesky Inputs: allowed_inplace_inputs – list of input indices that may be overwritten; must be non‑empty to enable in‑place behavior. Outputs: Returns an Op identical to the original Cholesky ...
python
custom-check-github
diff --git a/pytensor/graph/op.py b/pytensor/graph/op.py index 160a65dd7..684add630 100644 --- a/pytensor/graph/op.py +++ b/pytensor/graph/op.py @@ -583,6 +583,12 @@ class Op(MetaObject): ) return self.make_py_thunk(node, storage_map, compute_map, no_recycling) + def inplace_on_inputs(self, allow...
Implement destructive in-place rewrites for Cholesky and Solve Ops <!-- !! 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 --> ## Descri...
ENH: Add destructive rewrites for Cholesky `Op` ### Before _No response_ ### After _No response_ ### Context for the issue: Currently, the Cholesky `Op` does not act in-place. This is a known problem since the Theano days (see comment [here](https://github.com/pymc-devs/pytensor/blob/9df55cc6c507ea5d78f88166664ab1...
pymc-devs/pytensor
diff --git a/tests/tensor/test_blockwise.py b/tests/tensor/test_blockwise.py index 43f9b77f4..f6783cf94 100644 --- a/tests/tensor/test_blockwise.py +++ b/tests/tensor/test_blockwise.py @@ -3,10 +3,11 @@ from itertools import product import numpy as np import pytest +import scipy.linalg import pytensor -from pyte...
[ "tests/tensor/test_blockwise.py::TestInplace::test_cholesky[False]", "tests/tensor/test_blockwise.py::TestInplace::test_cholesky[True]", "tests/tensor/test_blockwise.py::TestInplace::test_solve[solve-False-False]", "tests/tensor/test_blockwise.py::TestInplace::test_solve[solve-False-True]", "tests/tensor/te...
[ "tests/tensor/test_blockwise.py::test_vectorize_blockwise", "tests/tensor/test_blockwise.py::test_vectorize_node_fallback_unsupported_type", "tests/tensor/test_blockwise.py::test_runtime_broadcast[FAST_COMPILE]", "tests/tensor/test_blockwise.py::test_runtime_broadcast[FAST_RUN]", "tests/tensor/test_blockwis...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/pymc-devs/pytensor/blob/9df55cc6c507e...
374d5f5c3a5dff429c14d9dce2e709ac52527f3e
2024-08-27 20:37:47
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3629-374d5f5
aws-cloudformation__cfn-lint-3629
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py index 373354262..4e81a48d3 100644 --- a/src/cfnlint/template/transforms/_language_extensions.py +++ b/src/cfnlint/template/transforms/_language_extensions.py @@ -339,7 +339,7 @@ class _ForEachV...
Add params to findinmap value *Issue #, if available:* fix #3613 *Description of changes:* - Add params to findinmap value By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E3019 False Positive for Primary Identifiers when using Fn::ForEach and Pseudo value from a Mapping ### CloudFormation Lint Version 1.10.3 ### What operating system are you using? Mac ### Describe the bug cnf-lint pick up a default value when using FindInMap combined with Pseudo Values `!Ref 'AWS::Accoun...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/template/transforms/test_language_extensions.py b/test/unit/module/template/transforms/test_language_extensions.py index 7c9e31d26..da4fa1871 100644 --- a/test/unit/module/template/transforms/test_language_extensions.py +++ b/test/unit/module/template/transforms/test_language_extensions.py...
[ "test/unit/module/template/transforms/test_language_extensions.py::TestTransformValues::test_transform" ]
[ "test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_collection_type", "test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_identifier_type", "test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_output_type", "test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
b30758205211c3af4ac6a41601aee17f6aa45f64
2023-05-20 15:54:14
docker.io/swerebenchv2/maxcountryman-flask-login:746-b307582
maxcountryman__flask-login-746
No new interfaces are introduced.
python
MIT
diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 4f6ac98..c801e59 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -7,7 +7,7 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: ...
fix: avoid DeprecationWarning 'werkzeug.urls.url_decode' is deprecated close #744
address deprecations from Werkzeug 2.3 **Describe the bug** https://github.com/maxcountryman/flask-login/blob/b30758205211c3af4ac6a41601aee17f6aa45f64/src/flask_login/utils.py#L15 is deprecated and will be removed in Werkzeug 2.4 ``` /.venv/lib/python3.9/site-packages/flask_login/utils.py:130: DeprecationWarning: ...
maxcountryman/flask-login
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2c6f41c..341cee6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,7 +21,7 @@ jobs: - {name: 'PyPy', python: 'pypy-3.8', tox: pypy38} - {name: 'Minimum Versions', python: '3.9', tox: py...
[ "tests/test_login.py::AboutTestCase::test_have_about_data", "tests/test_login.py::StaticTestCase::test_static_loads_anonymous", "tests/test_login.py::StaticTestCase::test_static_loads_without_accessing_session", "tests/test_login.py::InitializationTestCase::test_class_init", "tests/test_login.py::Initializa...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/maxcountryman/flask-login/blob/b30758...
9a304ddfc32e8b5603549370b7256705c61cefa4
2021-12-30 00:50:22
docker.io/swerebenchv2/hypothesisworks-hypothesis:3203-9a304dd
hypothesisworks__hypothesis-3203
Method: LRUReusedCache.pin(self, key) Location: hypothesis/internal/cache.py (class LRUReusedCache) Inputs: key – a hashable object representing a cache entry; may already be present or already dropped. Outputs: None (returns None). If the key is present it is marked as pinned; if the key is absent the method silently ...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..6f0a50f67 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,5 @@ +RELEASE_TYPE: patch + +This patch fixes :issue:`3169`, an extremely rare bug which would +trigger if an internal least-recently-re...
Fix LR-reused cache bug Fixes #3169.
KeyError thrown when running tests Best I can tell, this exception is being thrown from `hypothesis` itself, and not from my code. ```bash ❯ time poetry run ./compare.py ⏎ You can add @seed(292076761980949346...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_cache_implementation.py b/hypothesis-python/tests/cover/test_cache_implementation.py index 6b1db19e8..9360f0a70 100644 --- a/hypothesis-python/tests/cover/test_cache_implementation.py +++ b/hypothesis-python/tests/cover/test_cache_implementation.py @@ -316,3 +316,19 @@ de...
[ "hypothesis-python/tests/cover/test_cache_implementation.py::test_pin_and_unpin_are_noops_if_dropped" ]
[ "hypothesis-python/tests/cover/test_cache_implementation.py::test_behaves_like_a_dict_with_losses[LRUCache]", "hypothesis-python/tests/cover/test_cache_implementation.py::test_behaves_like_a_dict_with_losses[LFUCache]", "hypothesis-python/tests/cover/test_cache_implementation.py::test_behaves_like_a_dict_with_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": "easy", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/issues/316...
77a0150ffb5121086d74b0f9a10ec26781162529
2025-02-28 11:52:43
docker.io/swerebenchv2/narwhals-dev-narwhals:2114-77a0150
narwhals-dev__narwhals-2114
Method: BaseFrame.filter(self, *predicates, **constraints) Location: narwhals/dataframe.py (class BaseFrame) Inputs: • *predicates – zero or more boolean expressions (Expr) used for row‑wise filtering. • **constraints – column‑name keyword arguments where each value is either a literal (int, str, etc.) or an Expr; inte...
python
MIT
diff --git a/docs/backcompat.md b/docs/backcompat.md index 3c20c7e4..e1ffa329 100644 --- a/docs/backcompat.md +++ b/docs/backcompat.md @@ -113,6 +113,8 @@ before making any change. The following are differences between the main Narwhals namespace and `narwhals.stable.v1`: +- Since Narwhals 1.29.0, `LazyFrame.gathe...
fix: Allow exprs in `.filter` constraints ## What type of PR is this? (check all applicable) - [ ] 💾 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] 🔧 Optimization - [ ] 📝 Documentation - [ ] ✅ Test - [ ] 🐳 Other ## Related issues - Closes #2112 ## Checklist - [x] Code follows style guide (ruf...
bug: `df.filter(c=nw.col('a'))` gives incorrect result for pandas and unclear error message for duckdb the keywords-syntax in `filter` is meant to be used with literals, not with expressions. e.g. `filter(c=3)` is shorthand for `filter(nw.col('c')==3)` Can we produce an informative error message, with a hint, if someo...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/arg_true_test.py b/tests/expr_and_series/arg_true_test.py index ec7d1d88..35c6b9bd 100644 --- a/tests/expr_and_series/arg_true_test.py +++ b/tests/expr_and_series/arg_true_test.py @@ -14,7 +14,9 @@ def test_arg_true(constructor_eager: ConstructorEager) -> None: expected = {"a": [...
[ "tests/frame/filter_test.py::test_filter_with_constrains[polars[eager]]", "tests/frame/filter_test.py::test_filter_with_constrains[pandas[pyarrow]]", "tests/frame/filter_test.py::test_filter_with_constrains[pyarrow]", "tests/frame/filter_test.py::test_filter_with_constrains[pandas]", "tests/frame/filter_tes...
[ "tests/stable_api_test.py::test_renamed_taxicab_norm_dataframe[polars[eager]]", "tests/stable_api_test.py::test_renamed_taxicab_norm_dataframe[pandas[nullable]]", "tests/stable_api_test.py::test_series_docstrings", "tests/stable_api_test.py::test_renamed_taxicab_norm[pandas[nullable]]", "tests/stable_api_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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
470893884242de97a6e24265af0bd65a4e113ea1
2025-02-16 19:18:50
docker.io/swerebenchv2/ethereum-web3.py:3620-4708938
ethereum__web3.py-3620
Method: WebSocketProvider.__init__(self, endpoint_uri: Optional[Union[URI, str]] = None, websocket_kwargs: Optional[Dict[str, Any]] = None, use_text_frames: bool = False, **kwargs: Any) Location: web3/providers/persistent/websocket.py → class WebSocketProvider(PersistentConnectionProvider) Inputs: - **endpoint_uri** – ...
python
MIT
diff --git a/docs/providers.rst b/docs/providers.rst index 97f318ed..9968189b 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -291,7 +291,7 @@ AsyncIPCProvider WebSocketProvider +++++++++++++++++ -.. py:class:: web3.providers.persistent.WebSocketProvider(endpoint_uri: str, websocket_kwargs: Dict[str, An...
Add flag to always convert websocket payloads to text frames ### What was wrong? Some Websocket RPC platforms do not support binary frames, which is the internal default for communication, leading to connections that did not return data. Closes #3619 ### How was it fixed? Unfortunately this cannot be autom...
Some Websocket endpoints don't handle binary communication ### What happened? During debugging of issues of websocket connections between Ankr (which works) and NodeReal (which doesn't) with the [Subscriptions Example](https://web3py.readthedocs.io/en/latest/subscriptions.html#an-example), I noticed in the debug logs ...
ethereum/web3.py
diff --git a/tests/core/providers/test_websocket_provider.py b/tests/core/providers/test_websocket_provider.py index 962920e4..bf18d10d 100644 --- a/tests/core/providers/test_websocket_provider.py +++ b/tests/core/providers/test_websocket_provider.py @@ -55,6 +55,14 @@ class WSException(Exception): pass +GET_B...
[ "tests/core/providers/test_websocket_provider.py::test_websocket_provider_default_values", "tests/core/providers/test_websocket_provider.py::test_websocket_provider_use_text_frames[False-{\"id\":", "tests/core/providers/test_websocket_provider.py::test_websocket_provider_use_text_frames[True-{\"id\":" ]
[ "tests/core/providers/test_websocket_provider.py::test_get_endpoint_uri_or_ipc_path_returns_endpoint_uri", "tests/core/providers/test_websocket_provider.py::test_disconnect_cleanup", "tests/core/providers/test_websocket_provider.py::test_async_make_request_returns_desired_response", "tests/core/providers/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://web3py.readthedocs.io/en/latest/subscriptions....
52e0c0d4a72832f1a689cd4af048d8535d8e2fdb
2022-05-15 02:52:21
docker.io/swerebenchv2/hypothesisworks-hypothesis:3343-52e0c0d
hypothesisworks__hypothesis-3343
Function: get_signature(target, *, follow_wrapped=True) Location: hypothesis/internal/reflection.py Inputs: - **target**: a callable, class, method, or any object that may define a ``__signature__`` attribute. - **follow_wrapped** (optional): ``bool`` flag (default ``True``) controlling whether to unwrap ``functools....
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..3d58d455a --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch improves some error messages for custom signatures +containing invalid parameter names (:issue:`...
Check for keywords in param names Closes #3317, following https://github.com/python/cpython/pull/92065. Plus a few tiny internal cleanups, deleting unused attributes and fixing type comments.
Add an explicit error message if a function signature uses a keyword for an argument name There are some fancy cases where callables will have dynamically-assigned `__signature__` attributes, for example in Pydantic. The *problem* is that `inspect.Parameter` only checks whether the name is an identifier (which ensures...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_reflection.py b/hypothesis-python/tests/cover/test_reflection.py index 0f6cacbd6..cd4d17123 100644 --- a/hypothesis-python/tests/cover/test_reflection.py +++ b/hypothesis-python/tests/cover/test_reflection.py @@ -12,7 +12,7 @@ import sys from copy import deepcopy from d...
[ "hypothesis-python/tests/cover/test_reflection.py::test_error_on_keyword_parameter_name" ]
[ "hypothesis-python/tests/cover/test_reflection.py::test_simple_conversion", "hypothesis-python/tests/cover/test_reflection.py::test_populates_defaults", "hypothesis-python/tests/cover/test_reflection.py::test_leaves_unknown_kwargs_in_dict", "hypothesis-python/tests/cover/test_reflection.py::test_errors_on_bad...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/samuelcolvin/pydantic/pull/4012", ...
99303e9a827b76bdfea80afe683a46e1daed0826
2025-05-23 15:40:34
docker.io/swerebenchv2/pennylaneai-pennylane:7474-99303e9
pennylaneai__pennylane-7474
Method: ControlledQubitUnitary.__init__(self, matrix: array_like, wires: Sequence[int]) Location: pennylane.ops.op_math.ControlledQubitUnitary Inputs: - **matrix** – a square unitary matrix of size 2ⁿ×2ⁿ (n = len(wires)‑1) that will be applied when the control qubit(s) are in the |1⟩ state. - **wires** – list of int...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 0ccbbe2e6..85a249e20 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -437,6 +437,11 @@ <h3>Breaking changes 💔</h3> +* A new decomposition for two-qubit unitaries was implemented in `two_qubit_decompo...
New decomposition of `QubitUnitary` based on Cartan decomposition **Context:** See bug report. This decomposition has been a bit fragile through time. **Description of the Change:** New implementation for 3CNOT case. **Benefits:** Correct code. **Possible Drawbacks:** N/A **Related GitHub Issues:** Fix...
[BUG] Decomposition of QubitUnitary on two wires is incorrect ### Expected behavior The `two_qubit_decomposition` is correrct. ### Actual behavior It is, for the most part, but here's a random matrix that it fails on: ```python import pennylane as qml import numpy as np from pennylane.ops.op_math.decompositions.uni...
PennyLaneAI/pennylane
diff --git a/tests/ops/op_math/test_controlled_decompositions.py b/tests/ops/op_math/test_controlled_decompositions.py index ddb51ede9..0793d0740 100644 --- a/tests/ops/op_math/test_controlled_decompositions.py +++ b/tests/ops/op_math/test_controlled_decompositions.py @@ -1041,21 +1041,3 @@ class TestMCXDecomposition: ...
[ "tests/ops/op_math/test_decompositions.py::TestTwoQubitUnitaryDecomposition::test_two_qubit_decomposition_3_cnots[U7-wires0]", "tests/ops/op_math/test_decompositions.py::TestTwoQubitUnitaryDecomposition::test_two_qubit_decomposition_3_cnots[U7-wires1]", "tests/ops/op_math/test_decompositions.py::TestTwoQubitUni...
[ "tests/ops/op_math/test_controlled_decompositions.py::TestControlledDecompositionZYZ::test_invalid_op_error", "tests/ops/op_math/test_controlled_decompositions.py::TestControlledDecompositionZYZ::test_decomposition_zyz[control_wires0-op0]", "tests/ops/op_math/test_controlled_decompositions.py::TestControlledDec...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/PennyLaneAI/pennylane/issues/5308",...
229004d3405fd21b7950430f97857683c6b84765
2020-02-19 19:41:21
docker.io/swerebenchv2/sebrut-pygrocy:64-229004d
sebrut__pygrocy-64
Method: MissingProductResponse.__init__(self, parsed_json: dict) Location: pygrocy/grocy_api_client.py Inputs: parsed_json – a dict obtained from JSON containing the keys **'id'**, **'name'**, **'amount_missing'**, **'is_partly_in_stock'**. Outputs: None (initializes the instance). Description: Constructs a MissingProd...
python
MIT
diff --git a/README.md b/README.md index 1fe7a78..d563fbf 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ for entry in grocy.stock(): print("{} in stock for product id {}".format(entry.product_id, entry.amount)) ``` -## Dev testing +## Development testing You need a Grocy instance running in demo mode...
Add Missing Products Class ## Description Added new class for missing products. Changed Products constructor to pass in generic object to be parsed. Added unit test **Related issue (if applicable):** fixes #62 ## Checklist - [x] The code change is tested and works locally. - [x] tests pass. **Your PR ...
Missing data in CurrentVolatilStockResponse._missing_products Hi! First of all many thanks for pygrocy, I have been using it for a while and it helped me a lot! I think I got a parse error when I try to get the missing products using `grocy.missing_products()` If I check the JSON I See: ``` "missing_produc...
SebRut/pygrocy
diff --git a/test/test_missingProductResponse.py b/test/test_missingProductResponse.py new file mode 100644 index 0000000..345009a --- /dev/null +++ b/test/test_missingProductResponse.py @@ -0,0 +1,24 @@ +import json +from unittest import TestCase + +from pygrocy.grocy_api_client import MissingProductResponse + + +clas...
[ "test/test_missingProductResponse.py::TestMissingProductResponse::test_parse_partly_in_stock_false", "test/test_missingProductResponse.py::TestMissingProductResponse::test_parse_partly_in_stock_true" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/SebRut/pygrocy/blob/47dbb07f9340350...
10cf48dc767eec911096dcc37a22156fd12ccadd
2022-01-04 21:03:44
docker.io/swerebenchv2/ethereum-web3.py:2288-10cf48d
ethereum__web3.py-2288
Method: Web3.__init__(self, provider=None, middlewares=None, modules=None, external_modules=None, ens=empty) Location: class Web3 (web3/main.py) Inputs: - provider (optional BaseProvider) – the RPC provider. - middlewares (optional sequence) – middleware pipeline. - modules (optional dict) – mapping module name → eith...
python
MIT
diff --git a/docs/providers.rst b/docs/providers.rst index 8e9fff84..9cdcd190 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -387,7 +387,7 @@ AsyncHTTPProvider >>> from web3.net import AsyncNet >>> w3 = Web3(AsyncHTTPProvider("http://127.0.0.1:8545"), - ... modules={'et...
Add support for external modules to web3 instance ### What was wrong? - We don't have an easy way to attach modules to the `Web3` instance. This will help users customize their web3 experience but can also help to support things like attaching layer 2 modules from a separate library or any other modules that can pro...
Difficult to attach one extra module to a web3 instance.. ### What was wrong? There is no simple way to include a custom module in a web3 instance while still also including all of the default modules. ### How can it be fixed? Ideally it should be a one-liner ```python class Foo(ModuleV2): ... w3...
ethereum/web3.py
diff --git a/tests/core/conftest.py b/tests/core/conftest.py new file mode 100644 index 00000000..c2b9aaff --- /dev/null +++ b/tests/core/conftest.py @@ -0,0 +1,41 @@ +import pytest + +from web3.module import ( + Module, +) + + +@pytest.fixture(scope='module') +def module1(): + class Module1(Module): + a =...
[ "tests/core/method-class/test_result_formatters.py::test_result_formatter", "tests/core/utilities/test_attach_modules.py::test_attach_modules_with_existing_modules" ]
[ "tests/core/method-class/test_method.py::test_method_accepts_callable_for_selector", "tests/core/method-class/test_method.py::test_method_selector_fn_accepts_str", "tests/core/method-class/test_method.py::test_method_selector_fn_invalid_arg", "tests/core/method-class/test_method.py::test_get_formatters_defaul...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.85, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
fcaafa1eba3ff85c6f98e6ec4983e06f0c8236f2
2021-12-27 18:40:47
docker.io/swerebenchv2/theacodes-nox:543-fcaafa1
theacodes__nox-543
Method: Session.chdir(self, dir: Union[str, os.PathLike]) -> _WorkingDirContext Location: nox/sessions.py Inputs: - **dir**: a path (string or os.PathLike) indicating the directory to change to. Must be a valid existing directory. Outputs: Returns an instance of an internal context manager class `_WorkingDirContext` t...
python
Apache-2.0
diff --git a/nox/sessions.py b/nox/sessions.py index 043a9e2..ff4b30a 100644 --- a/nox/sessions.py +++ b/nox/sessions.py @@ -21,6 +21,7 @@ import re import sys import unicodedata import warnings +from types import TracebackType from typing import ( Any, Callable, @@ -31,6 +32,7 @@ from typing import ( ...
Make Session.chdir() a context manager Closes #512. Also see the discussion here: #513. I'm a bit unsure if the changes to the docs are sufficient. Please suggest changes as you see fit.
Run commands from within a specific directory **How would this feature be useful?** Since many commands have specific usages of the current working directory, running commands from within a specific directory would smooth integrating nox is existing projects. **Describe the solution you'd like** ```python ...
theacodes/nox
diff --git a/tests/test_sessions.py b/tests/test_sessions.py index 4f31a82..262d9f3 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -164,6 +164,19 @@ class TestSession: assert os.getcwd() == cdto os.chdir(current_cwd) + def test_chdir_ctx(self, tmpdir): + cdto = str(tmp...
[ "tests/test_sessions.py::TestSession::test_chdir_ctx" ]
[ "tests/test_sessions.py::test__normalize_path", "tests/test_sessions.py::test__normalize_path_hash", "tests/test_sessions.py::test__normalize_path_give_up", "tests/test_sessions.py::TestSession::test_create_tmp", "tests/test_sessions.py::TestSession::test_create_tmp_twice", "tests/test_sessions.py::TestSe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
246defd63f4ea1f911d31a9c203e4c15876a15a0
2018-05-16 17:25:11
docker.io/swerebenchv2/maniacallabs-bibliopixel:805-246defd
maniacallabs__bibliopixel-805
No new interfaces are introduced.
python
MIT
diff --git a/bibliopixel/drivers/network_receiver.py b/bibliopixel/drivers/network_receiver.py index 7505644..dd5b6be 100644 --- a/bibliopixel/drivers/network_receiver.py +++ b/bibliopixel/drivers/network_receiver.py @@ -1,14 +1,8 @@ -import threading -import os +import os, threading -try: - import SocketServer -e...
Give "animation" section a default (fix #786) * Make sure that the "datatype" field always overrides the "typename" field in any type dictionary
`"animation"` section can have a default: `"animation"`. Just a tiny enhancement. We already have [two projects](https://github.com/ManiacalLabs/BiblioPixel/blob/master/test/bibliopixel/control/artnet_test.py#L74-L119) in our unit tests that have no animation, because the control is doing all the work and now Adam2 ...
ManiacalLabs/BiblioPixel
diff --git a/test/bibliopixel/project/bad_project_test.py b/test/bibliopixel/project/bad_project_test.py index b70e6a4..ae3a1dc 100644 --- a/test/bibliopixel/project/bad_project_test.py +++ b/test/bibliopixel/project/bad_project_test.py @@ -6,7 +6,6 @@ from . make import make PYTHON_FILE = 'driver = {"a": "b"}' MIS...
[ "test/bibliopixel/project/bad_project_test.py::BadProjectTest::test_missing_everything", "test/bibliopixel/project/cleanup_test.py::CleanupTest::test_1_dimension", "test/bibliopixel/project/cleanup_test.py::CleanupTest::test_2_shape", "test/bibliopixel/project/cleanup_test.py::CleanupTest::test_3_shape", "t...
[ "test/bibliopixel/project/bad_project_test.py::BadProjectTest::test_bad_animation_attribute", "test/bibliopixel/project/bad_project_test.py::BadProjectTest::test_bad_driver_attribute", "test/bibliopixel/project/bad_project_test.py::BadProjectTest::test_bad_json", "test/bibliopixel/project/bad_project_test.py:...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/ManiacalLabs/BiblioPixel/blob/maste...
b4ddd676df27d4d24d547f0775e8f2d9f69d803d
2024-10-21 20:31:33
docker.io/swerebenchv2/openmdao-openmdao:3387-b4ddd67
openmdao__openmdao-3387
Method: Group.set_input_defaults(self, name, val=None, units=None, src_shape=None, desc=None, **meta) Location: openmdao.core.group.Group Inputs: - **name** (str): name of the promoted input whose defaults are being set. - **val** (optional): default value to assign; for discrete variables this is the only allo...
python
custom-check-github
diff --git a/openmdao/core/group.py b/openmdao/core/group.py index 964f53a0b..637e39d65 100644 --- a/openmdao/core/group.py +++ b/openmdao/core/group.py @@ -1974,6 +1974,17 @@ class Group(System): abs_in2prom_info[tgt][tree_level] = \ _PromotesInfo(s...
Added additional documentation for the `set_input_defaults` function ### Summary Added additional documentation for the `set_input_defaults` function Also: - Enabled the use of `set_input_defaults` for discrete variables ### Related Issues - Resolves #2711 ### Backwards incompatibilities None ### ...
Users are confused by `set_input_defaults` ### Task Description New users often think that `set_input_defaults` will set all values for systems, including inputs and outputs. This is not the current or expected behavior and `set_val` should generally be used in that case. I propose that we update the docs to bett...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_group.py b/openmdao/core/tests/test_group.py index 51d043c69..9578099fd 100644 --- a/openmdao/core/tests/test_group.py +++ b/openmdao/core/tests/test_group.py @@ -3161,6 +3161,109 @@ class TestGroupAddInput(unittest.TestCase): "promoted input 'x' with conflicting values...
[ "openmdao/core/tests/test_group.py::TestGroupAddInput::test_set_input_defaults_discrete" ]
[ "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_auto_order", "openmdao/core/tests/test_group.py::TestGroup::test_auto_order2", "ope...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "easy", "external_urls": [ "http://openmdao.org/twodocs/versions/latest/search.html?...
4681dd733a925cd048d0301af26221bce0c95eed
2024-07-11 06:20:12
docker.io/swerebenchv2/systemd-mkosi:2861-4681dd7
systemd__mkosi-2861
Function: parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) Location: mkosi/config.py Inputs: - **argv** – sequence of command‑line arguments (e.g., ["--profile", "profile"]). - **resources** – optional path (keyword‑only) that points to the directory containing shared resources; defaults to the ...
python
null
diff --git a/mkosi/config.py b/mkosi/config.py index e556428d..fea16250 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3666,8 +3666,7 @@ def parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) -> tu setattr(ParseContext.config, s.dest, s.parse(v, getattr(ParseContext.conf...
Fix --profile The attribute might be set on either the cli or the config namespace so don't assume it's set on the config namespace. Fixes #2860
--profile CLI option is broken ### mkosi commit the issue has been seen with 4681dd733a925cd048d0301af26221bce0c95eed ### Used host distribution _No response_ ### Used target distribution _No response_ ### Linux kernel version used _No response_ ### CPU architectures issue was seen on None ### Unexpected beha...
systemd/mkosi
diff --git a/tests/test_config.py b/tests/test_config.py index b82d2ab9..6a5b6d59 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -356,6 +356,16 @@ def test_profiles(tmp_path: Path) -> None: assert config.distribution == Distribution.debian assert config.qemu_kvm == ConfigFeature.enabled + ...
[ "tests/test_config.py::test_profiles" ]
[ "tests/test_config.py::test_compression_enum_creation", "tests/test_config.py::test_compression_enum_bool", "tests/test_config.py::test_compression_enum_str", "tests/test_config.py::test_parse_ini", "tests/test_config.py::test_parse_config", "tests/test_config.py::test_parse_includes_once", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
95435de4526b609ee904b7a27478cec2e32f8fe8
2020-10-27 16:24:08
docker.io/swerebenchv2/samuelcolvin-pydantic:2056-95435de
samuelcolvin__pydantic-2056
Function: PrivateAttr(default: Any = Undefined, *, default_factory: Optional[NoArgAnyCallable] = None) -> Any Location: pydantic/fields.py Inputs: - **default** – value to use when the private attribute is not supplied (default = Undefined). - **default_factory** – callable returning a value for the attribute; mutua...
python
MIT
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b411771f7..b9630e829 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: run: make test - run: coverage xml - - uses: codecov/codecov-action@v1.0.13 + - uses: codecov/codecov-action@v1.0.1...
feat: add default encoder for `Pattern` type <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Change Summary As we allow `Pa...
Pattern type serialisation error ### Checks * [X] I added a descriptive title to this issue * [X] I have searched (google, github) for similar issues and couldn't find anything * [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug <!-- Sorry to sound so dr...
samuelcolvin/pydantic
diff --git a/tests/mypy/modules/success.py b/tests/mypy/modules/success.py index 202184c93..35c2ba3c2 100644 --- a/tests/mypy/modules/success.py +++ b/tests/mypy/modules/success.py @@ -9,7 +9,7 @@ from datetime import date, datetime from typing import Any, Dict, Generic, List, Optional, TypeVar from pydantic import...
[ "tests/test_dataclasses.py::test_simple", "tests/test_dataclasses.py::test_model_name", "tests/test_dataclasses.py::test_value_error", "tests/test_dataclasses.py::test_frozen", "tests/test_dataclasses.py::test_validate_assignment", "tests/test_dataclasses.py::test_validate_assignment_error", "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": "B5", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "hard", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "intent...
64ebfe862f6029620e6eb80874253ae349e33fb3
2020-08-10 12:23:28
docker.io/swerebenchv2/hypothesisworks-hypothesis:2541-64ebfe8
hypothesisworks__hypothesis-2541
Function: functions(like: Callable[..., Any] = lambda: None, returns: SearchStrategy[Any] = None, pure: bool = False) Location: hypothesis.strategies Inputs: - **like**: a callable whose signature is used as a template for the generated function. Must be callable. - **returns**: a `SearchStrategy` that supplies the ret...
python
custom-check-github
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 93d887c47..b3f7fd987 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -266,6 +266,7 @@ their individual contributions. * `mulkieran <https://www.github.com/mulkieran>`_ * `Nicholas Chammas <https://www.github.com/nchammas>`_ * `Nick Anyos <https://www.git...
Adds `pure` argument to `functions` strategy Adds some tests for pure functions. Needs further work. Closes #2538 Questions right now (https://github.com/HypothesisWorks/hypothesis/issues/2538#issuecomment-671288387 for the context): > passing kwargs in different orders, or an arg positionally vs by keyword, ...
`st.functions()` returning consistent (or pure) functions Currently, `st.functions()` creates functions that are not-pure (in a sence that they don't return the same value for the same arguments). My use-case is that I am testing monad laws (see https://github.com/dry-python/returns/issues/533 and https://github.com...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_functions.py b/hypothesis-python/tests/cover/test_functions.py index 9d6dc506f..f84548e0a 100644 --- a/hypothesis-python/tests/cover/test_functions.py +++ b/hypothesis-python/tests/cover/test_functions.py @@ -19,7 +19,7 @@ import pytest from hypothesis import assume, g...
[ "hypothesis-python/tests/cover/test_functions.py::test_functions_no_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_with_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_kw_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_argless_lambda", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/dry-python/returns/issues/533", ...
aac1df6f5e5b4400696e485e709fe580d35b4e9e
2022-03-24 13:53:53
docker.io/swerebenchv2/researchobject-ro-crate-py:116-aac1df6
researchobject__ro-crate-py-116
Function: init(crate_dir, gen_preview, exclude) Location: rocrate/cli.py Inputs: - **crate_dir**: Path string (option `-c` / `--crate-dir`). Optional; defaults to the current working directory if omitted. - **gen_preview**: Boolean flag (`--gen-preview`). When true, a preview metadata file is generated. - **exclude**: ...
python
Apache-2.0
diff --git a/rocrate/cli.py b/rocrate/cli.py index a74ec90..38a20d0 100644 --- a/rocrate/cli.py +++ b/rocrate/cli.py @@ -54,58 +54,57 @@ class CSVParamType(click.ParamType): CSV = CSVParamType() +OPTION_CRATE_PATH = click.option('-c', '--crate-dir', type=click.Path(), default=os.getcwd) @click.group() -@click...
CLI: do not except when `--help` is passed to sub command Fixes #97 The `rocrate add workflow --help` call would except because the `add` command group would attempt to instantiate a research object crate. But since no existing crate was defined through the `-c` option, the instantiation of the crate would excep...
CLI can generate an error when command help is requested In a non-ro-crate dir: ```console $ rocrate add workflow --help Traceback (most recent call last): File "/home/simleo/git/ro-crate-py/venv/bin/rocrate", line 11, in <module> load_entry_point('rocrate==0.5.0', 'console_scripts', 'rocrate')() File "...
ResearchObject/ro-crate-py
diff --git a/test/test_cli.py b/test/test_cli.py index adcda3b..0d9af09 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -14,10 +14,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the Lic...
[ "test/test_cli.py::test_cli_help[command_path1]", "test/test_cli.py::test_cli_help[command_path2]", "test/test_cli.py::test_cli_help[command_path3]", "test/test_cli.py::test_cli_help[command_path4]", "test/test_cli.py::test_cli_init[False-False]", "test/test_cli.py::test_cli_init[True-False]", "test/tes...
[ "test/test_cli.py::test_cli_help[command_path0]", "test/test_cli.py::test_cli_help[command_path5]", "test/test_cli.py::test_cli_init[False-True]", "test/test_cli.py::test_cli_init[True-True]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
e7a5747c6b8ce4ddad5a43aaf6b56f8997916459
2025-07-13 20:32:04
docker.io/swerebenchv2/crewaiinc-crewai:3150-e7a5747
crewaiinc__crewai-3150
Method: Task.__init__(self, description: str, expected_output: str, output_file: str, create_directory: bool = True, **kwargs) Location: src/crewai/task.py Inputs: - **description** – human‑readable text describing the task. - **expected_output** – description of the desired result. - **output_file** – path (strin...
python
MIT
diff --git a/src/crewai/task.py b/src/crewai/task.py index 51e1cf00..aa38cfff 100644 --- a/src/crewai/task.py +++ b/src/crewai/task.py @@ -67,6 +67,7 @@ class Task(BaseModel): description: Descriptive text detailing task's purpose and execution. expected_output: Clear definition of expected task outco...
Fix #3149: Add missing create_directory parameter to Task class # Fix #3149: Add missing create_directory parameter to Task class ## Summary This PR fixes issue #3149 by implementing the missing `create_directory` parameter in the Task class. Users were encountering `TypeError` when trying to use this parameter that...
[BUG] Parameter `create_directory` at `Task` class does't exists. ### Description Parameter `create_directory` at `Task` class doesn't exist. ### Steps to Reproduce [Parameter `create_directory` at `Task` class does't exists.](https://docs.crewai.com/en/concepts/tasks#creating-directories-when-saving-files) Reprodu...
crewAIInc/crewAI
diff --git a/tests/task_test.py b/tests/task_test.py index 89fa3c53..40c094ca 100644 --- a/tests/task_test.py +++ b/tests/task_test.py @@ -1133,6 +1133,119 @@ def test_output_file_validation(): ) +def test_create_directory_true(): + """Test that directories are created when create_directory=True.""" + ...
[ "tests/task_test.py::test_github_issue_3149_reproduction", "tests/task_test.py::test_create_directory_default", "tests/task_test.py::test_create_directory_false" ]
[ "tests/task_test.py::test_task_output_str_with_pydantic_and_json_dict", "tests/task_test.py::test_conditional_task_definition_based_on_dict", "tests/task_test.py::test_key", "tests/task_test.py::test_interpolate_inputs", "tests/task_test.py::test_multiple_output_type_error", "tests/task_test.py::test_inte...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.84, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.crewai.com/en/concepts/tasks#creating-dir...
31bc2435d7968fdf8d1f0c5c67f0f851c1bef54e
2020-11-23 21:52:10
docker.io/swerebenchv2/samuelcolvin-pydantic:2143-31bc243
samuelcolvin__pydantic-2143
Function: create_model(__model_name: str, *, __config__: Type[BaseConfig] = None, __base__: Type['Model'] = None, __module__: str = __name__, __validators__: Dict[str, classmethod] = None, **field_definitions: Any) -> Type['Model'] Location: pydantic/main.py Inputs: - __model_name – name of the generated model class (...
python
MIT
diff --git a/changes/1975-mdavis-xyz.md b/changes/1975-mdavis-xyz.md new file mode 100644 index 000000000..82cf2eb29 --- /dev/null +++ b/changes/1975-mdavis-xyz.md @@ -0,0 +1,1 @@ +Add `NonNegativeInt`, `NonPositiveInt`, `NonNegativeFloat`, `NonPositiveFloat` diff --git a/changes/2045-PrettyWood.md b/changes/2045-Prett...
fix: set right default value for required (optional) fields <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Change Summary ...
Required optional field has a default value of None after v1.7.0 ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a ...
samuelcolvin/pydantic
diff --git a/tests/mypy/modules/plugin_success.py b/tests/mypy/modules/plugin_success.py index af4b8e376..c173bc9e0 100644 --- a/tests/mypy/modules/plugin_success.py +++ b/tests/mypy/modules/plugin_success.py @@ -1,6 +1,6 @@ from typing import ClassVar, Optional, Union -from pydantic import BaseModel, Field +from py...
[ "tests/test_dataclasses.py::test_simple", "tests/test_dataclasses.py::test_model_name", "tests/test_dataclasses.py::test_value_error", "tests/test_dataclasses.py::test_frozen", "tests/test_dataclasses.py::test_validate_assignment", "tests/test_dataclasses.py::test_validate_assignment_error", "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": "B1", "confidence": 0.92, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "intent...
06a27e853b05b58102dfc3d8a459c213b5c15a63
2017-03-02 00:06:03
docker.io/swerebenchv2/googlecloudplatform-google-auth-library-python:128-06a27e8
googlecloudplatform__google-auth-library-python-128
Method: InstalledAppFlow.run_console(self, authorization_prompt_message=_DEFAULT_AUTH_PROMPT_MESSAGE, authorization_code_message=_DEFAULT_AUTH_CODE_MESSAGE, **kwargs) Location: additional_packages/google_auth_oauthlib/google_auth_oauthlib/flow.py Inputs: - authorization_prompt_message (str, optional): message printed ...
python
Apache-2.0
diff --git a/additional_packages/google_auth_oauthlib/google_auth_oauthlib/flow.py b/additional_packages/google_auth_oauthlib/google_auth_oauthlib/flow.py index a040659..0df96c0 100644 --- a/additional_packages/google_auth_oauthlib/google_auth_oauthlib/flow.py +++ b/additional_packages/google_auth_oauthlib/google_auth_...
Add InstalledAppFlow Resolves #122
Add interactive installed app flow Create a helper method for running an interactive installed app flow, similar to: ```python def credentials_flow_interactive(client_secrets_file, scopes): """Initiate an interactive OAuth2InstalledApp flow. - Display a URL for the user to visit. - URL displays a c...
GoogleCloudPlatform/google-auth-library-python
diff --git a/additional_packages/google_auth_oauthlib/tests/test_flow.py b/additional_packages/google_auth_oauthlib/tests/test_flow.py index 663a02f..88d283d 100644 --- a/additional_packages/google_auth_oauthlib/tests/test_flow.py +++ b/additional_packages/google_auth_oauthlib/tests/test_flow.py @@ -12,11 +12,14 @@ # ...
[ "additional_packages/google_auth_oauthlib/tests/test_flow.py::TestInstalledAppFlow::test_run_console", "additional_packages/google_auth_oauthlib/tests/test_flow.py::TestInstalledAppFlow::test_run_local_server_no_browser" ]
[ "additional_packages/google_auth_oauthlib/tests/test_flow.py::TestFlow::test_from_client_secrets_file", "additional_packages/google_auth_oauthlib/tests/test_flow.py::TestFlow::test_from_client_config_installed", "additional_packages/google_auth_oauthlib/tests/test_flow.py::TestFlow::test_from_client_config_bad_...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
250ed6fe17cb109f6bdde6b775d9af3b14df5043
2021-02-11 15:05:39
docker.io/swerebenchv2/codezonediitj-pydatastructs:328-250ed6f
codezonediitj__pydatastructs-328
Method: SkipList.__init__(self) Location: class SkipList in pydatastructs/linear_data_structures/linked_lists.py Inputs: no arguments; creates an empty skip list with a sentinel head (-∞) and tail (+∞) level. Outputs: a SkipList instance with `levels == 1`, `size == 0`. Description: Constructs a new skip list r...
python
custom-check-github
diff --git a/pydatastructs/linear_data_structures/__init__.py b/pydatastructs/linear_data_structures/__init__.py index d4d770c..da3eedd 100644 --- a/pydatastructs/linear_data_structures/__init__.py +++ b/pydatastructs/linear_data_structures/__init__.py @@ -17,7 +17,8 @@ from .linked_lists import ( SinglyLinkedList...
Adding skiplist ### Adding SkipList #### References to other Issues or PRs or Relevant literature "Fixes #149". See https://github.com/codezonediitj/pydatastructs/issues/149 #### Brief description of what is fixed or changed The skiplist data structure is added in the linear data structure and the number of l...
Add a Skip List Data Structure #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> #### Example of the problem <!--Provide a reproducible example code which is causing the bug to appear. Leave this section if the problem is not a bug.--> #...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_linked_lists.py b/pydatastructs/linear_data_structures/tests/test_linked_lists.py index c65f640..b7f172d 100644 --- a/pydatastructs/linear_data_structures/tests/test_linked_lists.py +++ b/pydatastructs/linear_data_structures/tests/test_linked_lists.py @@ -1,4...
[ "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_DoublyLinkedList", "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_SinglyLinkedList", "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_SinglyCircularLinkedList", "pydatastructs/linear_data_struc...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://en.wikipedia.org/wiki/Skip_list" ], "i...
44e730c9bee4ffd312e8f81772deee47a509ba0a
2021-10-01 15:42:40
docker.io/swerebenchv2/researchobject-ro-crate-py:75-44e730c
researchobject__ro-crate-py-75
Method: ROCrate.add_file(self, source: str, dest_path: str | None = None, *, fetch_remote: bool = False, validate_url: bool = False) Location: rocrate/rocrate.py (class ROCrate) Inputs: - **source** – path or URI of the file to add; may refer to a non‑existent local file. - **dest_path** – optional relative path...
python
Apache-2.0
diff --git a/rocrate/cli.py b/rocrate/cli.py index 7512383..0f02132 100644 --- a/rocrate/cli.py +++ b/rocrate/cli.py @@ -39,25 +39,23 @@ class State: @click.pass_context def cli(ctx, crate_dir): ctx.obj = state = State() - state.crate_dir = crate_dir + state.crate_dir = os.getcwd() if not crate_dir else os...
Allow metadata to reference missing files or directories Closes #73. With this PR, the library does not complain if files and directories referenced by the RO-Crate metadata are missing. Corresponding entities are created as usual and the crate can be written out, but missing files will of course also be missing fro...
Bug? Fails to load a crate file without its data entities (directories) I think this is a bug. On loading a directory with ONLY the sample file from here: https://raw.githubusercontent.com/ResearchObject/example-ro-sample-image-crate/main/sample-crate/ro-crate-metadata.jsonld ``` from rocrate.rocrate import ROC...
ResearchObject/ro-crate-py
diff --git a/test/test_read.py b/test/test_read.py index a3e334b..e170040 100644 --- a/test/test_read.py +++ b/test/test_read.py @@ -269,3 +269,32 @@ def test_extra_data(test_data_dir, tmpdir, to_zip): assert (out_path / rel).is_file() with open(crate_dir / rel) as f1, open(out_path / rel) as f2: ...
[ "test/test_read.py::test_missing_dir", "test/test_read.py::test_missing_file", "test/test_write.py::test_missing_source[False-False]", "test/test_write.py::test_missing_source[False-True]", "test/test_write.py::test_missing_source[True-False]", "test/test_write.py::test_missing_source[True-True]" ]
[ "test/test_read.py::test_crate_dir_loading[False-False]", "test/test_read.py::test_crate_dir_loading[True-False]", "test/test_read.py::test_crate_dir_loading[True-True]", "test/test_read.py::test_legacy_crate", "test/test_read.py::test_bad_crate", "test/test_read.py::test_init[False]", "test/test_read.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://raw.githubusercontent.com/ResearchObject/examp...
3d9be79618e80095826882637f13ecf96af88639
2024-06-24 20:11:09
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3390-3d9be79
aws-cloudformation__cfn-lint-3390
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/jsonschema/_resolvers_cfn.py b/src/cfnlint/jsonschema/_resolvers_cfn.py index b9cf63cd3..d5c1eb302 100644 --- a/src/cfnlint/jsonschema/_resolvers_cfn.py +++ b/src/cfnlint/jsonschema/_resolvers_cfn.py @@ -11,7 +11,7 @@ from typing import Any, Iterator import regex as re -from cfnlint.helper...
Update resolution validation to only return an error if there are no valid values *Issue #, if available:* fix #3380 *Description of changes:* - Update resolution validation to only return an error if there are no valid resolution values. - Update sub resolver to return multiple times when just using a string ...
v1: E3027 'minute' is not one of ['minutes', 'hours', 'days'] when 'Fn::Sub' is resolved ### CloudFormation Lint Version 1.3.3 ### What operating system are you using? Ubuntu ### Describe the bug When using a parameter for setting the rate expression unit, specifying any of the following values as part of the `All...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/cfn_yaml/test_yaml.py b/test/unit/module/cfn_yaml/test_yaml.py index f83b1ade4..1b60db93a 100644 --- a/test/unit/module/cfn_yaml/test_yaml.py +++ b/test/unit/module/cfn_yaml/test_yaml.py @@ -27,7 +27,7 @@ class TestYamlParse(BaseTestCase): }, "generic_bad": { ...
[ "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse", "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse_stdin", "test/unit/module/test_rules_collections.py::TestRulesCollection::test_fail_run", "test/unit/rules/functions/test_sub.py::test_validate[One" ]
[ "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_map_failure", "test/unit/module/test_rules_collections.py::TestRulesCollection::test_custom_rules", "test/unit/module/test_rules_collections.py::TestRulesCollection::test_duplicate_rules", "test/unit/module/test_rules_collections.py::TestRulesCollec...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
a111ed87c9afc6e78978eb20b809028256b7120c
2017-01-05 11:21:02
docker.io/swerebenchv2/audreyr-cookiecutter:884-a111ed8
audreyr__cookiecutter-884
Function: process_json(user_value) Location: cookiecutter.prompt Inputs: - **user_value** (str): raw string entered by the user, expected to be a JSON-encoded object. Outputs: - Returns a **dict** (OrderedDict) representing the decoded JSON object. - Raises **click.UsageError** with message `'Unable to decode to JSON...
python
BSD-3-Clause
diff --git a/cookiecutter/prompt.py b/cookiecutter/prompt.py index 7f4d12f..41e8964 100644 --- a/cookiecutter/prompt.py +++ b/cookiecutter/prompt.py @@ -84,28 +84,21 @@ def read_user_choice(var_name, options): return choice_map[user_choice] -def create_value_proc(default_display, default_value): - def proce...
Fix dict prompt for default value Resolve #882
Accepting default dict parameter value with no user input causes string "default" to be put into dict parameter * Cookiecutter version: 1.5 * Template project url: private repo, minimal example is attached * Python version: 2.7.10 * Operating System: Mac OS X 10.10.5 ### Description: I'm using dict parameter a...
audreyr/cookiecutter
diff --git a/tests/test_read_user_dict.py b/tests/test_read_user_dict.py index fabd82f..a434b8d 100644 --- a/tests/test_read_user_dict.py +++ b/tests/test_read_user_dict.py @@ -11,49 +11,35 @@ import click import pytest from cookiecutter.prompt import ( - create_value_proc, + process_json, read_user_dict...
[ "tests/test_read_user_dict.py::test_process_json_invalid_json", "tests/test_read_user_dict.py::test_process_json_non_dict", "tests/test_read_user_dict.py::test_process_json_valid_json", "tests/test_read_user_dict.py::test_process_json_deep_dict" ]
[]
{ "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": [ "https://github.com/pallets/click/blob/master/click/ter...
de82e2feac9ef09547bcf47af5a0e0f8e8c07843
2020-05-25 11:32:28
docker.io/swerebenchv2/sebrut-pygrocy:98-de82e2f
sebrut__pygrocy-98
Method: ChoreDetailsResponse.__init__(self, parsed_json: dict) Location: pygrocy/grocy_api_client.py Inputs: parsed_json – a dict representing the JSON payload returned by **GET /chores/{choreId}**; must contain at least the keys *chore*, *last_tracked*, *next_estimated_execution_time* and optionally *next_execution_as...
python
MIT
diff --git a/pygrocy/grocy.py b/pygrocy/grocy.py index 7dd9575..271bfa4 100644 --- a/pygrocy/grocy.py +++ b/pygrocy/grocy.py @@ -1,5 +1,6 @@ from datetime import datetime -from typing import List +from enum import Enum +from typing import List, Dict from .grocy_api_client import (DEFAULT_PORT_NUMBER, ChoreDetailsRe...
add all fields from chore details api call ## Description Adds missing fields for `GET /chores/{choreId}` **Related issue (if applicable):** fixes #87 ## Checklist - [ ] The code change is tested and works locally. - [ ] tests pass. **Your PR won't be merged unless tests pass** - [ ] There is no comme...
implement chore details API interface `GET /chores​/{choreId}` returns more information for a single chore and should be implemented like the call for product details.
SebRut/pygrocy
diff --git a/test/test_choreDetailsResponse.py b/test/test_choreDetailsResponse.py index 76e3392..61e4aa0 100644 --- a/test/test_choreDetailsResponse.py +++ b/test/test_choreDetailsResponse.py @@ -25,7 +25,15 @@ class TestChoreDetailsResponse(TestCase): "display_name": "string", "row_c...
[ "test/test_choreDetailsResponse.py::TestChoreDetailsResponse::test_parse" ]
[ "test/test_choreDetailsResponse.py::TestChoreDetailsResponse::test_no_last_tracked_data" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
532ef39d0ecb64144e09cfbcf2d26b57d5fbcf9c
2016-10-14 17:42:16
docker.io/swerebenchv2/mapbox-mapbox-sdk-py:136-532ef39
mapbox__mapbox-sdk-py-136
Function: normalize_geojson_featurecollection(obj) Location: mapbox/utils.py Inputs: - **obj** (Mapping or Sequence): A single geojson‑like mapping representing a Geometry (e.g., {"type": "Point", "coordinates": [...] } ), a Feature ({"type": "Feature", "geometry": ..., "properties": {...}}), a FeatureCollection ({"ty...
python
MIT
diff --git a/mapbox/polyline/README.rst b/mapbox/polyline/README.rst deleted file mode 100644 index 3e0b913..0000000 --- a/mapbox/polyline/README.rst +++ /dev/null @@ -1,13 +0,0 @@ -polyline -======== - -``polyline`` is a Python implementation of Google's Encoded Polyline Algorithm -Format (http://goo.gl/PvXf8Y). It is...
normalize feature inputs to collection This allows the `features` input to the static map service to be a geojson-like mapping of geometry, feature or featurecollection (or sequences of them). All valid geojson objects will be normalized to a single featurecollection. Resolves #134
Accept bare geometries as static map overlays Where "bare" means not in the context of a Feature. See #132 for background.
mapbox/mapbox-sdk-py
diff --git a/tests/test_utils.py b/tests/test_utils.py new file mode 100644 index 0000000..35edc5e --- /dev/null +++ b/tests/test_utils.py @@ -0,0 +1,66 @@ +import pytest + +from mapbox.utils import normalize_geojson_featurecollection + + +geom = {'type': 'Point', 'coordinates': (-122, 45)} +feat = {'type': 'Feature', ...
[ "tests/test_utils.py::test_geom", "tests/test_utils.py::test_feat", "tests/test_utils.py::test_coll", "tests/test_utils.py::test_mult_geom", "tests/test_utils.py::test_mult_feat", "tests/test_utils.py::test_mult_coll", "tests/test_utils.py::test_mix", "tests/test_utils.py::test_nonsense" ]
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
033d96790df08b5942dca98d0c75eaad9740a7ad
2024-12-06 03:05:16
docker.io/swerebenchv2/keras-team-keras:20602-033d967
keras-team__keras-20602
No new interfaces are introduced.
python
Apache-2.0
diff --git a/keras/src/trainers/trainer.py b/keras/src/trainers/trainer.py index ff103b535..27bcfea93 100644 --- a/keras/src/trainers/trainer.py +++ b/keras/src/trainers/trainer.py @@ -140,7 +140,6 @@ class Trainer: wrapped in a `LossScaleOptimizer`, which will dynamically scale the lo...
Fix the issue when using `Model.compile` multiple times Fixes #20474 #20473 Credits to @TheMGGdev I adopted the changes and added a test.
NO _loss_tracker on train_on_batch because compile model multiple times. Possible Bug. Same code of a GAN works perfectly in Keras 3.3 but doesn´t work in keras 3.6. There is an error on train_on_batch I believe is because an bug introduce in a change in Keras 3.6 The code is this: import numpy as np imp...
keras-team/keras
diff --git a/keras/src/trainers/trainer_test.py b/keras/src/trainers/trainer_test.py index 434fe47c9..4e25f4d34 100644 --- a/keras/src/trainers/trainer_test.py +++ b/keras/src/trainers/trainer_test.py @@ -407,6 +407,38 @@ class TestTrainer(testing.TestCase): self.assertEqual(new_model.metrics[0], new_model._lo...
[ "keras/src/trainers/trainer_test.py::TestTrainer::test_multiple_compiles" ]
[ "keras/src/trainers/trainer_test.py::TestTrainer::test_adds_loss_scaling_optimizer", "keras/src/trainers/trainer_test.py::TestTrainer::test_callback_methods_keys", "keras/src/trainers/trainer_test.py::TestTrainer::test_callbacks_can_update_state_at_batch_boundary", "keras/src/trainers/trainer_test.py::TestTra...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/keras-team/keras/issues/20474" ],...
9526b1eb79d2dea1e99c78a7436d26dbf730d94c
2024-11-12 21:34:44
docker.io/swerebenchv2/openmdao-aviary:604-9526b1e
openmdao__aviary-604
Method: TabularAeroGroup.__init__(self, CD0_interp, CDI_interp, connect_training_data: bool = False, **kwargs) Location: aviary/subsystems/aerodynamics/flops_based/tabular_aero_group.py Inputs: - CD0_interp – OpenMDAO subsystem that interpolates zero‑lift drag data. - CDI_interp – OpenMDAO subsystem that interpolates ...
python
custom-check-github
diff --git a/aviary/subsystems/aerodynamics/aerodynamics_builder.py b/aviary/subsystems/aerodynamics/aerodynamics_builder.py index 52a82d71..0039d441 100644 --- a/aviary/subsystems/aerodynamics/aerodynamics_builder.py +++ b/aviary/subsystems/aerodynamics/aerodynamics_builder.py @@ -340,7 +340,8 @@ class CoreAerodynamic...
Fix for Flops tabular aero so that it correctly supports passing the lift independent and dependent polars. ### Summary 1. Fixed bug where the FLOPS-based tabular aero was not promoting its training inputs from the metamodels, and was not adding them to the phase parameters. 2. Added `Aircraft.Design.LIFT_INDEPENDE...
FLops tabular aero is not working with training data. ### Description Looks like we have a test in `test_tabular_aero_group.py` for passing the drag dependent and independent polars into the mission drag interps, but the test is incorrectly passing. ### Example see TabularAeroGroupDataTest in test_tabular_aero_group...
OpenMDAO/Aviary
diff --git a/aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py b/aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py index 0b02ff6e..e02ae298 100644 --- a/aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py +++ b/aviary/subsystems/aerodynamics/flops...
[ "aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py::TabularAeroGroupDataTest::test_case" ]
[ "aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py::TabularAeroGroupFileTest::test_case", "aviary/subsystems/aerodynamics/flops_based/test/test_tabular_aero_group.py::ComputedVsTabularTest::test_case_LargeSingleAisle1FLOPS", "aviary/subsystems/aerodynamics/flops_based/test/test_tabular_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [], "intent_completeness": "partial", "pr_categories": ...
9af856f34d14b8364d7944bf12d7179b72002b27
2018-05-19 04:56:51
docker.io/swerebenchv2/kayak-pypika:127-9af856f
kayak__pypika-127
No new interfaces are introduced.
python
Apache-2.0
diff --git a/pypika/queries.py b/pypika/queries.py index 1a3e7b9..f184781 100644 --- a/pypika/queries.py +++ b/pypika/queries.py @@ -353,8 +353,14 @@ class QueryBuilder(Selectable, Term): self._from.append(Table(selectable) if isinstance(selectable, str) else selectable) if isinstance(selectable, (Q...
Fixed #98 check subquery counts when creating alias
When nesting several queries, aliases are reused The query is: ```sql SELECT COALESCE(SUM("sq0"."expected"),0) "expected" FROM ( ( SELECT SUM("sq0"."view_count") FROM ( SELECT MIN("user_queries"."view_count") FROM "user_queries" JOIN ( SELECT "u...
kayak/pypika
diff --git a/pypika/tests/test_selects.py b/pypika/tests/test_selects.py index 589dd88..b8f4cbf 100644 --- a/pypika/tests/test_selects.py +++ b/pypika/tests/test_selects.py @@ -107,6 +107,21 @@ class SelectTests(unittest.TestCase): 'FROM (SELECT "foo" FROM "abc") "sq0",' ...
[ "pypika/tests/test_selects.py::SelectTests::test_select__nested_subquery" ]
[ "pypika/tests/test_selects.py::SelectTests::test_empty_query", "pypika/tests/test_selects.py::SelectTests::test_mssql_query_uses_double_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_mysql_query_uses_backtick_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_oracle_query_uses_doub...
{ "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": [...
584a5b0cdd2c3ba4f7d60d8da4aefc3d6e58d017
2017-06-08 10:05:17
docker.io/swerebenchv2/kayak-pypika:49-584a5b0
kayak__pypika-49
Method: Tuple.__init__(self, *values) Location: pypika/terms.py Inputs: Variable number of positional arguments ‑ each may be a Term (e.g., Field), a Python scalar (int, str, etc.), or an iterable (list/tuple) which will be wrapped into a Term. Outputs: Constructs a Tuple Term object whose internal `values` list holds ...
python
Apache-2.0
diff --git a/README.rst b/README.rst index 32d9ee5..55eea89 100644 --- a/README.rst +++ b/README.rst @@ -398,18 +398,60 @@ used except for weeks and quarters, which must be used separately and will ignor from pypika import functions as fn fruits = Tables('fruits') - q = Query.from_(fruits).select( - ...
Fixes #47 Added support for tuples Repurposed the ListField class as Tuple and added support for Criterion operations.
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_tuples.py b/pypika/tests/test_tuples.py new file mode 100644 index 0000000..b08fc5b --- /dev/null +++ b/pypika/tests/test_tuples.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +import unittest + +from pypika import Query, Tables, Tuple + + +class TupleTests(unittest.TestCase): + table_abc, tab...
[ "pypika/tests/test_tuples.py::TupleTests::test_tuple_equality_tuple_on_both", "pypika/tests/test_tuples.py::TupleTests::test_tuple_equality_tuple_on_left", "pypika/tests/test_tuples.py::TupleTests::test_tuple_equality_tuple_on_right", "pypika/tests/test_tuples.py::TupleTests::test_tuple_in_using_mixed_tuples"...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://my.vertica.com/docs/7.1.x/HTML/Content/Authori...
e7535f358e06ad8ff0cb87441ded80ca0b8c4382
2025-07-13 12:29:45
docker.io/swerebenchv2/vacanza-holidays:2720-e7535f3
vacanza__holidays-2720
Method: Gibraltar.__init__(self, *args, **kwargs) Location: holidays/countries/gibraltar.py – class Gibraltar Inputs: - *args, **kwargs – optional positional and keyword arguments passed to the base classes. - Recognised keyword arguments include **years** (an iterable of integer years to pre‑populate the calendar) ...
python
MIT
diff --git a/README.md b/README.md index 19b71bfa..d5e47b58 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ and detailed information. ## Available Countries -We currently support 217 country codes. The standard way to refer to a country is by using its [ISO +We currently support 218 country codes. The s...
Add Gibraltar holidays <!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> (I'm back within 24 hours of assignment :slightly_smiling_face:) ~~There are 2 issues which I'd like t...
Add Gibraltar holidays URLs: - https://en.wikipedia.org/wiki/Public_holidays_in_Gibraltar
vacanza/holidays
diff --git a/tests/countries/test_gibraltar.py b/tests/countries/test_gibraltar.py new file mode 100644 index 00000000..87be1117 --- /dev/null +++ b/tests/countries/test_gibraltar.py @@ -0,0 +1,284 @@ +# holidays +# -------- +# A fast, efficient Python library for generating country, province and state +# specific ...
[ "tests/countries/test_gibraltar.py::TestGibraltar::test_boxing_day", "tests/countries/test_gibraltar.py::TestGibraltar::test_christmas_day", "tests/countries/test_gibraltar.py::TestGibraltar::test_code", "tests/countries/test_gibraltar.py::TestGibraltar::test_commonwealth_day", "tests/countries/test_gibralt...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://en.wikipedia.org/wiki/Public_holidays_in_Gibralt...
a42a75d1af74b41bbb75048569ddf41f3ade3529
2023-10-20 07:47:04
docker.io/swerebenchv2/pdm-project-pdm:2323-a42a75d
pdm-project__pdm-2323
Method: BaseRepository.get_filtered_sources(self, req: Requirement) -> list[RepositoryConfig] Location: src/pdm/models/repositories.py Inputs: - **req**: a `Requirement` object representing the package requirement to resolve. It may be a named requirement with a `key` attribute or a file/URL requirement (in which case ...
python
MIT
diff --git a/docs/docs/usage/config.md b/docs/docs/usage/config.md index 7a4f7650..7421070d 100644 --- a/docs/docs/usage/config.md +++ b/docs/docs/usage/config.md @@ -149,6 +149,22 @@ In some cases you may want to return packages from the preferred source, and sea respect-source-order = true ``` +### Specify index ...
feat: per-package source configuration Signed-off-by: Frost Ming <me@frostming.com> ## Pull Request Checklist - [ ] A news fragment is added in `news/` describing what is new. - [ ] Test cases added for changed code. ## Describe what you have changed in this PR. Resolve #1645
allow binding between source index and individual dependencies ## Scenario It is already possible to define more then one pypi-like index source. Since v2.4.0 there are 2 ways to do that (AFAIK). In [`pyproject.toml`](https://pdm.fming.dev/latest/pyproject/tool-pdm/#specify-other-sources-for-finding-packages) and in...
pdm-project/pdm
diff --git a/tests/test_project.py b/tests/test_project.py index b8623412..06b27375 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os import sys import venv @@ -363,3 +365,27 @@ def test_ignore_package_warning(pdm, project, recwarn, pattern...
[ "tests/test_project.py::test_filter_sources_with_config" ]
[ "tests/test_project.py::test_project_python_with_pyenv_support", "tests/test_project.py::test_project_config_items", "tests/test_project.py::test_project_config_set_invalid_key", "tests/test_project.py::test_project_sources_overriding_pypi", "tests/test_project.py::test_project_sources_env_var_expansion", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pdm.fming.dev/latest/pyproject/tool-pdm/#speci...
1d22052f47e0a376dfc212afdb9ace176c7524c1
2025-02-13 09:24:26
docker.io/swerebenchv2/berriai-litellm:8512-1d22052
berriai__litellm-8512
No new interfaces are introduced.
python
custom-check-github
diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.py index 548e6f690..ae79bcb0a 100644 --- a/litellm/llms/bedrock/chat/converse_transformation.py +++ b/litellm/llms/bedrock/chat/converse_transformation.py @@ -105,6 +105,7 @@ class AmazonConverseConfig(...
Add support for bedrock meta.llama3-3-70b-instruct-v1:0 tool calling ## Title Add support for bedrock meta.llama3-3-70b-instruct-v1:0 tool calling ## Relevant issues Fixes #8094 ## Type 🐛 Bug Fix ## Changes litellm/llms/bedrock/chat/converse_transformation.py ```diff def get_supported_openai_pa...
[Bug]: Tool calling llama meta.llama3-3-70b-instruct-v1:0 not supported ### What happened? Recently we switched over to using LiteLLM from direct connections to Bedrock as our provider. In doing so, we have noticed that we cannot perform tool calls with `meta.llama3-3-70b-instruct-v1:0` as the model. Are there plans o...
BerriAI/litellm
diff --git a/tests/llm_translation/test_bedrock_completion.py b/tests/llm_translation/test_bedrock_completion.py index 17dd013ac..8823ccdbe 100644 --- a/tests/llm_translation/test_bedrock_completion.py +++ b/tests/llm_translation/test_bedrock_completion.py @@ -2092,6 +2092,7 @@ def test_bedrock_prompt_caching_message(m...
[ "tests/llm_translation/test_bedrock_completion.py::test_bedrock_supports_tool_call[bedrock/meta.llama3-3-70b-instruct-v1:0-True]" ]
[ "tests/llm_translation/test_bedrock_completion.py::test_base_aws_llm_get_credentials", "tests/llm_translation/test_bedrock_completion.py::test_bedrock_base_model_helper", "tests/llm_translation/test_bedrock_completion.py::test_bedrock_completion_test_2", "tests/llm_translation/test_bedrock_completion.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
e554373d16a000c6b022ef3f46b7607f704f4e8b
2020-08-04 13:54:59
docker.io/swerebenchv2/python-attrs-attrs:663-e554373
python-attrs__attrs-663
No new interfaces are introduced.
python
MIT
diff --git a/src/attr/_make.py b/src/attr/_make.py index 68cdf43..9b65590 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -557,6 +557,7 @@ class _ClassBuilder(object): "_on_setattr", "_slots", "_weakref_slot", + "_has_own_setattr", ) def __init__( @@ -573,6 +574,7...
Clear __setattr__ if it was inherited && written by us Fixes #661 Since the frozen behavior was deliberate, the changes should only affect new `on_setattr` code. This is the final PR before 20.1.0. I hope we can ship 20.2.0 with `import attrs`, equality, and maybe better serialization soon after.
Restore __setattr__ when subclassing and we didn't write a new __setattr__ Currently if you do this: ```python @attr.s(frozen=True) class A: a = attr.ib() @attr.s class B(A): b = attr.ib() ``` B is frozen too, because we don't write a new `__setattr__` to overwrite the old one. Once #660 is merge...
python-attrs/attrs
diff --git a/tests/test_functional.py b/tests/test_functional.py index 6203adc..f6a1969 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -16,11 +16,9 @@ from hypothesis.strategies import booleans import attr -from attr import setters from attr._compat import PY2, TYPE from attr._make impor...
[ "tests/test_make.py::TestClassBuilder::test_repr", "tests/test_make.py::TestClassBuilder::test_returns_self", "tests/test_make.py::TestClassBuilder::test_handles_missing_meta_on_class", "tests/test_setattr.py::TestSetAttr::test_setattr_reset_if_no_custom_setattr[True]", "tests/test_setattr.py::TestSetAttr::...
[ "tests/test_functional.py::TestFunctional::test_fields[C2]", "tests/test_functional.py::TestFunctional::test_fields[C2Slots]", "tests/test_functional.py::TestFunctional::test_asdict[C1]", "tests/test_functional.py::TestFunctional::test_asdict[C1Slots]", "tests/test_functional.py::TestFunctional::test_valida...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2782e2ed818d8586be2bc01474acecc10cee4e74
2021-06-16 08:11:51
docker.io/swerebenchv2/senth-minecraft-mod-manager:82-2782e2e
senth__minecraft-mod-manager-82
Method: Update.on_version_found(self, download_info: DownloadInfo) Location: minecraft_mod_manager/app/update/update.py Inputs: - **download_info** – a `DownloadInfo` object containing a `mod` (with `file` and `version` attributes) and a `version_info` (with `filename`). - The global `config.pretend` flag (bool)...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7306187..7e3c12c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versi...
Don't remove mods that are up-to-date ### What changed? - Only remove the old file if a new one was downloaded - Don't show "Updated" message if already up-to-date ### Testing - [X] Added unit tests - [X] Tested running `update` manually ### Related Issues Fixes #81
Sometimes permanently deletes mods ### Describe the bug Sometimes the tool deletes mods when it definitely should not. Over time this effect can delete almost an entire mods folder. ### Steps to reproduce Steps to reproduce the behavior: 1. Download the sample mods folder from the following link. There should be...
Senth/minecraft-mod-manager
diff --git a/minecraft_mod_manager/app/update/update_test.py b/minecraft_mod_manager/app/update/update_test.py index 9f31117..d24479e 100644 --- a/minecraft_mod_manager/app/update/update_test.py +++ b/minecraft_mod_manager/app/update/update_test.py @@ -1,9 +1,13 @@ -from typing import List +from typing import List, Uni...
[ "minecraft_mod_manager/app/update/update_test.py::test_on_version_found[Keep" ]
[ "minecraft_mod_manager/app/update/update_test.py::test_use_all_installed_mods_when_no_mods_are_specified", "minecraft_mod_manager/app/update/update_test.py::test_call_find_download_and_install", "minecraft_mod_manager/app/update/update_test.py::test_on_version_found[Remove", "minecraft_mod_manager/app/update/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://drive.google.com/file/d/1qoBmoHcNow0gNDMlgTlDx...
23a207d84f72ef62fffdc1fe7246c1bad4120611
2017-07-21 13:39:35
docker.io/swerebenchv2/kayak-pypika:64-23a207d
kayak__pypika-64
No new interfaces are introduced.
python
Apache-2.0
diff --git a/pypika/queries.py b/pypika/queries.py index 3fc4a92..2871dd3 100644 --- a/pypika/queries.py +++ b/pypika/queries.py @@ -539,12 +539,12 @@ class QueryBuilder(Selectable, Term): if self._orderbys: querystring += self._orderby_sql(**kwargs) - if self._offset: - querys...
Re-ordered limit and offset in queries. Fixes #63.
OFFSET and LIMIT are applied in the wrong order Example: ```python def test_select_with_limit_and_offset(self): q1 = Query.from_('abc').select('foo')[10:10] self.assertEqual('SELECT "foo" FROM "abc" OFFSET 10 LIMIT 10', str(q1)) ``` The query should actually be `SELECT "foo" FROM "abc" L...
kayak/pypika
diff --git a/pypika/tests/test_selects.py b/pypika/tests/test_selects.py index 06e4aba..45baea3 100644 --- a/pypika/tests/test_selects.py +++ b/pypika/tests/test_selects.py @@ -137,7 +137,7 @@ class SelectTests(unittest.TestCase): def test_select_with_limit_and_offset(self): q1 = Query.from_('abc').select...
[ "pypika/tests/test_selects.py::SelectTests::test_select_with_limit_and_offset" ]
[ "pypika/tests/test_selects.py::SelectTests::test_empty_query", "pypika/tests/test_selects.py::SelectTests::test_mssql_query_uses_double_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_mysql_query_uses_backtick_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_oracle_query_uses_doub...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d26d63477d9274630d0659952d347d369240a012
2020-05-08 09:44:22
docker.io/swerebenchv2/hypothesisworks-hypothesis:2421-d26d634
hypothesisworks__hypothesis-2421
Statistics(runner) Location: hypothesis.statistics.Statistics Inputs: runner – a ConjectureRunner instance produced by hypothesis when executing a test. Outputs: An object with an attribute `exit_reason` (str) describing why the engine stopped, e.g. “shrinking was very slow”. The value is derived from `runner.exit_reas...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..eb4c76b8a --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,8 @@ +RELEASE_TYPE: minor + +This release limits the maximum duration of the shrinking phase to five minutes, +so that Hypothesis does n...
Cap wall-time duration of shrink phase Closes #2340 by adding the shrink-phase timeout logic discussed on that issue.
Stop shrink phase after timeout when progress is very slow I'm using hypothesis very successfully (thanks!) in [fakeredis](https://github.com/jamesls/fakeredis). However I have a sporadic issue that maybe you can give me some insight into debugging. Mostly the test suite finishes in about a minute, but sometimes it see...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/conftest.py b/hypothesis-python/tests/conftest.py index 261bb9dd9..56e89bd31 100644 --- a/hypothesis-python/tests/conftest.py +++ b/hypothesis-python/tests/conftest.py @@ -20,6 +20,8 @@ import time as time_module import pytest +from hypothesis import core as core_module +from h...
[ "hypothesis-python/tests/conjecture/test_engine.py::test_can_index_results", "hypothesis-python/tests/conjecture/test_engine.py::test_non_cloneable_intervals", "hypothesis-python/tests/conjecture/test_engine.py::test_deletable_draws", "hypothesis-python/tests/conjecture/test_engine.py::test_can_load_data_from...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/jamesls/fakeredis" ], "inte...
4a91eed0ce54df3d708bdf3929c4de3ed3512649
2022-10-20 14:46:27
docker.io/swerebenchv2/jelmer-dulwich:1069-4a91eed
jelmer__dulwich-1069
No new interfaces are introduced.
python
custom-check-github
diff --git a/dulwich/objects.py b/dulwich/objects.py index daac57d9..fc26dd2f 100644 --- a/dulwich/objects.py +++ b/dulwich/objects.py @@ -202,16 +202,16 @@ def check_identity(identity, error_msg): identity: Identity string error_msg: Error message to use in exception """ - email_start = identity....
Improve check_identity and check_user_identity This fixes #1068. The check for correctly formed identities in `check_user_identity` (used in `do_commit`) is still weaker than the one in `check_identity`. The difference is in checking for `<` and `>`.
Inconsistent checking of identities There appear to be two separate functions for checking identities (e.g. author, committer): * [`dulwich.repo.check_user_identity`](https://github.com/jelmer/dulwich/blob/1668d09bf7547ce1b81b114793e5454dc9cf0adf/dulwich/repo.py#L216-L229) * [`dulwich.objects.check_identity`](https:/...
jelmer/dulwich
diff --git a/dulwich/tests/test_objects.py b/dulwich/tests/test_objects.py index d4a8fa52..607e1848 100644 --- a/dulwich/tests/test_objects.py +++ b/dulwich/tests/test_objects.py @@ -1203,7 +1203,10 @@ class CheckTests(TestCase): b"Dave Borowitz <dborowitz@google.com>", "failed to check good i...
[ "dulwich/tests/test_objects.py::CheckTests::test_check_identity", "dulwich/tests/test_repository.py::CheckUserIdentityTests::test_invalid" ]
[ "dulwich/tests/test_objects.py::TestHexToSha::test_reverse", "dulwich/tests/test_objects.py::TestHexToSha::test_simple", "dulwich/tests/test_objects.py::BlobReadTests::test_chunks", "dulwich/tests/test_objects.py::BlobReadTests::test_create_blob_from_string", "dulwich/tests/test_objects.py::BlobReadTests::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.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/jelmer/dulwich/blob/1668d09bf7547ce1b...
175353ce8fac5b38728007b0d7f5e1c1335dddf3
2025-04-30 20:00:24
docker.io/swerebenchv2/pyomo-pyomo:3588-175353c
pyomo__pyomo-3588
Method: TeeStream.__init__(self, stream=None) Location: pyomo/common/tee.py – class TeeStream Inputs: - **stream** (optional, file‑like object): a pre‑existing stream object to be used as the primary output target instead of creating a new one automatically. If omitted, TeeStream creates its own internal pipe/handle i...
python
custom-check-github
diff --git a/pyomo/common/log.py b/pyomo/common/log.py index fbcde4ce2..b82752908 100644 --- a/pyomo/common/log.py +++ b/pyomo/common/log.py @@ -449,13 +449,19 @@ class _StreamRedirector(object): def __enter__(self): self.orig_stream = self.handler.stream + # Note: ideally, we would use closefd=T...
Improve TeeStream robustness <!-- ##################################################################### --> <!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST --> <!-- All changes must adhere to PEP8 standards as enforced by Black. --> <!-- If your changes do NOT adhere, the test suite will fail. --> <!-- Please r...
OSError with HiGHS when solving and updating model params multiple times <!-- DO NOT DELETE OR IGNORE THIS TEMPLATE. Failing to adhere to this template and provide the necessary information may lead to your Issue being closed without consideration. --> ## Summary I'm experiencing a weird bug when using the highs opt...
Pyomo/pyomo
diff --git a/pyomo/common/tests/test_tee.py b/pyomo/common/tests/test_tee.py index 67a57ae66..2316a7dbc 100644 --- a/pyomo/common/tests/test_tee.py +++ b/pyomo/common/tests/test_tee.py @@ -278,6 +278,26 @@ class TestTeeStream(unittest.TestCase): r"\nThe following was left in the output buffer:\n 'i\\n'\...
[ "pyomo/common/tests/test_tee.py::TestTeeStream::test_context_mismatch", "pyomo/common/tests/test_tee.py::TestTeeStream::test_handle_prematurely_closed", "pyomo/common/tests/test_tee.py::TestCapture::test_capture_output_stack_error", "pyomo/common/tests/test_tee.py::TestCapture::test_no_fileno_stdout" ]
[ "pyomo/common/tests/test_tee.py::TestTeeStream::test_binary_tee", "pyomo/common/tests/test_tee.py::TestTeeStream::test_decoder_and_buffer_errors", "pyomo/common/tests/test_tee.py::TestTeeStream::test_err_and_out_are_different", "pyomo/common/tests/test_tee.py::TestTeeStream::test_merge_out_and_err", "pyomo/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
8854b9f00aa335d1f3476700f163bfc523a73d5f
2023-11-29 17:02:02
docker.io/swerebenchv2/ecmwf-earthkit-data:265-8854b9f
ecmwf__earthkit-data-265
Method: FieldList.indices(self, squeeze=False) Location: earthkit/data/core/fieldlist.py Inputs: squeeze (bool, optional) – if True, returns only metadata keys that have more than one distinct value across the fields. Outputs: dict – mapping each metadata key to a list of its values for all fields; when squeeze=True, o...
python
Apache-2.0
diff --git a/.gitignore b/.gitignore index 8456551..fe6a017 100644 --- a/.gitignore +++ b/.gitignore @@ -359,3 +359,5 @@ notebooks/data/*/ # local code _dev + +test.db diff --git a/earthkit/data/core/fieldlist.py b/earthkit/data/core/fieldlist.py index b44c1db..03ed322 100644 --- a/earthkit/data/core/fieldlist.py +...
Fix indices() on fieldlist filtered with sel() Fixes #264
Weird behaviour of indices() function ### What happened? When I create a first FieldList object and call the fl.indices() function, I get a nice dictionary of metadata like this one: ``` {'class': ['od'], 'stream': ['enfo'], 'levtype': ['sfc'], 'type': ['pf'], 'expver': ['0001'], 'date': [20231128], 'time': [1200], ...
ecmwf/earthkit-data
diff --git a/tests/grib/test_grib_inidces.py b/tests/grib/test_grib_inidces.py new file mode 100644 index 0000000..9d4f52b --- /dev/null +++ b/tests/grib/test_grib_inidces.py @@ -0,0 +1,195 @@ +#!/usr/bin/env python3 + +# (C) Copyright 2020 ECMWF. +# +# This software is licensed under the terms of the Apache Licence Ve...
[ "tests/grib/test_grib_inidces.py::test_grib_indices_sel[file]", "tests/grib/test_grib_inidces.py::test_grib_indices_sel[numpy_fs]", "tests/grib/test_grib_inidces.py::test_grib_indices_multi_Del[numpy_fs]", "tests/grib/test_grib_inidces.py::test_grib_indices_order_by[file]", "tests/grib/test_grib_inidces.py:...
[ "tests/grib/test_grib_inidces.py::test_grib_indices_base[file]", "tests/grib/test_grib_inidces.py::test_grib_indices_base[numpy_fs]", "tests/grib/test_grib_inidces.py::test_grib_indices_multi[file]", "tests/grib/test_grib_inidces.py::test_grib_indices_multi[numpy_fs]", "tests/grib/test_grib_inidces.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": [], "intent_completeness": "complete", "pr_categories":...
2a8017076e0a4669f2e2e55e2198aadacb13bb83
2024-08-07 11:17:30
docker.io/swerebenchv2/getmoto-moto:7943-2a80170
getmoto__moto-7943
Method: service_whitelisted(service: str) → bool Location: moto/core/config.py Inputs: - service (str): the name of the AWS service being accessed. Outputs: - Returns True if the service is either not restricted by a whitelist or is explicitly present in the configured service whitelist; otherwise returns False. Desc...
python
Apache-2.0
diff --git a/docs/docs/configuration/index.rst b/docs/docs/configuration/index.rst index 9466d7497..ba0b50358 100644 --- a/docs/docs/configuration/index.rst +++ b/docs/docs/configuration/index.rst @@ -20,6 +20,7 @@ If you are using the decorators, some options are configurable within the decora "servic...
S3: copy_object() now respects the CopySourceIfNoneMatch-parameter Fixes #7868 All modified tests are verified against AWS.
s3 copy_from w/ CopySourceIfNoneMatch with same etag does not result in a PreconditionFailed error when mocked Given a bucket with an existing object's e_tag, *xyz*, with the following bits of code: ``` s3 = boto3.resource("s3") obj = s3.Object("bucketName", "keyOfObject") # keyOfObject has etag "xyz"; bucketName ...
getmoto/moto
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 000000000..f723cf5f3 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,18 @@ +import boto3 +import pytest + +from moto import mock_aws + + +@pytest.fixture(scope="function") +def account_id(): + """Return the current Account ID. Will reach ...
[ "tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_can_be_updated_by_cloudformation", "tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_can_be_deleted_by_cloudformation", "tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_with_code_image_can_be_created", "te...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/lates...
1fa24f3a6522f37f3b99307a955c953b7e8febcd
2024-05-06 20:20:16
docker.io/swerebenchv2/mill1000-midea-msmart:123-1fa24f3
mill1000__midea-msmart-123
No new interfaces are introduced.
python
MIT
diff --git a/msmart/device/AC/command.py b/msmart/device/AC/command.py index 80b616a..7944dea 100644 --- a/msmart/device/AC/command.py +++ b/msmart/device/AC/command.py @@ -356,10 +356,12 @@ class Response(): Frame.validate(frame_mv) # Fetch the appropriate response class from the ID + ...
Ignore "capability" responses with unexpected frame type. Close #122 Add test case to ensure 0xB5 responses with different frame types are ignored.
Ignore "capability" responses (0xB5) with a frame type of 0x05 Originally noticed in the debug log from this post. > [midea_msmart.debug_3.log](https://github.com/mill1000/midea-ac-py/files/15209814/midea_msmart.debug_3.log) _Originally posted by @v1k70rk4 in https://github.com/mill1000/midea-ac-py/issues/122#iss...
mill1000/midea-msmart
diff --git a/msmart/device/AC/test_command.py b/msmart/device/AC/test_command.py index cc171e9..11e963a 100644 --- a/msmart/device/AC/test_command.py +++ b/msmart/device/AC/test_command.py @@ -662,6 +662,17 @@ class TestPropertiesResponse(_TestResponseBase): self.assertEqual(resp.get_property(PropertyId.SWING_...
[ "msmart/device/AC/test_command.py::TestPropertiesResponse::test_properties_notify" ]
[ "msmart/device/AC/test_command.py::TestCommand::test_frame", "msmart/device/AC/test_command.py::TestStateResponse::test_message_additional_precision", "msmart/device/AC/test_command.py::TestStateResponse::test_message_checksum", "msmart/device/AC/test_command.py::TestStateResponse::test_message_v2", "msmart...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/mill1000/midea-ac-py/files/15209814/m...
24e6f29029bd64d36e35e2a3db6a30a162466414
2023-04-11 14:24:34
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2682-24e6f29
aws-cloudformation__cfn-lint-2682
Method: ZipPackageRequiredProperties.match(self, cfn) Location: src/cfnlint/rules/resources/lmbd/ZipPackageRequiredProperties.py Inputs: - **cfn**: CloudFormation template representation object that provides `get_resources` and `get_object_without_conditions` methods to query resources and handle conditional objects. ...
python
MIT-0
diff --git a/docs/rules.md b/docs/rules.md index 3099e5a0a..b1eff7a6e 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -46,7 +46,7 @@ To include these rules, use the `-e/include-experimental` argument when running ## Rules (_This documentation is generated by running `cfn-lint --update-documentation`, do not alter t...
New rule for Lambda zip deployment (closes #2676) Hi, implemented this new rule. what do you think? *quick failure test: `cfn-lint test/fixtures/templates/bad/resources/lambda/zipfile_required_properties.yaml`
New rule for package command and Lambda ### Is this feature request related to a new rule or cfn-lint capabilities? _No response_ ### Describe the feature you'd like to request Error message when using the package command and Lambda: `Runtime and Handler are mandatory parameters for functions created with deployment...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/bad/resources/lambda/required_properties.yaml b/test/fixtures/templates/bad/resources/lambda/required_properties.yaml new file mode 100644 index 000000000..c08705634 --- /dev/null +++ b/test/fixtures/templates/bad/resources/lambda/required_properties.yaml @@ -0,0 +1,32 @@ +AWSTempla...
[ "test/unit/rules/resources/lmbd/test_zip_package_required_properties.py::TestZipPackageRequiredProperties::test_file_negative", "test/unit/rules/resources/lmbd/test_zip_package_required_properties.py::TestZipPackageRequiredProperties::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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
02b4811478ee3b4c13e44fd501fafc9a5f75079f
2023-03-07 09:36:04
docker.io/swerebenchv2/enthought-envisage:508-02b4811
enthought__envisage-508
No new interfaces are introduced.
python
custom-check-github
diff --git a/envisage/api.py b/envisage/api.py index 7aba51bc..4edc9c72 100644 --- a/envisage/api.py +++ b/envisage/api.py @@ -25,8 +25,19 @@ Interfaces - :class:`~.IPluginManager` - :class:`~.IServiceRegistry` +Constants +--------- +- :data:`~.BINDINGS` +- :data:`~.COMMANDS` +- :data:`~.PREFERENCES` +- :data:`~.PR...
MAINT: allow users to import id constants from api Import ids constants in api, allow downstream users to import them from envisage.api. Closes #506
ids should be available from envisage.api id constants that are needed externally to Envisage (for example, ids for extension points like the `SERVICE_OFFERS` id, or ids for actual services) are currently available in `envisage.ids`. I think they should be made available in `envisage.api`, too, so that downstream users...
enthought/envisage
diff --git a/envisage/tests/test_api.py b/envisage/tests/test_api.py new file mode 100644 index 00000000..e11be465 --- /dev/null +++ b/envisage/tests/test_api.py @@ -0,0 +1,28 @@ +# (C) Copyright 2007-2023 Enthought, Inc., Austin, TX +# All rights reserved. +# +# This software is provided without warranty under the ter...
[ "envisage/tests/test_api.py::TestApi::test_import" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
62e44dbd336227c87ef0eca0bbcb64f29f203300
2024-04-19 19:26:40
docker.io/swerebenchv2/getmoto-moto:7608-62e44db
getmoto__moto-7608
Method: StepFunctionBackend.send_task_failure(self, task_token: str, error: Optional[str] = None) Location: moto/stepfunctions/models.py Inputs: - **task_token** (str): The opaque token that was returned by a “waitForTaskToken” integration and identifies the paused task. - **error** (Optional[str]): An optional er...
python
Apache-2.0
diff --git a/moto/stepfunctions/models.py b/moto/stepfunctions/models.py index ab20597db..d66100532 100644 --- a/moto/stepfunctions/models.py +++ b/moto/stepfunctions/models.py @@ -638,7 +638,7 @@ class StepFunctionBackend(BaseBackend): except StateMachineDoesNotExist: raise ResourceNotFound(resou...
SFN: send_task_success()/send_task_failure() fixes Fixes #7583
Cryptic error when using start_execution with Moto 5.0.5 ## Reporting Bugs Moto version: 5.0.5 Issue: Currently can not test `send_task_success` or `send_task_failure` with Moto 5.0.4+ yet due to the state machine doesn't run properly with `waitForTaskToken` integration type. Running following test snippet: ...
getmoto/moto
diff --git a/tests/test_stepfunctions/parser/templates/services/dynamodb_invalid_task_token.json b/tests/test_stepfunctions/parser/templates/services/dynamodb_invalid_task_token.json new file mode 100644 index 000000000..a9e05c7d2 --- /dev/null +++ b/tests/test_stepfunctions/parser/templates/services/dynamodb_invalid_t...
[ "tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put_wait_for_task_token", "tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put_fail_task_token" ]
[ "tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put", "tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put_wait_for_invalid_task_token", "tests/test_stepfunctions/parser/test_stepfunc...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
3e2d7e825cce2d06a35324772ade72483d7cdec1
2023-11-21 05:36:22
docker.io/swerebenchv2/slackapi-python-slack-sdk:1431-3e2d7e8
slackapi__python-slack-sdk-1431
Method: RichTextBlock.__init__(self, *, elements: Sequence[Union[dict, RichTextElement]], block_id: Optional[str] = None, **others) Location: slack_sdk/models/blocks/blocks.py Inputs: - elements – required list of rich‑text element dicts or RichTextElement objects (e.g., RichTextSectionElement, RichTextListElement, …)...
python
MIT
diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 87febae..96ecfb9 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -43,6 +43,12 @@ from .block_elements import StaticMultiSelectElement from .block_elements import StaticSelectElemen...
Fix #1428 Add rich_text classes to slack_sdk.models module ## Summary This pull request resolves #1428 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender...
Add rich_text classes to slack_sdk.models module I'm currently refactoring code using `slack_sdk` models, and most of my modals use `RichText` objects. I've noticed while available in Block Kit Builder and documented thoroughly, there is not a model for it. I created my own (I'd share, but the way it's constructed is s...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py index 5461ba8..4ea1158 100644 --- a/tests/slack_sdk/models/test_blocks.py +++ b/tests/slack_sdk/models/test_blocks.py @@ -22,6 +22,12 @@ from slack_sdk.models.blocks import ( HeaderBlock, VideoBlock, Option, + R...
[ "tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq", "tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2", "tests/slack_sdk/models/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.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/slackapi/python-slack-sdk/blob/main/...
e51fe9c381fe29c04a83d63c6d708d4af2bb7a63
2017-10-31 01:07:26
docker.io/swerebenchv2/quantumlib-openfermion:95-e51fe9c
quantumlib__openfermion-95
Method: QuadraticHamiltonian.majorana_form(self) Location: src/openfermion/ops/_quadratic_hamiltonian.py → class QuadraticHamiltonian Inputs: *self* – instance of QuadraticHamiltonian (must have initialized Hermitian and optional antisymmetric parts). Outputs: *(majorana_matrix, majorana_constant)* – a real‑value...
python
Apache-2.0
diff --git a/src/openfermion/ops/_quadratic_hamiltonian.py b/src/openfermion/ops/_quadratic_hamiltonian.py index 15cc467..fdd42be 100644 --- a/src/openfermion/ops/_quadratic_hamiltonian.py +++ b/src/openfermion/ops/_quadratic_hamiltonian.py @@ -17,7 +17,7 @@ from __future__ import absolute_import import numpy from ...
Ground state preparation circuits for QuadraticHamiltonian - Added method to obtain circuits for preparation of ground states of quadratic Hamiltonians - Slightly changed initialization of QuadraticHamiltonian so it doesn't store the antisymmetric part if it's not given Fixes #94 . Also, I must admit that I chea...
Circular dependency when importing from utils in ops I'm working on the file `ops/_quadratic_hamiltonian.py`. In there, I add the line ```from openfermion.utils._slater_determinants import swap_columns, swap_rows``` This causes the tests in the `hamiltonians` folder to fail; i.e., when I run `pytest hamiltonians/...
quantumlib/OpenFermion
diff --git a/src/openfermion/ops/_quadratic_hamiltonian_test.py b/src/openfermion/ops/_quadratic_hamiltonian_test.py index e852031..321f925 100644 --- a/src/openfermion/ops/_quadratic_hamiltonian_test.py +++ b/src/openfermion/ops/_quadratic_hamiltonian_test.py @@ -16,20 +16,29 @@ from __future__ import absolute_import ...
[ "src/openfermion/ops/_quadratic_hamiltonian_test.py::QuadraticHamiltoniansTest::test_antisymmetric_part", "src/openfermion/ops/_quadratic_hamiltonian_test.py::QuadraticHamiltoniansTest::test_combined_hermitian_part", "src/openfermion/ops/_quadratic_hamiltonian_test.py::QuadraticHamiltoniansTest::test_conserves_...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
33608211186638e0ab0c95403bf67ac13a94f10d
2024-06-17 16:35:12
docker.io/swerebenchv2/openmdao-openmdao:3277-3360821
openmdao__openmdao-3277
No new interfaces are introduced.
python
custom-check-github
diff --git a/benchmark/discrete_bench.py b/benchmark/discrete_bench.py new file mode 100644 index 000000000..97aa644aa --- /dev/null +++ b/benchmark/discrete_bench.py @@ -0,0 +1,132 @@ + +from openmdao.core.problem import Problem +from openmdao.core.indepvarcomp import IndepVarComp +from openmdao.core.explicitcomponent...
Attempting to speed up a discrete variable dependency check. ### Summary Modified the existing discrete var dependency check to be faster. ### Related Issues - Resolves #3272 ### Backwards incompatibilities None ### New Dependencies None
`_check_discrete_dependance` can become very slow for models with many discrete variable ### Description My team has recently move up to openmdao 3.33.0 (our project was previously pinned at 3.17.0, which was getting a little dated). Upon upgrading, it seems that many of the optimizations that used to sit in the 30 se...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_discrete.py b/openmdao/core/tests/test_discrete.py index 6cf447093..9579e5489 100644 --- a/openmdao/core/tests/test_discrete.py +++ b/openmdao/core/tests/test_discrete.py @@ -661,7 +661,7 @@ class DiscreteTestCase(unittest.TestCase): with self.assertRaises(Exception) as ct...
[ "openmdao/core/tests/test_discrete.py::DiscreteTestCase::test_deriv_err", "openmdao/error_checking/tests/test_check_config.py::TestCheckConfig::test_dataflow_1_level", "openmdao/error_checking/tests/test_check_config.py::TestCheckConfig::test_dataflow_multi_level", "openmdao/error_checking/tests/test_check_co...
[ "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_discrete_deriv_explicit", "openmdao/core/tests/test_discrete.py::DiscreteTest...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
25c862cd45b8ddf44011d0215ea365f52fbbf98b
2019-01-26 05:23:06
docker.io/swerebenchv2/pylons-waitress:232-25c862c
pylons__waitress-232
No new interfaces are introduced.
python
custom-check-github
diff --git a/waitress/task.py b/waitress/task.py index ec4dd7b..8e14b4f 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -535,9 +535,13 @@ class WSGITask(Task): forward_hop = forward_hop.strip() forward_hop = undquote(forward_hop) - # Make sure that all IPv6 add...
Fix/remote addr `REMOTE_ADDR` is inherited from the CGI spec, and it specifies that IP addresses should be placed in `REMOTE_ADDR`, and while IPv6 formatting allows for using brackets around the IP address, it is only generally done when you are also including the port number. The port number is in `REMOTE_PORT` (if...
[] notation for IPv6 with X-Forwarded-For After upgrading to Waitress 1.2.0 and letting it handle `X-Forwarded-For` headers, the WSGI environment `REMOTE_ADDR` is populated with IPv6 using the `[]` notation, for instance `'[2a02::1]'`. While the WSGI specification doesn't say anything about `REMOTE_ADDR`, it is a bi...
Pylons/waitress
diff --git a/waitress/tests/test_task.py b/waitress/tests/test_task.py index c141d79..23d92dc 100644 --- a/waitress/tests/test_task.py +++ b/waitress/tests/test_task.py @@ -989,7 +989,7 @@ class TestWSGITask(unittest.TestCase): trusted_proxy_headers={'x-forwarded-for'} ) - self.assertEqua...
[ "waitress/tests/test_task.py::TestWSGITask::test_parse_forwarded_multiple_proxies", "waitress/tests/test_task.py::TestWSGITask::test_parse_forwarded_multiple_proxies_minimal", "waitress/tests/test_task.py::TestWSGITask::test_parse_proxy_headers_forwarded_for_v6_missing_brackets" ]
[ "waitress/tests/test_task.py::TestThreadedTaskDispatcher::test_add_task", "waitress/tests/test_task.py::TestThreadedTaskDispatcher::test_add_task_defer_raises", "waitress/tests/test_task.py::TestThreadedTaskDispatcher::test_handler_thread_task_is_None", "waitress/tests/test_task.py::TestThreadedTaskDispatcher...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5b0be78117c9f7112718a594f378a94bef85af9a
2025-07-13 12:15:25
docker.io/swerebenchv2/jelmer-dulwich:1699-5b0be78
jelmer__dulwich-1699
No new interfaces are introduced.
python
custom-check-github
diff --git a/NEWS b/NEWS index 12bec7cf..8e34b36b 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,10 @@ * Add support for merge drivers. (Jelmer Vernooij) + * Add support for ``GIT_CONFIG_GLOBAL`` and ``GIT_CONFIG_SYSTEM`` + environment variables to override global and system configuration + paths. (Jelmer Vernooij, ...
Add support for GIT_CONFIG_GLOBAL and GIT_CONFIG_SYSTEM environment variables These variables allow overriding the default global and system configuration paths. Fixes #1193
Allow overriding of global and system configuration Git v2.32.0 introduced two new environment variables, `GIT_CONFIG_GLOBAL` and `GIT_CONFIG_SYSTEM`, for overriding global and system configurations which is especially useful for executing `git` commands in a sanitized environment. Since Dulwich already supports `GIT_C...
jelmer/dulwich
diff --git a/tests/test_config.py b/tests/test_config.py index 45e5c5ba..fb9530d9 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -851,6 +851,80 @@ class StackedConfigTests(TestCase): paths, ) + def test_git_config_global(self) -> None: + with tempfile.NamedTemporaryFil...
[ "tests/test_config.py::StackedConfigTests::test_git_config_global", "tests/test_config.py::StackedConfigTests::test_git_config_nosystem_precedence", "tests/test_config.py::StackedConfigTests::test_git_config_system" ]
[ "tests/test_config.py::ConfigFileTests::test_closing_bracket_within_section_string", "tests/test_config.py::ConfigFileTests::test_comment_after_section", "tests/test_config.py::ConfigFileTests::test_comment_after_variable", "tests/test_config.py::ConfigFileTests::test_comment_before_section", "tests/test_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/git/git/commit/4179b4897f2de28858ac...
641e5962f03d47d3fbad50abd683f0c340078b81
2023-02-21 22:05:58
docker.io/swerebenchv2/xknx-xknx:1204-641e596
xknx__xknx-1204
No new interfaces are introduced.
python
MIT
diff --git a/docs/changelog.md b/docs/changelog.md index 1277fa0c..5ba70d87 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,6 +12,10 @@ nav_order: 2 - When `ConnectionConfig.individual_address` is set and a Keyring is given `ConnectionType.AUTOMATIC` will try to connect to the host of this address. If ...
Lower log levels for unsupported Telegrams <!-- You are awesome! Thanks for contributing to our project! Please, DO NOT DELETE ANY TEXT from this template!. --> ## Description <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any ...
Unhandled management telegram warnings in HA log **Description of problem:** When programming a device from ETS and using the "Physikalische Adresse & Applikationsprogram" button, I receive these warnings in my HA log: ```plain 2023-02-21 13:27:30.393 WARNING (MainThread) [xknx.management] Unhandled management t...
XKNX/xknx
diff --git a/test/io_tests/routing_test.py b/test/io_tests/routing_test.py index 9f404ca4..eadb84ea 100644 --- a/test/io_tests/routing_test.py +++ b/test/io_tests/routing_test.py @@ -64,7 +64,7 @@ class TestRouting: ] await asyncio.sleep(0) # await local L_Data.con - @patch("logging.Logger.warni...
[ "test/io_tests/routing_test.py::TestRouting::test_routing_indication_received_apci_unsupported" ]
[ "test/io_tests/routing_test.py::TestRouting::test_request_received_callback", "test/io_tests/routing_test.py::TestRouting::test_routing_lost_message", "test/io_tests/routing_test.py::TestFlowControl::test_basic_throttling", "test/io_tests/routing_test.py::TestFlowControl::test_routing_busy" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/XKNX/xknx/files/10793589/config_ent...
580955d432b54bb372d610012b4ff1467426ab9a
2020-04-25 15:47:23
docker.io/swerebenchv2/sebrut-pygrocy:96-580955d
sebrut__pygrocy-96
Method: Grocy.chore(chore_id: int) -> Chore Location: class Grocy in pygrocy/grocy.py Inputs: - chore_id (int): identifier of the chore to retrieve. Outputs: - Chore: a domain‑level object representing the chore, independent of the raw server response. Description: Calls the underlying GrocyApiClient to fetch chore d...
python
MIT
diff --git a/pygrocy/grocy.py b/pygrocy/grocy.py index d494a0f..7dd9575 100644 --- a/pygrocy/grocy.py +++ b/pygrocy/grocy.py @@ -3,33 +3,48 @@ from typing import List from .grocy_api_client import (DEFAULT_PORT_NUMBER, ChoreDetailsResponse, CurrentChoreResponse, CurrentStockResponse, ...
finish abstraction from api fixes #95
complete abstraction on top of server data classes Currently, some methods in `Grocy` return response objects and some methods return objects independent of the server representation. In this issue, all methods in `Grocy` should be changed to return a representation of an entity which is independent of the representati...
SebRut/pygrocy
diff --git a/test/test_grocy.py b/test/test_grocy.py index c6ce810..a9135e8 100644 --- a/test/test_grocy.py +++ b/test/test_grocy.py @@ -76,7 +76,7 @@ class TestGrocy(TestCase): details_json = json.loads(details_json) responses.add(responses.GET, f"{self.base_url}/chores/1", json=details_json, status=...
[ "test/test_grocy.py::TestGrocy::test_get_chore_details_valid" ]
[ "test/test_grocy.py::TestGrocy::test_add_missing_product_to_shopping_list_error", "test/test_grocy.py::TestGrocy::test_add_product_error", "test/test_grocy.py::TestGrocy::test_add_product_pic_invalid_missing_data", "test/test_grocy.py::TestGrocy::test_add_product_pic_valid", "test/test_grocy.py::TestGrocy::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
d61eb8c4c8c5a4645e937913d60200d6ffd85799
2024-10-03 18:25:28
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3731-d61eb8c
aws-cloudformation__cfn-lint-3731
Method: GetAtt.fn_getatt(self, validator, schema, instance, path) Location: src/cfnlint/rules/functions/GetAtt.py → class GetAtt → method fn_getatt Inputs: - **validator** – CfnTemplateValidator instance providing context and schema resolution. - **schema** – JSON‑schema fragment that describes the expected type ...
python
MIT-0
diff --git a/scripts/update_snapshot_results.sh b/scripts/update_snapshot_results.sh index 6e02e683b..efb1b5d66 100755 --- a/scripts/update_snapshot_results.sh +++ b/scripts/update_snapshot_results.sh @@ -5,6 +5,7 @@ cfn-lint test/fixtures/templates/integration/dynamic-references.yaml -e -c I --f cfn-lint test/fixture...
Update GetAtt type checking *Issue #, if available:* fix #3725 #3370 *Description of changes:* - Update GetAtt type checking - Still maintains the validity of the issue reported in #3370 - Added integration tests to validate real world errors are properly happening By submitting this pull request, I confirm ...
Add a rule to avoid non-strings in template outputs ### Is this feature request related to a new rule or cfn-lint capabilities? _No response_ ### Describe the feature you'd like to request Recently I had an issue deploying to cloudformation and I found that the issue was an exported number value. Therefore I sugg...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/results/integration/getatt-types.json b/test/fixtures/results/integration/getatt-types.json new file mode 100644 index 000000000..bcf56c7db --- /dev/null +++ b/test/fixtures/results/integration/getatt-types.json @@ -0,0 +1,243 @@ +[ + { + "Filename": "test/fixtures/templates/integra...
[ "test/integration/test_integration_templates.py::TestQuickStartTemplates::test_templates", "test/unit/rules/functions/test_getatt.py::test_validate[Valid", "test/unit/rules/outputs/test_value.py::test_output_value[input1-expected1]", "test/unit/rules/outputs/test_value.py::test_output_value[input2-expected2]"...
[ "test/unit/rules/functions/test_getatt.py::test_validate[Invalid", "test/unit/rules/functions/test_length.py::test_validate[Fn::Length", "test/unit/rules/outputs/test_value.py::test_output_value[input0-expected0]", "test/unit/rules/outputs/test_value.py::test_output_value[input6-expected6]", "test/unit/rule...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://docs.aws.amazon.com/AWSCloudFormation/latest/U...
dcb523a30122bea51067c579b663c5671a23e4bd
2023-12-15 09:51:34
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1317-dcb523a
pyjanitor-devs__pyjanitor-1317
Method: DataFrame.change_index_dtype(self, dtype: Union[str, dict], axis: str = "index") Location: janitor/functions/change_index_dtype.py Inputs: - **self** – pandas DataFrame on which the method is invoked. - **dtype** – target dtype for the index/columns; either a single dtype (str, numpy/pandas dtype) appl...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index c6b874a..f03d56c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - [ENH] `conditional_join` now supports timedelta dtype. - PR #1297 @samukweku - [ENH] `get_join_indices` function added - returns only join indices between two dataframes. Issue #1310 @sa...
[ENH] change dtype of index # PR Description Please describe the changes proposed in the pull request: - change dtype of index/multiindex - reuses the existing codes(for MultiIndex) for perf **This PR resolves #1314 .** <!-- As you go down the PR template, please feel free to delete sections that are irrel...
dtype conversion on index # Brief Description <!-- Please provide a brief description of what you'd like to propose. --> I would like to propose a chainable method for index dtype conversion. # Example API ```python df.axis_astype(str, axis='index') ```
pyjanitor-devs/pyjanitor
diff --git a/tests/functions/test_change_index_dtype.py b/tests/functions/test_change_index_dtype.py new file mode 100644 index 0000000..e261156 --- /dev/null +++ b/tests/functions/test_change_index_dtype.py @@ -0,0 +1,116 @@ +import numpy as np +import pandas as pd +import pytest +from pandas.testing import assert_fra...
[ "tests/functions/test_change_index_dtype.py::test_type_axis", "tests/functions/test_change_index_dtype.py::test_axis_values", "tests/functions/test_change_index_dtype.py::test_type_dict_single_index", "tests/functions/test_change_index_dtype.py::test_multiindex_diff_key_types", "tests/functions/test_change_...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://stackoverflow.com/a/58328741/7175713" ], ...
e2f2c2452273935cbb394848c9bb79903ee0a545
2024-10-17 16:10:29
docker.io/swerebenchv2/crossgl-crosstl:207-e2f2c24
crossgl__crosstl-207
No new interfaces are introduced.
python
Apache-2.0
diff --git a/crosstl/src/backend/DirectX/DirectxLexer.py b/crosstl/src/backend/DirectX/DirectxLexer.py index c5a1574..d6632a3 100644 --- a/crosstl/src/backend/DirectX/DirectxLexer.py +++ b/crosstl/src/backend/DirectX/DirectxLexer.py @@ -45,6 +45,7 @@ TOKENS = [ ("DIVIDE_EQUALS", r"/="), ("ASSIGN_XOR", r"\^=")...
enh(directx): add directx backend support for ASSIGN_AND ### PR Description <!-- Provide a brief summary of the changes you have made. Explain the purpose and motivation behind these changes. --> Implementation details: - Add ASSIGN_AND token to lexer - Implement ASSIGN_AND parsing in directx parser Test det...
ASSIGN_AND : &=
CrossGL/crosstl
diff --git a/tests/test_backend/test_directx/test_codegen.py b/tests/test_backend/test_directx/test_codegen.py index ed7112b..55ed1be 100644 --- a/tests/test_backend/test_directx/test_codegen.py +++ b/tests/test_backend/test_directx/test_codegen.py @@ -386,7 +386,10 @@ def test_assignment_ops_parsing(): ou...
[ "tests/test_backend/test_directx/test_codegen.py::test_assignment_ops_parsing", "tests/test_backend/test_directx/test_lexer.py::test_assignment_ops_tokenization", "tests/test_backend/test_directx/test_parser.py::test_assignment_ops_parsing" ]
[ "tests/test_backend/test_directx/test_codegen.py::test_struct_codegen", "tests/test_backend/test_directx/test_codegen.py::test_if_codegen", "tests/test_backend/test_directx/test_codegen.py::test_for_codegen", "tests/test_backend/test_directx/test_codegen.py::test_while_codegen", "tests/test_backend/test_dir...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
eed37f681b2baf007034a453193d8e314c3c15f4
2022-07-16 20:51:02
docker.io/swerebenchv2/hypothesisworks-hypothesis:3409-eed37f6
hypothesisworks__hypothesis-3409
Function: complex_numbers(min_magnitude: Optional[Real] = None, max_magnitude: Optional[Real] = None, allow_infinity: Optional[bool] = None, allow_nan: Optional[bool] = None, allow_subnormal: bool = True) Location: hypothesis.strategies Inputs: optional numeric bounds (min_magnitude, max_magnitude) for the magnitude of...
python
custom-check-github
diff --git a/AUTHORS.rst b/AUTHORS.rst index ae41da8e3..4ea8610e7 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -51,6 +51,7 @@ their individual contributions. * `Eduardo Enriquez <https://www.github.com/eduzen>`_ (eduardo.a.enriquez@gmail.com) * `El Awbery <https://www.github.com/ElAwbery>`_ * `Emmanuel Leblond <htt...
Allow subnormal in complex_numbers Fixes #3390. Adds the `allow_subnormal` argument to `complex_numbers` by applying it to both the real and imaginary parts separately.
`allow_subnormal` keyword for `complex_numbers` I would like to be able to exclude subnormals from the floats drawn (or more specifically the resulting imaginary and real parts of the constructed complex number) in the `complex_numbers` strategy, but that's currently not possible. Has this been considered already? ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_complex_numbers.py b/hypothesis-python/tests/cover/test_complex_numbers.py index 107555ffe..90dc65cab 100644 --- a/hypothesis-python/tests/cover/test_complex_numbers.py +++ b/hypothesis-python/tests/cover/test_complex_numbers.py @@ -11,10 +11,13 @@ import math import sy...
[ "hypothesis-python/tests/cover/test_complex_numbers.py::test_allow_subnormal[True-0-None]", "hypothesis-python/tests/cover/test_complex_numbers.py::test_allow_subnormal[True-1-None]", "hypothesis-python/tests/cover/test_complex_numbers.py::test_allow_subnormal[False-0-None]", "hypothesis-python/tests/cover/te...
[ "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal_nonzero_real", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minimal_nonzero_imaginary", "hypothesis-python/tests/cover/test_complex_numbers.py::test_minim...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": [], "intent_completeness": "partial", "pr_categories": ...
3ae39419c050c54df37dfb79107cd93c3598e116
2025-01-08 19:03:29
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3900-3ae3941
aws-cloudformation__cfn-lint-3900
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py index a9f4aa5e4..244d8df77 100644 --- a/src/cfnlint/config.py +++ b/src/cfnlint/config.py @@ -785,9 +785,11 @@ class ConfigMixIn(TemplateArgs, CliArgs, ConfigFileArgs): if isinstance(filenames, str): filenames = [filenames] - retu...
Don't fail when ignore templates is empty or not findable *Issue #, if available:* fix #3881 *Description of changes:* - Don't fail when ignore templates is empty or not findable By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of yo...
cfn-lint considers configuration broken when ignore_templates doesn't match any files ### CloudFormation Lint Version 1.22.0 ### What operating system are you using? Linux ### Describe the bug cfn-lint considers configuration broken when ignore_templates doesn't match any files We've added `node_modules/**` to ...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/config/test_config_mixin.py b/test/unit/module/config/test_config_mixin.py index 9e584ead0..cbed4b458 100644 --- a/test/unit/module/config/test_config_mixin.py +++ b/test/unit/module/config/test_config_mixin.py @@ -247,6 +247,28 @@ class TestConfigMixIn(BaseTestCase): ) s...
[ "test/unit/module/config/test_config_mixin.py::TestConfigMixIn::test_config_expand_and_ignore_templates_with_bad_path" ]
[ "test/unit/module/config/test_config_mixin.py::TestConfigMixIn::test_config_all_regions", "test/unit/module/config/test_config_mixin.py::TestConfigMixIn::test_config_default_region", "test/unit/module/config/test_config_mixin.py::TestConfigMixIn::test_config_expand_ignore_templates", "test/unit/module/config/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/aws-cloudformation/cfn-lint/blob/f920...
c9b78a52212ded30883f71aacdc9e81914221eb4
2021-07-20 16:30:28
docker.io/swerebenchv2/pennylaneai-pennylane:1464-c9b78a5
pennylaneai__pennylane-1464
Function: commute_controlled(qfunc: Callable, direction: str = "right") Location: pennylane.transforms.optimization.commute_controlled.commute_controlled Inputs: direction (str) – must be either "left" or "right"; determines the direction in which commuting single‑qubit gates are pushed through controlled operations. T...
python
Apache-2.0
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index e848655ed..746f13a01 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,6 +2,33 @@ <h3>New features since last release</h3> +* A new quantum function transform has been added to push commuting + single-qubit gates through controlled op...
Implement transform to push commuting operations through controlled gates **Context:** Addition of compilation transforms to PennyLane. **Description of the Change:** Adds a new transform, `commute_controlled` that pushes commuting gates through controls/targets of controlled operations. All diagonal gates are pushe...
All controlled operations should belong to the class `Controlled` #### Issue description Most of controlled gates are not in the `ControlledOperation` class, therefore you cannot easily check if an operation is controlled and you cannot access the control wires directly if you don't know the operation. Because of th...
PennyLaneAI/pennylane
diff --git a/tests/transforms/test_optimization/test_commute_controlled.py b/tests/transforms/test_optimization/test_commute_controlled.py new file mode 100644 index 000000000..f02a2306c --- /dev/null +++ b/tests/transforms/test_optimization/test_commute_controlled.py @@ -0,0 +1,440 @@ +# Copyright 2018-2021 Xanadu Qua...
[ "tests/transforms/test_optimization/test_commute_controlled.py::TestCommuteControlled::test_invalid_direction", "tests/transforms/test_optimization/test_commute_controlled.py::TestCommuteControlled::test_gate_with_no_basis[left]", "tests/transforms/test_optimization/test_commute_controlled.py::TestCommuteContro...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/PennyLaneAI/pennylane/pull/1446" ...
570825a5913a0d4e7da9b54a3bf3680e7e3b52eb
2023-04-22 04:22:30
docker.io/swerebenchv2/pycqa-docformatter:177-570825a
pycqa__docformatter-177
No new interfaces are introduced.
python
MIT
diff --git a/src/docformatter/format.py b/src/docformatter/format.py index d846361..d8bbbb9 100644 --- a/src/docformatter/format.py +++ b/src/docformatter/format.py @@ -29,6 +29,7 @@ import argparse import collections import contextlib import io +import re import tokenize from typing import TextIO, Tuple @@ -587...
fix: remove blank after comment Fixes problem with docformatter removing the blank following a class docstring when the docstring is followed by a comment. Closes #176.
Blank line removal incompatible with black If a class docstring contains a line that is too long and cannot be reformatted, passing flake8 can be done by appending a `#noqa` to the docstring. The following was not modified with` docformatter` 1.5.1 and `black` when triggered by `pre-commit`: ```python class C: ...
PyCQA/docformatter
diff --git a/tests/test_format_docstring.py b/tests/test_format_docstring.py index bfc2f6a..e4cdfe4 100644 --- a/tests/test_format_docstring.py +++ b/tests/test_format_docstring.py @@ -366,6 +366,49 @@ class AcceptLanguageHeader(ExtendedSchemaNode): \ # FIXME: oneOf validator for supported languages (?)' ...
[ "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_leave_blank_line_after_comment[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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
7364e13bf2546f3728e68d6a8c88a6fc66039e58
2023-12-22 12:00:32
docker.io/swerebenchv2/researchobject-ro-crate-py:170-7364e13
researchobject__ro-crate-py-170
No new interfaces are introduced.
python
Apache-2.0
diff --git a/rocrate/model/file.py b/rocrate/model/file.py index 9251aeb..a5d1c43 100644 --- a/rocrate/model/file.py +++ b/rocrate/model/file.py @@ -59,6 +59,7 @@ class File(FileOrDir): if self.fetch_remote: out_file_path.parent.mkdir(parents=True, exist_ok=True) ...
Add contentUrl when fetching remote files Closes #133.
Add contentUrl property to files when it's known E.g., when a remote file is added with `fetch_remote=True`. See https://github.com/ResearchObject/ro-crate/pull/189#issuecomment-1227697348.
ResearchObject/ro-crate-py
diff --git a/test/test_write.py b/test/test_write.py index 10f0ec3..6fb57b6 100644 --- a/test/test_write.py +++ b/test/test_write.py @@ -150,6 +150,7 @@ def test_remote_uri(tmpdir, helpers, fetch_remote, validate_url, to_zip): if fetch_remote: out_file = out_crate.dereference(file_.id) assert (ou...
[ "test/test_write.py::test_remote_uri[True-False-False]", "test/test_write.py::test_remote_uri[True-False-True]", "test/test_write.py::test_remote_uri[True-True-False]", "test/test_write.py::test_remote_uri[True-True-True]" ]
[ "test/test_write.py::test_file_writing[False-False]", "test/test_write.py::test_file_writing[False-True]", "test/test_write.py::test_file_writing[True-False]", "test/test_write.py::test_file_writing[True-True]", "test/test_write.py::test_in_mem_stream[BytesIO]", "test/test_write.py::test_in_mem_stream[Str...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/ResearchObject/ro-crate/pull/189#issu...
cf7c50e41c6d1da5ee39efb5cab177fb543435dd
2019-07-11 20:00:47
docker.io/swerebenchv2/vmware-tern:360-cf7c50e
vmware__tern-360
Method: Package.checksum(self) Location: tern/classes/package.py Inputs: None (accesses the internal checksum value) Outputs: str – the current checksum of the package Description: Returns the stored checksum string associated with the package. Method: Package.checksum(self, checksum) Location: tern/classes/packa...
python
BSD-2-Clause
diff --git a/tern/classes/package.py b/tern/classes/package.py index 1cce92a..a3cc6da 100644 --- a/tern/classes/package.py +++ b/tern/classes/package.py @@ -18,6 +18,7 @@ class Package: proj_url: package source url download_url: package download url origins: a list of NoticeOrigin objects + ...
Added Checksum as a Package Property Resolves #183 Adds the checksum as a Package property with empty string as default value. Changes are made in Package class where new attrribute, its getter and setter are added. Tests are also added in test_class_pacakge for value, getter, setter, fill, and equal functions. ...
Add checksum as a Package property **Describe the Feature** Add `checksum` as a Package property. **Use Cases** Specifically, this is a property that SPDX documents use. More generally, This is a good way to check for any discrepancies even if the package manager has the same metadata and can detect some corner ca...
vmware/tern
diff --git a/tests/test_class_package.py b/tests/test_class_package.py index b491030..314e455 100644 --- a/tests/test_class_package.py +++ b/tests/test_class_package.py @@ -19,6 +19,7 @@ class TestClassPackage(unittest.TestCase): self.p1.copyright = 'All Rights Reserved' self.p1.proj_url = 'github.com...
[ "tests/test_class_package.py::TestClassPackage::testFill", "tests/test_class_package.py::TestClassPackage::testInstance" ]
[ "tests/test_class_package.py::TestClassPackage::testGetPackageId", "tests/test_class_package.py::TestClassPackage::testGetters", "tests/test_class_package.py::TestClassPackage::testIsEqual", "tests/test_class_package.py::TestClassPackage::testSetters", "tests/test_class_package.py::TestClassPackage::testToD...
{ "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": [...
26478c70cf35a513f4b5a8774c867dec286b2b93
2021-09-18 22:55:57
docker.io/swerebenchv2/vitalik-django-ninja:228-26478c7
vitalik__django-ninja-228
Method: create(request, item: Item = Form(...)) Location: docs/src/tutorial/form/code01.py Inputs: - request – Django HttpRequest object (automatically provided by Ninja). - item – an instance of the Item Schema parsed from `application/x-www-form-urlencoded` form data; required fields `name` (str), `price` (float), ...
python
MIT
diff --git a/docs/docs/help.md b/docs/docs/help.md index 5f6f0e0..d5e3a26 100644 --- a/docs/docs/help.md +++ b/docs/docs/help.md @@ -8,7 +8,7 @@ Simply give django-ninja a <a href="https://github.com/vitalik/django-ninja" tar or share this URL on social media: ``` -http://django-ninja.rest-framework.com +https://d...
Document how to handle empty form fields. Closes #128, since other issues there, were already dealt with via #226
Documentation Error on POSTing data Hello, I have a POST endpoint, with this params: ```python @router.post('/v1/update') def update(request, id: int=Form(...), descricao: str=Form(None), id_reporte: int=Form(None), id_tipo: int=Form(None), id_usuario: int=Form(None), is_active: bool=Form(None)): try: ...
vitalik/django-ninja
diff --git a/tests/test_docs/test_form.py b/tests/test_docs/test_form.py new file mode 100644 index 0000000..0bc3597 --- /dev/null +++ b/tests/test_docs/test_form.py @@ -0,0 +1,53 @@ +from unittest.mock import patch + +from ninja import NinjaAPI +from ninja.testing import TestClient + + +def test_examples(): + + api...
[ "tests/test_docs/test_form.py::test_examples" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
39d2c53b337500d60c09745e7a95eb16afa1f30c
2025-06-30 15:34:18
docker.io/swerebenchv2/conan-io-conan:18572-39d2c53
conan-io__conan-18572
Method: Premake.build(self, workspace, targets=None, msbuild_platform=None) Location: conan/tools/premake/premake.py Inputs: - workspace (str): name of the solution/workspace to build (used by MSBuild). - targets (list[str] or None): specific project names to build; if None all projects are built. - msbuild_platform (...
python
MIT
diff --git a/conan/tools/premake/premake.py b/conan/tools/premake/premake.py index 606808063..2d90af900 100644 --- a/conan/tools/premake/premake.py +++ b/conan/tools/premake/premake.py @@ -66,7 +66,7 @@ class Premake: """ if self._premake_conan_toolchain.exists(): content = Template(self....
Preamke generator: fix some issues with windows paths and MSBuild Changelog: Feature: Allow defining a custom platform on Premake generator for Windows Docs: omit Fixes #18570 Docs generated by autoclass (sphinx) - [x] Refer to the issue that supports this Pull Request. - [x] If the issue has missing info, ...
[bug] Feedback for experimental Premake Generator (wxsqlite3) ### Describe the bug Thank you for introducing the new Premake generator in [this pull request](https://github.com/conan-io/conan/pull/17898). I tested it by creating a recipe for [wxsqlite3](https://github.com/utelle/wxsqlite3) and encountered a few issues...
conan-io/conan
diff --git a/test/integration/toolchains/premake/test_premake.py b/test/integration/toolchains/premake/test_premake.py index b6faeef54..b1ca86e29 100644 --- a/test/integration/toolchains/premake/test_premake.py +++ b/test/integration/toolchains/premake/test_premake.py @@ -2,6 +2,7 @@ import textwrap from conan.test....
[ "test/integration/toolchains/premake/test_premake.py::test_premake_msbuild_platform" ]
[ "test/integration/toolchains/premake/test_premake.py::test_premake_args_without_toolchain", "test/integration/toolchains/premake/test_premake.py::test_premake_build_without_toolchain", "test/integration/toolchains/premake/test_premake.py::test_premake_build", "test/integration/toolchains/premake/test_premake....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/conan-io/conan/pull/17898", "...
a6b10db3882fe464898f1ffaa6fbba6fc390f894
2020-04-27 19:32:20
docker.io/swerebenchv2/pallets-click:1543-a6b10db
pallets__click-1543
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/src/click/_compat.py b/src/click/_compat.py index ed57a18..60cb115 100644 --- a/src/click/_compat.py +++ b/src/click/_compat.py @@ -174,8 +174,6 @@ if PY2: iteritems = lambda x: x.iteritems() range_type = xrange - from pipes import quote as shlex_quote - def is_bytes(x): return...
Revert "Use shlex.quote for quoting shell arguments" This caused issues if the pager/editor command had options like `less -FRSX`, they would then get quoted as a single word rather than `less` then `-FRSX`. `shlex.quote` doesn't seem to do the right thing on Windows cmd. Using `shlex.split` on the command first wou...
echo_via_pager broken on Windows in 7.1 Calls to `click.echo_via_pager` are failing on Windows since upgrading to 7.1 ### Expected behavior (7.0) ``` Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information....
pallets/click
diff --git a/tests/test_imports.py b/tests/test_imports.py index b99d453..e309eac 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -49,7 +49,6 @@ ALLOWED_IMPORTS = { "fcntl", "datetime", "pipes", - "shlex", } if WIN:
[ "tests/test_imports.py::test_light_imports" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "complete", "pr_categories":...
4ce0f2344c09725e2e44e6cc7b85ce30593e3438
2023-10-13 03:25:02
docker.io/swerebenchv2/mandarons-icloud-drive-docker:162-4ce0f23
mandarons__icloud-drive-docker-162
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/README.md b/README.md index f88aa18a..ce1fdf9a 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,13 @@ services: - PUID=<insert the output of `id -u $user`> - GUID=<insert the output of `id -g $user`> env_file: - - .env.icloud #should contain ENV_ICLOUD_PASSWORD=<password> + ...
Override config path via environment variable ENV_CONFIG_FILE_PATH Closes #157
[FEATURE] Override config path via environment variable ENV_CONFIG_FILE_PATH **Use case** In my setup icloud-drive-docker is created by a docker-compose file. I use a large chain of tools to control my environment, so I have a project in my private gitlab, which will setup the container from the docker-compose file vi...
mandarons/icloud-drive-docker
diff --git a/tests/__init__.py b/tests/__init__.py index 4652d32b..8bc3cdda 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -10,6 +10,7 @@ from src import usage DATA_DIR = os.path.join(os.path.dirname(__file__), "data") CONFIG_PATH = os.path.join(DATA_DIR, "test_config.yaml") +ENV_CONFIG_PATH = os.path.jo...
[ "tests/test_config_parser.py::TestConfigParser::test_get_all_albums_empty", "tests/test_config_parser.py::TestConfigParser::test_get_all_albums_false", "tests/test_config_parser.py::TestConfigParser::test_get_all_albums_true", "tests/test_config_parser.py::TestConfigParser::test_get_drive_sync_interval", "t...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
16dae46b154dd755c18e941409b4ec771f5e2ca5
2017-08-12 11:07:35
docker.io/swerebenchv2/openmined-pysyft:122-16dae46
openmined__pysyft-122
Method: TensorBase.shape(self) Location: syft/tensor.py (class TensorBase) Inputs: None (instance method; operates on the internal `self.data` ndarray) Outputs: Returns a tuple representing the shape of the underlying ndarray (`self.data.shape`). Returns `NotImplemented` when the tensor is encrypted. Description: Provi...
python
Apache-2.0
diff --git a/syft/tensor.py b/syft/tensor.py index 6d1ce8dc30..7d549da9bb 100644 --- a/syft/tensor.py +++ b/syft/tensor.py @@ -8,7 +8,7 @@ def _ensure_ndarray(arr): class TensorBase(object): """ - A base tensor class that perform basic element-wise operation such as + A base tensor class that perform bas...
Default sum/shape Functionality for Base Tensor Type (Issues #10 and #102) Fixes #102
Implement Default sum Functionality for Base Tensor Type **User Story A:** As a Data Scientist using Syft's Base Tensor type, I want to leverage a default method for computing operations on a Tensor of arbitrary type. For this ticket to be complete, sum() should return a new tensor. For a reference on the operation thi...
OpenMined/PySyft
diff --git a/tests/test_tensor.py b/tests/test_tensor.py index ae9cb22b63..8222b8250d 100644 --- a/tests/test_tensor.py +++ b/tests/test_tensor.py @@ -7,7 +7,7 @@ class AddTests(unittest.TestCase): def testSimple(self): t = TensorBase(np.array([1,2,3])) self.assertTrue(np.array_equal(t + np.array...
[ "tests/test_tensor.py::ShapeTests::testShape", "tests/test_tensor.py::SumTests::testDimIsNotNoneInt", "tests/test_tensor.py::SumTests::testDimNoneInt" ]
[ "tests/test_tensor.py::AddTests::testInplace", "tests/test_tensor.py::AddTests::testScalar", "tests/test_tensor.py::AddTests::testSimple", "tests/test_tensor.py::SubTests::testInplace", "tests/test_tensor.py::SubTests::testScalar", "tests/test_tensor.py::SubTests::testSimple", "tests/test_tensor.py::Mul...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://pytorch.org/docs/master/tensors.html" ], ...
b285d0c2e65f546d340b7cac75dbb9f74267bc23
2021-10-13 15:01:59
docker.io/swerebenchv2/pallets-jinja:1511-b285d0c
pallets__jinja-1511
Method: Environment.concat(self, values) Location: class **Environment** (src/jinja2/environment.py) – a class attribute used by ``Template.render`` to post‑process the raw rendered output. Inputs: • ``values`` – an ``Iterable[Any]`` (e.g., list, generator, or chain of rendered fragments). The iterable may contain ...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 63df08a1..d641712d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,8 @@ Unreleased ``resolve``. - ``unicode_urlencode`` is renamed to ``url_quote``. +- Add support for native types in macros. :issue:`1510` + Version 3.0.3 ------------- diff --...
Support native types in macros <!-- Before opening a PR, open a ticket describing the issue or feature the PR will address. Follow the steps in CONTRIBUTING.rst. Replace this comment with a description of the change. Describe how it addresses the linked ticket. --> <!-- Link to relevant issues or previous PRs,...
Native types for macros With [native types](https://jinja.palletsprojects.com/en/3.0.x/nativetypes/) we can template out native Python types, which is useful in for example Ansible. It seems that macros always generate strings though, even in a native environment. Would it be possible to make macros output native ty...
pallets/jinja
diff --git a/tests/test_nativetypes.py b/tests/test_nativetypes.py index 9bae938c..8c852525 100644 --- a/tests/test_nativetypes.py +++ b/tests/test_nativetypes.py @@ -153,3 +153,10 @@ def test_leading_spaces(env): t = env.from_string(" {{ True }}") result = t.render() assert result == " True" + + +def te...
[ "tests/test_nativetypes.py::test_macro" ]
[ "tests/test_nativetypes.py::test_is_defined_native_return", "tests/test_nativetypes.py::test_undefined_native_return", "tests/test_nativetypes.py::test_adding_undefined_native_return", "tests/test_nativetypes.py::test_cast_int", "tests/test_nativetypes.py::test_list_add", "tests/test_nativetypes.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://jinja.palletsprojects.com/en/3.0.x/nativetypes...
267acec25a1a80ea8aa7fe6f1d6c5d99e097c7f8
2023-03-06 20:23:58
docker.io/swerebenchv2/pallets-werkzeug:2615-267acec
pallets__werkzeug-2615
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 87148b10..1f49ad50 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -35,6 +35,8 @@ Unreleased - ``parse_options_header`` is 2-3 times faster. It conforms to :rfc:`9110`, some invalid parts that were previously accepted are now ignored. :issue:`1628` - The ``is_filena...
improve `parse_accept_header` Use `parse_list_header` and `parse_options_header` (improved in #2614) to parse accept headers instead of a custom regex. RFC 9110 dropped support for extra parameters after `q`, so this just treats any parameters besides `q` as part of the media query. Items with an invalid quality value ...
If the "Accept" header contains a media-type with a quoted parameter including a space, the resulting MIMEAccept instance is incorrect According to [RFC 2045 Section 5.1](https://tools.ietf.org/html/rfc2045#section-5.1), mime-type parameters can be quoted. As additional reference, the `quoted-string` is defined in [RFC...
pallets/werkzeug
diff --git a/tests/test_http.py b/tests/test_http.py index 9c6ff6d2..0a02f1d7 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -21,6 +21,10 @@ class TestHTTPUtility: pytest.raises(ValueError, a.index, "de") assert a.to_header() == "en-us,ru;q=0.5" + def test_accept_parameter_with_space...
[ "tests/test_http.py::TestHTTPUtility::test_accept_parameter_with_space" ]
[ "tests/test_http.py::TestHTTPUtility::test_accept", "tests/test_http.py::TestHTTPUtility::test_mime_accept", "tests/test_http.py::TestHTTPUtility::test_accept_matches", "tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity", "tests/test_http.py::TestHTTPUtility::test_charset_accept", "tests/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://tools.ietf.org/html/rfc2045#section-5.1", ...
e0ff5246e1d29b7710ab1a2bbc972b48169f1c05
2024-08-07 14:05:03
docker.io/swerebenchv2/aio-libs-aiohttp:8632-e0ff524
aio-libs__aiohttp-8632
Method: BaseConnector.allowed_protocol_schema_set(self) Location: aiohttp.connector.BaseConnector class attribute Inputs: None (attribute read on an instance or class) Outputs: frozenset of allowed URL scheme strings; defaults to {"", "http", "https", "ws", "wss"} (high‑level protocols) Description: Provides the set o...
python
custom-check-github
diff --git a/CHANGES/8632.bugfix.rst b/CHANGES/8632.bugfix.rst new file mode 100644 index 000000000..c6da81d7a --- /dev/null +++ b/CHANGES/8632.bugfix.rst @@ -0,0 +1,1 @@ +Fixed connecting to ``npipe://``, ``tcp://``, and ``unix://`` urls -- by :user:`bdraco`. diff --git a/aiohttp/client.py b/aiohttp/client.py index 32...
Fix connecting to npipe://, tcp://, and unix:// urls <!-- Thank you for your contribution! --> ## What do these changes do? Fixes a regression in 3.10.x connecting to `npipe://`, `tcp://`, and `unix://` urls A future PR should remove `allowed_protocol_schema_set` in `BaseConnector` as its only there for backwa...
Error while trying to use unix socket, when `aiohttp`>=3.10 ## Long story short <!-- Please describe your problem and why the fix is important. --> * Expected behaviour: Communicating via unix socket should work. * Actual behaviour: Error. Its traceback: ``` Traceback (most recent call last): File "/tmp/aio...
aio-libs/aiohttp
diff --git a/tests/test_client_session.py b/tests/test_client_session.py index f7506c880..e90f42665 100644 --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -28,7 +28,7 @@ from aiohttp import client, hdrs, tracing, web from aiohttp.client import ClientSession from aiohttp.client_proto import Re...
[ "tests/test_client_session.py::test_ws_connect_unix_socket_allowed_protocols[pyloop-unix]", "tests/test_connector.py::test_tcp_connector_allowed_protocols[pyloop]", "tests/test_connector.py::test_base_connector_allows_high_level_protocols[pyloop]", "tests/test_connector.py::test_unix_connector[pyloop]" ]
[ "tests/test_client_session.py::test_close_coro[pyloop]", "tests/test_client_session.py::test_init_headers_simple_dict[pyloop]", "tests/test_client_session.py::test_init_headers_list_of_tuples[pyloop]", "tests/test_client_session.py::test_init_headers_MultiDict[pyloop]", "tests/test_client_session.py::test_i...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
d60c16f712e5caf806e3c0ed40eac385a9d2e18a
2023-07-20 18:28:22
docker.io/swerebenchv2/python-markdown-markdown:1361-d60c16f
python-markdown__markdown-1361
Method: markdown.Markdown.toc(self) Location: Attribute populated after calling ``md.convert(text)`` with the ``toc`` extension enabled. Inputs: None (implicit on the ``Markdown`` instance that has processed a document). Outputs: ``str`` – the rendered HTML of the generated table of contents, e.g. ``'<div class="toc">\...
python
BSD-3-Clause
diff --git a/docs/change_log/index.md b/docs/change_log/index.md index 75242d6..baec79d 100644 --- a/docs/change_log/index.md +++ b/docs/change_log/index.md @@ -7,6 +7,7 @@ Python-Markdown Change Log * Add a special case for initial 's to smarty extension (#1305). * Unescape any backslash escaped inline raw HTML (#...
Unescape backslash escaped TOC token names Fixes #1360.
Regression in unescaping backslash in TOC title Now I found another issue similar to #1358 and I checked that its fix doesn't also fix this one. Regression in 3.4 - c0f6e5a31ea8e7fe98910a0523144c2a96fa9bf1 is the first bad commit Reproduction code: ```python import markdown md = markdown.Markdown(extensions=...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_toc.py b/tests/test_syntax/extensions/test_toc.py index d879f6e..d64c6d3 100644 --- a/tests/test_syntax/extensions/test_toc.py +++ b/tests/test_syntax/extensions/test_toc.py @@ -442,6 +442,23 @@ class TestTOC(TestCase): self.assertMarkdownRenders( r'#...
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::test_escaped_char_in_id" ]
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLink", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClass", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClasses", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithD...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9c39fd72db3453a60454c2c79b4a45ed4235a642
2024-03-28 13:20:47
docker.io/swerebenchv2/sinaptik-ai-pandas-ai:1071-9c39fd7
sinaptik-ai__pandas-ai-1071
Method: SqliteConnector.equals(self, other) Location: pandasai.connectors.SqliteConnector Inputs: - **other** – an instance to compare with; expected to be a SqliteConnector (or subclass) object. Outputs: - **bool** – `True` when both connectors have identical `dialect`, `driver`, and `database` values in their confi...
python
custom-check-github
diff --git a/pandasai/connectors/sql.py b/pandasai/connectors/sql.py index f2fafbe8..fe041e47 100644 --- a/pandasai/connectors/sql.py +++ b/pandasai/connectors/sql.py @@ -539,6 +539,21 @@ class SqliteConnector(SQLConnector): f"table={self.config.table}>" ) + def equals(self, other): + ...
fix: sqlite connector override base equals function for sqlite connector Closes #1067
SqliteConnector has no attribute host ### System Info OS: Ubuntu Python: 3.10 Same error on multiple pandasai versions from 2.07 to latest ### 🐛 Describe the bug When I initialise an agent with a list of SqliteConnectors (one for each table of my db), and then proceed to chat with it, it throws an attribute error...
Sinaptik-AI/pandas-ai
diff --git a/tests/unit_tests/connectors/test_sqlite.py b/tests/unit_tests/connectors/test_sqlite.py index eff82745..1ad38165 100644 --- a/tests/unit_tests/connectors/test_sqlite.py +++ b/tests/unit_tests/connectors/test_sqlite.py @@ -83,3 +83,29 @@ class TestSqliteConnector(unittest.TestCase): # Test fallback...
[ "tests/unit_tests/connectors/test_sqlite.py::TestSqliteConnector::test_two_connector_equal", "tests/unit_tests/connectors/test_sqlite.py::TestSqliteConnector::test_two_connector_not_equal" ]
[ "tests/unit_tests/connectors/test_sqlite.py::TestSqliteConnector::test_column_hash_property", "tests/unit_tests/connectors/test_sqlite.py::TestSqliteConnector::test_columns_count_property", "tests/unit_tests/connectors/test_sqlite.py::TestSqliteConnector::test_constructor_and_properties", "tests/unit_tests/co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
39cf4c24bff2bb687608160792b86df2d335d2d3
2021-09-29 19:26:01
docker.io/swerebenchv2/hikari-py-hikari:803-39cf4c2
hikari-py__hikari-803
Method: EntityFactoryImpl.serialize_command_option(self, option: commands.CommandOption) -> data_binding.JSONObject Location: hikari.impl.entity_factory.EntityFactoryImpl Inputs: - **option** – a `commands.CommandOption` instance. If `option.channel_types` is not `None`, it must be a sequence of channel type identifie...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ca446e1..f7dbc841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,7 +48,7 @@ Bugfixes - `is_webhook` will now return `undefined.UNDEFINED` if the information is not available - Fix logic in `is_human` to account for the changes in the typing - Set `PartialMes...
Update website links Closes #802
Change all website links Website has now been moved to https://www.hikari-py.dev, which means we should probably update all other links. https://github.com/hikari-py/hikari/blob/gh-pages/CNAME should also be made to persist, should be as easy as adding it under `pages/`
hikari-py/hikari
diff --git a/tests/hikari/impl/test_entity_factory.py b/tests/hikari/impl/test_entity_factory.py index 90dcc97c..5b47d356 100644 --- a/tests/hikari/impl/test_entity_factory.py +++ b/tests/hikari/impl/test_entity_factory.py @@ -3091,6 +3091,25 @@ def test_deserialize_interaction_handles_unknown_type(self, entity_factory...
[ "tests/hikari/test_permissions.py::TestPermissions::test_all_permissions", "tests/hikari/impl/test_entity_factory.py::TestEntityFactoryImpl::test_serialize_command_option_with_channel_type" ]
[ "tests/hikari/impl/test_entity_factory.py::test__deserialize_max_uses_returns_none_when_zero", "tests/hikari/impl/test_entity_factory.py::test__deserialize_max_age_returns_null", "tests/hikari/impl/test_entity_factory.py::test__with_int_cast", "tests/hikari/impl/test_entity_factory.py::test__deserialize_day_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": "B1", "confidence": 0.93, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.hikari-py.dev", "https://github.com/...
c1cd0829df15f4d1eca110032e50a2b487bfe1e1
2024-05-31 20:15:28
docker.io/swerebenchv2/pennylaneai-pennylane:5781-c1cd082
pennylaneai__pennylane-5781
Function: specs(qnode, *, level=None, expansion_strategy=None, max_expansion=None) Location: pennylane/resource/specs.py Inputs: - qnode (qml.QNode): the quantum node to analyse. - level (None | str | int | slice, optional): indicates which subset of transform program to apply before estimating resources. Accepts the s...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index e28571f3d..f76d6850b 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -269,6 +269,9 @@ * The qchem docs are updated with the new qchem improvements. [(#5758)](https://github.com/PennyLaneAI/pennylane/pu...
`specs` can be requested at a specific stage of the transform program **Context:** Currently, `specs()` can only be requested after applying the full transform program, with the exception of the stages provided through `expansion_strategy`. **Description of the Change:** Using the new `level` argument from `constr...
[BUG] Specs does not take into account transforms ### Expected behavior Transformes applied to a QNode should influence the values output by `qml.specs()`. ### Actual behavior Very similar to the (now fixed) bug https://github.com/PennyLaneAI/pennylane/issues/5275, this does not seem to happen. ### Additional infor...
PennyLaneAI/pennylane
diff --git a/tests/qnn/test_keras.py b/tests/qnn/test_keras.py index 964e1cee0..68d3e5a09 100644 --- a/tests/qnn/test_keras.py +++ b/tests/qnn/test_keras.py @@ -955,8 +955,9 @@ def test_specs(): assert info["num_observables"] == 2 assert info["num_diagonalizing_gates"] == 0 - assert info["num_device_wire...
[ "tests/resource/test_specs.py::TestSpecsTransform::test_max_expansion_throws_warning", "tests/resource/test_specs.py::TestSpecsTransform::test_only_one_of_level_or_expansion_strategy_passed", "tests/resource/test_specs.py::TestSpecsTransform::test_disallow_pos_args", "tests/resource/test_specs.py::TestSpecsTr...
[ "tests/resource/test_specs.py::TestSpecsTransform::test_gradient_transform", "tests/resource/test_specs.py::TestSpecsTransform::test_custom_gradient_transform", "tests/resource/test_specs.py::TestSpecsTransform::test_num_wires_source_of_truth[device0-1]", "tests/resource/test_specs.py::TestSpecsTransform::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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/PennyLaneAI/pennylane/issues/5275" ...
be96b1f9ba632d978ac69ded702fcdc444533dcf
2025-01-02 12:03:26
docker.io/swerebenchv2/crossgl-crosstl:251-be96b1f
crossgl__crosstl-251
No new interfaces are introduced.
python
Apache-2.0
diff --git a/crosstl/backend/DirectX/DirectxLexer.py b/crosstl/backend/DirectX/DirectxLexer.py index b6003c1..88eadcc 100644 --- a/crosstl/backend/DirectX/DirectxLexer.py +++ b/crosstl/backend/DirectX/DirectxLexer.py @@ -21,8 +21,8 @@ TOKENS = [ ("ELSE_IF", r"\belse\sif\b"), ("ELSE", r"\belse\b"), ("FOR"...
Fix Incorrect Regular Expression Patterns for WHILE and DO Tokens in DirectxLexer ## Description This pull request fixes an issue in the `DirectxLexer` where the regular expression patterns for the `WHILE` and `DO` tokens were incorrect due to unnecessary escape characters (`\`) before the keywords. These incorrect ...
Incorrect Regular Expression Patterns for WHILE and DO Tokens Description: The regular expression patterns for the WHILE and DO tokens in the lexer are incorrect due to unnecessary escape characters (\) before the keywords. This could cause the lexer to fail in matching these keywords properly, leading to errors in to...
CrossGL/crosstl
diff --git a/tests/test_backend/test_directx/test_lexer.py b/tests/test_backend/test_directx/test_lexer.py index aa785b9..83b3825 100644 --- a/tests/test_backend/test_directx/test_lexer.py +++ b/tests/test_backend/test_directx/test_lexer.py @@ -250,5 +250,21 @@ def test_double_dtype_tokenization(): pytest.fail...
[ "tests/test_backend/test_directx/test_lexer.py::test_mod_tokenization", "tests/test_backend/test_directx/test_parser.py::test_mod_parsing", "tests/test_backend/test_metal/test_lexer.py::test_mod_tokenization", "tests/test_backend/test_metal/test_parser.py::test_mod_parsing", "tests/test_backend/test_mojo/te...
[ "tests/test_backend/test_directx/test_lexer.py::test_struct_tokenization", "tests/test_backend/test_directx/test_lexer.py::test_if_tokenization", "tests/test_backend/test_directx/test_lexer.py::test_for_tokenization", "tests/test_backend/test_directx/test_lexer.py::test_else_tokenization", "tests/test_backe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
46fa6757bc2ee4ff3b53da0b755efe92bc484e3e
2023-11-13 17:12:05
docker.io/swerebenchv2/pytask-dev-pytask:493-46fa675
pytask-dev__pytask-493
Function: task(name: str | None = None, *, after: str | Callable[..., Any] | list[Callable[..., Any]] | None = None, id: str | None = None, kwargs: dict[Any, Any] | None = None, produces: PyTree[Any] | None = None, markers: list[Mark] | None = None, sessions: list[Session] | None = None) Location: src/_pytask/task_util...
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index 75756f9..77676bf 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -18,6 +18,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and when a product annotation is used with the argument name `produces`. And, allow ...
Allow tasks to depend on other tasks. Closes #492. - [x] Document the feature. - [x] ~Display dependent tasks in collect command?~
ENH: Allowing tasks to depend on other tasks. #### Is your feature request related to a problem? Related to #467 and #487, you need to define a condition when a delayed task is ready, which could also be expressed as "run this task after this task". #### Describe the solution you'd like I prefer a symbolic ref...
pytask-dev/pytask
diff --git a/tests/test_task.py b/tests/test_task.py index 012558a..25f5717 100644 --- a/tests/test_task.py +++ b/tests/test_task.py @@ -615,3 +615,50 @@ def test_error_when_function_is_defined_outside_loop_body_with_id(runner, tmp_pa assert result.exit_code == ExitCode.COLLECTION_FAILED assert "Duplicated ta...
[ "tests/test_task.py::test_task_will_be_executed_after_another_one_with_string", "tests/test_task.py::test_task_will_be_executed_after_another_one_with_function" ]
[ "tests/test_task.py::test_task_with_task_decorator[the_only_task-task_example]", "tests/test_task.py::test_task_with_task_decorator[the_only_task-func]", "tests/test_task.py::test_task_with_task_decorator[None-task_example]", "tests/test_task.py::test_task_with_task_decorator[None-func]", "tests/test_task.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
5c1974baba14e3debc28ad5a9182250cd0120659
2024-07-24 11:26:11
docker.io/swerebenchv2/automl-configspace:382-5c1974b
automl__configspace-382
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/ConfigSpace/api/types/categorical.py b/src/ConfigSpace/api/types/categorical.py index 1273f40..f69ff82 100644 --- a/src/ConfigSpace/api/types/categorical.py +++ b/src/ConfigSpace/api/types/categorical.py @@ -1,14 +1,13 @@ from __future__ import annotations from collections.abc import Sequence -from...
fix: Refrains from using np.ndarray for nested objects * Closes #381
Bug: cannot print a Configuration with a Constant that is a list or a tuple Example: ``` from ConfigSpace import ConfigurationSpace, Constant, Integer cs = ConfigurationSpace() tags = ["a", "b", "c"] cs.add(Constant('tags', tags)) config = cs.sample_configuration() print(config) ``` The `print` statement...
automl/ConfigSpace
diff --git a/test/test_hyperparameters.py b/test/test_hyperparameters.py index 3236dcd..3c239ee 100644 --- a/test/test_hyperparameters.py +++ b/test/test_hyperparameters.py @@ -99,6 +99,7 @@ def test_constant(): # Test getting the size for constant in (c1, c2, c3, c4, c5, c1_meta, c6, c7, c8): assert...
[ "test/test_hyperparameters.py::test_categorical" ]
[ "test/test_hyperparameters.py::test_constant", "test/test_hyperparameters.py::test_constant_pdf", "test/test_hyperparameters.py::test_constant__pdf", "test/test_hyperparameters.py::test_constant_get_max_density", "test/test_hyperparameters.py::test_uniformfloat", "test/test_hyperparameters.py::test_unifor...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
5206003de9946b8a032dd4faf9d36c76f7e89e3b
2019-03-30 22:41:37
docker.io/swerebenchv2/robotframework-seleniumlibrary:1366-5206003
robotframework__seleniumlibrary-1366
Method: WebDriverCreator._remote_capabilities_resolver(self, set_capabilities, default_capabilities) Location: src/SeleniumLibrary/keywords/webdrivertools.py Inputs: - set_capabilities (dict): may contain either key “capabilities” or “desired_capabilities”; can be empty. - default_capabilities (dict): a copy of Sel...
python
Apache-2.0
diff --git a/src/SeleniumLibrary/keywords/webdrivertools.py b/src/SeleniumLibrary/keywords/webdrivertools.py index 4bcd1afb..ff2b72f3 100644 --- a/src/SeleniumLibrary/keywords/webdrivertools.py +++ b/src/SeleniumLibrary/keywords/webdrivertools.py @@ -81,10 +81,21 @@ class WebDriverCreator(object): desired_...
Fixed Open Browser not require browserName when remote_url is defined Fixes #1284
Default Capabilities not set correctly if remote_url and desired_capabilities are given When using Open Browser keyword with remote_url and desired_capabilities then default capabilities are not set. ## Steps to reproduce the issue Open browser using remote_url and desired_capabilities. For example test below. ```**...
robotframework/SeleniumLibrary
diff --git a/utest/test/keywords/test_webdrivercreator.py b/utest/test/keywords/test_webdrivercreator.py index 1996c97f..8c5cafa4 100644 --- a/utest/test/keywords/test_webdrivercreator.py +++ b/utest/test/keywords/test_webdrivercreator.py @@ -79,6 +79,33 @@ class WebDriverCreatorTests(unittest.TestCase): e...
[ "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_chrome", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_firefox", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_capabilities_resolver_no...
[ "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_chrome", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_chrome_healdless", "utest/test/keywords/test_webdrivercreator.py::WebDriverCreatorTests::test_create_driver_chrome", "utest/test/keywords/test_webdrive...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
efece0a414139d717311fae8f7e43e446865dbfe
2015-01-29 23:31:38
docker.io/swerebenchv2/timothycrosley-isort:230-efece0a
timothycrosley__isort-230
No new interfaces are introduced.
python
MIT
diff --git a/ACKNOWLEDGEMENTS.md b/ACKNOWLEDGEMENTS.md index a6bba7d0..c174166a 100644 --- a/ACKNOWLEDGEMENTS.md +++ b/ACKNOWLEDGEMENTS.md @@ -39,6 +39,8 @@ Code Contributors - Kasper Jacobsen (@dinoshauer) - Sebastian Pipping (@hartwork) - Helen Sherwood-Taylor (@helenst) +- Mocker (@Zuckonit) +- Tim Graham (@timgr...
Fix mangling of imports that end in "import" or "from". Fixes #224 and #214.
zipimport rewritten The built-in `from zipimport import zipimporter` is rewritten as `from zip import zipimporter` and classified as third party.
timothycrosley/isort
diff --git a/test_isort.py b/test_isort.py index 180c506f..7fde1b43 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1181,3 +1181,16 @@ def test_sticky_comments(): "# Used for type-hinting (ref: https://github.com/davidhalter/jedi/issues/414).\n" "from selenium.webdriver.remote.w...
[ "test_isort.py::test_zipimport", "test_isort.py::test_from_ending" ]
[ "test_isort.py::test_happy_path", "test_isort.py::test_code_intermixed", "test_isort.py::test_correct_space_between_imports", "test_isort.py::test_sort_on_number", "test_isort.py::test_line_length", "test_isort.py::test_output_modes", "test_isort.py::test_length_sort", "test_isort.py::test_convert_han...
{ "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": [ "https://github.com/davidhalter/jedi/issues/414" ], ...
25fed5dc27d1dd78c368d7464f7d160b46aa1d24
2020-01-31 15:29:43
docker.io/swerebenchv2/rochacbruno-dynaconf:290-25fed5d
rochacbruno__dynaconf-290
No new interfaces are introduced.
python
MIT
diff --git a/dynaconf/utils/__init__.py b/dynaconf/utils/__init__.py index b53c55d..03fd061 100644 --- a/dynaconf/utils/__init__.py +++ b/dynaconf/utils/__init__.py @@ -40,7 +40,7 @@ def object_merge(old, new, unique=False): object_merge(value, new[key]) # Cleanup of MetaValues on New dict -...
fix object_merge issue #285 with meta value PR recreated #286 to fix some styling issues before merging fix #285
[bug] RuntimeError: dictionary changed size during iteration when using @del within dynaconf_merge logic **Describe the bug** The following [line](https://github.com/rochacbruno/dynaconf/blob/25fed5dc27d1dd78c368d7464f7d160b46aa1d24/dynaconf/utils/__init__.py#L49 ) is bugged, changing dict size during iteration, via ...
rochacbruno/dynaconf
diff --git a/tests/test_utils.py b/tests/test_utils.py index a87ff5d..1abc3cd 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -165,6 +165,16 @@ def test_merge_existing_dict(): assert new == {"host": "localhost", "port": 666, "user": "admin"} +def test_merge_dict_with_meta_values(): + existing ...
[ "tests/test_utils.py::test_merge_dict_with_meta_values" ]
[ "tests/test_utils.py::test_unparse", "tests/test_utils.py::test_cast_bool", "tests/test_utils.py::test_find_file", "tests/test_utils.py::test_disable_cast", "tests/test_utils.py::test_tomlfy", "tests/test_utils.py::test_tomlfy_unparseable[something=42]", "tests/test_utils.py::test_missing_sentinel", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/rochacbruno/dynaconf/blob/25fed5dc27d...
1b25b0a1349b32cb3fa1745b6e3cf1ad9159132d
2024-03-20 19:26:22
docker.io/swerebenchv2/prefecthq-prefect-aws:398-1b25b0a
prefecthq__prefect-aws-398
No new interfaces are introduced.
python
Apache-2.0
diff --git a/prefect_aws/workers/ecs_worker.py b/prefect_aws/workers/ecs_worker.py index edbe843..1a5c3d2 100644 --- a/prefect_aws/workers/ecs_worker.py +++ b/prefect_aws/workers/ecs_worker.py @@ -673,7 +673,7 @@ class ECSWorker(BaseWorker): if not task_definition_arn: task_definition = self._pr...
Generates family field <!-- Thanks for contributing 🎉! Please ensure the title neatly summarizes the proposed changes. --> <!-- Overview --> Closes #289 ### Example <!-- A code blurb is best. Changes to features should include an example that is executable by a new user. --> ### Screenshots <!-- Any re...
Worker does not template ECSTask family PR #152 changed the behavior of the `family` top-level settings on the `ECSTask` infrastructure block. Rather than just being set to `prefect`, it instead templates using the flow and deployment names: `prefect__{flow-name}__{deployment-name}`. This change does not seem to have m...
PrefectHQ/prefect-aws
diff --git a/tests/workers/test_ecs_worker.py b/tests/workers/test_ecs_worker.py index 702f2dd..e4dab38 100644 --- a/tests/workers/test_ecs_worker.py +++ b/tests/workers/test_ecs_worker.py @@ -26,6 +26,7 @@ from prefect_aws.workers.ecs_worker import ( _TASK_DEFINITION_CACHE, ECS_DEFAULT_CONTAINER_NAME, E...
[ "tests/workers/test_ecs_worker.py::test_get_or_generate_family" ]
[ "tests/workers/test_ecs_worker.py::test_default", "tests/workers/test_ecs_worker.py::test_image", "tests/workers/test_ecs_worker.py::test_launch_types[EC2]", "tests/workers/test_ecs_worker.py::test_launch_types[FARGATE]", "tests/workers/test_ecs_worker.py::test_launch_types[FARGATE_SPOT]", "tests/workers/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/PrefectHQ/prefect-aws/blob/main/pre...
f5314ccda2701847961524650321f92ad76bce45
2025-02-03 14:05:07
docker.io/swerebenchv2/narwhals-dev-narwhals:1924-f5314cc
narwhals-dev__narwhals-1924
Method: Schema.to_pandas(self, dtype_backend: DTypeBackend | Sequence[DTypeBackend] | None) Location: narwhals/schema.py – defined in class `Schema` as `def to_pandas(self, dtype_backend: DTypeBackend | Iterable[DTypeBackend] = None) -> dict[str, Any]` Inputs: - **dtype_backend** – optional; either `None`, a sin...
python
MIT
diff --git a/narwhals/_pandas_like/series.py b/narwhals/_pandas_like/series.py index a652ea7a..bb59a439 100644 --- a/narwhals/_pandas_like/series.py +++ b/narwhals/_pandas_like/series.py @@ -241,14 +241,14 @@ class PandasLikeSeries(CompliantSeries): dtype_backend = get_dtype_backend( dtype=ser.dty...
feat: add `Schema.to_(arrow|pandas|polars)` Will close #1912 ## What type of PR is this? (check all applicable) - [x] ✨ Feature ## Related issues - Closes #1912 ## Checklist - [x] Code follows style guide (ruff) - [x] Tests added - [x] Documented the changes ## If you have comments or can explain y...
[Enh]: `nw.(DType|Schema)` conversion API ### We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below? We've already adopted `narwhals` in https://github.com/vega/altair This feature would be helpful f...
narwhals-dev/narwhals
diff --git a/tests/frame/schema_test.py b/tests/frame/schema_test.py index 1590e4a1..33cfadb5 100644 --- a/tests/frame/schema_test.py +++ b/tests/frame/schema_test.py @@ -1,5 +1,6 @@ from __future__ import annotations +import re from datetime import date from datetime import datetime from datetime import timedelt...
[ "tests/frame/schema_test.py::test_schema_to_pandas_invalid", "tests/frame/schema_test.py::test_schema_to_pandas[dtype_backend3-expected3]", "tests/frame/schema_test.py::test_schema_to_pandas_strict_zip", "tests/frame/schema_test.py::test_schema_to_pandas[pyarrow-expected1]", "tests/frame/schema_test.py::tes...
[ "tests/frame/schema_test.py::test_schema_comparison", "tests/frame/schema_test.py::test_all_nulls_pandas", "tests/frame/schema_test.py::test_actual_object[pandas[nullable]]", "tests/frame/schema_test.py::test_collect_schema[pandas[nullable]]", "tests/frame/schema_test.py::test_validate_not_duplicated_column...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/vega/altair", "https://github...
991a01753ea1b3b6c956aea5ba7fccd9f2d8270b
2022-05-26 06:30:43
docker.io/swerebenchv2/projectmesa-mesa:1343-991a017
projectmesa__mesa-1343
Method: NumberInput.__init__(self, name: str = "", value: Any = None, description: Optional[str] = None) Location: mesa.visualization.UserParam.NumberInput Inputs: - **name** (str, optional): display label for the parameter; defaults to empty string. - **value** (Any, optional): initial numeric value; must be an instan...
python
Apache-2.0
diff --git a/mesa/visualization/UserParam.py b/mesa/visualization/UserParam.py index 62b187e8..3e391e7a 100644 --- a/mesa/visualization/UserParam.py +++ b/mesa/visualization/UserParam.py @@ -1,3 +1,7 @@ +from numbers import Number +from warnings import warn + + NUMBER = "number" CHECKBOX = "checkbox" CHOICE = "choic...
feat: Implement NumberInput UserParam class Fixes #1235.
UX: Split UserSettableParameter into various classes What if, instead of ```python number_option = UserSettableParameter('number', 'My Number', value=123) boolean_option = UserSettableParameter('checkbox', 'My Boolean', value=True) slider_option = UserSettableParameter('slider', 'My Slider', value=123, min_value=10...
projectmesa/mesa
diff --git a/tests/test_usersettableparam.py b/tests/test_usersettableparam.py index deb4da42..6dc52774 100644 --- a/tests/test_usersettableparam.py +++ b/tests/test_usersettableparam.py @@ -5,12 +5,14 @@ from mesa.visualization.UserParam import ( Checkbox, Choice, StaticText, + NumberInput, ) c...
[ "tests/test_usersettableparam.py::TestOption::test_checkbox", "tests/test_usersettableparam.py::TestOption::test_choice", "tests/test_usersettableparam.py::TestOption::test_number", "tests/test_usersettableparam.py::TestOption::test_slider", "tests/test_usersettableparam.py::TestOption::test_static_text" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
7f6c9cb1deafb280fe7fcc7551c38e397f11a706
2024-02-19 20:29:03
docker.io/swerebenchv2/getmoto-moto:7365-7f6c9cb
getmoto__moto-7365
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/models/dynamo_type.py b/moto/dynamodb/models/dynamo_type.py index 82f737556..28490526d 100644 --- a/moto/dynamodb/models/dynamo_type.py +++ b/moto/dynamodb/models/dynamo_type.py @@ -1,6 +1,6 @@ import base64 import copy -import decimal +from decimal import Decimal from typing import Any, D...
DynamoDB: Fix calculation when adding/subtracting decimals Supercedes #7352 Fixes #7349 All credits to @jtherrmann - I've just fixed the typing and added tests
DynamoDB's `update_item` performs floating-point arithmetic with mock table created via `boto3` When using `moto.mock_aws` to create a `pytest` fixture for a DynamoDB table created with `boto3`, it appears that the `update_item` operation called with an `ADD` expression performs floating-point arithmetic rather than `D...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py index c9ff08a62..2ed10537d 100644 --- a/tests/test_dynamodb/test_dynamodb_update_expressions.py +++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py @@ -1,3 +1,5 @@ +from decimal impor...
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float" ]
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/jtherrmann/moto-issue", "http...