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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
476ebe46f761a1b75096d895ce24170439f46680 | 2019-03-08 07:54:41 | docker.io/swerebenchv2/timothycrosley-isort:892-476ebe4 | timothycrosley__isort-892 | Method: SortImports.__init__(self, file_contents: str, case_sensitive: bool = False, order_by_type: bool = True, force_single_line: bool = False, **kwargs)
Location: isort/isort.py
Inputs:
- **file_contents** – the raw Python source code (or a fragment) whose import statements will be processed.
- **case_sensitive** – ... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7ebed58..c5826060 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@ Changelog
### 4.3.13 - March 6, 2019 - hot fix release
- Fixed the inability to accurately determine import section when a mix of conda and virtual environments are used.
- Fixed some output... | Fix issue #890
Closes #890 | Add support for PyCharm style alphabetic sorting (edited from: all upper cases name is sorted top most)
Below is the sorted result using my isort configuration, you could see the both 'BALL' and `RC` is placed at the top most. The name `Action` is placed below 'BALL' and 'RC' is not correct for me:
```python
from p... | timothycrosley/isort | diff --git a/test_isort.py b/test_isort.py
index fb095fc7..c4b3c241 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2845,3 +2845,24 @@ def test_unwrap_issue_762():
test_input = ('from os.\\\n'
' path import (join, split)')
assert SortImports(file_contents=test_input).output == 'from o... | [
"test_isort.py::test_ensure_support_for_non_typed_but_cased_alphabetic_sort_issue_890"
] | [
"test_isort.py::test_happy_path",
"test_isort.py::test_code_intermixed",
"test_isort.py::test_correct_space_between_imports",
"test_isort.py::test_sort_on_number",
"test_isort.py::test_line_length",
"test_isort.py::test_output_modes",
"test_isort.py::test_qa_comment_case",
"test_isort.py::test_length_... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7b77a6faec6956a8e0bdec844b615e59baf1ff52 | 2016-03-29 05:35:53 | docker.io/swerebenchv2/pypa-packaging:71-7b77a6f | pypa__packaging-71 | No new interfaces are introduced. | python | custom-check-github | diff --git a/packaging/markers.py b/packaging/markers.py
index 5495137..1fa2fcf 100644
--- a/packaging/markers.py
+++ b/packaging/markers.py
@@ -73,9 +73,14 @@ VARIABLE = (
L("python_version") |
L("sys_platform") |
L("os_name") |
+ L("os.name") | # PEP-345
+ L("sys.platform") | # PEP-345
+ L("... | Re-add support for deprecated PEP-345 markers
packaging.markers did not support the same environment markers that
PEP 345 specified, and they are still in use.
Closes #70
A release when this merges would be lovely. | Marker support for `platform.python_implementation` lost
When Setuptools adopted Packaging 16.x for the marker implementation, it [lost support for](https://bitbucket.org/pypa/setuptools/issues/503/) the deprecated `platform.python_implementation` marker, which prevents packages using that deprecated marker from instal... | pypa/packaging | diff --git a/tests/test_markers.py b/tests/test_markers.py
index 35a49c0..60ad51f 100644
--- a/tests/test_markers.py
+++ b/tests/test_markers.py
@@ -19,12 +19,17 @@ from packaging.markers import (
VARIABLES = [
- "extra", "implementation_version", "implementation_version", "os_name",
+ "extra", "implementati... | [
"tests/test_markers.py::TestMarker::test_parses_pep345_valid[os.name",
"tests/test_markers.py::TestMarker::test_parses_pep345_valid[sys.platform",
"tests/test_markers.py::TestMarker::test_parses_pep345_valid[platform.version",
"tests/test_markers.py::TestMarker::test_parses_pep345_valid[platform.machine",
"... | [
"tests/test_markers.py::TestNode::test_accepts_value[one]",
"tests/test_markers.py::TestNode::test_accepts_value[two]",
"tests/test_markers.py::TestNode::test_accepts_value[None]",
"tests/test_markers.py::TestNode::test_accepts_value[3]",
"tests/test_markers.py::TestNode::test_accepts_value[5]",
"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": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://bitbucket.org/pypa/setuptools/issues/503/"
]... |
65b4b2102b94463af95a94a9994e77cfaf12f275 | 2021-11-16 11:16:42 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3152-65b4b21 | hypothesisworks__hypothesis-3152 | Function: next_down(x: float) -> float
Location: hypothesis.internal.floats
Inputs:
- **x**: a finite Python `float`. Must be a normal or subnormal floating‑point value; for `x` equal to the smallest positive normal float, the result may be `0.0`.
Outputs:
- The greatest representable `float` strictly less than `x`. ... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..3da656b61
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,8 @@
+RELEASE_TYPE: patch
+
+This patch makes :func:`hypothesis.strategies.floats` generate
+:wikipedia:`"subnormal" floating point numb... | Generate subnormal floats
It turns out that we *can* generate subnormal values; it's just that we do so with negligible probability because they only occur for one-in-2^11 possible exponents. The obvious workaround is to just add a handful of special values to our `NASTY_FLOATS` table, and so here's a PR to do just tha... | `floats()` does not generate subnormal floating-point values
https://github.com/HypothesisWorks/hypothesis/blob/3226dd7d1b39d5ce38d559c0c4329aca40ecc9cb/hypothesis-python/tests/nocover/test_floating.py#L107-L136
This was discovered in #2973, but out of scope for that PR. The first step is to determine when, *if eve... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/nocover/test_floating.py b/hypothesis-python/tests/nocover/test_floating.py
index bafaa5751..a84c9dba8 100644
--- a/hypothesis-python/tests/nocover/test_floating.py
+++ b/hypothesis-python/tests/nocover/test_floating.py
@@ -21,6 +21,7 @@ import sys
import pytest
from hypothesis ... | [
"hypothesis-python/tests/nocover/test_floating.py::test_can_generate_really_small_positive_floats",
"hypothesis-python/tests/nocover/test_floating.py::test_can_generate_really_small_negative_floats"
] | [
"hypothesis-python/tests/nocover/test_floating.py::test_is_float",
"hypothesis-python/tests/nocover/test_floating.py::test_inversion_is_imperfect",
"hypothesis-python/tests/nocover/test_floating.py::test_largest_range",
"hypothesis-python/tests/nocover/test_floating.py::test_negation_is_self_inverse",
"hypo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/HypothesisWorks/hypothesis/blob/322... |
5641cf67cd00bb163957fb44fbf71a30da872f5e | 2025-03-30 05:47:27 | docker.io/swerebenchv2/airtai-faststream:2153-5641cf6 | airtai__faststream-2153 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/faststream/log/logging.py b/faststream/log/logging.py
index d10852c4..6384ab76 100644
--- a/faststream/log/logging.py
+++ b/faststream/log/logging.py
@@ -57,10 +57,21 @@ def get_broker_logger(
return logger
+def _handler_exists(logger: logging.Logger) -> bool:
+ # Check if a StreamHandler for s... | fix: prevent duplicate logging handler registration when calling broker.start()
# Description
Fixes #2149
This PR resolves #2149, which describes an issue where StreamHandler(sys.stdout) instances are redundantly added to the logger when the broker.start() function is called multiple times.
This change ensures t... | Bug: Duplicate log messages when starting multiple broker instances due to repeated stdout handler registration
**Describe the bug**
While developing an application and writing integration tests using this library, I observed the following logs. Although each test case creates a new broker instance and calls `start()` ... | airtai/faststream | diff --git a/tests/brokers/kafka/test_consume.py b/tests/brokers/kafka/test_consume.py
index c30a989d..de995162 100644
--- a/tests/brokers/kafka/test_consume.py
+++ b/tests/brokers/kafka/test_consume.py
@@ -497,7 +497,7 @@ class TestConsume(BrokerRealConsumeTestcase):
async def handler(msg: str):
... | [
"tests/log/test_logging.py::test_duplicates_set_formatter"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [
"https://github.com/user-attachments/assets/5e0fed19-22... |
ad7bf4c66ab175a895a2e568e4d87f72683d4b64 | 2016-12-05 21:08:24 | docker.io/swerebenchv2/rpi-distro-python-gpiozero:504-ad7bf4c | rpi-distro__python-gpiozero-504 | Function: parse_args(args)
Location: gpiozero.cli.pinout
Inputs: args – iterable of strings representing command‑line arguments (e.g. ['--color'], ['--revision', '000d'])
Outputs: argparse.Namespace with attributes:
• revision (str, default ‘’)
• color (bool or None, default None – True for --color, False for --monoc... | python | custom-check-github | diff --git a/docs/cli_tools.rst b/docs/cli_tools.rst
new file mode 100644
index 0000000..1b1443d
--- /dev/null
+++ b/docs/cli_tools.rst
@@ -0,0 +1,26 @@
+==================
+Command-line Tools
+==================
+
+Pinout
+======
+
+The gpiozero package contains a database of information about the various
+revisions o... | Add pinout cli tool, close #444, close #497
New PR introducing small changes to @stewartadcock's pinout cli tool PR #497.
@waveform80 I'm about to make a few notes in a code review but can you please check it over? Looks good to me, it works, and tests pass! | pinout command line tool
We currently have a `pi_info` function which allows you to find out information on the Pi you're on, or another specified Pi. We want to add a command line tool `pinout` which would print the pinout for your Pi by default, or a specified Pi.
See #354 for info on how to get pinout from pi_info.... | RPi-Distro/python-gpiozero | diff --git a/tests/cli/test_pinout.py b/tests/cli/test_pinout.py
new file mode 100644
index 0000000..7e47b1e
--- /dev/null
+++ b/tests/cli/test_pinout.py
@@ -0,0 +1,35 @@
+from __future__ import (
+ unicode_literals,
+ absolute_import,
+ print_function,
+ division,
+ )
+str = type('')
+
+
+import pytest
... | [
"tests/cli/test_pinout.py::test_args_incorrect",
"tests/cli/test_pinout.py::test_args_color",
"tests/cli/test_pinout.py::test_args_revision",
"tests/cli/test_pinout.py::test_help"
] | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/pyjokes/pyjokes/blob/master/scripts/p... |
ab9217f298fa4897b06e5e9e9e7fad7e29ba7114 | 2025-03-13 17:07:06 | docker.io/swerebenchv2/aspp-pelita:863-ab9217f | aspp__pelita-863 | Method: Bot.__repr__(self)
Location: pelita.team.Bot
Inputs: self – the Bot instance whose representation is requested.
Outputs: str – a string formatted as `<Bot: {char} (blue|red), {position}, turn: {turn}, round: {round}>` describing the bot’s character, team colour, board position, current turn and round.
Descripti... | python | custom-check-github | diff --git a/pelita/team.py b/pelita/team.py
index a3ef1138..aea97327 100644
--- a/pelita/team.py
+++ b/pelita/team.py
@@ -726,6 +726,9 @@ class Bot:
out.write(footer)
return out.getvalue()
+ def __repr__(self):
+ return f'<Bot: {self.char} ({"blue" if self.is_blue else "red"}), {s... | Add Bot.__repr__ (useful in Pytest error contexts)
Now, when Pytest is run with the `-l` flag and a bot object is in scope, it will be shown as
bot = <Bot: a (blue), (5, 2), turn: 0, round: None>
Closes #847
| Better Bot repr
For reference, this is the current `repr(bot)`:
<pelita.team.Bot object at 0x102778b90>
This is `str(bot)`:
```
Playing on red side. Current turn: 1. Bot: y. Round: 1, score: 0:0. timeouts: 0:0
################################
#. . #. . . #.y#
# # #### ### . # . .x#
# ... | ASPP/pelita | diff --git a/test/test_team.py b/test/test_team.py
index f6db4eb9..babe7ccc 100644
--- a/test/test_team.py
+++ b/test/test_team.py
@@ -695,3 +695,34 @@ def test_bot_html_repr():
# check that all is good
assert state['fatal_errors'] == [[], []]
+
+def test_bot_repr():
+ test_layout = """
+ ########... | [
"test/test_team.py::test_bot_repr"
] | [
"test/test_team.py::TestStoppingTeam::test_stopping",
"test/test_team.py::test_track_and_kill_count",
"test/test_team.py::test_eaten_flag_kill[0]",
"test/test_team.py::test_eaten_flag_kill[1]",
"test/test_team.py::test_eaten_flag_kill[2]",
"test/test_team.py::test_eaten_flag_kill[3]",
"test/test_team.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e639bc67d8eb001d6a72b927b3860fdfd03dff0f | 2021-01-16 14:40:03 | docker.io/swerebenchv2/codezonediitj-pydatastructs:315-e639bc6 | codezonediitj__pydatastructs-315 | Function: longest_common_subsequence(seq1: OneDimensionalArray, seq2: OneDimensionalArray) -> OneDimensionalArray
Location: pydatastructs.linear_data_structures.algorithms.longest_common_subsequence
Inputs:
- **seq1** – a `OneDimensionalArray` containing the first sequence (any comparable dtype, can be empty).
- **s... | python | custom-check-github | diff --git a/pydatastructs/linear_data_structures/__init__.py b/pydatastructs/linear_data_structures/__init__.py
index 89cca83..d4d770c 100644
--- a/pydatastructs/linear_data_structures/__init__.py
+++ b/pydatastructs/linear_data_structures/__init__.py
@@ -30,6 +30,7 @@ from .algorithms import (
counting_sort,
... | Adding Longest Common Subsequence
##### Longest Common Subsequence
#### References to other Issues or PRs or Relevant literature
"Fixes #308". See
https://github.com/codezonediitj/pydatastructs/issues/308
#### Brief description of what is fixed or changed
The Longest Common Subsequence algorithm is added in... | Longest common subsequence
Description of the problem
LCS Problem Statement: Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous.
Example of the problem
For example, “abc”, “abg”, “bdf... | codezonediitj/pydatastructs | diff --git a/pydatastructs/linear_data_structures/tests/test_algorithms.py b/pydatastructs/linear_data_structures/tests/test_algorithms.py
index 60effb1..f50a3da 100644
--- a/pydatastructs/linear_data_structures/tests/test_algorithms.py
+++ b/pydatastructs/linear_data_structures/tests/test_algorithms.py
@@ -1,7 +1,8 @@... | [
"pydatastructs/linear_data_structures/tests/test_algorithms.py::test_merge_sort_parallel",
"pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort",
"pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort_parallel",
"pydatastructs/linear_data_structures/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": "B2",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
46fec73e84d050eb2ee856e56ab66da1d97d3006 | 2025-02-06 09:57:32 | docker.io/swerebenchv2/narwhals-dev-narwhals:1948-46fec73 | narwhals-dev__narwhals-1948 | No new interfaces are introduced. | python | MIT | diff --git a/narwhals/_arrow/dataframe.py b/narwhals/_arrow/dataframe.py
index 72c18880..71f15c1b 100644
--- a/narwhals/_arrow/dataframe.py
+++ b/narwhals/_arrow/dataframe.py
@@ -694,6 +694,16 @@ class ArrowDataFrame(CompliantDataFrame, CompliantLazyFrame):
from narwhals._arrow.series import ArrowSeries
... | fix: raise NotImplementedError for DataFramte.is_duplicated for PyArrow when there is more than one column
closes #1947
<!--
# Thanks for contributing a pull request!
## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md
-->
## What type... | [Bug]: `is_duplicated` method results in different outputs for pyarrow vs. polars
### Describe the bug
As I was exploring narwhals, I noticed `df.is_duplicated()` produces unexpected results for pyarrow tables. When null values are present in a a table, `is_duplidated` defaults to `True` for pyarrow tables. See reprod... | narwhals-dev/narwhals | diff --git a/tests/frame/is_duplicated_test.py b/tests/frame/is_duplicated_test.py
index 481fb772..cb0ee4ea 100644
--- a/tests/frame/is_duplicated_test.py
+++ b/tests/frame/is_duplicated_test.py
@@ -1,5 +1,9 @@
from __future__ import annotations
+from contextlib import nullcontext as does_not_raise
+
+import pytest
... | [
"tests/frame/is_duplicated_test.py::test_is_duplicated_with_nulls[pyarrow]"
] | [
"tests/frame/is_duplicated_test.py::test_is_duplicated[polars[eager]]",
"tests/frame/is_duplicated_test.py::test_is_duplicated_with_nulls[pandas[nullable]]",
"tests/frame/is_duplicated_test.py::test_is_duplicated[pandas]",
"tests/frame/is_duplicated_test.py::test_is_duplicated[pyarrow]",
"tests/frame/is_dup... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": [
... |
282d9aa53232e96f2ea5c624737ee9ea910470ca | 2024-10-17 23:45:19 | docker.io/swerebenchv2/diaoul-subliminal:1180-282d9aa | diaoul__subliminal-1180 | Function: split_doc_args(args: str | None) -> list[str]
Location: subliminal.utils
Inputs:
- args: a docstring string (or None) using Sphinx ``:param``/``:type`` style sections.
Outputs:
- A list of strings, each being a ``:param`` line extracted from the docstring (empty list if no such sections).
Description: Split... | python | MIT | diff --git a/changelog.d/1179.breaking.rst b/changelog.d/1179.breaking.rst
new file mode 100644
index 0000000..2269265
--- /dev/null
+++ b/changelog.d/1179.breaking.rst
@@ -0,0 +1,4 @@
+Deprecate the `--addic7ed USERNAME PASSWORD`, `--opensubtitles` and `--opensubtitlescom` CLI options
+in favor of `--provider.addic7ed... | Cli providers params
closes #1179
This is a breaking change, for command line usage. | Pass arguments to providers through the CLI
Right now we can pass arguments to the providers only through the config file.
Because of the extension system, we cannot set the arguments of each and every providers as hard-coded options for the CLI. However, `click` allows to add dynamic options!
The scheme for the pr... | Diaoul/subliminal | diff --git a/tests/test_utils.py b/tests/test_utils.py
index f9c71f7..dae0748 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,7 +1,7 @@
from __future__ import annotations
import datetime
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING, Any, Callable
from xmlrpc.client impo... | [
"tests/test_utils.py::test_sanitize",
"tests/test_utils.py::test_sanitize_release_group",
"tests/test_utils.py::test_sanitize_id",
"tests/test_utils.py::test_get_creation_date",
"tests/test_utils.py::test_get_age",
"tests/test_utils.py::test_matches_extended_title[None-The",
"tests/test_utils.py::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": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
e9fe486925d327ef3d3095b2c90a2df7e396c0d3 | 2024-12-21 12:43:11 | docker.io/swerebenchv2/getmoto-moto:8423-e9fe486 | getmoto__moto-8423 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/iotdata/models.py b/moto/iotdata/models.py
index eecf3e37e..009a293b6 100644
--- a/moto/iotdata/models.py
+++ b/moto/iotdata/models.py
@@ -2,8 +2,6 @@ import json
import time
from typing import Any, Dict, List, Optional, Tuple
-import jsondiff
-
from moto.core.base_backend import BackendDict, Bas... | IOTData: Simplify delta calculation
Fixes #8408
Computing the delta using `jsondiff` was introduced in the very beginning: https://github.com/getmoto/moto/pull/1303, and further 'improved' with #7814 and #8342
Trying to mangle `jsondiff` into making it behave the way we wanted introduced more problems then it so... | IoT Data: delta calculation when desired state adds a new key
Hello, thank you very much for working on the IoT Data and shadow emulation. Really appreciate that you are fixing & improving things in this area.
After updating to 5.0.23, I noticed some of my tests failing, I assume due to #8342. On closer inspection, ... | getmoto/moto | diff --git a/.github/workflows/tests_terraform_examples.yml b/.github/workflows/tests_terraform_examples.yml
index 26d59d99b..9bb747ff0 100644
--- a/.github/workflows/tests_terraform_examples.yml
+++ b/.github/workflows/tests_terraform_examples.yml
@@ -44,6 +44,8 @@ jobs:
python -m build
docker run --... | [
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired6-initial_delta6-reported6-delta_after_report6]",
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired12-initial_delta12-reported12-delta_after_report12]",
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired13-init... | [
"tests/test_iotdata/test_iotdata.py::test_basic",
"tests/test_iotdata/test_iotdata.py::test_update",
"tests/test_iotdata/test_iotdata.py::test_create_named_shadows",
"tests/test_iotdata/test_iotdata.py::test_publish",
"tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow",
"tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3992fe34798c395c4aeebd11420ad9bc5daab3ad | 2025-04-08 21:35:41 | docker.io/swerebenchv2/narwhals-dev-narwhals:2363-3992fe3 | narwhals-dev__narwhals-2363 | Method: Expr.log(self, base: float = math.e) Location: narwhals/expr.py
Inputs: base – float specifying the logarithm base (default = e). The method is called on an Expr instance.
Outputs: Returns a new Expr representing the element‑wise logarithm of the original expression values. Errors are raised only for unsupporte... | python | MIT | diff --git a/docs/api-reference/expr.md b/docs/api-reference/expr.md
index e0f7b657..02e4e02a 100644
--- a/docs/api-reference/expr.md
+++ b/docs/api-reference/expr.md
@@ -36,6 +36,7 @@
- is_null
- is_unique
- len
+ - log
- map_batches
- max
- mean
diff --git ... | fix: Preserve pandas column name attribute
## What type of PR is this? (check all applicable)
- [ ] 💾 Refactor
- [ ] ✨ Feature
- [x] 🐛 Bug Fix
- [ ] 🔧 Optimization
- [ ] 📝 Documentation
- [ ] ✅ Test
- [ ] 🐳 Other
## Related issues
- Closes #1483
## Checklist
- [x] Code follows style guide (ru... | bug: `select` and `with_columns` don't always preserve column index name for pandas-like
```python
import pandas as pd
# import narwhals.stable.v1 as nw
import narwhals as nw
df = pd.DataFrame({'a': [1,2,3], 'b': [4,5,6]})
df.columns.name = 'foo'
print(nw.from_native(df).select(c=nw.col('a')+1).to_native())
... | narwhals-dev/narwhals | diff --git a/tests/expr_and_series/log_test.py b/tests/expr_and_series/log_test.py
new file mode 100644
index 00000000..bd6580b3
--- /dev/null
+++ b/tests/expr_and_series/log_test.py
@@ -0,0 +1,69 @@
+from __future__ import annotations
+
+import math
+
+import pandas as pd
+import pytest
+
+import narwhals.stable.v1 as... | [
"tests/expr_and_series/log_test.py::test_log_dtype_pandas",
"tests/expr_and_series/log_test.py::test_log_expr[pandas-10]",
"tests/expr_and_series/log_test.py::test_log_series[pandas[pyarrow]-2]",
"tests/expr_and_series/log_test.py::test_log_series[polars[eager]-10]",
"tests/expr_and_series/log_test.py::test... | [
"tests/frame/join_test.py::test_left_join_overlapping_column[pandas[pyarrow]]",
"tests/frame/join_test.py::test_joinasof_by[polars[eager]]",
"tests/frame/join_test.py::test_semi_join[polars[eager]-join_key2-filter_expr2-expected2]",
"tests/frame/join_test.py::test_anti_join[pyarrow-join_key1-filter_expr1-expe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
278aa96fbe78f0e8ed406dcf2d290bb0c015b4b3 | 2021-06-24 07:08:29 | docker.io/swerebenchv2/alteryx-woodwork:1015-278aa96 | alteryx__woodwork-1015 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index fdeb782..941ace5 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -2,11 +2,11 @@
Release Notes
-------------
-
Future Release
==============
* Enhancements
* Fixes
+ * Add input valid... | Add input validation to init_series to raise a better error
- Fixes #631 | Add input validation to ww.init_series
The `init_series` function added as part of the accessor update does not validate that the input passed in for the series is a valid series type. If the user passes in a non-series object an error is currently raised, but the error message is not helpful in understanding what went... | alteryx/woodwork | diff --git a/woodwork/tests/utils/test_accessor_utils.py b/woodwork/tests/utils/test_accessor_utils.py
index 03df5b4..436487e 100644
--- a/woodwork/tests/utils/test_accessor_utils.py
+++ b/woodwork/tests/utils/test_accessor_utils.py
@@ -37,6 +37,14 @@ def test_init_series_valid_conversion_specified_ltype(sample_series)... | [
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_with_invalid_type[sample_df_pandas]"
] | [
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_valid_conversion_specified_ltype[sample_series_pandas]",
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_valid_conversion_inferred_ltype[sample_series_pandas]",
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_with_datet... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": [
... |
025ecd0ed7f9716e9c3da21ea396d88f35f96bca | 2024-01-10 19:07:30 | docker.io/swerebenchv2/cogent3-cogent3:1692-025ecd0 | cogent3__cogent3-1692 | Function: app_help(name: str)
Location: src/cogent3/app/__init__.py
Inputs:
- **name**: the identifier of an application (e.g., "min_length", "sample.min_length", or a fully‑qualified class name). Must correspond to a registered app class; the function looks up its `__doc__` and its `__init__.__doc__`.
Outputs:
- Wri... | python | BSD-3-Clause | diff --git a/.gitignore b/.gitignore
index 934914535..f557c8489 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,5 +49,8 @@ __pycache__
.vscode/*
venv/
working/
+*.ipynb
+*.ipynb_checkpoints/
+
# vi
.*.swp
diff --git a/.hgignore b/.hgignore
index 4b3780448..b5a6403a3 100644
--- a/.hgignore
+++ b/.hgignore
@@ -20,6 ... | DOC: Add `min_length` app docstring, fixes #1681
Addresses #1681. I think something went wrong with the rebase... | Add a code example to the `min_length` app
**What type of documentation**
Related to #1636.
Add a code snippet to the doctring for `cogent3.app.sample.min_length`. To make it explicit to a user we should construct the sample data in the example, e.g.
```python
>>> from cogent3 import make_aligned_seqs, get_ap... | cogent3/cogent3 | diff --git a/tests/test_app/test_init.py b/tests/test_app/test_init.py
index 0f4db0228..06fe2e17b 100644
--- a/tests/test_app/test_init.py
+++ b/tests/test_app/test_init.py
@@ -196,6 +196,25 @@ def test_app_help_no_docs(capsys, app_doc, init_doc):
assert "Options" in got
+def test_app_help_doctest_examples... | [
"tests/test_app/test_init.py::test_app_help_doctest_examples"
] | [
"tests/test_app/test_init.py::TestAvailableApps::test_available_apps",
"tests/test_app/test_init.py::TestAvailableApps::test_composable_pairwise_applications",
"tests/test_app/test_init.py::TestAvailableApps::test_incompatible_pairwise_applications",
"tests/test_app/test_init.py::test_available_apps_local",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
31ce0a3d0845f18e316f36189f9ba2e303a5429e | 2022-02-09 19:44:00 | docker.io/swerebenchv2/martinthoma-flake8-simplify:94-31ce0a3 | martinthoma__flake8-simplify-94 | No new interfaces are introduced. | python | MIT | diff --git a/flake8_simplify.py b/flake8_simplify.py
index c6487f3..c2da734 100644
--- a/flake8_simplify.py
+++ b/flake8_simplify.py
@@ -311,6 +311,8 @@ def _get_sim104(node: ast.For) -> List[Tuple[int, int, str]]:
or node.orelse != []
):
return errors
+ if isinstance(node.parent, ast.AsyncFun... | SIM104: yield from is not possible for async functions
Closes #67 | SIM104 proposes yield from under async generators
## Desired change
* **Rule(s)**: SIM104
* **Adjustment**: do not propose `yield from` on async generators.
## Explanation
Yield-from is strictly forbidden under async generators, it looks like flake8-simplify does not check if generator is async before proposi... | MartinThoma/flake8-simplify | diff --git a/tests/test_simplify.py b/tests/test_simplify.py
index bc23a17..b429d04 100644
--- a/tests/test_simplify.py
+++ b/tests/test_simplify.py
@@ -153,6 +153,16 @@ def test_sim104():
assert ret == {"1:0 SIM104 Use 'yield from iterable'"}
+def test_s104_async_generator_false_positive():
+ ret = _result... | [
"tests/test_simplify.py::test_s104_async_generator_false_positive"
] | [
"tests/test_simplify.py::test_trivial_case",
"tests/test_simplify.py::test_plugin_version",
"tests/test_simplify.py::test_plugin_name",
"tests/test_simplify.py::test_single_isinstance",
"tests/test_simplify.py::test_fine_code",
"tests/test_simplify.py::test_multiple_isinstance_multiple_lines",
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
a8aacd1df1d1c9598e913f96cb022197eca0948a | 2023-01-11 23:35:26 | docker.io/swerebenchv2/sdv-dev-rdt:609-a8aacd1 | sdv-dev__rdt-609 | Method: CustomLabelEncoder.__repr__(self)
Location: rdt/transformers/categorical.py (class CustomLabelEncoder)
Inputs: self – instance of CustomLabelEncoder; no additional parameters. The method inspects the instance’s `order` (always represented as `<CUSTOM>`) and the boolean `add_noise` flag.
Outputs: str – a stri... | python | custom-check-github | diff --git a/rdt/performance/datasets/categorical.py b/rdt/performance/datasets/categorical.py
index d747211..13b43d8 100644
--- a/rdt/performance/datasets/categorical.py
+++ b/rdt/performance/datasets/categorical.py
@@ -331,7 +331,7 @@ class UniqueIntegerGenerator(CategoricalGenerator):
'memory': 2000... | Cannot print 'CustomLabelEncoder': 'ValueError'
resolves #607 | Cannot print `CustomLabelEncoder`: `ValueError`
### Environment Details
* RDT version: 1.2.1 (latest)
* Python version: Any
* Operating System: Any
### Error Description
There is an error any time the RDT library tries to print a `CustomLabelEncoder`. This affects my ability to inspect the config.
```pyth... | sdv-dev/RDT | diff --git a/tests/unit/transformers/test_categorical.py b/tests/unit/transformers/test_categorical.py
index cffafad..800f9a2 100644
--- a/tests/unit/transformers/test_categorical.py
+++ b/tests/unit/transformers/test_categorical.py
@@ -1808,6 +1808,35 @@ class TestCustomLabelEncoder:
assert transformer.add_no... | [
"tests/unit/transformers/test_categorical.py::TestCustomLabelEncoder::test___repr___default",
"tests/unit/transformers/test_categorical.py::TestCustomLabelEncoder::test___repr___add_noise_true"
] | [
"tests/unit/transformers/test_categorical.py::TestFrequencyEncoder::test___setstate__",
"tests/unit/transformers/test_categorical.py::TestFrequencyEncoder::test___init__",
"tests/unit/transformers/test_categorical.py::TestFrequencyEncoder::test__get_intervals",
"tests/unit/transformers/test_categorical.py::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": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
3306eddbf2822c4de958d75519d2e4a235c54dc5 | 2022-09-05 08:21:24 | docker.io/swerebenchv2/pennylaneai-pennylane:3024-3306edd | pennylaneai__pennylane-3024 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index b9b27cf98..79dd35847 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -304,6 +304,10 @@
<h3>Bug fixes</h3>
+* Fixes a bug where the tape transform `single_qubit_fusion` computed wrong rotation angles
+... | Fix `single_qubit_fusion` for singular case(s)
### Before submitting
Please complete the following checklist when submitting a PR:
- [x] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
test directory!
- [x] All new functions ... | [BUG] `single_qubit_fusion` returns wrong angles for specific case
### Expected behavior
The tape transform `single_qubit_fusion` always performs valid transforms, not changing the action of the tape.
### Actual behavior
For the following specific case, the transform reports wrong angles. Having tracked this d... | PennyLaneAI/pennylane | diff --git a/tests/transforms/test_optimization/test_optimization_utils.py b/tests/transforms/test_optimization/test_optimization_utils.py
index 8951ab1bb..799257712 100644
--- a/tests/transforms/test_optimization/test_optimization_utils.py
+++ b/tests/transforms/test_optimization/test_optimization_utils.py
@@ -104,9 +... | [
"tests/transforms/test_optimization/test_optimization_utils.py::TestRotGateFusion::test_full_rot_fusion_autograd[angles_117-angles_217]",
"tests/transforms/test_optimization/test_optimization_utils.py::TestRotGateFusion::test_full_rot_fusion_autograd[angles_118-angles_218]"
] | [
"tests/transforms/test_optimization/test_optimization_utils.py::TestFindNextGate::test_find_next_gate[a-op_list0-0]",
"tests/transforms/test_optimization/test_optimization_utils.py::TestFindNextGate::test_find_next_gate[b-op_list1-1]",
"tests/transforms/test_optimization/test_optimization_utils.py::TestFindNext... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
d48166417d8606d4675e9c3f8b06bc0456053dd9 | 2025-03-27 09:47:47 | docker.io/swerebenchv2/koaning-scikit-lego:738-d481664 | koaning__scikit-lego-738 | Method: TimeGapSplit.__init__(self, date_serie, valid_duration, stride_duration=None, train_duration=None, gap_duration=timedelta(0), n_splits=None, window="rolling")
Location: class TimeGapSplit in **sklego/model_selection.py**
Inputs:
- **date_serie**: pandas‑like Series (or Polars Series) containing datetime values ... | python | MIT | diff --git a/sklego/model_selection.py b/sklego/model_selection.py
index 8e5a053..a2dad17 100644
--- a/sklego/model_selection.py
+++ b/sklego/model_selection.py
@@ -30,11 +30,11 @@ class TimeGapSplit:
Each validation fold doesn't overlap. The entire `window` moves by 1 `valid_duration` until there is not enough
... | feat: Add `stride_duration` in `TimeGapSplit`
# Description
Introduces stride in `TimeGapSplit`
Closes #569
## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause ex... | [FEATURE] `TimeGapSplit` with stride
In the current implementation of `TimeGapSplit` the argument `validation_duration` is used as stride as well.
This leads to the impossibility of having overlapping validation periods. What about the possibility of adding a stride parameter to indicate the time shift for the trai... | koaning/scikit-lego | diff --git a/tests/test_model_selection/test_timegapsplit.py b/tests/test_model_selection/test_timegapsplit.py
index 9be0a10..1184936 100644
--- a/tests/test_model_selection/test_timegapsplit.py
+++ b/tests/test_model_selection/test_timegapsplit.py
@@ -1,5 +1,4 @@
-import datetime
-from datetime import timedelta
+from ... | [
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit[3-expected0]",
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit[2-expected1]",
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit_stride_is_zero",
"tests/test_model_selection/test_timegapsplit.py::test_time... | [
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit_too_big_gap",
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit_using_splits",
"tests/test_model_selection/test_timegapsplit.py::test_timegapsplit_too_many_splits",
"tests/test_model_selection/test_timegapsplit.py::test_time... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
5ee1bdc5627b263ed4216914da067950151a8f5e | 2024-08-09 20:29:12 | docker.io/swerebenchv2/getmoto-moto:7961-5ee1bdc | getmoto__moto-7961 | Function: create_alias(target_key_id: str, alias_name: str)
Location: `moto/kms/models.py` – `KmsBackend` class
Inputs:
- **target_key_id** – Identifier of the master key (can be a key ID, ARN, or existing alias).
- **alias_name** – New alias to assign, must start with the prefix `alias/`.
Outputs: `None` (the method r... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index a621e2919..b42e4b90b 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -4773,11 +4773,11 @@
## kms
<details>
-<summary>56% implemented</summary>
+<summary>64% implemented</summary>
- [X] cancel_key_deletion
- [ ... | KMS: Update ImplementationCoverage; rename internal alias methods
Fixes #7937 | implementation_coverage.py script misses covered API calls
I saw that the implementation coverage for KMS reports that some alias methods are not supported:
```
## kms
<details>
<summary>56% implemented</summary>
# ...
- [ ] create_alias
# ...
- [X] delete_alias
# ...
- [ ] list_aliases
# ...
- [ ] update... | getmoto/moto | diff --git a/tests/test_ec2/test_security_groups.py b/tests/test_ec2/test_security_groups.py
index 73a371e1b..519b5c2c6 100644
--- a/tests/test_ec2/test_security_groups.py
+++ b/tests/test_ec2/test_security_groups.py
@@ -12,6 +12,7 @@ from botocore.exceptions import ClientError
from moto import mock_aws, settings
fro... | [
"tests/test_ec2/test_security_groups.py::test_create_two_security_groups_in_vpc_with_ipv6_enabled",
"tests/test_ec2/test_security_groups.py::test_authorize_security_group_rules_with_different_ipranges_or_prefixes[ingress]",
"tests/test_ec2/test_security_groups.py::test_authorize_security_group_rules_with_differ... | [
"tests/test_ec2/test_security_groups.py::test_create_and_describe_security_group",
"tests/test_ec2/test_security_groups.py::test_create_security_group_without_description_raises_error",
"tests/test_ec2/test_security_groups.py::test_default_security_group",
"tests/test_ec2/test_security_groups.py::test_create_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/getmoto/moto/issues/3599"
],
... |
a2fae8642d2730e780504541e007a0334321e80c | 2019-04-13 05:08:14 | docker.io/swerebenchv2/pylons-waitress:252-a2fae86 | pylons__waitress-252 | Function: crack_first_line(line)
Location: waitress/parser.py
Inputs:
- **line** (bytes): the raw request start‑line (e.g., `b'GET / HTTP/1.1'`). The line must be a bytes object; it may lack a protocol version.
Outputs:
- **tuple(method, uri, version)** – all three elements are `bytes`.
- *method*: request method... | python | custom-check-github | diff --git a/waitress/parser.py b/waitress/parser.py
index 4106b56..e85ede2 100644
--- a/waitress/parser.py
+++ b/waitress/parser.py
@@ -293,7 +293,7 @@ def crack_first_line(line):
if m.group(3):
version = m.group(5)
else:
- version = None
+ version = b''
me... | avoid converting the version to a string value "None", empty instead
fixes #110
replaces #221 | Unexpected behaviour for non-HTTP requests
I just had an application show an unexpected error because request.method was `''`. A bit of debugging reveals the culprit to be a non-HTTP request coming in with this first line:
```
GET /info?txtAirPlay&txtRAOP RTSP/1.0
```
When waitress receives that request and tries to ... | Pylons/waitress | diff --git a/waitress/tests/test_parser.py b/waitress/tests/test_parser.py
index 801f784..cf4a976 100644
--- a/waitress/tests/test_parser.py
+++ b/waitress/tests/test_parser.py
@@ -309,9 +309,12 @@ class Test_crack_first_line(unittest.TestCase):
result = self._callFUT(b'GET / bleh')
self.assertEqual(r... | [
"waitress/tests/test_parser.py::Test_crack_first_line::test_crack_first_line_missing_version"
] | [
"waitress/tests/test_parser.py::TestHTTPRequestParser::test_close_with_body_rcv",
"waitress/tests/test_parser.py::TestHTTPRequestParser::test_close_with_no_body_rcv",
"waitress/tests/test_parser.py::TestHTTPRequestParser::test_get_body_stream_None",
"waitress/tests/test_parser.py::TestHTTPRequestParser::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": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ae610886c247abd3c8c4e20564670791ac183bd8 | 2023-04-19 10:25:08 | docker.io/swerebenchv2/mpmath-mpmath:689-ae61088 | mpmath__mpmath-689 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/matrices/matrices.py b/mpmath/matrices/matrices.py
index a26b92a..ad123cf 100644
--- a/mpmath/matrices/matrices.py
+++ b/mpmath/matrices/matrices.py
@@ -454,6 +454,8 @@ def __getitem__(self, key):
raise IndexError('Row index out of bounds')
else:
# ... | Raise IndexError if matrix index out of bounds
Closes #318 | Strange matrix behaviour
```
Python 3.4.3 (default, Oct 14 2015, 20:33:09)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mpmath as mpm
>>> M=mpm.zeros(1,1)
>>> M[:,1]
>>> matrix(
>>> [['0.0']])
>>> M[0,1]
>>> Traceback (most recent call last):
>>> ... | mpmath/mpmath | diff --git a/mpmath/tests/test_matrices.py b/mpmath/tests/test_matrices.py
index 3713010..ddc0351 100644
--- a/mpmath/tests/test_matrices.py
+++ b/mpmath/tests/test_matrices.py
@@ -49,6 +49,8 @@ def test_matrix_basic():
assert A9 != A10
assert nstr(A9)
assert A9 != None # issue 283
+ pytest.raises(In... | [
"mpmath/tests/test_matrices.py::test_matrix_basic"
] | [
"mpmath/tests/test_matrices.py::test_matmul",
"mpmath/tests/test_matrices.py::test_matrix_slices",
"mpmath/tests/test_matrices.py::test_matrix_power",
"mpmath/tests/test_matrices.py::test_matrix_transform",
"mpmath/tests/test_matrices.py::test_matrix_conjugate",
"mpmath/tests/test_matrices.py::test_matrix... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": "partial",
"pr_categories": [
... |
e5d7458f3de0208731efb04efced6e74ad9863ad | 2023-09-19 23:55:30 | docker.io/swerebenchv2/caikit-caikit:482-e5d7458 | caikit__caikit-482 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/caikit/runtime/service_generation/data_stream_source.py b/caikit/runtime/service_generation/data_stream_source.py
index 1a3b933a..19964c74 100644
--- a/caikit/runtime/service_generation/data_stream_source.py
+++ b/caikit/runtime/service_generation/data_stream_source.py
@@ -167,8 +167,11 @@ class DataStream... | :sparkles: load files without extensions
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/caikit/caikit/blob/main/CONTRIBUTING.md
2. If this PR closes another issue, add 'closes #<issue number>' somewhere in... | Support explicit extension types in DataStreamSource
## Is your feature request related to a problem? Please describe.
In the [File](https://github.com/caikit/caikit/blob/main/caikit/interfaces/common/data_model/stream_sources.py#L29) stream source message, the only field that is available is `filename`. In [DataStr... | caikit/caikit | diff --git a/tests/runtime/service_generation/test_data_stream_source.py b/tests/runtime/service_generation/test_data_stream_source.py
index 182b03a8..e2168d10 100644
--- a/tests/runtime/service_generation/test_data_stream_source.py
+++ b/tests/runtime/service_generation/test_data_stream_source.py
@@ -4,6 +4,7 @@ from ... | [
"tests/runtime/service_generation/test_data_stream_source.py::test_make_data_stream_source_from_file_with_no_extension"
] | [
"tests/runtime/service_generation/test_data_stream_source.py::test_make_data_stream_source_type_name",
"tests/runtime/service_generation/test_data_stream_source.py::test_multiple_make_data_stream_source",
"tests/runtime/service_generation/test_data_stream_source.py::test_data_model_element_type",
"tests/runti... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/caikit/caikit/blob/main/caikit/inte... |
64866d91661101c75920dd31ccb7d7df5e35dd61 | 2023-07-07 14:15:46 | docker.io/swerebenchv2/apiflask-apiflask:448-64866d9 | apiflask__apiflask-448 | Method: FileSchema.__init__(self, *, type: str = 'string', format: str = 'binary')
Location: src/apiflask/schemas.py
Inputs:
- **type** (str): OpenAPI type for the file response, defaults to `'string'`.
- **format** (str): File format, either `'binary'` or `'base64'`, defaults to `'binary'`.
Outputs: None (initializes... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index 501d9c9..e012256 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -8,9 +8,11 @@ Released: -<br>Codename: Gongqing
- Only pass keyword arguments to the view function. The argument name
of the parsed data from `app.input()` will be `{location}_data` or the
value of `arg_name` ... | Add `FileSchema` for file response
Example:
```py
from apiflask.schemas import FileSchema
@app.get('/files/<filename>')
@app.output(FileSchema, content_type='image/png')
def get_file(filename):
return ...
```
fixes #447
<!--
If needed, ensure each step in the checklist below is complete. If only d... | Support creating file schema for file response
We support creating file fields via the `apiflask.schemas.File` field class, and use the metadata to set the type and the format:
```python
class ImageIn(Schema):
image = File()
```
But we still need to support creating the schema for file response. In that ca... | apiflask/apiflask | diff --git a/tests/test_schemas.py b/tests/test_schemas.py
new file mode 100644
index 0000000..72fc7e5
--- /dev/null
+++ b/tests/test_schemas.py
@@ -0,0 +1,26 @@
+from apiflask.schemas import FileSchema
+
+
+def test_file_schema(app, client):
+ @app.get('/image')
+ @app.output(
+ FileSchema(type='string', ... | [
"tests/test_schemas.py::test_file_schema",
"tests/test_schemas.py::test_file_schema_repr"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
76b34b86e836041b0fa29e30a45c4dd68250562d | 2025-03-05 14:59:43 | docker.io/swerebenchv2/bids-standard-pybids:1123-76b34b8 | bids-standard__pybids-1123 | No new interfaces are introduced. | python | MIT | diff --git a/src/bids/layout/validation.py b/src/bids/layout/validation.py
index 50732811..cbf4def9 100644
--- a/src/bids/layout/validation.py
+++ b/src/bids/layout/validation.py
@@ -32,9 +32,12 @@ EXAMPLE_DERIVATIVES_DESCRIPTION = {
DEFAULT_LOCATIONS_TO_IGNORE = {
re.compile(r"^/(code|models|sourcedata|stimuli... | fix: Ensure dotfiles are always filtered
Dotfiles are ignored by default, but custom ignore patterns override the default ignores. This change ensures that dotfiles are always ignored in either case.
Regression test reproduces #1069 and patch fixes it.
Closes #1069. | MacOS Finder `._*` hidden metadata files cause pybids to crash
## Example
<details><summary><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte</code> … <code>while trying to decode JSON from file […]/._sub-PA069_ses-V1W1_task-poke_run-2_bold.json</code></summary>
```Py... | bids-standard/pybids | diff --git a/src/bids/layout/tests/conftest.py b/src/bids/layout/tests/conftest.py
index d5959045..6451f893 100644
--- a/src/bids/layout/tests/conftest.py
+++ b/src/bids/layout/tests/conftest.py
@@ -1,4 +1,5 @@
from os.path import join
+import shutil
import pytest
@@ -101,3 +102,10 @@ def layout_synthetic(tests_d... | [
"src/bids/layout/tests/test_layout.py::test_ignore_dotfiles"
] | [
"src/bids/layout/tests/test_layout.py::test_layout_init",
"src/bids/layout/tests/test_layout.py::test_index_metadata[True-query0-3.0]",
"src/bids/layout/tests/test_layout.py::test_index_metadata[False-query1-None]",
"src/bids/layout/tests/test_layout.py::test_index_metadata[True-query2-3.0]",
"src/bids/layo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://lists.apple.com/archives/applescript-users/2006/... |
96f1e95712cd4cd5bc30eb0cfc1eb0ea9a2e8512 | 2025-04-20 21:59:34 | docker.io/swerebenchv2/stanfordnlp-dspy:8089-96f1e95 | stanfordnlp__dspy-8089 | Method: Tool.__init__(self, func, name=None, desc=None, args=None, arg_types=None, arg_desc=None)
Location: dspy/primitives/tool.py
Inputs:
- func: a callable Python function to be wrapped as a tool.
- name (optional): explicit tool name; defaults to function.__name__.
- desc (optional): description string.
- ar... | python | MIT | diff --git a/dspy/primitives/tool.py b/dspy/primitives/tool.py
index 3e9a7182..8b3d1fa9 100644
--- a/dspy/primitives/tool.py
+++ b/dspy/primitives/tool.py
@@ -119,7 +119,7 @@ class Tool:
v_json_schema = self._resolve_pydantic_schema(v)
args[k] = v_json_schema
else:
- ... | Fix default arg when type hints are not available
resolve #8086
The standard is mapping `Any` to empty json schema, no need to use a special string identifier `"Any"` to represent the situation where no type hint is provided. | [Bug] New defaults handling for Tools creates TypeError if assigned "Any"
### What happened?
`TypeError: 'str' object does not support item assignment` occurs a tool argument has a default value but no type hint: https://github.com/stanfordnlp/dspy/blob/main/dspy/primitives/tool.py#L122
### Steps to reproduce
```
de... | stanfordnlp/dspy | diff --git a/tests/primitives/test_tool.py b/tests/primitives/test_tool.py
index 6b49f24f..02e8170b 100644
--- a/tests/primitives/test_tool.py
+++ b/tests/primitives/test_tool.py
@@ -150,3 +150,12 @@ def test_invalid_function_call():
def test_parameter_desc():
tool = Tool(dummy_function, arg_desc={"x": "The x par... | [
"tests/primitives/test_tool.py::test_tool_with_default_args_without_type_hints"
] | [
"tests/primitives/test_tool.py::test_basic_initialization",
"tests/primitives/test_tool.py::test_tool_from_function",
"tests/primitives/test_tool.py::test_tool_from_class",
"tests/primitives/test_tool.py::test_tool_from_function_with_pydantic",
"tests/primitives/test_tool.py::test_tool_from_function_with_py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/stanfordnlp/dspy/blob/main/dspy/primi... |
6881b90f7ca432fc0dfc17d135cf323c9501c760 | 2020-07-13 09:26:48 | docker.io/swerebenchv2/liampauling-flumine:232-6881b90 | liampauling__flumine-232 | Method: BaseExecution.__init__(self, flumine, max_workers=MAX_WORKERS)
Location: flumine/execution/baseexecution.py
Inputs:
- flumine: Flumine instance (parent orchestrator)
- max_workers: int, optional, default taken from module constant MAX_WORKERS; determines the size of the internal ThreadPoolExecutor.
Outputs:
- N... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 3690679..3956923 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -8,6 +8,7 @@ Release History
**Improvements**
+- #201 requests session kept and reused to reduce latency
- Logging improvements
**Bug Fixes**
diff --git a/flumine/execution/baseexecution.py b/flumine/exe... | closes #201
http session used and kept after use (0.2-0.3s -> <0.2s)
removed on execution error | Execution - keep alive
All new execution requests use a new requests.Session, this results in the https round trip. | liampauling/flumine | diff --git a/tests/test_execution.py b/tests/test_execution.py
index 96a3176..f97518a 100644
--- a/tests/test_execution.py
+++ b/tests/test_execution.py
@@ -2,6 +2,7 @@ import unittest
from unittest import mock
from unittest.mock import call
+from betfairlightweight import BetfairError
from flumine.clients.clients... | [
"tests/test_execution.py::BaseExecutionTest::test__get_http_session",
"tests/test_execution.py::BaseExecutionTest::test__return_http_session",
"tests/test_execution.py::BaseExecutionTest::test_handler_cancel",
"tests/test_execution.py::BaseExecutionTest::test_handler_place",
"tests/test_execution.py::BaseEx... | [
"tests/test_execution.py::BaseExecutionTest::test__order_logger_cancel",
"tests/test_execution.py::BaseExecutionTest::test__order_logger_place",
"tests/test_execution.py::BaseExecutionTest::test__order_logger_replace",
"tests/test_execution.py::BaseExecutionTest::test__order_logger_update",
"tests/test_exec... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
05353b7845b5d5b0bafcb1e302ac39b413847757 | 2024-04-16 20:28:05 | docker.io/swerebenchv2/mirumee-ariadne-codegen:292-05353b7 | mirumee__ariadne-codegen-292 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f61db31..f4d7f2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Added `ClientForwardRefsPlugin` to standard plugins.
- Re-added `model_rebuild` calls for input types with forward references.
- Fixed fragments on interfaces being omitted from generated cl... | Fix: Include directive result type when using `convert_to_snake_case` option
Fixes #272 | Incorrect default value for queries with `@include` directive
First of all, I loved the project. It has everything that anyone can expect.
Recently I ran into an issue, When the field name is in camelCase and uses `@include` directive the generated pydantic code doesn't generate proper default value (`None`)
I ha... | mirumee/ariadne-codegen | diff --git a/tests/client_generators/result_types_generator/schema.py b/tests/client_generators/result_types_generator/schema.py
index 2ad4efb..6ae1cff 100644
--- a/tests/client_generators/result_types_generator/schema.py
+++ b/tests/client_generators/result_types_generator/schema.py
@@ -50,6 +50,7 @@ type CustomType3 ... | [
"tests/client_generators/result_types_generator/test_directives.py::test_generator_returns_module_with_handled_skip_and_include_directives_snake_case[include]",
"tests/client_generators/result_types_generator/test_directives.py::test_generator_returns_module_with_handled_skip_and_include_directives_snake_case[ski... | [
"tests/client_generators/result_types_generator/test_directives.py::test_generate_adds_base_class_to_generated_type_provided_by_mixin_directive",
"tests/client_generators/result_types_generator/test_directives.py::test_generate_handles_multiple_mixin_directives",
"tests/client_generators/result_types_generator/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://graphqlzero.almansi.me/api"
],
"intent_c... |
5c4265ad15e1ffb475cf7c876bbfc7b0618eac03 | 2024-12-10 23:47:11 | docker.io/swerebenchv2/apiflask-apiflask:630-5c4265a | apiflask__apiflask-630 | Method: APIFlask.input(self, schema: Schema, *, location: str = 'json', arg_name: str | None = None, validation: bool = True, **kwargs)
Location: apiflask.scaffold (defined in class APIScaffold, inherited by APIFlask)
Inputs:
- **schema** – a Marshmallow `Schema` (or subclass) instance that describes the expected re... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index ba870a7..b45d0d1 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,12 @@
+## Version 2.3.2
+
+Released: -
+
+- Fix input data loading implementation when input validation is skipped ([issue #629][issue_629]).
+
+[issue_629]: https://github.com/apiflask/apiflask/issues/629
+
... | Modify input validation skip to use webargs implementation
Modified the `@input` data loading logic for the `validation=False` case by replacing the hand-rolled data loading implementation with an implementation from elements within the `webargs` library. Also fixed an undocumented issue where the `arg_name` parameter ... | Specifying `validation=False` on `@input` decorator yields unexpected input when endpoint accepts a list
For endpoints that accept in a list of values in their input, specifying `validation=False` on the `@input` decorator yields an empty dictionary when an empty list is passed in to the endpoint. This is a change in b... | apiflask/apiflask | diff --git a/tests/test_decorator_input.py b/tests/test_decorator_input.py
index ab5b382..c21f336 100644
--- a/tests/test_decorator_input.py
+++ b/tests/test_decorator_input.py
@@ -446,116 +446,39 @@ def test_skip_validation(app, client):
assert 'PetIn' in rv.json['components']['schemas']
-def test_location_ra... | [
"tests/test_decorator_input.py::test_skip_validation_list_input[payload0-False]",
"tests/test_decorator_input.py::test_skip_validation_arg_name[payload0-False]",
"tests/test_decorator_input.py::test_skip_validation_arg_name[payload1-False]"
] | [
"tests/test_decorator_input.py::test_input",
"tests/test_decorator_input.py::test_input_with_query_location",
"tests/test_decorator_input.py::test_input_with_form_location",
"tests/test_decorator_input.py::test_input_with_files_location",
"tests/test_decorator_input.py::test_input_with_form_and_files_locati... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d58d5b1e74bf107b2a85913ac062b776f13f2cc6 | 2023-08-16 09:12:08 | docker.io/swerebenchv2/automl-smac3:1069-d58d5b1 | automl__smac3-1069 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa2d5ae48..5ffa77ab5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,9 @@
# 2.0.3
## Bugfixes
-- Add OrdinalHyperparameter for random forest imputer (#1065).
- Fix path for dask scheduler file (#1055).
+- Add OrdinalHyperparameter for random forest imputer (#1... | Fix config rejection for #1068
Fixes #1068 to make sure newly evaluated configs are rejected in case they are worse than the existing incumbent. | Racing: Configs worse than existing incumbent are not rejected `bug`
<!-- Instructions For Filing a Bug: https://github.com/automl/SMAC3/blob/master/CONTRIBUTING.md -->
#### Description
<!-- Describe what you wanted to do -->
I wanted to use the tell-interface of the HPOFacade (which uses racing for intensificatio... | automl/SMAC3 | diff --git a/tests/test_intensifier/test_abstract_intensifier.py b/tests/test_intensifier/test_abstract_intensifier.py
index ce980c49b..b8dc91a1c 100644
--- a/tests/test_intensifier/test_abstract_intensifier.py
+++ b/tests/test_intensifier/test_abstract_intensifier.py
@@ -109,6 +109,48 @@ def test_incumbent_selection_m... | [
"tests/test_intensifier/test_abstract_intensifier.py::test_config_rejection_single_objective"
] | [
"tests/test_intensifier/test_abstract_intensifier.py::test_setting_runhistory",
"tests/test_intensifier/test_abstract_intensifier.py::test_incumbent_selection_single_objective",
"tests/test_intensifier/test_abstract_intensifier.py::test_incumbent_selection_multi_objective",
"tests/test_intensifier/test_abstra... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://gist.github.com/PhilippBordne/722c336dd0981859bf... |
1c8c0fe4d9c7f5481a40814a8a6459a5142707ff | 2024-07-10 07:42:08 | docker.io/swerebenchv2/getmoto-moto:7838-1c8c0fe | getmoto__moto-7838 | Method: DirectConnectBackend.create_connection(self, location: str, bandwidth: str, connection_name: str, lag_id: Optional[str] = None, tags: Optional[List[Dict[str, str]]] = None, provider_name: Optional[str] = None, request_mac_sec: Optional[bool] = None) → Connection
Location: moto/directconnect/models.py – inside c... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index e6dedaaf9..873cec628 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -1852,6 +1852,75 @@
- [ ] update_subnet_group
</details>
+## directconnect
+<details>
+<summary>6% implemented</summary>
+
+- [ ] accept_direct_... | DirectConnect
Resolves #7841
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/directconnect.html
Implementation:
- create_connection
- delete_connection
- describe_connections
- update_connections | DirectConnect support
Seeking support for CRUD API calls for DirectConnect resources: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/directconnect.html | getmoto/moto | diff --git a/tests/test_directconnect/__init__.py b/tests/test_directconnect/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_directconnect/test_directconnect.py b/tests/test_directconnect/test_directconnect.py
new file mode 100644
index 000000000..155b8099f
--- /dev/null
+++ b/tests/... | [
"tests/test_directconnect/test_directconnect.py::test_create_connection",
"tests/test_directconnect/test_directconnect.py::test_describe_connections",
"tests/test_directconnect/test_directconnect.py::test_delete_connection",
"tests/test_directconnect/test_directconnect.py::test_update_connection",
"tests/te... | [
"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": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/latest... |
e17d66e519d5dc5ac56dc687d5849d1e59fdcc24 | 2024-07-31 15:27:22 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3548-e17d66e | aws-cloudformation__cfn-lint-3548 | Method: ValidationError.__init__(self, message: str, validator: str, rule: CfnLintKeyword, path: deque)
Location: src/cfnlint/core/validation_error.py
Inputs:
- **message** – human‑readable error description (e.g., "'ImageId' is a required property").
- **validator** – identifier of the validator that triggered... | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/ectwo/InstanceImageId.py b/src/cfnlint/rules/resources/ectwo/InstanceImageId.py
index 7219d3c10..db809da41 100644
--- a/src/cfnlint/rules/resources/ectwo/InstanceImageId.py
+++ b/src/cfnlint/rules/resources/ectwo/InstanceImageId.py
@@ -70,11 +70,20 @@ class InstanceImageId(CfnLi... | Update W3663 to skip validation when Sub
*Issue #, if available:*
fix #3547
*Description of changes:*
- Update W3663 to skip validation when Sub
- Make sure to return rule E3673 in validation error
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, u... | E3003 on missing `SourceAccount` when `SourceArn` is specified using `!Sub`
### CloudFormation Lint Version
1.9.1
### What operating system are you using?
WSL Ubuntu 22.04.4 LTS
### Describe the bug
In an `AWS::Lambda::Permission` resource, when specifying `SourceArn` using `!Sub` (see attached repro template), `c... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/resources/ec2/test_instance_image_id.py b/test/unit/rules/resources/ec2/test_instance_image_id.py
index 845d5876a..2db06f443 100644
--- a/test/unit/rules/resources/ec2/test_instance_image_id.py
+++ b/test/unit/rules/resources/ec2/test_instance_image_id.py
@@ -184,9 +184,9 @@ def rule():
... | [
"test/unit/rules/resources/ec2/test_instance_image_id.py::test_validate[Invalid",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance4-expected4]",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance7-expected7]",
"test/unit/rules/res... | [
"test/unit/rules/resources/ec2/test_instance_image_id.py::test_validate[Valid",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance1-expected1]",
"test/unit/rules/resou... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/aws-cloudformation/cfn-lint/issues/21... |
5583715063c30fda571ab0e0169b0068403dc53d | 2019-04-10 08:16:33 | docker.io/swerebenchv2/pylons-waitress:249-5583715 | pylons__waitress-249 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES.txt b/CHANGES.txt
index 2897939..cabd3b5 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -54,6 +54,10 @@ Bugfixes
bounds. These buffers now properly rotate and release their data.
See https://github.com/Pylons/waitress/pull/242
+- Fix a bug in which non-seekable subclasses of ``io.IOBase`` wo... | support iobase subclasses
fixes #84 | ReadOnlyFileBasedBuffer does not work with io.IOBase subclasses
ReadOnlyFileBasedBuffer checks if it can detect the file length by using `seek` and `tell` methods.
While it checks for the file to be able to provide them at https://github.com/Pylons/waitress/blob/master/waitress/buffers.py#L140 it doesn't actually chec... | Pylons/waitress | diff --git a/waitress/tests/fixtureapps/filewrapper.py b/waitress/tests/fixtureapps/filewrapper.py
index be35b02..d4e9a51 100644
--- a/waitress/tests/fixtureapps/filewrapper.py
+++ b/waitress/tests/fixtureapps/filewrapper.py
@@ -1,3 +1,4 @@
+import io
import os
here = os.path.dirname(os.path.abspath(__file__))
@@ -... | [
"waitress/tests/test_functional.py::TcpFileWrapperTests::test_notfilelike_iobase_http11",
"waitress/tests/test_functional.py::UnixFileWrapperTests::test_notfilelike_iobase_http11"
] | [
"waitress/tests/test_functional.py::SleepyThreadTests::test_it",
"waitress/tests/test_functional.py::TcpEchoTests::test_bad_host_header",
"waitress/tests/test_functional.py::TcpEchoTests::test_broken_chunked_encoding",
"waitress/tests/test_functional.py::TcpEchoTests::test_chunking_request_with_content",
"w... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
285bdb23c6c812c1e0cf9605da9ae962bd0e87da | 2020-09-30 03:17:20 | docker.io/swerebenchv2/niconoe-pyinaturalist:61-285bdb2 | niconoe__pyinaturalist-61 | Method: pyinaturalist.request_params.ensure_file_obj(photo: FileOrPath) -> BinaryIO
Location: pyinaturalist/request_params.py
Inputs: *photo* – a string path to a file on the local filesystem or an already‑opened binary‑mode file‑like object.
Outputs: Returns a binary‑IO object (``io.BytesIO``) containing the file’s co... | python | MIT | diff --git a/README.rst b/README.rst
index 452380b..22a76fd 100644
--- a/README.rst
+++ b/README.rst
@@ -77,7 +77,7 @@ Search observations:
.. code-block:: python
from pyinaturalist.node_api import get_all_observations
- obs = get_all_observations(params={'user_id': 'niconoe'})
+ obs = get_all_observation... | Fix issue with @document_request_params and duplicate keyword arguments
Closes #58
For reference: The `user_agent` param is automatically added to every endpoint function. Calling `document_request_params()` with a list object that happened to be reused, in this case `_get_observations`, would add `user_agent` to ... | Fix issue with @document_request_params and duplicate keyword arguments
Follow-up from PR #55 .
Example traceback:
```python
File "/home/cookjo/workspace/pyinaturalist/pyinaturalist/rest_api.py", line 70, in <module>
def get_observations(user_agent: str = None, **kwargs) -> Union[List, str]:
File "/hom... | niconoe/pyinaturalist | diff --git a/test/test_request_params.py b/test/test_request_params.py
index ccc204f..343880a 100644
--- a/test/test_request_params.py
+++ b/test/test_request_params.py
@@ -1,6 +1,8 @@
import pytest
from datetime import date, datetime
from dateutil.tz import gettz
+from io import BytesIO
+from tempfile import NamedT... | [
"test/test_request_params.py::test_convert_bool_params",
"test/test_request_params.py::test_convert_datetime_params[created_d1-19951231T235959-1995-12-31T23:59:59-08:00]",
"test/test_request_params.py::test_convert_datetime_params[created_d2-2008-08-08",
"test/test_request_params.py::test_convert_datetime_par... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
892a64a8d8a7cd19b00badfa9b08453844456f0b | 2024-03-19 04:24:52 | docker.io/swerebenchv2/igorbenav-fastcrud:29-892a64a | igorbenav__fastcrud-29 | Method: FastCRUD.get_joined(self, db: AsyncSession, schema_to_select: Optional[type[BaseModel]] = None, join_model: Optional[type[DeclarativeBase]] = None, join_on: Optional[Union[Join, BinaryExpression]] = None, join_prefix: Optional[str] = None, join_schema_to_select: Optional[type[BaseModel]] = None, join_type: str ... | python | MIT | diff --git a/docs/advanced/crud.md b/docs/advanced/crud.md
index 4404ac5..3dfef13 100644
--- a/docs/advanced/crud.md
+++ b/docs/advanced/crud.md
@@ -133,6 +133,85 @@ In this example, users are joined with the `Tier` and `Department` models. The `
If both single join parameters and `joins_config` are used simulta... | Using Aliases
# Using aliases
## Added
- Now get_joined and get_multi_joined can be used with aliases, making it possible to join the same model multiple times.
## Detailed
___
In complex query scenarios, particularly when you need to join a table to itself or perform multiple joins on the same table for diffe... | Preventing Duplicate Table Names in SQL Queries Using SQLAlchemy
Thank you for the recent update! We appreciate the enhancements and improvements made. It's not critical, but I think it's worth discussing.
**Describe the bug or question**
The problem lies in encountering an error due to duplicate table names when w... | igorbenav/fastcrud | diff --git a/tests/sqlalchemy/conftest.py b/tests/sqlalchemy/conftest.py
index c2a38c0..644fe89 100644
--- a/tests/sqlalchemy/conftest.py
+++ b/tests/sqlalchemy/conftest.py
@@ -1,4 +1,5 @@
from typing import Optional
+from datetime import datetime
import pytest
import pytest_asyncio
@@ -45,6 +46,16 @@ class TierMo... | [
"tests/sqlalchemy/crud/test_get_joined.py::test_get_joined_basic",
"tests/sqlalchemy/crud/test_get_joined.py::test_get_joined_custom_condition",
"tests/sqlalchemy/crud/test_get_joined.py::test_get_joined_with_prefix",
"tests/sqlalchemy/crud/test_get_joined.py::test_get_joined_different_join_types",
"tests/s... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
9a49e3aa0564a2730837a5232a82ab5791a1f71d | 2020-02-11 08:01:31 | docker.io/swerebenchv2/ntnu-ihb-pythonfmu:24-9a49e3a | ntnu-ihb__pythonfmu-24 | Method: Fmi2Slave.__init__(self, instance_name: str)
Location: pythonfmu/fmi2slave.py
Inputs: instance_name – a non‑empty string identifying the FMU instance; required for all slaves.
Outputs: None (initializes internal state, sets `self.instance_name` and creates the variable registry).
Description: Constructs a new F... | python | MIT | diff --git a/README.md b/README.md
index a900c61..f9dfe19 100644
--- a/README.md
+++ b/README.md
@@ -53,8 +53,8 @@ class PythonSlave(Fmi2Slave):
author = "John Doe"
description = "A simple description"
- def __init__(self):
- super().__init__()
+ def __init__(self, instance_name):
+ supe... | Pass instanceName to slave
This PR passes the `instanceName` to the Python slave. This requires the slave ctor to take a string argument that is passes to the `Fmi2Slave` super class.
```python
class PythonSlave(Fmi2Slave):
def __init__(self, instance_name):
super().__init__(instance_name)
```
... | Pass instanceName to slave | NTNU-IHB/PythonFMU | diff --git a/pythonfmu/tests/pythonslave.py b/pythonfmu/tests/pythonslave.py
index 034c108..c5aea48 100644
--- a/pythonfmu/tests/pythonslave.py
+++ b/pythonfmu/tests/pythonslave.py
@@ -8,8 +8,8 @@ class PythonSlave(Fmi2Slave):
author = "John Doe"
description = "A simple description"
- def __init__(self):... | [
"pythonfmu/tests/test_variables.py::test_ScalarVariable_start[Fmi2Variability.constant-Fmi2Initial.exact-Fmi2Causality.parameter-Boolean-True]",
"pythonfmu/tests/test_variables.py::test_ScalarVariable_start[Fmi2Variability.constant-Fmi2Initial.exact-Fmi2Causality.parameter-Integer-23]",
"pythonfmu/tests/test_va... | [
"pythonfmu/tests/test_variables.py::test_ScalarVariable_reference_set_once_only",
"pythonfmu/tests/test_variables.py::test_ScalarVariable_constructor[var-None-Fmi2Variability.constant-Fmi2Initial.exact-Fmi2Causality.parameter]",
"pythonfmu/tests/test_variables.py::test_ScalarVariable_constructor[var-None-Fmi2Va... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
bc22bab223fe80c967dc9b39ca590b8fb66e9ebb | 2025-05-28 16:31:54 | docker.io/swerebenchv2/jelmer-dulwich:1555-bc22bab | jelmer__dulwich-1555 | Function: pull(
repo_path: str | os.PathLike,
src_path: str | os.PathLike,
ref: bytes,
outstream: BinaryIO = default_bytes_out_stream,
errstream: BinaryIO = default_bytes_err_stream,
fast_forward: bool = True,
ff_only: bool = False,
force: bool = False,
filter_spec: str | None = None... | python | custom-check-github | diff --git a/NEWS b/NEWS
index 5a01e14b..e38e348a 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,8 @@
* Fix handling of casing of subsection names in config.
(Jelmer Vernooij, #1183)
+ * Update working tree in pull. (Jelmer Vernooij, #452)
+
0.22.8 2025-03-02
* Allow passing in plain strings to ``dulwich.porcelai... | Update working tree in pull
Fixes #452 | pocelain does not merge updates into working trees
When a file is removed from repository, the dulwich.pull command does not remove the file from local storage.
When I add a file in repository, the file is correctly downloaded.
I have try with admin right but doesn't work.
| jelmer/dulwich | diff --git a/.github/workflows/pythontest.yml b/.github/workflows/pythontest.yml
index 92f7f60f..c6059c92 100644
--- a/.github/workflows/pythontest.yml
+++ b/.github/workflows/pythontest.yml
@@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- ... | [
"tests/test_porcelain.py::PullTests::test_diverged"
] | [
"tests/__init__.py::test_suite",
"tests/test_merge.py::MergeTests::test_merge_blobs_clean_merge",
"tests/test_merge.py::MergeTests::test_merge_blobs_deletion_no_conflict",
"tests/test_merge.py::MergeTests::test_merge_blobs_deletion_with_conflict",
"tests/test_merge.py::MergeTests::test_merge_blobs_identical... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
9777f09ca265074531dde26e38c1322c72381c39 | 2021-05-17 14:12:32 | docker.io/swerebenchv2/pennylaneai-pennylane:1325-9777f09 | pennylaneai__pennylane-1325 | Function: inv(operation_list)
Location: pennylane.utils.inv
Inputs:
- **operation_list** (Operation | list[Operation] | None): a single PennyLane operation, a list of operations, or `None`. The function will treat a single operation as a one‑element list. The list must contain only instances of `qml.operation.Operatio... | python | Apache-2.0 | diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md
index 912f61439..b15e59151 100644
--- a/.github/CHANGELOG.md
+++ b/.github/CHANGELOG.md
@@ -159,6 +159,9 @@ random_mat2 = rng.standard_normal(3, requires_grad=False)
<h3>Improvements</h3>
+* The `qml.inv()` function is now deprecated with a warning to use th... | [unitaryHACK] Deprecated qml.inv()
**Context:**
Deprecated qml.inv().
**Description of the Change:**
Added warnings in the documentation and code
**Benefits:**
Want to shift users to qml.adjoint() as it is a more general function
**Related GitHub Issues:**
Fixes #1195 | [unitaryhack] Deprecate `qml.inv`
*This issue has been tagged for contributions during [unitaryHACK](https://unitaryfund.github.io/unitaryhack/participating-projects.html)*
Currently, PennyLane has two functions for inverting quantum operations:
* [`qml.inv()`](https://github.com/PennyLaneAI/pennylane/blob/4ece39... | PennyLaneAI/pennylane | diff --git a/tests/test_utils.py b/tests/test_utils.py
index ab886069f..14344939e 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -833,3 +833,12 @@ class TestInv:
ValueError, match="The given operation_list does not only contain Operations"
):
pu.inv(arg)
+
+ def test... | [
"tests/test_utils.py::TestInv::test_warning"
] | [
"tests/test_utils.py::TestDecomposition::test_wrong_shape[hamiltonian0]",
"tests/test_utils.py::TestDecomposition::test_wrong_shape[hamiltonian1]",
"tests/test_utils.py::TestDecomposition::test_wrong_shape[hamiltonian2]",
"tests/test_utils.py::TestDecomposition::test_not_hermitian",
"tests/test_utils.py::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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://unitaryfund.github.io/unitaryhack/participating-... |
945b8ad0196136dc4265eba8ff70f12d5f02520f | 2020-11-23 08:23:31 | docker.io/swerebenchv2/django-channels:1581-945b8ad | django__channels-1581 | Method: StaticFilesHandler.file_path(self, url)
Location: channels/staticfiles.py
Inputs: **url** – a string containing the request path (e.g., “/static/image.png”). The instance must have **self.static_base_url** (e.g., “/static/”) set beforehand; the method strips this prefix from *url*.
Outputs: **str** – the relati... | python | BSD-3-Clause | diff --git a/channels/http.py b/channels/http.py
index c55bf9b..c9ff597 100644
--- a/channels/http.py
+++ b/channels/http.py
@@ -188,8 +188,6 @@ class AsgiHandler(base.BaseHandler):
"The AsgiHandler can only handle HTTP connections, not %s"
% scope["type"]
)
- self.... | Don't mutate AsgiHandler state in __call__().
Fixes #1578 | Channels 3+ with Django 2.2 under gunicorn/uvicorn fails when hit with concurrent requests
The issue I'm seeing is that with a very barebones Django/Channels/Uvicorn/Gunicorn setup I'm seeing consistent failures when more than one request is made concurrently. Errors included at the bottom.
**Reproduction instructio... | django/channels | diff --git a/tests/test_http.py b/tests/test_http.py
index d4feae2..68ec311 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -351,6 +351,35 @@ async def test_handler_body_ignore_extra():
assert body_stream.read() == b"chunk one"
+@pytest.mark.django_db
+@pytest.mark.asyncio
+@pytest.mark.filterwarni... | [
"tests/test_http.py::test_handler_concurrent_requests",
"tests/test_staticfiles.py::test_staticfiles_handler_can_generate_file_path"
] | [
"tests/test_http.py::test_handler_basic",
"tests/test_http.py::test_handler_body_single",
"tests/test_http.py::test_handler_body_multiple",
"tests/test_http.py::test_handler_body_ignore_extra",
"tests/test_http.py::test_sessions",
"tests/test_http.py::test_muliple_sessions",
"tests/test_http.py::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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/AlexHill/django_channels_test"
... |
7501a6e9117edb2ef2b6de6f773dc7b828bba361 | 2021-06-29 19:59:09 | docker.io/swerebenchv2/alteryx-woodwork:1026-7501a6e | alteryx__woodwork-1026 | Function: init_series(series, logical_type=None, semantic_tags=None, use_standard_tags=True, description=None, metadata=None)
Location: woodwork/accessor_utils.py
Inputs:
- **series**: pd.Series, dd.Series, ks.Series, numpy.ndarray (1‑dimensional) **or** pd.api.extensions.ExtensionArray. Represents the data to be wrapp... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 15978f9..e87c99c 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -10,6 +10,8 @@ Future Release
* Changes
* Remove lines in ``LogicalType.transform`` that raise error if dtype conflicts (:pr:`... | Handle pd.ExtensionArray inputs into Woodwork
- Handle pd.ExtensionArray inputs into Woodwork
- Closes #570 | Handle pd.ExtensionArray inputs into Woodwork
With the DataTables/DataColumns api, we allowed `pd.ExtensionArrays` as inputs so that users wouldn't have to manually convert to a `pd.Series` before creating a DataColumn.
With the Schema/Accessor api, there's no ExtensionArray accessor, so we won't be able to allow cr... | alteryx/woodwork | diff --git a/woodwork/tests/utils/test_accessor_utils.py b/woodwork/tests/utils/test_accessor_utils.py
index c4d9d71..ca53adf 100644
--- a/woodwork/tests/utils/test_accessor_utils.py
+++ b/woodwork/tests/utils/test_accessor_utils.py
@@ -38,6 +38,22 @@ def test_init_series_valid_conversion_specified_ltype(sample_series)... | [
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_with_pd_extension_array"
] | [
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_valid_conversion_specified_ltype[sample_series_pandas]",
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_with_invalid_type[sample_df_pandas]",
"woodwork/tests/utils/test_accessor_utils.py::test_init_series_with_np_array",
"woodwork/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
84dff9378665ad0b0c1ebc7a00b39ffe5cd62a50 | 2024-04-11 07:39:47 | docker.io/swerebenchv2/amaranth-lang-amaranth:1317-84dff93 | amaranth-lang__amaranth-1317 | Function: EnumType
Location: amaranth.lib.enum.EnumType (metaclass for enum classes)
Inputs: Optional keyword argument ``shape=`` when defining an enum class; otherwise behaves like the standard ``enum.EnumMeta``/``enum.EnumType``. Used as the type of enum definitions and for ``isinstance``/``issubclass`` checks.
Outpu... | python | BSD-2-Clause | diff --git a/amaranth/lib/enum.py b/amaranth/lib/enum.py
index 6a2fce7..f957222 100644
--- a/amaranth/lib/enum.py
+++ b/amaranth/lib/enum.py
@@ -14,14 +14,14 @@ for _member in py_enum.__all__:
del _member
-class EnumMeta(ShapeCastable, py_enum.EnumMeta):
- """Subclass of the standard :class:`enum.EnumMeta` that... | lib.enum: rename `EnumMeta` to `EnumType`.
Fixes #1073. | EnumMeta has been renamed to EnumType in Python 3.11
We should follow suit in `amaranth.lib.enum`. | amaranth-lang/amaranth | diff --git a/tests/test_lib_enum.py b/tests/test_lib_enum.py
index af4b006..806c31e 100644
--- a/tests/test_lib_enum.py
+++ b/tests/test_lib_enum.py
@@ -5,7 +5,7 @@ import unittest
from amaranth import *
from amaranth.hdl import *
-from amaranth.lib.enum import Enum, EnumMeta, Flag, IntEnum, EnumView, FlagView
+fro... | [
"tests/test_lib_enum.py::EnumTestCase::test_const_shape",
"tests/test_lib_enum.py::EnumTestCase::test_enum_view",
"tests/test_lib_enum.py::EnumTestCase::test_enum_view_custom",
"tests/test_lib_enum.py::EnumTestCase::test_enum_view_wrong",
"tests/test_lib_enum.py::EnumTestCase::test_flag_view",
"tests/test... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
f6a681adc13d5961073c00e57044e3855c3b76bd | 2022-02-22 04:08:41 | docker.io/swerebenchv2/pallets-click:2203-f6a681a | pallets__click-2203 | Function: click.command(*args, **attrs)
Location: src/click/decorators.py
Inputs:
- *args: optional positional arguments (e.g., name override)
- **attrs: keyword arguments forwarded to the underlying command class.
Important new key – **params**: an optional sequence of click.Parameter objects (e.g., click.Option, ... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index ff57e99..440589a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -40,6 +40,9 @@ Version 8.1.0
``confirmation_prompt=True`` and ``default=""``. :issue:`2157`
- Windows glob pattern expansion doesn't fail if a value is an invalid
pattern. :issue:`2195`
+- It's pos... | command decorator params argument
The `@command` decorator accepts the `params` argument that `Command` accepts, instead of raising a `TypeError`. Params added with `@option` and `@argument` are appended to the end of the list if given. This makes the signatures match, and makes it easier to add common options to multi... | Allow `params` attribute in decorators
Currently it is not possible to pass `params` attribute to `@command()` and `@group()` decorators.
This would be really simple implementation, which can be seen in [this forked commit](https://github.com/kristianheljas/click/commit/4e908df69ab11eb333fa14bcf4f3b54b77810ef4)
Alt... | pallets/click | diff --git a/tests/test_command_decorators.py b/tests/test_command_decorators.py
index 8d07531..9d54d7b 100644
--- a/tests/test_command_decorators.py
+++ b/tests/test_command_decorators.py
@@ -35,3 +35,17 @@ def test_group_no_parens(runner):
result = runner.invoke(grp, ["grp2", "cmd2"])
assert result.exceptio... | [
"tests/test_command_decorators.py::test_params_argument"
] | [
"tests/test_command_decorators.py::test_command_no_parens",
"tests/test_command_decorators.py::test_group_no_parens"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/kristianheljas/click/commit/4e908df... |
9fc929a54ae6ef92208c90ebafd449b8f9e3e34a | 2023-04-22 15:28:35 | docker.io/swerebenchv2/delgan-loguru:852-9fc929a | delgan__loguru-852 | Method: Logger.add(self, sink, *, level=0, format="{message}", filter=None, catch=True, colorize=True, serialize=False, enqueue=False, context=None, backtrace=True, diagnose=True, lazy=False, timeout=None, **kwargs) Location: loguru/_logger.py (class Logger) Inputs:
- **sink** – any callable, file‑like object, or path... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 230ff2e..d267126 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,3 +1,9 @@
+`Unreleased`_
+=============
+
+- Add a new ``context`` optional argument to ``logger.add()`` specifying ``multiprocessing`` context (like ``"spawn"`` or ``"fork"``) to be used internally in... | Add new "context" option for multiprocessing while adding handler
Fixes #851. | Add new "context" option to specify the multiprocessing context internally used by handlers
A better fix should be implemented for #746, because changing the default context globally using `set_start_method()` is not always suitable.
Invalid use case example on Linux (will hang forever because child processes crash)... | Delgan/loguru | diff --git a/tests/test_add_option_context.py b/tests/test_add_option_context.py
new file mode 100644
index 0000000..ee6d7c1
--- /dev/null
+++ b/tests/test_add_option_context.py
@@ -0,0 +1,66 @@
+import multiprocessing
+import os
+from unittest.mock import MagicMock
+
+import pytest
+
+from loguru import logger
+
+
+de... | [
"tests/test_add_option_context.py::test_default_context",
"tests/test_add_option_context.py::test_fork_context_as_string[fork]",
"tests/test_add_option_context.py::test_fork_context_as_string[forkserver]",
"tests/test_add_option_context.py::test_spawn_context_as_string",
"tests/test_add_option_context.py::t... | [
"tests/test_coroutine_sink.py::test_coroutine_function",
"tests/test_coroutine_sink.py::test_async_callable_sink",
"tests/test_coroutine_sink.py::test_concurrent_execution",
"tests/test_coroutine_sink.py::test_recursive_coroutine",
"tests/test_coroutine_sink.py::test_using_another_event_loop",
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/Delgan/loguru/issues/746",
"h... |
98eec45100822cc1092b7ea1fc9f734912cd2c82 | 2024-07-08 05:31:18 | docker.io/swerebenchv2/aio-libs-aiohttp:8485-98eec45 | aio-libs__aiohttp-8485 | Method: UrlDispatcher.add_static(self, prefix: str, directory: Union[str, pathlib.Path], *, name: Optional[str] = None, show_index: bool = False, chunk_size: int = 256*1024) → aiohttp.web_urldispatcher.StaticResource
Location: aiohttp/web_urldispatcher.py (method of UrlDispatcher)
Inputs:
- **prefix** – URL path prefix... | python | custom-check-github | diff --git a/CHANGES/4462.bugfix.rst b/CHANGES/4462.bugfix.rst
new file mode 100644
index 000000000..fe897a08b
--- /dev/null
+++ b/CHANGES/4462.bugfix.rst
@@ -0,0 +1,7 @@
+Fixed server response headers for ``Content-Type`` and ``Content-Encoding`` for
+static compressed files -- by :user:`steverep`.
+
+Server will now ... | Fix response headers for compressed file requests
<!-- Thank you for your contribution! -->
## What do these changes do?
<!-- Please give a short brief about these changes. -->
Currently the server responds to requests for compressed files with a `Content-Encoding` header based on the extension. This is not cor... | aiohttp decompresses 'Content-Encoding: gzip' responses
## Long story (not so) short
aiohttp automatically decompresses responses with a `Content-Encoding` header. I believe this is incorrect – while decompression may of course be useful, it should not be on by default.
The `Content-Encoding` header is similar to t... | aio-libs/aiohttp | diff --git a/requirements/test.txt b/requirements/test.txt
index 0a1475be7..d5a73302c 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -26,7 +26,7 @@ click==8.1.6
# via
# typer
# wait-for-it
-coverage==7.5.4
+coverage==7.6.0
# via
# -r requirements/test.in
# pytest... | [
"tests/test_urldispatch.py::test_add_static_path_checks",
"tests/test_web_sendfile_functional.py::test_static_file_with_content_encoding[sendfile-pyloop-gzip-application/gzip]",
"tests/test_web_sendfile_functional.py::test_static_file_with_content_encoding[sendfile-pyloop-br-application/x-brotli]",
"tests/tes... | [
"tests/test_urldispatch.py::test_register_uncommon_http_methods",
"tests/test_urldispatch.py::test_add_partial_handler",
"tests/test_urldispatch.py::test_add_sync_handler",
"tests/test_urldispatch.py::test_add_route_root",
"tests/test_urldispatch.py::test_add_route_simple",
"tests/test_urldispatch.py::tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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/curl/curl/issues/661"
],
"i... |
934a8f833bd2a9648d7bbb0174a00c83f8577675 | 2025-05-06 11:32:03 | docker.io/swerebenchv2/dynaconf-dynaconf:1293-934a8f8 | dynaconf__dynaconf-1293 | No new interfaces are introduced. | python | MIT | diff --git a/dynaconf/cli.py b/dynaconf/cli.py
index bca73f1..d096bd9 100644
--- a/dynaconf/cli.py
+++ b/dynaconf/cli.py
@@ -320,7 +320,7 @@ def init(ctx, fileformat, path, env, _vars, _secrets, wg, y, django):
"app = Flask(__name__)\n"
"FlaskDynaconf(app)\n"
)
- exit(1)
+ ... | fix: `-k` must exit code 1 when key do not exist
fix #1235 | [bug] list command must error for not found key
```bash
# /venv/bin/dynaconf list -k "D" --json
Key not found
# echo $?
0
```
Expected: `1` retcode
---
Open for discussion:
- Should retcode be `1`
- Should return empty json `{}`
? | dynaconf/dynaconf | diff --git a/tests/test_cli.py b/tests/test_cli.py
index 92d0bb3..d607119 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -115,6 +115,25 @@ def test_list(testdir):
assert "TEST_KEY<str> 'test_value'" in result
+@pytest.mark.parametrize("cmd", ["list", "inspect", "get"])
+def test_not_found_key_exit_e... | [
"tests/test_cli.py::test_not_found_key_exit_error[list]"
] | [
"tests/test_cli.py::test_version",
"tests/test_cli.py::test_help",
"tests/test_cli.py::test_banner",
"tests/test_cli.py::test_init_with_instance_raises",
"tests/test_cli.py::test_init_with_env_warns",
"tests/test_cli.py::test_init_with_path[ini]",
"tests/test_cli.py::test_init_with_path[toml]",
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ce8b4ddd1dbdf2a11ab2d8f2457eb2cac6624009 | 2021-05-24 22:32:32 | docker.io/swerebenchv2/materials-consortia-optimade-python-tools:813-ce8b4dd | materials-consortia__optimade-python-tools-813 | Method: LarkParser.parse(self, filter_: str) -> Tree
Location: optimade.filterparser.lark_parser.LarkParser
Inputs: filter_ – a string containing an OPTIMADE filter to be parsed.
Outputs: Returns a ``lark.Tree`` object representing the parsed filter. Raises ``BadRequest`` (HTTP 400) if the filter cannot be parsed (synt... | python | MIT | diff --git a/optimade/filterparser/lark_parser.py b/optimade/filterparser/lark_parser.py
index 9a6a5cd1..f1200ed0 100644
--- a/optimade/filterparser/lark_parser.py
+++ b/optimade/filterparser/lark_parser.py
@@ -1,13 +1,35 @@
+"""This submodule implements the [`LarkParser`][optimade.filterparser.LarkParser] class,
+whic... | Return 400 Bad Request (not 500) on filter parser errors, plus filterparser module facelift
Closes #812 by changing filter parsing errors from `ParserError`s to `BadRequest`s.
Also adds docstrings, types etc. to the filterparser module. | ParserError's should not return 500 HTTP status codes
When the Lark parser is unable to parse a filter in an unhandled way, we throw a `ParserError`, which inherits directly from `Exception` and thus the server treats it as a 500 Server Error.
Instead this should raise a 400 Bad Request and return the Lark error mes... | Materials-Consortia/optimade-python-tools | diff --git a/tests/filterparser/test_filterparser.py b/tests/filterparser/test_filterparser.py
index d4a40374..913fc707 100644
--- a/tests/filterparser/test_filterparser.py
+++ b/tests/filterparser/test_filterparser.py
@@ -5,7 +5,8 @@ import pytest
from lark import Tree
-from optimade.filterparser import LarkParse... | [
"tests/filterparser/test_filterparser.py::TestParserV0_9_5::test_inputs",
"tests/filterparser/test_filterparser.py::TestParserV1_0_0::test_property_names",
"tests/filterparser/test_filterparser.py::TestParserV1_0_0::test_number_values",
"tests/filterparser/test_filterparser.py::TestParserV1_0_0::test_special_... | [
"tests/filterparser/test_filterparser.py::TestParserV0_9_5::test_parser_version",
"tests/filterparser/test_filterparser.py::TestParserV0_9_5::test_repr",
"tests/filterparser/test_filterparser.py::TestParserV1_0_0::test_empty",
"tests/filterparser/test_filterparser.py::TestParserV1_0_0::test_string_values",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
08583da150d9df25f1566c7390ebf7fa4a2a9395 | 2021-04-01 18:16:46 | docker.io/swerebenchv2/pallets-click:1830-08583da | pallets__click-1830 | Function: _expand_args(args: t.Iterable[str], *, user: bool = True, env: bool = True, glob_recursive: bool = True) -> t.List[str]
Location: click.utils
Inputs:
- **args**: An iterable of command‑line argument strings to be processed.
- **user** (optional, default True): If true, each argument is passed through `os.path... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 9db1566..6b5cb35 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -192,6 +192,8 @@ Unreleased
- Command deprecation notice appears at the start of the help text, as
well as in the short help. The notice is not in all caps.
:issue:`1791`
+- When taking arguments f... | expand patterns in Windows args
On Windows, if a command is called from the command line (so it uses `sys.argv`), globs, user dir, and env vars will be expanded. Uses `glob.glob`, `os.path.expanduser`, and `os.path.expandvars`. On Unix shells it is left to the shell to handle expansion, but Windows cmd.exe and powershe... | Expand globs in arguments on Windows?
I'm using a variadic `Path` argument:
```python
@click.command()
@click.argument(
"paths", nargs=-1, type=click.Path(exists=True, dir_okay=False)
)
def whatever(paths)
...
```
When I run `myprogram.py *.txt`, then on unix of course it works, because the shell ex... | pallets/click | diff --git a/tests/test_utils.py b/tests/test_utils.py
index cc0893d..441794b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -429,3 +429,13 @@ class MockMain:
)
def test_detect_program_name(path, main, expected):
assert click.utils._detect_program_name(path, _main=main) == expected
+
+
+def test_e... | [
"tests/test_utils.py::test_expand_args"
] | [
"tests/test_utils.py::test_echo",
"tests/test_utils.py::test_echo_custom_file",
"tests/test_utils.py::test_styling[styles0-\\x1b[30mx",
"tests/test_utils.py::test_styling[styles1-\\x1b[31mx",
"tests/test_utils.py::test_styling[styles2-\\x1b[32mx",
"tests/test_utils.py::test_styling[styles3-\\x1b[33mx",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
1ff9a1c22d93192874aa310bed95234d01a806a4 | 2023-12-15 00:02:12 | docker.io/swerebenchv2/sdispater-pendulum:775-1ff9a1c | sdispater__pendulum-775 | Method: DateTime.__deepcopy__(self, _: dict[int, Self]) -> Self
Location: src/pendulum/datetime.py
Inputs:
- self: the DateTime instance to copy
- _: a memoization dict used by deepcopy (the method ignores its contents)
Outputs: a new DateTime instance with identical year, month, day, hour, minute, second, microseco... | python | MIT | diff --git a/src/pendulum/__init__.py b/src/pendulum/__init__.py
index 43346e5..3863b76 100644
--- a/src/pendulum/__init__.py
+++ b/src/pendulum/__init__.py
@@ -50,7 +50,6 @@ FRIDAY = WeekDay.FRIDAY
SATURDAY = WeekDay.SATURDAY
SUNDAY = WeekDay.SUNDAY
-
_TEST_NOW: DateTime | None = None
_LOCALE = "en"
_WEEK_START... | Fix errors where hours and days were not handled correctly when adding durations
Fixes #768
## Pull Request Check List
- [x] Added **tests** for changed code.
- [ ] Updated **documentation** for changed code.
| Increase DateTime by 1 day across daylight saving change point fails
<!--
Hi there! Thank you for discovering and submitting an issue.
Before you submit this; let's make sure of a few things.
Please make sure the following boxes are ticked if they are correct.
If not, please try and fulfill these first.
... | sdispater/pendulum | diff --git a/tests/datetime/test_add.py b/tests/datetime/test_add.py
index 6d43656..409f5bd 100644
--- a/tests/datetime/test_add.py
+++ b/tests/datetime/test_add.py
@@ -252,13 +252,25 @@ def test_add_time_to_new_transition_repeated_big():
assert not dt.is_dst()
-def test_add_interval():
+def test_add_duration_... | [
"tests/datetime/test_add.py::test_add_duration_across_transition_days",
"tests/datetime/test_behavior.py::test_deepcopy_on_transition",
"tests/datetime/test_getters.py::test_week_of_month_edge_case",
"tests/datetime/test_getters.py::test_week_of_month_negative[date1-2]",
"tests/datetime/test_getters.py::tes... | [
"tests/datetime/test_add.py::test_add_years_positive",
"tests/datetime/test_add.py::test_add_years_zero",
"tests/datetime/test_add.py::test_add_years_negative",
"tests/datetime/test_add.py::test_add_months_positive",
"tests/datetime/test_add.py::test_add_months_zero",
"tests/datetime/test_add.py::test_add... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/sdispater/pendulum/releases/latest"... |
1cb86096124299579156f2c983efe05585f1a01b | 2021-03-05 16:53:01 | docker.io/swerebenchv2/pallets-click:1807-1cb8609 | pallets__click-1807 | Function: pass_meta_key(key: str, *, doc_description: str | None = None) → Callable[[F], F]
Location: click.decorators module
Inputs:
- **key** – name of the entry in ``click.Context.meta`` whose value should be passed to the wrapped command function.
- **doc_description** *(optional)* – custom description ins... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index ac11bf3..406088e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -184,6 +184,9 @@ Unreleased
return a path object instead of a string. :issue:`405`
- ``TypeError`` is raised when parameter with ``multiple=True`` or
``nargs > 1`` has non-iterable default. :issue:`1... | add pass_meta_key decorator
Extensions using `Context.meta` can use `pass_meta_key` to create decorators for passing their data to callbacks. The `doc_description` parameter can be used to add a specific description of the object, so that the decorator's docs can be included in the extension's docs.
```python
# in ... | @pass_meta_key decorator
### Idea Proposal:
As a click's plugin developer, we use the `click.Context.meta` dictionary to store any state. So IMHO, click could provide another decorator: `@click.pass_metavar(key="foo")` similar to `@click.pass_obj`.
**Example implementation:**
```python
def pass_metavar(key: s... | pallets/click | diff --git a/tests/test_context.py b/tests/test_context.py
index c6aee3c..98f0835 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -4,6 +4,7 @@ import pytest
import click
from click.core import ParameterSource
+from click.decorators import pass_meta_key
def test_ensure_context_objects(runner):... | [
"tests/test_context.py::test_ensure_context_objects",
"tests/test_context.py::test_get_context_objects",
"tests/test_context.py::test_get_context_objects_no_ensuring",
"tests/test_context.py::test_get_context_objects_missing",
"tests/test_context.py::test_multi_enter",
"tests/test_context.py::test_global_... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
db862bcf3b5ea051d412620caccbc08d72c8f441 | 2024-03-19 08:54:09 | docker.io/swerebenchv2/getmoto-moto:7490-db862bc | getmoto__moto-7490 | Method: KinesisResponse.list_streams(self)
Location: moto/kinesis/responses.py – class `KinesisResponse`, method `list_streams`.
Inputs: No additional parameters beyond the existing AWS Kinesis ListStreams API (e.g., optional `Limit`, `ExclusiveStartStreamName`).
Outputs: JSON‑serialisable dict containing
- **H... | python | Apache-2.0 | diff --git a/moto/kinesis/responses.py b/moto/kinesis/responses.py
index 994583437..ba873a7ff 100644
--- a/moto/kinesis/responses.py
+++ b/moto/kinesis/responses.py
@@ -53,7 +53,14 @@ class KinesisResponse(BaseResponse):
has_more_streams = True
return json.dumps(
- {"HasMoreStreams": ... | Add StreamSummaries to the respose of kinesis.list_streams
The default [boto3 response](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_streams.html) includes the StreamSummaries key. This is added in this PR.
Closes #7476 | Adding `StreamSummaries` to kinesis.list_streams response
The default [boto3 response](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_streams.html) includes the `StreamSummaries` key. Can this be included?
https://github.com/getmoto/moto/blob/69fc969e9835a5dd30d4e4d440d0... | getmoto/moto | diff --git a/tests/test_kinesis/test_kinesis.py b/tests/test_kinesis/test_kinesis.py
index 954e2baad..b4e4755cf 100644
--- a/tests/test_kinesis/test_kinesis.py
+++ b/tests/test_kinesis/test_kinesis.py
@@ -137,6 +137,26 @@ def test_describe_stream_summary():
assert stream["StreamName"] == stream_name
+@mock_aws... | [
"tests/test_kinesis/test_kinesis.py::test_list_streams_stream_discription",
"tests/test_kinesis/test_server.py::test_list_streams"
] | [
"tests/test_kinesis/test_kinesis.py::test_stream_creation_on_demand",
"tests/test_kinesis/test_kinesis.py::test_update_stream_mode",
"tests/test_kinesis/test_kinesis.py::test_describe_non_existent_stream",
"tests/test_kinesis/test_kinesis.py::test_list_and_delete_stream",
"tests/test_kinesis/test_kinesis.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/latest/... |
6f2603654e0a2a640894b660346fc04e0c8b5acc | 2024-12-18 20:00:15 | docker.io/swerebenchv2/pennylaneai-pennylane:6732-6f26036 | pennylaneai__pennylane-6732 | Function: qml.counts(measurements, *, all_outcomes=False)
Location: pennylane/measurements (exposed as qml.counts)
Inputs:
- **measurements**: a single mid‑circuit measurement object (e.g., the result of `qml.measure(wire)`) or a list/tuple of such measurements for joint outcomes.
- **all_outcomes** (bool, optional):... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 64f737f63..71ad0fe84 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -625,6 +625,9 @@ same information.
<h3>Bug fixes 🐛</h3>
+* `qml.counts` returns all outcomes when the `all_outcomes` argument is `... | `qml.counts` returns all outcomes when requested if `MCM`s present
**Context:**
Previously, despite using `all_outcomes` , `qml.counts` incorrectly returned only the states that have counts present,
```python
import pennylane as qml
dev = qml.device("default.qubit", shots=10)
@qml.qnode(device=dev, mcm_method=... | [BUG] `qml.counts` of a mid-circuit measurement does not return all outcomes even when requested
### Expected behavior
`qml.counts` with `all_outcomes=True` should return all outcomes.
### Actual behavior
The correct result is returned with deferred measurement.
```python
@qml.qnode(device=dev, mcm_method="d... | PennyLaneAI/pennylane | diff --git a/tests/measurements/test_counts.py b/tests/measurements/test_counts.py
index e49ab0427..cae5816a3 100644
--- a/tests/measurements/test_counts.py
+++ b/tests/measurements/test_counts.py
@@ -396,6 +396,35 @@ class TestProcessSamples:
class TestCountsIntegration:
# pylint:disable=too-many-public-methods,... | [
"tests/measurements/test_counts.py::TestCountsIntegration::test_counts_all_outcomes_with_mcm"
] | [
"tests/measurements/test_counts.py::TestCounts::test_counts_properties",
"tests/measurements/test_counts.py::TestCounts::test_queue",
"tests/measurements/test_counts.py::TestCounts::test_copy",
"tests/measurements/test_counts.py::TestCounts::test_providing_observable_and_wires",
"tests/measurements/test_cou... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
82cf362bf87c1fba602f4139b107b42eac923804 | 2020-08-01 17:14:20 | docker.io/swerebenchv2/iterative-shtab:19-82cf362 | iterative__shtab-19 | Function: add_argument_to(parser, option_string="--print-completion", help="print shell completion script")
Location: shtab/__init__.py
Inputs:
- **parser** – an `argparse.ArgumentParser` (or a sub‑parser) to which the new argument will be added.
- **option_string** – a `str` or `list[str]` describing the flag(s) th... | python | custom-check-github | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 54b47b7..47df910 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -20,15 +20,15 @@ Most of the magic lives in [`shtab/__init__.py`](./shtab/__init__.py).
- `complete_bash()`
- `complete_zsh()`
- ...
- - `Optional()`, `Required()`, `Choice()` - ... | next release v1.3.0
- fix bash missing custom complete functionality (`add_argument().complete = ...`)
- fix subcommand completion & update `examples/customcomplete.py`
- expose `SUPPORTED_SHELLS`
- add `shtab.add_argument_to(parser, option_string)` (#18)
+ option: adds `your_cli_app [--print-completion={bash,zsh... | add convenience functions
from https://www.reddit.com/r/Python/comments/hyyl30/weve_release_an_open_source_lib_to_generate_tab/fzhj3uv/ and specifically https://gist.github.com/mpkocher/b338f416a7d0b1778d28a514c124dc16#gistcomment-3396016, would be nice to have convenience functions:
```python
parser = argparse.Arg... | iterative/shtab | diff --git a/tests/test_shtab.py b/tests/test_shtab.py
index 9e24dbf..21a7aae 100644
--- a/tests/test_shtab.py
+++ b/tests/test_shtab.py
@@ -13,8 +13,7 @@ import pytest
import shtab
from shtab.main import get_main_parser, main
-SUPPORTED_SHELLS = "bash", "zsh"
-fix_shell = pytest.mark.parametrize("shell", SUPPORTED... | [
"tests/test_shtab.py::test_bash[export",
"tests/test_shtab.py::test_bash[--z",
"tests/test_shtab.py::test_bash_compgen",
"tests/test_shtab.py::test_choices",
"tests/test_shtab.py::test_main[bash]",
"tests/test_shtab.py::test_main[zsh]",
"tests/test_shtab.py::test_prog_override[bash]",
"tests/test_shta... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.reddit.com/r/Python/comments/hyyl30/weve_r... |
fe8a56e9e348e8ae97ce826368301becea8a3d74 | 2022-08-08 20:44:37 | docker.io/swerebenchv2/pallets-werkzeug:2497-fe8a56e | pallets__werkzeug-2497 | Method: LocalProxy.__init__(self, wrapped)
Location: src/werkzeug/local.py
Inputs: <wrapped> – any object that can be proxied (callable, ContextVar, LocalStack, etc.). The argument may be a ContextVar, which is now accepted directly.
Outputs: Constructs a LocalProxy instance. The proxy is initially *unbound*; its ``... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index bac8a7af..f8a93e51 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -16,6 +16,9 @@ Unreleased
- Parsing of some invalid header characters is more robust. :pr:`2494`
- When starting the development server, a warning not to use it in a
production deployment is always s... | `__wrapped__` is always set on unbound local proxy
Doctest calls `inspect.unwrap`, which does `getattr(obj, "__wrapped__")`, which would fail if the proxy was anything but a function. In Flask 2.2, the proxies no longer use functions, so users started reporting that their doctests were failing.
Now the proxy always ... | doctest causes a working out of context RuntimeError with request
Migrating from Flask 2.1 to 2.2 failed a few unit tests of mine. It looks like we can no longer import `flask.request` top level in a test file (reproduced across Python 3.7, 3.8, 3.9, 3.10):
```python
from flask import Flask
from flask import reque... | pallets/werkzeug | diff --git a/tests/test_local.py b/tests/test_local.py
index ba66f566..2af69d2d 100644
--- a/tests/test_local.py
+++ b/tests/test_local.py
@@ -4,7 +4,6 @@ import math
import operator
import time
from contextvars import ContextVar
-from functools import partial
from threading import Thread
import pytest
@@ -15,6 ... | [
"tests/test_local.py::test_proxy_wrapped"
] | [
"tests/test_local.py::test_basic_local",
"tests/test_local.py::test_basic_local_asyncio",
"tests/test_local.py::test_local_release",
"tests/test_local.py::test_local_stack",
"tests/test_local.py::test_local_stack_asyncio",
"tests/test_local.py::test_proxy_local",
"tests/test_local.py::test_proxy_callabl... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
455fbd5eaa0270e03eac85a532e47ec75c7acd21 | 2024-01-13 20:50:57 | docker.io/swerebenchv2/getmoto-moto:7212-455fbd5 | getmoto__moto-7212 | Method: CognitoIdpUserPool.create_id_token(self, client_id: str, username: str)
Location: moto/cognitoidp/models.py
Inputs:
‑ *client_id* – the app client identifier string used for the authentication request.
‑ *username* – the user name of the Cognito user for which the ID token is being generated.
The method fe... | python | Apache-2.0 | diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py
index 48462be09..0e16230e6 100644
--- a/moto/cognitoidp/models.py
+++ b/moto/cognitoidp/models.py
@@ -568,6 +568,9 @@ class CognitoIdpUserPool(BaseModel):
def create_id_token(self, client_id: str, username: str) -> Tuple[str, int]:
extra_d... | CognitoIDP: ID-token now exposes custom attributes
Fixes #7209 | Cognito ID/Access Token do not contain user pool custom attributes
Hi,
I notice here that user pool [custom attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-custom-attributes) are not injected into the JWT
https://github.com/getmoto/moto/... | getmoto/moto | diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py
index ed2851096..6df344398 100644
--- a/tests/test_cognitoidp/test_cognitoidp.py
+++ b/tests/test_cognitoidp/test_cognitoidp.py
@@ -514,8 +514,8 @@ def test_add_custom_attributes_existing_attribute():
def test_create_user_... | [
"tests/test_cognitoidp/test_cognitoidp.py::test_other_attributes_in_id_token",
"tests/test_sagemakerruntime/test_sagemakerruntime.py::test_invoke_endpoint_async"
] | [
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool",
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool__overwrite_template_messages",
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_should_have_all_default_attributes_in_schema",
"tests/test_cognitoidp/test_cognito... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.aws.amazon.com/cognito/latest/developerguid... |
65e0bce2532ceaf5c41f0157c72269f1b33f329c | 2015-02-26 03:58:54 | docker.io/swerebenchv2/boto-botocore:472-65e0bce | boto__botocore-472 | Method: RequestCreator.create_request_object(self, request_dict, user_agent, endpoint_url) Location: botocore/endpoint.py
Inputs:
- request_dict (dict): must contain keys `method` (str), `url_path` (str), `headers` (dict), `body` (str/bytes), and optional `query_string` (mapping) used for URL query serialization.
- ... | python | Apache-2.0 | diff --git a/botocore/endpoint.py b/botocore/endpoint.py
index 7473917e0..dc84ea6be 100644
--- a/botocore/endpoint.py
+++ b/botocore/endpoint.py
@@ -23,8 +23,9 @@ from botocore.vendored import six
from botocore.exceptions import UnknownEndpointError
from botocore.awsrequest import AWSRequest
-from botocore.compat i... | Support URL paths in an endpoint_url
Fixes #420
Also fixes aws/aws-cli#961
Closes #460
This fixes the issue by extracting out the logic for converting
a request_dict that we get from a serializer to an AWSRequest object
that's used by requests. This also lets have have more
specific tests for this functionalit... | Not compatible with endpoints that have a url_path (regression from boto)
Even though `url_path` is part of the `request_dict`, it is only ever set to `/`, the hard-coded default here https://github.com/boto/botocore/blob/20f8eb43d75a3d10cea3e4b5976be40be49c7660/botocore/serialize.py#L170.
This breaks endpoints such a... | boto/botocore | diff --git a/tests/unit/test_endpoint.py b/tests/unit/test_endpoint.py
index cc274a300..701e2ff25 100644
--- a/tests/unit/test_endpoint.py
+++ b/tests/unit/test_endpoint.py
@@ -22,6 +22,7 @@ from botocore.awsrequest import AWSRequest
from botocore.endpoint import get_endpoint, Endpoint, DEFAULT_TIMEOUT
from botocore.... | [
"tests/unit/test_endpoint.py::TestGetEndpoint::test_env_ignored_if_explicitly_passed",
"tests/unit/test_endpoint.py::TestGetEndpoint::test_get_endpoint_default_verify_ssl",
"tests/unit/test_endpoint.py::TestGetEndpoint::test_honor_cert_bundle_env_var",
"tests/unit/test_endpoint.py::TestGetEndpoint::test_verif... | [] | {
"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.82,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/boto/botocore/blob/20f8eb43d75a3d10... |
12493fabdd73755b387754cfc449959e6015eef7 | 2024-12-11 23:00:31 | docker.io/swerebenchv2/mill1000-midea-msmart:181-12493fa | mill1000__midea-msmart-181 | Method: Cloud.__init__(self, region: str = DEFAULT_CLOUD_REGION, *, account: Optional[str] = None, password: Optional[str] = None, use_china_server: bool = False)
Location: msmart/cloud.py – class Cloud
Inputs:
- **region** – cloud region identifier; must exist in ``CLOUD_CREDENTIALS``.
- **account** / **passwo... | python | MIT | diff --git a/msmart/cli.py b/msmart/cli.py
index 06d3efe..cb0dfd6 100644
--- a/msmart/cli.py
+++ b/msmart/cli.py
@@ -6,7 +6,7 @@ from typing import NoReturn
from msmart import __version__
from msmart.cloud import Cloud, CloudError
-from msmart.const import OPEN_MIDEA_APP_ACCOUNT, OPEN_MIDEA_APP_PASSWORD
+from msmar... | Add support for additional cloud credentials based on region
It appears the server are region locking accounts. This PR adds support for specifying a region which is used solely for selecting different built-in credentials. Close #176 | Default cloud crendentials no longer valid worldwide
Hi Mill,
today i got an error regarding the Cloud credentials:
```
msmart-ng discover
INFO:msmart.cli:Discovering all devices on local network.
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
ERROR:msmart.discover:Failed... | mill1000/midea-msmart | diff --git a/msmart/device/AC/test_command.py b/msmart/device/AC/test_command.py
index 28eacb1..fdede07 100644
--- a/msmart/device/AC/test_command.py
+++ b/msmart/device/AC/test_command.py
@@ -844,7 +844,7 @@ class TestGroupDataResponse(_TestResponseBase):
"""Test we decode binary energy usage responses correc... | [
"msmart/device/AC/test_command.py::TestCommand::test_frame",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_additional_precision",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_checksum",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_v2",
"msmart... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
2805b28eea117c2c5ca9a739c915e21844d2b0e4 | 2024-01-05 19:37:37 | docker.io/swerebenchv2/openmdao-openmdao:3094-2805b28 | openmdao__openmdao-3094 | No new interfaces are introduced. | python | custom-check-github | diff --git a/openmdao/components/interp_util/interp_slinear.py b/openmdao/components/interp_util/interp_slinear.py
index b24fa35ab..824a217f9 100644
--- a/openmdao/components/interp_util/interp_slinear.py
+++ b/openmdao/components/interp_util/interp_slinear.py
@@ -603,7 +603,7 @@ class Interp2DSlinear(InterpAlgorithmFi... | Fix an error in the coefficient calculation for 2D slinear interp.
### Summary
We didn't catch this in our unit test because our surface wasn't "interesting" enough. (More specifically, we didn't have any x*y variation.)
### Related Issues
- Resolves #3093
### Backwards incompatibilities
None
### New ... | Error in calculation for 2D-slinear interpolator.
### Description
Getting some wrong values when compared against slinear or scipy_slinear. Seems to be a mistake in the calculations.
### Example
The function in our test doesn't have enough variation to show the problem. This one is a better example: `f_p = np.cos(P1... | OpenMDAO/OpenMDAO | diff --git a/openmdao/components/interp_util/tests/test_interp_nd.py b/openmdao/components/interp_util/tests/test_interp_nd.py
index 93e35f84f..aa7c41b0d 100644
--- a/openmdao/components/interp_util/tests/test_interp_nd.py
+++ b/openmdao/components/interp_util/tests/test_interp_nd.py
@@ -1008,7 +1008,7 @@ class TestInt... | [
"openmdao/components/interp_util/tests/test_interp_nd.py::TestInterpNDFixedPython::test_2Dslinear"
] | [
"openmdao/components/interp_util/tests/test_interp_nd.py::InterpNDStandaloneFeatureTestcase::test_cs_across_interp",
"openmdao/components/interp_util/tests/test_interp_nd.py::InterpNDStandaloneFeatureTestcase::test_interp_spline_akima",
"openmdao/components/interp_util/tests/test_interp_nd.py::InterpNDStandalon... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
61d9d53ed2e69e33f023f01a690f624cf09081c9 | 2022-03-29 09:47:08 | docker.io/swerebenchv2/martinthoma-flake8-simplify:132-61d9d53 | martinthoma__flake8-simplify-132 | Method: Assign.__init__(self, orig: ast.Assign)
Location: flake8_simplify.utils
Inputs:
- **orig**: an `ast.Assign` node representing the original assignment in the AST.
Outputs:
- An `Assign` instance exposing the original assignment’s `targets`, `value`, `lineno`, `col_offset`, as well as added attributes `orig`, `... | python | MIT | diff --git a/README.md b/README.md
index c592b89..f73d258 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,6 @@ Python-specific rules:
* `SIM119`:  Moved to [flake8-scream](https://github.com/MartinThoma/flake8-scream) due to [issue 63](https://github.com/MartinTh... | SIM909: Fix false-positive
Class attribute assignments are not reflexive assignments
Closes #129 | [Adjust Rule] SIM909
## Desired change
* **Rule(s)**: SIM909
* **Adjustment**: Consider allowing declarations on classes
## Explanation
I have this code:
```python
database = Database(url=url)
metadata = sqlalchemy.MetaData()
class BaseMeta:
metadata = metadata
database = database
```
Th... | MartinThoma/flake8-simplify | diff --git a/tests/test_900_rules.py b/tests/test_900_rules.py
index 9f49abf..029080b 100644
--- a/tests/test_900_rules.py
+++ b/tests/test_900_rules.py
@@ -163,8 +163,19 @@ def test_sim909(s, msg):
@pytest.mark.parametrize(
("s"),
- ("n, m = m, n", "foo = 'foo'"),
- ids=["tuple-switch", "variable"],
+ ... | [
"tests/test_900_rules.py::test_sim909_false_positives[class-attributes]"
] | [
"tests/test_900_rules.py::test_sim901",
"tests/test_900_rules.py::test_sim904[minimal]",
"tests/test_900_rules.py::test_sim904_false_positives[issue-99]",
"tests/test_900_rules.py::test_sim904_false_positives[issue-100-1]",
"tests/test_900_rules.py::test_sim904_false_positives[issue-100-2]",
"tests/test_9... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/MartinThoma/flake8-simplify/issues/... |
8abd69e880891c447c0f998dd510ed9c33e97e5e | 2024-09-27 20:07:29 | docker.io/swerebenchv2/openmdao-openmdao:3370-8abd69e | openmdao__openmdao-3370 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.github/workflows/openmdao_audit.yml b/.github/workflows/openmdao_audit.yml
index 0d5206986..453e448c1 100644
--- a/.github/workflows/openmdao_audit.yml
+++ b/.github/workflows/openmdao_audit.yml
@@ -116,8 +116,7 @@ jobs:
echo "Scan environment for packages with known vulnerabilities"
... | fix for bug when using array ref/ref0 values on a connected input with src_indices
### Related Issues
- Resolves #3366
### Backwards incompatibilities
None
### New Dependencies
None
| Error during final_setup when output scaling is specified as an array and the output is connected to an input using src_indices
### Description
An error is raised when scaling is specified as an array for an output (with the `ref` argument), and the output is connected to an input of different shape using the `src_ind... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_prob_remote.py b/openmdao/core/tests/test_prob_remote.py
index 824bf2a85..eb9d17ab1 100644
--- a/openmdao/core/tests/test_prob_remote.py
+++ b/openmdao/core/tests/test_prob_remote.py
@@ -1,5 +1,6 @@
import unittest
+import os
import numpy as np
import openmdao.api as om
@@ -... | [
"openmdao/core/tests/test_scaling.py::TestScaling::test_scale_array_with_array_and_slice_connection",
"openmdao/recorders/tests/test_sqlite_reader.py::TestSqliteCaseReader::test_reading_non_importable_objects_in_system_options",
"openmdao/utils/tests/test_options_dictionary.py::TestOptionsDict::test_bad_option_... | [
"openmdao/core/tests/test_scaling.py::TestScaling::test_deep_input_adder",
"openmdao/core/tests/test_scaling.py::TestScaling::test_error_messages",
"openmdao/core/tests/test_scaling.py::TestScaling::test_feature1",
"openmdao/core/tests/test_scaling.py::TestScaling::test_feature2",
"openmdao/core/tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
dacbd9dfb05c5250ab53945fe846b893db706e1f | 2023-10-20 16:12:05 | docker.io/swerebenchv2/amaranth-lang-amaranth:942-dacbd9d | amaranth-lang__amaranth-942 | Method: EnumMeta.__call__(cls, value, *args, **kwargs)
Location: amaranth/lib/enum.py
Inputs:
- cls (type): the Enum class being instantiated.
- value (object): the name of the enum to create when using functional syntax, or a concrete value for casting.
- *args, **kwargs: additional positional and keyword arguments f... | python | BSD-2-Clause | diff --git a/amaranth/lib/enum.py b/amaranth/lib/enum.py
index 10c3666..6dc70e7 100644
--- a/amaranth/lib/enum.py
+++ b/amaranth/lib/enum.py
@@ -118,7 +118,7 @@ class EnumMeta(ShapeCastable, py_enum.EnumMeta):
# replacement for `enum.Enum`.
return Shape._cast_plain_enum(cls)
- def __call_... | lib.enum: allow using functional syntax for enum creation.
Fixes #910. | `amaranth.lib.enum` does not support functional syntax
Functional syntax defined [here](https://docs.python.org/3/library/enum.html):
```python
# functional syntax
Color = Enum('Color', ['RED', 'GREEN', 'BLUE'])
```
MCVE:
```python
import enum as pyenum
import amaranth.lib.enum
pyenum.Enum("FOO", ["BAR",... | amaranth-lang/amaranth | diff --git a/tests/test_lib_enum.py b/tests/test_lib_enum.py
index 9d5a27e..5c86d60 100644
--- a/tests/test_lib_enum.py
+++ b/tests/test_lib_enum.py
@@ -116,3 +116,6 @@ class EnumTestCase(FHDLTestCase):
r"shape used in bit vector context; define the enumeration by inheriting from "
r"t... | [
"tests/test_lib_enum.py::EnumTestCase::test_functional"
] | [
"tests/test_lib_enum.py::EnumTestCase::test_const_no_shape",
"tests/test_lib_enum.py::EnumTestCase::test_const_shape",
"tests/test_lib_enum.py::EnumTestCase::test_members_const_non_int",
"tests/test_lib_enum.py::EnumTestCase::test_members_non_int",
"tests/test_lib_enum.py::EnumTestCase::test_shape_explicit"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.python.org/3/library/enum.html"
],
... |
1aaa1b02dd734251757cc7b882d05be80fa80dd0 | 2019-10-05 01:24:44 | docker.io/swerebenchv2/pypa-packaging:218-1aaa1b0 | pypa__packaging-218 | No new interfaces are introduced. | python | custom-check-github | diff --git a/packaging/tags.py b/packaging/tags.py
index 350fa12..73e2531 100644
--- a/packaging/tags.py
+++ b/packaging/tags.py
@@ -451,7 +451,11 @@ def _generic_platforms():
def _interpreter_name():
# type: () -> str
- name = platform.python_implementation().lower()
+ try:
+ name = sys.implementa... | Use sys.implementation.name if available
Closes #193 | Use sys.implementation.name if available
From https://www.python.org/dev/peps/pep-0425/#python-tag
> Other Python implementations should use sys.implementation.name.
---
We should probably use `sys.implementation.name` in packaging.tags, instead of `platform.python_implementation().lower()`, if it exists.
h... | pypa/packaging | diff --git a/tests/test_tags.py b/tests/test_tags.py
index cd7f38e..19c55b4 100644
--- a/tests/test_tags.py
+++ b/tests/test_tags.py
@@ -39,6 +39,20 @@ def is_64bit_os():
return platform.architecture()[0] == "64bit"
+@pytest.fixture
+def mock_interpreter_name(monkeypatch):
+ def mock(name):
+ if hasa... | [
"tests/test_tags.py::test__interpreter_name_cpython[PyPy-pp]",
"tests/test_tags.py::test__interpreter_name_cpython[Jython-jy]",
"tests/test_tags.py::test__interpreter_name_cpython[IronPython-ip]",
"tests/test_tags.py::test_sys_tags_on_mac_pypy"
] | [
"tests/test_tags.py::test_tag_lowercasing",
"tests/test_tags.py::test_tag_equality",
"tests/test_tags.py::test_tag_equality_fails_with_non_tag",
"tests/test_tags.py::test_tag_hashing",
"tests/test_tags.py::test_tag_hash_equality",
"tests/test_tags.py::test_tag_str",
"tests/test_tags.py::test_tag_repr",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.python.org/dev/peps/pep-0425/#python-tag",... |
6a3f0ec79bf4ea115190d7006ca71a61f3d5f2df | 2017-08-11 17:31:07 | docker.io/swerebenchv2/googlecloudplatform-google-auth-library-python:188-6a3f0ec | googlecloudplatform__google-auth-library-python-188 | Function: _load_credentials_from_file(filename)
Location: google.auth._default._load_credentials_from_file
Inputs:
- **filename** (str): Full path to a credentials file. Must refer to an existing file; can be an empty string which is treated as a missing path.
Outputs:
- Returns a tuple **(credentials, project_id)** ... | python | Apache-2.0 | diff --git a/google/auth/_default.py b/google/auth/_default.py
index 1e91368..7dac642 100644
--- a/google/auth/_default.py
+++ b/google/auth/_default.py
@@ -58,8 +58,12 @@ def _load_credentials_from_file(filename):
Raises:
google.auth.exceptions.DefaultCredentialsError: if the file is in the
- ... | Fix 161: Add error message to handle case of empty string for GOOGLE_APPLICATION_CREDENTIALS
Fixes #161 according to @jonparrott's recommendation | Setting GOOGLE_APPLICATION_CREDENTIALS to empty string throws an error
I would expect an empty environment variable to act identically to an unset environment variable.
Reported by @parthea
If I set my GOOGLE_APPLICATION_CREDENTIALS environment variable to an empty string, I receive an exception instead of the lo... | GoogleCloudPlatform/google-auth-library-python | diff --git a/tests/test__default.py b/tests/test__default.py
index 8054ac5..2df8a44 100644
--- a/tests/test__default.py
+++ b/tests/test__default.py
@@ -43,6 +43,13 @@ LOAD_FILE_PATCH = mock.patch(
mock.sentinel.credentials, mock.sentinel.project_id), autospec=True)
+def test__load_credentials_from_missing... | [
"tests/test__default.py::test__load_credentials_from_missing_file"
] | [
"tests/test__default.py::test__load_credentials_from_file_invalid_json",
"tests/test__default.py::test__load_credentials_from_file_invalid_type",
"tests/test__default.py::test__load_credentials_from_file_authorized_user",
"tests/test__default.py::test__load_credentials_from_file_authorized_user_bad_format",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1c8c0fe4d9c7f5481a40814a8a6459a5142707ff | 2024-07-09 16:16:07 | docker.io/swerebenchv2/getmoto-moto:7835-1c8c0fe | getmoto__moto-7835 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index 2696608fe..244fb2fa4 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -1026,39 +1026,33 @@ class Table(CloudFormationModel):
If that is the case, we compare by the RK of the main table instead
... | DynamoDB: Sorts by the keys of the GSI before sorting by keys of the table
Fixes https://github.com/getmoto/moto/issues/7834
If any of the keys don't exist (because we're not using a GSI or the item doesn't have them) falls through to the next attribute in the list.
> This is my first PR contributing to moto - pl... | DynamoDB sorts by Table hash before GSI when comparing ExclusiveStartKey
When querying using a GSI for items that sort in one direction by the GSI's sort key and in the opposite direction by the table's hash key it appears that the hash key sort takes precedence when comparing whether the item has already been seen (co... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb_query.py b/tests/test_dynamodb/test_dynamodb_query.py
index 4770efd3e..c5619a3ad 100644
--- a/tests/test_dynamodb/test_dynamodb_query.py
+++ b/tests/test_dynamodb/test_dynamodb_query.py
@@ -326,6 +326,63 @@ def test_query_gsi_pagination_with_string_gsi_range(table_name=Non... | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination_with_opposite_pk_order"
] | [
"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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/getmoto/moto/blob/1c8c0fe4d9c7f5481... |
7581c48609586a1984282f24e52ac65b48f23292 | 2025-06-09 11:13:56 | docker.io/swerebenchv2/conan-io-conan:18429-7581c48 | conan-io__conan-18429 | Method: CMake.install(self, stdout=None, stderr=None)
Location: conan/tools/cmake/cmake.py
Inputs:
- **stdout** (optional, file‑like object): stream where the standard output of the cmake install command will be redirected.
- **stderr** (optional, file‑like object): stream where the standard error (including deprecati... | python | MIT | diff --git a/conan/cli/commands/upload.py b/conan/cli/commands/upload.py
index 696cda874..0338002c9 100644
--- a/conan/cli/commands/upload.py
+++ b/conan/cli/commands/upload.py
@@ -23,6 +23,7 @@ def summary_upload_list(results):
v.pop("info", None)
v.pop("timestamp", None)
... | [feature] Add generic config for CMake and Meson install strip
Hello!
This PR replaces the current config `tools.cmake:install_strip` with the generic `tools.install:strip`, so it can be used by both `CMake` and `Meson`. The `install_strip` is now marked as deprecated and will warn the user with a message.
Ch... | [feature] Meson Tool support specific args like '--strip' when install()
### What is your suggestion?
From meson 0.62, meson install support '--strip', but there are no way to pass it to conan's tools.Meson.
> --tags TAGS Install only targets having one of the
... | conan-io/conan | diff --git a/test/integration/command/upload/upload_test.py b/test/integration/command/upload/upload_test.py
index 633682087..45e64ebe3 100644
--- a/test/integration/command/upload/upload_test.py
+++ b/test/integration/command/upload/upload_test.py
@@ -571,7 +571,7 @@ def test_upload_json_output():
}
-def test... | [
"test/integration/command/upload/upload_test.py::test_upload_dry_run_output",
"test/unittests/tools/cmake/test_cmake_install.py::test_run_install_strip[tools.cmake:install_strip-True]",
"test/unittests/tools/cmake/test_cmake_install.py::test_run_install_strip[tools.build:install_strip-False]",
"test/unittests... | [
"test/integration/command/upload/upload_test.py::UploadTest::test_broken_package_tgz",
"test/integration/command/upload/upload_test.py::UploadTest::test_broken_sources_tgz",
"test/integration/command/upload/upload_test.py::UploadTest::test_corrupt_upload",
"test/integration/command/upload/upload_test.py::Uplo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/conan-io/conan/issues/14166"
],... |
d13d8a138bcc791599ffc92b8fbd99dc152626dc | 2025-03-19 20:35:24 | docker.io/swerebenchv2/pennylaneai-pennylane:7121-d13d8a1 | pennylaneai__pennylane-7121 | Function: gen_is_multi_term_hamiltonian(obj)
Location: qml.operation.gen_is_multi_term_hamiltonian
Inputs:
- obj: an instance of a class inheriting from `pennylane.operator.Operator`. The object must have the `has_generator` attribute set to True and implement a `generator()` method that returns a generator object supp... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 96b025e93..ad96e177d 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -714,6 +714,12 @@
<h3>Bug fixes 🐛</h3>
+* Fixes a bug that caused the output of `qml.fourier.qnode_spectrum()` to
+ differ depend... | Fix gen_is_multi_term_hamiltonian
**Context:**
`qml.operation.gen_is_multiterm_hamiltonian` was never properly updated for new operator arithmetic.
**Description of the Change:**
Allow is to work with general generators.
**Benefits:**
The `fourier.qnode_spectrum` works for general generators.
**Possib... | [BUG] fourier.qnode_spectrum() returns different results depending on how the generator of a gate is defined
### Expected behavior
The output of `fourier.qnode_spectrum()` should be the same for two QNodes that differ only in that the generator of one of the gates is defined in a different way, which however represent... | PennyLaneAI/pennylane | diff --git a/tests/test_operation.py b/tests/test_operation.py
index 3d464d519..138e70b8b 100644
--- a/tests/test_operation.py
+++ b/tests/test_operation.py
@@ -1611,6 +1611,20 @@ class TestCriteria:
assert not qml.operation.gen_is_multi_term_hamiltonian(self.rot)
assert not qml.operation.gen_is_multi... | [
"tests/test_operation.py::TestCriteria::test_gen_is_multi_term_hamiltonian"
] | [
"tests/test_operation.py::TestOperatorConstruction::test_operation_outside_context",
"tests/test_operation.py::TestOperatorConstruction::test_incorrect_num_wires",
"tests/test_operation.py::TestOperatorConstruction::test_non_unique_wires",
"tests/test_operation.py::TestOperatorConstruction::test_num_wires_def... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
141d1e24f4352cd08afd34841e0f7a0af0b6f525 | 2024-11-24 21:46:13 | docker.io/swerebenchv2/cogent3-cogent3:2131-141d1e2 | cogent3__cogent3-2131 | Function: make_tree(treestring=None, tip_names=None, format=None, underscore_unmunge=False)
Location: src/cogent3/__init__.py
Inputs:
- treestring (str, optional): Newick representation of the tree.
- tip_names (list of str, optional): Names for the tips if the Newick string omits them.
- format (str, optional): Par... | python | BSD-3-Clause | diff --git a/src/cogent3/__init__.py b/src/cogent3/__init__.py
index d55f3ec7e..f8189d5ce 100644
--- a/src/cogent3/__init__.py
+++ b/src/cogent3/__init__.py
@@ -30,9 +30,9 @@ from cogent3.core.moltype import (
get_moltype, # noqa
)
from cogent3.core.tree import PhyloNode, TreeBuilder, TreeError, TreeNode
-from ... | DEV: process token in tree node classes to handle incorrect identification of support or name when creating a node
In this PR:
- Added the static method `parse_token` to both TreeNode and PhyloNode.
- Applied `parse_token` in `TreeBuilder.create_edge()` to distinguish between name and support before creating a node.
... | BUG: newick trees with the same support values are incorrectly assigned suffixes
**Describe the bug**
When a supported newick tree provided, the parser will incorrectly add suffix to nodes with the same support value.
**To Reproduce**
```
>>> import cogent3
>>> tree = cogent3.make_tree("((a,b)100, (c,d)100);",... | cogent3/cogent3 | diff --git a/tests/test_core/test_tree.py b/tests/test_core/test_tree.py
index d70e61cf6..55db57503 100644
--- a/tests/test_core/test_tree.py
+++ b/tests/test_core/test_tree.py
@@ -2369,35 +2369,29 @@ def test_split_name_and_support_invalid_support(invalid):
def test_phylonode_support():
tip_names = [str(i) for i... | [
"tests/test_core/test_tree.py::test_phylonode_support"
] | [
"tests/test_core/test_tree.py::TreeTests::test_make_tree",
"tests/test_core/test_tree.py::TreeNodeTests::test_Parent",
"tests/test_core/test_tree.py::TreeNodeTests::test_ancestors",
"tests/test_core/test_tree.py::TreeNodeTests::test_append",
"tests/test_core/test_tree.py::TreeNodeTests::test_bifurcating",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
47a5f750c18864f66b7fb2cd297bc50f2d74e4e3 | 2024-06-20 14:43:38 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3341-47a5f75 | aws-cloudformation__cfn-lint-3341 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/data/schemas/other/resources/tagging.json b/src/cfnlint/data/schemas/other/resources/tagging.json
index f8dafc2ca..846f98bd4 100644
--- a/src/cfnlint/data/schemas/other/resources/tagging.json
+++ b/src/cfnlint/data/schemas/other/resources/tagging.json
@@ -7,11 +7,10 @@
"Key": {
"ma... | Remove pattern from tag key/value validation
*Issue #, if available:*
fix #3316
*Description of changes:*
- Remove pattern from tag key/value validation
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| v1: false-positive for `E3024`
### CloudFormation Lint Version
cfn-lint 1.3.0
### What operating system are you using?
Windows 11
### Describe the bug
After updating from `v0.87.7` to `v1.3.0` i noticed a new finding, which is a false-positive:
```yaml
SecurityGroup:
Type: AWS::EC2::SecurityGroup
P... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/resources/properties/test_tagging.py b/test/unit/rules/resources/properties/test_tagging.py
index e49198ae0..73acaad24 100644
--- a/test/unit/rules/resources/properties/test_tagging.py
+++ b/test/unit/rules/resources/properties/test_tagging.py
@@ -50,19 +50,16 @@ def rule():
],... | [
"test/unit/rules/resources/properties/test_tagging.py::test_validate[Value",
"test/unit/rules/resources/properties/test_tagging.py::test_validate[AWS"
] | [
"test/unit/rules/resources/properties/test_tagging.py::test_validate[Valid",
"test/unit/rules/resources/properties/test_tagging.py::test_validate[Duplicate"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
3dbde966b01f7be48e497c8f61a7bc0fe5edf2ed | 2019-09-19 09:33:10 | docker.io/swerebenchv2/vmware-tern:453-3dbde96 | vmware__tern-453 | Method: ImageLayer.files_analyzed(self)
Location: tern/classes/image_layer.py (property getter)
Inputs: None (accessed via `self.layer.files_analyzed`)
Outputs: Returns a boolean indicating whether the files in this layer have been analyzed (`True` or `False`).
Description: Retrieves the current state of the `f... | python | BSD-2-Clause | diff --git a/tern/classes/image_layer.py b/tern/classes/image_layer.py
index c0b9899..e859152 100644
--- a/tern/classes/image_layer.py
+++ b/tern/classes/image_layer.py
@@ -28,6 +28,7 @@ class ImageLayer:
last layer of the image that was imported
import_str: The string from a build tool (like a Docker... | Add files_analyzed property for ImageLayer class
Fixes #444
Signed-off-by: Manaswini Das <dasmanaswini10@gmail.com> | Create a files_analyzed property in the ImageLayer class
**Description**
Create a property called `files_analyzed` in the ImageLayer class located in `tern/classes/image_layer.py`.
**Implementation**
In `tern/classes/image_layer.py`
1. Add `files_analyzed` to class docstring under `class ImageLayer:`
`files_anal... | vmware/tern | diff --git a/tests/test_class_image_layer.py b/tests/test_class_image_layer.py
index f291dfa..259ffdd 100644
--- a/tests/test_class_image_layer.py
+++ b/tests/test_class_image_layer.py
@@ -34,6 +34,11 @@ class TestClassImageLayer(unittest.TestCase):
self.assertEqual(self.layer.pkg_format, 'rpm')
self.... | [
"tests/test_class_image_layer.py::TestClassImageLayer::testInstance"
] | [
"tests/test_class_image_layer.py::TestClassImageLayer::testAddPackage",
"tests/test_class_image_layer.py::TestClassImageLayer::testGetPackageNames",
"tests/test_class_image_layer.py::TestClassImageLayer::testRemovePackage",
"tests/test_class_image_layer.py::TestClassImageLayer::testToDict",
"tests/test_clas... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
5436026e114fff1cb8a1b803f223d40fafde7245 | 2024-01-21 09:39:24 | docker.io/swerebenchv2/hikari-py-hikari:1812-5436026 | hikari-py__hikari-1812 | No new interfaces are introduced. | python | MIT | diff --git a/changes/1812.bugfix.md b/changes/1812.bugfix.md
new file mode 100644
index 00000000..504d10e7
--- /dev/null
+++ b/changes/1812.bugfix.md
@@ -0,0 +1,2 @@
+`Member.joined_at` is now nullable due to breaking API change
+ - This will be received on guest members with temporary membership
diff --git a/hikari/gu... | `Member.joined_at` can now be None
Discord making breaking changes :D
### Related issues
Closes #1811
| `Member.joined_at` is now nullable due to breaking API change
### Steps to reproduce
1. Invite guest via guest invite
2. Try deserializing the incoming events that contain the member (`VOICE_STATE_UPDATE` is definitely affected, unsure about the rest)
3. Bot explod
### Expected result
Bot not explod
###... | hikari-py/hikari | diff --git a/tests/hikari/impl/test_entity_factory.py b/tests/hikari/impl/test_entity_factory.py
index 35d07ed1..6c29210e 100644
--- a/tests/hikari/impl/test_entity_factory.py
+++ b/tests/hikari/impl/test_entity_factory.py
@@ -3230,7 +3230,7 @@ def test_deserialize_member_with_null_fields(self, entity_factory_impl, use... | [
"tests/hikari/impl/test_entity_factory.py::TestEntityFactoryImpl::test_deserialize_member_with_null_fields"
] | [
"tests/hikari/impl/test_entity_factory.py::TestEntityFactoryImpl::test_serialize_embed_validators[{'name':",
"tests/hikari/impl/test_entity_factory.py::TestEntityFactoryImpl::test_serialize_embed_with_url_resources_does_not_provide_attachments",
"tests/hikari/impl/test_entity_factory.py::TestEntityFactoryImpl::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/discord/discord-api-docs/pull/6247"
... |
df38225598b204b041af3a6def9bc06d6495636a | 2025-03-14 11:09:22 | docker.io/swerebenchv2/narwhals-dev-narwhals:2206-df38225 | narwhals-dev__narwhals-2206 | Method: DataFrame.clone(self) → DataFrame
Location: narwhals/dataframe.py (class DataFrame, overrides BaseFrame.clone)
Inputs: No parameters besides the implicit instance (`self`). Must be an eager DataFrame.
Outputs: Returns a new DataFrame that is an identical copy of the original, with its own underlying compliant f... | python | MIT | diff --git a/docs/api-reference/lazyframe.md b/docs/api-reference/lazyframe.md
index 07667ab0..9ab5f128 100644
--- a/docs/api-reference/lazyframe.md
+++ b/docs/api-reference/lazyframe.md
@@ -4,7 +4,6 @@
handler: python
options:
members:
- - clone
- collect
- collect_schema
... | feat!: remove require at least one expression be passed to lazyframe select and lazyframe.with_columns, remove lazyframe.clone
closes #2205
This doesn't break any downstream tests, and `narwhals.LazyFrame` isn't widely used (yet 🤞 ) so I think it's OK to be slightly more aggressive with changes there
We can alwa... | api: disallow `LazyFrame.select()`
`lf.select()` is a bit problematic and varies a bit across backends, as for duckdb/sqlframe it seems we don't have a way to return a table with 0 rows and 0 columns
I propose to just require that at least one expression be passed to `LazyFrame.select`, problem solved | narwhals-dev/narwhals | diff --git a/tests/expr_and_series/len_test.py b/tests/expr_and_series/len_test.py
index 021abf15..22179471 100644
--- a/tests/expr_and_series/len_test.py
+++ b/tests/expr_and_series/len_test.py
@@ -36,7 +36,7 @@ def test_namespace_len(constructor: Constructor) -> None:
assert_equal_data(df, expected)
df = (
... | [
"tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[pyarrow]",
"tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[pandas[pyarrow]]",
"tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[pandas]",
"tests/frame/with_columns_test.py::test_select_with_colum... | [
"tests/frame/select_test.py::test_binary_window_aggregation[pandas[pyarrow]]",
"tests/frame/select_test.py::test_comparison_with_list_error_message",
"tests/frame/select_test.py::test_alias_invalid[pandas]",
"tests/frame/select_test.py::test_select_duplicates[pandas[pyarrow]]",
"tests/frame/select_test.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
95435de4526b609ee904b7a27478cec2e32f8fe8 | 2020-10-27 22:52:30 | docker.io/swerebenchv2/samuelcolvin-pydantic:2057-95435de | samuelcolvin__pydantic-2057 | Function: PrivateAttr(default: Any = Undefined, *, default_factory: Optional[NoArgAnyCallable] = None) -> Any
Location: pydantic.fields.PrivateAttr (callable factory returning a ModelPrivateAttr)
Inputs:
- `default` – optional initial value for the private attribute (any type), default is `Undefined`.
- `default_facto... | python | MIT | diff --git a/changes/2048-aphedges.md b/changes/2048-aphedges.md
new file mode 100644
index 000000000..0407f2367
--- /dev/null
+++ b/changes/2048-aphedges.md
@@ -0,0 +1,1 @@
+Fix mypy assignment error when using `PrivateAttr`
diff --git a/pydantic/fields.py b/pydantic/fields.py
index c451770c0..36ea690a2 100644
--- a/p... | Refactor PrivateAttr to type-check like Field
## Change Summary
- Fix mypy assignment error when using `PrivateAttr`
- `PrivateAttr` is renamed `ModelPrivateAttr` and modeled after `ModelField`
- A `PrivateAttr` function now exists, modeled after `Field`
- Documentation and error message are now more consiste... | PrivateAttr causes failing type check
### Checks
- [x] I added a descriptive title to this issue
- [x] I have searched (google, github) for similar issues and couldn't find anything
- [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug
# Bug
Output of `... | samuelcolvin/pydantic | diff --git a/tests/mypy/modules/success.py b/tests/mypy/modules/success.py
index 202184c93..3d48a33e1 100644
--- a/tests/mypy/modules/success.py
+++ b/tests/mypy/modules/success.py
@@ -9,7 +9,7 @@ from datetime import date, datetime
from typing import Any, Dict, Generic, List, Optional, TypeVar
from pydantic import... | [
"tests/test_private_attributes.py::test_default_and_default_factory_used_error"
] | [
"tests/test_private_attributes.py::test_private_attribute",
"tests/test_private_attributes.py::test_private_attribute_factory",
"tests/test_private_attributes.py::test_private_attribute_annotation",
"tests/test_private_attributes.py::test_underscore_attrs_are_private",
"tests/test_private_attributes.py::tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pydantic-docs.helpmanual.io/"
],
"inte... |
303b1b92cbfaf6d8ec034d50ec4edfc15fb588d3 | 2023-08-11 21:18:13 | docker.io/swerebenchv2/getmoto-moto:6637-303b1b9 | getmoto__moto-6637 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/core/custom_responses_mock.py b/moto/core/custom_responses_mock.py
index b979b318b..e72cf4810 100644
--- a/moto/core/custom_responses_mock.py
+++ b/moto/core/custom_responses_mock.py
@@ -7,15 +7,7 @@ from urllib.parse import urlparse
from werkzeug.wrappers import Request
from .responses import TYPE_... | S3: Allow specific resource in IAM access policy
Fixes #6514 | IAM-like access control doesn't work with specified `Resource` key in policy
## Issue
It seems like the [IAM-like access control](https://docs.getmoto.org/en/latest/docs/iam.html) doesn't work when specifying the `Resource` key in the policy. Everthing works well with `"Resource": "*"` but without the wildcard the a... | getmoto/moto | diff --git a/tests/test_core/test_auth.py b/tests/test_core/test_auth.py
index 5e9e10417..8c5f8fa04 100644
--- a/tests/test_core/test_auth.py
+++ b/tests/test_core/test_auth.py
@@ -766,3 +766,68 @@ def test_s3_invalid_token_with_temporary_credentials():
assert err["Code"] == "InvalidToken"
assert ex.value.res... | [
"tests/test_core/test_auth.py::test_allow_bucket_access_using_resource_arn",
"tests/test_core/test_auth.py::test_allow_key_access_using_resource_arn"
] | [
"tests/test_core/test_auth.py::test_invalid_client_token_id",
"tests/test_core/test_auth.py::test_auth_failure",
"tests/test_core/test_auth.py::test_signature_does_not_match",
"tests/test_core/test_auth.py::test_auth_failure_with_valid_access_key_id",
"tests/test_core/test_auth.py::test_access_denied_with_n... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://docs.getmoto.org/en/latest/docs/iam.html"
... |
a573835eb49f1ba9c9ccdf06fa105ad1a7500624 | 2023-02-21 20:51:51 | docker.io/swerebenchv2/stac-utils-pystac:999-a573835 | stac-utils__pystac-999 | Method: STACObject.remove_hierarchical_links(self, add_canonical: bool = False)
Location: pystac.stac_object (class STACObject, inherited by Catalog, Collection, Item)
Inputs:
• add_canonical – bool, optional (default False). When True and the object has a “self” href, a new link with rel="canonical" ... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b761b7b..bc93d256 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@
- Optional `strategy` parameter to `catalog.add_items()` ([#967](https://github.com/stac-utils/pystac/pull/967))
- `start_datetime` and `end_datetime` arguments to the `Item` constructor ([... | Remove structural links
**Related Issue(s):**
- Closes #179
- Begins adding fixtures for #948, and changes fixture names as recommended in https://github.com/stac-utils/pystac/issues/948#issuecomment-1433176507
**Description:**
- Adds `remove_hierarchical_links` to `STACObject`
- Adds `Links.is_hierarchical... | Removing hierarchical links / add source link
I see that there is a `remove_links(<rel>)` function, which can be used for this, but it would be useful to have a single function to remove all hierarchical links. This is useful if you are reading in metadata from another catalog and wish to add it to another catalog.
... | stac-utils/pystac | diff --git a/tests/conftest.py b/tests/conftest.py
index d38bb96b..fa525042 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,22 +1,29 @@
+# TODO move all test case code to this file
+
from datetime import datetime
import pytest
from pystac import Catalog, Collection, Item
-from .utils import ARBITR... | [
"tests/test_catalog.py::test_remove_hierarchical_links[True]",
"tests/test_catalog.py::test_remove_hierarchical_links[False]",
"tests/test_collection.py::test_remove_hierarchical_links[True]",
"tests/test_collection.py::test_remove_hierarchical_links[False]",
"tests/test_item.py::test_remove_hierarchical_li... | [
"tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_absolute_published",
"tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_relative_published",
"tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_self_contained",
"tests/test_catalog.py::CatalogTypeTest::test_determine_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/radiantearth/stac-spec/issues/882"
... |
a02c4eeb23afbe125916a956237156a7c018b463 | 2023-05-16 14:22:55 | docker.io/swerebenchv2/openmdao-openmdao:2916-a02c4ee | openmdao__openmdao-2916 | Method: Group.promotes(self, subsys_name, any=None, inputs=None, outputs=None)
Location: openmdao.core.group.Group
Inputs:
- subsys_name (str): name of the child subsystem within the group whose variables are being promoted.
- any (list or tuple of (local_name, PromotesInfo), optional): generic promotions for any va... | python | custom-check-github | diff --git a/openmdao/core/configinfo.py b/openmdao/core/configinfo.py
index 53e428a8d..1e9e6c92d 100644
--- a/openmdao/core/configinfo.py
+++ b/openmdao/core/configinfo.py
@@ -5,19 +5,19 @@ A class to keep track of which systems are modified during configure().
from openmdao.utils.general_utils import all_ancestors
... | Fixed issue with promotion in config when the promoted parent group is more than one level below the current group.
### Related Issues
- Resolves #2910
### Backwards incompatibilities
None
### New Dependencies
None
| Bogus error raised when calling promotes on a deeply nested output to address conflicting output names.
### Description
When we have 2 identical output names that are promoted with wildcards into a subsystem where they collide, we can call `promotes` to set one of them. This works if we call promotes on higher level ... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_group.py b/openmdao/core/tests/test_group.py
index 5be585e7a..7ac21280e 100644
--- a/openmdao/core/tests/test_group.py
+++ b/openmdao/core/tests/test_group.py
@@ -405,6 +405,33 @@ class TestGroup(unittest.TestCase):
"'d1' <class SellarDis2>: 'promotes_outp... | [
"openmdao/core/tests/test_group.py::TestGroup::test_group_promotes_modified_systems"
] | [
"openmdao/core/tests/test_group.py::TestSubsystemConfigError::test_add_subsystem_error_on_config",
"openmdao/core/tests/test_group.py::TestGroup::test_add_subsystem_class",
"openmdao/core/tests/test_group.py::TestGroup::test_connect_to_flat_array",
"openmdao/core/tests/test_group.py::TestGroup::test_connect_t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
5627c32bc3f08bd840719859eba94ec3f1ea01e6 | 2015-03-25 16:58:07 | docker.io/swerebenchv2/box-box-python-sdk:37-5627c32 | box__box-python-sdk-37 | Method: Search.search(self, query, limit, offset, ancestor_folders=None, file_extensions=None, metadata_filters=None)
Location: boxsdk/object/search.py
Inputs:
- query (str): text to search for.
- limit (int): maximum number of items to return.
- offset (int): index of first item to return.
- ancestor_folde... | python | Apache-2.0 | diff --git a/boxsdk/client.py b/boxsdk/client.py
index 70518df..8ea4fd2 100644
--- a/boxsdk/client.py
+++ b/boxsdk/client.py
@@ -105,7 +105,7 @@ def users(self):
response = box_response.json()
return [User(self._session, item['id'], item) for item in response['entries']]
- def search(self, query,... | Add support for searching by metadata value (Fixes #36)
Added mdfilters param to search object | Add support for searching by metadata value
The Search API now has the ability to search by metadata value using the "mdfilters" param. The SDK should have support for this new functionality. | box/box-python-sdk | diff --git a/test/unit/object/conftest.py b/test/unit/object/conftest.py
index 638f667..6a2ae1e 100644
--- a/test/unit/object/conftest.py
+++ b/test/unit/object/conftest.py
@@ -10,6 +10,7 @@
from boxsdk.object.folder import Folder
from boxsdk.object.group import Group
from boxsdk.object.user import User
+from boxsdk... | [
"test/unit/object/test_search.py::test_range_filter_without_gt_and_lt_will_fail_validation"
] | [] | {
"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": ... |
b10976aed676cd65e633de58627b1d353d5b4e62 | 2025-04-19 14:52:01 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4116-b10976a | aws-cloudformation__cfn-lint-4116 | Method: CfnTemplateValidator.evolve(self, *, context: Context, cfn: Template)
Location: cfnlint.jsonschema.validators (CfnTemplateValidator class)
Inputs:
- **context** – a `Context` object that provides the evaluation environment (mappings, parameters, conditions, etc.).
- **cfn** – a `Template` instance repre... | python | MIT-0 | diff --git a/src/cfnlint/context/__init__.py b/src/cfnlint/context/__init__.py
index 716204d27..390bfa15a 100644
--- a/src/cfnlint/context/__init__.py
+++ b/src/cfnlint/context/__init__.py
@@ -1,3 +1,4 @@
__all__ = ["Context", "create_context_for_template"]
+from cfnlint.context.conditions.exceptions import Unsatisf... | Update context when resolving IFs
*Issue #, if available:*
fix #4112
*Description of changes:*
- Update context when resolving IFs
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| W1033 gets confused by complex Split-Join-Join
### CloudFormation Lint Version
cfn-lint 1.34.0
### What operating system are you using?
Linux
### Describe the bug
We have a complex split-join-join situation, in order to allow a comma-separated parameter to be optionally appended to a role's managed policies. It cu... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/jsonschema/test_resolvers_cfn.py b/test/unit/module/jsonschema/test_resolvers_cfn.py
index a64ff6dd0..4d7788763 100644
--- a/test/unit/module/jsonschema/test_resolvers_cfn.py
+++ b/test/unit/module/jsonschema/test_resolvers_cfn.py
@@ -8,9 +8,16 @@ from collections import deque
import pyte... | [
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_if"
] | [
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_resolvers_ref[Valid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_invalid_functions[Invalid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_functions[Valid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_fu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
6da12892a3c18248a2cfe55bc7d2cb3039817684 | 2023-01-12 06:54:57 | docker.io/swerebenchv2/getmoto-moto:5835-6da1289 | getmoto__moto-5835 | Method: client.put_parameter(Name, Value, Type, DataType, **kwargs)
Location: moto/ssm/models.py → SimpleSystemManagerBackend.put_parameter (executed via boto3 SSM client)
Inputs:
- **Name** (str): Parameter identifier; must be a non‑empty string.
- **Value** (str): Parameter value.
- **Type** (str): Must be one of `"S... | python | Apache-2.0 | diff --git a/.gitignore b/.gitignore
index 8c9f3ec2a..9f24ea99c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,4 @@ htmlcov/
.coverage*
docs/_build
moto_recording
+.hypothesis
diff --git a/docs/docs/contributing/architecture.rst b/docs/docs/contributing/architecture.rst
index 3857cb911..e549274ee 100644
--- a... | 5740 ssm param type validation
Fixes #5740
Note that the [architecture page](http://docs.getmoto.org/en/latest/docs/contributing/architecture.html#contributing-architecture) and [development tips](http://docs.getmoto.org/en/latest/docs/contributing/development_tips/index.html#contributing-tips) both say to put param... | Type not validated with SSM put_parameter
# Steps to reproduce
```
import boto3
from moto import mock_ssm
with mock_ssm():
client=boto3.client('ssm')
param_name = 'test_param'
client.put_parameter(
Name=param_name,
Value="Contents of param",
Type='str' # this is a bug ... | getmoto/moto | diff --git a/tests/test_ssm/test_ssm_boto3.py b/tests/test_ssm/test_ssm_boto3.py
index dffe73cc9..4a6fa984e 100644
--- a/tests/test_ssm/test_ssm_boto3.py
+++ b/tests/test_ssm/test_ssm_boto3.py
@@ -414,6 +414,23 @@ def test_put_parameter_invalid_data_type(bad_data_type):
)
+@mock_ssm
+def test_put_parameter_inv... | [
"tests/test_ssm/test_ssm_boto3.py::test_put_parameter_invalid_type"
] | [
"tests/test_ssm/test_ssm_boto3.py::test_delete_parameter",
"tests/test_ssm/test_ssm_boto3.py::test_delete_nonexistent_parameter",
"tests/test_ssm/test_ssm_boto3.py::test_delete_parameters",
"tests/test_ssm/test_ssm_boto3.py::test_get_parameters_by_path",
"tests/test_ssm/test_ssm_boto3.py::test_put_parameter... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
f9e5e9bdb5c3b4ffcba803f168e3a4c3a0be1c5a | 2024-04-02 20:58:49 | docker.io/swerebenchv2/prefecthq-prefect-aws:407-f9e5e9b | prefecthq__prefect-aws-407 | Method: ECSWorker._create_task_run(self, task_run_request: dict)
Location: class **ECSWorker** in `prefect_aws/workers/ecs_worker.py`
Inputs:
- **task_run_request** – a dictionary representing the ECS RunTask request; may now contain a key **"capacityProviderStrategy"** (list of dicts) when a capacity‑provider st... | python | Apache-2.0 | diff --git a/prefect_aws/workers/ecs_worker.py b/prefect_aws/workers/ecs_worker.py
index d216efa..d862fdd 100644
--- a/prefect_aws/workers/ecs_worker.py
+++ b/prefect_aws/workers/ecs_worker.py
@@ -70,9 +70,9 @@ from prefect.workers.base import (
from pydantic import VERSION as PYDANTIC_VERSION
if PYDANTIC_VERSION.s... | Support for capacity provider
<!-- Thanks for contributing 🎉! Please ensure the title neatly summarizes the proposed changes. -->
<!-- Overview -->
Enables passing down `capacityProviderStrategy` to `task_run_request`.
Closes #362
### Checklist
<!-- These boxes may be checked after opening the pull re... | Accept `None` as an argument to Launch Type for ECSTask with `publish_as_work_pool`
<!-- Thanks for submitting an issue! Please describe the issue. -->
ECS doesn't let you use both a Capacity Provider and a Launch Type. We use Capacity Providers in order to specify specific Instance Types (`r6i.large` etc) for our jo... | PrefectHQ/prefect-aws | diff --git a/tests/workers/test_ecs_worker.py b/tests/workers/test_ecs_worker.py
index dc32931..c5c7817 100644
--- a/tests/workers/test_ecs_worker.py
+++ b/tests/workers/test_ecs_worker.py
@@ -506,6 +506,7 @@ async def test_launch_types(
# Instead, it requires a capacity provider strategy but this is not suppo... | [
"tests/workers/test_ecs_worker.py::test_user_defined_capacity_provider_strategy"
] | [
"tests/workers/test_ecs_worker.py::test_default",
"tests/workers/test_ecs_worker.py::test_image",
"tests/workers/test_ecs_worker.py::test_launch_types[EC2]",
"tests/workers/test_ecs_worker.py::test_launch_types[FARGATE]",
"tests/workers/test_ecs_worker.py::test_launch_types[FARGATE_SPOT]",
"tests/workers/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/PrefectHQ/prefect/issues/5210"
... |
eabc98858b56474d919e8f089dddb57c4b725ec5 | 2022-02-23 22:23:38 | docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1029-eabc988 | pyjanitor-devs__pyjanitor-1029 | Method: DataFrame.encode_categorical(self, column_names=None, **kwargs)
Location: janitor/functions/encode_categorical.py
Inputs:
- **self**: pandas DataFrame on which the method is invoked.
- **column_names** (optional, str | list | tuple): name(s) of column(s) to cast to unordered categorical. Mutually exclusive with... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5dcbd00..f12d42e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@
- [BUG] Extend `fill_empty`'s `column_names` type range. Issue #998. @Zeroto521
- [BUG] Removed/updated error-inducing default arguments in `row_to_names` (#1004) and `round_to_fraction` ... | [ENH] simpler `encode_categorical`
# PR Description
Please describe the changes proposed in the pull request:
- remove tuple use in `kwargs`
- use either a string(`sort`/`appearance`) or a 1D array.
- update tests, and add examples(shamelessly copied from @thatlittleboy )
**This PR resolves #1021 .**
<!--... | [ENH] make `encode_categorical` `kwargs` option simpler
# Brief Description
reduce the kwargs option to either `str` or `array-like`.
# Example API
```python
# if just `str`:
df.encode_categorical(col = 'sort'/'appearance')
# if an array-like is passed, then order is irrelevant:
df.encode_categorical(col... | pyjanitor-devs/pyjanitor | diff --git a/tests/functions/test_encode_categorical.py b/tests/functions/test_encode_categorical.py
index 240179d..3be7864 100644
--- a/tests/functions/test_encode_categorical.py
+++ b/tests/functions/test_encode_categorical.py
@@ -1,5 +1,6 @@
import numpy as np
import pandas as pd
+import datetime
import pytest
f... | [
"tests/functions/test_encode_categorical.py::test_categories_ndim_MultiIndex_gt_1_in_kwargs",
"tests/functions/test_encode_categorical.py::test_categories_ndim_DataFrame_gt_1_in_kwargs",
"tests/functions/test_encode_categorical.py::test_categories_null_in_categories",
"tests/functions/test_encode_categorical.... | [
"tests/functions/test_encode_categorical.py::test_encode_categorical",
"tests/functions/test_encode_categorical.py::test_encode_categorical_missing_column",
"tests/functions/test_encode_categorical.py::test_encode_categorical_missing_columns",
"tests/functions/test_encode_categorical.py::test_encode_categoric... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
06580ba2ff39a00b04bd700172d4c249cad0bffe | 2022-02-12 18:47:28 | docker.io/swerebenchv2/martinthoma-flake8-simplify:97-06580ba | martinthoma__flake8-simplify-97 | Method: Visitor.visit_Assign(self, node: ast.Assign)
Location: flake8_simplify.py → class Visitor, method visit_Assign
Inputs:
- `self`: the Visitor instance accumulating linting errors.
- `node`: an `ast.Assign` node representing an assignment statement in the source code.
Outputs:
- Updates `self.errors` with any S... | python | MIT | diff --git a/README.md b/README.md
index b833707..c7828e6 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ Python-specific rules:
* [`SIM117`](https://github.com/MartinThoma/flake8-simplify/issues/35): Merge with-statements that use the same scope ([example](#SIM117))
* [`SIM119`](https://github.com/MartinTho... | SIM124 (SIM904): Check for dictionary pre-initialization
* SIM904
Closes #92 | [New Rule] Create dictionary directly
## Explanation
Do not use a line to create a dictionary, and then populate it. Do it directly. PyCharm has this check, which is rather neat; I think it's in Pylint as I think this linter is used behind the scenes when you run code inspection on a project. It's a bit faster (nano... | MartinThoma/flake8-simplify | diff --git a/tests/test_simplify.py b/tests/test_simplify.py
index 5443746..0304702 100644
--- a/tests/test_simplify.py
+++ b/tests/test_simplify.py
@@ -935,3 +935,11 @@ else:
def test_sim901():
results = _results("bool(a == b)")
assert results == {"1:0 SIM901 Use 'a == b' instead of 'bool(a == b)'"}
+
+
+de... | [
"tests/test_simplify.py::test_sim904"
] | [
"tests/test_simplify.py::test_trivial_case",
"tests/test_simplify.py::test_plugin_version",
"tests/test_simplify.py::test_plugin_name",
"tests/test_simplify.py::test_single_isinstance",
"tests/test_simplify.py::test_fine_code",
"tests/test_simplify.py::test_multiple_isinstance_multiple_lines",
"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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
e47a2fd120cb7d800aa19c41b88a6c3a907d8682 | 2023-01-14 13:32:52 | docker.io/swerebenchv2/getmoto-moto:5843-e47a2fd | getmoto__moto-5843 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/__init__.py b/moto/dynamodb/models/__init__.py
index 854727ee7..9360a4155 100644
--- a/moto/dynamodb/models/__init__.py
+++ b/moto/dynamodb/models/__init__.py
@@ -1422,7 +1422,7 @@ class DynamoDBBackend(BaseBackend):
else:
return table.schema
- def get_table(... | DynamoDB: Add validation for GSI attrs set to None
Fixes #5713 | [dynamodb] No validation on attributes
We ran into this issue in production. Moto fails to validate that an attribute must be of a proper type when using `put_object`:
```python
import boto3
from moto import mock_dynamodb
@mock_dynamodb
def test_whatever():
session = boto3.Session()
dynamodb = sess... | getmoto/moto | diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
index 6271f7678..ebb7c13cc 100644
--- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
+++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
@@ -899,3 +899,43 @@ de... | [
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_gsi_key_cannot_be_empty"
] | [
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception",
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_table_with_wrong_key_attribute_names_throws_exception",
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.p... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
fd1e5319463f0a0dedf346cdd3b147dff2d4e844 | 2019-05-10 13:20:53 | docker.io/swerebenchv2/vmware-tern:259-fd1e531 | vmware__tern-259 | Method: Image.get_human_readable_id(self)
Location: tern/classes/image.py
Inputs: None (uses instance attributes `image_id`, optional `name` and `tag`)
Outputs: str – a human‑readable identifier composed of the image ID, and, if present, the image name and tag concatenated with hyphens; e.g., `"5678efgh-testimage-te... | python | BSD-2-Clause | diff --git a/tern/classes/image.py b/tern/classes/image.py
index 4be9a2e..0048878 100644
--- a/tern/classes/image.py
+++ b/tern/classes/image.py
@@ -136,3 +136,14 @@ class Image:
image_dict.update({'layers': layer_list})
image_dict.update({'origins': self.origins.to_dict()})
return im... | Create function to generate SPDX document
This resolves #253 | Create a function to create SPDX document
**Description**
Create a function to create SPDX document.
This is probably more involved than writing one function. So we do this in a number of steps
**To Do**
1. Create a folder `report/spdxtagvalue` (this should not affect current operation)
2. Create a file called `... | vmware/tern | diff --git a/tests/test_class_image.py b/tests/test_class_image.py
index d352300..cd7d378 100644
--- a/tests/test_class_image.py
+++ b/tests/test_class_image.py
@@ -36,7 +36,11 @@ class TestClassImage(unittest.TestCase):
def testLoadImage(self):
self.assertEqual(self.image2.image_id, '5678efgh')
... | [
"tests/test_class_image.py::TestClassImage::testGetHumanReadableId"
] | [
"tests/test_class_image.py::TestClassImage::testGetLayerDiffIds",
"tests/test_class_image.py::TestClassImage::testGetLayerObject",
"tests/test_class_image.py::TestClassImage::testInstance",
"tests/test_class_image.py::TestClassImage::testLoadImage",
"tests/test_class_image.py::TestClassImage::testToDict",
... | {
"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": "hard",
"external_urls": [
"https://spdx.org/spdx-tagvalue-example"
],
"inte... |
48b0687e05a5466a91cd5812d604fa37ad0943b4 | 2023-05-26 12:42:49 | docker.io/swerebenchv2/pallets-jinja:1852-48b0687 | pallets__jinja-1852 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 0a569475..5d64b267 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -8,6 +8,9 @@ Unreleased
- The sandboxed environment handles indirect calls to ``str.format``, such as
by passing a stored reference to a filter that calls its argument.
:ghsa:`q2x7-8rv6-6q7h`
+- ... | fix f-string syntax error in code generation
I've fixed a bug that caused an f-string syntax error in the template compilation when a template, that imports a macro, contains curly braces in its name. The bug was caused by the code-generation of an f-string in which the template name is inserted, and when the template ... | f-string sytax error when importing macro in a template which filename is also a template
With this template structure:
```
/templates/
+- {% jinja expr %}.jinja
+- macro_file.jina
```
When `{% jinja expr %}.jinja` imports a macro using 'from "macro_file.jinja" import my_macro' syntax, Environment.render fails wi... | pallets/jinja | diff --git a/tests/test_compile.py b/tests/test_compile.py
index 42efa59c..e1a5391e 100644
--- a/tests/test_compile.py
+++ b/tests/test_compile.py
@@ -1,6 +1,9 @@
import os
import re
+import pytest
+
+from jinja2 import UndefinedError
from jinja2.environment import Environment
from jinja2.loaders import DictLoade... | [
"tests/test_compile.py::test_undefined_import_curly_name"
] | [
"tests/test_compile.py::test_filters_deterministic",
"tests/test_compile.py::test_import_as_with_context_deterministic",
"tests/test_compile.py::test_top_level_set_vars_unpacking_deterministic",
"tests/test_compile.py::test_loop_set_vars_unpacking_deterministic",
"tests/test_compile.py::test_block_set_vars_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
8942801fb365f6b346d39dfc27ff4a5946ef98a7 | 2024-08-15 21:48:19 | docker.io/swerebenchv2/dasdae-dascore:421-8942801 | dasdae__dascore-421 | Method: PatchAttrs.history
Location: dascore.core.attrs.PatchAttrs
Inputs: No parameters (attribute). Stored as an immutable tuple of strings describing processing steps applied to the patch.
Outputs: tuple[str, ...] – immutable history list.
Description: Holds a chronological record of operations performed on a Patch;... | python | custom-check-github | diff --git a/dascore/core/attrs.py b/dascore/core/attrs.py
index de48d95..32e1315 100644
--- a/dascore/core/attrs.py
+++ b/dascore/core/attrs.py
@@ -3,7 +3,7 @@
from __future__ import annotations
import warnings
-from collections.abc import Mapping, Sequence
+from collections.abc import Mapping
from typing import ... | fix #416: switch history attribute to tuple
## Description
This PR fixes #416 by changing the type annotation of `history` to `str | tuple[str, ...]` so that values of history should be immutable.
## Checklist
I have (if applicable):
- [ ] referenced the GitHub issue this PR closes.
- [ ] documented the n... | patch.attrs.history should be a tuple not a list
## Description
Since we are striving for immutability, the history attribute of attrs should be a tuple not a list (as it is now).
## Versions
- OS [e.g. Ubuntu 20.04]:
- DasCore Version [e.g. 0.0.5]:
- Python Version [e.g. 3.10]:
| DASDAE/dascore | diff --git a/tests/test_core/test_patch.py b/tests/test_core/test_patch.py
index afe7802..cb57662 100644
--- a/tests/test_core/test_patch.py
+++ b/tests/test_core/test_patch.py
@@ -683,3 +683,20 @@ class TestSetDims:
time="my_coord"
) # set mycoord as dim (rather than time)
assert "my_co... | [
"tests/test_core/test_patch.py::TestHistory::test_history_is_tuple",
"tests/test_core/test_patch.py::TestHistory::test_history_tuple_after_operation",
"tests/test_proc/test_rolling.py::TestRolling::test_rolling_timdelta",
"tests/test_proc/test_taper.py::TestTaperBasics::test_timedelta_taper",
"tests/test_un... | [
"tests/test_core/test_patch.py::TestInit::test_start_time_inferred_from_dt64_coords",
"tests/test_core/test_patch.py::TestInit::test_end_time_inferred_from_dt64_coords",
"tests/test_core/test_patch.py::TestInit::test_init_from_array",
"tests/test_core/test_patch.py::TestInit::test_max_time_populated",
"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.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [... |
eb3fe8bbd2489a42e6de64a5c147ccaa982db7f0 | 2023-03-26 18:09:41 | docker.io/swerebenchv2/sanic-org-sanic-ext:189-eb3fe8b | sanic-org__sanic-ext-189 | Method: Sanic.get(self, uri: str, *, host: str | list[str] = None, name: str | None = None, **kwargs)
Location: sanic.app.Sanic
Inputs:
- **uri** – route path (e.g., "/foo").
- **host** – optional virtual‑host selector (string or list of strings).
- **name** – optional explicit route name used for OpenAPI auto‑handler... | python | MIT | diff --git a/sanic_ext/extensions/http/methods.py b/sanic_ext/extensions/http/methods.py
index 176167d..19ffbc4 100644
--- a/sanic_ext/extensions/http/methods.py
+++ b/sanic_ext/extensions/http/methods.py
@@ -125,20 +125,20 @@ def add_auto_handlers(
)
except StopIteration:
... | Do not fail on cython objects
Closes #186 | [Bug] Pydantic's SecretStr type is not supported
**Describe the bug**
Trying to return a pydantic model with an attribute `SecretStr` yields the following error:
```
Traceback (most recent call last):
File "handle_request", line 96, in handle_request
File "/tmp/test_sanic/.venv/lib/python3.10/site-packages/s... | sanic-org/sanic-ext | diff --git a/tests/extensions/http/test_methods.py b/tests/extensions/http/test_methods.py
index 7d8e207..7f46f54 100644
--- a/tests/extensions/http/test_methods.py
+++ b/tests/extensions/http/test_methods.py
@@ -65,11 +65,11 @@ def test_auto_trace(bare_app: Sanic):
def test_auto_head_with_vhosts(app: Sanic, get_d... | [
"tests/extensions/http/test_methods.py::test_auto_head_with_vhosts",
"tests/extensions/http/test_methods.py::test_auto_options_with_vhosts"
] | [
"tests/extensions/http/test_methods.py::test_trace_and_connect_available",
"tests/extensions/http/test_methods.py::test_auto_head",
"tests/extensions/http/test_methods.py::test_auto_options",
"tests/extensions/http/test_methods.py::test_auto_trace",
"tests/extensions/http/test_methods.py::test_unquote_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": "B1",
"confidence": 0.92,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.pydantic.dev/usage/types/#secret-types"
... |
ed433308d43dd2b48f145533deb4267026b0ed13 | 2024-05-26 21:07:41 | docker.io/swerebenchv2/xknx-xknx:1466-ed43330 | xknx__xknx-1466 | Method: TariffActiveEnergy.from_dict(cls, data: Mapping[str, int])
Location: xknx/dpt/dpt_235.py
Inputs: A mapping that may contain the keys **"energy"** and **"tariff"**. Each value must be either an int‑compatible value or ``None``; non‑convertible values raise ``ValueError``.
Outputs: Returns a ``TariffActiveE... | python | MIT | diff --git a/docs/changelog.md b/docs/changelog.md
index f017803e..fa6aaaec 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -13,6 +13,7 @@ nav_order: 2
- DPTComplex: Common interface for DPT transcoders with multi-value data. Resulting dataclasses can be converted to and from a dict with DPT specific propert... | Add DPTTariffActiveEnergy transcoder
<!--
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 depend... | Feature Request : Integration of DPT 235.001 / DPT_Tariff_ActiveEnergy
Hello, do you think it's possible to integrate the DPT 235.001. Is a 6bytes DPT. This contains DPT 13.010 and 5.006+1 data validity byte.

Location: src/psyclone/psyir/symbols/symbol_table.py
Inputs: None (instance method, operates on the SymbolTable's internal symbol collection)
Outputs: ``str`` – a formatted, multi‑line string that lists the symbols in the table. The output is grouped by symbol type (alphabetically by the ... | python | BSD-3-Clause | diff --git a/src/psyclone/psyir/symbols/symbol_table.py b/src/psyclone/psyir/symbols/symbol_table.py
index bb253970e..3b50de37c 100644
--- a/src/psyclone/psyir/symbols/symbol_table.py
+++ b/src/psyclone/psyir/symbols/symbol_table.py
@@ -1798,7 +1798,19 @@ class SymbolTable():
header += ":"
header += "... | (Closes #2195) SymbolTable().view() grouping and alpha-ordering
Gives outputs like
```
Symbol Table of Routine 'func':
-------------------------------
DataSymbol:
var1: DataSymbol<Scalar<REAL, UNDEFINED>, Automatic>
var2: DataSymbol<Scalar<INTEGER, UNDEFINED>, Automatic>
RoutineSymbol:
func: RoutineSymbol... | SymbolTable view() output needs sorting/ordering
It's a nice-to-have but it would be good if view() output the symbols grouped by type and in alpha-order within each group. | stfc/PSyclone | diff --git a/src/psyclone/tests/psyir/symbols/symbol_table_test.py b/src/psyclone/tests/psyir/symbols/symbol_table_test.py
index d604cc352..5add7456c 100644
--- a/src/psyclone/tests/psyir/symbols/symbol_table_test.py
+++ b/src/psyclone/tests/psyir/symbols/symbol_table_test.py
@@ -1399,15 +1399,61 @@ def test_wildcard_i... | [
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_view"
] | [
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_instance",
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_default_vis_symbol_table",
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_parent_symbol_table",
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_symbol... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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": ... |
bedfb5622b85c0e957a906c7204e2f8337b97bec | 2021-02-25 20:30:22 | docker.io/swerebenchv2/alteryx-woodwork:636-bedfb56 | alteryx__woodwork-636 | Method: WoodworkTableAccessor.pop(self, column_name)
Location: woodwork/table_accessor.py (class WoodworkTableAccessor)
Inputs:
- column_name (str): Name of the column to remove from the DataFrame. Must exist in the DataFrame; otherwise a LookupError is raised.
Outputs:
- Returns a pandas.Series representing the remo... | python | BSD-3-Clause | diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst
index b58f70f..d5b9119 100644
--- a/docs/source/api_reference.rst
+++ b/docs/source/api_reference.rst
@@ -17,6 +17,7 @@ WoodworkTableAccessor
WoodworkTableAccessor.loc
WoodworkTableAccessor.mutual_information_dict
WoodworkTableAcc... | Add pop to WoodworkTableAccessor
- Removes column from dataframe and returns the series with woodwork typing information initialized
- Closes #614 | Add WoodworkTableAccessor.pop
- Use pop to remove a series from a DataFrame with Woodwork initialized inplace, returning the series with Woodwork initialized
- Handle the case where Woodwork isn't initialized and return the series without woodwork initialized
| alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py
index 0353203..7948061 100644
--- a/woodwork/tests/accessor/test_table_accessor.py
+++ b/woodwork/tests/accessor/test_table_accessor.py
@@ -824,18 +824,20 @@ def test_accessor_with_falsy_column_names(falsy_names... | [
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_with_falsy_column_names[falsy_names_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_pop[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_pop_index[sample_df_pandas]",
"woodwork/tests/accessor/test_table_... | [
"woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]",
"woodwork/tests/ac... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0712a7f019ef24f9b1c177192037c59a03c1826b | 2021-02-12 22:18:46 | docker.io/swerebenchv2/alteryx-woodwork:588-0712a7f | alteryx__woodwork-588 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 403ea76..7ba0534 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -7,6 +7,7 @@ Release Notes
* Fixes
* Changes
* Avoid calculating mutualinfo for non-unique columns (:pr:`563`)
+ *... | Preserve underlying index
Closes #569 by preserving the underlying index when returning to a data frame. | Preserve the underlying pandas DataFrame's index in initialization of Woodwork data structure
- As a user, I would like Woodwork to preserve the underlying pandas DataFrame's index if I did not specify a specific `index` column to use. Right now, in WW 0.0.8 and 0.0.9, the index is replaced with `RangeIndex`. However, ... | alteryx/woodwork | diff --git a/woodwork/tests/datatable/test_datatable_get_set.py b/woodwork/tests/datatable/test_datatable_get_set.py
index 2ef068a..c261603 100644
--- a/woodwork/tests/datatable/test_datatable_get_set.py
+++ b/woodwork/tests/datatable/test_datatable_get_set.py
@@ -50,7 +50,7 @@ def test_datatable_getitem_list_input(sam... | [
"woodwork/tests/datatable/test_datatable_get_set.py::test_datatable_getitem_list_input[sample_df_pandas]"
] | [
"woodwork/tests/datatable/test_datatable_get_set.py::test_getitem[sample_df_pandas]",
"woodwork/tests/datatable/test_datatable_get_set.py::test_getitem_invalid_input[sample_df_pandas]",
"woodwork/tests/datatable/test_datatable_get_set.py::test_datatable_getitem_list_warnings[sample_df_pandas]",
"woodwork/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://github.com/alteryx/woodwork/pull/464"
],
... |
56aa261132656df921d410362ae048c125d43cd1 | 2024-09-24 21:23:16 | docker.io/swerebenchv2/aio-libs-aiohttp:9292-56aa261 | aio-libs__aiohttp-9292 | Method: ClientSession.post(self, url: str, *, data: Mapping[str, Any] | None = None, **kwargs) → aiohttp.client_reqrep.ClientResponse
Location: aiohttp/client.py
Inputs:
- **url** – target URL string.
- **data** – optional mapping of field names to values; all values must be of type `str`.
- Additional keyword argum... | python | custom-check-github | diff --git a/CHANGES/9292.breaking.rst b/CHANGES/9292.breaking.rst
new file mode 100644
index 000000000..990263cf9
--- /dev/null
+++ b/CHANGES/9292.breaking.rst
@@ -0,0 +1,1 @@
+Started rejecting non string values in `FormData`, to avoid unexpected results -- by :user:`Dreamsorcerer`.
diff --git a/aiohttp/formdata.py b... | Reject non-str values in form data
Fixes #8052. | Form-encoded data with None as the value gets passed as string "None"
### Describe the bug
When i have form encoded data with `None`, by using requests the data is not sent to the server. But this is different for aiohttp, is sent `"None"` string. This happen also in httpx, take a look at this issue https://github.com... | aio-libs/aiohttp | diff --git a/tests/test_client_session.py b/tests/test_client_session.py
index d68d800c0..30c24a3de 100644
--- a/tests/test_client_session.py
+++ b/tests/test_client_session.py
@@ -207,6 +207,12 @@ async def test_merge_headers_with_list_of_tuples_duplicated_names(
]
+@pytest.mark.parametrize("obj", (object(), ... | [
"tests/test_client_session.py::test_invalid_data[pyloop-obj0]",
"tests/test_client_session.py::test_invalid_data[pyloop-None]",
"tests/test_formdata.py::test_invalid_formdata_payload_urlencoded[obj0]",
"tests/test_formdata.py::test_invalid_formdata_payload_urlencoded[None]"
] | [
"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": "easy",
"external_urls": [
"https://github.com/encode/httpx/issues/1500"
],
... |
ce25158070557ec67af98b41ebefbaa05515febf | 2020-01-11 03:08:35 | docker.io/swerebenchv2/bids-standard-pybids:574-ce25158 | bids-standard__pybids-574 | Function: build_path(entities, path_patterns, strict=False)
Location: bids/layout/writing.py
Inputs:
- **entities** (dict): Mapping of entity names to values. Values that are ``None`` or empty strings are ignored; other values are cast to strings. ``extension`` values will have leading dots stripped.
- **path_patterns*... | python | MIT | diff --git a/Makefile b/Makefile
index 5f61023c..78028c3e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.PHONY: doc tutorial travis_tests
travis_tests:
- pytest -n 2 -v --cov bids --cov-config .coveragerc --cov-report xml:cov.xml bids
+ pytest --doctest-modules -n 2 -v --cov bids --cov-config .coveragerc --c... | FIX: Refactor of ``build_path`` and inner machinery
Although some issues have been addressed (#516), it seems that the build_path function is still not digesting correctly some patterns.
This PR:
- [x] reduces the number of lines to implement the functionality (by removing the ``replace_entities`` function, which... | `build_path` chooses the first pattern that matches, even when a better match exists
It looks like `BIDSLayout.build_path()` goes with the first path pattern it finds for which all required entities are given. I ran into a situation where this was blocking access to a better pattern later in the list. A minimal example... | bids-standard/pybids | diff --git a/bids/layout/tests/test_path_building.py b/bids/layout/tests/test_path_building.py
index 8457c95b..601c5276 100644
--- a/bids/layout/tests/test_path_building.py
+++ b/bids/layout/tests/test_path_building.py
@@ -22,7 +22,7 @@ def test_invalid_file_construction(layout):
ents = dict(subject='01', run=1, t... | [
"bids/layout/tests/test_path_building.py::test_bold_construction",
"bids/layout/tests/test_path_building.py::test_invalid_file_construction",
"bids/layout/tests/test_path_building.py::test_failed_file_construction",
"bids/layout/tests/test_writing.py::TestWritableFile::test_parse_pattern_re",
"bids/layout/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":... |
3a21134a0e3e8a163faa7436383e92da08415f13 | 2023-11-22 17:42:36 | docker.io/swerebenchv2/aio-libs-aiohttp:7869-3a21134 | aio-libs__aiohttp-7869 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/7869.bugfix b/CHANGES/7869.bugfix
new file mode 100644
index 000000000..23282fc3b
--- /dev/null
+++ b/CHANGES/7869.bugfix
@@ -0,0 +1,1 @@
+Fix ClientResponse.close releasing the connection instead of closing
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py
index f05a08637..21858fc34... | Fix ClientResponse.close releasing the connection instead of closing
<!-- Thank you for your contribution! -->
## What do these changes do?
Fix ClientResponse.close releasing the connection instead of closing
## Are there changes in behavior for the user?
<!-- Outline any notable behaviour for the end u... | Request is not cancelled on timeout, its response is returned for the next request
### Describe the bug
I see this strange behaviour in version 3.9.0 when I iterate to retry timed out request. It started with version 3.9.0b1.
Version 3.9.0b0 works as expected.
The probelm is when the initial request times out it ... | aio-libs/aiohttp | diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
index 389832440..4f0d594cb 100644
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -20,6 +20,7 @@ import aiohttp
from aiohttp import Fingerprint, ServerFingerprintMismatch, hdrs, web
from aiohttp.abc import Ab... | [
"tests/test_client_functional.py::test_read_timeout_closes_connection[pyloop]"
] | [
"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",
"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":... |
ffffc18ed835f59468177a2a21469ada68620581 | 2022-09-06 04:49:38 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1262-ffffc18 | slackapi__python-slack-sdk-1262 | Function: _parse_web_class_objects(kwargs)
Location: slack_sdk/web/internal_utils.py
Inputs: kwargs – a mutable dictionary of API call parameters; may contain keys `"blocks"` and/or `"attachments"` whose values can be (a) a Sequence of Block, Attachment, or dict objects, or (b) a JSON‑encoded string representing such a... | python | MIT | diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py
index b03a9d1..24e4d05 100644
--- a/slack_sdk/web/async_client.py
+++ b/slack_sdk/web/async_client.py
@@ -1985,8 +1985,8 @@ class AsyncWebClient(AsyncBaseClient):
user: str,
text: Optional[str] = None,
as_user: Optiona... | Fix #1261 blocks/attachments as str for chat.* API calls should be clearly supported
## Summary
This pull request resolves #1261
### Category (place an `x` in each of the `[ ]`)
- [x] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Web... | blocks/attachments as str for chat.* API calls should be clearly supported
The use case reported at https://github.com/slackapi/python-slack-sdk/pull/1259#issuecomment-1237007209 has been supported for a long time but it was **not by design**.
```python
client = WebClient(token="....")
client.chat_postMessage(tex... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/web/test_internal_utils.py b/tests/slack_sdk/web/test_internal_utils.py
index 8372240..0056819 100644
--- a/tests/slack_sdk/web/test_internal_utils.py
+++ b/tests/slack_sdk/web/test_internal_utils.py
@@ -1,3 +1,4 @@
+import json
import unittest
from typing import Dict, Sequence, Union
@... | [
"tests/slack_sdk/web/test_internal_utils.py::TestInternalUtils::test_can_parse_str_attachments",
"tests/slack_sdk/web/test_internal_utils.py::TestInternalUtils::test_can_parse_str_blocks"
] | [
"tests/slack_sdk/web/test_internal_utils.py::TestInternalUtils::test_build_unexpected_body_error_message",
"tests/slack_sdk/web/test_internal_utils.py::TestInternalUtils::test_can_parse_sequence_of_attachments",
"tests/slack_sdk/web/test_internal_utils.py::TestInternalUtils::test_can_parse_sequence_of_blocks"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/slackapi/python-slack-sdk/pull/1259... |
e3705aa99c6beef743c1297c990639aebe42f3e6 | 2023-07-05 12:47:30 | docker.io/swerebenchv2/cta-observatory-ctapipe:2375-e3705aa | cta-observatory__ctapipe-2375 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/ctapipe/io/datawriter.py b/ctapipe/io/datawriter.py
index 0b0631d5..3a5cc8f0 100644
--- a/ctapipe/io/datawriter.py
+++ b/ctapipe/io/datawriter.py
@@ -27,7 +27,7 @@ from .datalevels import DataLevel
from .eventsource import EventSource
from .hdf5tableio import HDF5TableWriter
from .simteleventsource impo... | Remove dump-triggers, enable ctapipe-process to store only trigger and simulation data
fixes #2372
Running `ctapipe-process -i <input> -o <output> --no-write-parameters` will result in an output file only containing trigger and simulation information, no any actual processing will happen. | Remove ctapipe-dump-triggers
This just writes timestamps of events into a table that is not compatible with the rest of ctapipe.
If there is a need for such a tool, we should adapt the `ctapipe-process` tool to just write out the trigger information in the datawriter without doing any actual processing, but I doubt... | cta-observatory/ctapipe | diff --git a/ctapipe/tools/tests/test_process.py b/ctapipe/tools/tests/test_process.py
index 04a87079..01039649 100644
--- a/ctapipe/tools/tests/test_process.py
+++ b/ctapipe/tools/tests/test_process.py
@@ -478,3 +478,25 @@ def test_plugin_help(capsys):
assert (
"PluginReconstructor.foo" in captured.out
... | [
"ctapipe/tools/tests/test_process.py::test_only_trigger_and_simulation"
] | [
"ctapipe/tools/tests/test_process.py::test_stage1_datalevels",
"ctapipe/tools/tests/test_process.py::test_quickstart_templates[base_config.yaml]",
"ctapipe/tools/tests/test_process.py::test_quickstart_templates[stage1_config.json]",
"ctapipe/tools/tests/test_process.py::test_quickstart_templates[stage1_config... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2108bd0e68bf9d0e0406c3bb5a9e3c12adfa2cf7 | 2020-12-11 14:01:39 | docker.io/swerebenchv2/pyfar-pyfar:54-2108bd0 | pyfar__pyfar-54 | Method: pyfar.fft.rfft(data, n_samples, sampling_rate, fft_norm)
Location: pyfar/fft.py → line 140
Inputs:
- **data** (array‑like, real‑valued) – time‑domain signal (last axis contains samples).
- **n_samples** (int) – number of samples to which the signal is zero‑padded or truncated.
- **sampling_rate** (flo... | python | MIT | diff --git a/examples/pyfar_demo.ipynb b/examples/pyfar_demo.ipynb
index 74825a3f..5b9925be 100644
--- a/examples/pyfar_demo.ipynb
+++ b/examples/pyfar_demo.ipynb
@@ -10,7 +10,6 @@
"\n",
"## Contents\n",
"[Signals](#signals)\n",
- "- [Signal types](#signal_types)\n",
"- [FFT normalization](#fft_n... | Refactor signal type and FFT norm handling
### Which issue(s) are closed by this pull request?
Closes #53
### Changes proposed in this pull request:
- Use FFT norm to specify the signal type
- Deprecate the signal type properties
| refactoring signal normalization
## Description
signal type and normalization might be hard to understand and should be simplified
## Suggestion
- distinguish only by normalization
- `None` will be a new normalization, which does exactly nothing
- The `signal_type` will be deleted
- The getter for the `sign... | pyfar/pyfar | diff --git a/tests/test_fft.py b/tests/test_fft.py
index 6c2cb6d2..953a0eeb 100644
--- a/tests/test_fft.py
+++ b/tests/test_fft.py
@@ -85,10 +85,9 @@ def test_fft_orthogonality_sine_even_np(fft_lib_np):
times = np.arange(0, num_samples) / samplingrate
signal_time = 1 * np.cos(2 * np.pi * frequency * times)
... | [
"tests/test_fft.py::test_fft_orthogonality_sine_even_np",
"tests/test_fft.py::test_fft_orthogonality_sine_even_fftw",
"tests/test_fft.py::test_fft_orthogonality_sine_odd_np",
"tests/test_fft.py::test_fft_orthogonality_sine_odd_fftw",
"tests/test_fft.py::test_fft_orthogonality_noise_even_np",
"tests/test_f... | [
"tests/test_fft.py::test_n_bins_even",
"tests/test_fft.py::test_n_bins_odd",
"tests/test_fft.py::test_fft_orthogonality_sine_even_lib",
"tests/test_fft.py::test_fft_orthogonality_sine_odd_lib",
"tests/test_fft.py::test_fft_orthogonality_noise_even_lib",
"tests/test_fft.py::test_fft_orthogonality_noise_odd... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
70c71ebfe2f08ab54a5c21bc3d44c3479a362b27 | 2024-08-01 16:31:43 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3557-70c71eb | aws-cloudformation__cfn-lint-3557 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/jsonschema/_keywords_cfn.py b/src/cfnlint/jsonschema/_keywords_cfn.py
index 95851220e..65bfe9f73 100644
--- a/src/cfnlint/jsonschema/_keywords_cfn.py
+++ b/src/cfnlint/jsonschema/_keywords_cfn.py
@@ -85,7 +85,7 @@ class FnItems:
# Type checks
#####
def _raw_type(validator: Validator, tS: Any... | Better type checking for Null types
*Issue #, if available:*
fix #3555
*Description of changes:*
- Better type checking for Null types
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| [BUG] v0 fails for bad mapping but not v1
### CloudFormation Lint Version
cfn-lint 1.8.2
### What operating system are you using?
Mac
### Describe the bug
Create a CFT like
```
Mappings:
qa:
global:
global:
subnet: abc123
```
cfn-lint v0 fails for `E7001 Mapping qa has invalid pro... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/jsonschema/test_keywords_cfn.py b/test/unit/module/jsonschema/test_keywords_cfn.py
index 312f196f9..6d088e848 100644
--- a/test/unit/module/jsonschema/test_keywords_cfn.py
+++ b/test/unit/module/jsonschema/test_keywords_cfn.py
@@ -101,6 +101,32 @@ class TestCfnTypes(Base):
self.bu... | [
"test/unit/module/jsonschema/test_keywords_cfn.py::TestCfnTypes::test_null_values"
] | [
"test/unit/module/jsonschema/test_keywords_cfn.py::TestCfnTypes::test_standard_values",
"test/unit/module/jsonschema/test_keywords_cfn.py::TestMultiCfnTypes::test_standard_values",
"test/unit/module/jsonschema/test_keywords_cfn.py::TestCfnTypeFailure::test_cfn_type_failure",
"test/unit/module/jsonschema/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.87,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
223b2858151fbd71c5a53c430e33cd6aae383727 | 2021-04-07 09:46:54 | docker.io/swerebenchv2/slackapi-python-slack-sdk:993-223b285 | slackapi__python-slack-sdk-993 | Method: Option.__init__(self, label: str, value: str, description: Optional[Union[str, dict, TextObject]] = None, **others: dict)
Location: slack_sdk/models/blocks/basic_components.py → class Option(JsonObject)
Inputs:
- **label** – human‑readable label (string, required if `text` not supplied).
- **value** – identi... | python | MIT | diff --git a/slack_sdk/models/blocks/basic_components.py b/slack_sdk/models/blocks/basic_components.py
index 279237a..7178f13 100644
--- a/slack_sdk/models/blocks/basic_components.py
+++ b/slack_sdk/models/blocks/basic_components.py
@@ -158,7 +158,7 @@ class Option(JsonObject):
value: str,
label: Opti... | Fix #990 slack_sdk.models.blocks.Option's description value is invalid in blocks
## Summary
This pull request resolves #990 . Refer to the issue for the details.
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookCl... | slack_sdk.models.blocks.Option's "description" value is invalid in blocks
The `description` value in `slack_sdk.models.blocks.Option` class has been invalid. The values must be an `plain_text` typed text object. However, the current implementation embeds the values as a string value in JSON payloads.
See also: https... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_objects.py b/tests/slack_sdk/models/test_objects.py
index 6ac56a2..f04057e 100644
--- a/tests/slack_sdk/models/test_objects.py
+++ b/tests/slack_sdk/models/test_objects.py
@@ -414,6 +414,63 @@ class OptionTests(unittest.TestCase):
with self.assertRaises(SlackObjectForma... | [
"tests/slack_sdk/models/test_objects.py::OptionTests::test_valid_description_for_attachments",
"tests/slack_sdk/models/test_objects.py::OptionTests::test_valid_description_for_blocks"
] | [
"tests/slack_sdk/models/test_objects.py::JsonObjectTests::test_get_non_null_attributes",
"tests/slack_sdk/models/test_objects.py::JsonObjectTests::test_get_non_null_attributes_nested",
"tests/slack_sdk/models/test_objects.py::JsonObjectTests::test_get_non_null_attributes_nested_2",
"tests/slack_sdk/models/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.slack.com/reference/block-kit/composition-... |
522fdcca776c7828e84a7ba5edee023043ade4a2 | 2023-04-21 18:23:43 | docker.io/swerebenchv2/postlund-pyatv:1975-522fdcc | postlund__pyatv-1975 | Method: AudioListener.volume_update(self, old_level: float, new_level: float)
Location: pyatv/interface.py – class AudioListener
Inputs:
- old_level (float): previous volume level (percent, 0‑100).
- new_level (float): new volume level after change (percent, 0‑100).
Outputs: None (void). The method is a callback; im... | python | MIT | diff --git a/docs/api/pyatv/interface.html b/docs/api/pyatv/interface.html
index ff6f4dc8..17f302f6 100644
--- a/docs/api/pyatv/interface.html
+++ b/docs/api/pyatv/interface.html
@@ -73,6 +73,12 @@ link_group: api
</ul>
</li>
<li>
+<h4><code><a title="pyatv.interface.AudioListener" href="#pyatv.interface.AudioListen... | Add listener interface to Audio for volume updates
Adds a listener interface to `Audio`, to enable push updates for volume changes as recommended in https://github.com/postlund/pyatv/issues/1798#issuecomment-1188276550
Resolves #1798 | push_updates with volume modifications (from lib or from other means) for homepods
### What feature would you like?
receiving {"volume":20.5} in atvscript push_updates when the volume has been modified from any means (lib, +/- buttons on top, airplay, ...) on HomePods at least (i know volume management on apple tv is ... | postlund/pyatv | diff --git a/tests/core/test_facade.py b/tests/core/test_facade.py
index 6e7538ad..f4cc3975 100644
--- a/tests/core/test_facade.py
+++ b/tests/core/test_facade.py
@@ -27,6 +27,7 @@ from pyatv.interface import (
AppleTV,
Apps,
Audio,
+ AudioListener,
DeviceInfo,
DeviceListener,
FeatureIn... | [
"tests/core/test_facade.py::test_connect_with_no_protocol",
"tests/core/test_facade.py::test_connect_again_raises",
"tests/core/test_facade.py::test_add_after_connect_raises",
"tests/core/test_facade.py::test_interface_not_exposed_prior_to_connect",
"tests/core/test_facade.py::test_features_multi_instances"... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
dd50a7ff2dcda94d4487510ea43851bad4054fef | 2022-01-18 10:14:58 | docker.io/swerebenchv2/pennylaneai-pennylane:2096-dd50a7f | pennylaneai__pennylane-2096 | Function: concatenate(values, axis=0, like=None)
Location: pennylane/math/fn.py (decorated with @multi_dispatch(argnum=[0], tensor_list=[0]))
Inputs:
- values (list/tuple/array of tensors to concatenate, each may belong to any supported interface – Autograd, JAX, TensorFlow, PyTorch, NumPy).
- axis (int, optional) –... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 097ac57e4..830471f99 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -327,10 +327,13 @@
[(#2063)](https://github.com/PennyLaneAI/pennylane/pull/2063)
* Added a new `multi_dispatch` decorator that hel... | Use the new `multi_dispatch` decorator in the math module. Add `tensordot` tests.
**Context:**
This PR makes use of the `multi_dispatch` decorator that was introduced in #2084 throughout `pennylane/math/multi_dispatch.py`. It also introduces tests of differentiability in all interfaces for `qml.math.tensordot`, as wel... | Multi dispatch `tensordot`
### Feature details
It would be nice to be able to do
```python
qml.math.tensordot(a_list, an_autograd_array, axes=axes)
```
with `tensordot` dispatching to Autograd. Currently, the value of the above operation is correct but its derivative is `0`:
```python
x = qml.math.array([0.2, 0.... | PennyLaneAI/pennylane | diff --git a/tests/math/test_basic_math.py b/tests/math/test_basic_math.py
index 9a098eb9f..a592749a2 100644
--- a/tests/math/test_basic_math.py
+++ b/tests/math/test_basic_math.py
@@ -115,7 +115,7 @@ class TestFrobeniusInnerProduct:
def test_frobenius_inner_product_gradient(self):
"""Test that the calc... | [
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds0-args3-1]",
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds0-args3-2]",
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds1-args3-1]",
"... | [
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds0-args0-0]",
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds0-args0-1]",
"tests/math/test_is_independent.py::TestIsIndependentAutograd::test_get_random_args[bounds0-args0-2]",
"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.88,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
774b0e1433634c8c1ef52fd64fe6b886e8783996 | 2023-11-15 05:13:15 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1425-774b0e1 | slackapi__python-slack-sdk-1425 | Method: FileInputElement.__init__(self, *, action_id: Optional[str] = None, filetypes: Optional[List[str]] = None, max_files: Optional[int] = None, **others: dict)
Location: slack_sdk/models/blocks/block_elements.py
Inputs:
- action_id (Optional[str]): identifier for the input value in a view submission; must be ≤255 ... | python | MIT | diff --git a/slack_sdk/models/blocks/block_elements.py b/slack_sdk/models/blocks/block_elements.py
index c65bd7f..8b9ac4e 100644
--- a/slack_sdk/models/blocks/block_elements.py
+++ b/slack_sdk/models/blocks/block_elements.py
@@ -1624,6 +1624,55 @@ class NumberInputElement(InputInteractiveElement):
self.dispatc... | Fix #1424 Add file input block element support
## Summary
This pull request resolves #1424
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender)
- [ ] **s... | Add file input block element support
Refer to https://api.slack.com/reference/block-kit/block-elements#file_input for details. Only `slack_sdk.models` module needs updates for this feature.
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **sl... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_elements.py b/tests/slack_sdk/models/test_elements.py
index fe63d5f..5a38e14 100644
--- a/tests/slack_sdk/models/test_elements.py
+++ b/tests/slack_sdk/models/test_elements.py
@@ -35,6 +35,7 @@ from slack_sdk.models.blocks.block_elements import (
UrlInputElement,
Workf... | [
"tests/slack_sdk/models/test_elements.py::BlockElementTests::test_eq",
"tests/slack_sdk/models/test_elements.py::BlockElementTests::test_parse_timepicker",
"tests/slack_sdk/models/test_elements.py::InteractiveElementTests::test_with_input_interactive_element",
"tests/slack_sdk/models/test_elements.py::Interac... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B3",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.slack.com/reference/block-kit/block-elemen... |
4a6535c8b3af396ed09c33b4f6696e0dabcd6e54 | 2020-10-27 22:11:21 | docker.io/swerebenchv2/xknx-xknx:485-4a6535c | xknx__xknx-485 | Method: UDPClient.data_received_callback(self, raw: bytes)
Location: xknx/io/udp_client.py
Inputs: <raw>, **bytes** containing a complete KNX/IP UDP packet (including KNXIP header and CEMI payload)
Outputs: Parses the packet, creates a KNXIPFrame, invokes the registered callbacks (e.g., Tunnel handling). Returns None. ... | python | MIT | diff --git a/changelog.md b/changelog.md
index 5ed77445..bf26e319 100644
--- a/changelog.md
+++ b/changelog.md
@@ -13,6 +13,7 @@
- HA Switch entity: keep state without state_address
- Cover: fix `set_position` without writable position / auto_stop_if_necessary
+- handle unsupported CEMI Messages without loosing tun... | Bugfix: Unsupported CEMI Message breaking tunnel connections
<!--
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 c... | Invalid date causes error / disconnect
**Description of problem:**
- [ ] using xknx standalone
- [x] using Home-Assistant knx plugin
I do see this error in my logfile exactly every 10 minutes:
```
2020-09-20 18:22:52 WARNING (MainThread) [xknx.log] CEMI not supported: <UnsupportedCEMIMessage description="APCI ... | XKNX/xknx | diff --git a/test/io_tests/tunnel_test.py b/test/io_tests/tunnel_test.py
new file mode 100644
index 00000000..7f93147c
--- /dev/null
+++ b/test/io_tests/tunnel_test.py
@@ -0,0 +1,70 @@
+"""Unit test for KNX/IP Tunnelling Request/Response."""
+import asyncio
+import unittest
+from unittest.mock import Mock, patch
+
+fro... | [
"test/io_tests/tunnel_test.py::TestTunnelling::test_tunnel_request_received_unsupported_frames",
"test/str_test.py::TestStringRepresentations::test_dib_device_informatio"
] | [
"test/io_tests/tunnel_test.py::TestTunnelling::test_tunnel_request_received",
"test/knxip_tests/cemi_frame_test.py::test_valid_command",
"test/knxip_tests/cemi_frame_test.py::test_invalid_tpci_apci",
"test/knxip_tests/cemi_frame_test.py::test_invalid_apdu_len",
"test/knxip_tests/cemi_frame_test.py::test_inv... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
aa1fa23ee09b4849712add3d35fca3d3f09e9988 | 2023-11-10 17:23:17 | docker.io/swerebenchv2/sdv-dev-rdt:741-aa1fa23 | sdv-dev__rdt-741 | Method: UnixTimestampEncoder.__init__(self, missing_value_replacement='mean', model_missing_values=None, datetime_format=None, missing_value_generation='random', enforce_min_max_values=False)
Location: rdt.transformers.datetime.UnixTimestampEncoder
Inputs: missing_value_replacement (str), model_missing_values (optional... | python | custom-check-github | diff --git a/rdt/transformers/datetime.py b/rdt/transformers/datetime.py
index 7daeb1d..28ad451 100644
--- a/rdt/transformers/datetime.py
+++ b/rdt/transformers/datetime.py
@@ -39,16 +39,23 @@ class UnixTimestampEncoder(BaseTransformer):
value was missing. Then use it to recreate missing values.
... | Add enforce_min_max_values to datetime transformers
CU-86aynzc26
Resolve #740 | Add enforce_min_max_values to datetime transformers
### Problem Description
_As a user, I'd like my data to be within the same bounds as the original data since out of bounds data might not make sense logically (eg. someone is born on a day that hasn't happened yet).
### Expected behavior
- Add a `enforce_min_... | sdv-dev/RDT | diff --git a/tests/integration/transformers/test_datetime.py b/tests/integration/transformers/test_datetime.py
index ceb4c94..59e189f 100644
--- a/tests/integration/transformers/test_datetime.py
+++ b/tests/integration/transformers/test_datetime.py
@@ -156,6 +156,26 @@ class TestUnixTimestampEncoder:
pd.testin... | [
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_with_enforce_min_max_values_true",
"tests/unit/transformers/test_datetime.py::TestUnixTimestampEncoder::test___init__",
"tests/unit/transformers/test_datetime.py::TestUnixTimestampEncoder::test__fit_enforce_min_max_values",
"test... | [
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_different_format",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixti... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/sdv-dev/RDT/blob/main/rdt/transform... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.