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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcf6e9650c9aaffbb1ad23d2ddb1452f2a7b92fa | 2025-04-23 04:05:43 | docker.io/swerebenchv2/mpmath-mpmath:944-fcf6e96 | mpmath__mpmath-944 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/basics.rst b/docs/basics.rst
index e41f5fe..db94131 100644
--- a/docs/basics.rst
+++ b/docs/basics.rst
@@ -221,7 +221,10 @@ Setting the ``mp.pretty`` option will use the ``str()``-style output for ``repr(
>>> mpf(0.6)
mpf('0.59999999999999998')
-To use enough digits to be able recreate val... | Fix new-style formatting without type specifier (repr_dps vs dps)
Closes #943 | Incompatible "new-style" formatting without type specifiers
Development version allow for [formatting similar to Python floats](https://mpmath.readthedocs.io/en/latest/general.html#mpmath-mpf-format), including same format specifiers (i.e. `'f'` or `'e'`). Though, this introduced an incompatibility in case when the fo... | mpmath/mpmath | diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py
index 1932d99..f07ae6a 100644
--- a/mpmath/tests/test_format.py
+++ b/mpmath/tests/test_format.py
@@ -469,6 +469,10 @@ def test_mpf_fmt_cpython():
# No formatting code.
assert f'{mp.mpf(0.0):.0}' == '0e+00'
+ mp.pretty_dps = 'repr'
+ ... | [
"mpmath/tests/test_format.py::test_mpf_fmt_cpython"
] | [
"mpmath/tests/test_format.py::test_mpf_floats_bulk",
"mpmath/tests/test_format.py::test_mpc_complexes",
"mpmath/tests/test_format.py::test_mpc_fmt",
"mpmath/tests/test_format.py::test_mpf_fmt",
"mpmath/tests/test_format.py::test_issue_858",
"mpmath/tests/test_format.py::test_errors",
"mpmath/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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://mpmath.readthedocs.io/en/latest/general.html#m... |
f43762449252cb6ee4b38f53a685fee8dd652215 | 2024-09-22 16:24:38 | docker.io/swerebenchv2/aio-libs-aiohttp:9238-f437624 | aio-libs__aiohttp-9238 | Method: HttpRequestParser.feed_data(self, data: bytes) -> None
Location: aiohttp.http_parser.HttpRequestParser
Inputs: **data** – raw bytes received from a client connection; must contain a complete HTTP request line and headers.
Outputs: Returns ``None`` on successful parsing. Raises ``http_exceptions.BadHttpMessage... | python | custom-check-github | diff --git a/CHANGES/9018.bugfix.rst b/CHANGES/9018.bugfix.rst
new file mode 100644
index 000000000..2de6d1429
--- /dev/null
+++ b/CHANGES/9018.bugfix.rst
@@ -0,0 +1,1 @@
+Updated Python parser to reject messages after a close message, matching C parser behaviour -- by :user:`Dreamsorcerer`.
diff --git a/CHANGES/9033.m... | [PR #9063/3c1ca455 backport][3.11] Fix If-None-Match not using weak comparison
**This is a backport of PR #9063 as merged into master (3c1ca45515b766ceb8bbbd8d710096c03106dd38).**
Fixes #8462. | Weak Etag can not trigger negotiation caching
### Describe the bug

If the above code is a weak Etag, the judgment logic in the any function will not be executed, and finally return False, resulting in the failure of the... | aio-libs/aiohttp | diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py
index 75276df1a..edd676190 100644
--- a/tests/test_http_parser.py
+++ b/tests/test_http_parser.py
@@ -17,6 +17,7 @@ from aiohttp.http_parser import (
NO_EXTENSIONS,
DeflateBuffer,
HttpPayloadParser,
+ HttpRequestParser,
HttpReques... | [
"tests/test_http_parser.py::test_http_request_message_after_close[py-parser-pyloop]",
"tests/test_web_cli.py::test_path_no_host",
"tests/test_web_sendfile_functional.py::test_static_file_if_none_match_weak[sendfile-pyloop-]",
"tests/test_web_sendfile_functional.py::test_static_file_if_none_match_weak[sendfile... | [
"tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]",
"tests/test_http_parser.py::test_reject_obsolete_line_folding[py-parser-pyloop]",
"tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-\"]",
"tests/test_http_pa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.86,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
9b1412aa5b5bca345806068b66d35086cbc88b25 | 2025-06-29 12:29:32 | docker.io/swerebenchv2/matthewwithanm-python-markdownify:230-9b1412a | matthewwithanm__python-markdownify-230 | No new interfaces are introduced. | python | MIT | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index 72c5214..e901d10 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -41,6 +41,9 @@ re_escape_misc_hashes = re.compile(r'(\s|^)(#{1,6}(?:\s|$))')
# confused with a list item
re_escape_misc_list_items = re.compile(r'((?:\s|^)[0-9]{1... | Support backticks in <code> spans (#226)
Fixes #226.
When the contents of a `<code>` tag contain N consecutive backticks,
- The resulting Markdown will use N+1 backticks as a delimiter.
- An additional leading and trailing space are added inside the span to avoid backtick ambiguity.
- These spaces are ignored... | Support backticks inside inline code spans
With the version `1.1.0`, the following code
~~~python
from markdownify import markdownify as md
print(
md(
'<code>We have to `manage` this.</code>',
)
)
~~~
should print
~~~
``We have to `manage` this.``
~~~
instead of
~~~
`We have to `manage` this.`
~~~... | matthewwithanm/python-markdownify | diff --git a/tests/test_conversions.py b/tests/test_conversions.py
index 825559b..dd99dfb 100644
--- a/tests/test_conversions.py
+++ b/tests/test_conversions.py
@@ -101,6 +101,9 @@ def test_code():
assert md('<code>foo<s> bar </s>baz</code>') == '`foo bar baz`'
assert md('<code>foo<sup>bar</sup>baz</code>', s... | [
"tests/test_conversions.py::test_code"
] | [
"tests/test_conversions.py::test_a",
"tests/test_conversions.py::test_a_spaces",
"tests/test_conversions.py::test_a_with_title",
"tests/test_conversions.py::test_a_shortcut",
"tests/test_conversions.py::test_a_no_autolinks",
"tests/test_conversions.py::test_a_in_code",
"tests/test_conversions.py::test_b... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
18cd11a67051f18f79665789d72a3bc796999355 | 2020-11-18 00:55:23 | docker.io/swerebenchv2/niconoe-pyinaturalist:78-18cd11a | niconoe__pyinaturalist-78 | Function: get_controlled_terms(taxon_id: int | None = None, user_agent: str | None = None)
Location: pyinaturalist.node_api module
Inputs:
- taxon_id (int, optional): ID of a taxon to restrict the returned controlled terms to those valid for the given taxon. If omitted, all controlled terms are returned.
- user_agent ... | python | MIT | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d5b5451..1c44287 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -24,8 +24,9 @@ $ open docs/_build/index.html
$ xdg-open docs/_build/index.html
```
-[Hosted documentation](https://pyinaturalist.readthedocs.io/) is automatically updated when code
-gets pushe... | Add Controlled Terms endpoints from Node API
Closes #35 | Add Controlled Terms endpoints from Node API
I'd like to add the two [Controlled Terms](https://api.inaturalist.org/v1/docs/#/Controlled_Terms) from the Node API.
- [x] `/controlled_terms`
- [x] `/controlled_terms/for_taxon `
- [x] Doctrings + type annotation
- [x] Error handling
- [x] Usage examples
- [x] Samp... | niconoe/pyinaturalist | diff --git a/test/sample_data/get_controlled_terms.json b/test/sample_data/get_controlled_terms.json
new file mode 100644
index 0000000..bd0a6b3
--- /dev/null
+++ b/test/sample_data/get_controlled_terms.json
@@ -0,0 +1,292 @@
+{
+ "total_results": 4,
+ "page": 1,
+ "per_page": 30,
+ "results": [
+ {
+ "id":... | [
"test/test_node_api.py::test_get_controlled_terms",
"test/test_node_api.py::test_get_controlled_terms_for_taxon",
"test/test_node_api.py::test_get_observation",
"test/test_node_api.py::test_get_observations",
"test/test_node_api.py::test_get_all_observations",
"test/test_node_api.py::test_get_geojson_obse... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://api.inaturalist.org/v1/docs/#/Controlled_Terms... |
deb5e6cc0467485afc14144fd2d84be13f52bb27 | 2025-05-14 19:28:35 | docker.io/swerebenchv2/jlowin-fastmcp:449-deb5e6c | jlowin__fastmcp-449 | Method: _walk_and_prune(schema, prune_defs=False, prune_titles=False, prune_additional_properties=False)
Location: fastmcp.utilities.json_schema._walk_and_prune
Inputs:
- **schema** (`dict`): a JSON‑Schema document to be processed.
- **prune_defs** (`bool`, default False): when True, collects `$ref` targets and remo... | python | Apache-2.0 | diff --git a/src/fastmcp/utilities/json_schema.py b/src/fastmcp/utilities/json_schema.py
index 2957463..87ea4a7 100644
--- a/src/fastmcp/utilities/json_schema.py
+++ b/src/fastmcp/utilities/json_schema.py
@@ -1,7 +1,6 @@
from __future__ import annotations
import copy
-from collections.abc import Mapping, Sequence
... | Prune titles from JSONSchemas
Closes #412 by pruning 'title' fields from all generated jsonschemas | Disable the "title" field in the generated JSON Schema
### Enhancement Description
Is there a way to disable the title field in the generated JSON schema?
My use case is as follow:
```
@app.tool()
async def method(
field: str = Field(
description="description"
)
```
Generated MCP List Tool output lo... | jlowin/fastmcp | diff --git a/tests/utilities/test_json_schema.py b/tests/utilities/test_json_schema.py
index cc9cc15..a1b5f15 100644
--- a/tests/utilities/test_json_schema.py
+++ b/tests/utilities/test_json_schema.py
@@ -1,11 +1,21 @@
from fastmcp.utilities.json_schema import (
- _prune_additional_properties,
_prune_param,
- ... | [
"tests/utilities/test_json_schema.py::TestPruneParam::test_nonexistent",
"tests/utilities/test_json_schema.py::TestPruneParam::test_exists",
"tests/utilities/test_json_schema.py::TestPruneParam::test_last_property",
"tests/utilities/test_json_schema.py::TestPruneParam::test_from_required",
"tests/utilities/... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7d1406595e8d2fc6be440012497a8c077c2d6592 | 2024-03-16 15:47:09 | docker.io/swerebenchv2/callowayproject-bump-my-version:156-7d14065 | callowayproject__bump-my-version-156 | Method: cli (root Click command group)
Location: bumpversion/cli.py – the `cli` function decorated with @click.group
Inputs: Sequence of command‑line arguments supplied to the `bumpversion` executable (e.g., `["--bad-option", "bump", "--current-version", "1.0.0", "patch"]).
Outputs: Executes the appropriate subcommand ... | python | MIT | diff --git a/bumpversion/cli.py b/bumpversion/cli.py
index cd14f726..019b3646 100644
--- a/bumpversion/cli.py
+++ b/bumpversion/cli.py
@@ -24,8 +24,6 @@ logger = get_indented_logger(__name__)
@click.group(
context_settings={
- "ignore_unknown_options": True,
- "allow_interspersed_args": True,
... | Fixed bad options not returning an error code
Fixes #153 | Passing invalid command line arguments does not result in non-zero exit code
* bump-my-version version: 0.19.0
* Python version: 3.9.13 / 3.9.18
* Operating System: Windows 11 Pro 10.0.22631 Build 22631 / Debian Bookworm 12.5
### Description
When invalid argument(s) are passed to the `bump-my-version` tool, it ... | callowayproject/bump-my-version | diff --git a/tests/conftest.py b/tests/conftest.py
index 1644fa91..a7fcd29b 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -2,6 +2,7 @@
import subprocess
from contextlib import contextmanager
+from click.testing import CliRunner
from pathlib import Path
from typing import Generator
@@ -62,3 +63,10 @@... | [
"tests/test_cli/test_base_cli.py::TestBadOptionRaisesError::test_bad_option_raises_error"
] | [
"tests/test_cli/test_bump.py::TestNoConfiguredFilesOption::test_no_files_marked_to_modify",
"tests/test_cli/test_bump.py::TestNoConfiguredFilesOption::test_file_args_marked_to_modify",
"tests/test_cli/test_bump.py::test_bump_nested_regex",
"tests/test_cli/test_bump.py::test_missing_explicit_config_file",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
97eafb9094fdd56d19022ae8fda332e728df674b | 2021-12-16 11:38:42 | docker.io/swerebenchv2/mkdocs-mkdocs:2710-97eafb9 | mkdocs__mkdocs-2710 | No new interfaces are introduced. | python | BSD-2-Clause | diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index 32cdf450..e003ff90 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -9,7 +9,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- python-version: [3.6, 3.7, 3.... | SubConfig now catches failures and warnings
Fixes #2709
| ` SubConfig` ignore configuration failures
While developing [mkdocs-gallery]() I found out that the `SubConfig` class does not retrieve the failures and warnings from the nested options.
This is because `run_validation` executes `Config.validate` but does not look at its results (`failures, warnings`):
https://gith... | mkdocs/mkdocs | diff --git a/mkdocs/tests/base.py b/mkdocs/tests/base.py
index cf425850..934f9570 100644
--- a/mkdocs/tests/base.py
+++ b/mkdocs/tests/base.py
@@ -6,6 +6,7 @@ from tempfile import TemporaryDirectory
from mkdocs import config
from mkdocs import utils
+from mkdocs.config import defaults as config_defaults
def de... | [
"mkdocs/tests/livereload_tests.py::BuildTests::test_bad_error_handler",
"mkdocs/tests/livereload_tests.py::BuildTests::test_basic_rebuild",
"mkdocs/tests/livereload_tests.py::BuildTests::test_change_is_detected_while_building",
"mkdocs/tests/livereload_tests.py::BuildTests::test_custom_action_warns",
"mkdoc... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.92,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/mkdocs/mkdocs/blob/97eafb9094fdd56d... |
9281ca026019869bc5fb10ee288a5cd9e837808f | 2017-09-11 15:24:57 | docker.io/swerebenchv2/googlecloudplatform-google-auth-library-python:195-9281ca0 | googlecloudplatform__google-auth-library-python-195 | Method: ReadOnnlyScoped.scopes(self)
Location: google.auth.credentials.ReadOnnlyScoped
Inputs: self – instance of a ReadOnnlyScoped‑derived credential.
Outputs: list[str] | None – the current scopes associated with the credential (may be ``None`` if not set).
Description: Returns the credential’s stored scopes; used by... | python | Apache-2.0 | diff --git a/google/auth/compute_engine/credentials.py b/google/auth/compute_engine/credentials.py
index 5729956..f2a4656 100644
--- a/google/auth/compute_engine/credentials.py
+++ b/google/auth/compute_engine/credentials.py
@@ -24,7 +24,7 @@ from google.auth import exceptions
from google.auth.compute_engine import _m... | Move read-only methods of 'Scoped' into new interface, 'ReadOnlyScoped'.
Not all subclasses of 'Scoped' can sanely implement `with_scopes` (e.g, on GCE the scopes are hard-wired in when creating the GCE node).
Make `Scoped` derive from `ReadOnlyScoped`, adding the `with_scopes` method.
Make GCE's `Credentials` cl... | GCE Credentials should not derive from Scoped
Because `with_scopes` raises `NotImplementedError`, the class cannot be used polymorphically where instances of `Scoped` are expected (see https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3933). For instance, in C++,`google.auth.compute_engine.credentials.... | GoogleCloudPlatform/google-auth-library-python | diff --git a/tests/compute_engine/test_credentials.py b/tests/compute_engine/test_credentials.py
index 732cb41..ae2597d 100644
--- a/tests/compute_engine/test_credentials.py
+++ b/tests/compute_engine/test_credentials.py
@@ -105,7 +105,3 @@ class TestCredentials(object):
# Credentials should now be valid.
... | [
"tests/compute_engine/test_credentials.py::TestCredentials::test_default_state",
"tests/compute_engine/test_credentials.py::TestCredentials::test_refresh_success",
"tests/compute_engine/test_credentials.py::TestCredentials::test_refresh_error",
"tests/compute_engine/test_credentials.py::TestCredentials::test_... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/GoogleCloudPlatform/google-cloud-py... |
ea5a57636ac850c1767a36ebd646f58850961b27 | 2024-11-29 16:33:12 | docker.io/swerebenchv2/mlcommons-medperf:628-ea5a576 | mlcommons__medperf-628 | Method: DataPreparation.run_statistics(self)
Location: cli/medperf/commands/dataset/prepare.py
Inputs: Reads the file at `self.out_statistics_path` (a YAML file); uses `self.metadata_specified` (bool) to decide whether to pass a `metadata_path` argument to the statistics cube.
Outputs:
- On successful load (non‑None d... | python | Apache-2.0 | diff --git a/cli/medperf/commands/dataset/prepare.py b/cli/medperf/commands/dataset/prepare.py
index 32ee6de..216d342 100644
--- a/cli/medperf/commands/dataset/prepare.py
+++ b/cli/medperf/commands/dataset/prepare.py
@@ -260,6 +260,13 @@ class DataPreparation:
self.dataset.unmark_as_ready()
ra... | prevent empty statistics file
Fixes #623 | [BUG] Empty statistics from a data owner causes a global error
**Describe the bug**
The `generated_metadata` field of datasets in the client is set to be required:
https://github.com/mlcommons/medperf/blob/09edc70bcf7f1615c532c8f8b15f10de9b406e33/cli/medperf/entities/dataset.py#L30
However, on the server, it is allo... | mlcommons/medperf | diff --git a/cli/medperf/tests/commands/dataset/test_prepare.py b/cli/medperf/tests/commands/dataset/test_prepare.py
index e0e9ad6..dd09b03 100644
--- a/cli/medperf/tests/commands/dataset/test_prepare.py
+++ b/cli/medperf/tests/commands/dataset/test_prepare.py
@@ -56,7 +56,7 @@ def test_get_prep_cube_downloads_cube_fil... | [
"cli/medperf/tests/commands/dataset/test_prepare.py::test_preparation_fails_if_statistics_is_none"
] | [
"cli/medperf/tests/commands/dataset/test_prepare.py::test_validate_fails_if_dataset_already_in_operation",
"cli/medperf/tests/commands/dataset/test_prepare.py::test_get_prep_cube_downloads_cube_file",
"cli/medperf/tests/commands/dataset/test_prepare.py::test_prepare_with_test_data_doesnt_send_reports[False]",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/mlcommons/medperf/blob/09edc70bcf7f16... |
a5fcb832e6f610c49fb6a474c2e4d47fcdcfa426 | 2025-04-01 04:06:17 | docker.io/swerebenchv2/sdv-dev-rdt:970-a5fcb83 | sdv-dev__rdt-970 | No new interfaces are introduced. | python | custom-check-github | diff --git a/rdt/transformers/utils.py b/rdt/transformers/utils.py
index 9e53662..868a3e6 100644
--- a/rdt/transformers/utils.py
+++ b/rdt/transformers/utils.py
@@ -274,6 +274,9 @@ def learn_rounding_digits(data):
if len(roundable_data) == 0:
return None
+ if roundable_data.dtype == 'object':
+ ... | Make `learn_rounding_digits` work for data of `object` dtype
Resolve #972 | `learn_rounding_digits` should work for numerical data of `object` dtype
### Problem Description
The `learn_rounding_digits` method may raise the following error when running on numerical data of dtype `object`: ```TypeError: loop of ufunc does not support argument 0 of type float which has no callable rint method```.
... | sdv-dev/RDT | diff --git a/tests/unit/transformers/test_utils.py b/tests/unit/transformers/test_utils.py
index 5c2c584..5b10d95 100644
--- a/tests/unit/transformers/test_utils.py
+++ b/tests/unit/transformers/test_utils.py
@@ -274,6 +274,18 @@ def test_learn_rounding_digits(test_data, expected_digits):
assert result == expected... | [
"tests/unit/transformers/test_utils.py::test_learn_rounding_digits_object_dtype"
] | [
"tests/unit/transformers/test_utils.py::test__cast_to_type",
"tests/unit/transformers/test_utils.py::test_strings_from_regex_literal",
"tests/unit/transformers/test_utils.py::test_strings_from_regex_digit",
"tests/unit/transformers/test_utils.py::test_strings_from_regex_repeat_literal",
"tests/unit/transfor... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
7ed738d5fec95ca7174ff27cc45b05008d4107c5 | 2020-03-05 14:55:33 | docker.io/swerebenchv2/materials-consortia-optimade-python-tools:211-7ed738d | materials-consortia__optimade-python-tools-211 | Function: AvailableApiVersion(url: str, version: str)
Location: optimade.models.baseinfo.AvailableApiVersion
Inputs:
- **url** – required string, must be a versioned base URL matching the pattern `.+/v[0-1](\.[0-9]+)*/?$` (e.g., `https://example.com/v1`, `https://example.com/optimade/v1.2`).
- **version** – required st... | python | MIT | diff --git a/openapi/index_openapi.json b/openapi/index_openapi.json
index 1c16c3ad..b7876f6e 100644
--- a/openapi/index_openapi.json
+++ b/openapi/index_openapi.json
@@ -250,12 +250,14 @@
"title": "Url",
"maxLength": 65536,
"minLength": 1,
+ "pattern": ".+/v[0-1](\\.[0... | Update tests for available_api_versions
Fixes #204
Moved some of the validation for the fields "url" and "version" to the Field.
For "url", a `regex` validator cannot be added in Field, since the type "AnyHttpUrl" takes precedence, see https://pydantic-docs.helpmanual.io/usage/schema/#unenforced-field-constraints f... | Test for AvailableApiVersion is correct for the wrong reasons
Since the `root_validator` `crosscheck_url_and_version` has been added to the model `AvailableApiVersion`, the test `test_available_api_versions()` in `tests/models/test_models.py` succeeds for the wrong reasons.
This may be fixed by also checking the err... | Materials-Consortia/optimade-python-tools | diff --git a/tests/models/test_models.py b/tests/models/test_models.py
index b159b40c..8cf973d6 100644
--- a/tests/models/test_models.py
+++ b/tests/models/test_models.py
@@ -133,36 +133,44 @@ class TestPydanticValidation(unittest.TestCase):
with self.assertRaises(ValidationError):
Referen... | [
"tests/models/test_models.py::TestPydanticValidation::test_available_api_versions"
] | [
"tests/models/test_models.py::TestPydanticValidation::test_advanced_relationships",
"tests/models/test_models.py::TestPydanticValidation::test_bad_references",
"tests/models/test_models.py::TestPydanticValidation::test_bad_structures",
"tests/models/test_models.py::TestPydanticValidation::test_good_references... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
4375dfcb6d32a466c6c8e792839da5694e3a9f5d | 2025-04-19 16:22:15 | docker.io/swerebenchv2/getmoto-moto:8828-4375dfc | getmoto__moto-8828 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/s3/utils.py b/moto/s3/utils.py
index f7a46cb4e..5a779e574 100644
--- a/moto/s3/utils.py
+++ b/moto/s3/utils.py
@@ -34,7 +34,6 @@ user_settable_fields = {
ARCHIVE_STORAGE_CLASSES = [
"GLACIER",
"DEEP_ARCHIVE",
- "GLACIER_IR",
]
STORAGE_CLASS = [
"STANDARD",
@@ -42,6 +41,8 @@ STORAG... | [S3] GLACIER_IR to storage class
Fixes #8748
GLACIER_IR moved to storage class as it supports MS Retrieval
Added EXPRESS_ONEZONE.
Test added. Format/Linted | S3 GLACIER_IR class should not be in ARCHIVE_STORAGE_CLASSES
Currently GLACIER_IR class is in ARCHIVE_STORAGE_CLASSES list, which doesn't allow to retrieve the file. This should not be the case, it's in the name - 'instant retrieval'.
[https://github.com/getmoto/moto/blob/c194259b6096a865d2c990984740008c26f8b1d9/moto/... | getmoto/moto | diff --git a/tests/test_s3/test_s3_storageclass.py b/tests/test_s3/test_s3_storageclass.py
index 4ba0b3214..04829c18d 100644
--- a/tests/test_s3/test_s3_storageclass.py
+++ b/tests/test_s3/test_s3_storageclass.py
@@ -275,3 +275,18 @@ def test_s3_get_object_from_glacier():
Bucket=bucket_name, Key="test.txt", Ob... | [
"tests/test_s3/test_s3_storageclass.py::test_s3_get_object_from_glacierir"
] | [
"tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_standard",
"tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_infrequent_access",
"tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_intelligent_tiering",
"tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_copy",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/getmoto/moto/blob/c194259b6096a865d2c... |
e97160b93a0cc6f70fffa7b570011d5768e23b0b | 2023-05-31 17:46:25 | docker.io/swerebenchv2/openmdao-openmdao:2931-e97160b | openmdao__openmdao-2931 | Method: Group.model_options(self)
Location: openmdao/core/group.py (property getter)
Inputs: None (the ``self`` instance of a Group).
Outputs: ``dict`` – the mutable ``model_options`` dictionary stored in the Problem’s metadata (accessible via ``self._problem_meta['model_options']``).
Description: Returns the probl... | python | custom-check-github | diff --git a/openmdao/core/group.py b/openmdao/core/group.py
index 932d303bf..6c2f4b3ab 100644
--- a/openmdao/core/group.py
+++ b/openmdao/core/group.py
@@ -4345,3 +4345,18 @@ class Group(System):
yield from s._ordered_comp_name_iter()
else:
yield s.pathname
+
+ @proper... | POEM_086 Implementation: model_options
### Summary
Adds Problem.model_options, allowing options to be passed down to any system in the model hierarchy.
### Related Issues
- Resolves #2930
### Backwards incompatibilities
None
### New Dependencies
None
| POEM 086 Implementation: Problem.model_options
### Desired capability or behavior.
Implements POEM_086, which adds `Problem.model_options`, allowing options to be passed down through the model tree to whichever components can accept them. Target systems for options are specified through a glob pattern.
### Associate... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_system.py b/openmdao/core/tests/test_system.py
index ba5eef81d..dab4562c6 100644
--- a/openmdao/core/tests/test_system.py
+++ b/openmdao/core/tests/test_system.py
@@ -429,6 +429,155 @@ class TestSystem(unittest.TestCase):
'units': None}
... | [
"openmdao/core/tests/test_system.py::TestSystem::test_group_modifies_model_options",
"openmdao/core/tests/test_system.py::TestSystem::test_model_options_override",
"openmdao/core/tests/test_system.py::TestSystem::test_model_options_set_all",
"openmdao/core/tests/test_system.py::TestSystem::test_model_options_... | [
"openmdao/core/tests/test_system.py::TestSystem::test_get_io_metadata",
"openmdao/core/tests/test_system.py::TestSystem::test_list_inputs_before_final_setup",
"openmdao/core/tests/test_system.py::TestSystem::test_list_inputs_outputs_is_indep_is_des_var",
"openmdao/core/tests/test_system.py::TestSystem::test_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": [],
"intent_completeness": "complete",
"pr_categories":... |
36ff520aba444d75a9bcb34e1a12661ecece9ebf | 2024-06-28 21:40:35 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3450-36ff520 | aws-cloudformation__cfn-lint-3450 | Method: ProviderSchemaManager.get_resource_schema(self, region: str, resource_type: str) → Schema | bool
Location: src/cfnlint/schema/manager.py
Inputs:
- **region** – AWS region identifier (e.g., “us-east-1”).
- **resource_type** – CloudFormation resource type string (e.g., “MyCompany::MODULE”). The method normalizes ... | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/PrimaryIdentifiers.py b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
index 4dda66b07..bf3305c44 100644
--- a/src/cfnlint/rules/resources/PrimaryIdentifiers.py
+++ b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
@@ -145,6 +145,9 @@ class PrimaryIdentifiers(CloudFormation... | Load registry schemas if type match
*Issue #, if available:*
fix #3446
*Description of changes:*
- Don't normalize resource types if we load the type from the registry schema parameter
- Update rule E3019 to not validate primary identifiers if there are none
By submitting this pull request, I confirm that yo... | E3019 failing for code module since update
### CloudFormation Lint Version
1.4.2
### What operating system are you using?
Windows/AWS Serverless
### Describe the bug
When we lint any templates with more than 1 entry for a registered code module, it triggers E3019: Primary identifiers {} should have uniqu... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/bad/resources/primary_identifiers.yaml b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
index 95be3b5f2..3aea9828c 100644
--- a/test/fixtures/templates/bad/resources/primary_identifiers.yaml
+++ b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
@@ -154... | [
"test/unit/module/schema/test_manager.py::TestManagerGetResourceSchema::test_type_normalization"
] | [
"test/unit/module/schema/test_manager.py::TestUpdateResourceSchemas::test_do_not_update_resource_spec",
"test/unit/module/schema/test_manager.py::TestUpdateResourceSchemas::test_update_resource_spec",
"test/unit/module/schema/test_manager.py::TestUpdateResourceSchemas::test_update_resource_spec_cache",
"test/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.78,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
6bfb3b335e32cb084322d86448e63752d835cbc5 | 2021-11-01 14:43:07 | docker.io/swerebenchv2/trailofbits-pip-audit:95-6bfb3b3 | trailofbits__pip-audit-95 | Method: Candidate._get_metadata_for_wheel(self)
Location: pip_audit/dependency_source/resolvelib/pypi_provider.py → class Candidate
Inputs: *self* – the Candidate instance whose ``url`` points to a wheel file. No additional arguments.
Outputs: Returns an ``EmailMessage`` (metadata) extracted from the wheel’s ``*.dist-i... | python | Apache-2.0 | diff --git a/pip_audit/dependency_source/resolvelib/pypi_provider.py b/pip_audit/dependency_source/resolvelib/pypi_provider.py
index 65c999d..34b5a37 100644
--- a/pip_audit/dependency_source/resolvelib/pypi_provider.py
+++ b/pip_audit/dependency_source/resolvelib/pypi_provider.py
@@ -32,12 +32,21 @@ PYTHON_VERSION = Ve... | pip_audit: Update state feedback when fetching metadata
Closes #89
- [x] Update state for virtual env creation.
- [x] Update state for sdist installation | Make the CLI *even more* responsive
Follow-up on #56, per https://github.com/trailofbits/pip-audit/pull/87#issuecomment-954320210:
> Regarding the feedback not being great at the beginning, in the future it might be worth reporting some extra state in the PyPIProvider. Something like:
> `Gathering metadata for sd... | trailofbits/pip-audit | diff --git a/test/dependency_source/test_resolvelib.py b/test/dependency_source/test_resolvelib.py
index 4511ba5..fff04d6 100644
--- a/test/dependency_source/test_resolvelib.py
+++ b/test/dependency_source/test_resolvelib.py
@@ -126,7 +126,9 @@ def test_resolvelib_wheel_patched(monkeypatch):
)
monkeypatch.s... | [
"test/dependency_source/test_resolvelib.py::test_resolvelib_wheel_patched",
"test/dependency_source/test_resolvelib.py::test_resolvelib_sdist_patched[tar.gz]",
"test/dependency_source/test_resolvelib.py::test_resolvelib_sdist_patched[zip]",
"test/dependency_source/test_resolvelib.py::test_resolvelib_wheel_can... | [
"test/dependency_source/test_resolvelib.py::test_resolvelib",
"test/dependency_source/test_resolvelib.py::test_resolvelib_extras",
"test/dependency_source/test_resolvelib.py::test_resolvelib_wheel_python_version",
"test/dependency_source/test_resolvelib.py::test_resolvelib_http_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": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/trailofbits/pip-audit/pull/87#issue... |
13f899e6ee1f14cef7a68cc8639774f1f75301fd | 2024-09-04 12:27:06 | docker.io/swerebenchv2/aio-libs-aiohttp:9017-13f899e | aio-libs__aiohttp-9017 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/8998.bugfix.rst b/CHANGES/8998.bugfix.rst
new file mode 100644
index 000000000..1b6b189e7
--- /dev/null
+++ b/CHANGES/8998.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed an error when trying to add a route for multiple methods with a path containing a regex pattern -- by :user:`Dreamsorcerer`.
diff --git a/aioh... | [PR #8998/875f23d5 backport][3.11] Fix resource reuse with regex paths
**This is a backport of PR #8998 as merged into master (875f23d516220a1cf849eb4a6d758edb8bff1f55).**
Fixes #7624. | Resource reuse not working for dynamic resources
### Describe the bug
I am adding the same route several times with different method to an app. This worked fine, but I needed to add `name="request"` to be able to identify which route is going to be used in a custom middleware.This ends up in an error about registeri... | aio-libs/aiohttp | diff --git a/tests/test_web_urldispatcher.py b/tests/test_web_urldispatcher.py
index 8a97acf50..7991cfe82 100644
--- a/tests/test_web_urldispatcher.py
+++ b/tests/test_web_urldispatcher.py
@@ -703,10 +703,11 @@ async def test_allow_head(aiohttp_client: AiohttpClient) -> None:
@pytest.mark.parametrize(
"path",
-... | [
"tests/test_web_urldispatcher.py::test_reuse_last_added_resource[/{a:.*}]"
] | [
"tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-index_forbidden]",
"tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-True-200-/-/-<html>\\n<head>\\n<title>Index",
"tests/test_web_urldispatcher.py::test_access_root_of_static_handler[pyloop-index_static]",
"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/aio-libs/aiohttp/blob/a4ed8c56430bd44... |
4c99cbbb9de6179c5d8ff30e0b810ce9f6d206d0 | 2024-06-27 21:32:44 | docker.io/swerebenchv2/getmoto-moto:7795-4c99cbb | getmoto__moto-7795 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index 06ff8721b..2696608fe 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -713,30 +713,30 @@ class Table(CloudFormationModel):
f"Range Key comparison but no range key found for index: {... | DynamoDB: query() should use all range keys when sorting
Fixes #7788 | DynamoDB pagination not returning correct results for GSI when table has no range key
This is very similar to #7761 and perhaps related to #7751 but I'm finding that I get incorrect results when using pagination on a DynamoDB table that does not have a range key, when querying a GSI.
To illustrate, I've tweaked the ... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb_query.py b/tests/test_dynamodb/test_dynamodb_query.py
index 5968013af..4770efd3e 100644
--- a/tests/test_dynamodb/test_dynamodb_query.py
+++ b/tests/test_dynamodb/test_dynamodb_query.py
@@ -770,3 +770,43 @@ class TestFilterExpression:
"app": "app1",
... | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination_with_string_gsi_range_no_sk",
"tests/test_dynamodb/test_dynamodb_scan.py::test_scan_gsi_pagination_with_string_gsi_range_no_sk"
] | [
"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",
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ca32690dd852c0ea4c4652b9547b6ed3f4e795c1 | 2024-06-25 15:09:31 | docker.io/swerebenchv2/matchms-matchms:686-ca32690 | matchms__matchms-686 | Function: add_losses(spectrum_in: SpectrumType, loss_mz_from: float = 0.0, loss_mz_to: float = 1000.0) → SpectrumType
Location: matchms.filtering.peak_processing.add_losses.add_losses
Inputs:
- **spectrum_in** – a `Spectrum` object (or `None`). The spectrum must contain peak data (`peaks`) and optionally a `precursor_m... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 72b7074b..32be97fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,16 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic V... | Remove None Spectra from Spectrum lists before exporting
Fixes #672
@niekdejonge could you check if this fulfills your requirements? | Handle None spectra when saving
When saving a list of spectra containing None values the saving raises an error.
Wanted behavior: None values in a list of spectra are skipped. | matchms/matchms | diff --git a/tests/exporting/test_exporting_metadata.py b/tests/exporting/test_exporting_metadata.py
index 7f7d732d..563fb616 100644
--- a/tests/exporting/test_exporting_metadata.py
+++ b/tests/exporting/test_exporting_metadata.py
@@ -1,4 +1,5 @@
import filecmp
+import json
import os
import numpy as np
import p... | [
"tests/exporting/test_exporting_metadata.py::test_get_metadata_dict",
"tests/exporting/test_exporting_metadata.py::test_get_metadata_as_array",
"tests/exporting/test_exporting_metadata.py::test_export_as_csv",
"tests/exporting/test_exporting_metadata.py::test_subset_metadata",
"tests/exporting/test_exportin... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
0486c66e4235ae6ae542f1d861ed6ac980ea3b8d | 2020-06-03 08:27:56 | docker.io/swerebenchv2/liampauling-flumine:200-0486c66 | liampauling__flumine-200 | Method: BaseFlumine.info(self)
Location: flumine/baseflumine.py → class BaseFlumine, @property def info(self) → dict
Inputs: *self* – the BaseFlumine instance; no additional parameters.
Outputs: **dict** containing runtime state information, e.g.
```python
{
"client": self.client.info,
"markets": {
... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 7f7b70a..860a60f 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,18 +3,6 @@
Release History
---------------
-1.6.3 (2020-06-03)
-+++++++++++++++++++
-
-**Improvements**
-
-- #178 Client order stream disable/enable
-- #179 Info properties
-
-**Bug Fixes**
-
-- #191 missi... | closes #179
info properties added | Flumine.info
Add `flumine.info` property which shows current state of all objects:
```python
{
"markets": {
"live_event_count": 27,
"open_market_count": 216,
"live_market_count": 217,
"total_market_count": 288,
"closed_market_count": 494
},
"client": {
... | liampauling/flumine | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 79d1968..1c30c22 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -65,8 +65,6 @@ jobs:
- name: Publish
run: |
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"... | [
"tests/test_baseflumine.py::BaseFlumineTest::test__process_close_market",
"tests/test_baseflumine.py::BaseFlumineTest::test_info",
"tests/test_clients.py::BaseClientTest::test_info",
"tests/test_streams.py::StreamsTest::test_add_client_simulated"
] | [
"tests/test_baseflumine.py::BaseFlumineTest::test__add_default_workers",
"tests/test_baseflumine.py::BaseFlumineTest::test__add_live_market",
"tests/test_baseflumine.py::BaseFlumineTest::test__process_cleared_markets",
"tests/test_baseflumine.py::BaseFlumineTest::test__process_cleared_orders",
"tests/test_b... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
63bae0e7e78e8e242e6283fb0d5190894116a237 | 2022-07-06 13:05:11 | docker.io/swerebenchv2/yukinarit-pyserde:249-63bae0e | yukinarit__pyserde-249 | Function: to_toml(obj, se: Type[Serializer] = TomlSerializer, type_check: TypeCheck = Coerce, **opts)
Location: serde/toml.py
Inputs:
- **obj** – any Python object that can be represented in TOML (e.g., scalars, dicts, lists, dataclasses).
- **se** – optional serializer class; defaults to ``TomlSerializer`` which uses ... | python | MIT | diff --git a/examples/pyproject.toml b/examples/pyproject.toml
index 3c7c673..72cba13 100644
--- a/examples/pyproject.toml
+++ b/examples/pyproject.toml
@@ -6,7 +6,6 @@ authors = ["yukinarit <yukinarit84@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.7.0"
-pyserde = {path = "../"}
-toml = "*"
+pyserde = {path... | Tomli
Closes #154 | Switch toml library to correctly handle Toml v1 standard
Please consider changing the current "toml" library dependency. It is not fully toml v1 compliant. See: https://github.com/toml-lang/toml/wiki.
I would recommend:
https://github.com/samuelcolvin/rtoml | yukinarit/pyserde | diff --git a/tests/common.py b/tests/common.py
index ebb521c..5f46b0f 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -6,7 +6,7 @@ import os
import pathlib
import sys
import uuid
-from typing import Any, Dict, Generic, List, NewType, Optional, Set, Tuple, TypeVar
+from typing import Any, Callable, Dict, Generi... | [
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]",
"tests/test_basics.... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": null,
"confidence": null,
"detected_issues": null,
"difficulty": null,
"external_urls": null,
"intent_completeness": null,
"pr_categories": null,
"reasoning": null,
"test_alignment_issues": null
},
"num_modified_files": 3,
"num_modified_lines": 14,... |
cfd399eb752ab2fb60a58dd6cc5317e2fe8ffd64 | 2025-01-02 09:59:18 | docker.io/swerebenchv2/crossgl-crosstl:249-cfd399e | crossgl__crosstl-249 | Method: HLSLLexer.tokenize(self)
Location: crosstl/backend/DirectX/DirectxLexer.py
Inputs: self – lexer instance containing the HLSL source string passed at construction time.
Outputs: List[Tuple[str, str]] – ordered list of token tuples (token_type, text) representing the tokenised source; raises SyntaxError on illeg... | python | Apache-2.0 | diff --git a/crosstl/backend/DirectX/DirectxLexer.py b/crosstl/backend/DirectX/DirectxLexer.py
index 88eadcc..a85cc9d 100644
--- a/crosstl/backend/DirectX/DirectxLexer.py
+++ b/crosstl/backend/DirectX/DirectxLexer.py
@@ -1,75 +1,11 @@
import re
+from typing import Iterator, Tuple, List
-TOKENS = [
- ("COMMENT_SIN... | Optimize HLSL Lexer Performance
### Summary
Made the HLSL lexer faster by improving how it handles large shader files. Before, it would slow down with big files, but now it should work better! ⚡
### Related Issue
Fixes #123 - HLSL lexer performance issues with large shader files
### Changes
- Made the code com... | Add translator support for `Const` type qualifier token
<!-- BOT_STATE: {"assignee": "ArchitGupta07", "assigned_at": "2024-12-26T13:57:50.024117+00:00", "reminder_sent": false, "unassigned": false} --> | CrossGL/crosstl | diff --git a/tests/test_backend/test_directx/test_codegen.py b/tests/test_backend/test_directx/test_codegen.py
index 199c4b8..505a08f 100644
--- a/tests/test_backend/test_directx/test_codegen.py
+++ b/tests/test_backend/test_directx/test_codegen.py
@@ -19,7 +19,7 @@ def generate_code(ast_node):
def tokenize_code(code:... | [
"tests/test_backend/test_directx/test_codegen.py::test_struct_codegen",
"tests/test_backend/test_directx/test_codegen.py::test_if_codegen",
"tests/test_backend/test_directx/test_codegen.py::test_for_codegen",
"tests/test_backend/test_directx/test_codegen.py::test_while_codegen",
"tests/test_backend/test_dir... | [
"tests/test_backend/test_directx/test_lexer.py::test_struct_tokenization",
"tests/test_backend/test_directx/test_lexer.py::test_if_tokenization",
"tests/test_backend/test_directx/test_lexer.py::test_for_tokenization",
"tests/test_backend/test_directx/test_lexer.py::test_else_tokenization",
"tests/test_backe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7cf7e80c5a288d153e520b1a6f61acf85513fe20 | 2025-03-20 20:05:24 | docker.io/swerebenchv2/berriai-litellm:9419-7cf7e80 | berriai__litellm-9419 | Method: BaseLLMHTTPHandler._prepare_fake_stream_request(self, stream: bool, data: dict, fake_stream: bool) → Tuple[bool, dict]
Location: litellm/llms/custom_httpx/llm_http_handler.py, class BaseLLMHTTPHandler
Inputs:
- stream (bool): original streaming flag passed to the request.
- data (dict): request payload that may... | python | custom-check-github | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0a12aa73b..a1a7e69c4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -49,7 +49,7 @@ jobs:
pip install opentelemetry-api==1.25.0
pip install opentelemetry-sdk==1.25.0
pip install opentelemetry-exporter-o... | [Feat] OpenAI o1-pro Responses API streaming support
## [Feat] OpenAI o1-pro Responses API streaming support
- o1-pro does not support streaming on responses api, this PR adds support for faking the stream for o1-pro on responses api
```python
response = litellm.responses(
model="openai/o1-pro",
inp... | [Bug]: Support for openai/o1-pro model via Responses API causes validation errors
### What happened?
Hello @krrishdholakia and @ishaan-jaff !
LiteLLM currently fails to support the [openai/o1-pro](https://platform.openai.com/docs/models/o1-pro) model, which is only available via the [OpenAI Responses API](https://pla... | BerriAI/litellm | diff --git a/tests/litellm/llms/custom_httpx/test_llm_http_handler.py b/tests/litellm/llms/custom_httpx/test_llm_http_handler.py
new file mode 100644
index 000000000..26fc18de1
--- /dev/null
+++ b/tests/litellm/llms/custom_httpx/test_llm_http_handler.py
@@ -0,0 +1,77 @@
+import io
+import os
+import pathlib
+import ssl... | [
"tests/litellm/llms/custom_httpx/test_llm_http_handler.py::test_prepare_fake_stream_request"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://platform.openai.com/docs/models/o1-pro",
... |
a89d4143883f81ff0d7299057ffae855aa303e78 | 2021-10-06 01:24:00 | docker.io/swerebenchv2/more-itertools-more-itertools:566-a89d414 | more-itertools__more-itertools-566 | Function: before_and_after(predicate, it)
Location: more_itertools.recipes.before_and_after
Inputs:
- predicate: Callable[[T], bool] – a function that returns True/False for each element.
- it: Iterable[T] – the source iterable to be split.
Outputs: Tuple[Iterator[T], Iterator[T]] – a pair of iterators; the first yi... | python | MIT | diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml
index b37aad4..387a2a4 100644
--- a/.github/workflows/python-app.yml
+++ b/.github/workflows/python-app.yml
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.6, 3.7, 3.8, 3.9.0, 3.1... | Add itertools recipes from 3.10 docs
This PR adds the new recipes from the 3.10 docs:
* before_and_after
* triplewise
* sliding_window
Closes #562, #563, and #564 | New recipe: before_and_after
This issue is to add the new `before_and_after` function from the 3.10 [itertools docs](https://github.com/python/cpython/blame/3.10/Doc/library/itertools.rst#L858).
Needed:
* The implementation from the recipe
* Type stub
* Tests | more-itertools/more-itertools | diff --git a/tests/test_recipes.py b/tests/test_recipes.py
index b6ee67a..be40995 100644
--- a/tests/test_recipes.py
+++ b/tests/test_recipes.py
@@ -709,3 +709,57 @@ class Convolvetests(TestCase):
actual = mi.take(5, mi.convolve(signal, kernel))
expected = [0, 1, 1, 1, 1]
self.assertEqual(act... | [
"tests/test_recipes.py::BeforeAndAfterTests::test_empty",
"tests/test_recipes.py::BeforeAndAfterTests::test_never_false",
"tests/test_recipes.py::BeforeAndAfterTests::test_never_true",
"tests/test_recipes.py::BeforeAndAfterTests::test_some_true"
] | [
"tests/test_recipes.py::TakeTests::test_negative_take",
"tests/test_recipes.py::TakeTests::test_null_take",
"tests/test_recipes.py::TakeTests::test_simple_take",
"tests/test_recipes.py::TakeTests::test_take_too_much",
"tests/test_recipes.py::TabulateTests::test_count",
"tests/test_recipes.py::TabulateTest... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/python/cpython/blame/3.10/Doc/libra... |
f59e178f272003ba39694d68390611e118d8eaa9 | 2023-10-13 19:07:22 | docker.io/swerebenchv2/getmoto-moto:6913-f59e178 | getmoto__moto-6913 | Method: IoTBackend.update_thing(self, thing_name: str, attribute_payload: dict)
Location: moto/iot/models.py
Inputs:
- **thing_name** (str): The name of the IoT thing to modify.
- **attribute_payload** (dict): Must contain an `"attributes"` mapping of attribute keys to values. May include a `"merge"` boolean flag (defa... | python | Apache-2.0 | diff --git a/moto/iot/models.py b/moto/iot/models.py
index 14289a00d..1ebce5eaa 100644
--- a/moto/iot/models.py
+++ b/moto/iot/models.py
@@ -883,7 +883,7 @@ class IoTBackend(BaseBackend):
if not do_merge:
thing.attributes = attributes
else:
- thing.attributes.up... | SESv2 send_email(): Ensure email-body is persisted
Fixes #6909 | SESV2 send_email saves wrong body in ses_backend
When using sesv2 send_email, the email saved in the ses_backend is not what it should be. The body of the email is replaced by the subject.
The issue comes from moto/sesv2/responses.py line 45-50:
```
message = self.sesv2_backend.send_email( # type: ignore
sou... | getmoto/moto | diff --git a/tests/test_iot/test_iot_things.py b/tests/test_iot/test_iot_things.py
index 65f605ea5..773bdab3e 100644
--- a/tests/test_iot/test_iot_things.py
+++ b/tests/test_iot/test_iot_things.py
@@ -54,6 +54,15 @@ def test_update_thing():
assert res["things"][0]["thingArn"] is not None
assert res["things"][... | [
"tests/test_iot/test_iot_things.py::test_update_thing",
"tests/test_sesv2/test_sesv2.py::test_send_email"
] | [
"tests/test_iot/test_iot_things.py::test_create_thing",
"tests/test_iot/test_iot_things.py::test_create_thing_with_type",
"tests/test_iot/test_iot_things.py::test_describe_thing",
"tests/test_iot/test_iot_things.py::test_delete_thing",
"tests/test_iot/test_iot_things.py::test_list_things_with_next_token",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.94,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
aa7b06836a78096220a977a85c9ecd6e368fcec4 | 2022-11-19 02:19:35 | docker.io/swerebenchv2/cuthbertlab-music21:1479-aa7b068 | cuthbertlab__music21-1479 | Method: MeasureExporter.moveForward(self, byOffset: OffsetQL) Location: music21/musicxml/m21ToXml.py
Inputs: byOffset – a numeric offset (OffsetQL) indicating how many quarter‑length units to advance within the current measure.
Outputs: None directly; appends a <forward> element with the appropriate duration (in divisi... | python | BSD-3-Clause | diff --git a/music21/common/enums.py b/music21/common/enums.py
index ea6f571c7..cc074e129 100644
--- a/music21/common/enums.py
+++ b/music21/common/enums.py
@@ -197,6 +197,24 @@ class GatherSpanners(BooleanEnum):
COMPLETE_ONLY = 'completeOnly'
+class AppendSpanners(StrEnum):
+ '''
+ An enumeration for ho... | Implement new spanner.SpannerAnchor class
Fixes #1402 | I need a way to have a Spanner (e.g. Crescendo) start or end with a timestamp instead of a note/chord/rest
**Motivation**
Several file formats (MEI, Humdrum) often describe Crescendos/Diminuendos as objects with duration, rather than associating them directly with notes in the same staff. If there is no note in the s... | cuthbertLab/music21 | diff --git a/music21/musicxml/test_m21ToXml.py b/music21/musicxml/test_m21ToXml.py
index ad7f0d770..f329daecc 100644
--- a/music21/musicxml/test_m21ToXml.py
+++ b/music21/musicxml/test_m21ToXml.py
@@ -36,6 +36,14 @@ from music21.musicxml.m21ToXml import (
MusicXMLWarning, MusicXMLExportException
)
+def stripInn... | [
"music21/musicxml/test_m21ToXml.py::Test::testSpannerAnchors"
] | [
"music21/musicxml/test_m21ToXml.py::Test::testArpeggioMarkSpanners",
"music21/musicxml/test_m21ToXml.py::Test::testArpeggioMarkSpannersNonArpeggiate",
"music21/musicxml/test_m21ToXml.py::Test::testArpeggios",
"music21/musicxml/test_m21ToXml.py::Test::testArticulationSpecialCases",
"music21/musicxml/test_m21... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
42573ef0cb038ce3125a32a5abb9cfbe682d44b6 | 2021-10-29 10:55:38 | docker.io/swerebenchv2/liampauling-flumine:520-42573ef | liampauling__flumine-520 | Method: SimulatedDateTime.reset_real_datetime(self)
Location: flumine/backtest/utils.py
Inputs: None (relies on the instance attribute `_real_datetime` which must be a datetime module‑like object with `utcnow()` method).
Outputs: None. Side‑effect: sets `flumine.backtest.utils.config.current_time` to the current UTC ti... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 728993f..ff573cf 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,6 +3,21 @@
Release History
---------------
+1.20.8 (2021-11-01)
++++++++++++++++++++
+
+**Improvements**
+
+- Handle list of market filters in strategy
+
+**Bug Fixes**
+
+- #519 reset real datetime added ... | reset real datetime added to allow s3 download (RequestTimeTooSkewed)
close #519 | Backtesting with multiple s3 filepaths results in RequestTimeTooSkewed error
Even when using context manager e.g.
`with mock.patch("builtins.open", smart_open.open):
with framework.simulated_datetime.real_time():
framework.add_strategy(strategy)
framework.run()`
the backtest results in errors. The... | liampauling/flumine | diff --git a/flumine/backtest/backtest.py b/flumine/backtest/backtest.py
index 38441c2..8f34813 100644
--- a/flumine/backtest/backtest.py
+++ b/flumine/backtest/backtest.py
@@ -55,6 +55,7 @@ class FlumineBacktest(BaseFlumine):
"markets": [s.market_filter for s in streams],
... | [
"tests/test_streams.py::StreamsTest::test_add_stream_multi"
] | [
"tests/test_backtest_utils.py::NewDateTimeTest::test_new_date_time",
"tests/test_backtest_utils.py::SimulatedDateTimeTest::test_call",
"tests/test_backtest_utils.py::SimulatedDateTimeTest::test_context_manager",
"tests/test_backtest_utils.py::SimulatedDateTimeTest::test_init",
"tests/test_backtest_utils.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.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [... |
bc7ace58c872d527475c09345f89579ff82e4c5d | 2022-05-08 20:57:34 | docker.io/swerebenchv2/networkx-networkx:5616-bc7ace5 | networkx__networkx-5616 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index eb216dce5..351e761bf 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -13,9 +13,9 @@ jobs:
matrix:
python-version: [3.8]
steps:
- - uses: actions/checkout@v2
+ - uses: actions... | Disallow isolated nodes for Eulerian Path
Fix #5594. | Inconsistent implementation of Euler algorithms
According to my research, having an Euler Circuit and/or Euler Path does not require a graph to be connected. Instead, it is enough that all of its vertices **with nonzero degree** belong to a single connected component. Nevertheless, there are some resources which states... | networkx/networkx | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6dd1dad0c..6a9d286e5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,9 +11,9 @@ jobs:
os: [ubuntu, macos, windows]
python-version: ['pypy-3.8', '3.11-dev']
steps:
- - uses: actions/checko... | [
"networkx/algorithms/tests/test_euler.py::TestHasEulerianPath::test_has_eulerian_path_directed_graph",
"networkx/classes/tests/test_digraph.py::TestDiGraph::test_attributes_cached",
"networkx/classes/tests/test_digraph.py::TestDiGraph::test_di_attributes_cached",
"networkx/classes/tests/test_graph.py::TestGra... | [
"networkx/algorithms/tests/test_euler.py::TestIsEulerian::test_is_eulerian",
"networkx/algorithms/tests/test_euler.py::TestIsEulerian::test_is_eulerian2",
"networkx/algorithms/tests/test_euler.py::TestEulerianCircuit::test_eulerian_circuit_cycle",
"networkx/algorithms/tests/test_euler.py::TestEulerianCircuit:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7dff808b4f635d8494ee13046f947693f8cc81fd | 2023-03-31 09:46:05 | docker.io/swerebenchv2/brazilian-utils-brutils-python:52-7dff808 | brazilian-utils__brutils-python-52 | Function: format_cnpj(cnpj: str)
Location: brutils/cnpj.py
Inputs: cnpj – a string containing exactly 14 numeric characters representing a CNPJ; any non‑numeric character or length different from 14 results in a `None` return.
Outputs: Returns the CNPJ formatted as “00.000.000/0000‑00” (standard visual format) when ... | python | MIT | diff --git a/README.md b/README.md
index f64b346..a276ce4 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,8 @@ False
```
>>> cpf.display('00011122233')
'000.111.222-33'
->>> cnpj.display('00111222000100')
+>>> from brutils import format_cnpj
+>>> format_cnpj('00111222000100')
'00.111.222/0001-00'
```
diff --... | adding format_cnpj method
closes #39 | Add formatCNPJ method
In order to make it with the same API as [js brutils](https://brazilian-utils.com.br/#/utilities?id=isvalidcnpj) | brazilian-utils/brutils-python | diff --git a/tests/test_cnpj.py b/tests/test_cnpj.py
index ac7b757..78e18b9 100644
--- a/tests/test_cnpj.py
+++ b/tests/test_cnpj.py
@@ -16,6 +16,7 @@ from brutils.cnpj import (
validate,
generate,
is_valid,
+ format_cnpj,
)
from unittest import TestCase, main
@@ -35,6 +36,12 @@ class CNPJ(TestCas... | [
"tests/test_cnpj.py::CNPJ::test_checksum",
"tests/test_cnpj.py::CNPJ::test_display",
"tests/test_cnpj.py::CNPJ::test_format_cnpj",
"tests/test_cnpj.py::CNPJ::test_generate",
"tests/test_cnpj.py::CNPJ::test_hashdigit",
"tests/test_cnpj.py::CNPJ::test_is_valid",
"tests/test_cnpj.py::CNPJ::test_sieve",
"... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://brazilian-utils.com.br/#/utilities?id=isvalidcnp... |
21902b242849b54d9657dec0e359e67610690c01 | 2022-12-29 16:09:54 | docker.io/swerebenchv2/jsonpickle-jsonpickle:434-21902b2 | jsonpickle__jsonpickle-434 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index c179967..5f7cf20 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,9 @@
+v3.0.2
+======
+ * Properly raise warning if a custom pickling handler returns None. (#433)
+ * Fix issue with serialization of certain sklearn objects breaking when
+ the numpy handler w... | Fix #431
This issue was caused by the numpy handler assuming that a certain object was always a numpy array, even though in some cases it wasn't. Add a check and coercion to validate the assumption. | Numpy handlers does not handle views correctly
When using the numpy handler, some classes cannot be serialized. One example is the LogisticRegression class in scikit-learn>=0.24:
[the following example uses scikit-learn==0.24 and the latest jsonpickle==3.0.1, although previous versions of jsonpickle have the same is... | jsonpickle/jsonpickle | diff --git a/tests/sklearn_test.py b/tests/sklearn_test.py
index 3eeab99..864cc29 100644
--- a/tests/sklearn_test.py
+++ b/tests/sklearn_test.py
@@ -4,6 +4,8 @@ import pytest
try:
import numpy as np
+ import sklearn.datasets
+ from sklearn.linear_model import LogisticRegression
from sklearn.tree impo... | [
"tests/sklearn_test.py::test_nested_array_serialization"
] | [
"tests/sklearn_test.py::test_decision_tree"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
cf5ef7e085e958fa6fb5e58b25065cfcfb3ae223 | 2023-12-28 12:18:00 | docker.io/swerebenchv2/marketsquare-robotframework-robocop:1030-cf5ef7e | marketsquare__robotframework-robocop-1030 | Method: RuleAcceptance.check_rule(self, expected_file: Optional[str] = None, config: Optional[str] = None, rule: Optional[str] = None, src_files: Optional[List] = None, target_version: Optional[str] = None, issue_format: str = "default", deprecated: bool = False)
Location: tests/atest/utils/__init__.py → class RuleAcce... | python | Apache-2.0 | diff --git a/docs/releasenotes/unreleased/rules.3.rst b/docs/releasenotes/unreleased/rules.3.rst
new file mode 100644
index 0000000..92d3f00
--- /dev/null
+++ b/docs/releasenotes/unreleased/rules.3.rst
@@ -0,0 +1,6 @@
+Deprecate unnecessary-string-conversion rule (#986)
+------------------------------------------------... | Deprecate unnecessary-string-conversion rule
Closes #986 | [Bug] Rule unnecessary-string-conversion is inherently bad
### What happened?
Hi,
`"${status}" == "200"` and `$status == 200` give different results in many cases and you can never know in which case they are equivalent. The situation is even worse when there is a less/greater-than operation instead of the equiva... | MarketSquare/robotframework-robocop | diff --git a/tests/atest/rules/misc/unnecessary_string_conversion/expected_output.txt b/tests/atest/rules/misc/unnecessary_string_conversion/expected_output.txt
deleted file mode 100644
index ce02497..0000000
--- a/tests/atest/rules/misc/unnecessary_string_conversion/expected_output.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-... | [
"tests/atest/rules/misc/unnecessary_string_conversion/test_rule.py::TestRuleAcceptance::test_rule"
] | [
"tests/e2e/test_e2e.py::TestE2E::test_run_all_checkers_not_cli",
"tests/e2e/test_e2e.py::TestE2E::test_use_circular_argument_file",
"tests/e2e/test_e2e.py::TestE2E::test_override_severity",
"tests/e2e/test_e2e.py::TestTranslatedRobot::test_translated_default_lang",
"tests/e2e/test_e2e.py::TestTranslatedRobo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
833c7ba78992da5477a1fce0bd95c9bbb4502d49 | 2024-06-10 16:46:44 | docker.io/swerebenchv2/google-jax:21774-833c7ba | google__jax-21774 | Function: jax.tree.all(tree: Any, *, is_leaf: Callable[[Any], bool] | None = None) -> bool
Location: jax/_src/tree.py
Inputs:
- tree: Any – the pytree whose leaves are evaluated.
- is_leaf (optional): Callable[[Any], bool] – a predicate that, when true for an object, stops flattening and treats the object as a leaf... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e7823a3ee..c3b306b4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ Remember to align the itemized text with the first line of an item within a list
`from jax.experimental.export import export`, and instead you should use
`from jax.experimental im... | tree_all: add support for is_leaf
Fixes #21756
It looks like all other APIs that are based on `tree_leaves` already support and forward the `is_leaf` argument. For consistency, `tree_all` probably should as well.
I also more broadly improved test coverage of these parameters. | Allow for `is_leaf` in tree_all
`tree_all` just calls the tree leaves function, which does allow for a `is_leaf` function. It seems logical to allow for tree all to pass this information along (since the user might define a custom object which overrides the bool and want that to be considered). If this is something of ... | google/jax | diff --git a/tests/pjit_test.py b/tests/pjit_test.py
index e19f89539..2a75a2719 100644
--- a/tests/pjit_test.py
+++ b/tests/pjit_test.py
@@ -1564,7 +1564,7 @@ class AutoShardingPjitTest(jtu.JaxTestCase):
def test_xla_arr_sharding_mismatch(self):
global_mesh = jtu.create_global_mesh((2, 2), ('x', 'y'))
- gl... | [
"tests/tree_util_test.py::TreeAliasTest::test_tree_all_is_leaf"
] | [
"tests/pjit_test.py::PJitTest::testAutodiffCache",
"tests/pjit_test.py::PJitTest::testAutodiff_2",
"tests/pjit_test.py::PJitTest::testAutodiff_2x1",
"tests/pjit_test.py::PJitTest::testAutodiff_2x2",
"tests/pjit_test.py::PJitTest::testBasic1D",
"tests/pjit_test.py::PJitTest::testBasic1DWithMeshContextManag... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1dea5316cc61ecada059bcedbbad0b5854ecbf90 | 2022-11-29 20:52:47 | docker.io/swerebenchv2/openmdao-openmdao:2724-1dea531 | openmdao__openmdao-2724 | Function: SellarDerivativesGrouped()
Location: openmdao.test_suite.components.sellar
Inputs: (none) – instantiated with no arguments.
Outputs: <class 'openmdao.core.group.Group'> instance that builds the SellarDerivatives problem and exposes a nested Group attribute ``mda``.
Description: Constructs a grouped version of... | python | custom-check-github | diff --git a/openmdao/docs/openmdao_book/_config.yml b/openmdao/docs/openmdao_book/_config.yml
index 86cf59e1f..de5b31175 100644
--- a/openmdao/docs/openmdao_book/_config.yml
+++ b/openmdao/docs/openmdao_book/_config.yml
@@ -60,6 +60,8 @@ sphinx:
html_theme_path: ['.'] # make sphinx search for themes in current di... | Raise an exception if a solver is assigned to more than one System
### Summary
Add check inside of Solver `_setup_solvers` that will raise an exception if `_system weakref` has already been set to a different System.
### Related Issues
- Resolves #2665
### Backwards incompatibilities
None
### New Depend... | Don't allow a solver to be used in more than one System
### Description
Currently we don't check inside of `_setup_solvers` whether or not the `self._system` weakref has already been set. If it has, this should raise an exception.
### Example
```python
This issue can be demonstrated by setting the `nonlinear_solver... | OpenMDAO/OpenMDAO | diff --git a/openmdao/solvers/tests/test_solver_features.py b/openmdao/solvers/tests/test_solver_features.py
index dd39b6fbe..000bf750d 100644
--- a/openmdao/solvers/tests/test_solver_features.py
+++ b/openmdao/solvers/tests/test_solver_features.py
@@ -7,8 +7,8 @@ import numpy as np
import openmdao.api as om
from o... | [
"openmdao/solvers/tests/test_solver_features.py::TestSolverFeatures::test_reuse_solver"
] | [
"openmdao/solvers/tests/test_solver_features.py::TestSolverFeatures::test_specify_subgroup_solvers"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
2823933ecd094172c1b8de2a3ebf19d8c4287cb6 | 2025-05-13 18:39:56 | docker.io/swerebenchv2/collective-icalendar:834-2823933 | collective__icalendar-834 | Method: UIDGenerator.rnd_string(length=16)
Location: src/icalendar/tools.py
Inputs:
- **length** (int, optional, default = 16): length of the random string to generate.
Outputs:
- **str**: a random alphanumeric string of the requested length.
The call also triggers a **DeprecationWarning** (category `WillBeRemove... | python | custom-check-github | diff --git a/CHANGES.rst b/CHANGES.rst
index 132e594..f305802 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -12,7 +12,7 @@ We use `Semantic Versioning <https://semver.org>`_.
Minor changes:
-- Deprecate the UIDGenerator class. See `Issue 816 <https://github.com/collective/icalendar/issues/816>`.
+- Deprecate ``ica... | Deprecate the UID Generator
This fixes #816
<!-- readthedocs-preview icalendar start -->
----
📚 Documentation preview 📚: https://icalendar--834.org.readthedocs.build/
<!-- readthedocs-preview icalendar end --> | Use Python's UID generator
Currently, we have our own implementation for UID: [icalendar.tools.UIDGenerator](https://icalendar.readthedocs.io/en/latest/api.html#icalendar.tools.UIDGenerator). This is not really needed any more.
- [x] remove the use of this class internally
- [x] adjust the documentation
- [x] use the ... | collective/icalendar | diff --git a/src/icalendar/tests/test_unit_tools.py b/src/icalendar/tests/test_unit_tools.py
index e0d8db4..2b70a13 100644
--- a/src/icalendar/tests/test_unit_tools.py
+++ b/src/icalendar/tests/test_unit_tools.py
@@ -79,3 +79,10 @@ def test_uid_generator_issue_345(args, kw, split, expected):
"""
uid = UIDGene... | [
"src/icalendar/tests/test_unit_tools.py::test_warning"
] | [
"src/icalendar/tests/test_unit_tools.py::TestTools::test_tools_UIDGenerator",
"src/icalendar/tests/test_unit_tools.py::test_uid_generator_issue_345[@-example.com-args0-kw0]",
"src/icalendar/tests/test_unit_tools.py::test_uid_generator_issue_345[@-example.com-args1-kw1]",
"src/icalendar/tests/test_unit_tools.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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://icalendar.readthedocs.io/en/latest/api.html#ic... |
715856fdb69deceba4d54afe4ccf3f7ad304c5ec | 2020-10-17 20:17:34 | docker.io/swerebenchv2/xknx-xknx:469-715856f | xknx__xknx-469 | Method: Sensor.__init__(self, xknx: XKNX, name: str, group_address_state: str | None = None, sync_state: bool = True, always_callback: bool = False, value_type: str | None = None, device_updated_cb: Callable | None = None)
Location: xknx/devices/sensor.py
Inputs:
- xknx – XKNX instance managing the KNX bus.
- name –... | python | MIT | diff --git a/changelog.md b/changelog.md
index 97c850a5..7fdd1b95 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,6 +4,7 @@
### Devices
+- Sensor: add `always_callback` option
- ClimateMode: Refactor climate modes in operation_mode and controller_mode, also fixes a bug for binary operation modes where the mode... | Add always_callback option to Sensor
<!--
You are awesome! Thanks for contributing to our project!
Please, DO NOT DELETE ANY TEXT from this template!.
-->
## Description
<!--
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
List any depe... | Feature request: add the "ignore_internal_state" property to "Sensors" the same way it works already for "Binary Sensors"
Hi,
In the last release the property "ignore_internal_state" was added to the knx "binary sensor", and it would be great to have this property for knx "sensors" as well.
For example I am using... | XKNX/xknx | diff --git a/test/devices_tests/sensor_test.py b/test/devices_tests/sensor_test.py
index 2043eb3c..5875ea4e 100644
--- a/test/devices_tests/sensor_test.py
+++ b/test/devices_tests/sensor_test.py
@@ -47,6 +47,55 @@ class TestSensor(unittest.TestCase):
self.assertEqual(sensor.unit_of_measurement(), "K")
... | [
"test/devices_tests/sensor_test.py::TestSensor::test_always_callback_sensor"
] | [
"test/devices_tests/sensor_test.py::TestSensor::test_has_group_address",
"test/devices_tests/sensor_test.py::TestSensor::test_process",
"test/devices_tests/sensor_test.py::TestSensor::test_process_callback",
"test/devices_tests/sensor_test.py::TestSensor::test_str_absolute_temperature",
"test/devices_tests/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
8fee573db08e1db57c4fdafdc94544679fec481b | 2020-04-24 16:56:19 | docker.io/swerebenchv2/wtforms-wtforms:595-8fee573 | wtforms__wtforms-595 | Attribute: Form.form_errors
Location: Initialized in BaseForm.__init__ (self.form_errors = [])
Inputs: none (starts as empty list)
Outputs: a mutable list of strings representing form‑level validation errors
Description: Holds errors that are not tied to any specific field; user code can append messages here (e.g., in ... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index ad5b983..5a4f498 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -25,6 +25,7 @@ Unreleased
:pr:`608`
- Choices shortcut for :class:`~fields.core.SelectMultipleField`.
:issue:`603` :pr:`605`
+- Forms can have form-level errors. :issue:`55` :pr:`595`
Version ... | Form-level errors
Fixes #55
Adds a `Form.form_errors` list attribute to store form level errors. The content of `form_errors` is available in `Form.errors[None]`.
I have no strong ideas about `Form.errors[None]`, or `Form.errors["__all__"]`, even if I prefer a keyword such as `None` for such a special key. `__al... | [feature request/question] Form wise errors
On form validation I want to raise errors such as: "at least a field must be filled" which do not belong to one field, but to the form as a whole.
Would it be possible to raise have them on the form? (I'm currently using a hidden field and validating these kind of errors on ... | wtforms/wtforms | diff --git a/tests/test_fields.py b/tests/test_fields.py
index 15fb5e1..cde7945 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -1154,7 +1154,7 @@ class TestHTML5Fields:
data = form_input
if expected_html.startswith("type="):
expected_html = '<input id="{}" name="{}" {... | [
"tests/test_form.py::TestForm::test_form_level_errors"
] | [
"tests/test_fields.py::TestDefaults::test",
"tests/test_fields.py::TestLabel::test",
"tests/test_fields.py::TestLabel::test_auto_label",
"tests/test_fields.py::TestLabel::test_override_for",
"tests/test_fields.py::TestLabel::test_escaped_label_text",
"tests/test_fields.py::TestFlags::test_existing_values"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
92b994f76ec3687e97839c7ea225bf556a587a98 | 2023-03-06 18:41:38 | docker.io/swerebenchv2/pallets-werkzeug:2614-92b994f | pallets__werkzeug-2614 | Function: parse_options_header(value: Optional[str])
Location: src/werkzeug/http.py
Inputs:
- **value**: a header string (or None) containing a media‑type followed by semicolon‑separated `key=value` parameters. The function tolerates missing or malformed parts and treats the entire input as empty when `value` is None.... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 328fa6f4..87148b10 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -32,6 +32,9 @@ Unreleased
- When using a Unix socket for the development server, the path can start with a dot.
:issue:`2595`
- Increase default work factor for PBKDF2 to 600,000 iterations. :issue:`... | refactor `parse_options_header`
Based on the implementation @tronic shared in #1628, I've refactored `parse_options_header`. The new implementation is 2-3 times faster. The parser now does an initial pass for valid `; key=value` parts, then does two simpler checks for continuation and charset markers on each key.
Th... | parse_options_header quote handling
I wrote a new version of cgi.parse_header / werkzeug.parse_options_header with better handling for various special cases that unfortunately occur. The new implementation is also twice faster than the two others.
````python
import re
import typing
Options = typing.Dict[str, st... | pallets/werkzeug | diff --git a/tests/test_http.py b/tests/test_http.py
index 61940a17..9c6ff6d2 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -274,68 +274,63 @@ class TestHTTPUtility:
http.remove_hop_by_hop_headers(headers2)
assert headers2 == datastructures.Headers([("Foo", "bar")])
- def test_parse... | [
"tests/test_http.py::TestHTTPUtility::test_parse_options_header[v;",
"tests/test_http.py::TestHTTPUtility::test_parse_options_header[v;a-expect2]",
"tests/test_http.py::TestHTTPUtility::test_parse_options_header[v;a=-expect3]",
"tests/test_http.py::TestHTTPUtility::test_parse_options_header[v;a=\\xb5-expect6]... | [
"tests/test_http.py::TestHTTPUtility::test_accept",
"tests/test_http.py::TestHTTPUtility::test_mime_accept",
"tests/test_http.py::TestHTTPUtility::test_accept_matches",
"tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity",
"tests/test_http.py::TestHTTPUtility::test_charset_accept",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
3cdd3e8f2c5a945c01a17971896d489e89ab2d79 | 2024-10-25 08:27:50 | docker.io/swerebenchv2/aeye-lab-pymovements:884-3cdd3e8 | aeye-lab__pymovements-884 | Function: from_asc(file: str, patterns: dict | str | None = None, experiment: Experiment | None = None, add_columns: dict[str, str] | None = None, column_schema_overrides: dict[str, Any] | None = None) → GazeDataFrame
Location: src/pymovements/gaze/io.py
Inputs:
- **file** – path to an ASC eye‑tracker file.
- **pattern... | python | MIT | diff --git a/src/pymovements/__init__.py b/src/pymovements/__init__.py
index 8cf4f93..cb204c4 100644
--- a/src/pymovements/__init__.py
+++ b/src/pymovements/__init__.py
@@ -38,6 +38,7 @@ from pymovements.events import EventDataFrame
from pymovements.events import EventGazeProcessor
from pymovements.events import Even... | feat: Store metadata from ASC in experiment metadata
## Description
Put the metadata parsed in `parse_eyelink()` into the `Experiment`, `Screen`, and `EyeTracker` classes, and check for mismatches compared to user-provided metadata. Create additional attributes for metadata that is not exposed yet (e.g., calibration... | Metadata Documentation
## Description of the problem
Currently, the metadata structure we receive after recording is poorly organized, making it difficult to interpret the various pieces of information.
## Description of a solution
We aim to document this information in a clear, structured format to ensure it is... | aeye-lab/pymovements | diff --git a/tests/functional/gaze_file_processing_test.py b/tests/functional/gaze_file_processing_test.py
index 7a0e844..88e57c5 100644
--- a/tests/functional/gaze_file_processing_test.py
+++ b/tests/functional/gaze_file_processing_test.py
@@ -71,7 +71,7 @@ def fixture_gaze_init_kwargs(request):
},
'... | [
"tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[csv_monocular]",
"tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[csv_binocular]",
"tests/functional/gaze_file_processing_test.py::test_gaze_file_processing[ipc_monocular]",
"tests/functional/gaze_file_processin... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
97779d0269b83b3568086e5af54ace0c20d58391 | 2023-03-05 08:08:16 | docker.io/swerebenchv2/apiflask-apiflask:411-97779d0 | apiflask__apiflask-411 | Method: HTTPBasicAuth.__init__(self, scheme='Basic', realm=None, description=None, security_scheme_name=None)
Location: src/apiflask/security.py, class HTTPBasicAuth
Inputs:
- **scheme** (str, default `'Basic'`): Authentication scheme identifier sent in the `Authorization` header.
- **realm** (Optional[str]): Realm st... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index 83ef929..4f44e08 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,10 +1,13 @@
## Version 1.3.0
+- Add `scurity_scheme_name` for `HTTPBasicAuth` and `HTTPTokenAuth` to define custom
+OpenAPI security scheme name ([issue #410][issue_410]).
- Add config `SPEC_PROCESSOR_PASS_O... | Add `security_scheme_name` to customize OpenAPI security key
Example usage:
```py
auth = HTTPTokenAuth(header="X-Example-Key", security_scheme_name="api_token")
```
Generated spec:
```json
"securitySchemes":{"api_token":{"in":"header","name":"X-Example-Key","type":"apiKey"}}
```
fixes #410
<!--
If n... | Specifying a security scheme always includes a default
<!--
This issue tracker is a tool to address bugs in APIFlask itself. Please use
GitHub Discussion or Stack Overflow for questions about your own code.
Replace this comment with a clear outline of what the bug is.
-->
When overriding the `app.security_scheme... | apiflask/apiflask | diff --git a/tests/test_openapi_security.py b/tests/test_openapi_security.py
index cc5fe24..818ad79 100644
--- a/tests/test_openapi_security.py
+++ b/tests/test_openapi_security.py
@@ -60,6 +60,39 @@ def test_apikey_auth_security_scheme(app, client):
}
+def test_custom_security_scheme_name(app, client):
+ b... | [
"tests/test_openapi_security.py::test_custom_security_scheme_name"
] | [
"tests/test_openapi_security.py::test_httpbasicauth_security_scheme",
"tests/test_openapi_security.py::test_httptokenauth_security_scheme",
"tests/test_openapi_security.py::test_apikey_auth_security_scheme",
"tests/test_openapi_security.py::test_unknown_auth_security_scheme",
"tests/test_openapi_security.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": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://apiflask.com/authentication/"
],
"inte... |
eb81991eadff57ebeaa7df712ddbbc2236427a16 | 2025-06-27 20:41:15 | docker.io/swerebenchv2/narwhals-dev-narwhals:2747-eb81991 | narwhals-dev__narwhals-2747 | Function: SeriesStringNamespace.to_date(self, format: str | None = None) -> SeriesT
Location: narwhals/series_str.py
Inputs:
- `format` (optional): a date format string compatible with the backend, or `None` to let the backend infer the format.
Outputs:
- Returns a new Series with dtype `Date` where each string eleme... | python | MIT | diff --git a/docs/api-reference/expr_str.md b/docs/api-reference/expr_str.md
index 9fd31704..fbd50d48 100644
--- a/docs/api-reference/expr_str.md
+++ b/docs/api-reference/expr_str.md
@@ -15,6 +15,7 @@
- starts_with
- strip_chars
- tail
+ - to_date
- to_datetime
- to_l... | feat: Add `Expr|Series.str.to_date`
## What type of PR is this? (check all applicable)
- [ ] 💾 Refactor
- [x] ✨ Feature
- [ ] 🐛 Bug Fix
- [ ] 🔧 Optimization
- [ ] 📝 Documentation
- [ ] ✅ Test
- [ ] 🐳 Other
## Related issues
- Closes #2728
## Checklist
- [x] Code follows style guide (ruff)
- ... | [Enh]: Ability to convert string to date
### 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?
There is ability to convert string into datetime, however, to date is missing, request is to add th... | narwhals-dev/narwhals | diff --git a/tests/expr_and_series/str/to_date_test.py b/tests/expr_and_series/str/to_date_test.py
new file mode 100644
index 00000000..d1f7558c
--- /dev/null
+++ b/tests/expr_and_series/str/to_date_test.py
@@ -0,0 +1,92 @@
+from __future__ import annotations
+
+from datetime import date
+from typing import TYPE_CHECKI... | [
"tests/expr_and_series/str/to_date_test.py::test_to_date_infer_fmt_expr[pyarrow]",
"tests/expr_and_series/str/to_date_test.py::test_to_date_with_fmt_expr[pyarrow]",
"tests/expr_and_series/str/to_date_test.py::test_to_date_with_fmt_series[pandas[pyarrow]]",
"tests/expr_and_series/str/to_date_test.py::test_to_d... | [
"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[pandas]",
"tests/expr_and_series/str/zfill_test.py::test_str_zfill_series[pandas]",
"tests/expr_and_series/str/zfill_test.py::test_str_zfill[pyarrow]",
"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": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
f95ddda868724179b2448c8e2fdd2e678c035591 | 2024-05-16 18:03:34 | docker.io/swerebenchv2/pallets-werkzeug:2902-f95ddda | pallets__werkzeug-2902 | Class: MisdirectedRequest
Location: werkzeug.exceptions
Inputs: None (instantiated without arguments; inherits HTTPException default constructor)
Outputs: An HTTPException subclass with `code = 421` and `description = "The server is not able to produce a response."`
Description: Represents the 421 Misdirected Request H... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 320e4836..e6f54115 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -9,6 +9,7 @@ Unreleased
- ``CacheControl.no_transform`` is a boolean when present. ``min_fresh`` is
``None`` when not present. Added the ``must_understand`` attribute. Fixed
some typing issues on c... | Adding 421 Misdirected Request HTTP Exception
Adding `MisdirectedRequest` error Class.
fixes #2850
| Add "421 Misdirected Request" http exception
Related: #1256
Any concerns against adding a http exception class for this status code?
Right now aborting fails with a `LookupError: no exception for <HTTPStatus.MISDIRECTED_REQUEST: 421>` error if you try
```
abort(http.HTTPStatus.MISDIRECTED_REQUEST)
```
Th... | pallets/werkzeug | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index ad20b3f8..67d76d2b 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -37,6 +37,7 @@ def test_proxy_exception():
(exceptions.RequestEntityTooLarge, 413),
(exceptions.RequestURITooLarge, 414),
(exceptio... | [
"tests/test_exceptions.py::test_proxy_exception",
"tests/test_exceptions.py::test_aborter_general[test0]",
"tests/test_exceptions.py::test_aborter_general[test1]",
"tests/test_exceptions.py::test_aborter_general[test2]",
"tests/test_exceptions.py::test_aborter_general[test3]",
"tests/test_exceptions.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": "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": [... |
c2c70646563045f998981e15c4cbe60662cc42ed | 2023-09-28 16:44:15 | docker.io/swerebenchv2/sdv-dev-rdt:715-c2c7064 | sdv-dev__rdt-715 | No new interfaces are introduced. | python | custom-check-github | diff --git a/rdt/transformers/boolean.py b/rdt/transformers/boolean.py
index 680ba75..c038235 100644
--- a/rdt/transformers/boolean.py
+++ b/rdt/transformers/boolean.py
@@ -39,11 +39,11 @@ class BinaryEncoder(BaseTransformer):
INPUT_SDTYPE = 'boolean'
null_transformer = None
- def __init__(self, missing_... | Replace missing values with random values from dataset
Resolves #606 | Replace missing values with variable (random) values from the dataset
### Problem Description
Many of the numerical transformers allow you to replace missing values with a static value such as the `'mean'` or `'mode'` (See [FloatFormatter API](https://docs.sdv.dev/rdt/transformers-glossary/browse-transformers/floatf... | sdv-dev/RDT | diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py
index fdb48ac..f773eb0 100644
--- a/tests/integration/test_hyper_transformer.py
+++ b/tests/integration/test_hyper_transformer.py
@@ -158,37 +158,63 @@ class TestHyperTransformer:
reverse_transformed = ht.rev... | [
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_default_inputs",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_reset_randomization",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_with_missing_value_replac... | [
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_field_transformers",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_single_category",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_categorical_encoders_with_booleans",
"tests/integrat... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.sdv.dev/rdt/transformers-glossary/browse-... |
374df6359b0d3c1456540c1cb42e91d3e13aba46 | 2021-11-16 10:46:07 | docker.io/swerebenchv2/matchms-matchms:265-374df63 | matchms__matchms-265 | Function: add_retention_time(spectrum_in: SpectrumType) -> SpectrumType
Location: matchms.filtering.add_retention.add_retention_time
Inputs:
- spectrum_in (SpectrumType): a Spectrum object whose metadata may contain any of the accepted retention‑time keys (e.g., "retention_time", "rt", "scan_start_time", etc.). The ar... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 95f5f529..3509bf47 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,8 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Spectrum()` objects now also allows generating hashes, e.g. `hash(spectrum)` [#259](https://github.com/m... | Implemented filters to add retentiontion time & index
Implemented filters for retention time and retention index to add them to the metadata.
The current versions don't perform any dedicated error handling or strictness as this should be implemented in a harmonized way across all filters, so it can be added on later... | Add retention data filters
As discussed in #251 , adding RI and RT filters to clean the metadata in the spectrum object would be good.
One additional idea would be for the retention time filter to allow passing a conversion factor which converts the RT to seconds and use this as a canonical unit for RT?
| matchms/matchms | diff --git a/tests/test_add_retention.py b/tests/test_add_retention.py
new file mode 100644
index 00000000..452f91f8
--- /dev/null
+++ b/tests/test_add_retention.py
@@ -0,0 +1,66 @@
+import numpy
+import pytest
+from matchms import Spectrum
+from matchms.filtering import add_retention_index
+from matchms.filtering ... | [
"tests/test_add_retention.py::test_add_retention_time[metadata0-100.0]",
"tests/test_add_retention.py::test_add_retention_time[metadata1-None]",
"tests/test_add_retention.py::test_add_retention_time[metadata2-100.0]",
"tests/test_add_retention.py::test_add_retention_time[metadata3-200.0]",
"tests/test_add_r... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
a896807eac70aa5723f0bba07ede9302f35f3fac | 2024-07-12 14:54:40 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3498-a896807 | aws-cloudformation__cfn-lint-3498 | Method: Conditions.build_scenerios_on_region(self, condition_name: str, region: str) -> list[bool]
Location: src/cfnlint/conditions/conditions.py (class Conditions)
Inputs:
- **condition_name** (str): The name of a CloudFormation condition defined in the template. Must be a string; if the name is not present in the con... | python | MIT-0 | diff --git a/src/cfnlint/conditions/conditions.py b/src/cfnlint/conditions/conditions.py
index 0fa815fbf..da42ee891 100644
--- a/src/cfnlint/conditions/conditions.py
+++ b/src/cfnlint/conditions/conditions.py
@@ -295,10 +295,8 @@ class Conditions:
# formatting or just the wrong condition name
... | Switch build_scenerios_on_region to return list for caching
*Issue #, if available:*
fix #3495
*Description of changes:*
- Switch build_scenerios_on_region to return list for caching
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms o... | don't honor the condition when checking the type availabilitiy
### CloudFormation Lint Version
1.6.0
### What operating system are you using?
Ubuntu
### Describe the bug
When linting a crossing partitions template with below option
```bash
cfn-lint -i W3005 W2001 W3045 W8003 E1010 E1022 -e -r cn-nort... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/conditions/test_conditions.py b/test/unit/module/conditions/test_conditions.py
index b5752811d..4012a69fa 100644
--- a/test/unit/module/conditions/test_conditions.py
+++ b/test/unit/module/conditions/test_conditions.py
@@ -216,47 +216,43 @@ class TestConditions(TestCase):
cfn = Te... | [
"test/unit/module/conditions/test_conditions.py::TestConditions::test_check_condition_region"
] | [
"test/unit/module/conditions/test_conditions.py::TestConditions::test_bad_condition_definition",
"test/unit/module/conditions/test_conditions.py::TestConditions::test_build_scenerios_on_region_with_condition_dne",
"test/unit/module/conditions/test_conditions.py::TestConditions::test_check_always_true_or_false",... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/awslabs/clickstream-analytics-on-aw... |
8cbda12e78e9ea9820d2c26a295a48ace6b8f8b9 | 2021-07-02 23:55:38 | docker.io/swerebenchv2/senth-minecraft-mod-manager:86-8cbda12 | senth__minecraft-mod-manager-86 | Method: DownloadRepo.get_mod_from_file(self, filepath: str) -> Union[Mod, None]
Location: minecraft_mod_manager/app/download/download_repo.py
Inputs: filepath – path to a downloaded jar file (string).
Outputs: Returns a Mod object parsed from the file, or None if parsing fails.
Description: Retrieves the Mod metada... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e3c12c..680148c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versi... | Downloading via slug does not persist if mod name varies
Downloading via slug now saves correctly in the db
### What changed?
- Now checks the mod_id after installing the mod so it's saved correctly in the mod id. Basically, it's possible to install through searching on the slug directly
- possible_names have expa... | Downloading via slug doesn't persist if mod name attribute varies
For example, if you download unearthed-fabric, it will pull from curse, but store in the sqlite as simply unearthed, requiring a further ```configure unearthed=unearthed-fabric``` in order for an update to work in the future. | Senth/minecraft-mod-manager | diff --git a/minecraft_mod_manager/app/download/download_test.py b/minecraft_mod_manager/app/download/download_test.py
index 03bf853..a61ea0f 100644
--- a/minecraft_mod_manager/app/download/download_test.py
+++ b/minecraft_mod_manager/app/download/download_test.py
@@ -29,6 +29,7 @@ def test_download_and_install_when_fo... | [
"minecraft_mod_manager/app/download/download_test.py::test_download_and_install_when_found",
"minecraft_mod_manager/app/download/download_test.py::test_update_mod_id_after_download",
"minecraft_mod_manager/app/update/update_test.py::test_use_all_installed_mods_when_no_mods_are_specified",
"minecraft_mod_manag... | [
"minecraft_mod_manager/gateways/api/api_test.py::test_find_mod_id_from_mod_id",
"minecraft_mod_manager/gateways/jar_parser_test.py::test_get_mods"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
909855490384d1f42926c12d277b03ea7b8c4d36 | 2023-12-21 21:22:18 | docker.io/swerebenchv2/getmoto-moto:7153-9098554 | getmoto__moto-7153 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/route53/models.py b/moto/route53/models.py
index a2fe90393..409d992ff 100644
--- a/moto/route53/models.py
+++ b/moto/route53/models.py
@@ -314,6 +314,27 @@ class ChangeList(List[Dict[str, Any]]):
item["ResourceRecordSet"]["Name"] = item["ResourceRecordSet"]["Name"].strip(".")
return ... | Route53: change_resource_record_sets(): Relax DELETE validation
Fixes #7151
The boto3 [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/route53/client/change_resource_record_sets.html) states:
To delete a resource record set, you must specify all the same values that ... | Route53 record with multivalue_answer_routing_policy cannot be destroyed
# Problem
I am unable to destroy a route53 record with `multivalue_answer_routing_policy = true`. If you comment out the `multivalue_answer_routing_policy` or set it to `false` in the below code, then it applies and destroys properly.
# Reprod... | getmoto/moto | diff --git a/.github/workflows/tests_terraform_examples.yml b/.github/workflows/tests_terraform_examples.yml
index 46fa804d2..b1a5f7054 100644
--- a/.github/workflows/tests_terraform_examples.yml
+++ b/.github/workflows/tests_terraform_examples.yml
@@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
m... | [
"tests/test_route53/test_route53.py::test_change_resource_record_sets_crud_valid_with_special_xml_chars[True]",
"tests/test_route53/test_route53.py::test_change_resource_record_sets_crud_valid_with_special_xml_chars[False]"
] | [
"tests/test_route53/test_route53.py::test_create_hosted_zone",
"tests/test_route53/test_route53.py::test_get_hosted_zone",
"tests/test_route53/test_route53.py::test_list_hosted_zones",
"tests/test_route53/test_route53.py::test_delete_hosted_zone",
"tests/test_route53/test_route53.py::test_delete_hosted_zone... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
789e7a336dd7aed77fc86205f0681319efe83477 | 2019-01-04 13:37:59 | docker.io/swerebenchv2/kayak-pypika:198-789e7a3 | kayak__pypika-198 | Method: Criterion.any(terms=())
Location: pypika.terms.Criterion (static method)
Inputs: <terms – optional iterable of Criterion‑compatible objects (e.g., Field, other Criterion). If omitted or empty, no terms are provided.>
Outputs: <returns an EmptyCriterion instance when no terms are supplied; returns the single ter... | python | Apache-2.0 | diff --git a/README.rst b/README.rst
index d01df1d..ae46faa 100644
--- a/README.rst
+++ b/README.rst
@@ -257,6 +257,32 @@ XOR
SELECT id,fname,lname,phone FROM customers WHERE age>=18 XOR is_registered
+Convenience Methods
+"""""""""""""""""""
+
+In the `Criterion` class, there are the static methods `any` and ... | Empty Criterion
Fixes #196 Added an EmptyCriterion class which allows the user to build up boolean clauses using lists of constituents. Added any and all static methods to Criterion to give an easy syntax for using this. | Add EmptyCriterion for easier generic queries
There are cases when you are building query complex criterion based on some external checks.
And in those cases you could want to have some empty criterion to build you complex criterion from it.
Basic case, where you have dict of argument and want to have any correspon... | kayak/pypika | diff --git a/pypika/tests/test_criterions.py b/pypika/tests/test_criterions.py
index 1e1e4a3..b0cddc5 100644
--- a/pypika/tests/test_criterions.py
+++ b/pypika/tests/test_criterions.py
@@ -1,12 +1,12 @@
-# coding: utf-8
import unittest
-
from datetime import (
date,
datetime,
)
from pypika import (
+ ... | [
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_bool",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_date",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_datetime",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_decimal",... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
704c622369154d7421de6bac28eda466565cd3a4 | 2017-11-23 04:04:01 | docker.io/swerebenchv2/kennethreitz-pipenv:1114-704c622 | kennethreitz__pipenv-1114 | Function: split_file(file_dict)
Location: pipenv.utils
Inputs: <code>file_dict</code> – a dictionary representing a Pipfile or lockfile. Keys include dependency sections such as <code>'packages'</code>, <code>'dev-packages'</code> (for Pipfiles) or <code>'default'</code>, <code>'develop'</code> (for lockfiles). The val... | python | MIT | diff --git a/pipenv/cli.py b/pipenv/cli.py
index 08d612d9..e76cbb65 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -33,7 +33,7 @@ from click_didyoumean import DYMCommandCollection
from .project import Project
from .utils import (
convert_deps_from_pip, convert_deps_to_pip, is_required_version,
- proper_cas... | Do sequential installs on editable dependencies
- Fixes #1111
- Uses existing infrastructure to add editable dependencies to the list
of sequentially installed packages
- Only alters functions used for this purpose
- Essentially there is a race condition because multiple editors are
trying to write to lib/site-pa... | easy-install.pth contains incomplete number of paths for editable = true packages.
##### Describe your environment
1. OS Type: Debian Stable 9.2
1. Python version: Python 2.7.13
1. Pipenv version: pipenv, version 8.3.2
##### Expected result
When running pipenv install with a Pipfile containing 15 local edita... | kennethreitz/pipenv | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 303c45aa..ffb875ef 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -131,11 +131,12 @@ class TestUtils:
def test_is_vcs(self, entry, expected):
assert pipenv.utils.is_vcs(entry) is expected
- def test_split_vcs(self):
+ def ... | [
"tests/test_utils.py::TestUtils::test_split_file"
] | [
"tests/test_utils.py::TestUtils::test_convert_deps_to_pip",
"tests/test_utils.py::TestUtils::test_convert_from_pip",
"tests/test_utils.py::TestUtils::test_is_required_version[*-*-True]",
"tests/test_utils.py::TestUtils::test_is_required_version[2.1.6-==2.1.4-False]",
"tests/test_utils.py::TestUtils::test_is... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
377b2edffd01324451af0f47526b1b71ca404aa7 | 2021-11-08 03:15:02 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3139-377b2ed | hypothesisworks__hypothesis-3139 | Function: normalize(repr_strategy: str, test_function: Callable, *, required_successes: int = 100, allowed_to_update: bool = False, max_dfas: int = 10, random: random.Random | None = None)
Location: hypothesis.internal.conjecture.shrinking.dfas.normalize
Inputs:
- repr_strategy – string representation of the strategy t... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..39972f866
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch gives Hypothesis it's own internal :class:`~random.Random` instance,
+ensuring that test suites ... | Seed off a single `Random` instance, not global state
We're actually already great about passing around `Random` instances rather than using the global state, so this is a pretty small patch. Closes #2135. | Use our own global Random instance instead of random
As per discussion in #2129, currently if users seed the global PRNG before each test they will get bad results because tests will be weirdly correlated with eachother. We have plenty of mechanisms for controlling determinism if they want to use them, they shouldn't b... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_fuzz_one_input.py b/hypothesis-python/tests/cover/test_fuzz_one_input.py
index 78e80e00d..8395ef2f1 100644
--- a/hypothesis-python/tests/cover/test_fuzz_one_input.py
+++ b/hypothesis-python/tests/cover/test_fuzz_one_input.py
@@ -14,7 +14,6 @@
# END HEADER
import io
-i... | [
"hypothesis-python/tests/cover/test_random_module.py::test_given_does_not_pollute_state",
"hypothesis-python/tests/cover/test_random_module.py::test_find_does_not_pollute_state",
"hypothesis-python/tests/nocover/test_randomization.py::test_seeds_off_internal_random",
"hypothesis-python/tests/quality/test_norm... | [
"hypothesis-python/tests/cover/test_fuzz_one_input.py::test_fuzz_one_input[bytes]",
"hypothesis-python/tests/cover/test_fuzz_one_input.py::test_fuzz_one_input[bytearray]",
"hypothesis-python/tests/cover/test_fuzz_one_input.py::test_fuzz_one_input[memoryview]",
"hypothesis-python/tests/cover/test_fuzz_one_inpu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2072dd5182afe7a260cb7d6e2af132ee09490fb5 | 2021-06-26 16:58:32 | docker.io/swerebenchv2/aws-quickstart-taskcat:667-2072dd5 | aws-quickstart__taskcat-667 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/taskcat/_cfn/stack.py b/taskcat/_cfn/stack.py
index 6b50b13..10de936 100644
--- a/taskcat/_cfn/stack.py
+++ b/taskcat/_cfn/stack.py
@@ -28,7 +28,7 @@ GENERIC_ERROR_PATTERNS = [
def criteria_matches(criteria: dict, instance):
# fail if criteria includes an invalid property
for k in criteria:
- ... | Fix: --keep-failed throws exception
## Overview
Fixes #660
The [criteria_matches](https://github.com/aws-quickstart/taskcat/blob/2072dd5182afe7a260cb7d6e2af132ee09490fb5/taskcat/_cfn/stack.py#L28) function used `foo.__dict__` to look for instance attributes when filtering out items. This worked until the `Stack`... | taskcat test run --keep-failed -> ValueError status is not a valid property of <class 'taskcat._cfn.stack.Stack'>
**Describe the bug**
Ran `taskcat test run --keep-failed` across (21) AWS Commercial Regions. It did not delete ANY of the CloudFormation Stacks (both successful & failed).
- After `reporting on` messa... | aws-quickstart/taskcat | diff --git a/tests/test_cfn_stack.py b/tests/test_cfn_stack.py
index 3d918f0..ccd6f7f 100644
--- a/tests/test_cfn_stack.py
+++ b/tests/test_cfn_stack.py
@@ -36,7 +36,7 @@ resource_template = {
class TestCriteriaMatcher(unittest.TestCase):
- def test_criteria_matches(self):
+ def test_dictionary(self):
... | [
"tests/test_cfn_stack.py::TestCriteriaMatcher::test_class"
] | [
"tests/test_cfn_stack.py::TestCriteriaMatcher::test_dictionary",
"tests/test_cfn_stack.py::TestEvent::test_event",
"tests/test_cfn_stack.py::TestResource::test_resource",
"tests/test_cfn_stack.py::TestParameter::test_dump",
"tests/test_cfn_stack.py::TestParameter::test_parameter",
"tests/test_cfn_stack.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": [... |
dba39bdfa453b546c797b03903dd90189e5f20d0 | 2023-01-06 22:00:56 | docker.io/swerebenchv2/openmdao-openmdao:2744-dba39bd | openmdao__openmdao-2744 | Function: assert_no_warning(warn_type, match=None)
Location: openmdao.utils.assert_utils.assert_no_warning
Inputs:
- **warn_type** (type): The warning class (or subclass of Warning) that should **not** be emitted inside the context.
- **match** (str or None, optional): A regular‑expression pattern that the warning mess... | python | custom-check-github | diff --git a/openmdao/utils/reports_system.py b/openmdao/utils/reports_system.py
index 572b926b5..3720b896a 100644
--- a/openmdao/utils/reports_system.py
+++ b/openmdao/utils/reports_system.py
@@ -88,13 +88,20 @@ class Report(object):
kw['inst_id'] = None if instance is None else instance._get_inst_id()
... | fix bug that caused warnings when assigning a new driver
### Summary
When clearing active reports, as is done when assigning a new driver, the instance argument was not being passed all the way down to where the report hooks were being removed.
### Related Issues
- Resolves #2741
### Backwards incompatibili... | Drivers issue warning regarding removal of a nonexistent hook.
### Description
I consistently see the following warning messages from the `_remove_hook` function when using pyOptSparseDriver or ScipyOptimizeDriver:
```
.../openmdao/utils/hooks.py:266: OpenMDAOWarning:Couldn't find the given 'post' function in the ... | OpenMDAO/OpenMDAO | diff --git a/openmdao/utils/tests/test_reports_system.py b/openmdao/utils/tests/test_reports_system.py
index 94bd4e341..a4501c108 100644
--- a/openmdao/utils/tests/test_reports_system.py
+++ b/openmdao/utils/tests/test_reports_system.py
@@ -15,6 +15,7 @@ from openmdao.utils.general_utils import set_pyoptsparse_opt
fro... | [
"openmdao/utils/tests/test_reports_system.py::TestReportsSystem::test_report_generation_basic",
"openmdao/utils/tests/test_reports_system.py::TestReportsSystem::test_report_generation_basic_doedriver",
"openmdao/utils/tests/test_reports_system.py::TestReportsSystem::test_report_generation_basic_problem_reports_... | [
"openmdao/utils/tests/test_reports_system.py::TestReportsSystem::test_report_generation_basic_problem_reports_argument_false",
"openmdao/utils/tests/test_reports_system.py::TestReportsSystem::test_report_generation_basic_problem_reports_argument_n2_only",
"openmdao/utils/tests/test_reports_system.py::TestReport... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/OpenMDAO/OpenMDAO/blob/85a5a264d3f92e... |
26bd53887340c6e9eb7554dd3e2acf3b92f62dec | 2023-12-07 17:23:45 | docker.io/swerebenchv2/pyg-team-pytorch-geometric:8566-26bd538 | pyg-team__pytorch_geometric-8566 | Method: LinkPredPrecision.__init__(self, k: int)
Location: torch_geometric.nn.metrics
Inputs: k – int, the number of top‑k predictions to evaluate.
Outputs: Instance of LinkPredPrecision.
Description: Creates a precision‑@k metric for link‑prediction retrieval tasks.
Method: LinkPredPrecision.__repr__(self)
Location: ... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c2738b72..42b5dbb2e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,10 +8,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Added
- Added warning when calling `dataset.num_classes` on regression problems ([#8550](https://githu... | `Recall@k` metric for link-prediction
Partly fixes #8452.
I implemented it with an optional epsilon parameter to avoid zero division.
PS: Is it better for me to start a new issue for this specifically, as this only solves part of the issue? | [Roadmap] PyG for Recommendation 🚀
### 🚀 The feature, motivation and pitch
**This roadmap aims to bring better support for recommendation tasks to PyG.**
Currently, all/most of our link prediction models are trained and evaluated using binary classification metrics. However, this usually requires that we have a... | pyg-team/pytorch_geometric | diff --git a/test/nn/test_metrics.py b/test/nn/test_metrics.py
index 04f268bd8..8f06905ad 100644
--- a/test/nn/test_metrics.py
+++ b/test/nn/test_metrics.py
@@ -3,7 +3,11 @@ from typing import List
import pytest
import torch
-from torch_geometric.nn.metrics import LinkPredNDCG, LinkPredPrecision
+from torch_geometr... | [
"test/nn/test_metrics.py::test_precision[1-32-3000-1000-100]",
"test/nn/test_metrics.py::test_precision[10-32-3000-1000-100]",
"test/nn/test_metrics.py::test_precision[100-32-3000-1000-100]",
"test/nn/test_metrics.py::test_recall",
"test/nn/test_metrics.py::test_ndcg"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://pytorch-geometric.readthedocs.io/en/latest/gen... |
3545d38595e91a94a38d88661cd314172cb48bef | 2023-09-07 22:58:25 | docker.io/swerebenchv2/getmoto-moto:6786-3545d38 | getmoto__moto-6786 | Method: FakeBucket._log_permissions_enabled_policy(target_bucket, target_prefix)
Location: moto.s3.models.FakeBucket (static method)
Inputs: target_bucket – an instance of FakeBucket representing the bucket that may receive logs; target_prefix – optional string (or None) indicating the log object prefix to be check... | python | Apache-2.0 | diff --git a/moto/athena/responses.py b/moto/athena/responses.py
index e8b21e188..5bdc38c60 100644
--- a/moto/athena/responses.py
+++ b/moto/athena/responses.py
@@ -55,11 +55,15 @@ class AthenaResponse(BaseResponse):
def get_query_execution(self) -> str:
exec_id = self._get_param("QueryExecutionId")
... | Athena: make statement type dependent on query command
Fixes #6776
Simple fix that checks the first command in the sql query and determines the statement type. I based the list of commands off of this page from the AWS Athena docs: [https://docs.aws.amazon.com/athena/latest/ug/ddl-reference.html](https://docs.aws.a... | Athena query results cannot be fetched using awswrangler
Moto version 4.1.2, but also tested on 4.2.1 with similar results
## Issue
It seems that some Athena queries can't be fetched using the awswrangler.athena.get_query_results function.
I'm not sure if awswrangler is necessarily supposed to be supported by mo... | getmoto/moto | diff --git a/tests/test_athena/test_athena.py b/tests/test_athena/test_athena.py
index 1f3644061..af2973f06 100644
--- a/tests/test_athena/test_athena.py
+++ b/tests/test_athena/test_athena.py
@@ -140,7 +140,7 @@ def test_get_query_execution():
#
assert details["QueryExecutionId"] == exex_id
assert detai... | [
"tests/test_athena/test_athena.py::test_get_query_execution",
"tests/test_core/test_auth.py::test_ssm_service",
"tests/test_s3/test_s3_logging.py::test_invalid_bucket_logging_when_permissions_are_false",
"tests/test_s3/test_s3_logging.py::test_valid_bucket_logging_when_permissions_are_true",
"tests/test_s3/... | [
"tests/test_athena/test_athena.py::test_create_work_group",
"tests/test_athena/test_athena.py::test_get_primary_workgroup",
"tests/test_athena/test_athena.py::test_create_and_get_workgroup",
"tests/test_athena/test_athena.py::test_start_query_execution",
"tests/test_athena/test_athena.py::test_start_query_v... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [
"http://docs.getmoto.org/en/4.2.1/docs/server_mode.html... |
16abebb194c131b4a3b4a929e87ea69ee1fb5f45 | 2025-01-27 22:19:42 | docker.io/swerebenchv2/getmoto-moto:8529-16abebb | getmoto__moto-8529 | Function: split_words(s: str) -> List[str]
Location: moto/secretsmanager/list_secrets/filters.py
Inputs:
- **s** (str): the secret name or attribute to be tokenised. It may contain special delimiter characters ("/", "-", "_", "+", "=", ".", "@") or camel‑casing.
Outputs:
- **List[str]**: a list of word tokens derived... | python | Apache-2.0 | diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py
index 383d77679..3bada2e53 100644
--- a/moto/dynamodb/responses.py
+++ b/moto/dynamodb/responses.py
@@ -879,6 +879,7 @@ class DynamoHandler(BaseResponse):
result["LastEvaluatedKey"] = last_evaluated_key
return dynamo_json_dump(re... | SecretsManager: list_secrets() now filters values with special chars correctly
Followup to #8469, words are now also split by special characters (`/`, `+`, and a few others).
Fixes #8421
Whether this is the final form of this algorithm, I don't know - it's quite possible that I've missed some use cases. It is cu... | SecretsManager List Secrets Filter with Key all deviated from boto3
## How to reproduce
```python
@pytest.fixture
def secretsmanager_client():
with mock_aws():
yield boto3.client("secretsmanager", region_name="us-east-1")
def test_list_secrets(secretsmanager_client):
secretsmanager_client.create_... | getmoto/moto | diff --git a/.github/workflows/tests_sdk_ruby.yml b/.github/workflows/tests_sdk_ruby.yml
index 0dfe0966f..c9e3f4289 100644
--- a/.github/workflows/tests_sdk_ruby.yml
+++ b/.github/workflows/tests_sdk_ruby.yml
@@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ru... | [
"tests/test_secretsmanager/test_list_secrets.py::test_with_all_filter_special_characters",
"tests/test_secretsmanager/test_list_secrets.py::test_word_splitter[my/test-output7]"
] | [
"tests/test_secretsmanager/test_list_secrets.py::test_empty",
"tests/test_secretsmanager/test_list_secrets.py::test_list_secrets",
"tests/test_secretsmanager/test_list_secrets.py::test_with_name_filter",
"tests/test_secretsmanager/test_list_secrets.py::test_with_tag_key_filter",
"tests/test_secretsmanager/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
be3867c6d45862a155b3c35ba6b0690ad5cab6bb | 2020-03-14 15:32:01 | docker.io/swerebenchv2/aws-cloudformation-cfn-python-lint:1419-be3867c | aws-cloudformation__cfn-python-lint-1419 | Method: ValuePrimitiveType._value_check(self, value, path, item_type, strict_check, extra_args)
Location: src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
Inputs:
- **value** – any Python object representing the property value to validate.
- **path** – list of strings/indices describing the location of t... | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
index d8a76025e..637dab0fd 100644
--- a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
+++ b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
@@ -18,6 +18,15... | Update rule E3012 to include Lambda Environment variable non strict
*Issue #, if available:*
Fix #1415
*Description of changes:*
- Update rule E3012 to include Lambda Environment variable non strict
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, und... | Environment Variables as Integer on AWS SAM template
*cfn-lint version: 0.28.4*
*Description of issue.*
When using Integer as Envrironment Variable for Serverless (AWS SAM), we get an error saying it should be String.
E3012 Property Resources/MyResource/Properties/Environment/Variables/MAIL_PORT should be of typ... | aws-cloudformation/cfn-python-lint | diff --git a/test/unit/rules/resources/properties/test_value_primitive_type.py b/test/unit/rules/resources/properties/test_value_primitive_type.py
index 5734c46b1..b7500b131 100644
--- a/test/unit/rules/resources/properties/test_value_primitive_type.py
+++ b/test/unit/rules/resources/properties/test_value_primitive_typ... | [
"test/unit/rules/resources/properties/test_value_primitive_type.py::TestResourceValuePrimitiveTypeNonStrict::test_file_positive"
] | [
"test/unit/rules/resources/properties/test_value_primitive_type.py::TestResourceValuePrimitiveType::test_file_negative_generic",
"test/unit/rules/resources/properties/test_value_primitive_type.py::TestResourceValuePrimitiveType::test_file_negative_nist_config_rules",
"test/unit/rules/resources/properties/test_v... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/AWSCloudFormation/latest/U... |
1e19cdc2f96edaffaed22943fd8bd8b0e59f4b19 | 2018-11-08 22:00:45 | docker.io/swerebenchv2/rochacbruno-dynaconf:109-1e19cdc | rochacbruno__dynaconf-109 | Method: Settings.set(self, key, value, loader_identifier=None, tomlfy=False, dotted_lookup=True)
Location: dynaconf.base.Settings.set
Inputs:
- **key** (str): configuration key, may contain dot‑notation for nested values.
- **value** (Any): value to store; will be parsed if *tomlfy* is True.
- **loader_identifier** (s... | python | MIT | diff --git a/HISTORY b/HISTORY
index 24d9922..fd979d9 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3,10 +3,14 @@ Changelog
These are all the changes in Dynaconf since the first public release.
-1.1.1
+1.1.1
-----
- Unreleased
+- Added `INSTANCE_FOR_DYNACONF` and `--instance` parameters. These parameters can tell cl... | Add INSTANCE_FOR_DYNACONF and --instance
These parameters allows dynaconf to use different `LazySettings` instance
if project uses one.
Also did some other fixes along the way:
- Added `catch_exceptions=False` to `CliRunner.invoke` in order to
prevent click from swallowing errors silently. This uncovered othe... | [RFC] Allow dynaconf cli to use a customized settings object
I have a customized settings object:
```python
from dynaconf import LazySettings
settings = LazySettings(
GLOBAL_ENV_FOR_DYNACONF='MYPROJECT',
MERGE_ENABLED_FOR_DYNACONF=True,
)
```
When I run `dynaconf` cli tool, it knows nothing about ... | rochacbruno/dynaconf | diff --git a/tests/test_base.py b/tests/test_base.py
index a0ede2f..2453394 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -201,7 +201,8 @@ def test_dotted_traversal_access(settings):
'PASSWORD': 'secret',
'SSL': {'CONTEXT': 'SECURE'},
'DOTTED.KEY': True
- }
+ ... | [
"tests/test_base.py::test_dotted_set_with_merge",
"tests/test_cli.py::test_list_with_instance",
"tests/test_cli.py::test_instance_attribute_error",
"tests/test_cli.py::test_instance_import_error",
"tests/test_cli.py::test_instance_pypath_error",
"tests/test_cli.py::test_validate"
] | [
"tests/test_base.py::test_deleted_raise",
"tests/test_base.py::test_accepts_only_upper",
"tests/test_base.py::test_call_works_as_get",
"tests/test_base.py::test_keys_are_equal",
"tests/test_base.py::test_values_are_equal",
"tests/test_base.py::test_get_env",
"tests/test_base.py::test_float",
"tests/te... | {
"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.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
be09a2385d5066caaf57e97b654c920974805048 | 2023-04-29 01:33:38 | docker.io/swerebenchv2/stfc-fparser:408-be09a23 | stfc__fparser-408 | Method: Loop_Control.match(string) → Optional[Tuple[Optional[Scalar_Logical_Expr], Optional[Tuple[Do_Variable, List[str]]], Optional[str]]
Location: fparser.two.Fortran2003.Loop_Control (Rule R830)
Inputs:
‑ string (str): a fragment of Fortran source that may contain a loop‑control clause.
Outputs:
‑ None if the ... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 202a531..37b8b35 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ Modifications by (in alphabetical order):
* P. Vitt, University of Siegen, Germany
* A. Voysey, UK Met Office
+15/05/2023 PR #408 for #403. Add support for the F2008 DO CONCURRENT.
+
26/04... | add support for f08 do concurrent (closes #403)
Replaces PR #404 to provide a complete implementation where the matching to `do concurrent` is limited to f2008 code (f2003 will not match). Also adds appropriate f2008 tests, pulls out and extends the existing f2003 tests and updates the f2003 implementation.
To add i... | No Support for DO CONCURRENT
It seems like fparser does not support F08 `DO CONCURRENT`:
```
C:\PycharmProjects\fortran> python main.py
Traceback (most recent call last):
File "C:\Users\micha\anaconda3\envs\fortran\lib\site-packages\fparser\two\Fortran2003.py", line 266, in __new__
return Base.__new__(cls,... | stfc/fparser | diff --git a/src/fparser/two/tests/fortran2003/test_loop_control_r830.py b/src/fparser/two/tests/fortran2003/test_loop_control_r830.py
new file mode 100644
index 0000000..a758342
--- /dev/null
+++ b/src/fparser/two/tests/fortran2003/test_loop_control_r830.py
@@ -0,0 +1,120 @@
+# Copyright (c) 2023 Science and Technolog... | [
"src/fparser/two/tests/fortran2003/test_loop_control_r830.py::test_start_end_space_while",
"src/fparser/two/tests/fortran2003/test_loop_control_r830.py::test_delim",
"src/fparser/two/tests/fortran2003/test_loop_control_r830.py::test_repmap",
"src/fparser/two/tests/fortran2003/test_loop_control_r830.py::test_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":... |
5ecc39749a98c7ec3fc63b8cbaa82de5eb17c173 | 2022-08-16 16:34:33 | docker.io/swerebenchv2/python-attrs-attrs:1009-5ecc397 | python-attrs__attrs-1009 | Method: <attr-generated class.__getstate__(self)>
Location: src/attr/_make.py (generated in _ClassBuilder.__init__ for each attrs class)
Inputs: self – an instance of an attrs‑generated class with `slots=True`. No other parameters.
Outputs: dict – mapping attribute names defined in the class (`state_attr_names`) to ... | python | MIT | diff --git a/src/attr/_make.py b/src/attr/_make.py
index bc296c6..bd666cc 100644
--- a/src/attr/_make.py
+++ b/src/attr/_make.py
@@ -922,7 +922,7 @@ class _ClassBuilder:
"""
Automatically created by attrs.
"""
- return tuple(getattr(self, name) for name in state_attr_na... | Change __getstate__ and __setstate__ to use a dict (#1004)
# Summary
We use a dict instead of a tuple, so that we assign only existing attributes on unpickle, if the class
definition has changed in the meantime.
Resolves #1004
| Current default implementation of __getstate__ and __setstate__ could be made safer
This is a known "sharp edge" of pickle, but attrs could make this a bit safer by slightly modifying the default implementation of `__getstate__` and `__setstate__`. The problem is that due to returning a tuple in the default implementat... | python-attrs/attrs | diff --git a/tests/test_slots.py b/tests/test_slots.py
index 6a17764..2c561ad 100644
--- a/tests/test_slots.py
+++ b/tests/test_slots.py
@@ -9,6 +9,8 @@ import sys
import types
import weakref
+from unittest import mock
+
import pytest
import attr
@@ -743,3 +745,58 @@ def test_slots_super_property_get_shortcut()... | [
"tests/test_slots.py::test_slots_unpickle_after_attr_removed[A]",
"tests/test_slots.py::test_slots_unpickle_after_attr_added[A]"
] | [
"tests/test_slots.py::test_slots_being_used",
"tests/test_slots.py::test_basic_attr_funcs",
"tests/test_slots.py::test_inheritance_from_nonslots",
"tests/test_slots.py::test_nonslots_these",
"tests/test_slots.py::test_inheritance_from_slots",
"tests/test_slots.py::test_inheritance_from_slots_with_attribut... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/python-attrs/attrs/blob/c58ffd4e4cba5... |
a4f5450a2541e2f2f8cacf57f50435eb78422f99 | 2022-10-05 12:39:42 | docker.io/swerebenchv2/pallets-click:2369-a4f5450 | pallets__click-2369 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 66808a8..76c234f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -16,6 +16,7 @@ Unreleased
- Improve type annotations for pyright type checker. :issue:`2268`
- Improve responsiveness of ``click.clear()``. :issue:`2284`
- Improve command name detection when using Shiv ... | Don't output spurious lines if the truncated help text is actually empty
Regression in 92b30e47cb013433190f40d75239c98c77aa9d2d (8.1.0). This change brings back the original logic along with the comment.
Improve the tests to catch further regressions.
Fixes #2368
Checklist:
- [x] Add tests that demonstrate ... | Spurious empty lines in the help output (regression)
Click since version 8.1.0 doesn't properly account for a scenario that the callback's docstring can have no "help text" part, like so:
```python
@click.command()
def callback():
"""
\f
More stuff.
"""
```
This results in empty lines in the ... | pallets/click | diff --git a/tests/test_commands.py b/tests/test_commands.py
index 3a0d4b9..d72a182 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -95,20 +95,6 @@ def test_auto_shorthelp(runner):
)
-def test_help_truncation(runner):
- @click.command()
- def cli():
- """This is a command with ... | [
"tests/test_formatting.py::test_truncating_docstring_no_help"
] | [
"tests/test_commands.py::test_other_command_invoke",
"tests/test_commands.py::test_other_command_forward",
"tests/test_commands.py::test_forwarded_params_consistency",
"tests/test_commands.py::test_auto_shorthelp",
"tests/test_commands.py::test_no_args_is_help",
"tests/test_commands.py::test_default_maps"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
cf53a0842549eb83a3f9ad74057fa0fa2924a882 | 2025-03-04 19:13:32 | docker.io/swerebenchv2/openmdao-openmdao:3469-cf53a08 | openmdao__openmdao-3469 | No new interfaces are introduced. | python | custom-check-github | diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py
index ccc5b6815..424f1299d 100644
--- a/openmdao/core/problem.py
+++ b/openmdao/core/problem.py
@@ -98,7 +98,11 @@ def _get_top_script():
The absolute path, or None if it can't be resolved.
"""
try:
- return pathlib.Path(__main__... | openmdao commands now correctly use the script name to name the output directory
### Summary
openmdao commands now pass script name via `os.environ`
### Related Issues
- Resolves #3467
### Backwards incompatibilities
None
### New Dependencies
None
| openmdao command running scripts results in incorrect Problem name and name for reports directory
### Description
A Problem created in a script and run with the python command has the correct name, which is the name of the script minus the extension.
But when the script is run using the openmdao command, the Problem... | OpenMDAO/OpenMDAO | diff --git a/openmdao/utils/tests/test_cmdline.py b/openmdao/utils/tests/test_cmdline.py
index 0809e465d..9df0ccba4 100644
--- a/openmdao/utils/tests/test_cmdline.py
+++ b/openmdao/utils/tests/test_cmdline.py
@@ -161,6 +161,23 @@ class CmdlineTestCase(unittest.TestCase):
self.assertNotIn(p1_outdir, sub... | [
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_outdir"
] | [
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_clean",
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_cmd_openmdao_--help",
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_cmd_openmdao_--view_reports_/OpenMDAO/openmdao/test_suite/scripts/circle_opt.py",
"openmdao/utils... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
95aec1cb4a43174b9ef3c00fa4385d4cf1241077 | 2019-11-22 08:31:55 | docker.io/swerebenchv2/facebookresearch-hydra:305-95aec1c | facebookresearch__hydra-305 | Method: Hydra.show_cfg(self, config_file, overrides, cfg_type)
Location: hydra/_internal/hydra.py
Inputs:
- **config_file** (str): path to the primary configuration file used for composition.
- **overrides** (list[str] or Sequence[str]): list of command‑line overrides that should be applied on top of the configurati... | python | MIT | diff --git a/hydra/_internal/hydra.py b/hydra/_internal/hydra.py
index 7e87b3131e..c118941e62 100644
--- a/hydra/_internal/hydra.py
+++ b/hydra/_internal/hydra.py
@@ -96,7 +96,7 @@ class Hydra:
)
HydraConfig().set_config(cfg)
sweeper = Plugins.instantiate_sweeper(
- config=cfg, con... | Fixed --cfg not working bug
closes #304 | [Bug] --cfg not working
# 🐛 Bug
when running `python main.py --cfg hydra`
** Stack trace/error message **
```
Traceback (most recent call last):
File "main.py", line 576, in <module>
main()
File "/private/home/yannd/.conda/envs/assl/lib/python3.7/site-packages/hydra/main.py", line 24, in decorated... | facebookresearch/hydra | diff --git a/tests/test_hydra.py b/tests/test_hydra.py
index 2495468565..1705e7f350 100644
--- a/tests/test_hydra.py
+++ b/tests/test_hydra.py
@@ -224,6 +224,22 @@ def test_short_module_name(tmpdir):
chdir_hydra_root()
+@pytest.mark.parametrize(
+ "flag,expected_keys",
+ [("--cfg=all", ["db", "hydra"... | [
"tests/test_hydra.py::test_cfg[--cfg=all-expected_keys0]",
"tests/test_hydra.py::test_cfg[--cfg=hydra-expected_keys1]",
"tests/test_hydra.py::test_cfg[--cfg=job-expected_keys2]"
] | [
"tests/test_hydra.py::test_missing_conf_dir[.-None]",
"tests/test_hydra.py::test_missing_conf_dir[None-.]",
"tests/test_hydra.py::test_missing_conf_file[tests/test_apps/app_without_config/my_app.py-None]",
"tests/test_hydra.py::test_missing_conf_file[None-tests.test_apps.app_without_config.my_app]",
"tests/... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
b54382ab37704ba43f8c1ea7222fc0bb26019755 | 2025-02-11 10:53:21 | docker.io/swerebenchv2/aristanetworks-anta:1037-b54382a | aristanetworks__anta-1037 | Method: VerifyISISSegmentRoutingTunnels._via_matches(self, via_input: TunnelPath, eos_via: dict[str, Any]) -> bool
Location: anta/tests/routing/isis.py
Inputs:
- self: instance of VerifyISISSegmentRoutingTunnels
- via_input: TunnelPath – model describing a single SR‑tunnel path (optional nexthop, type, interface, tunne... | python | Apache-2.0 | diff --git a/anta/input_models/routing/isis.py b/anta/input_models/routing/isis.py
index efeefe60..c0e26499 100644
--- a/anta/input_models/routing/isis.py
+++ b/anta/input_models/routing/isis.py
@@ -5,7 +5,7 @@
from __future__ import annotations
-from ipaddress import IPv4Address
+from ipaddress import IPv4Address... | refactor(anta.tests): Refactor VerifyISISSegmentRoutingTunnels test case
# Description
Refactor VerifyISISSegmentRoutingTunnels test case
Fixes #388
# Checklist:
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my code
- [X] I have run pre-commit for code... | Enhancement: Input subclasses refactoring
Tests Input subclasses should be moved outside of test classes, in other modules to allow reusability across tests and easier imports by external framework leveraging ANTA (AVD).
Solution:
Models are being moved to `anta.input_models.<module>`. Each test will keep a class var... | aristanetworks/anta | diff --git a/anta/tests/routing/isis.py b/anta/tests/routing/isis.py
index 47803e3a..70574e51 100644
--- a/anta/tests/routing/isis.py
+++ b/anta/tests/routing/isis.py
@@ -7,13 +7,11 @@
# mypy: disable-error-code=attr-defined
from __future__ import annotations
-from ipaddress import IPv4Address, IPv4Network
-from ty... | [
"tests/units/anta_tests/routing/test_isis.py::test[anta.tests.routing.isis.VerifyISISNeighborState-success-default-vrf]",
"tests/units/anta_tests/routing/test_isis.py::test[anta.tests.routing.isis.VerifyISISNeighborState-success-multiple-vrfs]",
"tests/units/anta_tests/routing/test_isis.py::test[anta.tests.rout... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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/aristanetworks/anta/pull/933",
... |
e4703d4f74e518c15adfe3b081c5bc869fd38812 | 2023-07-27 06:24:36 | docker.io/swerebenchv2/zalando-patroni:2781-e4703d4 | zalando__patroni-2781 | Method: __FilePermissions.set_permissions_from_data_directory(self, data_dir: str)
Location: patroni/file_perm.py
Inputs: *data_dir* – path to the PostgreSQL data directory (PGDATA); used to stat the directory and decide whether group‑readable permissions should be applied.
Outputs: None (returns ``None``). Side‑eff... | python | MIT | diff --git a/docs/dynamic_configuration.rst b/docs/dynamic_configuration.rst
index 5486bf6e..f5bb4ee5 100644
--- a/docs/dynamic_configuration.rst
+++ b/docs/dynamic_configuration.rst
@@ -46,9 +46,9 @@ In order to change the dynamic configuration you can use either ``patronictl edi
- **archive\_cleanup\_command**: ... | Set permissions for files and directories created in PGDATA
Postgres supports two types of permissions:
1. owner only
2. group readable
By default the first one is used because it provides better security. But, sometimes people want to run a backup tool with the user that is different from postgres. In this case t... | allow-group-access clause in initdb seems not woking correctly
**Describe the bug**
When using allow-group-access clause in initdb still have some files stlil created with 600 permisstions
```
find /data/postgresql/11/data/ -type f -perm 600
/data/postgresql/11/data/patroni.dynamic.json
/data/postgresql/11/data/p... | zalando/patroni | diff --git a/tests/test_config.py b/tests/test_config.py
index 3f7e4049..cf798d00 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -85,6 +85,7 @@ class TestConfig(unittest.TestCase):
@patch('os.path.exists', Mock(return_value=True))
@patch('os.remove', Mock(side_effect=IOError))
@patch('os... | [
"tests/test_config.py::TestConfig::test_configuration_directory",
"tests/test_config.py::TestConfig::test_invalid_path",
"tests/test_config.py::TestConfig::test_reload_local_configuration",
"tests/test_config.py::TestConfig::test_save_cache",
"tests/test_config.py::TestConfig::test_set_dynamic_configuration... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
328a87c2bc599f7ae6d970965fd6c685928ab6b9 | 2023-07-31 19:19:44 | docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:164-328a87c | mondeja__mkdocs-include-markdown-plugin-164 | Function: on_page_markdown(markdown: str, page: mkdocs.structure.pages.Page, docs_dir: str) → str
Location: mkdocs_include_markdown_plugin.event.on_page_markdown
Inputs:
- **markdown** – the raw page markdown containing include / include-markdown directives.
- **page** – the MkDocs Page object (used to resolve relat... | python | Apache-2.0 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 25a9968..11386cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,7 +70,7 @@ jobs:
run: hatch run +py=${{ matrix.py }} tests:all
- name: Convert coverage to XML
run: |
- pip install covera... | Convert logger errors to build errors
Closes #162 | FR: strict mode
I just recently started using include-markdown more and found that it's great for composable snippets in documentation - thank you for the tool!
One thing I have encountered, though, is that mkdocs build goes through even though the referenced file path is wrong (e.g. the relative path doesn't lead a... | mondeja/mkdocs-include-markdown-plugin | diff --git a/tests/test_unit/test_arguments.py b/tests/test_unit/test_arguments.py
index efc2265..ab44e86 100644
--- a/tests/test_unit/test_arguments.py
+++ b/tests/test_unit/test_arguments.py
@@ -3,6 +3,7 @@ import os
import re
import pytest
+from mkdocs.exceptions import BuildError
from testing_helpers import pa... | [
"tests/test_unit/test_arguments.py::test_invalid_bool_arguments[include]",
"tests/test_unit/test_arguments.py::test_invalid_bool_arguments[include-markdown]",
"tests/test_unit/test_arguments.py::test_invalid_start_end_arguments[directive=include-start]",
"tests/test_unit/test_arguments.py::test_invalid_start_... | [
"tests/test_unit/test_arguments.py::test_start_end_mixed_quotes[directive=include]",
"tests/test_unit/test_arguments.py::test_start_end_mixed_quotes[directive=include-markdown]",
"tests/test_unit/test_arguments.py::test_exclude_double_quote_escapes[directive=include]",
"tests/test_unit/test_arguments.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": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://raw.githubusercontent.com/mondeja/mkdocs-inclu... |
d4dca4c098197f21158b606087315c8c24b7294c | 2020-10-22 12:37:03 | docker.io/swerebenchv2/peopledoc-vault-cli:178-d4dca4c | peopledoc__vault-cli-178 | Method: VaultClientBase.__enter__(self) -> VaultClientBase
Location: vault_cli/client.py
Inputs: None (implicit self)
Outputs: Returns the client instance itself; also resets internal `cache` to an empty dict and `errors` list to [] to start a fresh context.
Description: Enables the client to be used as a context manag... | python | custom-check-github | diff --git a/docs/howto/environment.rst b/docs/howto/environment.rst
index bc3d06f..baa48cd 100644
--- a/docs/howto/environment.rst
+++ b/docs/howto/environment.rst
@@ -114,3 +114,19 @@ Your call would look like:
.. code:: console
$ vault-cli env --omit-single-key --path myapp -- myapp
+
+Ignoring errors
+-----... | Crash consistently, or not crash consistently on vault-cli env
Closes #176
### Check list:
- [x] Write documentation (we can help you doing so)
- [x] Write unit tests (100% coverage ?)
- [ ] Write or edit integration tests, if applicable ? < nope
- [x] Add a line in ``CHANGELOG.rst``
| Vault-cli env should reliably crash if it cannot access a value
- If `vault-cli env` is directed to use a path and it doesn't work (path doesn't exist or is forbidden or contains a template that crashes), it should crash
- If `vault-cli env` is directed to use a path and one of the subpaths doesn't work, I guess it sh... | peopledoc/vault-cli | diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py
index a7a2c5b..73b2756 100644
--- a/tests/unit/test_cli.py
+++ b/tests/unit/test_cli.py
@@ -304,6 +304,36 @@ def test_env(cli_runner, vault_with_token, mocker):
assert kwargs["environment"]["FOO_BAZ_VALUE"] == "yo"
+def test_env_error(cli_runner, vau... | [
"tests/unit/test_cli.py::test_options",
"tests/unit/test_cli.py::test_list",
"tests/unit/test_cli.py::test_get_text[extra_args0]",
"tests/unit/test_cli.py::test_get_text[extra_args1]",
"tests/unit/test_cli.py::test_get_text_special_cases[value0----\\nlist:\\n-",
"tests/unit/test_cli.py::test_get_text_spec... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
ad3280eeadfbe8dd16c099db312d8ebba4dae376 | 2020-04-24 10:03:39 | docker.io/swerebenchv2/wtforms-wtforms:592-ad3280e | wtforms__wtforms-592 | Method: BaseForm.process(self, formdata=None, obj=None, data=None, extra_filters=None, **kwargs)
Location: src/wtforms/form.py (class BaseForm)
Inputs:
- formdata: optional MultiDict or similar with request data.
- obj: optional object to populate fields from.
- data: optional dict of initial field values.
- extra_fil... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 4c28ec3..5a16f31 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -27,6 +27,8 @@ Unreleased
:issue:`603` :pr:`605`
- Forms can have form-level errors. :issue:`55` :pr:`595`
- Implemented :class:`~wtforms.fields.core.MonthField`. :pr:`530` :pr:`593`
+- Filters can b... | Implemented inline filters
Inline filters implementation.
Fixes #128 | A different approach for `filters`
Hi, first of all, thanks for the useful library.
I want to perform some _cleaning_ in some fields, for example, remove several `\n` in a row or strip some whitespaces. The _cleanest_ way I found so far was to use `filters` in the field definition. This is not bad, but for instance,... | wtforms/wtforms | diff --git a/tests/test_fields.py b/tests/test_fields.py
index c78ed47..c101be3 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -171,6 +171,38 @@ class TestFilters:
assert len(form.b.process_errors) == 1
assert not form.validate()
+ def test_extra(self):
+ class F(Form):
+ ... | [
"tests/test_fields.py::TestFilters::test_extra",
"tests/test_fields.py::TestFilters::test_inline"
] | [
"tests/test_fields.py::TestDefaults::test",
"tests/test_fields.py::TestLabel::test",
"tests/test_fields.py::TestLabel::test_auto_label",
"tests/test_fields.py::TestLabel::test_override_for",
"tests/test_fields.py::TestLabel::test_escaped_label_text",
"tests/test_fields.py::TestFlags::test_existing_values"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
9df6f030af0af2e4611a72bd81b25f882191c470 | 2023-03-26 10:52:32 | docker.io/swerebenchv2/marketsquare-robotframework-robocop:802-9df6f03 | marketsquare__robotframework-robocop-802 | Method: Version.__init__(self, version: str)
Location: robocop/utils/version_matching.py
Inputs: *version* – a string representing a Robot Framework version (e.g., "4.0", "6.1a2.dev1"). The string may include an optional leading “v”, pre‑release identifiers (a, b, rc, alpha, beta, etc.) and optional dev release segment... | python | Apache-2.0 | diff --git a/docs/releasenotes/3.0.0.rst b/docs/releasenotes/3.0.0.rst
index 6c50bf5..9e9e24f 100644
--- a/docs/releasenotes/3.0.0.rst
+++ b/docs/releasenotes/3.0.0.rst
@@ -31,7 +31,16 @@ Bumped dependencies (#792)
~~~~~~~~~~~~~~~~~~~~~~~~~~
There were some compatibility issues due to outdated packages.
-Now, all o... | Remove packaging
This PR removes packaging dependency from our repo. It's because we have a lot of problems with this dependency, and it introduces a lot of interdependencies we do need.
The code was copied from packaging.version and them trimmed and simplified until it matched our needs. I will review it once agai... | Could the `packaging` dependency be dropped?
From what I can see, packaging is used just for its `Version` and it checks mostly the major/minor versions, where getting the major/minor version through a split with `.` and using it as a tuple only with major/minor should suffice.
This dep brings or `pyparsing` too, so... | MarketSquare/robotframework-robocop | diff --git a/tests/atest/utils/__init__.py b/tests/atest/utils/__init__.py
index ddb20fc..7041c92 100644
--- a/tests/atest/utils/__init__.py
+++ b/tests/atest/utils/__init__.py
@@ -7,11 +7,11 @@ from pathlib import Path
from typing import List, Optional
import pytest
-from packaging.specifiers import Specifier
f... | [
"tests/e2e/test_e2e.py::TestE2E::test_run_all_checkers_not_cli",
"tests/e2e/test_e2e.py::TestE2E::test_use_not_existing_argument_file",
"tests/e2e/test_e2e.py::TestE2E::test_argument_file_without_path",
"tests/e2e/test_e2e.py::TestE2E::test_use_circular_argument_file",
"tests/e2e/test_e2e.py::TestE2E::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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e5d2c785d608d3618285dbb260c3f447e17d54b3 | 2025-02-11 15:20:10 | docker.io/swerebenchv2/pyomo-pyomo:3472-e5d2c78 | pyomo__pyomo-3472 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pyomo/contrib/cp/scheduling_expr/precedence_expressions.py b/pyomo/contrib/cp/scheduling_expr/precedence_expressions.py
index 675d9efb0..1bdf6c4b4 100644
--- a/pyomo/contrib/cp/scheduling_expr/precedence_expressions.py
+++ b/pyomo/contrib/cp/scheduling_expr/precedence_expressions.py
@@ -13,6 +13,8 @@ from ... | Resolve error parenthesizing pow mantissa
<!-- ##################################################################### -->
<!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST -->
<!-- All changes must adhere to PEP8 standards as enforced by Black. -->
<!-- If your changes do NOT adhere, the test suite will fail. -->
... | String conversion of Expression not correct
<!-- DO NOT DELETE OR IGNORE THIS TEMPLATE. Failing to adhere to this template and provide the necessary information may lead to your Issue being closed without consideration. -->
## Summary
<!-- Explain, in a clear and concise way, the command you ran and the result you w... | Pyomo/pyomo | diff --git a/pyomo/core/tests/unit/test_numeric_expr.py b/pyomo/core/tests/unit/test_numeric_expr.py
index 4e5027400..9495a93b2 100644
--- a/pyomo/core/tests/unit/test_numeric_expr.py
+++ b/pyomo/core/tests/unit/test_numeric_expr.py
@@ -1934,6 +1934,22 @@ class TestPrettyPrinter_oldStyle(unittest.TestCase):
ex... | [
"pyomo/core/tests/unit/test_numeric_expr.py::TestPrettyPrinter_newStyle::test_pow"
] | [
"pyomo/core/tests/unit/test_numeric_expr.py::TestExpression_EvaluateNumericConstant::test_arithmetic",
"pyomo/core/tests/unit/test_numeric_expr.py::TestExpression_EvaluateNumericConstant::test_eq",
"pyomo/core/tests/unit/test_numeric_expr.py::TestExpression_EvaluateNumericConstant::test_gt",
"pyomo/core/tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3866eb03103935765d2e4fa429ada06f05417fd0 | 2024-12-10 19:30:39 | docker.io/swerebenchv2/getmoto-moto:8390-3866eb0 | getmoto__moto-8390 | Method: ElasticsearchServiceBackend.describe_elasticsearch_domains(self, domain_names: List[str])
Location: moto/es/models.py
Inputs: `domain_names` – a list of Elasticsearch domain names (strings) to query.
Outputs: Returns a list of dictionaries, each representing the JSON‑serialisable description of a matching... | python | Apache-2.0 | diff --git a/moto/athena/responses.py b/moto/athena/responses.py
index 23b074160..727711167 100644
--- a/moto/athena/responses.py
+++ b/moto/athena/responses.py
@@ -89,7 +89,7 @@ class AthenaResponse(BaseResponse):
"QueryPlanningTimeInMillis": 0,
"ServiceProcessingTimeInMillis"... | Athena: start_query_execution() should support WorkGroups
Fixes #8388 | [athena] Object of type WorkGroup is not JSON serializable
Hi, latest docker image of motoserver (`motoserver/moto:latest`) uploaded on Dec 09th 2024 contains an issue related to type serialization.
The issue is not present in previous version `5.0.22`.
When calling Athena endpoint `get_query_execution`, the follo... | getmoto/moto | diff --git a/tests/test_athena/test_athena.py b/tests/test_athena/test_athena.py
index e539c42b1..1e75ebc86 100644
--- a/tests/test_athena/test_athena.py
+++ b/tests/test_athena/test_athena.py
@@ -237,6 +237,29 @@ def test_stop_query_execution():
assert details["Status"]["State"] == "CANCELLED"
+@mock_aws
+def... | [
"tests/test_athena/test_athena.py::test_start_execution_with_workgroup",
"tests/test_es/test_es.py::test_describe_elasticsearch_domains",
"tests/test_opensearch/test_opensearch.py::test_describe_domains",
"tests/test_rds/test_rds.py::test_copy_db_snapshots[by_arn-True]",
"tests/test_rds/test_rds.py::test_co... | [
"tests/test_athena/test_athena.py::test_create_work_group",
"tests/test_athena/test_athena.py::test_get_primary_workgroup",
"tests/test_athena/test_athena.py::test_create_and_get_workgroup",
"tests/test_athena/test_athena.py::test_start_query_execution",
"tests/test_athena/test_athena.py::test_start_query_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": "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/docker/saas-mega/actions/runs/1224220... |
3f7f6aebc2b445a5079e7d7ae83bb180e8d9e8b0 | 2025-03-14 17:38:40 | docker.io/swerebenchv2/marketsquare-robotframework-robocop:1322-3f7f6ae | marketsquare__robotframework-robocop-1322 | Method: LinterConfig.__init__(self, select: list[str] | None = None, ignore: list[str] | None = None, **kwargs)
Location: src/robocop/config.py
Inputs:
- **select** – optional list of rule identifiers or special keyword “ALL” that specifies which rules should be considered for inclusion.
- **ignore** – optional list... | python | Apache-2.0 | diff --git a/docs/releasenotes/6.0.0a3.rst b/docs/releasenotes/6.0.0a3.rst
index 14f85e3..9c86a59 100644
--- a/docs/releasenotes/6.0.0a3.rst
+++ b/docs/releasenotes/6.0.0a3.rst
@@ -35,6 +35,9 @@ following command::
robocop migrate <config_path>
+It will create new file named <config_path>_migrated.toml with tr... | Add select ALL keyword for enabling all rules
Closes #1316 | Enable all rules at once
We have growing number of non-default rules. User may want to enable all rules and then disable unwanted ones, rather than keeping track if new release contain new rules etc.
We could reuse ruff syntax:
```
select = ["ALL"]
``` | MarketSquare/robotframework-robocop | diff --git a/tests/config/test_rule_matcher.py b/tests/config/test_rule_matcher.py
index 173244b..c3d2691 100644
--- a/tests/config/test_rule_matcher.py
+++ b/tests/config/test_rule_matcher.py
@@ -94,3 +94,11 @@ class TestIncludingExcluding:
msg = get_message_with_id("0101")
assert rule_matcher.is_rul... | [
"tests/config/test_rule_matcher.py::TestIncludingExcluding::test_select_all"
] | [
"tests/config/test_rule_matcher.py::TestIncludingExcluding::test_only_selected[selected0-ignored0]",
"tests/config/test_rule_matcher.py::TestIncludingExcluding::test_only_selected[selected1-ignored1]",
"tests/config/test_rule_matcher.py::TestIncludingExcluding::test_only_selected[selected2-ignored2]",
"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": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
f6a81cc2f524bf3d2e9cb1923d101f1308e4711b | 2024-07-24 14:30:53 | docker.io/swerebenchv2/keras-team-keras:20040-f6a81cc | keras-team__keras-20040 | Method: KerasVariable.assign(self, value)
Location: keras/src/backend/common/variables.py (class KerasVariable)
Inputs:
- value: array‑like or tf.Tensor convertible to the variable’s dtype; must have the same shape as the variable (shape equality enforced, ValueError otherwise).
Outputs:
- Returns the assigned value ... | python | Apache-2.0 | diff --git a/keras/src/backend/common/variables.py b/keras/src/backend/common/variables.py
index 34b69958f..e76930f0a 100644
--- a/keras/src/backend/common/variables.py
+++ b/keras/src/backend/common/variables.py
@@ -237,12 +237,13 @@ class KerasVariable:
scope.add_update((self, value))
else:
... | Return value on KerasVariable assignment
To keep compatibility with previous Tensorflow implementations, we can return variable value after assignment.
Specifically, this impacts porting Tensorflow Federated to Keras 3, see https://github.com/google-parfait/tensorflow-federated/blob/0ca2550e62ca7728e5e9a45edca1feedc... | Assign doesn't return a value
When assigning a placeholder value to a KerasVariable I get returned a None type as there is no return in assignment, where as when assigning to a tf.Variable I get returned the proper assign operation.
This is the code in keras.Variable:
```
def _direct_assign(self, value):
... | keras-team/keras | diff --git a/keras/src/backend/common/variables_test.py b/keras/src/backend/common/variables_test.py
index ab40c905c..2b36fbda5 100644
--- a/keras/src/backend/common/variables_test.py
+++ b/keras/src/backend/common/variables_test.py
@@ -297,18 +297,36 @@ class VariableNumpyValueAndAssignmentTest(test_case.TestCase):
... | [
"keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::test_variable_assign_add_return",
"keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::test_variable_assign_return",
"keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::te... | [
"keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialization",
"keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialize_already_initialized",
"keras/src/backend/common/variables_test.py::VariableInitializationTest::test_variable_i... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/keras-team/keras/blob/f9501f53fa15fe6... |
6cc969c0c55ce348097025d917060d585f8054dd | 2020-03-27 13:47:24 | docker.io/swerebenchv2/codezonediitj-pydatastructs:222-6cc969c | codezonediitj__pydatastructs-222 | Method: MAryTreeNode.__str__(self)
Location: pydatastructs.utils.misc_util.MAryTreeNode
Inputs: self – instance of MAryTreeNode
Outputs: str – string representation of the node in the form "(key, data)"
Description: Returns a string that formats the node's key and data as a tuple. Used when converting a MAryTreeNode to... | python | custom-check-github | diff --git a/pydatastructs/utils/misc_util.py b/pydatastructs/utils/misc_util.py
index 1956ae4..5f52d2e 100644
--- a/pydatastructs/utils/misc_util.py
+++ b/pydatastructs/utils/misc_util.py
@@ -148,6 +148,9 @@ class MAryTreeNode(TreeNode):
for child in children:
self.children.append(child)
+ d... | Added tests
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs or Relevant literature
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://... | Track coverage
#### Description of the problem
<!--Please provide a clear and details information of the bug/data structure to be added.-->
The coverage should be near to 100%. However, currently, it stands at 97%. Write tests for the uncovered lines, to increase the coverage.
#### Example of the problem
<!--Prov... | codezonediitj/pydatastructs | diff --git a/pydatastructs/trees/tests/test_m_ary_trees.py b/pydatastructs/trees/tests/test_m_ary_trees.py
new file mode 100644
index 0000000..6cbc84a
--- /dev/null
+++ b/pydatastructs/trees/tests/test_m_ary_trees.py
@@ -0,0 +1,5 @@
+from pydatastructs import MAryTree
+
+def test_MAryTree():
+ m = MAryTree(1, 1)
+ ... | [
"pydatastructs/utils/tests/test_misc_util.py::test_MAryTreeNode"
] | [
"pydatastructs/trees/tests/test_m_ary_trees.py::test_MAryTree",
"pydatastructs/utils/tests/test_misc_util.py::test_AdjacencyListGraphNode",
"pydatastructs/utils/tests/test_misc_util.py::test_AdjacencyMatrixGraphNode",
"pydatastructs/utils/tests/test_misc_util.py::test_GraphEdge",
"pydatastructs/utils/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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://codecov.io/gh/codezonediitj/pydatastructs/src/ma... |
4a16b8bdb207c9f6a97204eb006536914ff4ae35 | 2021-11-29 10:06:00 | docker.io/swerebenchv2/ipython-traitlets:687-4a16b8b | ipython__traitlets-687 | Method: ArgParseConfigLoader.__init__(self, argv=None, aliases=None, flags=None, log=None, classes=None, *parser_args, **parser_kwargs)
Location: traitlets/config/loader.py
Inputs:
- **argv** (Optional[List[str]]): command‑line argument list (default: sys.argv[1:]).
- **aliases** (Optional[Dict[Flags, str]]): mapping ... | python | BSD-3-Clause | diff --git a/traitlets/config/loader.py b/traitlets/config/loader.py
index 14a6863..d4ec90b 100644
--- a/traitlets/config/loader.py
+++ b/traitlets/config/loader.py
@@ -787,12 +787,13 @@ class ArgParseConfigLoader(CommandLineConfigLoader):
"""A loader that uses the argparse module to load from the command line."""... | Re-support multiple-alias key for ArgParseConfigLoader
Its sometimes useful to be able to support multiple aliases for the same trait, e.g. multiple shorthand abbreviations or supporting both underscores and dashes. Re-add support for an arbitrary number of aliases to be possible as a key in `Application.aliases` and a... | Multiple aliases for ArgParseConfigLoader
Hi, [in v5.0 L990](https://github.com/ipython/traitlets/commit/e3e01bc2cf2fcb4c88f6d954e2fd4e4dc283f76a#diff-faeef4cfbb1bced1eba160187ed70f9a7f115e86a98cf5ffdefcc9ef52fd527dR983), alias tuples are explicitly unpacked as 2-element tuples. I didn't manage to find any discussion o... | ipython/traitlets | diff --git a/traitlets/config/tests/test_application.py b/traitlets/config/tests/test_application.py
index f38765c..6904d88 100644
--- a/traitlets/config/tests/test_application.py
+++ b/traitlets/config/tests/test_application.py
@@ -371,6 +371,24 @@ class TestApplication(TestCase):
app.init_foo()
self... | [
"traitlets/config/tests/test_application.py::TestApplication::test_aliases_multiple"
] | [
"traitlets/config/tests/test_application.py::TestApplication::test_aliases",
"traitlets/config/tests/test_application.py::TestApplication::test_aliases_help_msg",
"traitlets/config/tests/test_application.py::TestApplication::test_basic",
"traitlets/config/tests/test_application.py::TestApplication::test_cli_a... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/ipython/traitlets/commit/e3e01bc2cf2f... |
631e6a9a9fe70b5b2a0f0b5a1fb19be885b7c1be | 2023-10-27 16:18:15 | docker.io/swerebenchv2/stfc-psyclone:2380-631e6a9 | stfc__psyclone-2380 | Method: Node.siblings(self)
Location: src/psyclone/psyir/nodes/node.py
Inputs: None (property accessed on a Node instance)
Outputs: List[psyclone.psyir.nodes.Node] – the list of sibling nodes including the node itself; for a root node returns a list containing only that node.
Description: Returns the collection of a no... | python | BSD-3-Clause | diff --git a/changelog b/changelog
index b9f2042bb..7fce7ad67 100644
--- a/changelog
+++ b/changelog
@@ -45,8 +45,7 @@
16) PR #2357 for #2353. Adds the ACC-loops NEMO transformation script
and includes its use in the integration testing.
- 17 PR #2378 for #2369. Adds sibling property to node to help tree
- traver... | Account for `siblings` special case
Closes #2369.
@sergisiso pointed out a special case I missed in #2378 - the case of a root node. Recommended fix applied. | Add `get_siblings` function/method
It'd be useful to have a way to get all 'siblings' of a node, i.e., all of its parents' children. | stfc/PSyclone | diff --git a/src/psyclone/tests/psyGen_test.py b/src/psyclone/tests/psyGen_test.py
index 9fd9a89d0..958375658 100644
--- a/src/psyclone/tests/psyGen_test.py
+++ b/src/psyclone/tests/psyGen_test.py
@@ -2226,24 +2226,3 @@ def test_walk():
binary_op_list = invoke.schedule.walk(BinaryOperation, Kern)
assert not... | [
"src/psyclone/tests/psyir/nodes/node_test.py::test_siblings"
] | [
"src/psyclone/tests/psyGen_test.py::test_object_index",
"src/psyclone/tests/psyGen_test.py::test_invalid_api",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_valid_return_object",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_valid_dm_flag",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_cre... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
f9f0f3dcb62631db160054787fbab9eea0b95df5 | 2023-05-12 11:37:31 | docker.io/swerebenchv2/sdv-dev-rdt:645-f9f0f3d | sdv-dev__rdt-645 | No new interfaces are introduced. | python | custom-check-github | diff --git a/rdt/transformers/base.py b/rdt/transformers/base.py
index a534c6e..0e49108 100644
--- a/rdt/transformers/base.py
+++ b/rdt/transformers/base.py
@@ -1,6 +1,7 @@
"""BaseTransformer module."""
import abc
import contextlib
+import hashlib
import inspect
import warnings
from functools import wraps
@@ -65,... | Randomize nulls
Resolve #639.
It also changes the behavior of the randomization. The `fit` random state is set during initialization, while the `transform` and `reverse_transform` states are only set after seeing the data provided to `fit`. `reset_randomization` returns the random states to the one seen during `fit`... | Fix randomization when creating `null` values
* RDT version: 1.4.0 (latest)
### Error Description
Currently, some tansformers have a default strategy of randomly assigning null values (in the same proportion as observed during fit). However, since each of these transformers use the same seed, the null values are as... | sdv-dev/RDT | diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py
index 4a81f6c..43c853d 100644
--- a/tests/integration/test_hyper_transformer.py
+++ b/tests/integration/test_hyper_transformer.py
@@ -12,6 +12,8 @@ from rdt.transformers import (
AnonymizedFaker, BaseTransformer,... | [
"tests/integration/test_hyper_transformer.py::test_hyper_transformer_reset_randomization",
"tests/integration/test_hyper_transformer.py::test_random_seed",
"tests/integration/transformers/test_numerical.py::TestGaussianNormalizer::test_not_model_missing_values"
] | [
"tests/integration/test_hyper_transformer.py::test_hypertransformer_default_inputs",
"tests/integration/test_hyper_transformer.py::test_hypertransformer_field_transformers",
"tests/integration/test_hyper_transformer.py::test_single_category",
"tests/integration/test_hyper_transformer.py::test_categorical_enco... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://docs.sdv.dev/rdt/transformers-glossary/browse-... |
48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6 | 2024-08-25 22:47:51 | docker.io/swerebenchv2/aio-libs-aiohttp:8878-48a5e07 | aio-libs__aiohttp-8878 | Method: StreamResponse.prepared(self) → bool
Location: aiohttp/web_response.py
Inputs: none (property getter)
Outputs: Returns ``True`` if the response has either started sending payload (``_payload_writer`` is set) **or** the EOF marker has been sent (``_eof_sent``); otherwise ``False``.
Description: Indicates whether... | python | custom-check-github | diff --git a/CHANGES/5343.bugfix b/CHANGES/5343.bugfix
new file mode 100644
index 000000000..4e33071ea
--- /dev/null
+++ b/CHANGES/5343.bugfix
@@ -0,0 +1,1 @@
+Fixed StreamResponse.prepared to return True after EOF is sent -- by :user:`arthurdarcet`.
diff --git a/CHANGES/8876.bugfix.rst b/CHANGES/8876.bugfix.rst
new fi... | Ensure error is raised when reading from closed client response.
Fixes #5582. | `await ClientResponse.json()` raises `TimeoutError` when `ClientSession` is closed
🐞 **Describe the bug**
`await ClientResponse.json()` raises `asyncio.exceptions.TimeoutError` when the `ClientSession` has already ended instead of raising an error indicating that reading the response body may be unsuccessful with an ... | aio-libs/aiohttp | diff --git a/docs/testing.rst b/docs/testing.rst
index 966bc4cad..1d29f3354 100644
--- a/docs/testing.rst
+++ b/docs/testing.rst
@@ -496,14 +496,12 @@ Framework Agnostic Utilities
High level test creation::
- from aiohttp.test_utils import TestClient, TestServer, loop_context
+ from aiohttp.test_utils import... | [
"tests/test_client_functional.py::test_exception_when_read_outside_of_session[pyloop]",
"tests/test_web_functional.py::test_handler_returns_not_response_after_100expect[pyloop]",
"tests/test_web_response.py::test_prepared_after_eof",
"tests/test_web_response.py::test_drain_before_start"
] | [
"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": "A|B5",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories... |
03cc7856158f86e2aede55ac9f764657fd69138e | 2023-09-10 13:02:54 | docker.io/swerebenchv2/getmoto-moto:6802-03cc785 | getmoto__moto-6802 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/stepfunctions/responses.py b/moto/stepfunctions/responses.py
index cf68b83bf..c6685aa19 100644
--- a/moto/stepfunctions/responses.py
+++ b/moto/stepfunctions/responses.py
@@ -141,6 +141,7 @@ class StepFunctionResponse(BaseResponse):
"executionArn": execution.execution_arn,
... | SFN: list_executions() now returns the StopDate-attribute
Fixes #6792 | stepfunctions list_executions with aborted execution does not return stopDate attribute in response
Hey Folks,
Looks like we are missing the `stopDate` attribute being set for `list-executions` responses for non `RUNNING` statemachines.
Moto version: `4.1.9`
(sample aws cli call returning stop date with ABO... | getmoto/moto | diff --git a/tests/test_stepfunctions/test_stepfunctions.py b/tests/test_stepfunctions/test_stepfunctions.py
index 02097ef9e..97f959714 100644
--- a/tests/test_stepfunctions/test_stepfunctions.py
+++ b/tests/test_stepfunctions/test_stepfunctions.py
@@ -758,15 +758,22 @@ def test_state_machine_throws_error_when_describi... | [
"tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_stop_execution"
] | [
"tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_creation_succeeds",
"tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_creation_fails_with_invalid_names",
"tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_creation_requires_valid_role_arn",
"tests/test_ste... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
482bd7406b790528800d0c6eed99617ee6efff9d | 2024-04-12 14:58:47 | docker.io/swerebenchv2/spikeinterface-spikeinterface:2716-482bd74 | spikeinterface__spikeinterface-2716 | No new interfaces are introduced. | python | MIT | diff --git a/src/spikeinterface/curation/remove_excess_spikes.py b/src/spikeinterface/curation/remove_excess_spikes.py
index b9f00212e..52653d684 100644
--- a/src/spikeinterface/curation/remove_excess_spikes.py
+++ b/src/spikeinterface/curation/remove_excess_spikes.py
@@ -79,8 +79,9 @@ class RemoveExcessSpikesSortingSe... | Allow for `remove_excess_spikes` to remove negative spike times
Fixes #2710.
Remove negative spikes (a known bug in KS4) and update tests to test removing negative times. | Unable to open kilosort4 results with phy
Dear,
I'm using `spikeinterface==0.100.5` and `kilosort4== .4.0.3`, on 64 channel 6 shanks probe. The phy output is works perfectly with the `ironclust ` generated results.
However, I have encountered some issues when open the kilosort4 phy output folder. And I saw there... | SpikeInterface/spikeinterface | diff --git a/src/spikeinterface/curation/tests/test_remove_excess_spikes.py b/src/spikeinterface/curation/tests/test_remove_excess_spikes.py
index f99c408c2..7175e0a61 100644
--- a/src/spikeinterface/curation/tests/test_remove_excess_spikes.py
+++ b/src/spikeinterface/curation/tests/test_remove_excess_spikes.py
@@ -14,... | [
"src/spikeinterface/curation/tests/test_remove_excess_spikes.py::test_remove_excess_spikes"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
5f1ccb298e282830b7e2d40f3261bab71be5ff0c | 2023-07-06 22:34:28 | docker.io/swerebenchv2/getmoto-moto:6492-5f1ccb2 | getmoto__moto-6492 | Method: Route53.create_hosted_zone(self, request_params)
Location: moto/route53/responses.py, class Route53 (inherits BaseResponse) – the method handling the “CreateHostedZone” API call.
Inputs: Dictionary of request parameters required by the CreateHostedZone operation (e.g., `Name`, `CallerReference`, optional `H... | python | Apache-2.0 | diff --git a/moto/route53/responses.py b/moto/route53/responses.py
index 647166fd1..4c43eddf3 100644
--- a/moto/route53/responses.py
+++ b/moto/route53/responses.py
@@ -81,6 +81,9 @@ class Route53(BaseResponse):
delegation_set_id=delegation_set_id,
)
template = Template(CREATE... | Route53: create_hosted_zone() now returns the Location
Fixes #6464 | The CreateHostedZone response for Route53 does not match the behavior of AWS
## Reporting Bugs
I'm using localstack, which implements its route53 mock service using moto.
The `CreateHostedZone` operation returns a response that misses some info compared to an actual AWS response. In particular, it misses the `Loc... | getmoto/moto | diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py
index 03fc53161..67538b09b 100644
--- a/tests/test_route53/test_route53.py
+++ b/tests/test_route53/test_route53.py
@@ -5,8 +5,9 @@ import sure # noqa # pylint: disable=unused-import
import botocore
import pytest
+import requests
... | [
"tests/test_route53/test_route53.py::test_create_hosted_zone"
] | [
"tests/test_route53/test_route53.py::test_list_hosted_zones",
"tests/test_route53/test_route53.py::test_delete_hosted_zone",
"tests/test_route53/test_route53.py::test_delete_hosted_zone_with_change_sets",
"tests/test_route53/test_route53.py::test_get_hosted_zone_count_no_zones",
"tests/test_route53/test_rou... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/localstack/localstack/pull/5639#issue... |
c1ae4abe6c57b349228445c1aa059ec447e6677e | 2022-02-25 13:26:52 | docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1030-c1ae4ab | pyjanitor-devs__pyjanitor-1030 | Method: DataFrame.complete(self, *columns, sort: bool = False, by: Optional[Union[list, str]] = None, fill_value: Optional[Union[Dict, Any]] = None, explicit: bool = True)
Location: janitor/functions/complete.py
Inputs:
- *columns: column identifiers (str, list/tuple of str, or dict mapping column names to new values).... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f12d42e..29350c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
- [BUG] Removed/updated error-inducing default arguments in `row_to_names` (#1004) and `round_to_fraction` (#1005). @thatlittleboy
- [ENH] `patterns` deprecated in favour of importing `re... | [ENH] Add `fill_value` and `explicit` to the `complete` function
# PR Description
Please describe the changes proposed in the pull request:
- Add `fill_value` and `explicit` parameters
- `explicit` determines if only nulls introduced via `complete` will be filled, or all nulls exisitng in the dataframe.
**Thi... | [ENH] Add `fill_value` and `explicit` parameters to `complete`
# Brief Description
<!-- Please provide a brief description of what you'd like to propose. -->
fill null values generated during `complete` and decide if existing nulls should be filled, or only nulls generated from the `complete` function. idea inspi... | pyjanitor-devs/pyjanitor | diff --git a/tests/functions/test_complete.py b/tests/functions/test_complete.py
index 29429c0..77e7d99 100644
--- a/tests/functions/test_complete.py
+++ b/tests/functions/test_complete.py
@@ -4,107 +4,155 @@ import pytest
from hypothesis import given
from pandas.testing import assert_frame_equal
from janitor.testin... | [
"tests/functions/test_complete.py::test_fill_value_column",
"tests/functions/test_complete.py::test_fill_value_dict_scalar",
"tests/functions/test_complete.py::test_complete_multiple_groupings",
"tests/functions/test_complete.py::test_fill_value_scalar",
"tests/functions/test_complete.py::test_explicit_scal... | [
"tests/functions/test_complete.py::test_column_None",
"tests/functions/test_complete.py::test_MultiIndex",
"tests/functions/test_complete.py::test_empty_groups",
"tests/functions/test_complete.py::test_dict_not_list_like",
"tests/functions/test_complete.py::test_dict_not_1D",
"tests/functions/test_complet... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://tidyr.tidyverse.org/reference/complete.html"
... |
c3cc987d19b9aa3343525641759273329aa9bafb | 2023-12-01 02:51:30 | docker.io/swerebenchv2/cogent3-cogent3:1650-c3cc987 | cogent3__cogent3-1650 | Method: SqliteAnnotationDbMixin.subset(self, *, source=":memory:", biotype=None, seqid=None, name=None, start=None, end=None, strand=None, attributes=None, allow_partial=False)
Location: src/cogent3/core/annotation_db.py → class SqliteAnnotationDbMixin
Inputs:
- **source** (os.PathLike | str, default “:memory:”) – ... | python | BSD-3-Clause | diff --git a/changelog.d/20231201_134621_Gavin.Huttley.md b/changelog.d/20231201_134621_Gavin.Huttley.md
new file mode 100644
index 000000000..42aad507a
--- /dev/null
+++ b/changelog.d/20231201_134621_Gavin.Huttley.md
@@ -0,0 +1,41 @@
+<!--
+A new scriv changelog fragment.
+
+Uncomment the section that is right (remove... | ENH: AnnotationDb.subset returns a subset of rows matching condition, fixes #1641
[NEW] uses same querying interface as AnnotationDb.get_records_matching(), but
returns a new instance of self.
[NEW] added cookbook example too
[NEW] added scriv changelog entries | AnnotationDb's should support subsetting
If we have annotated features from entire genomes, then selecting a slice of some sequences will be more performant if we create a new AnnotationDb with only the subset of features that map to the selected sequences.
The `subset()` method should be added to the `SupportsQuery... | cogent3/cogent3 | diff --git a/tests/test_core/test_annotation_db.py b/tests/test_core/test_annotation_db.py
index c90509ba2..b2a106921 100644
--- a/tests/test_core/test_annotation_db.py
+++ b/tests/test_core/test_annotation_db.py
@@ -950,3 +950,47 @@ def test_gbdb_get_parent_fails_no_coords(gb_db):
def test_load_annotations_invalid_pa... | [
"tests/test_core/test_annotation_db.py::test_subset_gff3_db",
"tests/test_core/test_annotation_db.py::test_subset_empty_db",
"tests/test_core/test_annotation_db.py::test_subset_gff3_db_with_user",
"tests/test_core/test_annotation_db.py::test_subset_gb_db",
"tests/test_core/test_annotation_db.py::test_subset... | [
"tests/test_core/test_annotation_db.py::test_assign_valid_db",
"tests/test_core/test_annotation_db.py::test_replace_annotation_db_check_invalid",
"tests/test_core/test_annotation_db.py::test_replace_annotation_db_nocheck_invalid",
"tests/test_core/test_annotation_db.py::test_constructor_db_fail[gff_db-Genbank... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
756f1267b78ed597a7b65fd344a8ae2c6bf6a0b9 | 2023-07-01 10:38:30 | docker.io/swerebenchv2/brazilian-utils-brutils-python:116-756f126 | brazilian-utils__brutils-python-116 | No new interfaces are introduced. | python | MIT | diff --git a/brutils/cnpj.py b/brutils/cnpj.py
index 913a41e..0b7fd73 100644
--- a/brutils/cnpj.py
+++ b/brutils/cnpj.py
@@ -38,7 +38,13 @@ def format_cnpj(cnpj): # type: (str) -> str
Will format an adequately formatted numbers-only CNPJ string,
adding in standard formatting visual aid symbols for display.
... | Refatorando a função `cnpj.format` e melhorando seus testes
Alterações:
* Garante que a função `format` chama o método `is_valid` para validação do CNPJ e não utiliza o método display;
* Testes ajustados para a nova função (CNPJ);
* Alteração do código do `cpf.format` para definir o tamanho máximo do input
closes... | Melhorar format_cnpj e o seus testes
1. Chamar a função `is_valid` e formatar o cnpj, sem utilizar o método display.
Código referência:
https://github.com/brazilian-utils/brutils-python/blob/756f1267b78ed597a7b65fd344a8ae2c6bf6a0b9/brutils/cpf.py#L38-L48
2. Melhorar os testes da função format_cnpj:
Código refer... | brazilian-utils/brutils-python | diff --git a/tests/test_cnpj.py b/tests/test_cnpj.py
index 9b26234..25e7375 100644
--- a/tests/test_cnpj.py
+++ b/tests/test_cnpj.py
@@ -45,10 +45,18 @@ class CNPJ(TestCase):
assert display("0000000000000") is None
def test_format_cnpj(self):
- assert format_cnpj("00000000000109") == "00.000.000/... | [
"tests/test_cnpj.py::CNPJ::test_format_cnpj"
] | [
"tests/test_cnpj.py::CNPJ::test_checksum",
"tests/test_cnpj.py::CNPJ::test_display",
"tests/test_cnpj.py::CNPJ::test_generate",
"tests/test_cnpj.py::CNPJ::test_hashdigit",
"tests/test_cnpj.py::CNPJ::test_is_valid",
"tests/test_cnpj.py::CNPJ::test_remove_symbols",
"tests/test_cnpj.py::CNPJ::test_sieve",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "easy",
"external_urls": [
"https://github.com/brazilian-utils/brutils-python/blob/7... |
91b28fcd69e54eb12b7f3fb7bf621f4d678f8244 | 2025-05-27 11:44:42 | docker.io/swerebenchv2/myremylar-pygame-gui:689-91b28fc | myremylar__pygame_gui-689 | Method: UIButton._scale_image_to_fit(image: pygame.Surface, target_size: Tuple[int, int]) -> pygame.Surface
Location: static method inside class `UIButton` (pygame_gui/elements/ui_button.py)
Inputs:
- **image** – a `pygame.Surface` containing the source image; may be `None`, in which case the method returns `None`.
- ... | python | MIT | diff --git a/docs/source/theme_reference/theme_button.rst b/docs/source/theme_reference/theme_button.rst
index f0bf062..01c5043 100644
--- a/docs/source/theme_reference/theme_button.rst
+++ b/docs/source/theme_reference/theme_button.rst
@@ -136,6 +136,7 @@ Misc
- "**text_vert_alignment_padding**" - If vertical alignm... | Add autoscaling images theming parameter to button
fixes #278 | Rescale the image for the rect in UIButton
**Is your feature request related to a problem? Please describe.**
I think it will be very handy if the image(e.g. normal image, hover image) are auto-rescaled to the size of the rect in the UI Button.
**Describe the solution you'd like**
I have modified the code myself... | MyreMylar/pygame_gui | diff --git a/tests/test_elements/test_ui_button.py b/tests/test_elements/test_ui_button.py
index ca824b1..20f2ec5 100644
--- a/tests/test_elements/test_ui_button.py
+++ b/tests/test_elements/test_ui_button.py
@@ -1029,6 +1029,244 @@ class TestUIButton:
assert button.shadow_width == 4
assert button.too... | [
"tests/test_elements/test_ui_button.py::TestUIButton::test_auto_scale_images_functionality",
"tests/test_elements/test_ui_button.py::TestUIButton::test_auto_scale_images_theme_parameter",
"tests/test_elements/test_ui_button.py::TestUIButton::test_auto_scale_images_disabled_by_default",
"tests/test_elements/te... | [
"tests/test_elements/test_ui_button.py::TestUIButton::test_creation",
"tests/test_elements/test_ui_button.py::TestUIButton::test_kwargs_set_text",
"tests/test_elements/test_ui_button.py::TestUIButton::test_set_any_images_from_theme",
"tests/test_elements/test_ui_button.py::TestUIButton::test_kill",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [... |
fbc11c670307ae29464289a538e3d525f5c07f78 | 2024-07-04 23:00:48 | docker.io/swerebenchv2/aio-libs-aiohttp:8482-fbc11c6 | aio-libs__aiohttp-8482 | Method: ClientSession.ws_connect(self, url: str | yarl.URL, *, protocols: Tuple[str, ...] = (), timeout: ClientWSTimeout = DEFAULT_WS_TIMEOUT, **kwargs)
Location: aiohttp/client.py → class ClientSession
Inputs: `url` may now have scheme **"ws"** or **"wss"** (previously rejected as non‑HTTP); other parameters uncha... | python | custom-check-github | diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index f331f3a4b..16f38981d 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -428,7 +428,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
- name: Sign the dists with Sigstore
- uses: sigstore/gh-... | Fix incorrect rejection of ws:// and wss:// urls
This is because libraries like discord.py needs to use a wss type of url to make a socket to an api service, and it cannot be done outside of aiohttp as it can block the async event loop which can result in undefined behavior.
Test will arrive soon.
<!-- Thank you ... | 3.10.0 and 4.0.0 incorrectly reject wss:// urls
### Describe the bug
In discord.py a single wss:// type url is needed to create a websocket using aiohttp to discord's api. This both allows for new and resumed connections.
```
Traceback (most recent call last):
File "client.py", line 664, in connect
File "a... | aio-libs/aiohttp | diff --git a/tests/conftest.py b/tests/conftest.py
index fb294bd2c..6310a1dd7 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,10 +1,11 @@
# type: ignore
import asyncio
+import base64
import os
import socket
import ssl
import sys
-from hashlib import md5, sha256
+from hashlib import md5, sha1, sha256
... | [
"tests/test_client_session.py::test_ws_connect_allowed_protocols[pyloop-ws]",
"tests/test_client_session.py::test_ws_connect_allowed_protocols[pyloop-wss]",
"tests/test_client_ws.py::test_ws_connect_read_timeout_is_reset_to_inf[pyloop]",
"tests/test_client_ws.py::test_ws_connect_read_timeout_reset_to_max[pylo... | [
"tests/test_client_session.py::test_close_coro[pyloop]",
"tests/test_client_session.py::test_init_headers_simple_dict[pyloop]",
"tests/test_client_session.py::test_init_headers_list_of_tuples[pyloop]",
"tests/test_client_session.py::test_init_headers_MultiDict[pyloop]",
"tests/test_client_session.py::test_i... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
c0526c6035127ebe7e63040d4b3e5fe088fb38b3 | 2023-11-24 22:43:35 | docker.io/swerebenchv2/bimmerconnected-bimmer-connected:584-c0526c6 | bimmerconnected__bimmer_connected-584 | Method: MyBMWAccount.__init__(self, username: str, password: str, region: Regions, use_metric_units: Optional[bool] = None, **kwargs)
Location: bimmer_connected/account.py – class MyBMWAccount
Inputs:
- **username** – MyBMW account user name (str)
- **password** – MyBMW account password (str)
- **region** – Enum Region... | python | Apache-2.0 | diff --git a/bimmer_connected/account.py b/bimmer_connected/account.py
index f948625..0f3d2da 100644
--- a/bimmer_connected/account.py
+++ b/bimmer_connected/account.py
@@ -48,18 +48,25 @@ class MyBMWAccount:
observer_position: InitVar[GPSPosition] = None
"""Optional. Required for getting a position on older ... | Remove use_metric_units parameter
<!--
Thanks for your contribution to bimmer_connected!
-->
## Breaking change
<!--
If your PR contains a breaking change, please explain that change here.
Note: Remove this section if this PR is NOT a breaking change.
-->
Removes the defunct `use_metric_units` parameter. ... | use_metric_units=False has no impact
### Describe the issue
Using the python library I am trying to set ```use_metric_units=False``` however, it is still returning the values in KM however, on the property ```mileage``` ValueWithUnit(value=61366, unit='mi') the actual value is in KM the unit is in miles.
### Expected... | bimmerconnected/bimmer_connected | diff --git a/bimmer_connected/tests/conftest.py b/bimmer_connected/tests/conftest.py
index 49c5329..035ad90 100644
--- a/bimmer_connected/tests/conftest.py
+++ b/bimmer_connected/tests/conftest.py
@@ -41,8 +41,8 @@ def bmw_log_all_responses(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setattr("bimmer_connected.ac... | [
"bimmer_connected/tests/test_account.py::test_set_use_metric_units"
] | [
"bimmer_connected/tests/test_account.py::test_login_row_na",
"bimmer_connected/tests/test_account.py::test_login_refresh_token_row_na_expired",
"bimmer_connected/tests/test_account.py::test_login_refresh_token_row_na_401",
"bimmer_connected/tests/test_account.py::test_login_refresh_token_row_na_invalid",
"b... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
8a486bf558c6b4bebf431d0d8932a664bfda8723 | 2025-03-17 16:43:31 | docker.io/swerebenchv2/vacanza-holidays:2354-8a486bf | vacanza__holidays-2354 | Class: Fiji.__init__(self, islamic_show_estimated: bool = True, *args, **kwargs)
Location: holidays/countries/fiji.py
Inputs:
- islamic_show_estimated (bool, optional): when True, adds “(estimated)” label to Islamic holidays whose dates are estimated.
- *args, **kwargs: forwarded to the base HolidayBase, typically incl... | python | MIT | diff --git a/README.md b/README.md
index 3a732d1e..a260e8f0 100644
--- a/README.md
+++ b/README.md
@@ -99,7 +99,7 @@ and detailed information.
## Available Countries
-We currently support 160 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 161 country codes. The sta... | Add Fiji 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 Fiji holidays
Closes #1180
## Type of change
<!--
Type of change you want to introduce. Please, ... | Add Fiji holidays
Links:
- https://www.fiji.gov.fj/About-Fiji/Public-Holidays
- https://www.timeanddate.com/holidays/fiji/
- https://en.wikipedia.org/wiki/List_of_festivals_in_Fiji | vacanza/holidays | diff --git a/tests/countries/test_fiji.py b/tests/countries/test_fiji.py
new file mode 100644
index 00000000..f35badd1
--- /dev/null
+++ b/tests/countries/test_fiji.py
@@ -0,0 +1,342 @@
+# holidays
+# --------
+# A fast, efficient Python library for generating country, province and state
+# specific sets of holiday... | [
"tests/countries/test_fiji.py::TestFiji::test_2019",
"tests/countries/test_fiji.py::TestFiji::test_2020",
"tests/countries/test_fiji.py::TestFiji::test_2021",
"tests/countries/test_fiji.py::TestFiji::test_2022",
"tests/countries/test_fiji.py::TestFiji::test_2023",
"tests/countries/test_fiji.py::TestFiji::... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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://www.fiji.gov.fj/About-Fiji/Public-Holidays",
... |
26904fdb366fd3fb7be7fbf3946dc07966b26e58 | 2023-03-06 22:24:02 | docker.io/swerebenchv2/getmoto-moto:6022-26904fd | getmoto__moto-6022 | Method: EC2Client.create_vpc_endpoint(self, VpcId, ServiceName, VpcEndpointType, PolicyDocument=None, **kwargs)
Location: boto3 EC2 client (Moto backend implementation in moto/ec2/models/vpcs.py)
Inputs:
- VpcId (str) – identifier of the VPC in which to create the endpoint.
- ServiceName (str) – name of the AWS service... | python | Apache-2.0 | diff --git a/moto/ec2/models/vpcs.py b/moto/ec2/models/vpcs.py
index 5ccdcbf02..f56d6fc5f 100644
--- a/moto/ec2/models/vpcs.py
+++ b/moto/ec2/models/vpcs.py
@@ -40,6 +40,14 @@ DEFAULT_VPC_ENDPOINT_SERVICES: List[Dict[str, str]] = []
class VPCEndPoint(TaggedEC2Resource, CloudFormationModel):
+
+ DEFAULT_POLICY =... | EC2: create_vpc_endpoint() should use default policy doc if not provided
Fixes #5602 | add default policy document to create_vpc_endpoint
When I don't specify a policy document to create_vpc_endpoint function, moto does not create a default full access policy to the endpoint like AWS does:
> PolicyDocument (string) -- (Interface and gateway endpoints) A policy to attach to the endpoint that controls acc... | getmoto/moto | diff --git a/tests/test_ec2/test_vpcs.py b/tests/test_ec2/test_vpcs.py
index f7c8759a6..475d311aa 100644
--- a/tests/test_ec2/test_vpcs.py
+++ b/tests/test_ec2/test_vpcs.py
@@ -2,7 +2,7 @@ import pytest
from botocore.exceptions import ClientError
import boto3
-
+import json
import sure # noqa # pylint: disable=un... | [
"tests/test_ec2/test_vpcs.py::test_create_vpc_endpoint__policy"
] | [
"tests/test_ec2/test_vpcs.py::test_creating_a_vpc_in_empty_region_does_not_make_this_vpc_the_default",
"tests/test_ec2/test_vpcs.py::test_create_default_vpc",
"tests/test_ec2/test_vpcs.py::test_create_multiple_default_vpcs",
"tests/test_ec2/test_vpcs.py::test_create_and_delete_vpc",
"tests/test_ec2/test_vpc... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
a5a1a704ee9ce8d835b90e7081e2c935f9ada5f2 | 2023-02-21 14:32:52 | docker.io/swerebenchv2/datadog-guarddog:176-a5a1a70 | datadog__guarddog-176 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/guarddog/cli.py b/guarddog/cli.py
index 7fdcb36..0279291 100644
--- a/guarddog/cli.py
+++ b/guarddog/cli.py
@@ -33,6 +33,8 @@ AVAILABLE_LOG_LEVELS = {
}
AVAILABLE_LOG_LEVELS_NAMES = list(map(lambda level: logging.getLevelName(level), AVAILABLE_LOG_LEVELS))
+log = logging.getLogger('guarddog')
+
def ... | Consider 'guarddog xxx scan .' a local target (fixes #175)
Running `guarddog npm scan .` should scan the local current directory, instead of scanning a remote package called `.` | NPM: not detecting postinstall scripts
Hello team! Very cool tool you have created, and I am glad for the NPM support!
When testing this tool against different malicious packages I get no results, I took som examples from https://github.com/spaceraccoon/npm-zoo
For example:
https://github.com/spaceraccoon/npm-zo... | DataDog/guarddog | diff --git a/tests/core/test_cli.py b/tests/core/test_cli.py
index 1326a96..8228d55 100644
--- a/tests/core/test_cli.py
+++ b/tests/core/test_cli.py
@@ -8,6 +8,7 @@ def test_is_local_target():
assert guarddog.cli.is_local_target("/tmp/foo")
assert guarddog.cli.is_local_target("./foo")
assert guarddog.cli... | [
"tests/core/test_cli.py::test_is_local_target"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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://github.com/spaceraccoon/npm-zoo",
"https:/... |
421228a1df0b5767a2b8c11ef15e90039218133c | 2024-08-09 00:08:13 | docker.io/swerebenchv2/dynaconf-dynaconf:1168-421228a | dynaconf__dynaconf-1168 | Method: Settings.set(self, key: str, value: Any)
Location: dynaconf/base.py → Settings class
Inputs: `key` – dotted‑path string (e.g., `"Abc.Xyz.Uv"`); `value` – any JSON‑serialisable object.
Outputs: Returns ``None``; stores the value in the settings hierarchy, creating intermediate containers as needed.
Descr... | python | MIT | diff --git a/dynaconf/utils/functional.py b/dynaconf/utils/functional.py
index f633279..ac084cf 100644
--- a/dynaconf/utils/functional.py
+++ b/dynaconf/utils/functional.py
@@ -63,7 +63,7 @@ class LazyObject:
raise TypeError(f"can't delete {name}.")
if self._wrapped is empty:
self._se... | fix: del attr wouldnt work with lowercase
Closes #1042
Notes:
* The first level is always uppercase internally and calling del with different case attr-name would fail.
* Currently we only support deleting a nested level item with exact matching (not sure if needs "fixing"). | [bug] Deleting entry raises an error
**Describe the bug**
As part of my tests, I want to temporarily remove a section of my config to ensure my application reacts properly to this section being missing.
I try `del config.some_section` which produces the following error:
```
In [1]: config
Out[1]: <dynaconf.b... | dynaconf/dynaconf | diff --git a/tests/test_base.py b/tests/test_base.py
index d03d12e..1895f65 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -25,6 +25,26 @@ def test_deleted_raise(settings):
assert settings.exists("TODELETE") is False
assert settings.get("TODELETE") is None
+ # case: del using lowercase when ... | [
"tests/test_base.py::test_deleted_raise"
] | [
"tests/test_base.py::test_delete_and_set_again",
"tests/test_base.py::test_accepts_only_upper",
"tests/test_base.py::test_populate_obj",
"tests/test_base.py::test_populate_obj_with_keys",
"tests/test_base.py::test_populate_obj_with_ignore",
"tests/test_base.py::test_call_works_as_get",
"tests/test_base.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
90de738edddded5a48b56a324d75573901e76c03 | 2025-01-17 19:22:57 | docker.io/swerebenchv2/dwavesystems-dwave-cloud-client:680-90de738 | dwavesystems__dwave-cloud-client-680 | Method: Client.close(self)
Location: dwave.cloud.client.base.Client
Inputs: none (optional `wait` parameter may be present but defaults to True) – should be called when client resources need to be released.
Outputs: shuts down internal thread pools, cancels pending work, joins queues, and marks the client as un‑i... | python | Apache-2.0 | diff --git a/dwave/cloud/client/base.py b/dwave/cloud/client/base.py
index b000c9a..7eea948 100644
--- a/dwave/cloud/client/base.py
+++ b/dwave/cloud/client/base.py
@@ -65,6 +65,7 @@ from plucky import pluck
from dwave.cloud import api
from dwave.cloud.package_info import __packagename__, __version__
from dwave.clou... | Robust client close
Close #217. | Robust `Client.close()`, no client/solver/future reuse after close
After `Client.close()`:
- all workers have to be killed, immediately if user doesn't want to wait for results (which they are now too, but in a blocking manner)
- all solvers have to be invalidated, so no future submissions are possible (channel is cl... | dwavesystems/dwave-cloud-client | diff --git a/tests/test_client.py b/tests/test_client.py
index d39eacc..88296a7 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -20,8 +20,11 @@ test_mock_solver_loading.py duplicates some of these tests against a mock server
import importlib
import json
+import sys
+import threading
import time
im... | [
"tests/test_client.py::ClientConstruction::test_boolean_options_parsed_from_config",
"tests/test_client.py::ClientConstruction::test_class_defaults",
"tests/test_client.py::ClientConstruction::test_client_cert_from_config",
"tests/test_client.py::ClientConstruction::test_client_cert_from_kwargs",
"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": "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/dwavesystems/dwave-cloud-client/iss... |
f3b3306adf2efd416224d6881c7e04666c8281ae | 2025-01-27 18:59:46 | docker.io/swerebenchv2/neurodatawithoutborders-pynwb:2023-f3b3306 | neurodatawithoutborders__pynwb-2023 | Method: OpticalSeries.__init__(self, name: str, distance: float = None, field_of_view: Union[ArrayData, Data, TimeSeries] = None, orientation: str = None, **kwargs)
Location: src/pynwb/image.py (class OpticalSeries, inherits ImageSeries)
Inputs:
- name (str): required identifier for the series.
- distance (float, op... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc1d77ee..65f70bdb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@
### Enhancements and minor changes
- Added `__all__` to modules. @bendichter [#2021](https://github.com/NeurodataWithoutBorders/pynwb/pull/2021)
- Added `pynwb.read_nwb` convenience method t... | Add optional parameters to OpticalSeries constructor
fix #1616
# Motivation
The `OpticalSeries` class in PyNWB currently requires the fields 'distance', 'orientation', and 'field_of_view' in its constructor, but according to the NWB schema these fields should be optional. This PR fixes this discrepancy by making... | [Bug]: OpticalSeries distance, orientation, and field of view should be optional
### What happened?
The current schema says that these fields should be optional:
https://github.com/NeurodataWithoutBorders/nwb-schema/blob/dev/core/nwb.image.yaml#L131
The docval for `OpticalSeries.__init__` says that they are requir... | NeurodataWithoutBorders/pynwb | diff --git a/tests/integration/hdf5/test_image.py b/tests/integration/hdf5/test_image.py
index 4cc731d4..b89f82c5 100644
--- a/tests/integration/hdf5/test_image.py
+++ b/tests/integration/hdf5/test_image.py
@@ -53,3 +53,35 @@ class TestOpticalSeriesIO(NWBH5IOMixin, TestCase):
def getContainer(self, nwbfile):
... | [
"tests/integration/hdf5/test_image.py::TestOpticalSeriesOptionalFieldsIO::test_optional_fields",
"tests/integration/hdf5/test_image.py::TestOpticalSeriesOptionalFieldsIO::test_roundtrip",
"tests/integration/hdf5/test_image.py::TestOpticalSeriesOptionalFieldsIO::test_roundtrip_export",
"tests/unit/test_image.p... | [
"tests/integration/hdf5/test_image.py::TestImageSeriesIO::test_roundtrip",
"tests/integration/hdf5/test_image.py::TestImageSeriesIO::test_roundtrip_export",
"tests/integration/hdf5/test_image.py::TestOpticalSeriesIO::test_roundtrip",
"tests/integration/hdf5/test_image.py::TestOpticalSeriesIO::test_roundtrip_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": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/NeurodataWithoutBorders/nwb-schema/bl... |
d8ed8f04d17b0a44f0dce2c62d5392f6e4e07e95 | 2022-07-26 15:05:41 | docker.io/swerebenchv2/cloudtools-troposphere:2064-d8ed8f0 | cloudtools__troposphere-2064 | Method: Globals.__init__(self, **kwargs)
Location: troposphere/serverless.py
Inputs: Arbitrary keyword arguments representing allowed Globals properties (e.g., Function). Unexpected keys trigger an AttributeError; properties with incorrect types trigger a TypeError.
Outputs: No return value. The instance is constructed... | python | BSD-2-Clause | diff --git a/troposphere/serverless.py b/troposphere/serverless.py
index 18f153bc..452c4d49 100644
--- a/troposphere/serverless.py
+++ b/troposphere/serverless.py
@@ -656,31 +656,7 @@ class Application(AWSObject):
mutually_exclusive(self.__class__.__name__, self.properties, conds)
-class GlobalsHelperFn(AW... | Add support for list types and validator functions in GlobalsHelperFn type check
Closes #2063
I tried extracting the function to `troposhpere.validators.__init__.py` as it made more sense to have it there, but its dependence on `AWSHelperFn` created a circular import with `troposhpere.__init__.py`. Fixing that woul... | GlobalsHelperFn type validation crashes for list types or validation functions
### Problem statement
The `*Globals` classes defined in https://github.com/cloudtools/troposphere/blob/main/troposphere/serverless.py have some properties with their type specified as `[T]` or as validation functions (e.g. validate_memory_s... | cloudtools/troposphere | diff --git a/tests/test_serverless.py b/tests/test_serverless.py
index f4fcac04..1ca0bc70 100644
--- a/tests/test_serverless.py
+++ b/tests/test_serverless.py
@@ -431,10 +431,22 @@ class TestServerless(unittest.TestCase):
)
t.to_json()
+ with self.assertRaises(AttributeError):
+ Gl... | [
"tests/test_serverless.py::TestServerless::test_globals"
] | [
"tests/test_serverless.py::TestServerless::test_DLQ",
"tests/test_serverless.py::TestServerless::test_api_auth_resource_policy",
"tests/test_serverless.py::TestServerless::test_api_no_definition",
"tests/test_serverless.py::TestServerless::test_api_with_domain",
"tests/test_serverless.py::TestServerless::te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/cloudtools/troposphere/blob/main/tr... |
f703decd42a39c891cc00c12040ff7fb480d894a | 2023-07-23 21:34:42 | docker.io/swerebenchv2/getmoto-moto:6557-f703dec | getmoto__moto-6557 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/cloudfront/models.py b/moto/cloudfront/models.py
index b79e3ad9d..88375cf98 100644
--- a/moto/cloudfront/models.py
+++ b/moto/cloudfront/models.py
@@ -104,10 +104,8 @@ class CustomOriginConfig:
self.keep_alive = config.get("OriginKeepaliveTimeout") or 5
self.protocol_policy = config.... | Cloudfront: update_distribution() now supports DefaultRootObject
Fixes #6546
Also fixes a bug where `update` fails when no `Aliases` or `OriginSslProtocols` are provided | CloudFront Update Distribution Expecting Something That Isn't Given Via Boto3
# CloudFront Update Distribution Expecting Something That Isn't Given Via Boto3
# Environment:
```
pip list moto
Package Version
------------------------- ---------
atomicwrites 1.4.1
attrs ... | getmoto/moto | diff --git a/tests/test_cloudfront/test_cloudfront.py b/tests/test_cloudfront/test_cloudfront.py
index ab2784314..5a42cbdb6 100644
--- a/tests/test_cloudfront/test_cloudfront.py
+++ b/tests/test_cloudfront/test_cloudfront.py
@@ -223,3 +223,27 @@ def test_update_distribution_dist_config_not_set():
assert typename =... | [
"tests/test_cloudfront/test_cloudfront.py::test_update_default_root_object"
] | [
"tests/test_cloudfront/test_cloudfront.py::test_update_distribution",
"tests/test_cloudfront/test_cloudfront.py::test_update_distribution_no_such_distId",
"tests/test_cloudfront/test_cloudfront.py::test_update_distribution_distId_is_None",
"tests/test_cloudfront/test_cloudfront.py::test_update_distribution_If... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
89651f45910f4b41a79c58358d9f5beca4197fc1 | 2016-06-19 20:45:17 | docker.io/swerebenchv2/axelrod-python-axelrod:638-89651f4 | axelrod-python__axelrod-638 | Method: FSMPlayer.reset(self)
Location: axelrod.strategies.finite_state_machines.FSMPlayer
Inputs: self – an instance of a subclass of FSMPlayer (e.g., any finite‑state‑machine strategy).
Outputs: None (the method returns None). Side‑effects: Calls the base Player.reset() and then restores the player's internal SimpleF... | python | custom-check-github | diff --git a/axelrod/strategies/finite_state_machines.py b/axelrod/strategies/finite_state_machines.py
index defc4770..1c231d43 100644
--- a/axelrod/strategies/finite_state_machines.py
+++ b/axelrod/strategies/finite_state_machines.py
@@ -54,6 +54,7 @@ class FSMPlayer(Player):
initial_state = 1
... | Fixing reset method for FSMs
Closes #637
This also adds an integration test that checks that repeating matches with deterministic well behaved players gives the same outcome (this is how I found #637).
This 98d1837 adds the test (which should fail assuming hypothesis stumbles on the same error I was getting loca... | Finite state machine players don't reset properly
```
>>> import axelrod as axl
>>> tft = axl.TitForTat()
>>> predator = axl.Predator()
>>> predator.fsm.state
1
>>> m = axl.Match((tft, predator), 2)
>>> m.play()
[('C', 'C'), ('C', 'D')]
>>> predator.fsm.state
2
>>> predator.reset()
>>> predator.fsm.state
... | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/integration/test_matches.py b/axelrod/tests/integration/test_matches.py
new file mode 100644
index 00000000..b6241145
--- /dev/null
+++ b/axelrod/tests/integration/test_matches.py
@@ -0,0 +1,25 @@
+"""Tests for some expected match behaviours"""
+import unittest
+import axelrod
+
+from hypothe... | [
"axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats",
"axelrod/tests/unit/test_finite_state_machines.py::TestFSMPlayer::test_reset_initial_state",
"axelrod/tests/unit/test_finite_state_machines.py::TestFortress3::test_reset_initial_state",
"axelrod/tests/unit/test_finite_state_... | [
"axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_clone",
"axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_initialisation",
"axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_match_attributes",
"axelrod/tests/unit/test_finite_state_machines.py::TestPlayer:... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
6d7352eb1d0baa78252d96779b05c904d0b8a2e9 | 2023-06-07 02:07:41 | docker.io/swerebenchv2/celery-celery:8301-6d7352e | celery__celery-8301 | Method: celery.app.task.Task.set(self, *args, **options)
Location: celery/app/task.py
Inputs:
- *args: positional arguments for the task (optional).
- **options: keyword options; now accepts additional keys **argsrepr** (str) and **kwargsrepr** (str) to provide custom string representations used for logging.
... | python | custom-check-github | diff --git a/celery/app/trace.py b/celery/app/trace.py
index 59bcb5182..3933d01a4 100644
--- a/celery/app/trace.py
+++ b/celery/app/trace.py
@@ -250,8 +250,8 @@ class TraceInfo:
safe_repr(eobj),
safe_str(einfo.traceback),
einfo.exc_info,
- safe_repr(req.args),
- ... | Use argsrepr and kwargsrepr in LOG_RECEIVED
*Note*: Before submitting this pull request, please review our [contributing
guidelines](https://docs.celeryq.dev/en/main/contributing.html).
## Description
<!-- Please describe your pull request.
NOTE: All patches should be made against main, not a maintenance bran... | task args and kwargs in LOG_RECEIVED and LOG_SUCCESS should use argsrepr and kwargsrepr
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
... | celery/celery | diff --git a/celery/contrib/testing/worker.py b/celery/contrib/testing/worker.py
index d01e82c6b..fa8f68896 100644
--- a/celery/contrib/testing/worker.py
+++ b/celery/contrib/testing/worker.py
@@ -1,4 +1,5 @@
"""Embedded workers for integration tests."""
+import logging
import os
import threading
from contextlib im... | [
"t/unit/worker/test_strategy.py::test_default_strategy_proto2::test_log_task_received",
"t/unit/worker/test_strategy.py::test_default_strategy_proto2::test_log_eta_task_received",
"t/unit/worker/test_strategy.py::test_default_strategy_proto2::test_log_task_received_custom",
"t/unit/worker/test_strategy.py::te... | [
"t/integration/test_tasks.py::test_tasks::test_simple_call",
"t/unit/worker/test_strategy.py::test_proto1_to_proto2::test_message_without_args",
"t/unit/worker/test_strategy.py::test_proto1_to_proto2::test_message_without_kwargs",
"t/unit/worker/test_strategy.py::test_proto1_to_proto2::test_message_kwargs_not... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
ce26f3caf9e78dc1ae8660e2f35203d40db820ec | 2020-12-03 19:29:40 | docker.io/swerebenchv2/irrdnet-irrd:443-ce26f3c | irrdnet__irrd-443 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/admins/configuration.rst b/docs/admins/configuration.rst
index 1a8d345..908c614 100644
--- a/docs/admins/configuration.rst
+++ b/docs/admins/configuration.rst
@@ -142,6 +142,8 @@ If a `SIGHUP` is sent and the new configuration is invalid, errors will be
written to the logfile, but IRRd will keep runn... | Fix #386 - Reject unknown settings in config and get_setting() | Reject unknown settings in get_setting() and config validation
The get_setting() method currently allows asking for unknown settings. This is kinda useful, because many possible settings may be left empty in the config file. However, it is risky when mistyping the name of a setting in the code, and if the same error is... | irrdnet/irrd | diff --git a/irrd/conf/test_conf.py b/irrd/conf/test_conf.py
index df392a0..e6580aa 100644
--- a/irrd/conf/test_conf.py
+++ b/irrd/conf/test_conf.py
@@ -64,7 +64,7 @@ class TestConfiguration:
'prefixes': ['10/8'],
'asns': ['23456', '10-20']
},
- ... | [
"irrd/conf/test_conf.py::TestConfiguration::test_load_invalid_config",
"irrd/conf/test_conf.py::TestGetSetting::test_get_setting_unknown"
] | [
"irrd/conf/test_conf.py::TestConfiguration::test_file_not_existing",
"irrd/conf/test_conf.py::TestConfiguration::test_load_invalid_yaml",
"irrd/conf/test_conf.py::TestConfiguration::test_load_string_file",
"irrd/conf/test_conf.py::TestConfiguration::test_load_empty_config",
"irrd/conf/test_conf.py::TestConf... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
dc7d71bd1a2d143f10fa8fe91d31292bdf8f5113 | 2025-04-17 03:16:40 | docker.io/swerebenchv2/python-control-python-control:1145-dc7d71b | python-control__python-control-1145 | Function: nyquist_plot(*systems, omega=None, Plot=True, **kwargs, ax=None)
Location: control/freqplot.py
Inputs:
- *systems: one or more LTI systems (TransferFunction, StateSpace, etc.) to be plotted.
- omega (array‑like, optional): frequency points at which to evaluate the Nyquist curve.
- Plot (bool, optional, defaul... | python | BSD-3-Clause | diff --git a/control/ctrlplot.py b/control/ctrlplot.py
index dbdb4e1e..b1a989ce 100644
--- a/control/ctrlplot.py
+++ b/control/ctrlplot.py
@@ -355,7 +355,7 @@ def _process_ax_keyword(
the calling function to do the actual axis creation (needed for
curvilinear grids that use the AxisArtist module).
- Lega... | fix ax processing bug in {nyquist,nichols,describing_function}_plot
This PR fixes #1144 (also pointed out in [#1143](https://github.com/python-control/python-control/issues/1143#issuecomment-2780864522)) where the `ax` keyword was being ignored in the `nyquist_plot` command.
Turns out that there were several related... | Nyquist plot uses incorrect subplot axes
```python3
import control as ctl
import matplotlib.pyplot as plt
P = ctl.tf([1], [2, 1])
fig, ax = plt.subplots(2,2)
ctl.nyquist_plot(P, ax=ax[1,0])
plt.show()
```
The nyquist plot always shows up in the botom right corner, no matter what index into `ax` I use.
When I replace... | python-control/python-control | diff --git a/control/tests/ctrlplot_test.py b/control/tests/ctrlplot_test.py
index 958d855b..bf8a075a 100644
--- a/control/tests/ctrlplot_test.py
+++ b/control/tests/ctrlplot_test.py
@@ -243,6 +243,15 @@ def test_plot_ax_processing(resp_fcn, plot_fcn):
# No response function available; just plot the data
... | [
"control/tests/ctrlplot_test.py::test_plot_ax_processing[frequency_response-nichols_plot]",
"control/tests/ctrlplot_test.py::test_plot_ax_processing[describing_function_response-describing_function_plot]",
"control/tests/ctrlplot_test.py::test_plot_ax_processing[nyquist_response-nyquist_plot]"
] | [
"control/tests/ctrlplot_test.py::test_find_respplot_functions",
"control/tests/ctrlplot_test.py::test_plot_ax_processing[frequency_response-bode_plot]",
"control/tests/ctrlplot_test.py::test_plot_ax_processing[singular_values_response-singular_values_plot]",
"control/tests/ctrlplot_test.py::test_plot_ax_proce... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
a5d11a227a6d7828ed641464e78ffe71996511fc | 2020-10-29 12:06:27 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2653-a5d11a2 | hypothesisworks__hypothesis-2653 | 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..ffafcd56c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: minor
+
+:func:`~hypothesis.strategies.from_type` now knows how to resolve :pep:`585`
+parameterized standard collec... | Support PEP 585 parametrized standard types
[PEP 585](https://www.python.org/dev/peps/pep-0585/), the new-in-Python 3.9 feature that enables type annotations like `list[int]` rather than `typing.List[int]`, turns out to require some minor patches in `st.from_type()`.
This PR makes those changes, and closes #2629 ... | Test `st.from_type()` on builtin generics from Python 3.9
Python 3.9 is coming out soon! Happily, we're already running it in our CI - so anything that worked before still works on the new Python. There are however also *new features*, like [PEP 585](https://www.python.org/dev/peps/pep-0585/) (type annotations using ... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/conftest.py b/hypothesis-python/tests/conftest.py
index 68611f585..d43892c71 100644
--- a/hypothesis-python/tests/conftest.py
+++ b/hypothesis-python/tests/conftest.py
@@ -29,6 +29,8 @@ run()
# Skip collection of tests which require the Django test runner,
# or that don't work on ... | [
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple1_as_generic",
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple2_as_generic",
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple_variadic_as_generic",
"hypothesis-py... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://www.python.org/dev/peps/pep-0585/",
"https... |
88326dde85f74b7fdfc221c7c1add7aed7177a07 | 2023-01-22 23:40:24 | docker.io/swerebenchv2/pytask-dev-pytask:337-88326dd | pytask-dev__pytask-337 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/source/changes.md b/docs/source/changes.md
index c53da9e..767ea8c 100644
--- a/docs/source/changes.md
+++ b/docs/source/changes.md
@@ -5,7 +5,12 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
releases are available on [PyPI](https://pypi.org/project/pytask) and
[A... | Fix bug when passing no path on the command line.
Closes #342. | DOC: Change in default in 0.3.0 ?
Seems like with 0.3.0, explicitly running
```console
$ pytask .
```
is required as opposed to
```console
$ pytask
```
I could not find the change in behavior in the changelog, maybe I was too quick? | pytask-dev/pytask | diff --git a/tests/test_clean.py b/tests/test_clean.py
index 40303ad..c29a2a0 100644
--- a/tests/test_clean.py
+++ b/tests/test_clean.py
@@ -1,7 +1,9 @@
from __future__ import annotations
+import os
import subprocess
import textwrap
+from pathlib import Path
import pytest
from _pytask.git import init_repo
@@ -... | [
"tests/test_clean.py::test_clean_with_auto_collect",
"tests/test_collect_command.py::test_collect_task_in_root_dir",
"tests/test_execute.py::test_execute_w_autocollect"
] | [
"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": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
ed5d051511bdbffe75f2fe24aea19dd3d2301a88 | 2024-02-27 23:17:58 | docker.io/swerebenchv2/dask-contrib-dask-expr:901-ed5d051 | dask-contrib__dask-expr-901 | Method: DataFrame.__setitem__(self, key, value)
Location: dask_expr/_collection.py → class DataFrame
Inputs:
- **key**: list‑like collection of column labels used for assignment; may be an empty list `[]`.
- **value**: a Dask‑Expr DataFrame or Series expression that will be assigned to the columns specified by *key* (... | python | BSD-3-Clause | diff --git a/dask_expr/_collection.py b/dask_expr/_collection.py
index 2094e7d..2d697a7 100644
--- a/dask_expr/_collection.py
+++ b/dask_expr/_collection.py
@@ -2455,9 +2455,9 @@ class DataFrame(FrameBase):
args.extend([k, v])
if len(args) > 0:
- result = expr.Assign(result, *args)
+ ... | Fix assign for empty indexer
closes #900 | RecursionError after assigning empty list of columns
Ran into this during some unittesting. Although a bit odd, this code runs fine with query-planning disabled
```python
import dask
dask.config.set({'dataframe.query-planning': False})
import dask.dataframe as dd
import pandas as pd
ddf = dd.from_pandas(pd.Data... | dask-contrib/dask-expr | diff --git a/dask_expr/tests/test_collection.py b/dask_expr/tests/test_collection.py
index c113432..4e317b5 100644
--- a/dask_expr/tests/test_collection.py
+++ b/dask_expr/tests/test_collection.py
@@ -270,6 +270,13 @@ def test_filter_pushdown_reducer_in_predicate():
assert q.expr.frame.frame.frame.columns == ["a",... | [
"dask_expr/tests/test_collection.py::test_assign_empty_columns"
] | [
"dask_expr/tests/test_collection.py::test_del",
"dask_expr/tests/test_collection.py::test_info[True-None-True]",
"dask_expr/tests/test_collection.py::test_info[True-None-False]",
"dask_expr/tests/test_collection.py::test_info[True-None-None]",
"dask_expr/tests/test_collection.py::test_info[True-StringIO-Tru... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
b69d8561417958d0035f728715a9338ee2057ae4 | 2016-08-04 15:41:44 | docker.io/swerebenchv2/hoburg-gpkit:791-b69d856 | hoburg__gpkit-791 | No new interfaces are introduced. | python | MIT | diff --git a/gpkit/varkey.py b/gpkit/varkey.py
index f274b1b..2024264 100644
--- a/gpkit/varkey.py
+++ b/gpkit/varkey.py
@@ -63,7 +63,8 @@ class VarKey(object):
if ureg and "units" in self.descr:
units = self.descr["units"]
if isinstance(units, Strings):
- units = units... | fix units creation bug
closes #776 | Unsupported operation for units
Maybe this is out of scope, but I think it would be nice if this worked:
```
In [1]: from gpkit import Variable
In [2]: x = Variable('x', 's^0.5/m^0.5')
In [3]: y = Variable('y', '(m/s)^-0.5')
---------------------------------------------------------------------------
TypeErr... | hoburg/gpkit | diff --git a/gpkit/tests/t_vars.py b/gpkit/tests/t_vars.py
index bd2fb9c..41d7925 100644
--- a/gpkit/tests/t_vars.py
+++ b/gpkit/tests/t_vars.py
@@ -114,6 +114,11 @@ class TestVariable(unittest.TestCase):
else:
self.assertEqual(hash(x1), hash(xu))
+ def test_unit_parsing(self):
+ x = V... | [
"gpkit/tests/t_vars.py::TestVariable::test_unit_parsing"
] | [
"gpkit/tests/t_vars.py::TestVarKey::test_dict_key",
"gpkit/tests/t_vars.py::TestVarKey::test_eq_neq",
"gpkit/tests/t_vars.py::TestVarKey::test_init",
"gpkit/tests/t_vars.py::TestVarKey::test_repr",
"gpkit/tests/t_vars.py::TestVarKey::test_units_attr",
"gpkit/tests/t_vars.py::TestVariable::test_init",
"g... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.