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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
695004f18175ca70b439534adece9e2242dca778 | 2022-04-06 10:08:33 | docker.io/swerebenchv2/researchobject-ro-crate-py:119-695004f | researchobject__ro-crate-py-119 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/rocrate/model/file_or_dir.py b/rocrate/model/file_or_dir.py
index d82c2c1..afe3226 100644
--- a/rocrate/model/file_or_dir.py
+++ b/rocrate/model/file_or_dir.py
@@ -45,5 +45,5 @@ class FileOrDir(DataEntity):
if is_url(str(source)):
identifier = os.path.basename(source) if fetch... | Support detached crates
Fixes #34.
See https://github.com/ResearchObject/ro-crate/pull/189, but note that the current spec already allows a root data entity id other than `./` (see #34).
Changes the `find_root_entity_id` method to support the general case where the metadata descriptor `@id` is an absolute URIs wh... | Support for non-slash root data entity
The [1.1 spec](https://www.researchobject.org/ro-crate/1.1/root-data-entity.html#direct-properties-of-the-root-data-entity) states that the root data entity SHOULD be the string `./`, but in principle it could be an arbitrary URI. This in contrast with RO-Crate 1.0, where the root... | ResearchObject/ro-crate-py | diff --git a/test/test_read.py b/test/test_read.py
index 85aeb03..e3f2820 100644
--- a/test/test_read.py
+++ b/test/test_read.py
@@ -21,6 +21,7 @@ import pytest
import shutil
import uuid
import zipfile
+from copy import deepcopy
from pathlib import Path
from rocrate.rocrate import ROCrate
@@ -452,3 +453,149 @@ d... | [
"test/test_read.py::test_find_root[https://example.org/crate/-ro-crate-metadata.json]",
"test/test_read.py::test_find_root[https://example.org/crate/-ro-crate-metadata.jsonld]",
"test/test_read.py::test_find_root[-bad-name.json]",
"test/test_read.py::test_find_root_bad_entities"
] | [
"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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://www.researchobject.org/ro-crate/1.1/root-data-en... |
746ae80822b857357f52350310219be32c0032a3 | 2025-01-12 05:07:27 | docker.io/swerebenchv2/systemd-mkosi:3346-746ae80 | systemd__mkosi-3346 | Method: Config.__init__(self, *, devicetree: Optional[Path] = None, **other_kwargs)
Location: mkosi/config.py
Inputs:
- **devicetree** – optional `Path` pointing to a devicetree blob name (e.g., `"freescale/imx8mm-verdin-nonwifi-dev.dtb"`).
- All other existing configuration fields (kernel, initrd, packages, et... | python | null | diff --git a/mkosi/__init__.py b/mkosi/__init__.py
index 7ac87b32..85f8fbb8 100644
--- a/mkosi/__init__.py
+++ b/mkosi/__init__.py
@@ -1457,6 +1457,21 @@ def build_kernel_modules_initrd(context: Context, kver: str) -> Path:
return kmods
+def find_devicetree(context: Context, kver: str) -> Path:
+ assert con... | Introduce support for overriding system's DeviceTree
While experimenting with OS images on development boards where either the bootloader doesn't load a Flattened DeviceTree Blob, or if one wants to replace the one provided by the bootloader with a specific/new one for development/experimentation/testing purposes, it's... | Allow specifying a devicetree binary that is passed to ukify
To easily use the dtbs provided with kernel packages allow specifying a devicetree name in mkosi.
It can be passed as parameter to ukify. The dtb is typically installed by the kernel package. | systemd/mkosi | diff --git a/tests/test_json.py b/tests/test_json.py
index 9178429c..b107467a 100644
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -139,6 +139,7 @@ def test_config() -> None:
"Dependencies": [
"dep1"
],
+ "Devicetree": "freescale/imx8mm-verdin-nonwifi-dev.dtb... | [
"tests/test_json.py::test_config"
] | [
"tests/test_json.py::test_args[None]",
"tests/test_json.py::test_args[/baz/qux]"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0beff0b5c29f4995ea1c573d3c1d043471b6e1c3 | 2021-12-23 09:21:28 | docker.io/swerebenchv2/wtforms-wtforms:721-0beff0b | wtforms__wtforms-721 | Method: DateTimeField.__init__(self, label=None, validators=None, format="%Y-%m-%d %H:%M:%S", **kwargs)
Location: src/wtforms/fields/datetime.py
Inputs:
- label (optional str) – field label.
- validators (optional list) – WTForms validators.
- format – either a single strftime format or a list of strftime formats. Whe... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index cb53635..fb3940a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,9 @@ Version x.x.x
-------------
Unreleased
+- Fixed :class:`~fields.DateTimeField` and other similar fields can
+ handle multiple formats. :issue:`720` :pr:`721`
+
Version 3.0.0
-------------
... | Date related field can handle several formats
`DateTimeField` and other date related field can now handle a list of `format`.
Any input matching the format will be accepted. The first format in the list is used by default to fill HTML `value` param.
Also, by default `DateTimeLocalFields` accepts two input format wi... | DateTimeLocalField should support `T` separator
The [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings) we can read that:
>When you set the value of a datetime-local input, the string is normalized into a standard form. Normalized datetime strings ... | wtforms/wtforms | diff --git a/tests/fields/test_datetime.py b/tests/fields/test_datetime.py
index d4ee21a..aff2534 100644
--- a/tests/fields/test_datetime.py
+++ b/tests/fields/test_datetime.py
@@ -57,3 +57,14 @@ def test_microseconds():
F = make_form(a=DateTimeField(format="%Y-%m-%d %H:%M:%S.%f"))
form = F(DummyPostData(a=["... | [
"tests/fields/test_datetime.py::test_multiple_formats",
"tests/fields/test_datetimelocal.py::test_separators"
] | [
"tests/fields/test_datetime.py::test_basic",
"tests/fields/test_datetime.py::test_microseconds",
"tests/fields/test_datetimelocal.py::test_basic",
"tests/fields/test_datetimelocal.py::test_microseconds"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://developer.mozilla.org/en-US/docs/Web/HTML/Date... |
6bb931c0c8c9739a1dd2b8e047995cb2387b3ede | 2020-08-04 20:04:44 | docker.io/swerebenchv2/sappelhoff-pyprep:34-6bb931c | sappelhoff__pyprep-34 | Function: make_random_mne_object(ch_names, ch_types, times, sfreq, n_freq_comps=5, freq_range=[10, 60], scale=1e-6, RNG=np.random.RandomState(1337))
Location: pyprep.utils
Inputs:
- **ch_names** (list of str): names of the channels to create.
- **ch_types** (list of str): corresponding MNE channel types (e.g., "eeg", "... | python | MIT | diff --git a/docs/whats_new.rst b/docs/whats_new.rst
index 059a681..f33abe4 100644
--- a/docs/whats_new.rst
+++ b/docs/whats_new.rst
@@ -19,10 +19,12 @@ People who contributed to this software across releases (in alphabetical order)
* `Aamna Lawrence`_
* `Adam Li`_
+* `Christian Oreilly`_
* `Stefan Appelhoff`_
* ... | Adding a full_raw property to PrepPipeline
Fix #33. | EOG get dropped
I suppose most people would want to use PyPrep as an early preprocessing pipeline to get ride of line noise and get a robust average reference (at least, that is my understanding from the documentation). To do that, it seems that PyPrep should make available a raw object that has been cleaned and re-ref... | sappelhoff/pyprep | diff --git a/tests/test_noisy.py b/tests/test_noisy.py
index 57295ce..dea3443 100644
--- a/tests/test_noisy.py
+++ b/tests/test_noisy.py
@@ -5,88 +5,42 @@ import numpy as np
import pytest
from pyprep.noisy import Noisydata, find_bad_epochs
+from pyprep.utils import make_random_mne_object
RNG = np.random.RandomSt... | [
"tests/test_noisy.py::test_find_bad_epochs",
"tests/test_noisy.py::test_init[input0]",
"tests/test_noisy.py::test_init[input1]",
"tests/test_noisy.py::test_init[input2]",
"tests/test_noisy.py::test_init[input3]",
"tests/test_noisy.py::test_get_bads",
"tests/test_noisy.py::test_find_bad_by_nan",
"tests... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
c539ab8e75b1a38ca0c4b64b4ba6a66bfe53a832 | 2023-07-07 03:14:30 | docker.io/swerebenchv2/rstudio-vetiver-python:185-c539ab8 | rstudio__vetiver-python-185 | No new interfaces are introduced. | python | MIT | diff --git a/vetiver/prototype.py b/vetiver/prototype.py
index c3bc04f..8f78cca 100644
--- a/vetiver/prototype.py
+++ b/vetiver/prototype.py
@@ -117,7 +117,7 @@ def _(data: pd.DataFrame):
>>> another_prototype.schema() == prototype.schema()
True
"""
- dict_data = data.iloc[0, :].to_dict()
+ dict_da... | Update Pydantic usage for v2 compatibility
resolves #184 | pydantic v2.0 breaking prototypes
Pydantic's V2.0 will break prototype creation in vetiver.
To reproduce error:
1. Update to Pydantic V2.0 (compatible FastAPI release is not out yet, you must `pip install --pre --upgrade fastapi pydantic`).
2. Run:
```python
from vetiver import mock, VetiverModel, VetiverAPI
... | rstudio/vetiver-python | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 87145b1..221c266 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -32,7 +32,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- python -m pip in... | [
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_array_prototype",
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_df_prototype",
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_dict_prototype",
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_from_pin... | [
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_basemodel_prototype",
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_no_prototype",
"vetiver/tests/test_build_vetiver_model.py::test_vetiver_model_use_ptype"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://errors.pydantic.dev/2.0/u/model-field-missing-... |
23521b1db66d538a6f4686a39248a817b74de93a | 2025-07-03 17:53:57 | docker.io/swerebenchv2/celery-celery:9795-23521b1 | celery__celery-9795 | Function: add_pydantic_string_annotations(data: "AddParameterModel") -> "AddResultModel"
Location: t/integration/tasks.py – defined as a Celery shared task with `@shared_task(pydantic=True)`.
Inputs:
- **data** – a value that must be an instance of `AddParameterModel` or a mapping (`dict`) that can be parsed into `Add... | python | custom-check-github | diff --git a/celery/app/base.py b/celery/app/base.py
index a4d1c4cd8..71ce9329d 100644
--- a/celery/app/base.py
+++ b/celery/app/base.py
@@ -124,14 +124,27 @@ def pydantic_wrapper(
dump_kwargs = {}
dump_kwargs.setdefault('mode', 'json')
+ # If a file uses `from __future__ import annotations`, all ann... | Fix #9794: Pydantic integration fails with __future__.annotations.
## Description
When a project uses `from __future__ import annotations`, all annotations will be stored as strings. This is fairly common, and many projects dictate that any use of type annotations must be accompanied by this import.
The Pydantic in... | Pydantic integration does not work with string annotations.
When a project uses `from __future__ import annotations`, all annotations will be stored as strings. This is fairly common, and many projects dictate that any use of type annotations must be accompanied by this import.
The Pydantic integration in Celery intro... | celery/celery | diff --git a/t/integration/test_tasks.py b/t/integration/test_tasks.py
index cd2bd25a3..1f6a04990 100644
--- a/t/integration/test_tasks.py
+++ b/t/integration/test_tasks.py
@@ -16,9 +16,9 @@ from celery.worker import state as worker_state
from .conftest import TEST_BACKEND, get_active_redis_channels, get_redis_conne... | [
"t/integration/test_tasks.py::test_tasks::test_simple_call",
"t/integration/test_tasks.py::test_tasks::test_soft_time_limit_exceeding_time_limit"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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/celery/celery/issues/9442#issuecomm... |
4a0d68987de913040e0ba16f9fe1d00cd10fe6e5 | 2023-01-24 16:32:13 | docker.io/swerebenchv2/cs-si-eodag:616-4a0d689 | cs-si__eodag-616 | Function: properties_from_json(json, mapping, discovery_config=None)
Location: eodag/api/product/metadata_mapping.py
Inputs:
- **json** (dict): Raw provider response as a JSON‑serialisable dictionary.
- **mapping** (dict): Mapping of metadata keys to a tuple *(default_value, jsonpath_expression)*; the jsonpath selects ... | python | Apache-2.0 | diff --git a/docs/_static/params_mapping_opensearch.csv b/docs/_static/params_mapping_opensearch.csv
index 3e98c49f..053fe5dc 100644
--- a/docs/_static/params_mapping_opensearch.csv
+++ b/docs/_static/params_mapping_opensearch.csv
@@ -8,7 +8,7 @@ antennaLookDirection,,,,,,,,,metadata only,,,,metadata only,
archivingCe... | feat: optimize onda search and update discover_metadata mechanism
Fixes #613
- optimizes onda search using `$expand=Metadata` instead of per product metadata query
- updates discover_metadata mechanism to be compatible with this updated metadata formatting | onda search optimize with expand=Metadata
Avoid per-product metadata query using https://catalogue.onda-dias.eu/dias-catalogue/Products?$expand=Metadata link documented in
https://www.onda-dias.eu/cms/knowledge-base/odata-querying-products-showing-all-metadata-together-with-their-properties/.
Use a new `ODataV4Sea... | CS-SI/eodag | diff --git a/tests/context.py b/tests/context.py
index dec2c197..2ca8dd32 100644
--- a/tests/context.py
+++ b/tests/context.py
@@ -33,6 +33,8 @@ from eodag.api.product.metadata_mapping import (
format_metadata,
OFFLINE_STATUS,
ONLINE_STATUS,
+ properties_from_json,
+ NOT_AVAILABLE,
)
from eodag.a... | [
"tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_properties_from_json_discovery_config",
"tests/units/test_search_plugins.py::TestSearchPluginODataV4Search::test_plugins_search_odatav4search_count_and_search_onda"
] | [
"tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_csv_list",
"tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_datetime_to_timestamp_milliseconds",
"tests/units/test_metadata_mapping.py::TestMetadataFormatter::test_convert_dict_update",
"tests/units/test_metad... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://catalogue.onda-dias.eu/dias-catalogue/Products... |
ac3bf77dc4a0699028c3841f2c2b1d70f4e5692d | 2023-03-11 12:16:29 | docker.io/swerebenchv2/brazilian-utils-brutils-python:34-ac3bf77 | brazilian-utils__brutils-python-34 | Function: is_valid_cpf(cpf)
Location: brutils/cpf.py
Inputs: cpf – a string containing exactly 11 numeric characters representing a CPF number; must not be empty and must have correct length.
Outputs: bool – `True` if the CPF’s two checksum digits are valid (i.e., `validate(cpf)` returns `True`), otherwise `False`. The... | python | MIT | diff --git a/Makefile b/Makefile
index d095d4f..47a1870 100644
--- a/Makefile
+++ b/Makefile
@@ -15,4 +15,4 @@ check:
@poetry run black -l 80 --check . --exclude=.venv
test:
- @poetry run python3 -m unittest discover tests/
+ @poetry run python3 -m unittest discover tests/ -v
diff --git a/README.md b/README.md
ind... | feat: is_valid_cpf
Closes #33 | Add `isValidCPF ` method
In order to make it with the same API as [js brutils](https://brazilian-utils.com.br/#/utilities?id=isvalidcpf) | brazilian-utils/brutils-python | diff --git a/tests/test_cpf.py b/tests/test_cpf.py
index d339b16..322f08d 100644
--- a/tests/test_cpf.py
+++ b/tests/test_cpf.py
@@ -8,7 +8,15 @@ range = range if version_info.major >= 3 else xrange
path.insert(
1, abspath(join(dirname(abspath(getsourcefile(lambda: 0))), pardir))
)
-from brutils.cpf import sieve... | [
"tests/test_cpf.py::CPF::test_checksum",
"tests/test_cpf.py::CPF::test_display",
"tests/test_cpf.py::CPF::test_generate",
"tests/test_cpf.py::CPF::test_hashdigit",
"tests/test_cpf.py::CPF::test_is_valid_cpf",
"tests/test_cpf.py::CPF::test_sieve",
"tests/test_cpf.py::CPF::test_validate"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://brazilian-utils.com.br/#/utilities?id=isvalidcpf... |
b801459545eed546fa7d66f27900bfef10d93e3a | 2024-10-30 16:52:04 | docker.io/swerebenchv2/simpeg-simpeg:1565-b801459 | simpeg__simpeg-1565 | Function: get_default_solver(warn=False)
Location: simpeg.utils.solver_utils
Inputs:
- **warn**: `bool`, optional (default `False`). When set to `True` the function emits a `DefaultSolverWarning` to inform the caller that the default solver is being used.
Outputs:
- Returns the default solver class (`Type[Base]`) that ... | python | MIT | diff --git a/simpeg/potential_fields/magnetics/simulation.py b/simpeg/potential_fields/magnetics/simulation.py
index 55db09e54..a40a28bb9 100644
--- a/simpeg/potential_fields/magnetics/simulation.py
+++ b/simpeg/potential_fields/magnetics/simulation.py
@@ -1612,7 +1612,7 @@ def MagneticsDiffSecondaryInv(mesh, model, da... | Only warn about default solver when set in simulations
#### Summary
Add a `warn=False` argument to the `get_default_solver()` function. Only when `warn=True`, the warning about the setting of the default solver is raised. This makes the function not to raise a warning when called with the default arguments. When defau... | warning with default solver
I appreciate the idea of wanting to alert users that a default solver is being used, but it is odd that if I am writing a tutorial or example and want to explicitly set the default solver, that I get a warning (e.g. in the following figure). A warning usually implies that I should change my... | simpeg/simpeg | diff --git a/tests/utils/test_default_solver.py b/tests/utils/test_default_solver.py
index f95a3cf4d..e8e2fc3ba 100644
--- a/tests/utils/test_default_solver.py
+++ b/tests/utils/test_default_solver.py
@@ -1,3 +1,4 @@
+import warnings
import pytest
from pymatsolver import SolverCG
@@ -11,18 +12,14 @@ from simpeg.uti... | [
"tests/utils/test_default_solver.py::test_default_error",
"tests/utils/test_default_solver.py::test_warning",
"tests/utils/test_default_solver.py::test_no_warning"
] | [
"tests/utils/test_default_solver.py::test_default_setting"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
dd1f1371d092086095bc004dfbbdf3a29c4612f0 | 2023-07-20 16:13:26 | docker.io/swerebenchv2/pallets-werkzeug:2753-dd1f137 | pallets__werkzeug-2753 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index a749a212..3040dd45 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -12,6 +12,7 @@ Unreleased
enforcement. :issue:`2734`
- Fix empty file streaming when testing. :issue:`2740`
- Clearer error message when URL rule does not start with slash. :pr:`2750`
+- ``Accept``... | Fix qvalue parsing
Fixes #2751. Introduce proper regex for quality values as specified by [RFC9110](https://httpwg.org/specs/rfc9110.html#quality.values)
- fixes #2751
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [ ] Add or update re... | `parse_options_header` rejects q values "0" and "1"
provide an accept header such as `en;q=0` or `en;q=1` ->
q values 0 or 1 are dropped. The [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#name-quality-values) indicates that the decimal is optional however we are rejecting q values that do not contain a decimal... | pallets/werkzeug | diff --git a/tests/test_http.py b/tests/test_http.py
index 2c6c0b29..bbd51ba3 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -776,6 +776,12 @@ def test_accept_invalid_float(value):
assert list(a.values()) == ["en"]
+def test_accept_valid_int_one_zero():
+ assert http.parse_accept_header("en;q=1... | [
"tests/test_http.py::test_accept_valid_int_one_zero"
] | [
"tests/test_http.py::TestHTTPUtility::test_accept",
"tests/test_http.py::TestHTTPUtility::test_accept_parameter_with_space",
"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... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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.rfc-editor.org/rfc/rfc9110#name-quality-valu... |
03b60f9f313db87daf5b76192a426588072a79e2 | 2021-11-21 21:28:41 | docker.io/swerebenchv2/materials-consortia-optimade-python-tools:1001-03b60f9 | materials-consortia__optimade-python-tools-1001 | No new interfaces are introduced. | python | MIT | diff --git a/optimade/models/structures.py b/optimade/models/structures.py
index 62a39f46..1ef9ae57 100644
--- a/optimade/models/structures.py
+++ b/optimade/models/structures.py
@@ -872,7 +872,8 @@ The properties of the species are found in the property `species`.
return v
elements = tuple(re.f... | Fixed bug in check_anonymous_formula which caused `chemical_formula_anonymous = AB2` to pass validation.
I noticed that in OQMD structure [4061139](http://oqmd.org/optimade/v1/structures?id=4061139) has an invalid chemical_formula_anonymous. i.e. "ABCD4" for "CsHoS4Si" instead of "A4BCD"
On the Optimade providers list... | `chemical_formula_anonymous` validator accepts incorrect proportion order if started with 1
As reported by @JPBergsma in https://github.com/Materials-Consortia/optimade-python-tools/pull/1001#issue-1059491669, the `chemical_formula_anonymous` validator has an edge case that allows the wrong order of elements for certai... | Materials-Consortia/optimade-python-tools | diff --git a/tests/models/test_structures.py b/tests/models/test_structures.py
index 09e9a626..e1401e55 100644
--- a/tests/models/test_structures.py
+++ b/tests/models/test_structures.py
@@ -103,8 +103,8 @@ deformities = (
"'chemical_formula_anonymous' A2B90 has wrong order: elements with highest proportion sh... | [
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity8]"
] | [
"tests/models/test_structures.py::test_good_structure_with_missing_data",
"tests/models/test_structures.py::test_structure_fatal_deformities[None]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity1]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity2]",... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Materials-Consortia/optimade-python... |
e0aa10ee586bf010ce9a99c5582ee8dc9293ba1e | 2017-11-30 11:16:45 | docker.io/swerebenchv2/jpadilla-pyjwt:316-e0aa10e | jpadilla__pyjwt-316 | Method: PyJWS.decode(self, msg: str, key: Any = None, verify: bool = True, algorithms: Optional[Iterable[str]] = None, options: Optional[dict] = None, audience: Optional[Union[str, Iterable[str]]] = None, issuer: Optional[Union[str, Iterable[str]]] = None, leeway: int = 0, **kwargs)
Location: jwt/api_jws.py → class P... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5793d70..68eb2ac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Audience parameter now supports iterables [#205][205]
+- An invalid signature now raises an `InvalidSignatureError` ins... | Fix #315: Raise InvalidSignatureError over generic DecodeError | Add InvalidSignature exception
Right now the [`jws.decode()`](https://github.com/jpadilla/pyjwt/blob/e0aa10ee586bf010ce9a99c5582ee8dc9293ba1e/jwt/api_jws.py#L206) method raises a `DecodeError` when the signature verification failed. I would like to propose adding a dedicated `InvalidSignatureError` or `SignatureVerific... | jpadilla/pyjwt | diff --git a/tests/test_api_jws.py b/tests/test_api_jws.py
index 60671a2..4bf8d39 100644
--- a/tests/test_api_jws.py
+++ b/tests/test_api_jws.py
@@ -5,7 +5,8 @@ from decimal import Decimal
from jwt.algorithms import Algorithm
from jwt.api_jws import PyJWS
from jwt.exceptions import (
- DecodeError, InvalidAlgorit... | [
"tests/test_api_jws.py::TestJWS::test_register_algo_does_not_allow_duplicate_registration",
"tests/test_api_jws.py::TestJWS::test_register_algo_rejects_non_algorithm_obj",
"tests/test_api_jws.py::TestJWS::test_unregister_algo_removes_algorithm",
"tests/test_api_jws.py::TestJWS::test_unregister_algo_throws_err... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3f8bb643a6d4e0fefae07356fcf6a16ac2972035 | 2022-10-04 14:13:08 | docker.io/swerebenchv2/dhi-mikeio:442-3f8bb64 | dhi__mikeio-442 | Method: Pfs.__init__(self, input, encoding="cp1252", names=None, unique_keywords=True)
Location: mikeio/pfs.py
Inputs:
- **input**: `str` path, `pathlib.Path`, or any file‑like object exposing a `.read()` method (e.g., `io.StringIO`).
- **encoding** (optional): `str` specifying text encoding, default `"cp1252"`.
-... | python | BSD-3-Clause | diff --git a/mikeio/pfs.py b/mikeio/pfs.py
index 10d80fce..55754e1f 100644
--- a/mikeio/pfs.py
+++ b/mikeio/pfs.py
@@ -243,7 +243,7 @@ class Pfs:
"""
def __init__(self, input, encoding="cp1252", names=None, unique_keywords=True):
- if isinstance(input, (str, Path)):
+ if isinstance(input, (str... | Pfs mixed array
Closes #437 | PFS. read write of parameter list, which contains both boolean and string
MIKE IO version 1.2.dev0
This is probably a rare case, but it seems that this line will fail:
fill_list = false, 'TEST'
if you read it from a pfs file and try to write it again you will get this:
fill_list = 'false, 'TEST''
... | DHI/mikeio | diff --git a/tests/test_pfs.py b/tests/test_pfs.py
index 1bf1e42e..402fbcdb 100644
--- a/tests/test_pfs.py
+++ b/tests/test_pfs.py
@@ -1,3 +1,4 @@
+from io import StringIO
import sys
import os
import pytest
@@ -419,3 +420,97 @@ def test_mdf():
pfs.data[2].POLYGONS.Data
== "8 8 Untitled 359236.79224... | [
"tests/test_pfs.py::test_read_in_memory_string",
"tests/test_pfs.py::test_read_mixed_array",
"tests/test_pfs.py::test_read_mixed_array2",
"tests/test_pfs.py::test_read_mixed_array3",
"tests/test_pfs.py::test_read_array",
"tests/test_pfs.py::test_read_string_array"
] | [
"tests/test_pfs.py::test_pfssection",
"tests/test_pfs.py::test_pfssection_keys_values_items",
"tests/test_pfs.py::test_pfssection_from_dataframe",
"tests/test_pfs.py::test_pfssection_to_dict",
"tests/test_pfs.py::test_pfssection_get",
"tests/test_pfs.py::test_pfssection_pop",
"tests/test_pfs.py::test_pf... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
5ee1bdc5627b263ed4216914da067950151a8f5e | 2024-08-09 20:10:46 | docker.io/swerebenchv2/getmoto-moto:7960-5ee1bdc | getmoto__moto-7960 | Method: SecurityGroup.flattened_ingress_rules(self) -> List[SecurityRule]
Location: moto/ec2/models/security_groups.py (class SecurityGroup)
Inputs: None (property accessor)
Outputs: List of SecurityRule objects where duplicate rules (same protocol, ports) are merged, combining their IpRanges, SourceGroups, and PrefixL... | python | Apache-2.0 | diff --git a/moto/ec2/models/security_groups.py b/moto/ec2/models/security_groups.py
index 869c47d98..eac8cf5f2 100644
--- a/moto/ec2/models/security_groups.py
+++ b/moto/ec2/models/security_groups.py
@@ -517,6 +517,49 @@ class SecurityGroup(TaggedEC2Resource, CloudFormationModel):
len(rule.ip_ranges) + le... | EC2: describe_security_group_rules() should not combine Rules
Fixes #7915
Both the (very extensive) new test and the modified test are now verified against AWS. | ec2.describe_security_group_rules bad output response for IPv4, IPv6, Prefix Lists, Security Groups targets and overlapping port/protocols
# How to reproduce:
```python
from pprint import pprint
import boto3
from botocore.config import Config
from moto import mock_aws
with mock_aws():
ec2_client = boto3.... | getmoto/moto | diff --git a/tests/test_ec2/test_security_groups.py b/tests/test_ec2/test_security_groups.py
index 73a371e1b..519b5c2c6 100644
--- a/tests/test_ec2/test_security_groups.py
+++ b/tests/test_ec2/test_security_groups.py
@@ -12,6 +12,7 @@ from botocore.exceptions import ClientError
from moto import mock_aws, settings
fro... | [
"tests/test_ec2/test_security_groups.py::test_create_two_security_groups_in_vpc_with_ipv6_enabled",
"tests/test_ec2/test_security_groups.py::test_authorize_security_group_rules_with_different_ipranges_or_prefixes[ingress]",
"tests/test_ec2/test_security_groups.py::test_authorize_security_group_rules_with_differ... | [
"tests/test_ec2/test_security_groups.py::test_create_and_describe_security_group",
"tests/test_ec2/test_security_groups.py::test_create_security_group_without_description_raises_error",
"tests/test_ec2/test_security_groups.py::test_default_security_group",
"tests/test_ec2/test_security_groups.py::test_create_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
14f9c3d38aa89a72314fa69ecb8c501c990d6dd8 | 2023-08-01 21:39:29 | docker.io/swerebenchv2/getmoto-moto:6588-14f9c3d | getmoto__moto-6588 | Method: ApiGatewayManagementApiBackend.delete_connection(self, connection_id: str) -> None
Location: moto/apigatewaymanagementapi/models.py, class ApiGatewayManagementApiBackend
Inputs:
- connection_id (str): identifier of the connection to be removed; if the id does not exist the call is a no‑op.
Outputs:
- None (th... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index 0dadd1855..c787190af 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -202,6 +202,15 @@
- [ ] update_vpc_link
</details>
+## apigatewaymanagementapi
+<details>
+<summary>100% implemented</summary>
+
+- [X] delete_c... | Feature: APIGateway Management API
Fixes #6532 | Feature request: `ApiGatewayManagementApi` service mock
Hey folks! This library is dope, thank you!
Just wanted to put my hat in for `ApiGatewayManagementApi` (aka `apigatewaymanagementapi`) support.
- See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigatewaymanagementapi.html
- ... | getmoto/moto | diff --git a/tests/test_apigatewaymanagementapi/__init__.py b/tests/test_apigatewaymanagementapi/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_apigatewaymanagementapi/test_apigatewaymanagementapi.py b/tests/test_apigatewaymanagementapi/test_apigatewaymanagementapi.py
new file mode ... | [
"tests/test_apigatewaymanagementapi/test_apigatewaymanagementapi.py::test_delete_connection",
"tests/test_apigatewaymanagementapi/test_apigatewaymanagementapi.py::test_get_connection",
"tests/test_apigatewaymanagementapi/test_apigatewaymanagementapi.py::test_post_to_connection"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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... |
74a59a665a3ffcd6c5c3ff15a6e9759b29a86547 | 2024-04-08 20:11:46 | docker.io/swerebenchv2/getmoto-moto:7580-74a59a6 | getmoto__moto-7580 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index 6f9c4f933..371f482e1 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -692,7 +692,11 @@ class Table(CloudFormationModel):
key for key in index.schema if key["KeyType"] == "RANGE"
... | DynamoDB: query() now acts correctly when paging GSI tables without r…
…ange keys
Fixes #7578 | Using LastEvaluatedKey to page through an index
### Description
Paging using LastEvaluatedKey and ExclusiveStartKey has stopped working properly in moto 5.0.4 and 5.0.5. It was working fine up till 5.0.3.
This seems similar to this closed issue: https://github.com/getmoto/moto/issues/7531
### Code snippet
... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb_query.py b/tests/test_dynamodb/test_dynamodb_query.py
index da6b8a014..71b4b8fc7 100644
--- a/tests/test_dynamodb/test_dynamodb_query.py
+++ b/tests/test_dynamodb/test_dynamodb_query.py
@@ -191,11 +191,61 @@ def test_query_pagination(table_name=None):
@pytest.mark.aws... | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination"
] | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_range_comparison",
"tests/test_dynamodb/test_dynamodb_query.py::test_key_condition_expressions",
"tests/test_dynamodb/test_dynamodb_query.py::test_query_pagination",
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination_with_numeric_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/getmoto/moto/issues/7531"
],
... |
65d77f03fe7a75182b4263cd11cc1251b393dad7 | 2024-01-29 18:19:52 | docker.io/swerebenchv2/amaranth-lang-amaranth:1054-65d77f0 | amaranth-lang__amaranth-1054 | Method: Signal.__init__(self, shape=None, reset=None, reset_less=False, attrs=None)
Location: amaranth/hdl/ast.py
Inputs:
- **shape** – optional, can be a `range`, integer width, or a `Value` representing a shape; when a `range` is used it defines the allowed numeric values of the signal.
- **reset** – optional, a cons... | python | BSD-2-Clause | diff --git a/amaranth/hdl/ast.py b/amaranth/hdl/ast.py
index 76643a0..9d4bb27 100644
--- a/amaranth/hdl/ast.py
+++ b/amaranth/hdl/ast.py
@@ -1170,13 +1170,14 @@ class Signal(Value, DUID, metaclass=_SignalMeta):
self.reset = reset.value
self.reset_less = bool(reset_less)
- if isinstance(orig_s... | hdl.ast: change warning on out-of-range reset to an error, improve it.
Fixes #1019. | `Signal(range(0))` raises `SyntaxWarning`
`Signal(range(0))` raises
```
SyntaxWarning: Reset value 0 equals the non-inclusive end of the signal shape range(0, 0); this is likely an off-by-one error
```
Is this warning intended?
To me this warning is quite confusing, as amaranth implicitly converts `range(0)` (w... | amaranth-lang/amaranth | diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py
index 3333a5a..1af21f2 100644
--- a/tests/test_hdl_ast.py
+++ b/tests/test_hdl_ast.py
@@ -1106,10 +1106,8 @@ class SignalTestCase(FHDLTestCase):
self.assertEqual(s8.shape(), signed(5))
s9 = Signal(range(-20, 16))
self.assertEqual(s9.s... | [
"tests/test_hdl_ast.py::SignalTestCase::test_reset_wrong_fencepost",
"tests/test_hdl_ast.py::SignalTestCase::test_reset_wrong_range"
] | [
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong",
"tests/test_hdl_ast... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://libera.irclog.whitequark.org/amaranth-lang/202... |
0dcc36d255600669d69fd757f7af6d20e5a4faf1 | 2023-12-13 13:17:57 | docker.io/swerebenchv2/cs-si-eodag:961-0dcc36d | cs-si__eodag-961 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/eodag/rest/stac.py b/eodag/rest/stac.py
index 4114e3c5..8f84ddea 100644
--- a/eodag/rest/stac.py
+++ b/eodag/rest/stac.py
@@ -275,20 +275,28 @@ class StacItem(StacCommon):
"href"
] = f"{without_arg_url}?{urlencode(query_dict, doseq=True)}"
- # add origin a... | feat(server): stac alternate assets
Fixes #767
Makes origin assets links available through `asset["alternate"]["origin"]["href"]` in server STAC response.
```json
{
"features": [
{
"id": "some-product",
"assets": {
"B01": {
"title": "Download link",
"href": "... | eodag-authenticated and origin raw assets both available in server mode
In server mode, once #721 is done, make available both eodag-authenticated and origin raw assets using https://github.com/stac-extensions/alternate-assets:
```json
{
"features": [
{
"id": "some-product",
"assets": {
"B01":... | CS-SI/eodag | diff --git a/tests/units/test_stac_utils.py b/tests/units/test_stac_utils.py
index 6b3fd0f1..7e03f4ab 100644
--- a/tests/units/test_stac_utils.py
+++ b/tests/units/test_stac_utils.py
@@ -453,10 +453,16 @@ class TestStacUtils(unittest.TestCase):
"assets"
].items():
self.assertIn(k, res... | [
"tests/units/test_stac_utils.py::TestStacUtils::test_search_stac_items_with_stac_providers"
] | [
"tests/units/test_stac_utils.py::TestStacUtils::test_detailled_collections_list",
"tests/units/test_stac_utils.py::TestStacUtils::test_filter_products",
"tests/units/test_stac_utils.py::TestStacUtils::test_filter_products_filter_misuse_raise_error",
"tests/units/test_stac_utils.py::TestStacUtils::test_filter_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
c78c82526cdc2c0edd88a8d3695e6704cee0d8a1 | 2024-05-29 20:30:41 | docker.io/swerebenchv2/openmdao-openmdao:3259-c78c825 | openmdao__openmdao-3259 | Method: LambdaPickleWrapper.__init__(self, lambda_func)
Location: openmdao.utils.code_utils.LambdaPickleWrapper
Inputs: `lambda_func` – a lambda function object to be wrapped (must be a Python lambda).
Outputs: a new `LambdaPickleWrapper` instance storing the function in `_func` and initialising `_src` to `None`.... | python | custom-check-github | diff --git a/openmdao/core/component.py b/openmdao/core/component.py
index 6b9bcf560..b91ad2a2c 100644
--- a/openmdao/core/component.py
+++ b/openmdao/core/component.py
@@ -2,6 +2,7 @@
import sys
import types
+from types import LambdaType
from collections import defaultdict
from collections.abc import Iterable
f... | Added a wrapper for lambda functions to allow pickling.
### Summary
Fix only works for python >= 3.9.
### Related Issues
- Resolves #3247
### Backwards incompatibilities
None
### New Dependencies
None
| add_input/add_output's compute_shape doesn't work from within parallel group
### Description
When a compute_shape function (for an explicit component's add_input or add_output call) appears in a parallel group's component, an error is encountered because the function cannot be pickled. This seems to occur in the allga... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_distribcomp.py b/openmdao/core/tests/test_distribcomp.py
index 6bd4834df..32eb423c2 100644
--- a/openmdao/core/tests/test_distribcomp.py
+++ b/openmdao/core/tests/test_distribcomp.py
@@ -1140,89 +1140,6 @@ class TestDistribCheckMPI(unittest.TestCase):
assert_near_equal(pro... | [
"openmdao/core/tests/test_distribcomp.py::NOMPITests::test_distrib_idx_in_full_out",
"openmdao/core/tests/test_distribcomp.py::NonParallelTests::test_dist_to_nondist_no_err",
"openmdao/core/tests/test_dyn_sizing.py::TestAdder::test_adder",
"openmdao/core/tests/test_dyn_sizing.py::TestPassSize::test_serial",
... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
fc902cfd325aea37d20ea4f6a1b203e6f18fc49b | 2022-12-16 19:54:59 | docker.io/swerebenchv2/apiflask-apiflask:382-fc902cf | apiflask__apiflask-382 | Method: APIFlask.add_url_rule(self, rule: str, view_func: Callable | None = None, **options)
Location: src/apiflask/app.py (overridden Flask add_url_rule)
Inputs:
- **rule** (str): URL pattern to bind.
- **view_func** (Callable | None): The view function handling the request; may be the result of `SomeView.as_view(nam... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index c39ae80..8398a83 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -11,12 +11,14 @@ Released: -
- Change the status code of request validation error from 400 to 422 ([issue #345][issue_345]).
- Improve the default bypassing rules to support bypass blueprint's static endpoint and
... | explicitly check if view_func.view_class is MethodViewType in add_url_rule
* fixes #379
Checklist:
- [X] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [ ] Add or update relevant docs, in the `docs` folder and in code docstring.
- [X] Add an entry in `CHA... | KeyError when using add_url_for with flask View
## context
[flask-graphql](https://github.com/graphql-python/flask-graphql) is a project that adds graphql support to flask applications.
apiflask produces an error when using `add_url_for` with view_func=`GraphQLView.as_view(...)`.
## steps to reproduce
1.... | apiflask/apiflask | diff --git a/tests/test_route.py b/tests/test_route.py
index fb2ee4f..c6cf84a 100644
--- a/tests/test_route.py
+++ b/tests/test_route.py
@@ -1,5 +1,6 @@
import pytest
from flask.views import MethodView
+from flask.views import View
from openapi_spec_validator import validate_spec
from .schemas import Foo
@@ -212,... | [
"tests/test_route.py::test_add_url_rule_with_view_as_view"
] | [
"tests/test_route.py::test_route_shortcuts[get]",
"tests/test_route.py::test_route_shortcuts[post]",
"tests/test_route.py::test_route_shortcuts[put]",
"tests/test_route.py::test_route_shortcuts[patch]",
"tests/test_route.py::test_route_shortcuts[delete]",
"tests/test_route.py::test_route_on_method_view",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/graphql-python/flask-graphql"
],
... |
00e4c98ea3900ed0babccecb1fd7c29d89fb25a2 | 2022-10-21 21:01:41 | docker.io/swerebenchv2/stac-utils-pystac-client:338-00e4c98 | stac-utils__pystac-client-338 | Method: StacApiIO.get_pages(self, url: str, parameters: dict | None = None, method: str = "GET")
Location: pystac_client.stac_api_io.StacApiIO
Inputs:
- url: the endpoint URL to request the first page (e.g., “https://pystac-client.test/search”).
- parameters (optional): additional query parameters passed to each req... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 444d034..d8fc155 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,14 +10,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Python 3.11 support [#347](https://github.com/stac-utils/pystac-client/pull/347)
-- `request_m... | Terminate on empty page
**Related Issue(s):**
- Closes #334
**Description:**
Terminate pagination on an empty page.
**PR Checklist:**
- [x] Code is formatted
- [x] Tests pass
- [x] Changes are added to the [CHANGELOG](https://github.com/stac-utils/pystac-api-client/blob/main/CHANGELOG.md) | Pagination should terminate if it ever gets an empty page from the server
As currently written, methods that use pagination will hang indefinitely if the server pagination implementation is broken such that it never stops returning a `next` link relation in the result ItemCollection even when there are no more results ... | stac-utils/pystac-client | diff --git a/tests/test_stac_api_io.py b/tests/test_stac_api_io.py
index aaa1145..8eb56ce 100644
--- a/tests/test_stac_api_io.py
+++ b/tests/test_stac_api_io.py
@@ -168,3 +168,114 @@ class TestSTAC_IOOverride:
with open(test_file) as file:
data = file.read()
assert data == "Hi there!"
+
+... | [
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_stop_on_empty_page[features-search]",
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_stop_on_empty_page[collections-collections]",
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_stop_on_attributeless_page[features-search]",
"tests/test_stac_a... | [
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_http_error",
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_local_file",
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_assert_conforms_to",
"tests/test_stac_api_io.py::TestSTAC_IOOverride::test_conforms_to",
"tests/test_stac_api_io.py::Tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
f73716889d2f41facdf2e831ce1e32f854b604aa | 2025-03-28 19:58:53 | docker.io/swerebenchv2/vacanza-holidays:2386-f737168 | vacanza__holidays-2386 | Method: Nepal.__init__(self, islamic_show_estimated: bool = True, *args, **kwargs)
Location: holidays/countries/nepal.py
Inputs:
- islamic_show_estimated (bool, optional): flag to show "(estimated)" label on Islamic holidays when the date is estimated (default True).
- *args, **kwargs passed to the base HolidayBase (... | python | MIT | diff --git a/README.md b/README.md
index c7a50c18..73871407 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ and detailed information.
## Available Countries
-We currently support 173 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 174 country codes. The s... | Add Nepal holidays
<!--
Thanks for contributing to holidays!
-->
## Proposed change
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Added Nepal holidays.
Resolves #1234
## Type of change
<!--
Type of change you want to intr... | Add Nepal holidays
Links:
- https://en.wikipedia.org/wiki/Public_holidays_in_Nepal
- https://www.timeanddate.com/holidays/nepal/ | vacanza/holidays | diff --git a/tests/countries/test_india.py b/tests/countries/test_india.py
index 2dd385b4..978a5352 100644
--- a/tests/countries/test_india.py
+++ b/tests/countries/test_india.py
@@ -183,7 +183,7 @@ class TestIndia(CommonCountryTests, TestCase):
"2018-08-26",
"2018-09-13",
"2018-1... | [
"tests/countries/test_india.py::TestIndia::test_2018",
"tests/countries/test_india.py::TestIndia::test_2018_optional",
"tests/countries/test_india.py::TestIndia::test_code",
"tests/countries/test_india.py::TestIndia::test_country_aliases",
"tests/countries/test_india.py::TestIndia::test_deprecated",
"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": "B3|B4|B6",
"confidence": 0.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": true,
"B5": false,
"B6": true
},
"difficulty": "hard",
"external_urls": [
"https://en.wikipedia.org/wiki/Public_holidays_in_Nepa... |
1228981158010130606d9fbf0edd2384372780b2 | 2021-03-11 03:25:38 | docker.io/swerebenchv2/theacodes-nox:401-1228981 | theacodes__nox-401 | Method: Param.__init__(self, name: str, value: Any, *, arg_names: Tuple[str, ...] | None = None)
Location: nox/_parametrize.py (class Param)
Inputs:
- **name** – the parameter name as a string (e.g., `"foo"`).
- **value** – the value to be bound to that name for a particular session (e.g., `1`).
- **arg_names** – o... | python | Apache-2.0 | diff --git a/nox/_parametrize.py b/nox/_parametrize.py
index 9f2cd63..be226e4 100644
--- a/nox/_parametrize.py
+++ b/nox/_parametrize.py
@@ -51,8 +51,7 @@ class Param:
return self.id
else:
call_spec = self.call_spec
- keys = sorted(call_spec.keys(), key=str)
- ar... | Preserve the order of parameterized arguments
Parameterized jobs will now display in the same order as they are written.
```python
"""Example noxfile.py"""
import nox
@nox.session()
@nox.parameterize(
("z", "a"),
[
(1, 2),
(3, 4),
]
)
def job(z, a):
...
```
### Before
```sh
% ... | Selecting parameterized tests with CLI does not respect order of parameterize arguments
**Describe the bug**
When selecting parameterized tests with multiple parameters using the command line, the full session name does not respect the order of parameters. Instead, the arguments are ordered alphabetically.
I beli... | theacodes/nox | diff --git a/tests/test__parametrize.py b/tests/test__parametrize.py
index 2a7f69b..d130174 100644
--- a/tests/test__parametrize.py
+++ b/tests/test__parametrize.py
@@ -200,19 +200,19 @@ def test_generate_calls_multiple_args():
f = mock.Mock()
f.__name__ = "f"
- arg_names = ("abc", "foo")
+ arg_names ... | [
"tests/test__parametrize.py::test_generate_calls_multiple_args"
] | [
"tests/test__parametrize.py::test_param_eq[param0-other0-True]",
"tests/test__parametrize.py::test_param_eq[param1-other1-True]",
"tests/test__parametrize.py::test_param_eq[param2-other2-False]",
"tests/test__parametrize.py::test_param_eq[param3-other3-True]",
"tests/test__parametrize.py::test_param_eq_fail... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/theacodes/nox/blob/aa9290713a4b664ea4... |
f25bf2157758b9cb5cb3df23c1c3c086ef459f78 | 2018-03-12 20:17:11 | docker.io/swerebenchv2/streamlink-streamlink:1550-f25bf21 | streamlink__streamlink-1550 | Method: Pixiv.can_handle_url(cls, url: str) → bool
Location: streamlink/plugins/pixiv.py, class Pixiv
Inputs: *url* – a string containing the target URL to be evaluated. Must be a full HTTP/HTTPS URL.
Outputs: Returns **True** if the URL matches the Pixiv Sketch pattern (`https?://sketch\.pixiv\.net/…`), otherwise **Fa... | python | BSD-2-Clause | diff --git a/docs/plugin_matrix.rst b/docs/plugin_matrix.rst
index b3f1584e..8ba5f492 100644
--- a/docs/plugin_matrix.rst
+++ b/docs/plugin_matrix.rst
@@ -141,6 +141,7 @@ ovvatv ovva.tv Yes No
pandatv panda.tv Yes ?
periscope periscope.tv Yes Y... | [pixiv] New plugin for sketch.pixiv.net
Streams can be found at https://sketch.pixiv.net/lives
closes #1515
---
Ping @Gameplayer9198 | [Plugin Request] pixiv Sketch
- [ ] This is a bug report.
- [x] This is a feature request.
- [ ] This is a plugin (improvement) request.
- [x] I have read the contribution guidelines.
I'm requesting a plugin for pixiv sketch
its streamed via HLS it serves a generated .m3u8(for 30ish seconds) along with its 3i... | streamlink/streamlink | diff --git a/tests/test_plugin_pixiv.py b/tests/test_plugin_pixiv.py
new file mode 100644
index 00000000..8d547d3d
--- /dev/null
+++ b/tests/test_plugin_pixiv.py
@@ -0,0 +1,19 @@
+import unittest
+
+from streamlink.plugins.pixiv import Pixiv
+
+
+class TestPluginPixiv(unittest.TestCase):
+ def test_can_handle_url(se... | [
"tests/test_plugin_pixiv.py::TestPluginPixiv::test_can_handle_url",
"tests/test_plugin_youtube.py::TestPluginYouTube::test_can_handle_url"
] | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://hls4.pixivsketch.net/2018022718/15197228728388... |
1ec2ee4c5b0f187782847bfb8805c324f26cb088 | 2020-10-09 14:25:34 | docker.io/swerebenchv2/alteryx-evalml:1284-1ec2ee4 | alteryx__evalml-1284 | Method: IterativeAlgorithm.add_result(self, score_to_minimize: float, pipeline: PipelineBase)
Location: evalml/automl/automl_algorithm/iterative_algorithm.py
Inputs:
- **score_to_minimize** – float representing the metric value that the AutoML search is trying to minimize (e.g., validation loss).
- **pipeline**... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 6598ea40..0d29a656 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -3,6 +3,7 @@ Release Notes
**Future Releases**
* Enhancements
+ * Added ability to freeze hyperparameters for AutoMLSearch ... | Freeze Hyperparameters for AutoMLSearch
fix #767
Right now, the implementation assumes that the user includes the 'default' values of the components in the hyperparameter dict. We catch the error that AutoML throws and warn the users if this default value isn't in the provided hyperparameter ranges. Hyperparameter ... | Ability to freeze specific hyperparameters
**Description**
There are cases where we'll want to fix certain pipeline parameters to a predetermined value, thus excluding them from the search.
Today, in order to do this, we'd have to define a new pipeline subclass which updates `custom_hyperparameters` to set only one... | alteryx/evalml | diff --git a/evalml/tests/automl_tests/test_automl.py b/evalml/tests/automl_tests/test_automl.py
index c61607d6..f6f6845d 100644
--- a/evalml/tests/automl_tests/test_automl.py
+++ b/evalml/tests/automl_tests/test_automl.py
@@ -1430,6 +1430,89 @@ def test_get_default_primary_search_objective():
get_default_prim... | [
"evalml/tests/pipeline_tests/test_pipelines.py::test_make_pipeline_error",
"evalml/tests/pipeline_tests/test_pipelines.py::test_make_pipeline_custom_hyperparameters[binary]",
"evalml/tests/pipeline_tests/test_pipelines.py::test_make_pipeline_custom_hyperparameters[multiclass]",
"evalml/tests/pipeline_tests/te... | [
"evalml/tests/automl_tests/test_automl.py::test_automl_data_check_results_is_none_before_search",
"evalml/tests/automl_tests/test_automl.py::test_automl_str_no_param_search",
"evalml/tests/automl_tests/test_automl.py::test_automl_serialization_protocol",
"evalml/tests/automl_tests/test_automl.py::test_invalid... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.79,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
99222f675dfe874033ac837340a98e7641de5f3b | 2025-05-23 11:16:54 | docker.io/swerebenchv2/narwhals-dev-narwhals:2598-99222f6 | narwhals-dev__narwhals-2598 | Method: ExprStringNamespace.zfill(self, width: int) -> ExprT
Location: narwhals/expr_str.py
Inputs: width (int) – target length of the string after padding; if the original string length ≥ width, it is returned unchanged; negative width is treated as no‑op.
Outputs: ExprT – a new expression where each string value is l... | python | MIT | diff --git a/docs/api-reference/expr_str.md b/docs/api-reference/expr_str.md
index bb6abb7e..9fd31704 100644
--- a/docs/api-reference/expr_str.md
+++ b/docs/api-reference/expr_str.md
@@ -18,5 +18,6 @@
- to_datetime
- to_lowercase
- to_uppercase
+ - zfill
show_source: false
... | feat: Add support for `Expr.str.zfill`
<!--
# Thanks for contributing a pull request!
## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md
-->
This adds `zfill` for both Series and Expr
## What type of PR is this? (check all applicable)
... | [Enh]: str zfill
### 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?
I would like to use narwhals for the latent-calendar project. However, it uses zfill
https://github.com/williambdean/laten... | narwhals-dev/narwhals | diff --git a/tests/expr_and_series/str/zfill_test.py b/tests/expr_and_series/str/zfill_test.py
new file mode 100644
index 00000000..8e4eccf2
--- /dev/null
+++ b/tests/expr_and_series/str/zfill_test.py
@@ -0,0 +1,46 @@
+from __future__ import annotations
+
+import pytest
+
+import narwhals as nw
+from tests.utils import... | [
"tests/expr_and_series/str/zfill_test.py::test_str_zfill[polars[eager]]",
"tests/expr_and_series/str/zfill_test.py::test_str_zfill_series[polars[eager]]",
"tests/expr_and_series/str/zfill_test.py::test_str_zfill[pyarrow]",
"tests/expr_and_series/str/zfill_test.py::test_str_zfill[pandas]",
"tests/expr_and_se... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://github.com/williambdean/latent-calendar/blob/07f... |
4f13e9c08fc7c219cae8bd5fed0b269bafedb889 | 2023-10-10 17:13:52 | docker.io/swerebenchv2/apiflask-apiflask:495-4f13e9c | apiflask__apiflask-495 | Method: APIFlask.doc(self, *args, **kwargs)
Location: src/apiflask/app.py – class APIFlask
Inputs:
- `responses` (optional dict): keys are HTTP status codes (int or str); values are either a full OpenAPI response object **or** a *partial* response object that may contain only:
- `content` (dict) – media‑type entries... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index 1ed3e6a..7c0d550 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,6 +2,10 @@
Released: -
+- Allow adding multiple media types for a response ([issue #494][issue_494])
+
+[issue_494]: https://github.com/apiflask/apiflask/issues/494
+
## Version 2.0.2
diff --git a/docs/o... | Allow adding multiple media types for a response
This PR modifies the code that handles `@app.doc(responses=...)`. The proposed implementation deals with cases where
a `dict` is passed.
The previous behavior assumed the passed dict would be used as the OpenAPI definition of the view's responses. This proposed imple... | Allow defining additional media types for a response
As mentioned in #492, it would be nice if APIFlask would provide an easier way to specify additional media types for a view's main response.
Currently the way to add additional media types is to use `app.doc(responses={})` but by doing so we need to provide the fu... | apiflask/apiflask | diff --git a/tests/test_decorator_doc.py b/tests/test_decorator_doc.py
index e988027..de9ed94 100644
--- a/tests/test_decorator_doc.py
+++ b/tests/test_decorator_doc.py
@@ -291,6 +291,54 @@ def test_doc_responses_custom_spec(app, client):
}
+def test_doc_responses_additional_content_type(app, client):
+ """... | [
"tests/test_decorator_doc.py::test_doc_responses_additional_content_type"
] | [
"tests/test_decorator_doc.py::test_doc_summary_and_description",
"tests/test_decorator_doc.py::test_doc_summary_and_description_with_methodview",
"tests/test_decorator_doc.py::test_doc_tags",
"tests/test_decorator_doc.py::test_doc_tags_with_methodview",
"tests/test_decorator_doc.py::test_doc_hide",
"tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://developer.mozilla.org/en-US/docs/Web/HTTP/Cont... |
5f91b9dc05872a7f9e5aff9736d18b497f9bb7a1 | 2024-09-04 05:45:10 | docker.io/swerebenchv2/cogent3-cogent3:2013-5f91b9d | cogent3__cogent3-2013 | Method: IndelMap.__getitem__(self, key)
Location: src/cogent3/core/location.py → class IndelMap
Inputs:
- **self** – IndelMap instance containing `gap_pos`, `cum_gap_lengths`, and `parent_length`.
- **key** – a ``slice`` object (start, stop, step) or an integer index. The slice may have positive or negative st... | python | BSD-3-Clause | diff --git a/src/cogent3/core/alignment.py b/src/cogent3/core/alignment.py
index deb9a1a86..e5ffe0ed8 100644
--- a/src/cogent3/core/alignment.py
+++ b/src/cogent3/core/alignment.py
@@ -2514,7 +2514,7 @@ class AlignmentI(object):
default_gap = "-" # default gap character for padding
gap_chars = dict.fromkeys(... | ENH: add support for reversing and strides when indexing IndelMaps and Alignments, fixes #1967
in this PR:
- support for slicing IndelMaps with stride < 0, fixes #1967
- support for slicing Alignments with stride < 0
- support for negative indexing of Alignments
| ENH: implement support for strides in IndelMap
The following currently is not supported
```python
import numpy
from cogent3.core.location import IndelMap
im = IndelMap(gap_pos=numpy.array([3, 8]), gap_lengths=numpy.array([2, 1]), parent_length=11)
im[::3]
```
We need to support, this means adjusting the gap po... | cogent3/cogent3 | diff --git a/tests/test_core/test_location.py b/tests/test_core/test_location.py
index e0c91087e..a367f7e39 100644
--- a/tests/test_core/test_location.py
+++ b/tests/test_core/test_location.py
@@ -696,19 +696,26 @@ def test_indelmap_slice_zero():
def test_indelmap_invalid_slice_range():
+ # If we mirror python ... | [
"tests/test_core/test_location.py::test_indelmap_invalid_slice_range",
"tests/test_core/test_location.py::test_indelmap_negative_step_variant_slices[TCAGTCAGTC--1-0-0]",
"tests/test_core/test_location.py::test_indelmap_negative_step_variant_slices[TCAGTCAGTC--1-0-1]",
"tests/test_core/test_location.py::test_i... | [
"tests/test_core/test_location.py::SpanTests::test_cmp",
"tests/test_core/test_location.py::SpanTests::test_contains",
"tests/test_core/test_location.py::SpanTests::test_endsAfter",
"tests/test_core/test_location.py::SpanTests::test_endsAt",
"tests/test_core/test_location.py::SpanTests::test_endsBefore",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
81bdf54764c80b77f633edcf815b49370392e39c | 2020-07-13 00:45:17 | docker.io/swerebenchv2/pipxproject-pipx:448-81bdf54 | pipxproject__pipx-448 | Function: _get_absolute_python_interpreter(env_python: str) -> str
Location: src/pipx/interpreter.py
Inputs:
- **env_python** – a string representing a python interpreter name (e.g., `"python3"`) or an absolute/relative path to an executable. The value is looked up with `shutil.which`.
Constraints: must resolve to an ... | python | MIT | diff --git a/docs/changelog.md b/docs/changelog.md
index 0b72694..8287291 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -4,6 +4,7 @@ dev
- [bugfix] Fixed regression in list, inject, upgrade, reinstall-all commands when suffixed packages are used.
- [bugfix] Do not reset package url during upgrade when mai... | Add env var to set DEFAULT_PYTHON (add Pyenv support)
Fixes #113.
This keeps sys.executable as the default, but will use the PIPX_DEFAULT_PYTHON environment variable, if defined. This mean no change in functionality for any users until they define the variable.
I'm suggesting the var `PIPX_DEFAULT_PYTHON` (no `PY... | Add pyenv compatibility
I've got a CLI-tool (tmux-res) I built for handling some common tasks in my TMUX-environment which I built a while back. For fun I wanted to try installing it via pipx but it doesn't work.
This is the package:
https://pypi.org/project/tmux-res/
```sh
$ pyenv global 3.7.2
$ python --ve... | pipxproject/pipx | diff --git a/tests/test_interpreter.py b/tests/test_interpreter.py
index c7a93e2..f54ea5e 100644
--- a/tests/test_interpreter.py
+++ b/tests/test_interpreter.py
@@ -3,7 +3,10 @@ import subprocess
import sys
import pytest # type: ignore
import pipx.interpreter
-from pipx.interpreter import _find_default_windows_pyth... | [
"tests/test_interpreter.py::test_windows_python_venv_present",
"tests/test_interpreter.py::test_windows_python_no_venv_py_present",
"tests/test_interpreter.py::test_windows_python_no_venv_python_present",
"tests/test_interpreter.py::test_windows_python_no_venv_no_python",
"tests/test_interpreter.py::test_wi... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pypi.org/project/tmux-res/"
],
"intent... |
4dbf653e40fedf76816208e26689c7b561356e49 | 2023-11-01 16:41:01 | docker.io/swerebenchv2/ecmwf-earthkit-data:251-4dbf653 | ecmwf__earthkit-data-251 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/earthkit/data/readers/grib/xarray.py b/earthkit/data/readers/grib/xarray.py
index f7ae1c6..a73794b 100644
--- a/earthkit/data/readers/grib/xarray.py
+++ b/earthkit/data/readers/grib/xarray.py
@@ -8,7 +8,6 @@
#
import logging
-import math
import warnings
from earthkit.data.utils.kwargs import Kwargs... | Fix crash in to_xarray when filter_by_keys is used
Fixes #250 | to_xarray should not crash when filter_by_keys backend_kwargs is used
### What happened?
We have a GRIB file containing model level data. (Note that since param `lnsp` is only defined on level 1 this data does not form a hypercube, but it is irrelevant for this issue).
:
assert ds["pres"].sizes["values"] == 6
+@pytest.mark.parametrize("mode", ["f... | [
"tests/grib/test_grib_convert.py::test_to_xarray_filter_by_keys[file]",
"tests/grib/test_grib_convert.py::test_to_xarray_filter_by_keys[numpy_fs]"
] | [
"tests/grib/test_grib_convert.py::test_icon_to_xarray[file]",
"tests/grib/test_grib_convert.py::test_icon_to_xarray[numpy_fs]",
"tests/grib/test_grib_convert.py::test_grib_to_pandas[file]",
"tests/grib/test_grib_convert.py::test_grib_to_pandas[numpy_fs]"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
40b87cc41e76b8ce04c0089643df5b510e468ee1 | 2022-03-04 23:00:21 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2230-40b87cc | aws-cloudformation__cfn-lint-2230 | Method: BackupPlanLifecycleRule.match(self, cfn)
Location: src/cfnlint/rules/resources/backup/BackupPlanLifecycleRule.py
Inputs:
- **cfn** (CloudFormation template object): an instance providing `get_resource_properties` used to retrieve lifecycle rule dictionaries.
Outputs:
- **list of RuleMatch** objects: each indi... | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/backup/BackupPlanLifecycleRule.py b/src/cfnlint/rules/resources/backup/BackupPlanLifecycleRule.py
new file mode 100644
index 000000000..f67f5025d
--- /dev/null
+++ b/src/cfnlint/rules/resources/backup/BackupPlanLifecycleRule.py
@@ -0,0 +1,31 @@
+"""
+Copyright Amazon.com, Inc. o... | [New Rule] BackupPlan Lifecycle cold to delete minimum difference
*Issue #, if available:*
Fixes #2229
*Description of changes:*
Adds a new rule to detect issues with the BackupPlan Lifecycle cold to delete minimum difference - more info in #2229.
Includes new rule and accompanied tests.
By submitting this p... | [New Rule] BackupPlan Lifecycle cold to delete minimum difference
*cfn-lint version:* 0.58.2
*Description of issue.*
In CloudFormation, when deploying a stack with an `AWS::Backup::BackupPlan` lifecycle rule to age off data after moving it to cold storage, the deployment will fail if the `DeleteAfterDays` value is ... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/bad/resources/backup/test_backup_plan_lifecycle_rule.yml b/test/fixtures/templates/bad/resources/backup/test_backup_plan_lifecycle_rule.yml
new file mode 100644
index 000000000..d3bf9278f
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/backup/test_backup_plan_lifecycle_rul... | [
"test/unit/rules/resources/backup/test_backup_plan_lifecycle_rule.py::TestBackupPlanLifecycleRule::test_file_negative",
"test/unit/rules/resources/backup/test_backup_plan_lifecycle_rule.py::TestBackupPlanLifecycleRule::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": "B5",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://user-images.githubusercontent.com/1835431/1568... |
f4037b24908a8c144d7afe65eaf08f6d1e061b1f | 2021-06-11 04:36:57 | docker.io/swerebenchv2/theacodes-nox:448-f4037b2 | theacodes__nox-448 | Method: Session.conda_install(*packages, auto_offline=False)
Location: nox.sessions.Session
Inputs:
- *packages (str): one or more package specifications to be installed via conda/mamba.
- auto_offline (bool, optional): when True and the virtual environment reports offline mode, the `--offline` flag is added to the ... | python | Apache-2.0 | diff --git a/docs/config.rst b/docs/config.rst
index d64d2f8..f3bb1b9 100644
--- a/docs/config.rst
+++ b/docs/config.rst
@@ -159,7 +159,7 @@ You can also specify that the virtualenv should *always* be reused instead of re
def tests(session):
pass
-You are not limited to virtualenv, there is a selection ... | feat: add mamba environment
Closes #444.
Initial prototype, no docs or tests yet. Does this look like a good way to do it? | conda: support for Mamba
**How would this feature be useful?**
It would be great to support `mamba`, which is a conda replacement solver that is dramatically faster. A solve of a complex package like ROOT (which is a reason to use conda in the first place) takes several minutes with conda, and a few seconds with mam... | theacodes/nox | diff --git a/tests/test_sessions.py b/tests/test_sessions.py
index 6bcd916..a7d1642 100644
--- a/tests/test_sessions.py
+++ b/tests/test_sessions.py
@@ -384,7 +384,8 @@ class TestSession:
"auto_offline", [False, True], ids="auto_offline={}".format
)
@pytest.mark.parametrize("offline", [False, True], ... | [
"tests/test_sessions.py::TestSession::test_conda_install[mamba-offline=False-auto_offline=False]",
"tests/test_sessions.py::TestSession::test_conda_install[mamba-offline=False-auto_offline=True]",
"tests/test_sessions.py::TestSession::test_conda_install[mamba-offline=True-auto_offline=False]",
"tests/test_ses... | [
"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": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/theacodes/nox/issues/346#issue-6956... |
90080ba0de12e561b138ce221b5a67dcd932ab3e | 2021-03-13 18:33:08 | docker.io/swerebenchv2/samuelcolvin-pydantic:2519-90080ba | samuelcolvin__pydantic-2519 | Function: is_none_type(type_: Any) -> bool
Location: pydantic/typing.py
Inputs:
- **type_** (Any): the type or value to be examined; may be a concrete type (e.g., `None`, `type(None)`, `typing.Literal[None]`) or any other object.
Outputs:
- **bool**: `True` if `type_` is recognized as a representation of the `None` t... | python | MIT | diff --git a/changes/2519-daviskirk.md b/changes/2519-daviskirk.md
new file mode 100644
index 000000000..419646e3b
--- /dev/null
+++ b/changes/2519-daviskirk.md
@@ -0,0 +1,1 @@
+Allow `collections.abc.Callable` to be used as type in python 3.9.
diff --git a/pydantic/fields.py b/pydantic/fields.py
index 93887e8f0..e0eb1... | Allow collections.abc.Callable to be used as type in python 3.9
## Change Summary
Allows using python 3.9 generic alias version of `Callable` (`collections.abc.Callable`)
Fixes #2465
## Related issue number
Address #2465
## Checklist
* [x] Unit tests for the changes exist
* [x] Tests pass on CI and c... | python 3.9 generic alias Callable from collections module does not behave correctly in generics
# Bug
Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`:
```
pydantic version: 1.8
pydantic compiled: False
install path: /home/user/Docume... | samuelcolvin/pydantic | diff --git a/tests/test_callable.py b/tests/test_callable.py
index 037b692e1..cf31241a2 100644
--- a/tests/test_callable.py
+++ b/tests/test_callable.py
@@ -1,11 +1,18 @@
+import sys
from typing import Callable
import pytest
from pydantic import BaseModel, ValidationError
+collection_callable_types = [Callable... | [
"tests/test_callable.py::test_callable[Callable0]",
"tests/test_callable.py::test_callable[Callable1]",
"tests/test_callable.py::test_callable[Callable2]",
"tests/test_callable.py::test_callable[Callable3]",
"tests/test_callable.py::test_non_callable[Callable0]",
"tests/test_callable.py::test_non_callable... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.python.org/3.10/whatsnew/3.10.html#collec... |
76cc18d1f0bd5854f14526e3ccbce631d8344cce | 2021-07-15 08:01:06 | docker.io/swerebenchv2/pallets-click:2006-76cc18d | pallets__click-2006 | Method: click.types.Path.__init__(self, resolve_path=False, exists=False, file_okay=True, dir_okay=True, readable=False, writable=False, resolve_path=False, path_type=None, **kwargs)
Location: src/click/types.py, class Path (subclass of click.ParamType)
Inputs:
- **resolve_path** (bool) – if True, the path will be res... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index e5876af..2193f96 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -12,6 +12,8 @@ Unreleased
:issue:`1969`
- Fix shell completion for arguments that start with a forward slash
such as absolute file paths. :issue:`1929`
+- ``Path`` type with ``resolve_path=True`` r... | fix resolution of relative symlinks
This resolves (relative) symlinks to the right directory. This is done by prepending the absolute directory path of the relative symlink to the resolved path.
- fixes #1921
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail wit... | Regression in click>=8; click.Path says file doesn't exist when it does
<!--
This issue tracker is a tool to address bugs in Click itself. Please use
Pallets Discord or Stack Overflow for questions about your own code.
Replace this comment with a clear outline of what the bug is.
-->
https://github.com/pallets... | pallets/click | diff --git a/tests/conftest.py b/tests/conftest.py
index 9440804..d33df11 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,7 @@
+import os
+import shutil
+import tempfile
+
import pytest
from click.testing import CliRunner
@@ -6,3 +10,22 @@ from click.testing import CliRunner
@pytest.fixture(scope... | [
"tests/test_types.py::test_symlink_resolution[sym_file0-basename]"
] | [
"tests/test_types.py::test_range[type0-3-3]",
"tests/test_types.py::test_range[type1-5-5]",
"tests/test_types.py::test_range[type2-100-100]",
"tests/test_types.py::test_range[type3-5-5]",
"tests/test_types.py::test_range[type4--100--100]",
"tests/test_types.py::test_range[type5--1-0]",
"tests/test_types... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/pallets/click/pull/1825",
"ht... |
8ae2d6f1c3c067c941fd9d212e52972c7d3382cc | 2021-05-16 10:15:41 | docker.io/swerebenchv2/python-attrs-attrs:817-8ae2d6f | python-attrs__attrs-817 | Function: _add_init(cls, frozen, slots=False, hash=False, eq=False, order=False, repr=False, kw_only=False, init=False, cache_hash=False, base_attr_map={}, is_exc=False, cls_on_setattr=None, attrs_init=False)
Location: tests/test_dunders.py (test helper used to build a class with specific Attrs configuration)
Inputs:
-... | python | MIT | diff --git a/changelog.d/817.change.rst b/changelog.d/817.change.rst
new file mode 100644
index 0000000..3a53efc
--- /dev/null
+++ b/changelog.d/817.change.rst
@@ -0,0 +1,1 @@
+If the class-level *on_setattr* is set to ``attr.setters.validate`` (default in ``@attr.define`` and ``@attr.mutable``) but no field defines a ... | Optimize the case of on_setattr=validate & no validators
This is important because define/mutable have on_setattr=setters.validate on
default.
Fixes #816 | Warning in docs about frozen classes no longer applicable
If you check the docs on frozen classes (https://www.attrs.org/en/stable/how-does-it-work.html#immutability), you'll note it says "You should avoid instantiating lots of frozen slotted classes [...] in performance-critical code."
However... with `attr.define`... | python-attrs/attrs | diff --git a/tests/test_dunders.py b/tests/test_dunders.py
index 70f26d0..ba8f3ce 100644
--- a/tests/test_dunders.py
+++ b/tests/test_dunders.py
@@ -94,7 +94,7 @@ def _add_init(cls, frozen):
cache_hash=False,
base_attr_map={},
is_exc=False,
- has_global_on_setattr=False,
+ cls_o... | [
"tests/test_dunders.py::TestEqOrder::test_eq_ignore_attrib",
"tests/test_dunders.py::TestEqOrder::test_equal[C0]",
"tests/test_dunders.py::TestEqOrder::test_equal[C1]",
"tests/test_dunders.py::TestEqOrder::test_equal_callable[EqCallableC]",
"tests/test_dunders.py::TestEqOrder::test_equal_callable[EqCallable... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.attrs.org/en/stable/how-does-it-work.html#... |
6ffafef794bf3cf8fe5ee93bcd111c86579db68d | 2024-03-23 17:58:04 | docker.io/swerebenchv2/amaranth-lang-amaranth:1234-6ffafef | amaranth-lang__amaranth-1234 | Method: Signal.__init__(self, shape=None, init=None, reset_less=False, name=None, src_loc_at=0)
Location: amaranth/hdl/_ast.py → class Signal
Inputs:
- **shape** (optional) – signal width or shape object.
- **init** (optional) – reset/default value, int or Enum.
- **reset_less** (bool, default False) – omit r... | python | BSD-2-Clause | diff --git a/amaranth/hdl/_ast.py b/amaranth/hdl/_ast.py
index 1844880..551fcc3 100644
--- a/amaranth/hdl/_ast.py
+++ b/amaranth/hdl/_ast.py
@@ -1884,7 +1884,8 @@ class Signal(Value, DUID, metaclass=_SignalMeta):
If not specified, ``shape`` defaults to 1-bit and non-signed.
name : str
Name hint f... | Allow Signals to be privately named using `name=""`
Closes #1223
Tested a couple toy designs. The inclusion of FSM names being private should be enough to prevent regressions.
This does remove a bit of diagnostic power from the FSM tests. | Signals with private names
In some cases it is desirable to create a signal with a name that doesn't show up in the waveform viewer, such as when a signal is created to hold the results of intermediate computations, or to change shape, and it would just add noise. I propose adding a notion of a "private signal name".
... | amaranth-lang/amaranth | diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py
index d233b23..576aa90 100644
--- a/tests/test_hdl_ast.py
+++ b/tests/test_hdl_ast.py
@@ -1180,6 +1180,8 @@ class SignalTestCase(FHDLTestCase):
self.assertEqual(s1.name, "s1")
s2 = Signal(name="sig")
self.assertEqual(s2.name, "sig")
+... | [
"tests/test_hdl_ast.py::SignalTestCase::test_name",
"tests/test_hdl_ast.py::SignalTestCase::test_repr",
"tests/test_hdl_dsl.py::DSLTestCase::test_FSM_basic",
"tests/test_hdl_dsl.py::DSLTestCase::test_FSM_init",
"tests/test_hdl_dsl.py::DSLTestCase::test_FSM_ongoing",
"tests/test_hdl_dsl.py::DSLTestCase::te... | [
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong",
"tests/test_hdl_ast... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7bde24e9c9b5c5a0e228b4c62c094fced9901c3b | 2021-02-26 19:59:55 | docker.io/swerebenchv2/alteryx-woodwork:640-7bde24e | alteryx__woodwork-640 | Method: WoodworkTableAccessor.drop(self, columns)
Location: woodwork/table_accessor.py (around line 457)
Inputs:
- **columns** (str or list‑like of str): name or collection of column names to remove. Must exist in the DataFrame; otherwise a `ValueError` is raised listing the missing columns.
Outputs:
- Returns a **pand... | python | BSD-3-Clause | diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst
index d5b9119..dea1466 100644
--- a/docs/source/api_reference.rst
+++ b/docs/source/api_reference.rst
@@ -12,6 +12,7 @@ WoodworkTableAccessor
WoodworkTableAccessor
WoodworkTableAccessor.describe
WoodworkTableAccessor.describe_dict... | Add drop to WoodworkTableAccessor
- Allows for `df.ww.drop`, returning a new dataframe with Woodwork initialized
- Closes #615
| Add WoodworkTableAccessor.drop
- Creates a new DataFrame without the specified columns that has Woodwork initialized using the typing information from the original DataFrame
| alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py
index 7948061..f3b1df0 100644
--- a/woodwork/tests/accessor/test_table_accessor.py
+++ b/woodwork/tests/accessor/test_table_accessor.py
@@ -721,13 +721,6 @@ def test_underlying_index(sample_df):
assert sche... | [
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop_indices[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop_errors[sample_df_pandas]"
] | [
"woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]",
"woodwork/tests/ac... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
94a816df1a2d3091fd37357b9bac21e2fb867cdf | 2020-11-30 17:05:02 | docker.io/swerebenchv2/alteryx-evalml:1476-94a816d | alteryx__evalml-1476 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index ddfd9515..32dbaf35 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -5,6 +5,7 @@ Release Notes
* Enhancements
* Fixes
* Updated ``Woodwork`` to >=0.0.5 in ``core-requirements.txt`` :pr:`1... | Update `detect_problem_types` implementation
fix #1469
Updated this implementation to catch Int64 dtypes. Previously, using `analyze_metadata` in looking_glass, if the target data was `Int64`, the problem_type would be classified as multiclass as long as there were `>2` unique values.
After using `is_numeric_dt... | Update `numeric_dtypes`
Update the values that are considered numeric types in `gen_utils.numeric_dtypes`. Woodwork supports many additional numeric dtypes that aren't captured by the `numeric_dtypes` array we currently have in EvalML.
Repro code:
```python
import woodwork as ww
from evalml.utils.gen_utils impor... | alteryx/evalml | diff --git a/evalml/tests/problem_type_tests/test_problem_types.py b/evalml/tests/problem_type_tests/test_problem_types.py
index 47fb2e7b..4b071a3b 100644
--- a/evalml/tests/problem_type_tests/test_problem_types.py
+++ b/evalml/tests/problem_type_tests/test_problem_types.py
@@ -95,6 +95,14 @@ def test_detect_problem_ty... | [
"evalml/tests/problem_type_tests/test_problem_types.py::test_numeric_extensions"
] | [
"evalml/tests/problem_type_tests/test_problem_types.py::test_handle_string",
"evalml/tests/problem_type_tests/test_problem_types.py::test_handle_problem_types",
"evalml/tests/problem_type_tests/test_problem_types.py::test_handle_incorrect_type",
"evalml/tests/problem_type_tests/test_problem_types.py::test_det... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://user-images.githubusercontent.com/22552445/10015... |
3526b651a9d0686542efa08b6dc83e55cbd194a4 | 2022-05-13 21:37:46 | docker.io/swerebenchv2/stac-utils-pystac:808-3526b65 | stac-utils__pystac-808 | Method: Asset.get_absolute_href(self)
Location: Called on an Asset instance, typically after `Asset.set_owner(item)` (or with no owner).
Inputs: No explicit parameters; uses `self.href` (string) and, if present, `self.owner` (an Item) to resolve a base HREF.
Outputs: `str` – the absolute HREF of the asset when it... | python | custom-check-github | diff --git a/mypy.ini b/mypy.ini
index 90581dec..5fcd1391 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -10,6 +10,3 @@ ignore_missing_imports = True
[mypy-setuptools.*]
ignore_missing_imports = True
-
-[mypy-sphinx.util]
-ignore_missing_imports = True
diff --git a/pystac/asset.py b/pystac/asset.py
index d027721f..7402054... | Return None from Asset.get_absolute_href when owning Item self HREF is NOne
**Related Issue(s):
* Closes #754
**Description:**
`Asset.get_absolute_href` now returns `None` when the owning `Item` has no self HREF.
**PR Checklist:**
- [x] Code is formatted (run `pre-commit run --all-files`)
- [x] Tests p... | `Asset.get_absolute_href()` should return `None` but doesn't
When STAC item doesn't have a self link and asset `href` is not absolute then I expect `.get_absolute_href()` to return `None`, instead it returns absolute path in the form `{absolute_path_to_the_current_working_directory}/{relative_path_of_the_asset}`.
``... | stac-utils/pystac | diff --git a/tests/test_item.py b/tests/test_item.py
index 904ac0be..7788dbc4 100644
--- a/tests/test_item.py
+++ b/tests/test_item.py
@@ -72,14 +72,28 @@ class ItemTest(unittest.TestCase):
self.assertFalse(is_absolute_href(asset.href))
def test_asset_absolute_href(self) -> None:
+ item_p... | [
"tests/test_item.py::ItemTest::test_asset_absolute_href_no_item_self"
] | [
"tests/test_item.py::TestCases::test_case_1",
"tests/test_item.py::TestCases::test_case_2",
"tests/test_item.py::TestCases::test_case_3",
"tests/test_item.py::TestCases::test_case_4",
"tests/test_item.py::TestCases::test_case_5",
"tests/test_item.py::TestCases::test_case_6",
"tests/test_item.py::TestCas... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/stac-utils/pystac/blob/2d175d11223738... |
2752d814c58c07b39c652f576d01dc9e2e77e88e | 2023-02-14 12:56:56 | docker.io/swerebenchv2/marketsquare-robotframework-robocop:775-2752d81 | marketsquare__robotframework-robocop-775 | Method: Robocop.list_checkers(self)
Location: robocop/run.py, class Robocop
Inputs: self – Robocop instance whose `config.list` attribute is a string (either a glob pattern or the special keywords `"ENABLED"` / `"DISABLED"`). No other parameters.
Outputs: None (the method prints rule information to stdout and terminate... | python | Apache-2.0 | diff --git a/docs/cli_options.rst b/docs/cli_options.rst
index c8c3904..55ed243 100644
--- a/docs/cli_options.rst
+++ b/docs/cli_options.rst
@@ -50,9 +50,13 @@ and you will be shown with the following output:
-c line-too-long:line_length:150
--configure 0101:sev... | Filter --list/--list-configurables by status
Closes #764
PR based on #774 | List only enabled rules
As rule list is quite long already and growing I'd like a way of listing only the rules I have enabled.
It is quite impossible to spot only the enabled rules from all the all rules.
| MarketSquare/robotframework-robocop | diff --git a/tests/utest/test_listing_rules.py b/tests/utest/test_listing_rules.py
index 827f299..2041d2f 100644
--- a/tests/utest/test_listing_rules.py
+++ b/tests/utest/test_listing_rules.py
@@ -1,9 +1,9 @@
import pytest
import robocop.config
-from robocop.utils import ROBOT_VERSION
from robocop.checkers import ... | [
"tests/utest/test_listing_rules.py::TestListingRules::test_list_filter_enabled",
"tests/utest/test_listing_rules.py::TestListingRules::test_list_filter_disabled"
] | [
"tests/utest/test_listing_rules.py::TestListingRules::test_list_rule",
"tests/utest/test_listing_rules.py::TestListingRules::test_list_disabled_rule",
"tests/utest/test_listing_rules.py::TestListingRules::test_list_reports",
"tests/utest/test_listing_rules.py::TestListingRules::test_multiple_checkers",
"tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0227fdabc5fec87b71cd211dbbeffc9ebd6afaab | 2022-07-17 11:11:52 | docker.io/swerebenchv2/enthought-traits:1670-0227fda | enthought__traits-1670 | Method: ETSConfig.application_data(self)
Location: traits/etsconfig/etsconfig.py – defined as `@application_data.deleter`
Inputs: **self** – the ETSConfig singleton instance.
Outputs: Resets the internal `_application_data` attribute to `None`; subsequent accesses return the default application‑data path.
Description: ... | python | custom-check-github | diff --git a/traits/etsconfig/etsconfig.py b/traits/etsconfig/etsconfig.py
index 1d7a1b8b..45b66cd0 100644
--- a/traits/etsconfig/etsconfig.py
+++ b/traits/etsconfig/etsconfig.py
@@ -117,6 +117,10 @@ class ETSConfig(object):
self._application_data = application_data
+ @application_data.deleter
+ def ... | Add property deleters for ETSConfig
This PR adds property deleters for the properties on `ETSConfig` i.e. `application_data`, `application_home`, `company`, `toolkit`, `kiva_backend` and `user_data`.
fixes #1668
**Checklist**
- [x] Tests
- [ ] ~Update API reference (`docs/source/traits_api_reference`)~
- [ ] ... | ETSConfig attributes can't be deleted
Most of the interesting `ETSConfig` attributes are exposed as properties wrapping a hidden private field. Those properties have getters and setters but no deleters.
The missing deleters cause issues when trying to mock `ETSConfig` attributes, which would otherwise be a reasonabl... | enthought/traits | diff --git a/traits/etsconfig/tests/test_etsconfig.py b/traits/etsconfig/tests/test_etsconfig.py
index 271f6dc4..5bc247e9 100644
--- a/traits/etsconfig/tests/test_etsconfig.py
+++ b/traits/etsconfig/tests/test_etsconfig.py
@@ -17,8 +17,8 @@ import shutil
import sys
import tempfile
import time
-
import unittest
+fro... | [
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_delete_application_data",
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_delete_application_home",
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_delete_company",
"traits/etsconfig/tests/test_etsconfig.p... | [
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_application_data",
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_application_data_is_idempotent",
"traits/etsconfig/tests/test_etsconfig.py::ETSConfigTestCase::test_default_backend_for_qt5_toolkit",
"traits/etsconfig/tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
0bfbb7f8b0c66e66bb83d18697d21d0c6ea0c457 | 2022-05-22 18:31:08 | docker.io/swerebenchv2/pytask-dev-pytask:276-0bfbb7f | pytask-dev__pytask-276 | Function: is_git_installed()
Location: _pytask.git
Inputs: None
Outputs: bool – returns **True** if the executable “git” is found on the system’s PATH (i.e., shutil.which("git") is not None), otherwise **False**.
Description: Detects whether the Git command‑line tool is available; used by higher‑level commands (e.g., `... | python | custom-check-github | diff --git a/docs/source/changes.md b/docs/source/changes.md
index 180fb41..ccff52f 100644
--- a/docs/source/changes.md
+++ b/docs/source/changes.md
@@ -5,10 +5,16 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
releases are available on [PyPI](https://pypi.org/project/pytask) and
[... | Fix `pytask clean` when git is not installed.
#### Changes
Closes #275. | BUG: Make `clean` more robust when git is not installed.
#### Is your feature request related to a problem?
On systems without git a FileNotFoundError is raised which is not handled.
Here is the issue in the conda-forge repo: https://github.com/conda-forge/pytask-feedstock/pull/24.
#### Describe the solution y... | pytask-dev/pytask | diff --git a/tests/test_clean.py b/tests/test_clean.py
index f929f37..a0f463b 100644
--- a/tests/test_clean.py
+++ b/tests/test_clean.py
@@ -221,3 +221,31 @@ def test_dont_remove_files_tracked_by_git(runner, git_project):
assert "tracked.txt" not in result.output
assert "in_tracked.txt" not in result.output
... | [
"tests/test_clean.py::test_clean_with_excluded_file[*_1.txt--e]",
"tests/test_clean.py::test_clean_with_excluded_file[*_1.txt---exclude]",
"tests/test_clean.py::test_clean_with_excluded_file[to_be_deleted_file_[1]*--e]",
"tests/test_clean.py::test_clean_with_excluded_file[to_be_deleted_file_[1]*---exclude]",
... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/conda-forge/pytask-feedstock/pull/24"... |
6bde3618237cdae312e4e7fb006690be2a3ee0f6 | 2025-02-22 10:44:17 | docker.io/swerebenchv2/python-attrs-attrs:1410-6bde361 | python-attrs__attrs-1410 | No new interfaces are introduced. | python | MIT | diff --git a/changelog.d/1410.change.md b/changelog.d/1410.change.md
new file mode 100644
index 0000000..0536da8
--- /dev/null
+++ b/changelog.d/1410.change.md
@@ -0,0 +1,1 @@
+The error message if an attribute has both an annotation and a type argument will now disclose _what_ attribute seems to be the problem.
diff -... | Mention what argument has both annotation and type argument
Fixes #1354
| unhelpful message "ValueError: Type annotation and type argument cannot both be present"
Getting this message because I both have the type annotation and type defined on a custom attribute class which is reasonable considering the ambiguity.
However I think the message itself could be more helpful by displaying the ... | python-attrs/attrs | diff --git a/tests/test_annotations.py b/tests/test_annotations.py
index f37a1c0..5c62966 100644
--- a/tests/test_annotations.py
+++ b/tests/test_annotations.py
@@ -62,7 +62,7 @@ class TestAnnotations:
x: int = attr.ib(type=int)
assert (
- "Type annotation and type argument cannot... | [
"tests/test_annotations.py::TestAnnotations::test_catches_basic_type_conflict"
] | [
"tests/test_annotations.py::TestAnnotations::test_basic_annotations",
"tests/test_annotations.py::TestAnnotations::test_typing_annotations",
"tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected",
"tests/test_annotations.py::TestAnnotations::test_auto_attribs_unannotated[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": "easy",
"external_urls": [
"https://github.com/python-attrs/attrs/blob/2afd663bf40e4... |
835a2dfc935824956db6b89d4c963f2812c0b761 | 2023-12-12 16:59:26 | docker.io/swerebenchv2/pyomo-pyomo:3069-835a2df | pyomo__pyomo-3069 | Method: get_incident_variables(expr, method=IncidenceMethod.standard_repn_compute_values, include_fixed=False, linear_only=False)
Location: pyomo/contrib/incidence_analysis/incidence.py
Inputs:
- **expr** – a Pyomo expression whose incident variables are to be identified.
- **method** – must be the enum value `Incid... | python | custom-check-github | diff --git a/pyomo/contrib/incidence_analysis/config.py b/pyomo/contrib/incidence_analysis/config.py
index a107792a9..72d1a41ac 100644
--- a/pyomo/contrib/incidence_analysis/config.py
+++ b/pyomo/contrib/incidence_analysis/config.py
@@ -13,6 +13,9 @@
import enum
from pyomo.common.config import ConfigDict, ConfigVal... | Add `ampl_repn` option to Incidence Analysis
## Fixes #3068
## Summary/Motivation:
The main motivation is to add an option that greedily removes `0*x` terms from nonlinear subexpressions. Secondarily, `AMPLRepnVisitor` likely has performance benefits compared to `generate_standard_repn` and is consistent with the p... | Add `AMPLRepn` option to `get_incident_variables`
## Summary
`get_incident_variables` doesn't currently have any option that will greedily remove from subexpressions all the terms of the form: `p*x` where `p == 0`. This means that if such a term appears in a nonlinear subexpression, `x` will be considered "incident ... | Pyomo/pyomo | diff --git a/pyomo/contrib/incidence_analysis/tests/test_incidence.py b/pyomo/contrib/incidence_analysis/tests/test_incidence.py
index 7f57dd904..2d178c621 100644
--- a/pyomo/contrib/incidence_analysis/tests/test_incidence.py
+++ b/pyomo/contrib/incidence_analysis/tests/test_incidence.py
@@ -56,44 +56,56 @@ class _Test... | [
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestIncidenceAmplRepn::test_basic_incidence",
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestIncidenceAmplRepn::test_fixed_zero_linear_coefficient",
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestIncidenceAmplRepn::test_i... | [
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestAssumedBehavior::test_uninitialized_value_error_message",
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestIncidenceStandardRepn::test_assumed_standard_repn_behavior",
"pyomo/contrib/incidence_analysis/tests/test_incidence.py::TestInci... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
7c0a3bd02814354f818ebd46e6aded05397bdacb | 2020-02-08 18:29:21 | docker.io/swerebenchv2/yelp-bravado-core:367-7c0a3bd | yelp__bravado-core-367 | Method: swagger20_validator.discriminator_validator(validator, discriminator_attribute, instance, schema, **kwargs)
Location: bravado_core/swagger20_validator.py
Inputs:
- **validator** (jsonschema.Validator): the validator instance invoking this custom validator.
- **discriminator_attribute** (str): the name of the... | python | custom-check-github | diff --git a/bravado_core/swagger20_validator.py b/bravado_core/swagger20_validator.py
index 4c52f71..1b76188 100644
--- a/bravado_core/swagger20_validator.py
+++ b/bravado_core/swagger20_validator.py
@@ -210,6 +210,9 @@ def discriminator_validator(
:type schema: dict
"""
+ if instance is None and is_pro... | Fix issue #359: properly validate nullable polymorphic models
The goal of this review is to address the validation issue that affects polymorphic models that are nullable (via `x-nullable` field).
In order to better highlight the reported issue I've modified the `polymorphic_specs` to ensure that the operation (endp... | Validation fails for x-nullable objects that happen to have discriminator
Where a thing is defined as `x-nullable` and has a `discriminator` at the same time, `bravado-core@5.14.0` validation fails with a `TypeError` in case the instance resolves to `None`:
```
Traceback (most recent call last):
File "/Users/mys... | Yelp/bravado-core | diff --git a/test-data/2.0/polymorphic_specs/swagger.json b/test-data/2.0/polymorphic_specs/swagger.json
index 48f181c..28e46ff 100644
--- a/test-data/2.0/polymorphic_specs/swagger.json
+++ b/test-data/2.0/polymorphic_specs/swagger.json
@@ -15,10 +15,7 @@
"200": {
"description": "Pet List",
... | [
"tests/response/unmarshal_response_test.py::test_unmarshal_model_polymorphic_specs_with_xnullable_field"
] | [
"tests/model/model_test.py::test_model_properties_iteration",
"tests/model/model_test.py::test_model_properties_iteration_additionalProperties",
"tests/model/model_test.py::test_model_properties_iteration_allOf",
"tests/model/model_test.py::test_model_delete_property",
"tests/model/model_test.py::test_model... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e7d4bdc6f29e1853154b73e3de2c479e0905a9ce | 2021-06-15 23:57:00 | docker.io/swerebenchv2/stac-utils-pystac:447-e7d4bdc | stac-utils__pystac-447 | Function: get_required(value, container, key)
Location: pystac.utils
Inputs:
- **value** (Any): The value to be returned; typically a field extracted from a STAC object (e.g., a summary entry).
- **container** (Any): The parent object from which *value* was obtained; used only for constructing informative error mess... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 42239d56..02b67810 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- `ItemCollection` class for working with GeoJSON FeatureCollections containing only
STAC Items ([#430](https://github.com/stac-utils/pystac/pull/430))
- Support for Python 3.9 ([#420](h... | Add migration for pre-1.0.0-rc.1 Stats Object
**Related Issue(s):** #
* Closes #330
**PR Checklist:**
- [x] Code is formatted (run `pre-commit run --all-files`)
- [x] Tests pass (run `scripts/test`)
- [x] This PR maintains or improves overall codebase code coverage.
- [ ] Changes are added to the [CHANGELO... | Add migration for change in summaries properties
https://github.com/radiantearth/stac-spec/pull/967
Summaries changed from min/max to minimum/maximum. Previous to #309 we were not parsing out the stats object stats object explicitly, and that PR adds a RangeSummary object with a minimum and maximum correctly named, ... | stac-utils/pystac | diff --git a/tests/serialization/test_migrate.py b/tests/serialization/test_migrate.py
index 1fe917ce..ec7a4795 100644
--- a/tests/serialization/test_migrate.py
+++ b/tests/serialization/test_migrate.py
@@ -10,7 +10,7 @@ from pystac.serialization import (
merge_common_properties,
migrate_to_latest,
)
-from p... | [
"tests/serialization/test_migrate.py::MigrateTest::test_migrates_pre_1_0_0_rc1_stats_summary"
] | [
"tests/serialization/test_migrate.py::TestCases::test_case_1",
"tests/serialization/test_migrate.py::TestCases::test_case_2",
"tests/serialization/test_migrate.py::TestCases::test_case_3",
"tests/serialization/test_migrate.py::TestCases::test_case_4",
"tests/serialization/test_migrate.py::TestCases::test_ca... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/radiantearth/stac-spec/pull/967"
... |
74724b899fc9eb013f9445faf090fafe265ef68b | 2023-09-19 13:07:21 | docker.io/swerebenchv2/cta-observatory-ctapipe:2397-74724b8 | cta-observatory__ctapipe-2397 | Method: CameraGeometry.position_to_pix_index(self, x, y)
Location: ctapipe/instrument/camera/geometry.py
Inputs:
- **x**, **y**: astropy Quantity objects representing X and Y coordinates (scalar or 1‑D array). Units must be compatible; empty arrays are permitted.
Outputs:
- Returns a NumPy integer pixel index for sca... | python | BSD-3-Clause | diff --git a/ctapipe/instrument/camera/geometry.py b/ctapipe/instrument/camera/geometry.py
index dd55b144..1d83a1ba 100644
--- a/ctapipe/instrument/camera/geometry.py
+++ b/ctapipe/instrument/camera/geometry.py
@@ -954,12 +954,13 @@ class CameraGeometry:
pix_indices: Pixel index or array of pixel indices. Retu... | Use intmin for invalid pixel positions, allow empty arguments
Fixes #1828 | CameraGeometry position_to_pix_index returns -1 for nan input
https://github.com/cta-observatory/ctapipe/blob/39762693534f7dc9b884684c3f82e153bd9da560/ctapipe/instrument/camera/geometry.py#L859
For example, of one uses it on image centroid coordinates to make a "pixelized" 2d histogram, all non-reconstructed images ... | cta-observatory/ctapipe | diff --git a/ctapipe/instrument/camera/tests/test_geometry.py b/ctapipe/instrument/camera/tests/test_geometry.py
index 10410e0e..8e3a7545 100644
--- a/ctapipe/instrument/camera/tests/test_geometry.py
+++ b/ctapipe/instrument/camera/tests/test_geometry.py
@@ -68,10 +68,20 @@ def test_load_lst_camera(prod5_lst):
def t... | [
"ctapipe/instrument/camera/tests/test_geometry.py::test_position_to_pix_index"
] | [
"ctapipe/instrument/camera/tests/test_geometry.py::test_construct",
"ctapipe/instrument/camera/tests/test_geometry.py::test_make_rectangular_camera_geometry",
"ctapipe/instrument/camera/tests/test_geometry.py::test_load_lst_camera",
"ctapipe/instrument/camera/tests/test_geometry.py::test_to_and_from_table",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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/cta-observatory/ctapipe/blob/39762693... |
2ee3a0aff9be2be3bea60640d3d8a0febaf0acb6 | 2025-03-19 12:20:53 | docker.io/swerebenchv2/yt-dlp-yt-dlp:12667-2ee3a0a | yt-dlp__yt-dlp-12667 | Method: JSInterpreter.extract_function(self, funcname, *global_stack)
Location: yt_dlp/jsinterp.py → class JSInterpreter
Inputs:
- **funcname** (str): name of the JavaScript function to extract.
- **global_stack** (optional positional arguments): zero or more dictionaries representing global variable mappings t... | python | Unlicense | diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py
index 74a043b9c..38e9673cd 100644
--- a/yt_dlp/extractor/_extractors.py
+++ b/yt_dlp/extractor/_extractors.py
@@ -1055,6 +1055,7 @@
)
from .livestreamfails import LivestreamfailsIE
from .lnk import LnkIE
+from .loco import LocoIE
from .l... | [ie/loco] Add extractor
<!--
**IMPORTANT**: PRs without the template will be CLOSED
Due to the high volume of pull requests, it may be a while before your PR is reviewed.
Please try to keep your pull request focused on a single bugfix or new feature.
Pull requests with a vast scope and/or very... | loco.com extractor support
### Checklist
- [x] I'm reporting a new site support request
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've checked that all provided URLs are playable in a browser with the same IP ... | yt-dlp/yt-dlp | diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py
index ed3ca61c4..055dcf42f 100644
--- a/test/test_jsinterp.py
+++ b/test/test_jsinterp.py
@@ -462,6 +462,16 @@ def test_js_number_to_string(self):
]:
assert js_number_to_string(test, radix) == expected
+ def test_extract_function(self... | [
"test/test_jsinterp.py::TestJSInterpreter::test_extract_function_with_global_stack",
"test/test_youtube_signature.py::TestPlayerInfo::test_youtube_extract_player_info",
"test/test_youtube_signature.py::TestSignature::test_nsig_js_009f1d77_player_ias_vflset_en_US_base",
"test/test_youtube_signature.py::TestSig... | [
"test/test_jsinterp.py::TestJSInterpreter::test_add",
"test/test_jsinterp.py::TestJSInterpreter::test_array_access",
"test/test_jsinterp.py::TestJSInterpreter::test_assignments",
"test/test_jsinterp.py::TestJSInterpreter::test_basic",
"test/test_jsinterp.py::TestJSInterpreter::test_bitwise_operators_overflo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.9,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/yt-dlp/yt-dlp#update-channels",
... |
34734ee85bb7f8485605fdff46d0ca5312276837 | 2024-07-30 16:03:09 | docker.io/swerebenchv2/automl-configspace:388-34734ee | automl__configspace-388 | Method: ConfigurationSpace.__init__(self, name: Optional[str] = None, space: Optional[Union[Mapping[str, Hyperparameter], Sequence[Hyperparameter]]] = None, **kwargs)
Location: src/ConfigSpace/configuration_space.py
Inputs:
- **name** – optional string; if omitted the name is taken from kwargs or left unset.
- ... | python | custom-check-github | diff --git a/src/ConfigSpace/configuration_space.py b/src/ConfigSpace/configuration_space.py
index 6615916..c0c0ecc 100644
--- a/src/ConfigSpace/configuration_space.py
+++ b/src/ConfigSpace/configuration_space.py
@@ -144,6 +144,7 @@ class ConfigurationSpace(Mapping[str, Hyperparameter]):
| str
... | feat: Allow `Sequence` as `space=` in `ConfigurationSpace`
* Closes #387 | Feature Request: Instantiate a ConfigSpace via a Sequence instead of a Mapping
If I read the code correctly, then if you instantiate a ConfigSpace via a Mapping where each value is a Hyperparameter, each single key of the Mapping will be discarded. To name the hyperparameters the names inside the hyperparameters are us... | automl/ConfigSpace | diff --git a/test/test_configuration_space.py b/test/test_configuration_space.py
index 2279638..2748942 100644
--- a/test/test_configuration_space.py
+++ b/test/test_configuration_space.py
@@ -48,6 +48,8 @@ from ConfigSpace import (
OrConjunction,
UniformIntegerHyperparameter,
)
+from ConfigSpace.api.types.f... | [
"test/test_configuration_space.py::test_configuration_space_can_be_made_with_sequence_of_hyperparameters"
] | [
"test/test_configuration_space.py::test_add",
"test/test_configuration_space.py::test_add_non_hyperparameter",
"test/test_configuration_space.py::test_add_hyperparameters_with_equal_names",
"test/test_configuration_space.py::test_illegal_default_configuration",
"test/test_configuration_space.py::test_meta_d... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
827585b134d730550820f307fb31a555d758c58c | 2025-04-12 19:54:38 | docker.io/swerebenchv2/joke2k-faker:2203-827585b | joke2k__faker-2203 | No new interfaces are introduced. | python | MIT | diff --git a/Makefile b/Makefile
index b4f3e407..a1651eb8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ black:
isort:
isort --atomic .
-generate-stubs:
+generate-stubs:
python3.11 generate_stubs.py
lint: generate-stubs isort black mypy flake8
diff --git a/dev-requirements.txt b/dev-requirements.txt
... | Add support for unique complex value types Fixes #1817
### What does this change
The changes modify the UniqueProxy class to handle unhashable return types (e.g., dictionaries) by introducing a _make_hashable method. This ensures that the uniqueness logic can work with complex return types without requiring changes ... | Unique profile
* Faker version: 17.4.0
* OS: Archlinux
Data unicity and profile are two great faker features, bun unfortunately they don't fit well together:
```python
>>> import faker
>>> fake = faker.Faker()
>>> fake.unique.profile()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>... | joke2k/faker | diff --git a/tests/test_unique.py b/tests/test_unique.py
index f939a6ab..3ccf0a3b 100644
--- a/tests/test_unique.py
+++ b/tests/test_unique.py
@@ -60,3 +60,18 @@ class TestUniquenessClass:
with pytest.raises(TypeError, match="Accessing non-functions through .unique is not supported."):
fake.uniq... | [
"tests/test_unique.py::TestUniquenessClass::test_complex_return_types_is_supported"
] | [
"tests/test_unique.py::TestUniquenessClass::test_uniqueness",
"tests/test_unique.py::TestUniquenessClass::test_sanity_escape",
"tests/test_unique.py::TestUniquenessClass::test_uniqueness_clear",
"tests/test_unique.py::TestUniquenessClass::test_exclusive_arguments",
"tests/test_unique.py::TestUniquenessClass... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
6da7c6f9b7f8b838fcc83e3c4274cc4b1a56896b | 2023-12-26 23:26:03 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3824-6da7c6f | hypothesisworks__hypothesis-3824 | Function: min_len(minimum: int, value: Any) -> bool
Location: hypothesis/internal/filtering.py
Inputs:
- **minimum** – the required minimum length (integer, must be non‑negative).
- **value** – the object whose length is being tested (any object supporting `len`).
Outputs: Returns ``True`` if ``len(value) >= minim... | python | custom-check-github | diff --git a/guides/documentation.rst b/guides/documentation.rst
index 63bec8625..d8849d6b0 100644
--- a/guides/documentation.rst
+++ b/guides/documentation.rst
@@ -58,7 +58,7 @@ That means every contributor gets to write their changelog!
A changelog entry should be written in a new ``RELEASE.rst`` file in
the `hypot... | Filter-rewriting for length filters
Resolves part of #3795
> in this case we'll want to apply the rewrite for efficiency, and apply the predicate as a filter in case the name len has been rebound in the enclosing scope
So we take the components of the lambda and re-write with them. However, how would we keep in m... | Filter-rewriting 2: rewrite harder
https://github.com/HypothesisWorks/hypothesis/issues/2701 proposed "rewriting" filters in simple cases, i.e. modifying the strategies to satisfy the condition by construction rather than rejection sampling. We shipped this for numeric comparisons, as well as some string methods and f... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_filter_rewriting.py b/hypothesis-python/tests/cover/test_filter_rewriting.py
index 115288c5a..5a77bd533 100644
--- a/hypothesis-python/tests/cover/test_filter_rewriting.py
+++ b/hypothesis-python/tests/cover/test_filter_rewriting.py
@@ -19,12 +19,14 @@ import pytest
fr... | [
"hypothesis-python/tests/cover/test_filter_rewriting.py::test_filter_rewriting_ints[integers(min_value=1)-functools.partial(lt,",
"hypothesis-python/tests/cover/test_filter_rewriting.py::test_filter_rewriting_ints[integers(min_value=1)-functools.partial(le,",
"hypothesis-python/tests/cover/test_filter_rewriting... | [
"hypothesis-python/tests/cover/test_filter_rewriting.py::test_filter_rewriting_ints[integers(min_value=1,",
"hypothesis-python/tests/cover/test_filter_rewriting.py::test_filter_rewriting_ints[integers()-lambda",
"hypothesis-python/tests/cover/test_filter_rewriting.py::test_filter_rewriting_floats[floats(min_val... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/HypothesisWorks/hypothesis/issues/270... |
c22e224ec56620c2a1d90016d74518970b1dd578 | 2024-12-04 23:49:21 | docker.io/swerebenchv2/lektor-lektor:1214-c22e224 | lektor__lektor-1214 | Function: atomic_open(filename: StrPath, mode: Literal["w", "wt", "tw", "r", "rt", "tr", "wb", "bw", "rb", "br"] = "r", encoding: str | None = None) → Iterator[IO[Any]]
Location: lektor/utils.py
Inputs:
- **filename** – path‑like object of the file to be written or read.
- **mode** – limited to safe atomic‑write mod... | python | BSD-3-Clause | diff --git a/lektor/builder.py b/lektor/builder.py
index 68667c7..94e74c8 100644
--- a/lektor/builder.py
+++ b/lektor/builder.py
@@ -6,7 +6,6 @@ import shutil
import sqlite3
import stat
import sys
-import tempfile
from collections import deque
from collections import namedtuple
from contextlib import contextmanag... | Fix file mode of created files
<!---
Remember to please check that your code passes tests locally. Test with the Makefile
commands `make test`, or if you only need to test just Python / JS `make test-python`
or `make test-js`.
--->
### Issue(s) Resolved
<!--- List the issue(s) below, in the form "Fixes #1234"... | File mask for build artifacts
```
> ls -l build/*
-rw------- 1 xyz xyz 20451 Nov 26 00:08 build/index.html
build/de:
total 24
-rw------- 1 xyz xyz 20518 Nov 26 00:08 index.html
build/static:
total 16
drwxr-xr-x 2 xyz xyz 4096 Nov 26 00:03 css/
drwxr-xr-x 2 xyz xyz 4096 Nov 26 00:03 img/
drwxr-xr-x 2 x... | lektor/lektor | diff --git a/tests/test_builder.py b/tests/test_builder.py
index e9e172c..0fceaa2 100644
--- a/tests/test_builder.py
+++ b/tests/test_builder.py
@@ -431,6 +431,22 @@ def test_Artifact_open_encoding(builder):
assert fp.read() == "Ciarán"
+def test_Artifact_file_mode(builder, tmp_path):
+ # Check that cre... | [
"tests/test_builder.py::test_basic_build",
"tests/test_builder.py::test_child_sources_basic",
"tests/test_builder.py::test_child_sources_pagination",
"tests/test_builder.py::test_basic_artifact_current_test",
"tests/test_builder.py::test_basic_template_rendering",
"tests/test_builder.py::test_attachment_c... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
7222c989d38c82c1eabfc7b4342c611cafd20a7a | 2024-08-10 22:56:43 | docker.io/swerebenchv2/tomplus-kubernetes-asyncio:330-7222c98 | tomplus__kubernetes_asyncio-330 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/kubernetes_asyncio/watch/watch.py b/kubernetes_asyncio/watch/watch.py
index 493c700c..ab09f2e3 100644
--- a/kubernetes_asyncio/watch/watch.py
+++ b/kubernetes_asyncio/watch/watch.py
@@ -174,16 +174,20 @@ class Watch(object):
line = line.decode('utf8')
+ # Special case for faster... | Fix stopping Watch for logs and events with timeout
Fixes #329 | Infinite watch stream loop
Hi! The below snippet works just fine on version 30.1.1 when I invoke on a pod in "Succeeded" state:
```python
import asyncio
from kubernetes_asyncio import client, watch, config
from kubernetes_asyncio.client.api_client import ApiClient
if __name__ == "__main__":
async def ma... | tomplus/kubernetes_asyncio | diff --git a/kubernetes_asyncio/watch/watch_test.py b/kubernetes_asyncio/watch/watch_test.py
index 28dedbc0..8b513793 100644
--- a/kubernetes_asyncio/watch/watch_test.py
+++ b/kubernetes_asyncio/watch/watch_test.py
@@ -74,7 +74,7 @@ class WatchTest(IsolatedAsyncioTestCase):
fake_resp = AsyncMock()
fak... | [
"kubernetes_asyncio/watch/watch_test.py::WatchTest::test_watch_for_follow"
] | [
"kubernetes_asyncio/watch/watch_test.py::WatchTest::test_unmarshal_bookmark_succeeds_and_preserves_resource_version",
"kubernetes_asyncio/watch/watch_test.py::WatchTest::test_unmarshal_with_custom_object",
"kubernetes_asyncio/watch/watch_test.py::WatchTest::test_unmarshal_with_empty_return_type",
"kubernetes_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
56d5a889c467808135eecd6140fa9ad7b945ecd1 | 2020-11-28 22:20:13 | docker.io/swerebenchv2/warpnet-salt-lint:207-56d5a88 | warpnet__salt-lint-207 | Method: CmdRunQuietRule.__init__(self)
Location: saltlint.rules.CmdRunQuietRule
Inputs: Implicit `self`; no external parameters.
Outputs: Instance of CmdRunQuietRule ready to be registered with a RulesCollection.
Description: Constructs the rule object; used in tests via `CmdRunQuietRule()` when registering the rule.
... | python | MIT | diff --git a/README.md b/README.md
index 5a02f7e..fbc3364 100644
--- a/README.md
+++ b/README.md
@@ -164,6 +164,10 @@ Optionally override the default file selection as follows:
## List of rules
+### Formatting
+
+Disable formatting checks using `-x formatting`
+
Rule | Description
:-:|:--
[201](https://github.c... | Warn on using quiet with cmd.run
- Warn on using the quiet argument with cmd.run
- Fixes #40 | Feature Request: Check cmd state deprecation
### Preface
Kindly use the [check for state.cmd deprecation](https://github.com/roaldnefs/salt-lint/pull/37) as an example of adding a check. #37 has to be merged first.
### Description
Add the possibility to check for deprecation within the [cmd state](https://docs.s... | warpnet/salt-lint | diff --git a/tests/unit/TestCmdRunQuietRule.py b/tests/unit/TestCmdRunQuietRule.py
new file mode 100644
index 0000000..ffb4c55
--- /dev/null
+++ b/tests/unit/TestCmdRunQuietRule.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+# Copyright (c) 2020 Warpnet B.V.
+
+import unittest
+
+from saltlint.linter.collection import R... | [
"tests/unit/TestCmdRunQuietRule.py::TestCmdRunQuietRule::test_statement_negative",
"tests/unit/TestCmdRunQuietRule.py::TestCmdRunQuietRule::test_statement_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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/roaldnefs/salt-lint/pull/37",
... |
459609ab3a91859bb65f862fced5d3e0a521dff9 | 2024-02-13 19:48:39 | docker.io/swerebenchv2/cloudtools-troposphere:2225-459609a | cloudtools__troposphere-2225 | Method: DBInstance.__init__(self, logical_id, Engine, EngineVersion, StorageType, AllocatedStorage, Iops, StorageThroughput, MasterUsername, MasterUserPassword, **kwargs)
Location: rds.py – DBInstance resource class constructor.
Inputs:
- logical_id (str): CloudFormation logical ID of the DB instance.
- Engine (str): ... | python | BSD-2-Clause | diff --git a/troposphere/validators/rds.py b/troposphere/validators/rds.py
index 62be1e3e..7dcffafe 100644
--- a/troposphere/validators/rds.py
+++ b/troposphere/validators/rds.py
@@ -493,18 +493,17 @@ def validate_dbinstance(self) -> None:
)
# Validate storage performance constraints for iops ra... | Fix RDS validator for gp3 iops/allocated_storage ratio check
Fixes #2176
The [test case](https://github.com/cloudtools/troposphere/issues/2176#issuecomment-1940482962) in the Issue was [falling through](https://github.com/cloudtools/troposphere/issues/2176#issuecomment-1938252769) to the body of the if statement which... | AllocatedStorage can't be a Ref
If I try to use a Parameter for setting the AllocatedStorage of an RDS database I get the following error:
```
File "/home/cup/.local/share/virtualenvs/system-oD26KLrH/lib/python3.11/site-packages/troposphere/validators/rds.py", line 402, in validate_dbinstance
and int(allocated... | cloudtools/troposphere | diff --git a/tests/test_rds.py b/tests/test_rds.py
index 43276f5a..d42aa07d 100644
--- a/tests/test_rds.py
+++ b/tests/test_rds.py
@@ -237,6 +237,41 @@ class TestRDS(unittest.TestCase):
)
i.validate()
+ def test_gp3_storage_performance(self):
+ # Using a Ref() will disable the gp3 ratio ch... | [
"tests/test_rds.py::TestRDS::test_gp3_storage_performance"
] | [
"tests/test_rds.py::TestRDS::test_allocated_storage_parameter_oracle",
"tests/test_rds.py::TestRDS::test_allocated_storage_parameter_postgres",
"tests/test_rds.py::TestRDS::test_az_and_multiaz_funcs",
"tests/test_rds.py::TestRDS::test_fail_az_and_multiaz",
"tests/test_rds.py::TestRDS::test_io1_storage_type_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
32592a534aac6a44d6547d92a2ca12f6c4b79de8 | 2025-04-01 04:29:38 | docker.io/swerebenchv2/getmoto-moto:8745-32592a5 | getmoto__moto-8745 | Method: SecretsManagerBackend.create_managed_secret(service_name: str, secret_id: str, secret_string: Optional[str] = None, secret_binary: Optional[str] = None, description: Optional[str] = None, tags: Optional[List[Dict[str, str]]] = None, kms_key_id: Optional[str] = None, version_id: Optional[str] = None, replica_reg... | python | Apache-2.0 | diff --git a/moto/events/models.py b/moto/events/models.py
index dc54f52e8..f0281837f 100644
--- a/moto/events/models.py
+++ b/moto/events/models.py
@@ -823,18 +823,13 @@ class Connection(BaseModel):
secret_value.update(value)
secret_value = CamelToUnderscoresWalker.parse(secret_value)
- ... | RDS: integrate with SecretsManager for managing master user password
This PR builds on #8373, integrating the RDS and SecretsManager backends to provide an AWS managed secret for storing DBCluster/DBInstance master user passwords.
An internal `create_managed_secret` method has been added to the SecretsManager backe... | [RDS] Unsupported `ManageMasterUserPassword` on create_db_cluster
According to [boto3 docs](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds/client/create_db_cluster.html), the `MasterUserPassword` can’t be specified if `ManageMasterUserPassword` is turned on.
As of v5.1.1, the `MasterUse... | getmoto/moto | diff --git a/tests/test_events/test_events.py b/tests/test_events/test_events.py
index 17bd2960b..aeb6fa5a1 100644
--- a/tests/test_events/test_events.py
+++ b/tests/test_events/test_events.py
@@ -2418,6 +2418,7 @@ def test_kms_key_is_created(auth_type, auth_parameters, with_headers):
assert secret["Tags"] == ... | [
"tests/test_events/test_events.py::test_kms_key_is_created[with_headers-auth_params]",
"tests/test_events/test_events.py::test_kms_key_is_created[with_headers-basic_auth_params]",
"tests/test_events/test_events.py::test_kms_key_is_created[without_headers-auth_params]",
"tests/test_events/test_events.py::test_... | [
"tests/test_events/test_events.py::test_put_rule",
"tests/test_events/test_events.py::test_put_rule__where_event_bus_name_is_arn",
"tests/test_events/test_events.py::test_put_rule_error_schedule_expression_custom_event_bus",
"tests/test_events/test_events.py::test_list_rules",
"tests/test_events/test_events... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/latest/... |
108234915105bcbbae17b7cc9ff12b5b7d9172aa | 2025-03-14 15:55:17 | docker.io/swerebenchv2/rhayes777-pyautofit:1119-1082349 | rhayes777__pyautofit-1119 | Method: GlobalPriorModel.graph_info(self)
Location: autofit.graphical.declarative.abstract.GlobalPriorModel
Inputs: self – the GlobalPriorModel instance
Outputs: str – a textual description of the factor collection in the graphical (graph) format
Description: Returns a string representing the graphical description ... | python | MIT | diff --git a/autofit/graphical/declarative/abstract.py b/autofit/graphical/declarative/abstract.py
index a4ff3a9b8..00e7e7afa 100644
--- a/autofit/graphical/declarative/abstract.py
+++ b/autofit/graphical/declarative/abstract.py
@@ -48,11 +48,7 @@ class AbstractDeclarativeFactor(Analysis, ABC):
A set of all pr... | feature/graphical fixes
Resolves #1110
| Graphical Model 1: `model.info` and `model.graph`
The following example compares a run using analysis summing and graph:
https://github.com/Jammy2211/autolens_workspace_test/blob/main/model_graph/task_1_model_info.py
You can run it fast by using the `export PYAUTOFIT_TEST_MODE=1` environment variable.
For analysis s... | rhayes777/PyAutoFit | diff --git a/test_autofit/graphical/global/test_global.py b/test_autofit/graphical/global/test_global.py
index 044f4e590..24e7b8760 100644
--- a/test_autofit/graphical/global/test_global.py
+++ b/test_autofit/graphical/global/test_global.py
@@ -13,7 +13,7 @@ def reset_ids():
def test_info(model_factor):
assert ... | [
"test_autofit/graphical/global/test_global.py::test_info",
"test_autofit/graphical/global/test_hierarchical.py::test_model_info",
"test_autofit/graphical/global/test_hierarchical.py::test_graph_info"
] | [
"test_autofit/graphical/global/test_global.py::test_results",
"test_autofit/graphical/global/test_global.py::TestGlobalLikelihood::test_single_factor[0.5-0.0]",
"test_autofit/graphical/global/test_global.py::TestGlobalLikelihood::test_single_factor[0.0--0.25]",
"test_autofit/graphical/global/test_global.py::T... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/Jammy2211/autolens_workspace_test/b... |
f6316f62dfc3fcf59f2d8b61cad51763c07e7f75 | 2022-05-28 14:18:44 | docker.io/swerebenchv2/facelessuser-pymdown-extensions:1719-f6316f6 | facelessuser__pymdown-extensions-1719 | Method: SnippetMissingError(self)
Location: pymdownx/snippets.py – class definition
Inputs: None (inherits from Exception)
Outputs: Exception instance used to signal that a snippet (file or URL) could not be retrieved when `check_paths` is enabled.
Description: Raised instead of generic OSError/IOError for miss... | python | custom-check-github | diff --git a/docs/src/dictionary/en-custom.txt b/docs/src/dictionary/en-custom.txt
index 48670ed1..dcac0754 100644
--- a/docs/src/dictionary/en-custom.txt
+++ b/docs/src/dictionary/en-custom.txt
@@ -65,6 +65,7 @@ MagicLink's
Mar
MathJax
Mathjax
+MiB
MkDocs
MultiMarkdown
NONINFRINGEMENT
@@ -171,6 +172,7 @@ lowerca... | Add support for importing snippets from a URL
Resolves #1350 | [feature request] snippets include files from url
Hi, with the snippets extension, is it possible to include (parts from) external files? For example to include source files using their url from another repository, something like:
```
--8<-- "https://raw.githubusercontent.com/github-organization/repository-name/mai... | facelessuser/pymdown-extensions | diff --git a/tests/test_extensions/test_snippets.py b/tests/test_extensions/test_snippets.py
index c481a304..01bbbf96 100644
--- a/tests/test_extensions/test_snippets.py
+++ b/tests/test_extensions/test_snippets.py
@@ -1,6 +1,8 @@
"""Test cases for Snippets."""
from .. import util
import os
+from pymdownx.snippets i... | [
"tests/test_extensions/test_snippets.py::TestSnippets::test_block",
"tests/test_extensions/test_snippets.py::TestSnippets::test_inline",
"tests/test_extensions/test_snippets.py::TestSnippets::test_mixed",
"tests/test_extensions/test_snippets.py::TestSnippetsFile::test_user",
"tests/test_extensions/test_snip... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
20be10e566a505cc47bdec5fa6ad56d5fbdfb4ae | 2024-05-20 15:18:15 | docker.io/swerebenchv2/pallets-jinja:1984-20be10e | pallets__jinja-1984 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index e4bffbfb..6c998e62 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -18,6 +18,8 @@ Unreleased
when calling block references. :issue:`1701`
- Make ``|unique`` async-aware, allowing it to be used after another
async-aware filter. :issue:`1781`
+- ``|int`` filter ha... | fix how int filter handles scientific notation
What was done:
- handle the case where a string passed to the int filter would cause an OverflowError when float() is called. E.g. `'1e100000`.
- add a new test case to `test_int()`
- add entry in CHANGES.rst
fixes #1921
| The `int` filter throws `OverflowError` when the incoming string looks like scientific notation
So I'm using the `int` filter with a default of `None` to filter out list items that look like numbers. It worked with the test data but broke as I tried to use it for more.
Having `{{ '31e1170' | int }}` should be the mi... | pallets/jinja | diff --git a/tests/test_filters.py b/tests/test_filters.py
index d8e9114d..2cb53ac9 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -196,6 +196,7 @@ class TestFilter:
("abc", "0"),
("32.32", "32"),
("12345678901234567890", "12345678901234567890"),
+ ("... | [
"tests/test_filters.py::TestFilter::test_int[1e10000-0]"
] | [
"tests/test_filters.py::TestFilter::test_filter_calling",
"tests/test_filters.py::TestFilter::test_capitalize",
"tests/test_filters.py::TestFilter::test_center",
"tests/test_filters.py::TestFilter::test_default",
"tests/test_filters.py::TestFilter::test_dictsort[-[('aa',",
"tests/test_filters.py::TestFilt... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/pallets/jinja/blob/d594969/src/jinja2... |
d68125b644cd09a3bdb0040e4e1040e1a2bdad9a | 2022-01-28 22:07:06 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2208-d68125b | aws-cloudformation__cfn-lint-2208 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/custom/Operators.py b/src/cfnlint/rules/custom/Operators.py
index 7b0322483..616fcc0d9 100644
--- a/src/cfnlint/rules/custom/Operators.py
+++ b/src/cfnlint/rules/custom/Operators.py
@@ -49,7 +49,7 @@ def CreateCustomRule(rule_id, resourceType, prop, value, error_message, descript
... | Fix an issue when checking for boolean values that are false
*Issue #, if available:*
fix #2189
*Description of changes:*
- Fix an issue when custom rules wouldn't check values that are false
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under th... | Custom Rule not working for boolean values
*cfn-lint version: (`cfn-lint --version`)* 0.54.4
*Description of issue.* Attempting to create a custom rule to detect KMS keys that do not have auto rotate enabled. I discovered https://github.com/aws-cloudformation/cfn-lint/issues/2185 which covers the inability to react ... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/custom_rules/bad/custom_rule_invalid_boolean.txt b/test/fixtures/custom_rules/bad/custom_rule_invalid_boolean.txt
new file mode 100644
index 000000000..311a1b914
--- /dev/null
+++ b/test/fixtures/custom_rules/bad/custom_rule_invalid_boolean.txt
@@ -0,0 +1,1 @@
+AWS::EC2::Instance BlockDeviceM... | [
"test/unit/module/custom_rules/test_custom_rules.py::TestCustomRuleParsing::test_invalid_boolean_value"
] | [
"test/unit/module/custom_rules/test_custom_rules.py::TestCustomRuleParsing::test_invalid_equal",
"test/unit/module/custom_rules/test_custom_rules.py::TestCustomRuleParsing::test_invalid_greater_than",
"test/unit/module/custom_rules/test_custom_rules.py::TestCustomRuleParsing::test_invalid_less_than",
"test/un... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.aws.amazon.com/AWSCloudFormation/latest/Use... |
1c42cb657b3c65690b957d944fbf3bdfd62adb7c | 2022-09-29 15:25:28 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2387-1c42cb6 | aws-cloudformation__cfn-lint-2387 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
index 0dfbf1cfa..fbc6324ca 100644
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -2,6 +2,7 @@
Copyright Amazon.com, Inc. or ... | Provide suggestions when property is close to a valid property
*Issue #, if available:*
fix #2337
*Description of changes:*
- provide a suggestion when a property is close to a valid property
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under th... | Identify capitalisation errors in property names
*cfn-lint version: 0.62.0
* Feature request:
* It can be hard to identify captalisation errors in cfn property names. It would be useful if cfn-lint would call out these things. An example is:
```
TransformFunction:
Type: AWS::Lambda::Function
Propert... | aws-cloudformation/cfn-lint | diff --git a/test/integration/test_directives.py b/test/integration/test_directives.py
index a0ae70087..aee382ec8 100644
--- a/test/integration/test_directives.py
+++ b/test/integration/test_directives.py
@@ -36,7 +36,7 @@ class TestDirectives(BaseCliTestCase):
'LineNumber': 17
... | [
"test/integration/test_directives.py::TestDirectives::test_templates",
"test/integration/test_mandatory_checks.py::TestDirectives::test_templates_explicit",
"test/integration/test_mandatory_checks.py::TestDirectives::test_templates_prefixed"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
7c4d4d1fcf087954fa4de806da10fd2cc153289f | 2023-02-26 23:59:55 | docker.io/swerebenchv2/planetlabs-planet-client-python:858-7c4d4d1 | planetlabs__planet-client-python-858 | Method: Session.client(self, name: Literal['data', 'orders', 'subscriptions'], base_url: Optional[str] = None) -> object
Location: planet/http.py (within class Session)
Inputs:
- name: literal string identifying the client to create ('data', 'orders', or 'subscriptions').
- base_url (optional): string to override the d... | python | Apache-2.0 | diff --git a/CHANGES.txt b/CHANGES.txt
index 0e5970a..fb8f864 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,9 @@
+2.0b2 (TBD)
+
+Added:
+- The Session class can now construct clients by name with its client method
+ (#858).
+
2.0.0-beta.1 (2022-12-07)
Changed:
diff --git a/docs/get-started/upgrading.md b/d... | Add client method to Session class
It gets a client by the name of the client module. `orders` -> `planet.clients.orders.OrdersClient`.
The intent is to simplify the API for casual users. The API centers the Session class. It feels natural to let Session be a factory for clients. And it goes well with code autocompl... | Add a method to get a client from a Session instance
As in AWS boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/session.html#custom-session. For planet, this would look like
```python
session = planet.Session(...)
client = session.client("data")
```
Currently, we need to do the following.
... | planetlabs/planet-client-python | diff --git a/tests/unit/test_session.py b/tests/unit/test_session.py
new file mode 100644
index 0000000..bf5baca
--- /dev/null
+++ b/tests/unit/test_session.py
@@ -0,0 +1,23 @@
+"""Session module tests."""
+
+import pytest
+
+from planet import DataClient, OrdersClient, SubscriptionsClient, Session
+from planet.excepti... | [
"tests/unit/test_session.py::test_session_get_client[data-DataClient]",
"tests/unit/test_session.py::test_session_get_client[orders-OrdersClient]",
"tests/unit/test_session.py::test_session_get_client[subscriptions-SubscriptionsClient]",
"tests/unit/test_session.py::test_session_get_client_error"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.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... |
9ac7322b00838362783cb4681ee542698b424289 | 2022-08-13 12:35:40 | docker.io/swerebenchv2/mkdocs-mkdocs:2927-9ac7322 | mkdocs__mkdocs-2927 | Method: EditURI.__init__(self, repo_url_key: str)
Location: mkdocs/config/config_options.py → class EditURI(Type)
Inputs: `repo_url_key` – name of the configuration key that holds the repository URL (e.g., `'repo_url'`).
Outputs: Constructs an `EditURI` option instance that validates and post‑processes the `edit_... | python | BSD-2-Clause | diff --git a/docs/user-guide/configuration.md b/docs/user-guide/configuration.md
index 953ce14f..8d4c2660 100644
--- a/docs/user-guide/configuration.md
+++ b/docs/user-guide/configuration.md
@@ -93,6 +93,24 @@ directory.
edit_uri: root/path/docs/
```
+For example, having this config:
+
+```yaml
+repo_url: https://e... | Add `edit_uri_template` config
Resolves #1378 | Improve edit_uri flexability
Hi guys,
According to the documentation, I should be able to only add the link to my bitbucket repository to get edit links.
I added it like this: repo_url: https://bitbucket.org/josephkobti/testdocs/
but the links I'm getting are not working
i.e. https://bitbucket.org/josephkobti/tes... | mkdocs/mkdocs | diff --git a/mkdocs/tests/config/config_options_tests.py b/mkdocs/tests/config/config_options_tests.py
index 3ad71f2f..a1b0b3c1 100644
--- a/mkdocs/tests/config/config_options_tests.py
+++ b/mkdocs/tests/config/config_options_tests.py
@@ -417,11 +417,12 @@ class URLTest(TestCase):
self.get_config(Schema, {... | [
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_default",
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_empty",
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_replace_default",
"mkdocs/tests/config/config_options_tests.py::Opt... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
0604da9f1d74a1f81d681efed10f89cf906dd9b0 | 2024-09-27 18:23:46 | docker.io/swerebenchv2/aio-libs-aiohttp:9319-0604da9 | aio-libs__aiohttp-9319 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/9309.bugfix.rst b/CHANGES/9309.bugfix.rst
new file mode 100644
index 000000000..73870da19
--- /dev/null
+++ b/CHANGES/9309.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed assembling the :class:`~yarl.URL` for web requests when the host contains a non-default port or IPv6 address -- by :user:`bdraco`.
diff --git ... | [PR #9309/e4028333 backport][3.11] Fix building the URL in BaseRequest when the host contains a port or IPv6 address
**This is a backport of PR #9309 as merged into master (e40283338eab5b501e8e91e5b24c2c38cb1a0c71).**
<!-- Thank you for your contribution! -->
## What do these changes do?
The port was incorrectly... | BaseRequest.url passes the host and port to `URL.build` when the port is included in the host header (non-default port)
request.host can be `127.0.0.1:8123`
https://github.com/aio-libs/aiohttp/blob/0b8be7f6c8db0d59afe02109df9be874d0d637e6/aiohttp/web_request.py#L447
yarl 1.13.0+ caught this because host is not va... | aio-libs/aiohttp | diff --git a/tests/test_client_request.py b/tests/test_client_request.py
index 7853b541f..f2eff0195 100644
--- a/tests/test_client_request.py
+++ b/tests/test_client_request.py
@@ -14,7 +14,7 @@ from multidict import CIMultiDict, CIMultiDictProxy, istr
from yarl import URL
import aiohttp
-from aiohttp import BaseCo... | [
"tests/test_web_request.py::test_url_non_default_port",
"tests/test_web_request.py::test_url_ipv6"
] | [
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aio-libs/aiohttp/blob/0b8be7f6c8db0d5... |
56eaea92963d594ec6652e184527f0ea73338192 | 2020-01-24 06:08:29 | docker.io/swerebenchv2/d0c-s4vage-pfp:126-56eaea9 | d0c-s4vage__pfp-126 | No new interfaces are introduced. | python | MIT | diff --git a/pfp/fields.py b/pfp/fields.py
index 537439d..4aade00 100644
--- a/pfp/fields.py
+++ b/pfp/fields.py
@@ -755,7 +755,9 @@ class Struct(Field):
to_swap.append((child_name, child))
for child_name, child in to_swap:
- self._pfp__children_map[child_name] = self._pfp__implicit_a... | Fixes implicit arrays accessed via scope
fixes #125 | Implicit (duplicate) arrays aren't working if not accessed as a struct/union's child
## Describe the bug
Implicit arrays are working fine when accessed through a struct. However, when accessed through the scope only, they do not work. This problem was noticed when testing the PNG.bt template
E.g.
```c
typede... | d0c-s4vage/pfp | diff --git a/tests/test_arrays.py b/tests/test_arrays.py
index 3da3263..6fadea8 100644
--- a/tests/test_arrays.py
+++ b/tests/test_arrays.py
@@ -318,6 +318,22 @@ class TestArrays(utils.PfpTestCase):
self.assertEqual(items[2].second, 0x48)
self.assertEqual(items[2].third, 0x49)
+ def test_array_wi... | [
"tests/test_arrays.py::TestArrays::test_array_with_root_scope",
"tests/test_arrays.py::TestArrays::test_array_with_root_scope_with_string_data"
] | [
"tests/test_arrays.py::TestArrays::test_array_initialization",
"tests/test_arrays.py::TestArrays::test_array_initialization_with_string_data",
"tests/test_arrays.py::TestArrays::test_array_iter",
"tests/test_arrays.py::TestArrays::test_array_iter_with_string_data",
"tests/test_arrays.py::TestArrays::test_ar... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
3528a774572dd9a5006d6d34965670fed2b1e860 | 2023-08-04 19:20:23 | docker.io/swerebenchv2/hikari-py-hikari:1679-3528a77 | hikari-py__hikari-1679 | Method: EventManager.on_guild_create(self, shard, payload)
Location: hikari.impl.event_manager.EventManager.on_guild_create
Inputs:
- self: EventManager instance with access to the cache (`self._cache`) and configuration.
- shard: a Shard object (provides `shard.id` and `shard.get_user_id()`) used to identify the sourc... | python | MIT | diff --git a/README.md b/README.md
index 88f2070c..1ad27581 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ Hikari provides two different default bot implementations to suit your needs:
### GatewayBot
-A [`GatewayBot`](https://docs.hikari-py.dev/en/stable/reference/hikari/impl/bot/#hikari.impl.bot.Gateway... | feat: add CacheSettings.only_my_member
### Summary
<!-- Small summary of the merge request -->
Add CacheSettings.only_my_member to restrict the member cache to only cache the bot.
This is useful for situations when you only need the bot member (eg permission calculations).
### Checklist
<!-- Make sure to tick ... | Option to only cache the bot member
## Summary
This requests aims to introduce a new option for enabling the members cache ONLY for the bot member.
Similar to `CacheComponents.ME` but for the member.
## Why is this needed?
The bot member is very useful for permissions calculations and enabling the members cac... | hikari-py/hikari | diff --git a/tests/hikari/impl/test_event_manager.py b/tests/hikari/impl/test_event_manager.py
index 5ea1c46c..3068c416 100644
--- a/tests/hikari/impl/test_event_manager.py
+++ b/tests/hikari/impl/test_event_manager.py
@@ -551,15 +551,19 @@ async def test_on_guild_create_when_not_dispatching_and_not_caching(
... | [
"tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_guild_create_when_not_dispatching_and_caching[False-False]",
"tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on_guild_create_when_members_declared_and_member_cache_but_only_my_member_enabled",
"tests/hikari/impl/test_ev... | [
"tests/hikari/impl/test_event_manager.py::test_fixed_size_nonce",
"tests/hikari/impl/test_event_manager.py::test__request_guild_members",
"tests/hikari/impl/test_event_manager.py::test__request_guild_members_handles_state_conflict_error",
"tests/hikari/impl/test_event_manager.py::TestEventManagerImpl::test_on... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": ... |
945bafc47cfaf79f0947c970dba17dc8fbe3e197 | 2020-05-21 14:05:58 | docker.io/swerebenchv2/googleapis-python-api-core:30-945bafc | googleapis__python-api-core-30 | Function: _wrap_stream_errors(callable_)
Location: google/api_core/grpc_helpers.py
Inputs:
- **callable_** (callable): A gRPC streaming RPC wrapper that returns an iterator (or grpc.Call). The callable may have an optional hidden attribute ``_prefetch_first_result_`` (bool) that indicates whether the first result shoul... | python | Apache-2.0 | diff --git a/google/api_core/grpc_helpers.py b/google/api_core/grpc_helpers.py
index fde6c33..b617ddf 100644
--- a/google/api_core/grpc_helpers.py
+++ b/google/api_core/grpc_helpers.py
@@ -62,14 +62,15 @@ def _wrap_unary_errors(callable_):
class _StreamingResponseIterator(grpc.Call):
- def __init__(self, wrappe... | feat: allow disabling response stream pre-fetch
Closes #25.
This PR adds the ability to disable automatically pre-fetching the first item of a stream returned by `*-Stream` gRPC callables. This hook will be used in PubSub to fix the [stalled stream issue](https://github.com/googleapis/python-pubsub/issues/93), while... | 1.17.0 breaking pubsub
Hi all,
Just a heads-up - 1.17.0 appears to be breaking the current pubsub client. Lots of time spent debugging this, hopefully it will help some other poor bastards out there:
```
DEBUG:google.api_core.retry:Retrying due to 503 The service was unable to fulfill your request. Please try aga... | googleapis/python-api-core | diff --git a/tests/unit/test_grpc_helpers.py b/tests/unit/test_grpc_helpers.py
index 1fec64f..ef84514 100644
--- a/tests/unit/test_grpc_helpers.py
+++ b/tests/unit/test_grpc_helpers.py
@@ -80,6 +80,19 @@ def test_wrap_stream_okay():
assert responses == expected_responses
+def test_wrap_stream_prefetch_disabled... | [
"tests/unit/test_grpc_helpers.py::test_wrap_stream_prefetch_disabled"
] | [
"tests/unit/test_grpc_helpers.py::test__patch_callable_name",
"tests/unit/test_grpc_helpers.py::test__patch_callable_name_no_op",
"tests/unit/test_grpc_helpers.py::test_wrap_unary_errors",
"tests/unit/test_grpc_helpers.py::test_wrap_stream_okay",
"tests/unit/test_grpc_helpers.py::test_wrap_stream_iterable_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": "B6",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
ff31dc4be2b2a8f5b9e15484e156356770a1a62b | 2024-04-05 19:56:28 | docker.io/swerebenchv2/tox-dev-pipdeptree:345-ff31dc4 | tox-dev__pipdeptree-345 | Method: DistPackage.requires(self)
Location: pipdeptree/_models/package.py → class DistPackage
Inputs:
- **self** – an instance of DistPackage wrapping a Distribution object.
Outputs:
- Returns an **iterator** yielding `packaging.requirements.Requirement` objects that represent the distribution’s valid dependencie... | python | MIT | diff --git a/src/pipdeptree/_models/dag.py b/src/pipdeptree/_models/dag.py
index 80f77fa..1410aeb 100644
--- a/src/pipdeptree/_models/dag.py
+++ b/src/pipdeptree/_models/dag.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import sys
from collections import defaultdict, deque
from fnmatch import fnmatch
fro... | Handle invalid requirement strings when using importlib.metadata
Resolves #344.
This change also:
- Makes `Distribution.requires()` into a generator for performance (i.e. avoid building `list[Requirement]` and then iterating `list[Requirement` and instead do both at the same time) and so that we can handle invalid ... | Error with a certain version constraint format
### What pipdeptree version are you using?
2.17.0
### Are you running pipdeptree in a virtual environment?
- [ ] Yes
### Describe the problem
Thank you for developing a great library!
We use `pipdeptree` in our CIs, and it fails in v2.17.0 but passes in v2.16.2.
h... | tox-dev/pipdeptree | diff --git a/tests/_models/test_dag.py b/tests/_models/test_dag.py
index b696669..eb909c1 100644
--- a/tests/_models/test_dag.py
+++ b/tests/_models/test_dag.py
@@ -134,3 +134,19 @@ def test_package_dag_from_pkgs_uses_pep503normalize(mock_pkgs: Callable[[MockGra
c = package_dag.get_children(parent_key)
assert... | [
"tests/_models/test_dag.py::test_package_from_pkgs_given_invalid_requirements"
] | [
"tests/_models/test_dag.py::test_package_dag_get_node_as_parent",
"tests/_models/test_dag.py::test_package_dag_filter_fnmatch_include_a",
"tests/_models/test_dag.py::test_package_dag_filter_fnmatch_include_b",
"tests/_models/test_dag.py::test_package_dag_filter_fnmatch_exclude_c",
"tests/_models/test_dag.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/optuna/optuna-integration/pull/109"... |
e3594e7f8a76dd15109d29570a6f263e56e412f2 | 2021-04-13 03:14:29 | docker.io/swerebenchv2/pallets-click:1848-e3594e7 | pallets__click-1848 | Method: MultiCommand.result_callback(self, replace=False)
Location: click.core.MultiCommand (src/click/core.py)
Inputs:
- replace (bool, optional): if True, any previously set result callback is removed before setting the new one.
Outputs:
- Returns the original function (or a wrapper) that was passed to the decorato... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index a94f5f7..bc5c9c1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -206,6 +206,8 @@ Unreleased
- Add all kwargs passed to ``Context.invoke()`` to ``ctx.params``.
Fixes an inconsistency when nesting ``Context.forward()`` calls.
:issue:`1568`
+- The ``MultiCommand.r... | rename resultcallback to result_callback
This is a clearer name for the decorator. The attribute is renamed to `_result_callback`, the only mention in the docs already implied that it shouldn't be used directly and should be set with the parameter or decorator.
- fixes #1160
<!--
Ensure each step in CONTRIBUTIN... | Docs: MultiCommand.resultcallback vs MultiCommand.result_callback
The [commands](https://click.palletsprojects.com/en/7.x/commands/) doc page shows usage of `MultiCommand.resultcallback` under the header "Multi Command Pipelines" as being a callable itself, that is passed all the associated callbacks with the `chain`ed... | pallets/click | diff --git a/tests/test_chain.py b/tests/test_chain.py
index 74a04f1..23520a0 100644
--- a/tests/test_chain.py
+++ b/tests/test_chain.py
@@ -99,7 +99,7 @@ def test_no_command_result_callback(runner, chain, expect):
def cli():
pass
- @cli.resultcallback()
+ @cli.result_callback()
def process_r... | [
"tests/test_chain.py::test_no_command_result_callback[False-None]",
"tests/test_chain.py::test_no_command_result_callback[True-[]]",
"tests/test_chain.py::test_pipeline"
] | [
"tests/test_chain.py::test_basic_chaining",
"tests/test_chain.py::test_chaining_help",
"tests/test_chain.py::test_chaining_with_options",
"tests/test_chain.py::test_chaining_with_arguments",
"tests/test_chain.py::test_args_and_chain",
"tests/test_chain.py::test_multicommand_arg_behavior"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://click.palletsprojects.com/en/7.x/commands/",
... |
da3dcfab4a5752816c9d0bb5fd9d37634b7ac87e | 2024-07-04 19:19:16 | docker.io/swerebenchv2/getmoto-moto:7821-da3dcfa | getmoto__moto-7821 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/__init__.py b/moto/dynamodb/models/__init__.py
index 593c7b675..9b114cbe3 100644
--- a/moto/dynamodb/models/__init__.py
+++ b/moto/dynamodb/models/__init__.py
@@ -546,7 +546,7 @@ class DynamoDBBackend(BaseBackend):
attr.get_attribute_name_placeholder() for attr in attr... | DynamoDB: transact_write_items() should not require ExprAttrNames
Fixes #7819 | DynamoDB transact write items update throws without expression attribute names
In the latest release 5.0.10, DynamoDB `transact_write_items` update operation fails if `ExpressionAttributeNames` is absent. Works fine with 5.0.9.
Error: `TypeError: 'NoneType' object is not iterable`
This is caused by the for loop i... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py
index dc32454a2..7624d051d 100644
--- a/tests/test_dynamodb/test_dynamodb.py
+++ b/tests/test_dynamodb/test_dynamodb.py
@@ -5005,45 +5005,6 @@ def test_update_non_existing_item_raises_error_and_does_not_contain_item_afterwa
as... | [
"tests/test_dynamodb/test_dynamodb_batch_write.py::test_batch_write_single_set"
] | [
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[no-table]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[one-table]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[multiple-tables]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_paginated",
"tests/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/getmoto/moto/blob/5.0.10/moto/dynamod... |
68b337873efd80ce31c1a540047302d020bfaefa | 2024-10-23 18:39:04 | docker.io/swerebenchv2/aio-libs-aiohttp:9530-68b3378 | aio-libs__aiohttp-9530 | Method: ClientSession.__init__(self, *, base_url: Union[str, URL]=None, timeout: object=..., version: aiohttp.http.HttpVersion=..., connector: aiohttp.BaseConnector=None, ...)
Location: aiohttp/client.py (class ClientSession)
Inputs:
- base_url – optional string or URL. If provided, it must be an absolute URL **and**... | python | custom-check-github | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2832a167c..178ed4e5c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -97,7 +97,7 @@ repos:
- id: detect-private-key
exclude: ^examples/
- repo: https://github.com/asottile/pyupgrade
- rev: 'v3.18.0'
+ rev: 'v3.19.0'
... | Allow URLs with paths that end with `/` as base_url in ClientSession
## What do these changes do?
- Allow URLs with paths as base_url in ClientSession.
- Add tests for `_build_url` to test url joining when base_url includes path.
## Are there changes in behavior for the user?
`base_url` in `ClientSession` now... | Allow URLs with paths as base_url in ClientSession
### Is your feature request related to a problem?
Many sites have an API path in the URL. For example, Jira uses {jira_url}/rest/api/2/ as the base for its API requests.
The current implementation of the ClientSession only allows absolute URLs without a path. Thus,... | aio-libs/aiohttp | diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
index dddacf36b..188403e43 100644
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -2927,6 +2927,68 @@ async def test_creds_in_auth_and_url() -> None:
await session.close()
+async def test_creds_in_... | [
"tests/test_client_functional.py::test_creds_in_auth_and_redirect_url[pyloop]",
"tests/test_client_session.py::test_build_url_returns_expected_url[pyloop-base_url=URL('http://example.com/test1/')",
"tests/test_client_session.py::test_base_url_without_trailing_slash",
"tests/test_client_session.py::test_instan... | [
"tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop]",
"tests/test_client_functional.py::test_keepalive_after_head_requests_success[pyloop]",
"tests/test_client_functional.py::test_keepalive_after_empty_body_status[pyloop-101]",
"tests/test_client_functional.py::test_keepalive_after_e... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.78,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
cf5d69d48670a61bb40b752e04d99185760776fb | 2023-03-14 21:02:31 | docker.io/swerebenchv2/myremylar-pygame-gui:426-cf5d69d | myremylar__pygame_gui-426 | No new interfaces are introduced. | python | MIT | diff --git a/pygame_gui/elements/ui_text_entry_box.py b/pygame_gui/elements/ui_text_entry_box.py
index 133c403..9c60804 100644
--- a/pygame_gui/elements/ui_text_entry_box.py
+++ b/pygame_gui/elements/ui_text_entry_box.py
@@ -3,7 +3,7 @@ from typing import Union, Tuple, Dict, Optional
from pygame_gui.core.utility imp... | Switch to processing text input with TEXTINPUT events
Will hopefully allow better handling of text input in other languages.
maybe fixes #413 | Only English words are supported in UITextEntryBox and UITextEntryLine, instead of multiple languages.
**Describe the bug**
There will be no some particular displays of typing something lke mandarin, Japanese, etc.
**To Reproduce**
Steps to reproduce the behaviour:
1. typing mandarin or any other language except ... | MyreMylar/pygame_gui | diff --git a/tests/test_elements/test_ui_text_entry_box.py b/tests/test_elements/test_ui_text_entry_box.py
index 42fc242..9b1fced 100644
--- a/tests/test_elements/test_ui_text_entry_box.py
+++ b/tests/test_elements/test_ui_text_entry_box.py
@@ -714,17 +714,12 @@ class TestUITextEntryBox:
assert text_entry.is_e... | [
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_enable",
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_process_event_text_entered_success",
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_process_event_text_entered_with_select_range",
... | [
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_creation",
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_set_text",
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEntryBox::test_clear",
"tests/test_elements/test_ui_text_entry_box.py::TestUITextEnt... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e3b931f9ecaded662edb0b8e542fa3f8cb2996cc | 2021-05-07 21:58:49 | docker.io/swerebenchv2/xknx-xknx:690-e3b931f | xknx__xknx-690 | Method: Climate.__init__(self, xknx: XKNX, name: str, *, group_address_temperature: GroupAddressesType | None = None, group_address_target_temperature: GroupAddressesType | None = None, group_address_target_temperature_state: GroupAddressesType | None = None, group_address_setpoint_shift: GroupAddressesType | None = No... | python | MIT | diff --git a/changelog.md b/changelog.md
index 2316a2bb..f80fdf94 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,6 +4,7 @@
### Devices
+- Climate: make `setpoint_shift_mode` optional. When `None` assign its DPT from the first incoming payload.
- Light: Support individual color lights without switch object
... | Autosense Climate setpoint_shift_mode from first incoming payload length
<!--
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 moti... | Climate: Autosense setpoint shift mode
For climate setpoint_shift there are 2 modes
- 1 byte signed int DPT 6.010
- 2 byte float DPT 9.002
Changing the target temperature requires to know the value of setpoint_shift
https://github.com/XKNX/xknx/blob/a574a49143e4c3d4a3d329e91b96e236752db3f6/xknx/devices/climate.... | XKNX/xknx | diff --git a/test/devices_tests/climate_test.py b/test/devices_tests/climate_test.py
index 3038d4a4..cd4d0b12 100644
--- a/test/devices_tests/climate_test.py
+++ b/test/devices_tests/climate_test.py
@@ -16,7 +16,7 @@ from xknx.dpt import (
DPTValue1Count,
)
from xknx.dpt.dpt_hvac_mode import HVACControllerMode, ... | [
"test/devices_tests/climate_test.py::TestClimate::test_support_temperature",
"test/devices_tests/climate_test.py::TestClimate::test_support_target_temperature",
"test/devices_tests/climate_test.py::TestClimate::test_support_operation_mode",
"test/devices_tests/climate_test.py::TestClimate::test_support_operat... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/XKNX/xknx/blob/a574a49143e4c3d4a3d3... |
226a7e0e58b231d8ae47080a4459172b9a29b708 | 2024-01-22 17:53:48 | docker.io/swerebenchv2/adamchainz-flake8-comprehensions:553-226a7e0 | adamchainz__flake8-comprehensions-553 | No new interfaces are introduced. | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 25b7c11..da54167 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog
=========
+* Add rule C420 to check for dict comprehensions with constant values, encouraging replacement with ``dict.fromkeys()``.
+
+ Thanks to Tom Kuson in `PR #553 <https:... | Add rule for dict comprehensions with constant values
Adds `C420` that checks for dictionary comprehensions that use constant values.
Changed the fixture for `test_C418_pass` as it was failing (`dict({x: 1 for x in range(1)}, a=1)` triggers the new rule).
Closes #552. | Feature Request: Detect dictionary comprehensions with constant values
### Description
Hi! Thanks for this helpful tool.
I'm working with code that has a lot of
```python
{elt: None for elt in foo}
```
which is slower and (IMO) harder to read than
```python
dict.fromkeys(foo)
```
Would there be int... | adamchainz/flake8-comprehensions | diff --git a/tests/test_flake8_comprehensions.py b/tests/test_flake8_comprehensions.py
index 454cc31..3843b6e 100644
--- a/tests/test_flake8_comprehensions.py
+++ b/tests/test_flake8_comprehensions.py
@@ -886,7 +886,7 @@ def test_C417_fail(code, failures, flake8_path):
"code",
[
"dict({}, a=1)",
- ... | [
"tests/test_flake8_comprehensions.py::test_C420_fail[{elt:"
] | [
"tests/test_flake8_comprehensions.py::test_C401_fail[foo",
"tests/test_flake8_comprehensions.py::test_C408_pass[[]]",
"tests/test_flake8_comprehensions.py::test_C402_pass[foo",
"tests/test_flake8_comprehensions.py::test_C414_fail[set(tuple(a))-failures6]",
"tests/test_flake8_comprehensions.py::test_C400_pas... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/astral-sh/ruff/issues/9592"
],
... |
993b57b8ea577f2120f7d0c81b45ee5ed74a0f57 | 2024-04-24 15:47:07 | docker.io/swerebenchv2/python-markdown-markdown:1461-993b57b | python-markdown__markdown-1461 | Method: AbbrExtension.reset(self)
Location: markdown.extensions.abbr.AbbrExtension.reset
Inputs: None
Outputs: None (clears the internal `abbrs` dictionary in‑place; after calling, `ext.abbrs == {}`)
Description: Resets the abbreviation collection for an `AbbrExtension` instance. It is invoked automatically when `Markd... | python | BSD-3-Clause | diff --git a/docs/changelog.md b/docs/changelog.md
index 86b3b5f..4c30889 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -10,6 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
+### Changed
+
+#### Refactor `abbr` Extension
+
+A new `AbbrTreeproce... | Refactor `abbr` Extension
A new `AbbrTreeprocessor` has been introduced, which replaces the now deprecated `AbbrInlineProcessor`. Abbreviation processing now happens after Attribute Lists, avoiding a conflict between the two extensions. Fixes #1460.
As an aside, with this change we now have a collection of abbrs. It... | `abbr` extension breaks title attribute added using `attr_list`
### Bug description
``` markdown
*[abbr]: Abbreviation Definition
{title="Image with abbr in title"}
```
This renders the attribute code as plain text because the Abbreviation extension modifies the text in t... | Python-Markdown/markdown | diff --git a/tests/test_syntax/extensions/test_abbr.py b/tests/test_syntax/extensions/test_abbr.py
index e11e8d3..012e571 100644
--- a/tests/test_syntax/extensions/test_abbr.py
+++ b/tests/test_syntax/extensions/test_abbr.py
@@ -21,6 +21,8 @@ License: BSD (see LICENSE.md for details).
"""
from markdown.test_tools i... | [
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_reset",
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_with_attr_list"
] | [
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_bracket",
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_carrot",
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_double_quoted",
"tests/test_syntax/extensions/test_abbr.py::TestAbbr::test_abbr_extra_space",
"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://github.com/Python-Markdown/markdown/files/1507... |
74ad361c5aeb85909afd0f4fd37c92f1c09af184 | 2022-06-27 21:22:04 | docker.io/swerebenchv2/pytask-dev-pytask:287-74ad361 | pytask-dev__pytask-287 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/source/changes.md b/docs/source/changes.md
index c05fd9e..be3ae4f 100644
--- a/docs/source/changes.md
+++ b/docs/source/changes.md
@@ -12,6 +12,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
- {pull}`283` fixes an issue with coverage and tests using pexpect + `pdb.set_trac... | Show all files that are not produced by a task.
#### Changes
Closes #262.
| ENH: Report missing files all at once if a task did not succeed.
#### Is your feature request related to a problem?
When a task fails producing on product, the error message is something like this.
```python
NodeNotFoundError:
/home/user/project/bld/figures/linear/descriptives/heatmap-measures-by-period-0.pdf
... | pytask-dev/pytask | diff --git a/tests/test_execute.py b/tests/test_execute.py
index aa1e80a..333ba9f 100644
--- a/tests/test_execute.py
+++ b/tests/test_execute.py
@@ -36,6 +36,25 @@ def test_task_did_not_produce_node(tmp_path):
assert isinstance(session.execution_reports[0].exc_info[1], NodeNotFoundError)
+@pytest.mark.end_to_e... | [
"tests/test_execute.py::test_task_did_not_produce_multiple_nodes_and_all_are_shown"
] | [
"tests/test_execute.py::test_python_m_pytask",
"tests/test_execute.py::test_task_did_not_produce_node",
"tests/test_execute.py::test_node_not_found_in_task_setup",
"tests/test_execute.py::test_execution_w_varying_dependencies_products[products0-dependencies0]",
"tests/test_execute.py::test_execution_w_varyi... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
70da6a7a4e771017a0a3370c65c57b00a41746e1 | 2023-10-11 16:09:38 | docker.io/swerebenchv2/stfc-psyclone:2363-70da6a7 | stfc__psyclone-2363 | Class: FileContainer(name: str)
Location: psyclone.psyir.nodes
Inputs: a single string giving the name of the file‑level container.
Outputs: an instance of FileContainer (a PSyIR node representing the top‑level file scope). The constructor does not return a value but creates an object that can be used as a parent for s... | python | BSD-3-Clause | diff --git a/changelog b/changelog
index 6dd37eba1..326bc6b51 100644
--- a/changelog
+++ b/changelog
@@ -39,6 +39,9 @@
14) PR #2365 for #2351. Fix ref2arrayrange allocated bug.
+ 15) PR #2363 for #1254. Fortran FORMAT, ENTRY and IMPLICIT statements
+ produce CodeBlocks instead of losing the statements.
+
release... | (Closes #1254) catch unsupported statements in implicit-part
This fixes a long-standing issue whereby we were silently ignoring things that could appear in the 'implicit-part' of a specification-part. We now catch things like `implicit real (a-h, o-z)` and the awfulness that is ENTRY statements. | [psyir] fparser2 frontend currently ignores implicit statements
To date we have always (implicitly) assumed that the Fortran we are dealing with is using `implicit none`. The fparser2 psyir frontend needs extending to check that this is the case and to abort if not. | stfc/PSyclone | diff --git a/src/psyclone/tests/psyir/frontend/fparser2_container_test.py b/src/psyclone/tests/psyir/frontend/fparser2_container_test.py
index bae8116b5..6ba4c1757 100644
--- a/src/psyclone/tests/psyir/frontend/fparser2_container_test.py
+++ b/src/psyclone/tests/psyir/frontend/fparser2_container_test.py
@@ -38,7 +38,6 ... | [
"src/psyclone/tests/psyir/frontend/fparser2_container_test.py::test_unsupported_implicit_part",
"src/psyclone/tests/psyir/frontend/fparser2_container_test.py::test_unsupported_format_stmt",
"src/psyclone/tests/psyir/frontend/fparser2_subroutine_handler_test.py::test_implicit_declns",
"src/psyclone/tests/psyir... | [
"src/psyclone/tests/psyir/frontend/fparser2_container_test.py::test_generate_container",
"src/psyclone/tests/psyir/frontend/fparser2_container_test.py::test_generate_container_no_module",
"src/psyclone/tests/psyir/frontend/fparser2_container_test.py::test_generate_container_two_modules",
"src/psyclone/tests/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":... |
ed3e72af87841086d671959b444395cc7d64d686 | 2022-03-01 11:49:32 | docker.io/swerebenchv2/reata-sqllineage:224-ed3e72a | reata__sqllineage-224 | No new interfaces are introduced. | python | MIT | diff --git a/sqllineage/core/holders.py b/sqllineage/core/holders.py
index d9ce561..d82a013 100644
--- a/sqllineage/core/holders.py
+++ b/sqllineage/core/holders.py
@@ -215,11 +215,11 @@ class SQLLineageHolder(ColumnLineageMixin):
intermediate_tables -= self.__retrieve_tag_tables(NodeTag.SELFLOOP)
ret... | fix: table/column lineage mixed up for self dependent SQL
Closes #219 | Table/Column Lineage Mixed up For Self Dependent SQL
```sql
INSERT OVERWRITE TABLE foo
SELECT col FROM foo
WHERE flag IS NOT NULL
```
```
Statements(#): 1
Source Tables:
<default>.foo
<default>.foo.col
Target Tables:
<default>.foo
<default>.foo.col
```
Column lineage is displayed by mi... | reata/sqllineage | diff --git a/tests/test_insert.py b/tests/test_insert.py
index 1be5160..b01e1aa 100644
--- a/tests/test_insert.py
+++ b/tests/test_insert.py
@@ -56,6 +56,16 @@ def test_insert_overwrite_values():
def test_insert_overwrite_from_self():
+ assert_table_lineage_equal(
+ """INSERT OVERWRITE TABLE foo
+SELECT ... | [
"tests/test_insert.py::test_insert_overwrite_from_self"
] | [
"tests/test_insert.py::test_insert_into",
"tests/test_insert.py::test_insert_into_with_keyword_table",
"tests/test_insert.py::test_insert_into_with_columns",
"tests/test_insert.py::test_insert_into_with_columns_and_select",
"tests/test_insert.py::test_insert_into_with_columns_and_select_union",
"tests/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ca74c8e81ce48b0f7b838492cab8634b9f1d33b7 | 2024-11-11 10:58:47 | docker.io/swerebenchv2/kozea-weasyprint:2300-ca74c8e | kozea__weasyprint-2300 | Function: render_pages(html_source: str)
Location: tests/layout/test_flex.py (imported from weasyprint.testing)
Inputs: A string containing the complete HTML document to be rendered.
Outputs: A list of PageBox objects (normally a single element) that represent the laid‑out pages produced by WeasyPrint. Each PageBox con... | python | BSD-3-Clause | diff --git a/weasyprint/layout/block.py b/weasyprint/layout/block.py
index 8cc2a87e..ad732ab1 100644
--- a/weasyprint/layout/block.py
+++ b/weasyprint/layout/block.py
@@ -124,9 +124,9 @@ def block_box_layout(context, box, bottom_space, skip_stack,
result = block_container_layout(
context, box, bottom_spac... | Don’t avoid floats for flex items
Fix #2292 | v63.0 flexbox issue overflow hidden
With v63.0 the following code breaks:
```
<html>
<head>
<style>
.wrapper {
display: flex;
}
.cell {
flex: 1;
border: 1px solid black;
padding: 10px;
overflow: hidden;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="ce... | Kozea/WeasyPrint | diff --git a/tests/layout/test_flex.py b/tests/layout/test_flex.py
index a7e03355..77802119 100644
--- a/tests/layout/test_flex.py
+++ b/tests/layout/test_flex.py
@@ -755,3 +755,30 @@ def test_flex_auto_margin2():
outer, = body.children
inner, = outer.children
assert inner.margin_left != 0
+
+
+@assert_n... | [
"tests/layout/test_flex.py::test_flex_overflow"
] | [
"tests/layout/test_flex.py::test_flex_direction_row",
"tests/layout/test_flex.py::test_flex_direction_row_rtl",
"tests/layout/test_flex.py::test_flex_direction_row_reverse",
"tests/layout/test_flex.py::test_flex_direction_row_reverse_rtl",
"tests/layout/test_flex.py::test_flex_direction_column",
"tests/la... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Kozea/WeasyPrint/issues/2292"
],
... |
3ab89c56da89f0497e443ec770de9c44061d5122 | 2024-02-01 19:09:56 | docker.io/swerebenchv2/theupdateframework-python-tuf:2551-3ab89c5 | theupdateframework__python-tuf-2551 | Method: VerificationResult.__init__(self, threshold: int, signed: Dict[str, Key], unsigned: Dict[str, Key])
Location: tuf/api/metadata.py
Inputs:
- **threshold** – required number of signatures for the role.
- **signed** – dictionary mapping keyids to the corresponding `Key` objects that have produced a valid signature... | python | Apache-2.0 | diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 0963bda8..577ddf4f 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -34,7 +34,7 @@ jobs:
run: PIP_CONSTRAINT=requirements/build.txt python3 -m build --sdist --wheel --outdir dist/ .
- name: Store build artifa... | Improve verification results
This is an attempt at fixing the verification result handling that has been found to not work well. This API is useful mostly to repository implementations: clients should likely keep using `verify_delegate() `
**Modify VerificationResult**
* Remove `union()`: this is now handled by the... | VerificationResult should include keys for keyids
The `get_verification_result` method returns a `VerificationResult`, which contains two sets of TUF keyids.
Typical usage of a VerificationResult entails retrieving the `Key` objects for those keyids from the corresponding root metadata keystore. It would be useful, ... | theupdateframework/python-tuf | diff --git a/requirements/test.txt b/requirements/test.txt
index db9c1350..cd98e361 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -4,4 +4,4 @@
-r pinned.txt
# coverage measurement
-coverage==7.4.1
+coverage==7.4.0
diff --git a/tests/test_api.py b/tests/test_api.py
index 517ff5bd..bf0b9606 100755... | [
"tests/test_api.py::TestMetadata::test_compact_json",
"tests/test_api.py::TestMetadata::test_generic_read",
"tests/test_api.py::TestMetadata::test_get_roles_in_succinct_roles",
"tests/test_api.py::TestMetadata::test_is_delegated_role",
"tests/test_api.py::TestMetadata::test_is_delegated_role_in_succinct_rol... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/theupdateframework/python-tuf/issue... |
5fc37cbda5bf4e5afcb64c45caa62062979256b4 | 2020-09-27 23:29:16 | docker.io/swerebenchv2/pycqa-pyflakes:580-5fc37cb | pycqa__pyflakes-580 | No new interfaces are introduced. | python | MIT | diff --git a/pyflakes/checker.py b/pyflakes/checker.py
index 16c783f..a6439d6 100644
--- a/pyflakes/checker.py
+++ b/pyflakes/checker.py
@@ -128,6 +128,13 @@ def _is_const_non_singleton(node): # type: (ast.AST) -> bool
return _is_constant(node) and not _is_singleton(node)
+def _is_name_or_attr(node, name): #... | fix: don't return syntax error for Annotated's metadata
PEP 593 https://www.python.org/dev/peps/pep-0593/ introduced the type Annotated, which allows to add metadata to types. By the definition only the first argument is required to be a proper type, all the other arguments are dependent on the consumer and can be othe... | syntax error in forward annotation when using Annotated
When using [`Annotated`](https://www.python.org/dev/peps/pep-0593/) with string annotations the following error is raised:
```
./pyflakes.py:3:16 syntax error in forward annotation '>1'
```
Triggering code:
```
from typing import Annotated
Annotated... | PyCQA/pyflakes | diff --git a/pyflakes/test/test_type_annotations.py b/pyflakes/test/test_type_annotations.py
index eff222b..d5a3e08 100644
--- a/pyflakes/test/test_type_annotations.py
+++ b/pyflakes/test/test_type_annotations.py
@@ -542,6 +542,42 @@ class TestTypeAnnotations(TestCase):
return None
""")
+ @sk... | [
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_with_string_args",
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_with_string_args_in_union"
] | [
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_async_def",
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type",
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type_m... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.python.org/dev/peps/pep-0593/"
],
... |
de0657e4a5495de9378db9fe15a17334c2b0fae5 | 2020-09-07 18:05:25 | docker.io/swerebenchv2/samuelcolvin-pydantic:1911-de0657e | samuelcolvin__pydantic-1911 | Method: RedisDsn.validate_parts(cls, parts: Dict[str, str]) -> Dict[str, str]
Location: pydantic/networks.py
Inputs:
- cls: the RedisDsn class (used for inheritance)
- parts: a dictionary of URL components produced by the regex (keys include 'scheme', 'user', 'password', 'ipv4', 'ipv6', 'domain', 'port', 'path', etc.)... | python | MIT | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b9630e829..81288f452 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.14
+ - uses: codecov/codecov-action@v1.0.1... | Add `rediss` (Redis over SSL) protocol to `RedisDsn`
## Change Summary
Added `rediss` to `RedisDsn.allowed_schemes`.
## Related issue number
This PR closes #1877
## Checklist
* [x] Unit tests for the changes exist
* [x] Tests pass on CI and coverage remains at 100%
* [x] Documentation reflects the cha... | RedisDsn canot enable redis url with password and ssl schema
`redis://:password@redishost` & `rediss://redis` are valid in redis.py, but cause ValidationError in RedisDsn.
```
In [7]: import redis
In [8]: r = redis.StrictRedis.from_url('rediss://redis')
In [9]: r = redis.StrictRedis.from_url('redis://:123@re... | samuelcolvin/pydantic | diff --git a/tests/conftest.py b/tests/conftest.py
index 6cde3411b..0d1c6c434 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -46,7 +46,7 @@ class SetEnv:
os.environ.pop(n)
-@pytest.yield_fixture
+@pytest.fixture
def env():
setenv = SetEnv()
diff --git a/tests/requirements-testing.txt... | [
"tests/test_networks.py::test_user_info_no_user",
"tests/test_networks.py::test_redis_dsns"
] | [
"tests/test_networks.py::test_any_url_success[http://example.org]",
"tests/test_networks.py::test_any_url_success[http://test]",
"tests/test_networks.py::test_any_url_success[http://localhost0]",
"tests/test_networks.py::test_any_url_success[https://example.org/whatever/next/]",
"tests/test_networks.py::tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
af8fed53697ac5664e8ca3306e3930c4bf802d6d | 2021-08-05 21:30:39 | docker.io/swerebenchv2/pyomo-pyomo:2072-af8fed5 | pyomo__pyomo-2072 | Method: TeeStream.__enter__(self) → TeeStream
Location: pyomo/common/tee.py
Inputs: Optional `stream` object (must implement .write) used as the primary stdout capture; if omitted defaults to sys.stdout.
Outputs: Returns the TeeStream instance itself, ready for use as a context manager.
Description: Enters the tee cont... | python | custom-check-github | diff --git a/pyomo/common/tee.py b/pyomo/common/tee.py
index 170850a09..b83cfa1ab 100644
--- a/pyomo/common/tee.py
+++ b/pyomo/common/tee.py
@@ -23,8 +23,18 @@ import threading
import time
from io import StringIO
-_mswindows = sys.platform.startswith('win')
_poll_interval = 0.0001
+_poll_rampup_limit = 0.099
+# re... | Resolve TeeStream deadlock / libgcc_s.so.1 loader issues
## Fixes #2054 .
## Summary/Motivation:
@eslickj noted that the recent rework of `TeeStream` introduced deadlock errors on Windows. As part of debugging that issue, we ran across errors where `TeeStream` would cease working and abort with the error:
```
li... | Error in solver tee output on Windows
## Summary
When I an solving a pyomo problem and use the "tee=True" option, and I scroll up in the CMD window on Windows to see some output displayed above, I often get the error below.
```sh
Number of objective function evaluations = 30
Number of objective grad... | Pyomo/pyomo | diff --git a/pyomo/common/tests/test_tee.py b/pyomo/common/tests/test_tee.py
index 8f9f0be4b..5615e6cb8 100644
--- a/pyomo/common/tests/test_tee.py
+++ b/pyomo/common/tests/test_tee.py
@@ -53,7 +53,7 @@ class TestTeeStream(unittest.TestCase):
# flush() and short pause should help
t.STDOUT.writ... | [
"pyomo/common/tests/test_tee.py::TestTeeStream::test_deadlock"
] | [
"pyomo/common/tests/test_tee.py::TestTeeStream::test_binary_tee",
"pyomo/common/tests/test_tee.py::TestTeeStream::test_capture_output",
"pyomo/common/tests/test_tee.py::TestTeeStream::test_capture_output_logfile_string",
"pyomo/common/tests/test_tee.py::TestTeeStream::test_capture_output_stack_error",
"pyom... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B3",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
e0c6e87748136de5fec1e699ca6d420dee153a4d | 2025-01-09 00:06:34 | docker.io/swerebenchv2/azure-samples-azure-search-openai-demo:2260-e0c6e87 | azure-samples__azure-search-openai-demo-2260 | No new interfaces are introduced. | python | MIT | diff --git a/app/backend/prepdocslib/pdfparser.py b/app/backend/prepdocslib/pdfparser.py
index 1fcbbc9..a40e69b 100644
--- a/app/backend/prepdocslib/pdfparser.py
+++ b/app/backend/prepdocslib/pdfparser.py
@@ -14,6 +14,7 @@ from azure.ai.documentintelligence.models import (
)
from azure.core.credentials import AzureKe... | Handle lack of support for docx/pptx/xlsx for media description
## Purpose
Fixes #2242
Unfortunately, the figures extraction doesn't yet work for office documents. This PR makes the flow default to standard ingestion for them. We could also have it error out entirely, like it does now, but with a more helpful me... | Error in ingestion of .docx file type due ocrHighResolution when using Content Understanding.
<!--
IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE MIGHT BE CLOSED WITHOUT FURTHER CONSIDERATION OR INVESTIGATION
-->
> Please provide us with the following information:
> -----------------... | Azure-Samples/azure-search-openai-demo | diff --git a/tests/test_pdfparser.py b/tests/test_pdfparser.py
index 408aa2b..2f21fe6 100644
--- a/tests/test_pdfparser.py
+++ b/tests/test_pdfparser.py
@@ -1,8 +1,9 @@
import io
+import json
import logging
import math
import pathlib
-from unittest.mock import AsyncMock, MagicMock
+from unittest.mock import AsyncMo... | [
"tests/test_pdfparser.py::test_parse_unsupportedformat"
] | [
"tests/test_pdfparser.py::test_crop_image_from_pdf_page",
"tests/test_pdfparser.py::test_table_to_html",
"tests/test_pdfparser.py::test_table_to_html_with_spans",
"tests/test_pdfparser.py::test_figure_to_html_without_bounding_regions",
"tests/test_pdfparser.py::test_figure_to_html_with_bounding_regions",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
5389bb01d206f42381ec1043e43e12ac6bb883c5 | 2024-10-11 09:51:15 | docker.io/swerebenchv2/aristanetworks-anta:877-5389bb0 | aristanetworks__anta-877 | Method: VerifySnmpUser.test(self)
Location: anta.tests.snmp – class VerifySnmpUser
Inputs: None (the method uses the instance’s `inputs.snmp_users` populated from the Input model).
Outputs: Returns None, but updates `self.result` to success or failure with detailed messages.
Description: Executes the SNMP user v... | python | Apache-2.0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1961ec0c..42b0ce1c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -46,7 +46,7 @@ repos:
- '<!--| ~| -->'
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.9.0
+ rev: v0.9.1
hooks:
-... | feat(anta): Added the test case to verify SNMP user
# Description
Verifies the SNMP user configurations for specified version(s).
- Verifies that the valid user name and group name.
- Ensures that the SNMP v3 security model, the user authentication and privacy settings aligning with version-specific requ... | Add the test case to verify SNMP user.
Sample output
DLFW1#show snmp user
User name : $SNMP_USER_NAME
Security model : v3
Engine ID : -----------
Authentication : SHA
Privacy : AES-128
Group : $SNMP_GROUP_NAME | aristanetworks/anta | diff --git a/anta/tests/snmp.py b/anta/tests/snmp.py
index 36b97ba2..ef741043 100644
--- a/anta/tests/snmp.py
+++ b/anta/tests/snmp.py
@@ -9,7 +9,10 @@ from __future__ import annotations
from typing import TYPE_CHECKING, ClassVar, get_args
+from pydantic import field_validator
+
from anta.custom_types import Posi... | [
"tests/units/anta_tests/test_snmp.py::test[anta.tests.snmp.VerifySnmpStatus-success]",
"tests/units/anta_tests/test_snmp.py::test[anta.tests.snmp.VerifySnmpStatus-failure-wrong-vrf]",
"tests/units/anta_tests/test_snmp.py::test[anta.tests.snmp.VerifySnmpStatus-failure-disabled]",
"tests/units/anta_tests/test_s... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
08924abeef74a4647ef63b52b08271a793c3d806 | 2024-03-19 19:52:00 | docker.io/swerebenchv2/myremylar-pygame-gui:548-08924ab | myremylar__pygame_gui-548 | Method: UIElement.__init__(self, relative_rect, manager, container, starting_height, layer_thickness)
Location: pygame_gui.core.ui_element.UIElement
Inputs:
- relative_rect (tuple[int, int, int, int] or pygame.Rect): position and size of the element; can be a tuple which will be converted to a pygame.Rect.
- manager (... | python | MIT | diff --git a/pygame_gui/core/ui_element.py b/pygame_gui/core/ui_element.py
index 5f24382..8a27777 100644
--- a/pygame_gui/core/ui_element.py
+++ b/pygame_gui/core/ui_element.py
@@ -62,12 +62,12 @@ class UIElement(GUISprite, IUIElementInterface):
super().__init__(self.ui_manager.get_sprite_group())
s... | Move call to rect.size to after rect is created.
fixes #547 | UITextEntryLine acceps a Tuple in relative_rect but crashes since its expecting a pygame.Rect
UITextEntryLine acceps a Tuple in relative_rect but crashes since its expecting a pygame.Rect by calling its .size attribute.
```py
AttributeError: 'Tuple' object has no attribute 'size'
```
Steps to reproduce the behaviou... | MyreMylar/pygame_gui | diff --git a/tests/test_core/test_ui_element.py b/tests/test_core/test_ui_element.py
index 148bf2f..01f1bcb 100644
--- a/tests/test_core/test_ui_element.py
+++ b/tests/test_core/test_ui_element.py
@@ -22,6 +22,12 @@ class TestUIElement:
starting_height=0,
layer_thickness=1)
+ ... | [
"tests/test_core/test_ui_element.py::TestUIElement::test_creation"
] | [
"tests/test_core/test_ui_element.py::TestUIElement::test_create_valid_id",
"tests/test_core/test_ui_element.py::TestUIElement::test_create_invalid_id",
"tests/test_core/test_ui_element.py::TestUIElement::test_update_containing_rect_position",
"tests/test_core/test_ui_element.py::TestUIElement::test_set_contai... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
0d3de854476bbb9810ab50459def97ebd9ba857f | 2020-07-27 16:39:19 | docker.io/swerebenchv2/ericmjl-pyjanitor:706-0d3de85 | ericmjl__pyjanitor-706 | Function: fill_missing_timestamps(df: pd.DataFrame, frequency: str, first_time_stamp: pd.Timestamp = None, last_time_stamp: pd.Timestamp = None)
Location: janitor.timeseries
Inputs:
- **df** – pandas DataFrame whose index is a DatetimeIndex to be examined.
- **frequency** – string alias accepted by pandas `date... | python | MIT | diff --git a/AUTHORS.rst b/AUTHORS.rst
index b8b461b..ca89d46 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -90,4 +90,5 @@ Contributors
- `@evan-anderson <https://github.com/evan-anderson>`_ | `contributions <https://github.com/ericmjl/pyjanitor/pulls?utf8=%E2%9C%93&q=is%3Aclosed+mentions%3evan-anderson>`_
- `@smu095... | [ENH] first pass on fill_missing_timestamps
Closes #705
# PR Description
Please describe the changes proposed in the pull request:
- Introducing a "timeseries.py" module with data checking and data cleaning functions geared towards time series data
- Adding two functions (a utility function and an actual use... | Add the ability to flag and fill if timestamps are missing in a pandas data frame
# Brief Description
Following up on https://github.com/ericmjl/pyjanitor/issues/703, this issue seeks to introduce the ability to flag if timestamps are missing in a given data frame, provided the frequency of the time series data in t... | ericmjl/pyjanitor | diff --git a/tests/timeseries/test_fill_missing_timestamps.py b/tests/timeseries/test_fill_missing_timestamps.py
new file mode 100644
index 0000000..055294d
--- /dev/null
+++ b/tests/timeseries/test_fill_missing_timestamps.py
@@ -0,0 +1,48 @@
+import pytest
+import pandas as pd
+from random import randint
+from janitor... | [
"tests/timeseries/test_fill_missing_timestamps.py::test_fill_missing_timestamps",
"tests/timeseries/test_fill_missing_timestamps.py::test__get_missing_timestamps"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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/ericmjl/pyjanitor/issues/703"
]... |
60fa32fcad9ae324f029ce107753ed75fcdbdc37 | 2023-05-05 16:57:57 | docker.io/swerebenchv2/agnostiqhq-covalent:1622-60fa32f | agnostiqhq__covalent-1622 | Method: ConfigManager.__init__(self, config_path: str | None = None)
Location: covalent/_shared_files/config.py
Inputs: Optional path to a configuration file; if omitted defaults to the user config directory.
Outputs: Initializes the ConfigManager instance, ensuring required directories exist (including the paren... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 033e7edd..4c63fa14 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- DB path creation now takes place at import time so that the CLI commands don't fail
- Raise... | Fixed db path creation
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's a new feature, increment the minor versi... | Running any CLI command will fail on a new machine
### Environment
- **Covalent version**: 0.222.0rc0
- **Python version**: 3.8.15
- **Operating system**: Ubuntu 20.04
### What is happening?
Executing any CLI command throws an error now since it is unable to find the non-existent directory for the database, whic... | AgnostiqHQ/covalent | diff --git a/tests/covalent_tests/shared_files/config_test.py b/tests/covalent_tests/shared_files/config_test.py
index 32a71c86..cd772109 100644
--- a/tests/covalent_tests/shared_files/config_test.py
+++ b/tests/covalent_tests/shared_files/config_test.py
@@ -58,6 +58,7 @@ def test_config_manager_init_write_update_confi... | [
"tests/covalent_tests/shared_files/config_test.py::test_config_manager_init_write_update_config[False-True-False]",
"tests/covalent_tests/shared_files/config_test.py::test_config_manager_init_write_update_config[True-False-True]"
] | [
"tests/covalent_tests/shared_files/config_test.py::test_config_manager_init_directory_setting[COVALENT_CONFIG_DIR-covalent.conf]",
"tests/covalent_tests/shared_files/config_test.py::test_config_manager_init_directory_setting[XDG_CONFIG_DIR-covalent.conf]",
"tests/covalent_tests/shared_files/config_test.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": [... |
90e63c1cb5178acaa49cfc301b2688dcaba12115 | 2023-01-22 11:05:01 | docker.io/swerebenchv2/getmoto-moto:5865-90e63c1 | getmoto__moto-5865 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/ecs/models.py b/moto/ecs/models.py
index 7374ce403..5ce3aa848 100644
--- a/moto/ecs/models.py
+++ b/moto/ecs/models.py
@@ -808,7 +808,7 @@ class EC2ContainerServiceBackend(BaseBackend):
service_region, zones, "ecs"
)
- def _get_cluster(self, name):
+ def _get_cluster(self... | ECS: list_services() now throws correct error when providing unknown cluster
Fixes #5857 | ECS list_services ClusterNotFoundException Not raised
## Reporting Bugs
Resource/Client:
**ECS**
Method:
**list_services**
When calling the `ecs` `list_services` with a cluster that does not exist (in moto) the API returns an empty list response.
Expected behavior:
It should raise `ClusterNotFoundExcepti... | getmoto/moto | diff --git a/tests/test_ecs/test_ecs_boto3.py b/tests/test_ecs/test_ecs_boto3.py
index 161212b01..94b81554e 100644
--- a/tests/test_ecs/test_ecs_boto3.py
+++ b/tests/test_ecs/test_ecs_boto3.py
@@ -701,6 +701,17 @@ def test_list_services():
cluster1_fargate_services["serviceArns"][0].should.equal(test_ecs_service2_... | [
"tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[no",
"tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[unknown]"
] | [
"tests/test_ecs/test_ecs_boto3.py::test_create_cluster",
"tests/test_ecs/test_ecs_boto3.py::test_create_cluster_with_setting",
"tests/test_ecs/test_ecs_boto3.py::test_list_clusters",
"tests/test_ecs/test_ecs_boto3.py::test_describe_clusters",
"tests/test_ecs/test_ecs_boto3.py::test_describe_clusters_missing... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a02f2b9520e97e56a6a8fb0af2aa7710c317dba9 | 2022-11-02 23:15:56 | docker.io/swerebenchv2/huggingface-huggingface-hub:1147-a02f2b9 | huggingface__huggingface_hub-1147 | Method: RepoCard.content(self)
Location: huggingface_hub/repocard.py → class RepoCard, @property getter
Inputs: None (property access)
Outputs: str – the full card content composed of the YAML metadata block (with detected line ending) followed by the markdown body (`self.text`).
Description: Returns the serialized rep... | python | Apache-2.0 | diff --git a/docs/source/how-to-manage.mdx b/docs/source/how-to-manage.mdx
index 312f36d2..b9157236 100644
--- a/docs/source/how-to-manage.mdx
+++ b/docs/source/how-to-manage.mdx
@@ -45,7 +45,7 @@ By default, [`create_repo`] creates a model repository. But you can use the `rep
```py
>>> from huggingface_hub import cr... | make repocard content a property
Resolves #1144 by turning `RepoCard.content` into a property with an accompanying setter fn. The setter handles setting `.data` and `.text` attributes accordingly.
This way, when you update the card text or data, the card's content will be updated as well. As an added bonus, if you ... | Make it easier to modify the model card content
Modifying `card.text` does not modify `card.content`, which is what is pushed to the Hub.
```
card = ModelCard.load('akdeniz27/roberta-large-cuad')
card.text = """
This is the new model card
"""
card.content = str(card)
```
It would work, but it has the last... | huggingface/huggingface_hub | diff --git a/tests/test_repocard.py b/tests/test_repocard.py
index 1cda3d7e..dba14949 100644
--- a/tests/test_repocard.py
+++ b/tests/test_repocard.py
@@ -656,6 +656,14 @@ class RepoCardTest(TestCaseWithCapLog):
card = RepoCard.load(card_path)
self.assertIn("\r\n", str(card))
+ def test_updating_... | [
"tests/test_repocard.py::RepoCardTest::test_updating_text_updates_content"
] | [
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_eval_result",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_load",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_save",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_save_from_file_no_yaml",
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
17c38d9cb27d332729e7ec234e265728662442b2 | 2025-07-04 17:19:44 | docker.io/swerebenchv2/vacanza-holidays:2700-17c38d9 | vacanza__holidays-2700 | Method: Lebanon.__init__(self, *args, islamic_show_estimated: bool = True, **kwargs)
Location: holidays/countries/lebanon.py
Inputs:
- *args, **kwargs passed through to the base ObservedHolidayBase (e.g., years: iterable[int], categories: int flag, etc.)
- islamic_show_estimated (bool, optional, default True): cont... | python | MIT | diff --git a/README.md b/README.md
index 78fed16a..0dcfeffe 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ and detailed information.
## Available Countries
-We currently support 215 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 216 country codes. The s... | Add Lebanon 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.
-->
Add Lebanon holidays.
Fixes #1216.
## Type of change
<!--
Type of change you want to introduc... | Add Lebanon holidays
Links:
- https://en.wikipedia.org/wiki/Public_holidays_in_Lebanon
- https://www.timeanddate.com/holidays/lebanon/
- https://www.bdl.gov.lb/pages/index/9/154/Official-Banking-Holidays.html | vacanza/holidays | diff --git a/tests/countries/test_lebanon.py b/tests/countries/test_lebanon.py
new file mode 100644
index 00000000..d058ee10
--- /dev/null
+++ b/tests/countries/test_lebanon.py
@@ -0,0 +1,381 @@
+# holidays
+# --------
+# A fast, efficient Python library for generating country, province and state
+# specific sets o... | [
"tests/countries/test_lebanon.py::TestLebanon::test_2024",
"tests/countries/test_lebanon.py::TestLebanon::test_all_saints_days",
"tests/countries/test_lebanon.py::TestLebanon::test_anniversary_of_the_tragedy_of_beirut_port_explosion",
"tests/countries/test_lebanon.py::TestLebanon::test_armenian_orthodox_chris... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://en.wikipedia.org/wiki/Public_holidays_in_Leban... |
fd8d0a2bb0982a17a2f89d85462c14eece4abaeb | 2018-12-09 16:33:45 | docker.io/swerebenchv2/facelessuser-soupsieve:4-fd8d0a2 | facelessuser__soupsieve-4 | Method: SoupSieve.icomments(self, node, limit=0)
Location: soupsieve/css_parser.py → class SoupSieve
Inputs:
- **self** – the compiled SoupSieve instance.
- **node** – a BeautifulSoup element or document to search.
- **limit** (int, optional) – maximum number of comment nodes to yield (0 = no limit).
Outputs:
- Yields ... | python | MIT | diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644
index 0000000..caaaa71
--- /dev/null
+++ b/.codecov.yml
@@ -0,0 +1,5 @@
+comment: false
+
+coverage:
+ status:
+ patch: false
diff --git a/docs/src/dictionary/en-custom.txt b/docs/src/dictionary/en-custom.txt
index 700f9bd..1c3f456 100644
--- a/docs/src/... | Deprecate commentsiter and selectiter
Use iselect and icomments instead as they are shorter and easier to read. Closes #3 . | Names of iter functions
Right now we have two iter functions `commentsiter` and `selectiter`. For 1.0, should they be called `comments_iter` and `select_iter`. Or maybe `icomments` and `iselect`?
We have some flexibility before 1.0 release, so we should really settle on something. `commentsiter` and `selectiter` ju... | facelessuser/soupsieve | diff --git a/tests/test_level1.py b/tests/test_level1.py
index 99f98f9..6979749 100644
--- a/tests/test_level1.py
+++ b/tests/test_level1.py
@@ -119,3 +119,23 @@ class TestLevel1(util.TestCase):
["2"],
mode=sv.HTML5
)
+
+ def test_classes(self):
+ """Test classes."""
+
+ ... | [
"tests/test_soupsieve.py::TestSoupSieve::test_comments",
"tests/test_soupsieve.py::TestSoupSieve::test_select",
"tests/test_soupsieve.py::TestDeprcations::test_commentsiter_deprecation",
"tests/test_soupsieve.py::TestDeprcations::test_selectiter_deprecation"
] | [
"tests/test_level1.py::TestLevel1::test_child",
"tests/test_level1.py::TestLevel1::test_class",
"tests/test_level1.py::TestLevel1::test_classes",
"tests/test_level1.py::TestLevel1::test_id",
"tests/test_level1.py::TestLevel1::test_tag",
"tests/test_level1.py::TestLevel1::test_tags",
"tests/test_level2.p... | {
"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": [],
"intent_completeness": "partial",
"pr_categories": ... |
c1869f4b314ba9c84f95c976928cd5768ffc3280 | 2021-04-14 01:41:18 | docker.io/swerebenchv2/nerdvegas-rez:1061-c1869f4 | nerdvegas__rez-1061 | Method: PackageRepository.ignore_package(self, pkg_name, pkg_version, allow_missing=False)
Location: rez/package_repository.py
Inputs:
- **pkg_name** (str): name of the package to ignore.
- **pkg_version** (Version): exact version of the package.
- **allow_missing** (bool, optional): if True, the call succeeds eve... | python | Apache-2.0 | diff --git a/src/rez/cli/_entry_points.py b/src/rez/cli/_entry_points.py
index 98d48497..06faff74 100644
--- a/src/rez/cli/_entry_points.py
+++ b/src/rez/cli/_entry_points.py
@@ -297,3 +297,10 @@ def run_rez_pkg_ignore():
check_production_install()
from rez.cli._main import run
return run("pkg-ignore")
+... | Package move
Closes #1059
| add pkg move feature
Add rez-pkg-mv op.
This is required to support package archival. What would happen is something like this:
* for some pkg repo path (eg /pkgs), you have some archive pkg repo, let's say /archive
* to archive a pkg, you 'move' it from /pkgs to /archive
* in reality this is a copy + an ignore... | nerdvegas/rez | diff --git a/src/rez/tests/test_packages.py b/src/rez/tests/test_packages.py
index 7fae16ef..ff966e15 100644
--- a/src/rez/tests/test_packages.py
+++ b/src/rez/tests/test_packages.py
@@ -3,10 +3,10 @@ test package iteration, serialization etc
"""
from rez.packages import iter_package_families, iter_packages, get_pack... | [
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_after",
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_before",
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_global_preprocess_func",
"src/rez/tests/test_packages.py::TestPackages::test_develo... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
cc2d85c05a4e7185e3468b17d8e9ddf9ae71373f | 2018-09-25 10:32:31 | docker.io/swerebenchv2/python-markdown-markdown:713-cc2d85c | python-markdown__markdown-713 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index e4af53e..3d3e65f 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -155,8 +155,8 @@ AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>'
# <...>
HTML_RE = r'(\<([a-zA-Z/][^\>]*?|\!--.*?--)\>)'
-# &
-ENTITY_RE = r'(&(?:\#[0-9]+|... | Make ENTITY_RE support hexadecimal entities
Fixes #712. | Hexadecimal HTML entities are not rendered
According to standard Markdown, HTML entities are to be recognized and rendered correctly (https://daringfireball.net/projects/markdown/syntax#autoescape). Up to v2.6.11, Python-Markdown has been able to do so, but with v3 it does not work any longer.
A hex HTML entity is n... | Python-Markdown/markdown | diff --git a/tests/test_syntax/inline/test_entities.py b/tests/test_syntax/inline/test_entities.py
new file mode 100644
index 0000000..67b0647
--- /dev/null
+++ b/tests/test_syntax/inline/test_entities.py
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+"""
+Python Markdown
+
+A Python implementation of John Gruber's Markdow... | [
"tests/test_syntax/inline/test_entities.py::TestEntities::test_hexadecimal_entities"
] | [
"tests/test_syntax/inline/test_entities.py::TestEntities::test_decimal_entities",
"tests/test_syntax/inline/test_entities.py::TestEntities::test_false_entities",
"tests/test_syntax/inline/test_entities.py::TestEntities::test_named_entities"
] | {
"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://daringfireball.net/projects/markdown/syntax#auto... |
4bf2f9b34c00ecd261d7d5b069194b78ad763600 | 2020-10-30 15:38:19 | docker.io/swerebenchv2/alteryx-evalml:1374-4bf2f9b | alteryx__evalml-1374 | Method: evalml.model_understanding.prediction_explanations._user_interface.make_rows(shap_values, normalized_values, pipeline_features, top_k, include_shap_values=False)
Location: evalml/model_understanding/prediction_explanations/_user_interface.py
Inputs:
- **shap_values** (dict [str → list[float]]): raw SHAP v... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index a39693f6..872abedf 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -5,6 +5,7 @@ Release Notes
* Enhancements
* Added ability to freeze hyperparameters for AutoMLSearch :pr:`1284`
* A... | Displaying the top_k features with largest shap value magnitudes
### Pull Request Description
Fixes #1360
FYI @RezaAkhtar
-----
*After creating the pull request: in order to pass the **release_notes_updated** check you will need to update the "Future Release" section of* `docs/source/release_notes.rst` *to incl... | explain_predictions_ functions should return top_k features by magnitude of SHAP value
Currently, the explain_predictions_ functions accept a top_k_features argument. By design, this returns the features with the top_k highest and top_k smallest shap values for a total of 2 * top_k features.
The idea was to give us... | alteryx/evalml | diff --git a/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py b/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py
index e051acb7..a4c61f4b 100644
--- a/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py
+++... | [
"evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction[regression-text-shap_values0-normalized_shap_values0-answer0]",
"evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction[regression-dict-shap_v... | [
"evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction_value_error[5]",
"evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction_value_error[test_features1]",
"evalml/tests/model_understanding_tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
1982ec4c08281c055677bf63cc72b36411d1a190 | 2020-03-03 13:13:22 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2366-1982ec4 | hypothesisworks__hypothesis-2366 | No new interfaces are introduced. | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..92cd460b1
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: minor
+
+This release allows the :func:`~hypothesis.extra.numpy.array_dtypes` strategy
+to generate Numpy dtypes whi... | Allow `array_dtypes()` to generate titles, as well as names, for fields
This PR closes #2275, where I noted that
> when reading [the SciPy docs on structured arrays](https://docs.scipy.org/doc/numpy/user/basics.rec.html#field-titles), I discovered that array dtypes / record dtypes / structured dtypes (we should prob... | Improve the `extra.numpy.array_dtypes` strategy
[Current docs here](https://hypothesis.readthedocs.io/en/latest/numpy.html#hypothesis.extra.numpy.array_dtypes).
When reading [the SciPy docs on structured arrays](https://docs.scipy.org/doc/numpy/user/basics.rec.html#field-titles). I discovered that array dtypes / rec... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/numpy/test_gen_data.py b/hypothesis-python/tests/numpy/test_gen_data.py
index f91f0fd4c..21e9fc543 100644
--- a/hypothesis-python/tests/numpy/test_gen_data.py
+++ b/hypothesis-python/tests/numpy/test_gen_data.py
@@ -249,8 +249,12 @@ def test_minimise_array_strategy():
@given(nps.... | [
"hypothesis-python/tests/numpy/test_gen_data.py::test_array_dtypes_may_have_field_titles"
] | [
"hypothesis-python/tests/numpy/test_gen_data.py::test_strategies_for_standard_dtypes_have_reusable_values",
"hypothesis-python/tests/numpy/test_gen_data.py::test_produces_instances[t0]",
"hypothesis-python/tests/numpy/test_gen_data.py::test_produces_instances[t1]",
"hypothesis-python/tests/numpy/test_gen_data... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://hypothesis.readthedocs.io/en/latest/numpy.html... |
7f949b3db2b357fe1c0ff6f33efb8bf9d6935fad | 2025-04-12 07:17:08 | docker.io/swerebenchv2/litestar-org-litestar:4108-7f949b3 | litestar-org__litestar-4108 | No new interfaces are introduced. | python | MIT | diff --git a/docs/examples/websockets/stream_and_receive_listener.py b/docs/examples/websockets/stream_and_receive_listener.py
index d01158e12..5b37b59dc 100644
--- a/docs/examples/websockets/stream_and_receive_listener.py
+++ b/docs/examples/websockets/stream_and_receive_listener.py
@@ -1,26 +1,36 @@
-import asyncio
-... | docs: add test to stream_and_receive_listener and mention on json default
<!--
By submitting this pull request, you agree to:
- follow [Litestar's Code of Conduct](https://github.com/litestar-org/.github/blob/main/CODE_OF_CONDUCT.md)
- follow [Litestar's contribution guidelines](https://github.com/litestar-org/.gi... | Docs: Incorrect example for websocket listener `connection_lifespan`
### Description
I am trying the example , and it is not working. I had drill down to included MVCE and i believe connection_lifespan is the culprit.
### URL to code causing the issue
https://github.com/litestar-org/litestar/blob/027ce12a64711f90c... | litestar-org/litestar | diff --git a/tests/examples/test_websockets.py b/tests/examples/test_websockets.py
index c2898aa11..0599c26fc 100644
--- a/tests/examples/test_websockets.py
+++ b/tests/examples/test_websockets.py
@@ -1,5 +1,8 @@
from docs.examples.websockets.custom_websocket import app as custom_websocket_class_app
+from docs.example... | [
"tests/examples/test_websockets.py::test_websocket_listener",
"tests/examples/test_websockets.py::test_websocket_handler"
] | [
"tests/examples/test_websockets.py::test_custom_websocket_class"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/litestar-org/litestar/blob/027ce12a... |
a11a5da0a8459f4098ec884b7cc52534336856db | 2020-06-28 20:14:45 | docker.io/swerebenchv2/pallets-click:1606-a11a5da | pallets__click-1606 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 548ac13..c27b103 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -111,6 +111,8 @@ Unreleased
completion system. :issue:`942`
- Include ``--help`` option in completion. :pr:`1504`
- ``ParameterSource`` is an ``enum.Enum`` subclass. :issue:`1530`
+- Boolean type str... | boolean type strips space before converting
fixes #1605 | Trailing blanks in envvars of boolean options cause otherwise valid values to be rejected
### Actual Behavior
When defining a boolean option that also can be set via envvar, trailing blanks in the envvar value cause otherwise valid values to be rejected with this error message:
```
Error: Invalid value for '--so... | pallets/click | diff --git a/tests/test_options.py b/tests/test_options.py
index c57525c..e86a82a 100644
--- a/tests/test_options.py
+++ b/tests/test_options.py
@@ -164,6 +164,17 @@ def test_multiple_envvar(runner):
assert result.output == "foo|bar\n"
+def test_trailing_blanks_boolean_envvar(runner):
+ @click.command()
+ ... | [
"tests/test_options.py::test_trailing_blanks_boolean_envvar"
] | [
"tests/test_options.py::test_prefixes",
"tests/test_options.py::test_invalid_option",
"tests/test_options.py::test_invalid_nargs",
"tests/test_options.py::test_nargs_tup_composite_mult",
"tests/test_options.py::test_counting",
"tests/test_options.py::test_unknown_options[--foo]",
"tests/test_options.py:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
8bb3286fd4629b46db96d7ee35e32e0e607aafc7 | 2021-12-26 21:48:25 | docker.io/swerebenchv2/theacodes-nox:537-8bb3286 | theacodes__nox-537 | Method: Session.install(self, *packages, silent=True, external="error", **kwargs)
Location: nox.sessions.Session
Inputs:
- *packages: one or more package specifiers as strings (e.g., "requests", "urllib3").
- silent (bool, default True): passed through to the underlying pip command.
- external (str, default "error"): ... | python | Apache-2.0 | diff --git a/docs/config.rst b/docs/config.rst
index f3bb1b9..7773da1 100644
--- a/docs/config.rst
+++ b/docs/config.rst
@@ -149,6 +149,14 @@ If you want to disable virtualenv creation altogether, you can set ``python`` to
def tests(session):
pass
+Use of :func:`session.install()` is deprecated without ... | Deprecate use of session.install() without a virtual env
Close #503.
I've scanned the docs and cannot see anything that should be changed based on this change. Please correct me if I'm wrong.
Also feel free to chime in on the wording of the warning message. | Running with `--no-venv` causes `session.install` to use unexpected interpreter
**Describe the bug**
Running with `--no-venv` causes `session.install` to be invoked with the `python` executable found on `PATH`, not the one running `nox`.
**How to reproduce**
Running in an environment where the executables `python`... | theacodes/nox | diff --git a/tests/test_sessions.py b/tests/test_sessions.py
index d5a895d..4f31a82 100644
--- a/tests/test_sessions.py
+++ b/tests/test_sessions.py
@@ -578,6 +578,39 @@ class TestSession:
external="error",
)
+ def test_install_no_venv_deprecated(self):
+ runner = nox.sessions.... | [
"tests/test_sessions.py::TestSession::test_install_no_venv_deprecated"
] | [
"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": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://nox.thea.codes/en/stable/usage.html?highlight=... |
dfab362ba750486233617f2d6c41eb6c599abad4 | 2022-05-20 14:34:16 | docker.io/swerebenchv2/stac-utils-pystac-client:164-dfab362 | stac-utils__pystac-client-164 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6ff761b..f6f5c59 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- lru_cache to several methods [#167](https://github.com/stac-utils/pystac-client/pull/167)
+### Changed
+... | Check conformance before search links
**Related Issue(s):**
- Closes #141
**Description:** By checking conformance first, we can provide a more meaningful error message when, e.g., folks try to search a static catalog.
```sh
$ stac-client search ~/Code/stac-spec/examples/catalog.json
This catalog does not sup... | NotImplementedError: No link with "rel" type of "search" could be found in this catalog
Raising issue here as suggested in https://github.com/stac-utils/pystac/issues/736#issuecomment-1041563811
**Original:**
I have created a local catalog as explained in tutorial https://pystac.readthedocs.io/en/1.0/tutorials/how-... | stac-utils/pystac-client | diff --git a/tests/test_client.py b/tests/test_client.py
index 80d917c..79d88c9 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -1,4 +1,7 @@
+import json
+import os.path
from datetime import datetime
+from tempfile import TemporaryDirectory
from urllib.parse import urlsplit, parse_qs
from dateutil.... | [
"tests/test_client.py::TestAPISearch::test_no_conforms_to"
] | [
"tests/test_client.py::TestAPI::test_spec_conformance",
"tests/test_client.py::TestAPI::test_no_conformance",
"tests/test_client.py::TestAPI::test_no_stac_core_conformance",
"tests/test_client.py::TestAPI::test_invalid_url",
"tests/test_client.py::TestAPI::test_get_collections_with_conformance",
"tests/te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/stac-utils/pystac/issues/736#issuecom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.