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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82ac9056350e67411cdb1da34363950b1e18a271 | 2020-11-20 20:34:36 | docker.io/swerebenchv2/python-markdown-markdown:1072-82ac905 | python-markdown__markdown-1072 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/change_log/index.md b/docs/change_log/index.md
index 7edb2b9..0069c22 100644
--- a/docs/change_log/index.md
+++ b/docs/change_log/index.md
@@ -5,6 +5,7 @@ Python-Markdown Change Log
Under development: version 3.3.4 (a bug-fix release).
+* Properly parse unclosed tags in code spans (#1066).
* Pro... | Properly parse unclosed tags in code spans
I think this resolves #1066.
Unless there are some edge cases I'm missing. I'm going to wait a day to see if anyone has any feedback. | unclosed tag in code span
Hello,
I'm facing a problem, not sure where the problem really is (I'm not a Python developer), but I managed to create a little use case showing it.
Using fresh install mkdocs (1.1.2) and markdown 3.3.3 (problem is not here with markdown 3.2.2)
This `.md` file works
```md
A text
... | Python-Markdown/markdown | diff --git a/tests/test_syntax/blocks/test_html_blocks.py b/tests/test_syntax/blocks/test_html_blocks.py
index 589f682..0fdb3e5 100644
--- a/tests/test_syntax/blocks/test_html_blocks.py
+++ b/tests/test_syntax/blocks/test_html_blocks.py
@@ -663,6 +663,48 @@ class TestHTMLBlocks(TestCase):
'<p><foo</p>'
... | [
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_raw_cdata_code_span",
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_raw_declaration_code_span",
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_raw_processing_instruction_code_span"
] | [
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks",
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks_with_blank_lines",
"tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_amperstand",
"tests/test_syntax/blocks/test_h... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
8f1d89a6acab43cfa6a6e1931442ba362d48617a | 2024-07-31 22:43:06 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3552-8f1d89a | aws-cloudformation__cfn-lint-3552 | Method: Conditions.evolve_from_instance(self, instance: Any) -> Iterator[tuple[Any, "Conditions"]]
Location: src/cfnlint/context/conditions/_conditions.py
Inputs:
- **instance** (Any): The CloudFormation property/value to be examined. It may be a dictionary, list, or scalar and can contain intrinsic functions such as ... | python | MIT-0 | diff --git a/src/cfnlint/context/conditions/_conditions.py b/src/cfnlint/context/conditions/_conditions.py
index 9403c4203..3f50720f8 100644
--- a/src/cfnlint/context/conditions/_conditions.py
+++ b/src/cfnlint/context/conditions/_conditions.py
@@ -5,8 +5,9 @@ SPDX-License-Identifier: MIT-0
from __future__ import an... | update schema filtering to use new condition logic
*Issue #, if available:*
fix #3550
*Description of changes:*
- update schema filtering to use new condition logic
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| False Positive for E3032
### CloudFormation Lint Version
cfn-lint 1.9.1
### What operating system are you using?
windows
### Describe the bug
error: [cfn-lint] E3032: [] is too short (1)
each member of the list its erroring on is conditionally created. there is a condition on the resource that is an O... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/context/conditions/test_conditions.py b/test/unit/module/context/conditions/test_conditions.py
index d5daccb2f..57618b27c 100644
--- a/test/unit/module/context/conditions/test_conditions.py
+++ b/test/unit/module/context/conditions/test_conditions.py
@@ -185,6 +185,112 @@ def test_conditio... | [
"test/unit/module/context/conditions/test_conditions.py::test_evolve_from_instance[current_status0-instance0-expected0]",
"test/unit/module/context/conditions/test_conditions.py::test_evolve_from_instance[current_status1-instance1-expected1]",
"test/unit/module/context/conditions/test_conditions.py::test_evolve... | [
"test/unit/module/context/conditions/test_conditions.py::test_conditions",
"test/unit/module/context/conditions/test_conditions.py::test_condition_status[current_status0-new_status0-expected0]",
"test/unit/module/context/conditions/test_conditions.py::test_condition_status[current_status1-new_status1-expected1]... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
a5488db8e7ad09ad8b94039934e8d1d1f8ac301b | 2024-05-01 02:12:16 | docker.io/swerebenchv2/getmoto-moto:7650-a5488db | getmoto__moto-7650 | Method: client.create_file_system(self, FileSystemType: str, StorageCapacity: int, StorageType: str, SubnetIds: List[str], SecurityGroupIds: List[str], Tags: Optional[List[Dict[str, str]]] = None, KmsKeyId: Optional[str] = None, WindowsConfiguration: Optional[Dict] = None, LustreConfiguration: Optional[Dict] = None, On... | python | Apache-2.0 | diff --git a/.gitignore b/.gitignore
index 956ec003f..9587a7d81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,3 +40,4 @@ other_langs/tests_ruby/Gemfile.lock
other_langs/terraform/*/.terraform*
other_langs/terraform/*/terraform*
other_langs/terraform/awslambda/lambda_function_payload.zip
+other_langs/tests_dotnet/e... | Feature: FSx
Adding FSx Service basic support to resolve #7785
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/fsx.html
Implementation:
- create_file_system
- delete_file_system
- describe_file_systems
- tag_resource
- untag_resource
| Implementation of FSx
Looking for [FSx Service](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/fsx.html) basic support including the following endpoints:
Implementation:
- create_file_system
- delete_file_system
- describe_file_systems
- tag_resource
- untag_resource
| getmoto/moto | diff --git a/tests/test_fsx/__init__.py b/tests/test_fsx/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_fsx/test_fsx.py b/tests/test_fsx/test_fsx.py
new file mode 100644
index 000000000..c9ea7b716
--- /dev/null
+++ b/tests/test_fsx/test_fsx.py
@@ -0,0 +1,151 @@
+"""Unit tests for fs... | [
"tests/test_fsx/test_fsx.py::test_create_filesystem",
"tests/test_fsx/test_fsx.py::test_describe_filesystems",
"tests/test_fsx/test_fsx.py::test_describe_filesystems_does_not_exist",
"tests/test_fsx/test_fsx.py::test_delete_file_system",
"tests/test_fsx/test_fsx.py::test_tag_resource",
"tests/test_fsx/tes... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/latest/... |
6cb5520b47cd5c623086164867cbf471caa7b115 | 2020-03-26 22:06:59 | docker.io/swerebenchv2/codezonediitj-pydatastructs:219-6cb5520 | codezonediitj__pydatastructs-219 | Function: minimum_spanning_tree(graph, algorithm)
Location: pydatastructs/graphs/algorithms.py
Inputs:
- **graph** (Graph): an undirected weighted graph whose adjacency representation can be either list or matrix.
- **algorithm** (str): either `"kruskal"` or `"prim"` specifying which MST algorithm to run.
Outputs:
- ... | python | custom-check-github | diff --git a/pydatastructs/graphs/algorithms.py b/pydatastructs/graphs/algorithms.py
index e6e298c..c4339c4 100644
--- a/pydatastructs/graphs/algorithms.py
+++ b/pydatastructs/graphs/algorithms.py
@@ -5,6 +5,7 @@ data structure.
from collections import deque as Queue
from concurrent.futures import ThreadPoolExecutor
... | Added parallel Prim's algorithm
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs or Relevant literature
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #... | Adding algorithms for minimum spanning tree
#### Description of the problem
<!--Please provide a clear and details information of the bug/data structure to be added.-->
The following algorithms(both serial and parallel version) are to be added through a series of PRs.
1. Prim's Algorithm - https://en.wikipedia.org... | codezonediitj/pydatastructs | diff --git a/pydatastructs/graphs/tests/test_algorithms.py b/pydatastructs/graphs/tests/test_algorithms.py
index c4a373e..3b43c7e 100644
--- a/pydatastructs/graphs/tests/test_algorithms.py
+++ b/pydatastructs/graphs/tests/test_algorithms.py
@@ -125,7 +125,7 @@ def test_breadth_first_search_parallel():
def test_minim... | [
"pydatastructs/graphs/tests/test_algorithms.py::test_minimum_spanning_tree",
"pydatastructs/miscellaneous_data_structures/tests/test_queue.py::test_ImplementationPriorityQueue"
] | [
"pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search",
"pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search_parallel",
"pydatastructs/miscellaneous_data_structures/tests/test_queue.py::test_Queue",
"pydatastructs/miscellaneous_data_structures/tests/test_queue.py::test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4|B6",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": true
},
"difficulty": "medium",
"external_urls": [
"https://en.wikipedia.org/wiki/Prim%27s_algorithm",
... |
7eecdff163ccf029fbb1ddc9de4169d4aaeb6597 | 2024-04-15 20:16:38 | docker.io/swerebenchv2/aio-libs-aiohttp:8336-7eecdff | aio-libs__aiohttp-8336 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/8335.bugfix.rst b/CHANGES/8335.bugfix.rst
new file mode 100644
index 000000000..cd93b864a
--- /dev/null
+++ b/CHANGES/8335.bugfix.rst
@@ -0,0 +1,1 @@
+Added default Content-Disposition in multipart/form-data responses -- by :user:`Dreamsorcerer`.
diff --git a/aiohttp/multipart.py b/aiohttp/multipar... | [PR #8335/5a6949da backport][3.9] Add Content-Disposition automatically
**This is a backport of PR #8335 as merged into master (5a6949da642d1db6cf414fd0d1f70e54c7b7be14).**
Fixes #8326. | Using MultipartWriter.append_json breaks in 3.9.4 with AssertionError "assert CONTENT_DISPOSITION in payload.headers"
### Describe the bug
After upgrading to 3.9.4 the following example code that used to work in 3.9.3 starts failing. I think the issue was introduced in https://github.com/aio-libs/aiohttp/commit/7d0be3... | aio-libs/aiohttp | diff --git a/tests/test_multipart.py b/tests/test_multipart.py
index 37ac54797..436b70957 100644
--- a/tests/test_multipart.py
+++ b/tests/test_multipart.py
@@ -1282,12 +1282,24 @@ class TestMultipartWriter:
part = writer._parts[0][0]
assert part.headers[CONTENT_TYPE] == "test/passed"
- async def... | [
"tests/test_multipart.py::TestMultipartWriter::test_automatic_content_disposition"
] | [
"tests/test_multipart.py::TestMultipartResponseWrapper::test_at_eof",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_next",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_release",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_release_when_stream_at_eof",
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aio-libs/aiohttp/commit/7d0be3fee54... |
9a98871f6f1818ef35c10865084579a780dcc178 | 2024-08-01 16:56:25 | docker.io/swerebenchv2/pennylaneai-pennylane:6062-9a98871 | pennylaneai__pennylane-6062 | Method: Hermitian.compute_decomposition(A, wires)
Location: pennylane/ops/qubit/observables.py (static method of class qml.Hermitian)
Inputs:
- **A** (array‑like): Hermitian matrix to decompose; will be converted via `qml.math.asarray`.
- **wires** (int, str, or iterable of wire identifiers): Wires the operator... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 1ce119364..bf26c684a 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -56,6 +56,9 @@
* Removed `semantic_version` from the list of required packages in PennyLane.
[(#5836)](https://github.com/PennyLane... | [Closes #6047] Implements custom `compute_decomposition` method in `Hermitian`
**Context:**
Prior to this fix, the `compute_decomposition` method of `Hermitian` returned a `qml.DecompositionUndefinedError` (due to its `Operator` base class inheritance). The desired fix, as laid out by the issue, was to use the exist... | Implement `Hermitian.decomposition`
### Important Note
⚠️ This issue is part of an internal assignment and not meant for external contributors.
### Context
Currently, the `compute_decomposition` method of `Hermitian` is inherited from the `Operator` base class, which returns a `qml.DecompositionUndefinedError`... | PennyLaneAI/pennylane | diff --git a/tests/ops/functions/conftest.py b/tests/ops/functions/conftest.py
index 93ff0de19..92863eb7a 100644
--- a/tests/ops/functions/conftest.py
+++ b/tests/ops/functions/conftest.py
@@ -79,7 +79,7 @@ _INSTANCES_TO_FAIL = [
),
(
qml.THermitian(np.eye(3), wires=0),
- AssertionError, # qu... | [
"tests/ops/qubit/test_observables.py::TestHermitian::test_hermitian_compute_decomposition_wire_exceptions",
"tests/ops/qubit/test_observables.py::TestHermitian::test_hermitian_compute_decomposition_inefficiency_warning",
"tests/ops/qubit/test_observables.py::TestHermitian::test_hermitian_compute_decomposition_p... | [
"tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliX-_0-eigs0]",
"tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliY-_1-eigs1]",
"tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliZ-_2-eigs2]",
"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": "B1",
"confidence": 0.88,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/PennyLaneAI/pennylane/blob/master/p... |
e95b8f458d7232245a8fbf63c6571ffb0a680204 | 2022-08-16 17:51:29 | docker.io/swerebenchv2/myremylar-pygame-gui:324-e95b8f4 | myremylar__pygame_gui-324 | Method: ShakeEffect.__init__(self, text_owner: IUITextOwnerInterface, params: Optional[Dict[str, Any]] = None, text_sub_chunk: Optional[TextLineChunkFTFont] = None)
Location: pygame_gui/core/text/text_effects/shake_effect.py
Inputs:
- **text_owner** – the UI element that owns the text (implements IUITextOwnerInterface... | python | MIT | diff --git a/pygame_gui/__init__.py b/pygame_gui/__init__.py
index 8d6d4f6..fee3647 100644
--- a/pygame_gui/__init__.py
+++ b/pygame_gui/__init__.py
@@ -24,6 +24,7 @@ from pygame_gui._constants import UI_COLOUR_PICKER_COLOUR_CHANNEL_CHANGED
from pygame_gui._constants import UI_CONSOLE_COMMAND_ENTERED, UI_TEXT_EFFECT_F... | Add shake effect to text box chunks
fixes #223 | Add 'shake' text chunk effect
Now there is a new, text chunk capable, text effects system it should be possible to build a 'shake' effect (similar to a screen shake) for this system.
Original issue comment mentioning shake effect:
https://github.com/MyreMylar/pygame_gui/issues/24#issuecomment-582462344
Screen... | MyreMylar/pygame_gui | diff --git a/tests/test_core/test_text/test_text_effects.py b/tests/test_core/test_text/test_text_effects.py
index 90ff581..b32e8f4 100644
--- a/tests/test_core/test_text/test_text_effects.py
+++ b/tests/test_core/test_text/test_text_effects.py
@@ -5,11 +5,13 @@ import pytest
from pygame_gui.core.text import TypingApp... | [
"tests/test_core/test_text/test_text_effects.py::TestTextEffect::test_get_final_alpha",
"tests/test_core/test_text/test_text_effects.py::TestTextEffect::test_has_text_changed",
"tests/test_core/test_text/test_text_effects.py::TestTypingAppearEffect::test_creation",
"tests/test_core/test_text/test_text_effects... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/MyreMylar/pygame_gui/issues/24#issue... |
191ff75e93d56446b2c051f4dbb33e2f0e7be71d | 2021-08-17 02:10:04 | docker.io/swerebenchv2/ipython-traitlets:670-191ff75 | ipython__traitlets-670 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/traitlets/traitlets.py b/traitlets/traitlets.py
index f441550..6bdf741 100644
--- a/traitlets/traitlets.py
+++ b/traitlets/traitlets.py
@@ -2644,6 +2644,12 @@ class List(Container):
return super(List, self).validate_elements(obj, value)
+ def set(self, obj, value):
+ if isinstance(va... | Fixes #668 ( passing a single element for a list on CLI)
cc @fcollonval | Single list element interpreted as string => error
Reported on JupyterLab Gitter by @mlucool
> Hello. What's the correct way to pass --LabApp.extra_labextensions_path=/path/to/dir on the CLI when there is exactly one extra path? Passing that gives "The 'app_dir' trait of a LabApp instance expected a unicode string, ... | ipython/traitlets | diff --git a/traitlets/config/tests/test_loader.py b/traitlets/config/tests/test_loader.py
index 74289dc..103eeef 100644
--- a/traitlets/config/tests/test_loader.py
+++ b/traitlets/config/tests/test_loader.py
@@ -327,6 +327,13 @@ class TestKeyValueCL(TestCase):
c = C(config=config)
assert c.list_trait... | [
"traitlets/config/tests/test_loader.py::TestKeyValueCL::test_list_single_item",
"traitlets/config/tests/test_loader.py::TestArgParseKVCL::test_list_single_item"
] | [
"traitlets/config/tests/test_loader.py::TestFileCL::test_collision",
"traitlets/config/tests/test_loader.py::TestFileCL::test_context_manager",
"traitlets/config/tests/test_loader.py::TestFileCL::test_json",
"traitlets/config/tests/test_loader.py::TestFileCL::test_json_context_bad_write",
"traitlets/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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1cf7f3fd3bf5b9e444edd8c7d97299cb605d9d3a | 2025-01-17 21:38:35 | docker.io/swerebenchv2/stac-utils-pystac:1496-1cf7f3f | stac-utils__pystac-1496 | Method: ItemExt.sci(self)
Location: pystac/extensions/ext.py → class ItemExt
Inputs: self – an ItemExt instance wrapping a pystac.Item
Outputs: ScientificExtension[Item] – the scientific extension bound to the wrapped Item (raises ExtensionNotImplemented if the extension has not been added to the Item)
Description:... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d9149839..ceb817db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,10 +12,14 @@
- Use [uv](https://github.com/astral-sh/uv) for development dependencies and docs ([#1439](https://github.com/stac-utils/pystac/pull/1439))
- Correctly detect absolute file path ref on wi... | Access scientific extension on item using .ext
**Related Issue(s):**
closes #1485
**Description:**
It was indeed very straightforward
**PR Checklist:**
- [ ] Pre-commit hooks and tests pass (run `scripts/test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [ ] This PR mainta... | Item's `ext` interface should include the scientific extension
It's [allowed](https://github.com/stac-extensions/scientific?tab=readme-ov-file#scientific-citation-extension-specification) but it's not [there](https://github.com/stac-utils/pystac/blob/14a36942d395de47ebdb7f22477ce00c5a87348f/pystac/extensions/ext.py#L12... | stac-utils/pystac | diff --git a/tests/extensions/test_scientific.py b/tests/extensions/test_scientific.py
index 0dee2edf..9e6bcf00 100644
--- a/tests/extensions/test_scientific.py
+++ b/tests/extensions/test_scientific.py
@@ -7,6 +7,7 @@ import pytest
import pystac
from pystac import ExtensionTypeError
+from pystac.errors import Exte... | [
"tests/extensions/test_scientific.py::test_ext_syntax",
"tests/extensions/test_scientific.py::test_ext_syntax_remove",
"tests/extensions/test_scientific.py::test_ext_syntax_add"
] | [
"tests/extensions/test_scientific.py::TestRemoveLinks::test_remove_none_doi",
"tests/extensions/test_scientific.py::TestPublication::test_get_link_returns_none_if_no_doi",
"tests/extensions/test_scientific.py::ItemScientificExtensionTest::test_citation",
"tests/extensions/test_scientific.py::ItemScientificExt... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/stac-extensions/scientific?tab=readme... |
9781f1151bd27104efefb1c7ec78ff8d8bb0728c | 2023-11-24 21:49:14 | docker.io/swerebenchv2/pennylaneai-pennylane:4884-9781f11 | pennylaneai__pennylane-4884 | Method: MeasurementValue.map_wires(self, wire_map)
Location: pennylane.measurements.mid_measure.MeasurementValue
Inputs:
- **self** – a MeasurementValue instance containing one or more MeasurementProcess objects.
- **wire_map** (dict): mapping old wire identifiers → new wire identifiers (e.g., `{0: "b"}`).
Outputs: ... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index ce0646a98..b4215f694 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -214,6 +214,9 @@
style, but with sketch-style lines.
[(#4880)](https://github.com/PennyLaneAI/pennylane/pull/4880)
+* `Condition... | implement map_wires for cond and measurementValue
**Context:**
While updating drawing for `qml.cond`, it was revealed that `Conditional.map_wires` does not work as expected. I figured it would be easiest to fix this in a follow-up PR, so here it is. A consequence of this is that the [teleportation tutorial broke](http... | [BUG] `qml.map_wires` does not work correctly with `qml.cond`
### Expected behavior
The mid-circuit measurements that a `qml.cond` depends on are mapped to the new wires correctly.
### Actual behavior
The wires of the measurements used to control the `qml.cond` are not mapped.
### Additional information
_No respon... | PennyLaneAI/pennylane | diff --git a/tests/drawer/test_drawable_layers.py b/tests/drawer/test_drawable_layers.py
index d56149074..113f0130c 100644
--- a/tests/drawer/test_drawable_layers.py
+++ b/tests/drawer/test_drawable_layers.py
@@ -138,6 +138,26 @@ class TestDrawableLayers:
assert layers == [[ops[0]], [ops[1]], [ops[2]]]
+ ... | [
"tests/drawer/test_drawable_layers.py::TestDrawableLayers::test_mid_measure_custom_wires",
"tests/measurements/test_mid_measure.py::TestMeasurementValueManipulation::test_map_wires",
"tests/ops/op_math/test_condition.py::TestAdditionalCond::test_map_wires"
] | [
"tests/drawer/test_drawable_layers.py::TestRecursiveFindLayer::test_first_layer",
"tests/drawer/test_drawable_layers.py::TestRecursiveFindLayer::test_blocked_layer",
"tests/drawer/test_drawable_layers.py::TestRecursiveFindLayer::test_recursion_no_block",
"tests/drawer/test_drawable_layers.py::TestRecursiveFin... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
88f26061a5f6c6350f45e69dacf871547c97696b | 2023-07-25 06:38:12 | docker.io/swerebenchv2/mpmath-mpmath:713-88f2606 | mpmath__mpmath-713 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/matrices/eigen.py b/mpmath/matrices/eigen.py
index feef27e..24230e0 100644
--- a/mpmath/matrices/eigen.py
+++ b/mpmath/matrices/eigen.py
@@ -730,6 +730,9 @@ def eig(ctx, A, left = False, right = True, overwrite_a = False):
n = A.rows
if n == 1:
+ if not (left or right):
+ ... | Skip eigenvectors if left=right=False for one-dimentional matrix
Closes #712 | eig for one-dimension matrix
The returns of `eig` function are inconsistent with document when matrix.rows = 1.
```
A = mpmath.matrix(1)
print(mpmath.eig(A, left=False, right=False))
```
This code returns `([mpf('1.0')], matrix([['1.0']]))` | mpmath/mpmath | diff --git a/mpmath/tests/test_eigen.py b/mpmath/tests/test_eigen.py
index 2daa681..c7c22f0 100644
--- a/mpmath/tests/test_eigen.py
+++ b/mpmath/tests/test_eigen.py
@@ -172,3 +172,6 @@ def test_eig():
run_hessenberg(A, verbose = v)
run_schur(A, verbose = v)
run_eig(A, verbose = v)
+
+ A = ... | [
"mpmath/tests/test_eigen.py::test_eig"
] | [
"mpmath/tests/test_eigen.py::test_eig_dyn"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
11b747b6f45a3de8564c1900c546d6e304bf65ac | 2023-01-31 00:28:28 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2571-11b747b | aws-cloudformation__cfn-lint-2571 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/data/AdditionalSpecs/Inclusive.json b/src/cfnlint/data/AdditionalSpecs/Inclusive.json
index 972c5db3f..47f0fd6c0 100644
--- a/src/cfnlint/data/AdditionalSpecs/Inclusive.json
+++ b/src/cfnlint/data/AdditionalSpecs/Inclusive.json
@@ -29,22 +29,6 @@
"ScalableDimension"
]
},
- ... | Remove AWS::RDS::DBCluster MasterUsername and MasterUserPassword from Inclusive
*Issue #, if available:*
fix #2562
*Description of changes:*
- Remove `AWS::RDS::DBCluster` `MasterUsername` and `MasterUserPassword` from Inclusive
By submitting this pull request, I confirm that you can use, modify, copy, and redis... | RDS: When ManageMasterUserPassword is set to true, MasterUserPassword must not be specified.
### CloudFormation Lint Version
0.72.9
### What operating system are you using?
Windows
### Describe the bug
With `ManageMasterUserPassword` set to `true`, the linter incorrectly reports that ...
> [cfn-lint] E2521: Pro... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/bad/resources/properties/inclusive.yaml b/test/fixtures/templates/bad/resources/properties/inclusive.yaml
index 6b530f7bc..b4d0d80b8 100644
--- a/test/fixtures/templates/bad/resources/properties/inclusive.yaml
+++ b/test/fixtures/templates/bad/resources/properties/inclusive.yaml
@@ ... | [
"test/unit/rules/resources/properties/test_inclusive.py::TestPropertyInclusive::test_file_negative"
] | [
"test/unit/rules/resources/properties/test_inclusive.py::TestPropertyInclusive::test_file_positive"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.aws.amazon.com/AWSCloudFormation/latest/Use... |
e4066e1f325088ee42ae7bc0bc6c2e47533ff2c3 | 2022-12-15 22:06:00 | docker.io/swerebenchv2/pallets-click:2417-e4066e1 | pallets__click-2417 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 37646a9..2debd78 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -20,6 +20,8 @@ Unreleased
- ZSH completion script works when loaded from ``fpath``. :issue:`2344`.
- ``EOFError`` and ``KeyboardInterrupt`` tracebacks are not suppressed when
``standalone_mode`` is dis... | Fix parameterless command with custom class
<!--
Before opening a PR, open a ticket describing the issue or feature the
PR will address. Follow the steps in CONTRIBUTING.rst.
Replace this comment with a description of the change. Describe how it
addresses the linked ticket.
-->
This reorders the setting of th... | Cannot use parameterless command decorator with custom command_class
Click throws an assertion error if you try to use the parameterless command decorator on a group with a command_class defined. The error is due to the command_class being added to kwargs before the assertion for no kwargs.
# minimal repro
```
... | pallets/click | diff --git a/tests/test_command_decorators.py b/tests/test_command_decorators.py
index 9d54d7b..cfdab3c 100644
--- a/tests/test_command_decorators.py
+++ b/tests/test_command_decorators.py
@@ -11,6 +11,26 @@ def test_command_no_parens(runner):
assert result.output == "hello\n"
+def test_custom_command_no_paren... | [
"tests/test_command_decorators.py::test_custom_command_no_parens"
] | [
"tests/test_command_decorators.py::test_command_no_parens",
"tests/test_command_decorators.py::test_group_no_parens",
"tests/test_command_decorators.py::test_params_argument"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
03ad3e0a5875877dfa1b81e41014018f3bd96a58 | 2024-03-08 23:10:04 | docker.io/swerebenchv2/sinaptik-ai-pandas-ai:1012-03ad3e0 | sinaptik-ai__pandas-ai-1012 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pandasai/agent/base.py b/pandasai/agent/base.py
index c83b0ab2..467edc52 100644
--- a/pandasai/agent/base.py
+++ b/pandasai/agent/base.py
@@ -3,8 +3,7 @@ import os
import uuid
from typing import List, Optional, Type, Union
-import pandas as pd
-
+import pandasai.pandas as pd
from pandasai.pipelines.ch... | fix(pandas): modin support broke from pandasai>=2.0
- [X] Closes #1011 | pandasai 2.0 broke `modin` support
### 🐛 Describe the bug
Since #657, each module of pandasai **must** import `pandasai.pandas` as `pd` to make `pandasai` compatible with `modin`. | Sinaptik-AI/pandas-ai | diff --git a/tests/unit_tests/helpers/test_file_importer.py b/tests/unit_tests/helpers/test_file_importer.py
index c5a59ba8..62f95720 100644
--- a/tests/unit_tests/helpers/test_file_importer.py
+++ b/tests/unit_tests/helpers/test_file_importer.py
@@ -2,9 +2,9 @@
Unit tests for the FileImporter class
"""
-import pan... | [
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_import_csv_file",
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_import_parquet_file",
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_import_excel_file",
"tests/unit_tests/test_file_import... | [
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_invalid_file_format[sample.txt]",
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_invalid_file_format[sample.docx]",
"tests/unit_tests/helpers/test_file_importer.py::TestFileImporter::test_invalid_file_format[sample.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
53f319144b0ce3c3c673ae32dd1f0f3d41ac7f17 | 2024-09-22 04:31:23 | docker.io/swerebenchv2/mpmath-mpmath:867-53f3191 | mpmath__mpmath-867 | Method: mp.mpf.__format__(self, format_spec)
Location: mpmath/ctx_mp_python.py (class mp.mpf, __format__ method)
Inputs:
- **self**: an instance of mp.mpf to be formatted.
- **format_spec**: a format‑specification string following Python’s mini‑language. Supports the new binary type ‘b’ (e.g., `'b'`, `'.5b'`, `'+.3b'`,... | python | BSD-3-Clause | diff --git a/mpmath/ctx_mp_python.py b/mpmath/ctx_mp_python.py
index a1e4c37..8fb3c5f 100644
--- a/mpmath/ctx_mp_python.py
+++ b/mpmath/ctx_mp_python.py
@@ -414,6 +414,13 @@ def __format__(s, format_spec):
>>> f'{x:.10a}'
'-0x1.3c0ca2a5b2p+0'
+ Format type 'b' allows format number in ... | Support 'b' (binary) format type for mpf/mpc
Closes #866 | Support formatting mpf/mpc in binary
This already supported by ``to_str()``, but probably could be done more efficiently:
```pycon
>>> f'{gmpy2.mpfr(1.1):.15b}'
'1.000110011001101p+0'
>>> mpmath.libmp.to_str(x._mpf_, 16, base=2, show_zero_exponent=True, binary_exp=True)[2:]
'1.000110011001101p+0'
```
For compa... | mpmath/mpmath | diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py
index ed17bd2..7bc406c 100644
--- a/mpmath/tests/test_format.py
+++ b/mpmath/tests/test_format.py
@@ -839,6 +839,35 @@ def test_hexadecimal_with_libc_bulk(x, p):
assert mp.mpf(m_hex) == mp.mpf(x_hex)
+@settings(max_examples=10000)
+@given(s... | [
"mpmath/tests/test_format.py::test_binary_with_gmpy2_bulk",
"mpmath/tests/test_format.py::test_binary_fmt"
] | [
"mpmath/tests/test_format.py::test_mpf_fmt_cpython",
"mpmath/tests/test_format.py::test_mpf_floats_bulk",
"mpmath/tests/test_format.py::test_mpc_complexes",
"mpmath/tests/test_format.py::test_mpc_fmt",
"mpmath/tests/test_format.py::test_mpf_fmt",
"mpmath/tests/test_format.py::test_issue_858",
"mpmath/te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
fc85feb30d5fc8ada299f4ef32d502945eadf942 | 2023-08-31 20:35:51 | docker.io/swerebenchv2/amaranth-lang-amaranth:886-fc85feb | amaranth-lang__amaranth-886 | Method: Shape.__init__(self, width=1, signed=False) Location: amaranth.hdl.ast.Shape
Inputs: width – integer (must be int; unsigned if signed=False, signed if signed=True). signed – bool (default False). Width validation now raises TypeError with messages:
- “Width must be an integer, not …” for non‑int.
- “Width of an... | python | BSD-2-Clause | diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py
index a9f0269..685bbf3 100644
--- a/amaranth/back/rtlil.py
+++ b/amaranth/back/rtlil.py
@@ -6,6 +6,7 @@ import re
from .._utils import bits_for, flatten
from ..hdl import ast, ir, mem, xfrm
+from ..lib import wiring
__all__ = ["convert", "convert_fra... | back.{verilog,rtlil}: in convert(), accept a Component without ports
Fixes #883.
Depends on https://github.com/amaranth-lang/rfcs/pull/25. | Infer Verilog ports on Interface objects
Consider the following `Component`, which is also an Interface Object:
```
from amaranth import Signal, Module
from amaranth.lib.wiring import Signature, In, Out, Component
class SeqSignature(Signature):
def __init__(self):
return super().__init__({
... | amaranth-lang/amaranth | diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py
index 0cb8865..8745a53 100644
--- a/tests/test_hdl_ast.py
+++ b/tests/test_hdl_ast.py
@@ -42,11 +42,20 @@ class ShapeTestCase(FHDLTestCase):
s3 = Shape(3, True)
self.assertEqual(s3.width, 3)
self.assertEqual(s3.signed, True)
+ ... | [
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_range",
"tests/test_hdl_ast.py::ShapeTestCase::test_make_wrong",
"tests/test_hdl_ast.py::ConstTestCase::test_shape_wrong",
"tests/test_hdl_ast.py::BitSelectTestCase::test_offset_wrong",
"tests/tes... | [
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_shape",
"tests/test_hdl_ast.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": "B5",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
64c4bc6a5620e138574a0c06783eee1f9a3e6203 | 2024-01-12 16:01:15 | docker.io/swerebenchv2/aio-libs-aiohttp:8027-64c4bc6 | aio-libs__aiohttp-8027 | Method: ClientSession.__init__(self, *, timeout: Optional[ClientTimeout] = None, read_timeout: Any = sentinel, ...)
Location: aiohttp/client.py
Inputs:
- **timeout** – must be either ``None`` or an instance of :class:`aiohttp.ClientTimeout`. Any other type (e.g., ``int``, ``float``, ``str``) triggers a ``ValueError``... | python | custom-check-github | diff --git a/CHANGES/8021.bugfix b/CHANGES/8021.bugfix
new file mode 100644
index 000000000..f43843a58
--- /dev/null
+++ b/CHANGES/8021.bugfix
@@ -0,0 +1,1 @@
+Add runtime type check for ``ClientSession`` ``timeout`` parameter.
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 931d5c5b9..e94381dcf 100644
--- a/CON... | Backport to 3.9: Add runtime type check for `ClientSession` `timeout` param (#8022)
# Backport to 3.9
## What do these changes do?
Handle `ClientSession` `timeout` param type properly when creating a client.
## Are there changes in behavior for the user?
A `ValueError` is raised when using something other t... | ClientSession timeout AttributeError
### Describe the bug
When you create a client with `client.ClientSession(timeout=500)` does not raise or warn that timeout must be implemented as `ClientTimeout` but fails when sending a get request
Code lets you implement a client as `client.ClientSession(timeout='bad_arg')`
... | aio-libs/aiohttp | diff --git a/tests/test_client_session.py b/tests/test_client_session.py
index 2823fc462..a0654ed8c 100644
--- a/tests/test_client_session.py
+++ b/tests/test_client_session.py
@@ -814,12 +814,6 @@ async def test_client_session_timeout_default_args(loop) -> None:
await session1.close()
-async def test_client_s... | [
"tests/test_client_session.py::test_client_session_timeout_bad_argument",
"tests/test_client_session.py::test_requote_redirect_url_default"
] | [
"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": [],
"intent_completeness": "complete",
"pr_categories": [... |
438b2b7843b4b69d25c43d140b2603366a9e6453 | 2023-09-28 18:33:09 | docker.io/swerebenchv2/getmoto-moto:6864-438b2b7 | getmoto__moto-6864 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/ec2/models/fleets.py b/moto/ec2/models/fleets.py
index 9563efe4e..a76a26ea5 100644
--- a/moto/ec2/models/fleets.py
+++ b/moto/ec2/models/fleets.py
@@ -308,12 +308,19 @@ class FleetsBackend:
def delete_fleets(
self, fleet_ids: List[str], terminate_instances: bool
) -> List[Fleet]:
+
... | Glue: Default CatalogId should be the AccountID
Fixes #6861 | gluet.get_tables() method should return catalog id, which is the 123456789012, the fake AWS Account Id
Based on [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/glue/client/get_tables.html) document, ``glue.get_tables()`` should return ``{"Name": "table_name", "DatabaseName": "database... | getmoto/moto | diff --git a/.github/workflows/tests_real_aws.yml b/.github/workflows/tests_real_aws.yml
index b3fa3303a..6ef5bf734 100644
--- a/.github/workflows/tests_real_aws.yml
+++ b/.github/workflows/tests_real_aws.yml
@@ -42,4 +42,4 @@ jobs:
env:
MOTO_TEST_ALLOW_AWS_REQUEST: ${{ true }}
run: |
- py... | [
"tests/test_ec2/test_fleets.py::test_delete_fleet",
"tests/test_glue/test_datacatalog.py::test_get_databases",
"tests/test_glue/test_datacatalog.py::test_get_tables",
"tests/test_glue/test_datacatalog.py::test_get_table_versions"
] | [
"tests/test_ec2/test_fleets.py::test_launch_template_is_created_properly",
"tests/test_ec2/test_fleets.py::test_create_spot_fleet_with_lowest_price",
"tests/test_ec2/test_fleets.py::test_create_on_demand_fleet",
"tests/test_ec2/test_fleets.py::test_create_diversified_spot_fleet",
"tests/test_ec2/test_fleets... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/lates... |
607a091918004c4ca10fb621e53a09a00b8d299b | 2020-10-15 01:42:01 | docker.io/swerebenchv2/python-markdown-markdown:1044-607a091 | python-markdown__markdown-1044 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/markdown/extensions/md_in_html.py b/markdown/extensions/md_in_html.py
index 174224a..f635563 100644
--- a/markdown/extensions/md_in_html.py
+++ b/markdown/extensions/md_in_html.py
@@ -86,6 +86,14 @@ class HTMLExtractorExtra(HTMLExtractor):
else: # pragma: no cover
return None
+ ... | Completes pull #1043 which fixes #1040
Completes the tests in #1043 which fixes #1040 | markdown.extensions.md_in_html fails with TypeError: expected string or bytes-like object
I'm running into an issue with "simple" Markdown + HTML examples crashing with a `TypeError`. For example, the following throws a `TypeError: expected string or bytes-like object` exception:
```python
markdown.markdown(
'... | Python-Markdown/markdown | diff --git a/tests/test_syntax/extensions/test_md_in_html.py b/tests/test_syntax/extensions/test_md_in_html.py
index 433cdd5..946e922 100644
--- a/tests/test_syntax/extensions/test_md_in_html.py
+++ b/tests/test_syntax/extensions/test_md_in_html.py
@@ -390,6 +390,166 @@ class TestMdInHTML(TestCase):
)
... | [
"tests/test_syntax/extensions/test_md_in_html.py::TestMdInHTML::test_complex_nested_case",
"tests/test_syntax/extensions/test_md_in_html.py::TestMdInHTML::test_complex_nested_case_whitespace",
"tests/test_syntax/extensions/test_md_in_html.py::TestMdInHTML::test_md1_no_blank_line_before",
"tests/test_syntax/ex... | [
"tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_adjacent_raw_blocks",
"tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_adjacent_raw_blocks_with_blank_lines",
"tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_amperstand",
"tests/test_syntax/exte... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
84c464e3a3c64c0e98d232acc9c2e19fd58ce66f | 2023-06-27 21:15:46 | docker.io/swerebenchv2/ploomber-jupysql:681-84c464e | ploomber__jupysql-681 | Function: snippets(others: List[str])
Location: src/sql/cmd/snippets.py
Inputs:
- **others** – list of command‑line tokens passed after ``%sqlcmd snippets``.
- When ``len(others) == 1`` the single token is interpreted as a snippet name to retrieve.
- When the token matches a stored snippet key, the function re... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b707558..dc526c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
* [Feature] Modified `TableDescription` to add styling, generate messages and format the calculated outputs (#459)
* [Feature] Support flexible spacing `myvar=<<` operator ([#525](https://githu... | Move feat from %sqlrender to %sqlcmd snippets
## Describe your changes
Moved `%sqlrender` feature to `@sqlcmd snippets`, added FutureWarning to `%sqlrender`, updated documentations, and modified test functions to use `@sqlcmd snippets`
## Issue number
Closes #647
## Checklist before requesting a review
... | move feature from `%sqlrender` -> `%sqlcmd snippets`
we're going to deprecate `%sqlrender`, we should move the logic to `%sqlcmd snippets`
currently, this is how it works:
```
%%sql --save penguins
select * from penguins.csv limit 10
```
```
%%sql --save subset
select * from penguins where island is not ... | ploomber/jupysql | diff --git a/src/tests/test_magic_cmd.py b/src/tests/test_magic_cmd.py
index d9b7ef9..1e5a1c7 100644
--- a/src/tests/test_magic_cmd.py
+++ b/src/tests/test_magic_cmd.py
@@ -421,6 +421,40 @@ def test_snippet(ip_snippets):
assert "high_price, high_price_a, high_price_b" in out
+@pytest.mark.parametrize(
+ "pr... | [
"src/tests/test_magic_cmd.py::test_invalid_snippet[None-%sqlcmd",
"src/tests/test_magic_cmd.py::test_invalid_snippet[%sqlcmd"
] | [
"src/tests/test_magic_cmd.py::test_error[%sqlcmd-UsageError-Missing",
"src/tests/test_magic_cmd.py::test_error[%sqlcmd",
"src/tests/test_magic_cmd.py::test_tables",
"src/tests/test_magic_cmd.py::test_tables_with_schema",
"src/tests/test_magic_cmd.py::test_columns[%sqlcmd",
"src/tests/test_magic_cmd.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": "medium",
"external_urls": [
"https://jupysql.ploomber.io/en/latest/api/magic-snippe... |
507ce1369241a9c05490bf0e0e020cbf51d249c7 | 2022-12-09 20:08:48 | docker.io/swerebenchv2/deepmind-optax:467-507ce13 | deepmind__optax-467 | Function: poly_loss_cross_entropy(logits, labels, epsilon=2.0)
Location: optax._src.loss
Inputs:
- logits: `chex.Array` of shape `[..., num_classes]`, float‑type unnormalized log‑probabilities.
- labels: `chex.Array` broadcastable to `logits`, float‑type valid probability distributions (non‑negative, sum‑to‑1 per l... | python | Apache-2.0 | diff --git a/optax/_src/loss.py b/optax/_src/loss.py
index 9dcebd5..5aef4d4 100644
--- a/optax/_src/loss.py
+++ b/optax/_src/loss.py
@@ -129,9 +129,8 @@ def smooth_labels(
[Müller et al, 2019](https://arxiv.org/pdf/1906.02629.pdf)
Args:
- labels: one hot labels to be smoothed.
- alpha: the smoothing fac... | Add support for PolyLoss (ICLR 2022)
Closes #466
I focused on implementing the Poly-1 cross entropy loss with alpha-label smoothing since, as it is shown in the paper, the first term plays the most important role. Also, I crafted a small test showing that the behavior is indeed similar to the one of the `softmax_cr... | Add support for PolyLoss (ICLR 2022)
Hi, thanks for maintaining the library!
What are your thoughts on adding support for PolyLoss (see https://arxiv.org/pdf/2204.12511.pdf, page 10)?
Though it can be implemented externally based on the existing `softmax_cross_entropy`, I would still suggest to add it to the librar... | deepmind/optax | diff --git a/optax/_src/loss_test.py b/optax/_src/loss_test.py
index 3b523d9..1a95630 100644
--- a/optax/_src/loss_test.py
+++ b/optax/_src/loss_test.py
@@ -556,5 +556,80 @@ class HingeLossTest(parameterized.TestCase):
self.correct_result,
atol=1e-4)
+
+class PolyLossTest(parameterized.TestCase):
+
... | [
"optax/_src/loss_test.py::PolyLossTest::test_batched_(eps=-0.5,",
"optax/_src/loss_test.py::PolyLossTest::test_batched_(eps=0,",
"optax/_src/loss_test.py::PolyLossTest::test_batched_(eps=1,",
"optax/_src/loss_test.py::PolyLossTest::test_batched_(eps=1.15,",
"optax/_src/loss_test.py::PolyLossTest::test_batch... | [
"optax/_src/loss_test.py::SquaredErrorTest::test_batched__with_device",
"optax/_src/loss_test.py::SquaredErrorTest::test_batched__with_jit",
"optax/_src/loss_test.py::SquaredErrorTest::test_batched__without_device",
"optax/_src/loss_test.py::SquaredErrorTest::test_batched__without_jit",
"optax/_src/loss_tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://arxiv.org/pdf/2204.12511.pdf"
],
"inte... |
37ac3ef0888bbd9235d17cbc6d284856f5276b44 | 2024-07-14 15:03:00 | docker.io/swerebenchv2/python-attrs-attrs:1303-37ac3ef | python-attrs__attrs-1303 | Function: or_(*validators)
Location: src/attr/validators.py
Inputs: A variadic list of validator callables (`validators`). Each validator must accept three positional arguments (`instance`, `attr`, `value`) and either succeed silently or raise an exception on failure.
Outputs: Returns a new validator (an instance of th... | python | MIT | diff --git a/changelog.d/1303.change.md b/changelog.d/1303.change.md
new file mode 100644
index 0000000..10e79c1
--- /dev/null
+++ b/changelog.d/1303.change.md
@@ -0,0 +1,1 @@
+Added the `attrs.validators.or_()` validator.
diff --git a/docs/api.rst b/docs/api.rst
index d0ad6b5..c7cea64 100644
--- a/docs/api.rst
+++ b/d... | Add `attrs.validators.or_` validator
Closes #1214
# Summary
Add `attrs.validators.or_` validator, which is satisfied if at least one of the validators it is wrapping is satisfied, thus complementing the `and_` and `not_` "logical connectives" validators.
# Pull Request Check List
<!--
This is just a frien... | Multiple alternatives validator
I'd like to validate that a field can be of several types, one of which is an iterator.
```py
from attrs.validator import instance_of
@define
class C:
x: A | B | tuple[int, ...] = field(validator=instance_of((A, B, tuple)))
```
I can use `instance_of` to check the outer ty... | python-attrs/attrs | diff --git a/tests/test_validators.py b/tests/test_validators.py
index e0ee313..de91f32 100644
--- a/tests/test_validators.py
+++ b/tests/test_validators.py
@@ -30,6 +30,7 @@ from attr.validators import (
min_len,
not_,
optional,
+ or_,
)
from .utils import simple_attr
@@ -1261,3 +1262,38 @@ class... | [
"tests/test_validators.py::TestDisableValidators::test_default",
"tests/test_validators.py::TestDisableValidators::test_set_validators_disabled[True-False]",
"tests/test_validators.py::TestDisableValidators::test_set_validators_disabled[False-True]",
"tests/test_validators.py::TestDisableValidators::test_disa... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
58a5ff9d5924220d82c8127e5fea0d060e9a863b | 2023-09-29 16:58:26 | docker.io/swerebenchv2/openmdao-openmdao:3039-58a5ff9 | openmdao__openmdao-3039 | Method: Driver._get_vars_to_record(self, obj=None)
Location: openmdao/core/driver.py
Inputs:
- **obj** (optional): a Problem or Driver instance whose ``recording_options`` attribute will be inspected. If omitted, the method defaults to using ``self`` (the Driver).
Outputs:
- **dict** containing keys ``'input'... | python | custom-check-github | diff --git a/openmdao/core/driver.py b/openmdao/core/driver.py
index 935a7a9dd..9d290617c 100644
--- a/openmdao/core/driver.py
+++ b/openmdao/core/driver.py
@@ -13,7 +13,7 @@ from openmdao.core.constants import INT_DTYPE, _SetupStatus
from openmdao.recorders.recording_manager import RecordingManager
from openmdao.rec... | Added a warning when an excludes or includes recording option has no matches
### Summary
Added a check that all exclude/include globs in `recording_options` for Problem, Driver or System have at least one matching output or input name in the set of inputs, outputs and/or residuals to be recorded.
### Related Issu... | recording_options `includes` and `excludes` should warn when no matches are found for an entry
# Raise warning for missing comma's in includes/excludes list
I think it could be useful to raise a warning when the user forgets to include comma's in the 'includes' or 'excludes' list. It's a silly mistake but if most au... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_driver.py b/openmdao/core/tests/test_driver.py
index ae8eff16b..d99b948f7 100644
--- a/openmdao/core/tests/test_driver.py
+++ b/openmdao/core/tests/test_driver.py
@@ -11,13 +11,13 @@ import numpy as np
import openmdao.api as om
from openmdao.core.driver import Driver
from openmd... | [
"openmdao/core/tests/test_driver.py::TestDriver::test_get_vars_to_record",
"openmdao/core/tests/test_driver.py::TestDriver::test_record_residuals_includes_excludes",
"openmdao/core/tests/test_system.py::TestSystem::test_record_residuals_includes_excludes",
"openmdao/core/tests/test_system.py::TestSystem::test... | [
"openmdao/core/tests/test_driver.py::TestDriver::test_basic_get",
"openmdao/core/tests/test_driver.py::TestDriver::test_debug_desvar_shape",
"openmdao/core/tests/test_driver.py::TestDriver::test_debug_print_approx",
"openmdao/core/tests/test_driver.py::TestDriver::test_debug_print_desvar_physical_with_indices... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/OpenMDAO/OpenMDAO/blob/671375fd394b... |
2ab7baec1250d6853aa95ba46167cbe6a5a2ce0a | 2021-04-20 15:13:19 | docker.io/swerebenchv2/senth-minecraft-mod-manager:23-2ab7bae | senth__minecraft-mod-manager-23 | Method: Install.execute(self, mods: Sequence[ModArg]) -> None
Location: minecraft_mod_manager/app/install/install.py
Inputs: *mods* – a sequence of `ModArg` objects describing the mods to install; may be empty.
Outputs: None (side‑effects only). The method filters already installed mods, applies a mod‑loader selectio... | python | MIT | diff --git a/minecraft_mod_manager/app/install/install.py b/minecraft_mod_manager/app/install/install.py
index 90daccb..46a4c90 100644
--- a/minecraft_mod_manager/app/install/install.py
+++ b/minecraft_mod_manager/app/install/install.py
@@ -1,6 +1,7 @@
-from typing import List, Sequence
+from typing import Dict, List, ... | Automatically select fabric/forge for install
### What changed?
Now automatically selects fabric/forge for install depending on majority. If two or more mod loaders have the same count of installments then it doesn't select any of them.
### Testing
- [X] Added unit tests
### Related Issues
Fixes #18
| Automatically and manually select fabric/forge for download
### Problem
Currently, if a mod has support for both forge and fabric and we're using the install method. It will pick the latest one and you don't have the ability to select whether you want the Fabric or Forge version.
### Solution
- Automatically filte... | Senth/minecraft-mod-manager | diff --git a/minecraft_mod_manager/app/install/install_test.py b/minecraft_mod_manager/app/install/install_test.py
index cd21491..2efdb80 100644
--- a/minecraft_mod_manager/app/install/install_test.py
+++ b/minecraft_mod_manager/app/install/install_test.py
@@ -1,7 +1,8 @@
import pytest
+from minecraft_mod_manager.core... | [
"minecraft_mod_manager/app/install/install_test.py::test_mod_not_installed_when_already_installed",
"minecraft_mod_manager/app/install/install_test.py::test_call_find_download_and_install",
"minecraft_mod_manager/app/install/install_test.py::test_set_mod_loader_by_majority",
"minecraft_mod_manager/app/install... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
081a3d339b920e6730bf5ca6e038c8c1f7fc99d2 | 2018-06-21 15:58:24 | docker.io/swerebenchv2/kayak-pypika:135-081a3d3 | kayak__pypika-135 | Method: Field.__and__(self, other)
Location: pypika/terms.py – class Field
Inputs:
- other: a Term (e.g., Field, Criterion, BetweenCriterion, etc.) that participates in a logical AND expression.
Outputs: ComplexCriterion – an object representing the logical AND of the left-hand term (`self`) and the right-hand term (`... | python | Apache-2.0 | diff --git a/pypika/terms.py b/pypika/terms.py
index c0c7707..4e8f47f 100644
--- a/pypika/terms.py
+++ b/pypika/terms.py
@@ -259,6 +259,15 @@ class Field(Term):
self.name = name
self.table = table
+ def __and__(self, other):
+ return ComplexCriterion(Boolean.and_, self, other)
+
+ def _... | Fixes #134 Added missing boolean operation overrides to Field
Field was missing overrides for and, or, and xor which caused it to break if you tried to use it in a boolean expression. | Support and for Field and BetweenCriterion
`unsupported operand type(s) for &=: 'Field' and 'BetweenCriterion'`
| kayak/pypika | diff --git a/pypika/tests/test_criterions.py b/pypika/tests/test_criterions.py
index aa2f901..670f0c2 100644
--- a/pypika/tests/test_criterions.py
+++ b/pypika/tests/test_criterions.py
@@ -1,8 +1,16 @@
# coding: utf8
import unittest
-from datetime import date, datetime
-from pypika import Field, Table, functions as... | [
"pypika/tests/test_criterions.py::ComplexCriterionTests::test__between_and_field",
"pypika/tests/test_criterions.py::FieldsAsCriterionTests::test__field_and_field",
"pypika/tests/test_criterions.py::FieldsAsCriterionTests::test__field_or_field",
"pypika/tests/test_criterions.py::FieldsAsCriterionTests::test__... | [
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_bool",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_date",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_datetime",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_decimal",... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
063537b86c7655c11d3ae429cba123fc32f76eb5 | 2024-09-11 20:36:44 | docker.io/swerebenchv2/getmoto-moto:8120-063537b | getmoto__moto-8120 | Method: TooManyClauses.__init__(self, _type: str)
Location: moto/dynamodb/exceptions.py
Inputs:
- _type (str): the name of the update‑expression section that appears more than once (e.g., "ADD" or "REMOVE").
Outputs:
- Initializes the exception with a formatted message `The "<_type>" section can only be used once in ... | python | Apache-2.0 | diff --git a/moto/dynamodb/exceptions.py b/moto/dynamodb/exceptions.py
index ae7c94f62..4d4d327e0 100644
--- a/moto/dynamodb/exceptions.py
+++ b/moto/dynamodb/exceptions.py
@@ -305,11 +305,11 @@ class DuplicateUpdateExpression(InvalidUpdateExpression):
)
-class TooManyAddClauses(InvalidUpdateExpression):
-... | DynamoDB: Improve parsing of UpdateExpressions with multiple REMOVE clauses
Fixes #8107 | Attempting to remove an item from a dynamodb list along with another attribute throws a TypeError when using an UpdateExpression
# Bug Report
Python Version: 3.12.3
Moto version: 5.0.14
Moto extras: moto = dynamodb, dynamodbstreams
Installed using poetry in a virtual environment
When attempting to remove an ... | getmoto/moto | diff --git a/.github/workflows/tests_sdk_ruby.yml b/.github/workflows/tests_sdk_ruby.yml
index 87f08bcb7..e9e6fe224 100644
--- a/.github/workflows/tests_sdk_ruby.yml
+++ b/.github/workflows/tests_sdk_ruby.yml
@@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ru... | [
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_expression_with_multiple_remove_clauses",
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_expression_remove_list_and_attribute"
] | [
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request",
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float",
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_delete_non_existing_item",
"tests/test_dynamodb... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
efb4883f048a20aff2016efcf4407f51fa1d6fb7 | 2023-05-15 17:19:25 | docker.io/swerebenchv2/ably-ably-python:500-efb4883 | ably__ably-python-500 | Method: Http.make_request(self, method: str, path: str, version: str = None, headers: dict = None, body: bytes | str = None, skip_auth: bool = False, timeout: float = None, raise_on_error: bool = True)
Location: ably/http/http.py, class Http
Inputs:
- **method** – HTTP verb (e.g., `'GET'`, `'POST'`).
- **path** – Rela... | python | Apache-2.0 | diff --git a/ably/http/http.py b/ably/http/http.py
index 054fe00..440bf0c 100644
--- a/ably/http/http.py
+++ b/ably/http/http.py
@@ -44,18 +44,19 @@ def reauth_if_expired(func):
class Request:
- def __init__(self, method='GET', url='/', headers=None, body=None,
+ def __init__(self, method='GET', url='/', ver... | refactor!: add mandatory version param to `Rest.request`
Resolves #494
See [spec change](https://github.com/ably/specification/commit/ebbf1bd9ede206b3cf49b4aafc22524d4cf8a933) and [ably-js implementation](https://github.com/ably/ably-js/pull/1231) | Add mandatory version param for `Rest.request`
See https://github.com/ably/specification/pull/89 | ably/ably-python | diff --git a/test/ably/rest/resthttp_test.py b/test/ably/rest/resthttp_test.py
index db219b5..4929bdf 100644
--- a/test/ably/rest/resthttp_test.py
+++ b/test/ably/rest/resthttp_test.py
@@ -25,7 +25,7 @@ class TestRestHttp(BaseAsyncTestCase):
with mock.patch('httpx.AsyncClient.send', side_effect=httpx.Request... | [
"test/ably/rest/resthttp_test.py::TestRestHttp::test_max_retry_attempts_and_timeouts_defaults",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_error",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_get_bin",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_get_text",
"test/... | [
"test/ably/rest/resthttp_test.py::TestRestHttp::test_500_errors",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_cached_fallback",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_cumulative_timeout",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_custom_http_timeouts",
"test/ably/rest/resth... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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://github.com/ably/specification/pull/89"
],
... |
7aa2577fcc30de18ab8fc5a3707bd35f73decc53 | 2020-01-19 15:15:12 | docker.io/swerebenchv2/d0c-s4vage-pfp:121-7aa2577 | d0c-s4vage__pfp-121 | Method: PfpTestCase._test_parse_build(self, source, script, stdout=None, debug=False, predefines=False, _stream=True, printf=True) Location: tests/utils.py (class PfpTestCase) Inputs:
- **source** (str): optional binary source data to feed the parser, can be empty string.
- **script** (str): the PFP script text to be ... | python | MIT | diff --git a/pfp/fields.py b/pfp/fields.py
index 58810ca..78dd419 100644
--- a/pfp/fields.py
+++ b/pfp/fields.py
@@ -262,6 +262,12 @@ class Field(object):
if stream is not None:
self._pfp__parse(stream, save_offset=True)
+ def _pfp__get_class(self):
+ """Return the class for this field... | Target types for integer promotion are now propagated correctly
fixes #120 | Integer promotion problems, part deux
After creating the issue, checkboxes will appear where `[] label` exist in the
markdown. You can check/uncheck them to fill out the environment section.
## Describe the bug
Pfp doesn't correctly handle integer promotion. E.g. this should print `10,896`
```c
local ubyte c... | d0c-s4vage/pfp | diff --git a/tests/test_arrays.py b/tests/test_arrays.py
index 450995d..f98a224 100644
--- a/tests/test_arrays.py
+++ b/tests/test_arrays.py
@@ -287,7 +287,6 @@ class TestArrays(utils.PfpTestCase):
uint array[1];
} TestStruct;
""",
- verify=False,
)... | [
"tests/test_basic.py::TestBasic::test_logical_or_operator",
"tests/test_basic.py::TestBasic::test_logical_or_operator_with_string_data",
"tests/test_cast.py::TestArrays::test_cast_from_dex",
"tests/test_cast.py::TestArrays::test_cast_from_dex_with_string_data"
] | [
"tests/test_arrays.py::TestArrays::test_array_initialization",
"tests/test_arrays.py::TestArrays::test_array_initialization_with_string_data",
"tests/test_arrays.py::TestArrays::test_array_length1",
"tests/test_arrays.py::TestArrays::test_array_length1_with_string_data",
"tests/test_arrays.py::TestArrays::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":... |
8644e3f9dfffeb51d9bad46a101cac1a5b0b34d2 | 2021-12-17 16:48:14 | docker.io/swerebenchv2/ucfopen-canvasapi:527-8644e3f | ucfopen__canvasapi-527 | Method: Course.get_outcome_results(self, **kwargs)
Location: canvasapi/course.py
Inputs: Optional keyword arguments forwarded to the Canvas API request (e.g., pagination parameters). The method is bound to a Course instance (`self.id` supplies the course ID).
Outputs: Returns a :class:`canvasapi.paginated_list.Paginate... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7566354..76b1945 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,8 @@
### Breaking Changes
- Update `QuizSubmission.get_submission_events` to return a `PaginatedList`. (Thanks, [@stevenbell](https://github.com/stevenbell))
-- Update `Course.get_course_level_s... | Fix #526 - Create OutcomeResult class
# Proposed Changes
* Add `OutcomeResult` class
* Return `PaginatedList[<OutcomeResult>]` from `course.get_outcome_results()` instead of json.
Fixes #526
| Enhancement: Create OutcomeResult class
Outcome results with `course.get_outcome_results()` are [returned as JSON](https://github.com/ucfopen/canvasapi/blob/3f1a71e23c86a49dbaa6e84f6c0e81c297b86e36/canvasapi/course.py#L1787-L1803). It's also not returned in a `PaginatedList`, so the call needs to either manually check ... | ucfopen/canvasapi | diff --git a/tests/fixtures/outcome.json b/tests/fixtures/outcome.json
index 4e76294..50a45ec 100644
--- a/tests/fixtures/outcome.json
+++ b/tests/fixtures/outcome.json
@@ -430,6 +430,23 @@
"assessed": true
}
},
+ "outcome_result_example": {
+ "method": "GET",
+ "endpoint": "... | [
"tests/test_course.py::TestCourse::test__str__",
"tests/test_course.py::TestCourse::test_add_grading_standards",
"tests/test_course.py::TestCourse::test_add_grading_standards_empty_list",
"tests/test_course.py::TestCourse::test_add_grading_standards_missing_name_key",
"tests/test_course.py::TestCourse::test... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ucfopen/canvasapi/blob/3f1a71e23c86... |
d95c57cc7891b794b02c6fcb6317e8a71323c223 | 2021-10-01 17:46:51 | docker.io/swerebenchv2/theacodes-nox:489-d95c57c | theacodes__nox-489 | Method: Session.debug(self, *args, **kwargs)
Location:
Inputs: *args, **kwargs – arbitrary values forwarded to the session logger’s debug method
Outputs: None – the call logs the message at DEBUG level without returning a value
Description: Emits a debug‑level log entry for the current session, allowing callers to out... | python | Apache-2.0 | diff --git a/nox/sessions.py b/nox/sessions.py
index 78a0286..08c9cb4 100644
--- a/nox/sessions.py
+++ b/nox/sessions.py
@@ -520,6 +520,10 @@ class Session:
"""Outputs a warning during the session."""
logger.warning(*args, **kwargs)
+ def debug(self, *args: Any, **kwargs: Any) -> None:
+ "... | Add `session.debug` to show debug-level messages
Closes #485. A logging function to show debug-level messages. | Add a `debug` function for the session logging
**How would this feature be useful?**
<!-- Describe any use cases this solves or frustrations it alleviates. -->
On #482, I introduced a `session.warn` functionality. Then, I started to use it on my local projects. And it works pretty fine! Now,
I would like to use...... | theacodes/nox | diff --git a/tests/test_sessions.py b/tests/test_sessions.py
index 2d66ba9..6bcd916 100644
--- a/tests/test_sessions.py
+++ b/tests/test_sessions.py
@@ -609,6 +609,14 @@ class TestSession:
assert "meep" in caplog.text
+ def test_debug(self, caplog):
+ caplog.set_level(logging.DEBUG)
+ sess... | [
"tests/test_sessions.py::TestSession::test_debug"
] | [
"tests/test_sessions.py::test__normalize_path",
"tests/test_sessions.py::test__normalize_path_hash",
"tests/test_sessions.py::test__normalize_path_give_up",
"tests/test_sessions.py::TestSession::test_create_tmp",
"tests/test_sessions.py::TestSession::test_create_tmp_twice",
"tests/test_sessions.py::TestSe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
0cd524af86e3e6b3abdd6b5157196c8efc9b4f4f | 2025-04-10 14:59:01 | docker.io/swerebenchv2/crewaiinc-crewai:2570-0cd524a | crewaiinc__crewai-2570 | Method: BaseTool.run(self, *args, **kwargs)
Location: src/crewai/tools/base_tool.py
Inputs: Arbitrary positional and keyword arguments matching the concrete tool’s _run signature (e.g., input_text: str for the test tools).
Outputs: Returns the value produced by _run. If _run returns a coroutine object, run awaits it in... | python | MIT | diff --git a/src/crewai/tools/base_tool.py b/src/crewai/tools/base_tool.py
index 2d652626..0e8a7a22 100644
--- a/src/crewai/tools/base_tool.py
+++ b/src/crewai/tools/base_tool.py
@@ -1,3 +1,4 @@
+import asyncio
import warnings
from abc import ABC, abstractmethod
from inspect import signature
@@ -65,7 +66,13 @@ class... | added condition to check whether _run function returns a coroutine ob…
Fixes #2538 | [BUG] SnowflakeSearchTool returns a coroutine object rather than the query results
### Description
Unlike other tools in the package (e.g., `BraveSearchTool`, `DatabricksQueryTool`) which implement synchronous `_run` methods, the `SnowflakeSearchTool` only has an async implementation without a synchronous wrapper.
Whe... | crewAIInc/crewAI | diff --git a/tests/tools/test_base_tool.py b/tests/tools/test_base_tool.py
index a1eb7a40..b4f3d248 100644
--- a/tests/tools/test_base_tool.py
+++ b/tests/tools/test_base_tool.py
@@ -1,4 +1,8 @@
-from typing import Callable
+import asyncio
+import inspect
+import unittest
+from typing import Any, Callable, Dict, List
+... | [
"tests/tools/test_base_tool.py::test_run_calls_asyncio_run_for_async_tools"
] | [
"tests/tools/test_base_tool.py::test_result_as_answer_in_tool_decorator",
"tests/tools/test_base_tool.py::test_setting_cache_function",
"tests/tools/test_base_tool.py::test_sync_run_returns_direct_result",
"tests/tools/test_base_tool.py::test_run_does_not_call_asyncio_run_for_sync_tools",
"tests/tools/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
d2184c66a44c2f49a88d356545c72e12f6d9d7bd | 2024-11-30 01:22:02 | docker.io/swerebenchv2/axelrod-python-axelrod:1458-d2184c6 | axelrod-python__axelrod-1458 | Method: LimitedHistory.extend(self, new_plays, new_coplays)
Location: axelrod/history.py (class LimitedHistory)
Inputs:
- new_plays: iterable of actions (e.g., list of C/D) to add to the player’s own history.
- new_coplays: iterable of actions corresponding to the opponent’s moves, same length as new_plays.
- Respect t... | python | custom-check-github | diff --git a/axelrod/history.py b/axelrod/history.py
index 12114399..0e914da7 100644
--- a/axelrod/history.py
+++ b/axelrod/history.py
@@ -117,8 +117,8 @@ class LimitedHistory(History):
memory_depth, int:
length of history to retain
"""
- super().__init__(plays=plays, coplays=copla... | Improve extend method in LimitedHistory to enforce memory depth
This pull request fixes #1451 , specifically to the `history.py` and `test_history.py` files. The most important changes include the addition of the `extend` method, and the corresponding unit tests for the new method.
### Changes to `axelrod/history.py... | LimitedHistory should override extend.
[LimitedHistory](https://github.com/Axelrod-Python/Axelrod/blob/dev/axelrod/history.py#L107) inherits extend from [base class](https://github.com/Axelrod-Python/Axelrod/blob/dev/axelrod/history.py#L50). However expected behavior is that LimitedHistory only keeps the last `memory_... | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/unit/test_game.py b/axelrod/tests/unit/test_game.py
index 083431e2..e124c9e1 100644
--- a/axelrod/tests/unit/test_game.py
+++ b/axelrod/tests/unit/test_game.py
@@ -1,7 +1,7 @@
import unittest
import numpy as np
-from hypothesis import given, settings
+from hypothesis import HealthCheck, g... | [
"axelrod/tests/unit/test_history.py::TestLimitedHistory::test_extend"
] | [
"axelrod/tests/unit/test_game.py::TestAsymmetricGame::test_invalid_matrices",
"axelrod/tests/unit/test_game.py::TestAsymmetricGame::test_equality",
"axelrod/tests/unit/test_game.py::TestAsymmetricGame::test_random_repr",
"axelrod/tests/unit/test_game.py::TestGame::test_integer_actions",
"axelrod/tests/unit/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "easy",
"external_urls": [
"https://github.com/Axelrod-Python/Axelrod/blob/dev/axelr... |
bc25c89bc6223049fc9429c1912cf27c923088ff | 2023-10-17 18:31:22 | docker.io/swerebenchv2/aio-libs-aiohttp:7720-bc25c89 | aio-libs__aiohttp-7720 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/7715.bugfix b/CHANGES/7715.bugfix
new file mode 100644
index 000000000..863ea25a6
--- /dev/null
+++ b/CHANGES/7715.bugfix
@@ -0,0 +1,1 @@
+Fix unhandled exception when Python HTTP parser encounters unpaired Unicode surrogates.
diff --git a/aiohttp/http_exceptions.py b/aiohttp/http_exceptions.py
ind... | [PR #7716/5a499d04 backport][3.9] Fix unhandled exception for invalid Unicode in Python HTTP parser
**This is a backport of PR #7716 as merged into master (5a499d040654455eb03909ef6ab66a454316e317).**
## What do these changes do?
Fixes an unhandled exception in the Python HTTP parser that causes servers to 500 when... | Server using Python parser responds 500 for invalid Unicode in header
### Describe the bug
When an AIOHTTP server receives a request containing an invalid header, it formulates a response that echos the invalid header back to the user.
Something like this:
```
printf 'GET / HTTP/1.1\r\nI am invalid!!\r\n\r\n' | n... | aio-libs/aiohttp | diff --git a/tests/test_http_exceptions.py b/tests/test_http_exceptions.py
index 29d5b91fa..24944d9fc 100644
--- a/tests/test_http_exceptions.py
+++ b/tests/test_http_exceptions.py
@@ -102,7 +102,7 @@ class TestInvalidHeader:
def test_ctor(self) -> None:
err = http_exceptions.InvalidHeader("X-Spam")
... | [
"tests/test_http_exceptions.py::TestInvalidHeader::test_ctor",
"tests/test_http_exceptions.py::TestInvalidHeader::test_pickle",
"tests/test_http_exceptions.py::TestInvalidHeader::test_str",
"tests/test_http_exceptions.py::TestInvalidHeader::test_repr",
"tests/test_http_parser.py::test_unpaired_surrogate_in_... | [
"tests/test_http_exceptions.py::TestHttpProcessingError::test_ctor",
"tests/test_http_exceptions.py::TestHttpProcessingError::test_pickle",
"tests/test_http_exceptions.py::TestHttpProcessingError::test_str",
"tests/test_http_exceptions.py::TestHttpProcessingError::test_repr",
"tests/test_http_exceptions.py:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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":... |
afac3fd2c28ac5b16e7e3c95fca5acd1334f8c58 | 2016-01-26 19:32:52 | docker.io/swerebenchv2/scrapy-scrapy:1728-afac3fd | scrapy__scrapy-1728 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/topics/spiders.rst b/docs/topics/spiders.rst
index c123c2635..5e69055d1 100644
--- a/docs/topics/spiders.rst
+++ b/docs/topics/spiders.rst
@@ -144,16 +144,12 @@ scrapy.Spider
.. method:: start_requests()
This method must return an iterable with the first Requests to crawl for
- thi... | deprecate Spider.make_requests_from_url.
Fixes #1495.
Todo:
- [x] implementation is incorrect; fix it
- [x] tests
| deprecate Spider.make_requests_from_url
Hey,
`Spider.make_requests_from_url` is a shortcut for a single use case: sending initial requests from a spider with start_urls attribute. It saves a single line of code (`for url in start_urls`) in one specific use case, but yet we have to document it, users have to read about... | scrapy/scrapy | diff --git a/tests/spiders.py b/tests/spiders.py
index 711d80cac..1038b69de 100644
--- a/tests/spiders.py
+++ b/tests/spiders.py
@@ -170,10 +170,7 @@ class DuplicateStartRequestsSpider(Spider):
for i in range(0, self.distinct_urls):
for j in range(0, self.dupe_factor):
url = "http... | [
"tests/test_spider.py::DeprecationTest::test_make_requests_from_url_deprecated"
] | [
"tests/test_spider.py::SpiderTest::test_base_spider",
"tests/test_spider.py::SpiderTest::test_deprecated_set_crawler_method",
"tests/test_spider.py::SpiderTest::test_from_crawler_crawler_and_settings_population",
"tests/test_spider.py::SpiderTest::test_from_crawler_init_call",
"tests/test_spider.py::SpiderT... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
8b3459767f1cd725f0358d50e677beb00f45b124 | 2025-02-20 19:10:08 | docker.io/swerebenchv2/softlayer-softlayer-python:2214-8b34597 | softlayer__softlayer-python-2214 | No new interfaces are introduced. | python | MIT | diff --git a/SoftLayer/CLI/order/place.py b/SoftLayer/CLI/order/place.py
index 97c41784..eb6c45e9 100644
--- a/SoftLayer/CLI/order/place.py
+++ b/SoftLayer/CLI/order/place.py
@@ -65,7 +65,7 @@ def cli(env, package_keyname, location, preset, verify, billing, complex_type,
pods = network.get_closed_pods()
locat... | fixed an issue when placing an order doesn't find the correct datacenter
fixed #2114 | Errors with order place
```
$> slcli order place --verify --billing monthly SINGLE_E3_1270_V6_CL FRANKFURT02 DISK_CONTROLLER_NONRAID BANDWIDTH_0_GB 1_GBPS_PRIVATE_NETWORK_UPLINK REBOOT_KVM_OVER_IP 1_IP_ADDRESS UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT OS_UBUNTU_20_04_LTS_FOCAL_FOSSA_64_BIT INTEL_INTEL_XEON_... | softlayer/softlayer-python | diff --git a/tests/CLI/modules/order_tests.py b/tests/CLI/modules/order_tests.py
index dc2c892a..29beca5a 100644
--- a/tests/CLI/modules/order_tests.py
+++ b/tests/CLI/modules/order_tests.py
@@ -10,6 +10,7 @@
from unittest import mock as mock
from SoftLayer.CLI import exceptions
+from SoftLayer.exceptions import So... | [
"tests/CLI/modules/order_tests.py::OrderTests::test_empty_get_datacenter"
] | [
"tests/CLI/modules/order_tests.py::OrderTests::test_cancelation",
"tests/CLI/modules/order_tests.py::OrderTests::test_category_list",
"tests/CLI/modules/order_tests.py::OrderTests::test_item_list",
"tests/CLI/modules/order_tests.py::OrderTests::test_item_list_category_keyword",
"tests/CLI/modules/order_test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e1b64c1ea26967de92676baabd7a81f67720a747 | 2025-03-01 14:49:37 | docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1450-e1b64c1 | pyjanitor-devs__pyjanitor-1450 | Method: DataFrame.summarise(self, *args: tuple[dict | tuple], by: Any = None) → pandas.DataFrame | pandas.Series
Location: janitor/functions/summarise.py
Inputs:
- **self**: a pandas DataFrame on which the method is invoked.
- **args**: one or more aggregation specifications; each may be a dictionary (mapping column... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8f4c663..2740ad2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
- [ENH] Added support for pd.Series.select - Issue #1394 @samukweku
- [ENH] Added suport for janitor.mutate - Issue #1226 @samukweku
+- [ENH] Added support for janitor.summarise - Issue #1... | [ENH] summarize function
Finally, as commits come in, don't forget to regularly rebase!
-->
# PR Description
Please describe the changes proposed in the pull request:
- Add `summarize` function
**This PR resolves #1225 **
Please tag maintainers to review.
- @ericmjl
| `summarize`
# Brief Description
<!-- Please provide a brief description of what you'd like to propose. -->
I would like to propose a `summarize` function, similar to dplyr's `summarise` function and pandas' `agg` function, but for grouping operations, and more flexible
# Example API
```python
df.summarize... | pyjanitor-devs/pyjanitor | diff --git a/tests/functions/test_summarise.py b/tests/functions/test_summarise.py
new file mode 100644
index 0000000..a768453
--- /dev/null
+++ b/tests/functions/test_summarise.py
@@ -0,0 +1,166 @@
+import pandas as pd
+import pytest
+from pandas.testing import assert_frame_equal, assert_series_equal
+
+
+@pytest.fixt... | [
"tests/functions/test_summarise.py::test_summarise_wrong_arg",
"tests/functions/test_summarise.py::test_mutate_callable_series_unnamed",
"tests/functions/test_summarise.py::test_mutate_callable_series",
"tests/functions/test_summarise.py::test_summarise_by_callable_grp",
"tests/functions/test_summarise.py::... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://stackoverflow.com/q/63200530/7175713"
],
... |
895be6441655d4db07cc10532e7f03133fc0d985 | 2025-03-05 13:56:59 | docker.io/swerebenchv2/airtai-faststream:2092-895be64 | airtai__faststream-2092 | Method: AsyncConfluentProducer.__init__(self, bootstrap_servers: str, client_id: str, logger: LoggerProto, config: ConfluentConfig, acks: str = 'all', compression_type: str = 'lz4', linger_ms: int = 0, metadata_max_age_ms: int = 300000, enable_idempotence: bool = False, request_timeout_ms: int = 40000, partitioner: Opt... | python | Apache-2.0 | diff --git a/docs/docs/SUMMARY.md b/docs/docs/SUMMARY.md
index ebb3c44a..ce6ca266 100644
--- a/docs/docs/SUMMARY.md
+++ b/docs/docs/SUMMARY.md
@@ -564,6 +564,7 @@ search:
- [TopicPartition](api/faststream/confluent/schemas/TopicPartition.md)
- params
- ... | fix #2088: respect parsed sasl_mechanism
# Description
Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.
Fixes #2088
## Type of change
Please delete options that are not relevant.
- [ ] Documentation (typos, code exa... | Bug: [ConfluentKafka] Oauth configuration is not passed correctly to Consumer and Producer
**Describe the bug**
Hey, We are currently exploring this package for production usage. We would like to authenticate to an AWS MSK cluster via IAM auth. We got it to work with `confluent_kafka` so that we are sure the configurat... | airtai/faststream | diff --git a/tests/a_docs/confluent/test_security.py b/tests/a_docs/confluent/test_security.py
index b77c91eb..b0ba4c86 100644
--- a/tests/a_docs/confluent/test_security.py
+++ b/tests/a_docs/confluent/test_security.py
@@ -28,11 +28,14 @@ async def test_scram256():
async with scram256_broker:
prod... | [
"tests/a_docs/confluent/test_security.py::test_scram256",
"tests/a_docs/confluent/test_security.py::test_scram512",
"tests/a_docs/confluent/test_security.py::test_plaintext",
"tests/a_docs/confluent/test_security.py::test_oathbearer",
"tests/a_docs/confluent/test_security.py::test_gssapi"
] | [
"tests/a_docs/confluent/test_security.py::test_base_security"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://faststream.airt.ai/latest/confluent/security/#... |
302d66dd67e2de2042d81f78114938cce460ac79 | 2020-06-25 03:49:01 | docker.io/swerebenchv2/pyqtgraph-pyqtgraph:1275-302d66d | pyqtgraph__pyqtgraph-1275 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pyqtgraph/parametertree/Parameter.py b/pyqtgraph/parametertree/Parameter.py
index 9ef30477..766bd6ea 100644
--- a/pyqtgraph/parametertree/Parameter.py
+++ b/pyqtgraph/parametertree/Parameter.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from ..Qt import QtGui, QtCore
import os, weakref, re
from ..pgcollec... | Fix Parameter.hasDefault
This is a slightly different version of #847 and #331. There's some discussion in #847 for background.
Essentially, it seems we got stuck deciding whether or not explicitly passing `Parameter(default=None)` or calling `param.setDefault(None)` should make `param.hasDefault() == True`.
In t... | Parameter: hasDefault() always returns true after initializing a new Parameter even without passing in default value (and potential fix for this in comments)
I recently ran into an issue when trying to instantiate Parameter objects with and without default parameters. I include the description of the issue and a potent... | pyqtgraph/pyqtgraph | diff --git a/pyqtgraph/parametertree/tests/test_Parameter.py b/pyqtgraph/parametertree/tests/test_Parameter.py
new file mode 100644
index 00000000..a3de5493
--- /dev/null
+++ b/pyqtgraph/parametertree/tests/test_Parameter.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+import pytest
+from pyqtgraph.parametertree import P... | [
"pyqtgraph/parametertree/tests/test_Parameter.py::test_parameter_hasdefault",
"pyqtgraph/parametertree/tests/test_Parameter.py::test_parameter_hasdefault_none[True]",
"pyqtgraph/parametertree/tests/test_Parameter.py::test_parameter_hasdefault_none[False]"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
9186a953cc52e0ff3639e814a4e9461a4e027c07 | 2025-03-04 16:45:15 | docker.io/swerebenchv2/stfc-psyclone:2914-9186a95 | stfc__psyclone-2914 | Method: SymbolTable.wildcard_imports(self, scope_limit=None)
Location: src/psyclone/psyir/symbols/symbol_table.py
Inputs:
- **scope_limit** (optional `psyclone.psyir.nodes.Node`): a node that limits the search; only symbol tables attached to this node and its ancestors are examined. If `None` (default) the whole ance... | python | BSD-3-Clause | diff --git a/changelog b/changelog
index 5d24117fa..94157fa4f 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,6 @@
+ 2) PR #2914 for #2913. Consider unresolved imports when deciding scoping
+ location of fparser2 symbols.
+
1) PR #2563 for #2499. Adds ScalarisationTrans.
release 3.1.0 26th of February 2... | (Closes #2913) fix for frontend scoping bug | [PSyIR] fparser2 frontend does not respect scoping when resolving the targets of Calls.
Given the code:
```fortran
module this_mod
implicit none
contains
subroutine do_it()
use my_mod
integer :: old_my_sub
real, dimension(10) :: a
call my_sub(a)
end subroutine d... | stfc/PSyclone | diff --git a/src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py b/src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py
index 03a4adebc..c7bcfcac7 100644
--- a/src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py
+++ b/src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py
@@ ... | [
"src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py::test_unresolved_shadowed_routine",
"src/psyclone/tests/psyir/symbols/symbol_table_test.py::test_wildcard_imports"
] | [
"src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py::test_call_noargs",
"src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py::test_call_declared_routine",
"src/psyclone/tests/psyir/frontend/fparser2_call_handler_test.py::test_call_type_bound_expression",
"src/psyclone/tests/psyir/fron... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": ... |
ad96cbeda2c0188ea1a3d38aacd5b28c73f39b18 | 2025-05-07 11:28:48 | docker.io/swerebenchv2/vacanza-holidays:2532-ad96cbe | vacanza__holidays-2532 | Method: CocosIslands.__init__(self, islamic_show_estimated: bool = True, *args, **kwargs)
Location: holidays.countries.cocos_islands.CocosIslands
Inputs:
- islamic_show_estimated (bool, optional): flag indicating whether Islamic holidays should include an “estimated” label when their dates are calculated rather than o... | python | MIT | diff --git a/README.md b/README.md
index 88b84229..277f5466 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ and detailed information.
## Available Countries
-We currently support 171 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 172 country codes. The s... | Add Cocos Islands holidays
<!--
Thanks for contributing to holidays!
-->
## Proposed change
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Add Cocos Islands holidays.
Resolves #2426.
## Type of change
<!--
Type of change you wan... | Add Cocos Islands holidays
URLs:
- https://en.wikipedia.org/wiki/Public_holidays_in_the_Cocos_(Keeling)_Islands
- https://www.infrastructure.gov.au/territories-regions-cities/territories/indian-ocean-territories/community-bulletins/2022/A07-2022 | vacanza/holidays | diff --git a/tests/countries/test_cocos_islands.py b/tests/countries/test_cocos_islands.py
new file mode 100644
index 00000000..6553d373
--- /dev/null
+++ b/tests/countries/test_cocos_islands.py
@@ -0,0 +1,318 @@
+# holidays
+# --------
+# A fast, efficient Python library for generating country, province and state
+... | [
"tests/countries/test_cocos_islands.py::TestCocosIslands::test_act_of_self_determination_day",
"tests/countries/test_cocos_islands.py::TestCocosIslands::test_anzac_day",
"tests/countries/test_cocos_islands.py::TestCocosIslands::test_australia_day",
"tests/countries/test_cocos_islands.py::TestCocosIslands::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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://en.wikipedia.org/wiki/Public_holidays_in_the_Coc... |
6b040abcd4350c5e1df8c5d02a427082921e67eb | 2024-10-01 22:45:36 | docker.io/swerebenchv2/joke2k-faker:2111-6b040ab | joke2k__faker-2111 | Method: Provider.passport_owner(self, gender: SexLiteral = "X")
Location: faker/providers/passport/__init__.py (base class) and overridden in faker/providers/passport/ru_RU/__init__.py
Inputs: optional *gender* – a one‑character string indicating the passport‑owner’s gender; allowed values are **"M"**, **"F"**, or ... | python | MIT | diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 88bdfeab..f5b2aad9 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 30.4.0
+current_version = 30.6.0
files = VERSION faker/__init__.py docs/conf.py
commit = True
tag = True
diff --git a/CHANGELOG.md b/CHANGEL... | Added person provider for gu_IN locale with tests
### What does this change
Added male and female names with prefixes for gu_IN
Added tests for person provider
### What was wrong
There was no person provider for gu_IN locale
Fixes #2106
### Checklist
- [x] I have read the documentation about [CONTRIB... | Add provider `gj-IN` for Gujarati language
* Faker version: <= 29.0.0
* OS: all
There is no provider for Gujarati language in faker
### Expected behavior
There should be a new provider
### Actual behavior
No Provider for `gj-IN`
| joke2k/faker | diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py
index a8b1b4d0..bd5afc3c 100644
--- a/tests/providers/test_person.py
+++ b/tests/providers/test_person.py
@@ -20,6 +20,7 @@ from faker.providers.person.et_EE import Provider as EtEEProvider
from faker.providers.person.fi_FI import Provider as... | [
"tests/providers/test_person.py::TestAr::test_first_name",
"tests/providers/test_person.py::TestAr::test_last_name",
"tests/providers/test_person.py::TestAzAz::test_first_name",
"tests/providers/test_person.py::TestAzAz::test_last_name",
"tests/providers/test_person.py::TestCsCZ::test_name_female",
"tests... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
07816f5e85b67750ad8dc2d84c446c5ed3233602 | 2022-03-31 21:45:13 | docker.io/swerebenchv2/stac-utils-pystac:782-07816f5 | stac-utils__pystac-782 | Method: DatacubeExtension.apply(self, dimensions: Dict[str, Dimension], variables: Optional[Dict[str, Variable]] = None)
Location: pystac/extensions/datacube.py
Inputs:
- **dimensions** – mapping of dimension names to `Dimension` objects that should be written to the STAC object's extension properties.
- **vari... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f640fdfd..76378e76 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@
### Fixed
- "How to create STAC catalogs" tutorial ([#775](https://github.com/stac-utils/pystac/pull/775))
+- Add a `variables` argument, to accompany `dimensions`, for the `apply` method... | Add variables argument to the DatacubeExtension `apply` method
**Related Issue(s):**
- Fixes #781
- Helps with #324
**Description:**
An optional argument is added to the `DatacubeExtension.apply` method called `variables` and handed off to the variable setter. The argument is optional because Variable Objects... | DatacubeExtension.apply is unaware of variables
The recent addition (#699) of the variable setter did not add an accompanying change to the `DatacubeExtension.apply` method. As a result, you cannot set dimensions and variables in one swoop with the apply method. The [documentation implies](https://pystac.readthedocs.io... | stac-utils/pystac | diff --git a/tests/extensions/test_datacube.py b/tests/extensions/test_datacube.py
index ef1f60e8..f7ee1721 100644
--- a/tests/extensions/test_datacube.py
+++ b/tests/extensions/test_datacube.py
@@ -87,3 +87,16 @@ class DatacubeTest(unittest.TestCase):
self.assertEqual(
item.properties["cube:varia... | [
"tests/extensions/test_datacube.py::DatacubeTest::test_apply_variables"
] | [
"tests/extensions/test_datacube.py::TestCases::test_case_1",
"tests/extensions/test_datacube.py::TestCases::test_case_2",
"tests/extensions/test_datacube.py::TestCases::test_case_3",
"tests/extensions/test_datacube.py::TestCases::test_case_4",
"tests/extensions/test_datacube.py::TestCases::test_case_5",
"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://pystac.readthedocs.io/en/latest/concepts.html#ac... |
50609111046de95930cd96783c1c44dde05bbe0a | 2019-03-01 17:42:47 | docker.io/swerebenchv2/adamchainz-flake8-comprehensions:143-5060911 | adamchainz__flake8-comprehensions-143 | No new interfaces are introduced. | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 4083bad..e624a53 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -7,6 +7,8 @@ Pending Release
.. Insert new release notes below this line
+* Add missing builtin ``enumerate`` to ``C407``.
+
2.0.0 (2019-02-02)
------------------
diff --git a/README.rst b/README.rst
ind... | Added missing builtin enumerate to C407
Fixes #61. Thanks @pope1ni for the original PR in #108. | Add new rule for enumerate(<comprehension>)
Suggest change from `enumerate(<comprehension>)` to `enumerate(<generator>)` with the caveat that the generator needs to be wrapped in parentheses if [`enumerate()`](https://docs.python.org/3/library/functions.html#enumerate) is passed the `start` argument. | adamchainz/flake8-comprehensions | diff --git a/test_flake8_comprehensions.py b/test_flake8_comprehensions.py
index 6a5135c..087b1e2 100644
--- a/test_flake8_comprehensions.py
+++ b/test_flake8_comprehensions.py
@@ -271,6 +271,16 @@ def test_C407_max_fail_1(flake8dir):
]
+def test_C407_enumerate_fail_1(flake8dir):
+ flake8dir.make_example_py... | [
"test_flake8_comprehensions.py::test_C407_enumerate_fail_1"
] | [
"test_flake8_comprehensions.py::test_C400_pass_1",
"test_flake8_comprehensions.py::test_C400_fail_1",
"test_flake8_comprehensions.py::test_C400_fail_2",
"test_flake8_comprehensions.py::test_C401_pass_1",
"test_flake8_comprehensions.py::test_C401_fail_1",
"test_flake8_comprehensions.py::test_C401_fail_2",
... | {
"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://docs.python.org/3/library/functions.html#enumera... |
dc72d1dd053a00b690c7dbaa2c8fb0b4ebf3116c | 2024-10-21 14:56:18 | docker.io/swerebenchv2/pyomo-pyomo:3387-dc72d1d | pyomo__pyomo-3387 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pyomo/core/base/param.py b/pyomo/core/base/param.py
index 45de32865..550be3b32 100644
--- a/pyomo/core/base/param.py
+++ b/pyomo/core/base/param.py
@@ -894,8 +894,12 @@ class Param(IndexedComponent, IndexedComponent_NDArrayMixin):
dataGen = lambda k, v: [v._value]
else:
d... | Support `Param.pprint()` for non-finite Params
<!-- ##################################################################### -->
<!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST -->
<!-- All changes must adhere to PEP8 standards as enforced by Black. -->
<!-- If your changes do NOT adhere, the test suite will fail. ... | Params indexed by infinite sets with default value cannot be pretty-printed
<!-- DO NOT DELETE OR IGNORE THIS TEMPLATE. Failing to adhere to this template and provide the necessary information may lead to your Issue being closed without consideration. -->
## Summary
Pyomo parameters indexed by infinite sets and *w... | Pyomo/pyomo | diff --git a/pyomo/core/tests/unit/test_param.py b/pyomo/core/tests/unit/test_param.py
index f22674b6b..2980a2680 100644
--- a/pyomo/core/tests/unit/test_param.py
+++ b/pyomo/core/tests/unit/test_param.py
@@ -1561,6 +1561,70 @@ q : Size=0, Index=None, Domain=Any, Default=None, Mutable=False
m.p = 20
s... | [
"pyomo/core/tests/unit/test_param.py::MiscParamTests::test_nonfinite_pprint"
] | [
"pyomo/core/tests/unit/test_param.py::ArrayParam_mutable_sparse_noDefault::test_call",
"pyomo/core/tests/unit/test_param.py::ArrayParam_mutable_sparse_noDefault::test_dim",
"pyomo/core/tests/unit/test_param.py::ArrayParam_mutable_sparse_noDefault::test_get_default",
"pyomo/core/tests/unit/test_param.py::Array... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
38099cd9cd484e83c88df20ed6bd6ff1e6316877 | 2021-01-04 11:03:28 | docker.io/swerebenchv2/scille-umongo:330-38099cd | scille__umongo-330 | Method: ReferenceField.__init__(self, document_cls, required=False, allow_none=False, **kwargs)
Location: umongo/fields.py
Inputs:
- **document_cls** – class of the referenced Document (required positional).
- **required** – bool, if True the field must be present (default False).
- **allow_none** – bool, new... | python | MIT | diff --git a/umongo/frameworks/motor_asyncio.py b/umongo/frameworks/motor_asyncio.py
index 976ee5d..ccb61a5 100644
--- a/umongo/frameworks/motor_asyncio.py
+++ b/umongo/frameworks/motor_asyncio.py
@@ -338,12 +338,16 @@ async def _io_validate_data_proxy(schema, data_proxy, partial=None):
async def _reference_io_val... | Fix io_validation for None reference
Fixes #326. | Trying to set a ReferenceField to None fails in _reference_io_validate
Using Python 3.8.6 and `motor_asyncio`, when trying to set a `ReferenceField` in a document to None, I get an `AttributeError` while committing.
The traceback looks something like this:
```
Traceback (most recent call last):
... various pr... | Scille/umongo | diff --git a/tests/conftest.py b/tests/conftest.py
index 11942e6..342c9ab 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,7 +21,7 @@ def classroom_model(instance):
@instance.register
class Course(Document):
name = fields.StrField(required=True)
- teacher = fields.ReferenceField(T... | [
"tests/frameworks/test_pymongo.py::TestPymongo::test_io_validate_list",
"tests/frameworks/test_pymongo.py::TestPymongo::test_io_validate_embedded"
] | [
"tests/frameworks/test_pymongo.py::TestPymongo::test_io_validate",
"tests/frameworks/test_pymongo.py::TestPymongo::test_io_validate_multi_validate"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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/Scille/umongo/blob/master/umongo/fram... |
9dcf4f7731940b1c4f74830d65b152c0a715aedd | 2019-03-26 17:14:10 | docker.io/swerebenchv2/kayak-pypika:236-9dcf4f7 | kayak__pypika-236 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/README.rst b/README.rst
index 91ef64f..8797a4b 100644
--- a/README.rst
+++ b/README.rst
@@ -15,14 +15,6 @@ building SQL queries without limiting the flexibility of handwritten SQL. Design
leverages the builder design pattern to construct queries to avoid messy string formatting and concatenation. It is al... | Fixes #220 Added missing subquery=True kwarg to insert values sql | INSERT with subquery doesn't wrap with parentheses
Using v0.25.1, if I try to do an insert where one of the values is a subquery, pypika doesn't wrap the subquery in parentheses within the `VALUES` section.
```python
purchase_order_item = pypika.Table("purchase_order_item")
part = pypika.Table("part")
subquery ... | kayak/pypika | diff --git a/pypika/tests/test_inserts.py b/pypika/tests/test_inserts.py
index cd51ddd..682140a 100644
--- a/pypika/tests/test_inserts.py
+++ b/pypika/tests/test_inserts.py
@@ -70,7 +70,7 @@ class InsertIntoTests(unittest.TestCase):
def test_insert_all_columns_multi_rows_chained_mixed(self):
query = Que... | [
"pypika/tests/test_inserts.py::InsertSubqueryTests::test_insert_subquery_wrapped_in_brackets"
] | [
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns",
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows",
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows_chained",
"pypika/tests/test_inserts.py::InsertIntoTests::test_inser... | {
"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": [... |
f9091b3ce508c814fd97ab3936ae77335feafff8 | 2017-01-25 02:25:31 | docker.io/swerebenchv2/nchammas-flintrock:180-f9091b3 | nchammas__flintrock-180 | Function: generate_template_mapping(*, cluster: FlintrockCluster, hadoop_version: str, spark_version: str)
Location: flintrock/core.py
Inputs:
- **cluster** – an instance of FlintrockCluster (or any object with the required attributes such as `master_ip`, `master_host`, `slave_ips`, `slave_hosts`, and a `storage_... | python | Apache-2.0 | diff --git a/.travis.yml b/.travis.yml
index c7d3638..72a7864 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,7 @@ install:
script:
- "py.test ./tests/test_static.py"
- "py.test ./tests/test_flintrock.py"
+ - "py.test ./tests/test_core.py"
- "pip install -r requirements/maintainer.pip"
- "py.test ./... | Enable easy S3 access
Lots of people have trouble accessing S3 from their Flintrock clusters.
#90, which is about accessing S3 from Flintrock clusters, is the most visited issue on this project. A related issue, #88, which is driven by the same problem, is the second-most visited issue on this project. Two recent gu... | IAM roles do not seem to allow Spark to access S3 files without explicit credentials
Flintrock: so fast! I'm super excited. I typically start launching a cluster from home, take the bus to work, and if I'm lucky, my cluster will be running when I get there. You write some pretty python too!
One nice feature of spark-e... | nchammas/flintrock | diff --git a/tests/conftest.py b/tests/conftest.py
index 92bfaa9..36fa8a5 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,14 +4,40 @@ import tempfile
import uuid
from collections import OrderedDict
-# External modules
+# Flintrock
+from flintrock.core import FlintrockCluster, StorageDirs
+
+# External
... | [
"tests/test_core.py::test_templates"
] | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.87,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
603d2c12ce09fcd1be0b7a5734b4fca339820286 | 2022-04-21 17:51:07 | docker.io/swerebenchv2/pylons-waitress:376-603d2c1 | pylons__waitress-376 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/waitress/parser.py b/src/waitress/parser.py
index ff16a40..b31b5cc 100644
--- a/src/waitress/parser.py
+++ b/src/waitress/parser.py
@@ -103,7 +103,7 @@ class HTTPRequestParser:
# If the headers have ended, and we also have part of the body
# message in data we still wa... | Bugfix: header calculation
When receiving the headers in multiple packets the calculation for how big the headers are so far is wrong/invalid. This leads to issues whereby waitress would incorrectly suggest the headers were too large when they were not.
Closes #371 | Invalid calculation for max header size when headers are sent in at least two chunks
Waitress incorrectly calculates `header_bytes_received` when headers are sent in more than one chunk. Issue is related to following code in parser.py
```python
if index >= 0:
# If the headers have ended, ... | Pylons/waitress | diff --git a/tests/test_parser.py b/tests/test_parser.py
index 4461bde..9e9f1cd 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -106,6 +106,18 @@ class TestHTTPRequestParser(unittest.TestCase):
self.assertTrue(self.parser.completed)
self.assertTrue(isinstance(self.parser.error, Request... | [
"tests/test_parser.py::TestHTTPRequestParser::test_received_headers_not_too_large_multiple_chunks"
] | [
"tests/test_parser.py::TestHTTPRequestParser::test_close_with_body_rcv",
"tests/test_parser.py::TestHTTPRequestParser::test_close_with_no_body_rcv",
"tests/test_parser.py::TestHTTPRequestParser::test_get_body_stream_None",
"tests/test_parser.py::TestHTTPRequestParser::test_get_body_stream_nonNone",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
5c3d50f9006a0e86927cfc3f092ec2a30b490871 | 2024-09-02 16:35:43 | docker.io/swerebenchv2/aio-libs-aiohttp:8990-5c3d50f | aio-libs__aiohttp-8990 | Method: Request.clone(self, *, scheme: Optional[str] = None, host: Optional[str] = None, remote: Optional[str] = None, **kwargs)
Location: aiohttp/web_request.py (class BaseRequest / Request)
Inputs:
- **scheme** – optional string to replace the request URL’s scheme (e.g., “http”, “https”).
- **host** – optiona... | python | custom-check-github | diff --git a/CHANGES/8990.bugfix.rst b/CHANGES/8990.bugfix.rst
new file mode 100644
index 000000000..9a9783103
--- /dev/null
+++ b/CHANGES/8990.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed changing scheme/host in ``Response.clone()`` for absolute URLs -- by :user:`Dreamsorcerer`.
diff --git a/CHANGES/8991.doc.rst b/CHANGES/8991.d... | Fix changing scheme/host in Response.clone() for absolute URLs
Fixes #7481. | web.Request.clone bug
### Describe the bug
When I try to create a new `Request` object from an existing with `clone` and set new `scheme` and `host` parameters. The new request object's `url` will not change it's scheme and url.
### To Reproduce
```python
# Original request.url starts with 'http://'
requ... | aio-libs/aiohttp | diff --git a/tests/test_web_request.py b/tests/test_web_request.py
index 14a2e9330..11aa21e84 100644
--- a/tests/test_web_request.py
+++ b/tests/test_web_request.py
@@ -169,6 +169,22 @@ def test_absolute_url() -> None:
assert req.rel_url == URL.build(path="/path/to", query={"a": "1"})
+def test_clone_absolute_... | [
"tests/test_web_request.py::test_clone_absolute_scheme",
"tests/test_web_request.py::test_clone_absolute_host"
] | [
"tests/test_web_request.py::test_base_ctor",
"tests/test_web_request.py::test_ctor",
"tests/test_web_request.py::test_doubleslashes",
"tests/test_web_request.py::test_content_type_not_specified",
"tests/test_web_request.py::test_content_type_from_spec",
"tests/test_web_request.py::test_content_type_from_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": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1abf8bb690b4c7e8f9639839458a9d058b8e9dd4 | 2024-07-12 14:36:09 | docker.io/swerebenchv2/pytask-dev-pytask:626-1abf8bb | pytask-dev__pytask-626 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/source/changes.md b/docs/source/changes.md
index 9a041d4..48c5798 100644
--- a/docs/source/changes.md
+++ b/docs/source/changes.md
@@ -13,6 +13,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
- {pull}`619` makes coiled an optional import for tests. Thanks to {user}`erooke`.... | Fix issue with rerunning tasks via `pytask.build`.
Closes #625. | BUG: Running pytask.build twice in one python call gives `ValueError: list.remove(x): x not in list`
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pytask.
- [ ] (optional) I have confirmed this bug exists on the `main` branch of py... | pytask-dev/pytask | diff --git a/tests/test_execute.py b/tests/test_execute.py
index 07a4ee7..b32d652 100644
--- a/tests/test_execute.py
+++ b/tests/test_execute.py
@@ -1,6 +1,7 @@
from __future__ import annotations
import json
+import os
import pickle
import re
import subprocess
@@ -261,7 +262,15 @@ def test_that_dynamically_creat... | [
"tests/test_execute.py::test_execute_tasks_multiple_times_via_api"
] | [
"tests/test_execute.py::test_python_m_pytask",
"tests/test_execute.py::test_task_did_not_produce_node",
"tests/test_execute.py::test_node_not_found_in_task_setup",
"tests/test_execute.py::test_depends_on_and_produces_can_be_used_in_task",
"tests/test_execute.py::test_execution_stops_after_n_failures[1]",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://hydra.cc/",
"https://cloud.noppelmax.onlin... |
7e75a6b97697932eaf259f0f167a171265069f56 | 2022-09-27 23:44:03 | docker.io/swerebenchv2/alteryx-woodwork:1533-7e75a6b | alteryx__woodwork-1533 | Function: concat_dataframe_or_series(base, to_add)
Location: woodwork/tests/testing_utils/table_utils.py
Inputs:
- **base**: a pandas Series/DataFrame, Dask Series/DataFrame, or PySpark pandas Series/DataFrame to serve as the initial object.
- **to_add**: an object of the same type category (Series/DataFrame) to be con... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 2186594..125c42b 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -6,6 +6,7 @@ Release Notes
Future Release
==============
* Enhancements
+ * Replace use of deprecated ``append`` method for da... | Replace uses of dataframe or series `append` with `concat` where appropriate
- Fixes #1493
- Replaces uses of deprecated `append` method for dataframes and series with `concat`
- Fixes bug in `test_numeric_histogram` where results of call to `append` were not being used
- Other uses of `append` are not altered | Stop using df.append in codebase to resolve warning
- In building the Featuretools docs I saw this warning
```python
/Users/gaurav.sheni/.pyenv/versions/3.9.13/lib/python3.9/site-packages/woodwork/type_sys/utils.py:132: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future v... | alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_column_accessor.py b/woodwork/tests/accessor/test_column_accessor.py
index 09b5b64..5b114af 100644
--- a/woodwork/tests/accessor/test_column_accessor.py
+++ b/woodwork/tests/accessor/test_column_accessor.py
@@ -32,7 +32,12 @@ from woodwork.logical_types import (
PostalCode... | [
"woodwork/tests/utils/test_utils.py::test_list_semantic_tags"
] | [
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init[sample_series_pandas]",
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema[sample_series_pandas]",
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema_errors[sample_series_pandas]",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
1ae91eb4ff6ee9c326bc1ceb52e2d6edbdb0c3a8 | 2024-08-02 15:03:57 | docker.io/swerebenchv2/more-itertools-more-itertools:892-1ae91eb | more-itertools__more-itertools-892 | Function: sort_together(iterables, key_list=(0,), key=None, reverse=False, strict=False)
Location: more_itertools.more.sort_together
Inputs:
- iterables: iterable of iterables (e.g., list of lists/tuples, ranges, generators) to be sorted together.
- key_list: iterable of integer indices that define the priority order f... | python | MIT | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 7fa96ad..1d4a090 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -1792,7 +1792,9 @@ def zip_offset(*iterables, offsets, longest=False, fillvalue=None):
return zip(*staggered)
-def sort_together(iterables, key_list=(0,), key=... | Add option `strict` to `sort_together`
### Issue reference
<!-- If you're adding a new feature, please make an issue first -->
<!-- If you're fixing a trivial bug (e.g. a typo) you need not make an issue first -->
<!-- If you're fixing a non-trivial bug, please go ahead and make an issue first -->
<!-- Not all prop... | Add a strict option to sort_together()
A *strict* option would detect data size mismatches. This would avoid silently dropping data:
```
>>> iterables = [(4, 3, 2, 1), ('a', 'b', 'c')]
>>> sort_together(iterables)
[(2, 3, 4), ('c', 'b', 'a')]
``` | more-itertools/more-itertools | diff --git a/tests/test_more.py b/tests/test_more.py
index 89317cc..b25343f 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -2173,6 +2173,29 @@ class SortTogetherTest(TestCase):
],
)
+ def test_strict(self):
+ # Test for list of lists or tuples
+ self.assertRaises(
+... | [
"tests/test_more.py::SortTogetherTest::test_strict"
] | [
"tests/test_more.py::ChunkedTests::test_even",
"tests/test_more.py::ChunkedTests::test_none",
"tests/test_more.py::ChunkedTests::test_odd",
"tests/test_more.py::ChunkedTests::test_strict_being_true",
"tests/test_more.py::ChunkedTests::test_strict_being_true_with_size_none",
"tests/test_more.py::ChunkedTes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
a01380b27b75c29fa29890718c643412fb78dc0f | 2025-07-01 23:48:07 | docker.io/swerebenchv2/pydap-pydap:519-a01380b | pydap__pydap-519 | Method: DAPHandler.__init__(self, url, output_grid=True, timeout=DEFAULT_TIMEOUT, verify=True, checksum=False, user_charset="ascii", protocol=None, get_kwargs=None)
Location: src/pydap/handlers/dap.py (class DAPHandler)
Inputs:
- **url** (str): DAP URL to open.
- **output_grid** (bool, optional): Preserve grid structur... | python | MIT | diff --git a/src/pydap/client.py b/src/pydap/client.py
index a902a59..c02868c 100644
--- a/src/pydap/client.py
+++ b/src/pydap/client.py
@@ -78,6 +78,7 @@ def open_url(
output_grid=False,
timeout=DEFAULT_TIMEOUT,
verify=True,
+ checksum=False,
user_charset="ascii",
protocol=None,
use_ca... | Enable option to requests/skip checksums
<!-- Thank you very much for your hard work and contribution! -->
The following Pull Request:
- [x] Closes #516
- [x] Tests are added to demonstrate the new or fixed behavior, and all tests pass
on a local environment.
| add CRC32_checksum
Hyrax and Thredds include a flag in their dap responses (dap4) to compute checksums. These are added to the dap response as an element of the dmr portion, and the last 4 digits. pydap already checks for this element and parses it:
https://github.com/pydap/pydap/blob/98cdac8432358f4beda9e1daccfc8a08a... | pydap/pydap | diff --git a/src/pydap/tests/test_handlers_dap.py b/src/pydap/tests/test_handlers_dap.py
index 9d3b669..c9efe71 100644
--- a/src/pydap/tests/test_handlers_dap.py
+++ b/src/pydap/tests/test_handlers_dap.py
@@ -29,6 +29,8 @@ from pydap.tests.datasets import (
VerySimpleSequence,
)
+from ..net import create_sessio... | [
"src/pydap/tests/test_handlers_dap.py::test_checksum[True]",
"src/pydap/tests/test_handlers_dap.py::test_checksum[False]"
] | [
"src/pydap/tests/test_handlers_dap.py::TestDapHandler::test_base_type_with_projection",
"src/pydap/tests/test_handlers_dap.py::TestDapHandler::test_custom_timeout_BaseProxyDap2",
"src/pydap/tests/test_handlers_dap.py::TestDapHandler::test_custom_timeout_BaseProxyDap4",
"src/pydap/tests/test_handlers_dap.py::T... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/pydap/pydap/blob/98cdac8432358f4bed... |
68e65ee2bf3e057a99d1192cc256cc2cb2a12203 | 2021-07-08 08:05:52 | docker.io/swerebenchv2/pallets-click:1998-68e65ee | pallets__click-1998 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 3efa72a..b10fc80 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,6 +5,9 @@ Version 8.1.0
Unreleased
+- Single options boolean flags with ``show_default=True`` only show
+ the default if it is ``True``. :issue:`1971`:
+
Version 8.0.2
-------------
diff --git a/... | Hide single option boolean flags in "help" when the default is False
Hides the default value in help texts for single option boolean flags when the default is False
- fixes #1971
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [x] Add or ... | Consider not showing the default value of boolean flags without a secondary option (False)
Unless I'm missing something, the default value of such options should be obvious: `False`. As a consequence, `[default: False]` feels like superfluous noise. This is certainly true for the `--help` option, which should never sho... | pallets/click | diff --git a/tests/test_formatting.py b/tests/test_formatting.py
index f957e01..1cbf32b 100644
--- a/tests/test_formatting.py
+++ b/tests/test_formatting.py
@@ -322,12 +322,13 @@ def test_global_show_default(runner):
pass
result = runner.invoke(cli, ["--help"])
+ # the default to "--help" is not show... | [
"tests/test_formatting.py::test_global_show_default",
"tests/test_options.py::test_hide_false_default_boolean_flag_value[False]"
] | [
"tests/test_formatting.py::test_basic_functionality",
"tests/test_formatting.py::test_wrapping_long_options_strings",
"tests/test_formatting.py::test_wrapping_long_command_name",
"tests/test_formatting.py::test_formatting_empty_help_lines",
"tests/test_formatting.py::test_formatting_usage_error",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
933045c79fb51da3c5c1c3537c518aff000c38f6 | 2019-05-28 19:44:59 | docker.io/swerebenchv2/maas-python-libmaas:222-933045c | maas__python-libmaas-222 | Method: Tags.add(self, tag: Tag)
Location: maas/client/viscera/tags.py → class Tags (ObjectSet) – dynamically created Managed subclass
Inputs:
- **tag** – instance of `Tag` (must be exactly a `Tag` object; passing any other type raises `TypeError`).
Outputs:
- Performs an asynchronous call `tag._handler.update_nodes(... | python | custom-check-github | diff --git a/doc/client/nodes.md b/doc/client/nodes.md
index a02ef12..2a3f308 100644
--- a/doc/client/nodes.md
+++ b/doc/client/nodes.md
@@ -94,6 +94,19 @@ Delete a machine is simple as calling delete on the machine object.
>>> machine.delete()
```
+## Assigning tags
+
+Assigning tags to a machine is as simple as c... | Add ability to add and remove tags on a node. Fixes #204. | Can't add tags to nodes/machines
## Environment
python-libmaas==0.6.1
Python 3.6.7
## Problem
The node/machine attribute `tags` is readonly. It doesn't allow to manipulate those tags.
## Proposed solution
The endpoint `api/2.0/tags/<TAG>/?op=update_nodes` allows to add/remove tags to/from nodes | maas/python-libmaas | diff --git a/maas/client/viscera/tests/test_nodes.py b/maas/client/viscera/tests/test_nodes.py
index c7ca194..099e836 100644
--- a/maas/client/viscera/tests/test_nodes.py
+++ b/maas/client/viscera/tests/test_nodes.py
@@ -2,13 +2,20 @@
from copy import deepcopy
-from testtools.matchers import Equals
+from testtools... | [
"maas/client/viscera/tests/test_nodes.py::TestNode::test__tags",
"maas/client/viscera/tests/test_nodes.py::TestNode::test__tags_add",
"maas/client/viscera/tests/test_nodes.py::TestNode::test__tags_add_requires_Tag",
"maas/client/viscera/tests/test_nodes.py::TestNode::test__tags_remove",
"maas/client/viscera... | [
"maas/client/viscera/tests/test_nodes.py::TestNode::test__as_device_requires_device_type",
"maas/client/viscera/tests/test_nodes.py::TestNode::test__as_device_returns_device_type",
"maas/client/viscera/tests/test_nodes.py::TestNode::test__as_machine_requires_machine_type",
"maas/client/viscera/tests/test_node... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2f80de7fd2a8bc199dadf5cf3f5f302a17084792 | 2023-04-23 11:40:58 | docker.io/swerebenchv2/pypa-packaging:690-2f80de7 | pypa__packaging-690 | Function: platform_tags(archs)
Location: packaging/_manylinux.py
Inputs: archs – Sequence[str] – a list of compatible architecture identifiers (e.g., ["x86_64"] or ["armv8l", "armv7l"]). The first entry is taken as the primary architecture for the generated tag.
Outputs: Iterator[str] – manylinux tag strings such as `"... | python | custom-check-github | diff --git a/src/packaging/_manylinux.py b/src/packaging/_manylinux.py
index d307eb1..3705d50 100644
--- a/src/packaging/_manylinux.py
+++ b/src/packaging/_manylinux.py
@@ -5,7 +5,7 @@ import os
import re
import sys
import warnings
-from typing import Dict, Generator, Iterator, NamedTuple, Optional, Tuple
+from typi... | Ability to install `armv7l manylinux/musllinux` wheels on `armv8l`
`aarch64` systems running under `linux32` emulation will report an `armv8l` machine rather than `armv7l`.
This shall not prevent packaging to report `musllinux/manylinux armv7l` compatibiility as long as the running python has a compatible ABI.
fix ... | 64-bit Python running in 32-bit mode isn't able to install any of aarch64 and armv7l wheels
On a 64-bit Raspberry Pi, `sysconfig.get_platform()` returns `linux_armv8l` instead of `linux_aarch64` while `sys.maxsize` is over 32-bit range
```bash
root@raspberrypi:~# linux32 python3 -c 'import sysconfig; print(sysconfi... | pypa/packaging | diff --git a/tests/test_tags.py b/tests/test_tags.py
index 96a7819..870ef4e 100644
--- a/tests/test_tags.py
+++ b/tests/test_tags.py
@@ -360,10 +360,10 @@ class TestManylinuxPlatform:
@pytest.mark.parametrize(
"arch,is_32bit,expected",
[
- ("linux-x86_64", False, "linux_x86_64"),
- ... | [
"tests/test_tags.py::TestManylinuxPlatform::test_linux_platforms_32_64bit_on_64bit_os[linux-aarch64-True-expected3]",
"tests/test_tags.py::TestManylinuxPlatform::test_linux_platforms_manylinux2014_armhf_abi[armv8l-armv8l]",
"tests/test_tags.py::TestManylinuxPlatform::test_linux_platforms_manylinux2014_armhf_abi... | [
"tests/test_tags.py::TestTag::test_lowercasing",
"tests/test_tags.py::TestTag::test_equality",
"tests/test_tags.py::TestTag::test_equality_fails_with_non_tag",
"tests/test_tags.py::TestTag::test_hashing",
"tests/test_tags.py::TestTag::test_hash_equality",
"tests/test_tags.py::TestTag::test_str",
"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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://gitlab.alpinelinux.org/omni/aports/-/jobs/5140... |
fcb89c286dc12c720ee19d1b19e1825b1645a58b | 2023-07-14 00:45:16 | docker.io/swerebenchv2/tefra-xsdata:820-fcb89c2 | tefra__xsdata-820 | No new interfaces are introduced. | python | MIT | diff --git a/xsdata/codegen/handlers/calculate_attribute_paths.py b/xsdata/codegen/handlers/calculate_attribute_paths.py
index 0a1ed88b..93ca644e 100644
--- a/xsdata/codegen/handlers/calculate_attribute_paths.py
+++ b/xsdata/codegen/handlers/calculate_attribute_paths.py
@@ -36,8 +36,6 @@ class CalculateAttributePaths(H... | Fix use="required" for attributes in inner classes.
## 📒 Description
When an element has a restriction, it may _override_ an attribute's use-attribute, for example from optional to required. This patch reflects this change.
Resolves #819
## 🔗 What I've Done
> Write a description of the steps taken to reso... | When a schema overrides attributes (with use="required") this is not reflected in the output
Considering the example below.
```
<xsd:element name="TimeDemandTypeAssignment" abstract="false" substitutionGroup="Assignment_">
<xsd:annotation>
<xsd:documentation>The assignment of a TIME DEMAND TYPE to a TIME BA... | tefra/xsdata | diff --git a/tests/codegen/handlers/test_calculate_attribute_paths.py b/tests/codegen/handlers/test_calculate_attribute_paths.py
index 97a6f394..cb334965 100644
--- a/tests/codegen/handlers/test_calculate_attribute_paths.py
+++ b/tests/codegen/handlers/test_calculate_attribute_paths.py
@@ -69,6 +69,13 @@ class Calculat... | [
"tests/codegen/handlers/test_calculate_attribute_paths.py::CalculateAttributePathsTests::test_process",
"tests/codegen/handlers/test_create_compound_fields.py::CreateCompoundFieldsTests::test_group_fields",
"tests/codegen/handlers/test_create_compound_fields.py::CreateCompoundFieldsTests::test_process_with_conf... | [
"tests/codegen/handlers/test_create_compound_fields.py::CreateCompoundFieldsTests::test_build_attr_choice",
"tests/codegen/handlers/test_create_compound_fields.py::CreateCompoundFieldsTests::test_build_reserved_names",
"tests/codegen/handlers/test_create_compound_fields.py::CreateCompoundFieldsTests::test_choos... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7a8c5cf8b10e4aaced0cbea17ae1194c00d9205a | 2025-04-28 12:54:55 | docker.io/swerebenchv2/openmdao-openmdao:3519-7a8c5cf | openmdao__openmdao-3519 | Method: System.list_options(self, include_default=True, include_solvers=True, out_stream=_DEFAULT_OUT_STREAM, return_format='list')
Location: openmdao/core/system.py, class System
Inputs:
- include_default (bool): when True, include built‑in OpenMDAO system options; when False, omit default options listed in `default_... | python | custom-check-github | diff --git a/openmdao/core/system.py b/openmdao/core/system.py
index 75035a5e3..cf0a71465 100644
--- a/openmdao/core/system.py
+++ b/openmdao/core/system.py
@@ -25,7 +25,7 @@ from openmdao.utils.mpi import MPI, multi_proc_exception_check
from openmdao.utils.options_dictionary import OptionsDictionary
from openmdao.ut... | Added a simple method to output a list of options on a system.
### Summary
Added a simple method to output a list of options on a system.
### Related Issues
- Resolves #3511
### Backwards incompatibilities
None
### New Dependencies
None
| New Feature on System: list_options()
### Desired capability or behavior.
In the spirit of `list_vars` and `list_driver_vars`, a new method `list_options` would be very useful for documenting and comparing component options.
1. When called on a single component, it should print and return a list of all options on the... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_system.py b/openmdao/core/tests/test_system.py
index ad008bd13..d152f5b3e 100644
--- a/openmdao/core/tests/test_system.py
+++ b/openmdao/core/tests/test_system.py
@@ -328,6 +328,35 @@ class TestSystem(unittest.TestCase):
self.assertEqual(sorted([name for name, _ in nonDV_i... | [
"openmdao/core/tests/test_system.py::TestSystem::test_list_options"
] | [
"openmdao/core/tests/test_system.py::TestSystem::test_get_io_metadata",
"openmdao/core/tests/test_system.py::TestSystem::test_get_outputs_dir",
"openmdao/core/tests/test_system.py::TestSystem::test_group_modifies_model_options",
"openmdao/core/tests/test_system.py::TestSystem::test_list_inputs_before_final_se... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
4a1b3a1436c375c72f80866c6ca145ff0e69086f | 2019-07-21 06:23:16 | docker.io/swerebenchv2/python-attrs-attrs:556-4a1b3a1 | python-attrs__attrs-556 | No new interfaces are introduced. | python | MIT | diff --git a/changelog.d/523.change.rst b/changelog.d/523.change.rst
new file mode 100644
index 0000000..86bf8cd
--- /dev/null
+++ b/changelog.d/523.change.rst
@@ -0,0 +1,1 @@
+When collecting attributes using ``@attr.s(auto_attribs=True)``, attributes with a default of ``None`` are now deleted too.
diff --git a/change... | Ensure that bare attributes with default None are removed too
Fixes #523
Classic None-as-sentinel-where-None-is-a-valid-value-blunder. | Attrs deletes any non-None class attributes
Currently, `attrs` will delete any non-`None` class attributes when `_ClassBuilder._delete_attribs` is `True` (i.e. when attributes are specified via class attributes, not directly via `these` field).
According to comment on [_make.py:502](https://github.com/python-attrs/att... | python-attrs/attrs | diff --git a/tests/test_annotations.py b/tests/test_annotations.py
index cbf5bd0..1f23f1d 100644
--- a/tests/test_annotations.py
+++ b/tests/test_annotations.py
@@ -265,3 +265,20 @@ class TestAnnotations:
x: int
assert 1 == C(1).x
+
+ def test_removes_none_too(self):
+ """
+ Reg... | [
"tests/test_annotations.py::TestAnnotations::test_removes_none_too"
] | [
"tests/test_annotations.py::TestAnnotations::test_basic_annotations",
"tests/test_annotations.py::TestAnnotations::test_catches_basic_type_conflict",
"tests/test_annotations.py::TestAnnotations::test_typing_annotations",
"tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected",
"t... | {
"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": [],
"intent_completeness": "complete",
"pr_categories": [... |
f122abd7ae1377c72c3407e5bd087bf47599089a | 2024-01-13 15:36:13 | docker.io/swerebenchv2/callowayproject-bump-my-version:125-f122abd | callowayproject__bump-my-version-125 | Function: get_nested_value(d: dict, path: str) -> Any
Location: bumpversion/utils.py
Inputs:
- **d**: a dictionary (potentially nested) to search.
- **path**: a dot‑separated string (e.g., `"tool.bumpversion.current_version"`).
Raises: `KeyError` if any key in the path does not exist; `ValueError` if an element en... | python | MIT | diff --git a/bumpversion/files.py b/bumpversion/files.py
index aee9c505..83bab62a 100644
--- a/bumpversion/files.py
+++ b/bumpversion/files.py
@@ -9,6 +9,7 @@ from typing import Dict, List, MutableMapping, Optional
from bumpversion.config.models import FileChange, VersionPartConfig
from bumpversion.exceptions import ... | Fixed extra whitespace added when updating pyproject.toml
- Removed dotted-notation from requirements. There is an issue on how dotted-notation sets values in the TOMLkit data structure.
- Added `get_nested_value` and `set_nested_value` as replacements for dotted-notation.
Fixes #123 | Bumping version adds extra whitespace to `pyproject.toml`
* bump-my-version version: 0.16.1
* Python version: 3.12.1
* Operating System: Ubuntu 22.04 LTS
### Description
The newest version of `bump-my-version` adds an extra newline to the `pyproject.toml` file when bumping the version. This is causing issues fo... | callowayproject/bump-my-version | diff --git a/tests/fixtures/basic_cfg.toml b/tests/fixtures/basic_cfg.toml
index 7808ae95..ef598a13 100644
--- a/tests/fixtures/basic_cfg.toml
+++ b/tests/fixtures/basic_cfg.toml
@@ -44,3 +44,7 @@ values =[
"dev",
"gamma",
]
+
+[tool.othertool]
+bake_cookies = true
+ignore-words-list = "sugar, salt, flour"
d... | [
"tests/test_bump.py::test_key_path_required_for_toml_change",
"tests/test_config/test_files.py::test_update_config_file[pyproject.toml]",
"tests/test_utils.py::TestGetNestedValue::test_returns_value",
"tests/test_utils.py::TestGetNestedValue::test_invalid_path_raises_keyerror",
"tests/test_utils.py::TestGet... | [
"tests/test_bump.py::test_get_next_version_with_new_version",
"tests/test_bump.py::test_get_next_version_with_version_part",
"tests/test_bump.py::test_get_next_version_with_no_arguments",
"tests/test_bump.py::test_do_bump_with_version_part",
"tests/test_bump.py::test_do_bump_with_new_version",
"tests/test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Ouranosinc/xclim/commit/a368fa4cbb4f9... |
e139e75d6d9a5bcbde9ce133db84a83ab7724a9e | 2024-06-19 16:41:59 | docker.io/swerebenchv2/spikeinterface-spikeinterface:3047-e139e75 | spikeinterface__spikeinterface-3047 | No new interfaces are introduced. | python | MIT | diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py
index 46d02099d..009401201 100644
--- a/src/spikeinterface/core/sortinganalyzer.py
+++ b/src/spikeinterface/core/sortinganalyzer.py
@@ -1608,7 +1608,9 @@ class AnalyzerExtension:
if self.format == "binary_folde... | Skip loading `info.json` into `ext.data`
Fixes #3041
Based on our discussion today. This patch is tested and working for `select_units`. | `select_units` fails in `SortingAnalyzer` after using `load_sorting_analyzer`
## Problem
After saving a sorter (to binary_folder) and then reloading, you can no longer use the `select_units` function.
## MRE
```python
rec, sorting = si.generate_ground_truth_recording()
analyzer = si.create_sorting_analyzer(s... | SpikeInterface/spikeinterface | diff --git a/src/spikeinterface/core/tests/test_sortinganalyzer.py b/src/spikeinterface/core/tests/test_sortinganalyzer.py
index d78093214..7456680b2 100644
--- a/src/spikeinterface/core/tests/test_sortinganalyzer.py
+++ b/src/spikeinterface/core/tests/test_sortinganalyzer.py
@@ -67,9 +67,16 @@ def test_SortingAnalyzer... | [
"src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_binary_folder"
] | [
"src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_memory",
"src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_zarr",
"src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_tmp_recording",
"src/spikeinterface/core/tests/test_sortinganal... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/SpikeInterface/spikeinterface/issues/... |
bed8d27f3e6ca6570c6d21faf8959d92c753b7b8 | 2021-04-29 17:18:03 | docker.io/swerebenchv2/senth-minecraft-mod-manager:36-bed8d27 | senth__minecraft-mod-manager-36 | Method: Sqlite.exists(self, id: str, filter_active: bool = True)
Location: minecraft_mod_manager/gateways/sqlite.py, class Sqlite
Inputs:
- id: string identifier of the mod to look up.
- filter_active (optional): boolean flag (default True). When True, only rows with active=1 are considered; when False, the active fla... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7d15922..b16295c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versi... | Can now reinstall mods using install
### What changed?
- When checking if a mod is installed, it now only checks for active mods
### Testing
- [X] Added unit tests
- [X] Manually tested reinstalling a mod
### Related Issues
Fixes #33
| Mod is already installed - Can't reinstall mod after manually deleting it
When you install a mod via the mod manager and then delete it from the folder and try to install it again via the manager it says the mod is already installed.
I had thinked about an uninstall command line to delete the mod from the database a... | Senth/minecraft-mod-manager | diff --git a/minecraft_mod_manager/gateways/sqlite_test.py b/minecraft_mod_manager/gateways/sqlite_test.py
index f8f3325..28ec7af 100644
--- a/minecraft_mod_manager/gateways/sqlite_test.py
+++ b/minecraft_mod_manager/gateways/sqlite_test.py
@@ -3,11 +3,11 @@ import sqlite3
from typing import Any, List, Tuple, Union
... | [
"minecraft_mod_manager/gateways/sqlite_test.py::test_does_not_exist_when_set_as_inactive",
"minecraft_mod_manager/gateways/sqlite_test.py::test_exists_when_set_as_inactive_but_not_filtering"
] | [
"minecraft_mod_manager/gateways/sqlite_test.py::test_insert_mod",
"minecraft_mod_manager/gateways/sqlite_test.py::test_insert_mod_when_fields_set_to_none",
"minecraft_mod_manager/gateways/sqlite_test.py::test_insert_mod_raises_error_when_already_exists",
"minecraft_mod_manager/gateways/sqlite_test.py::test_sk... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
99f4468dc23d6821a3c52f337cf56b692d70e76d | 2024-07-03 16:07:36 | docker.io/swerebenchv2/dasdae-dascore:407-99f4468 | dasdae__dascore-407 | Method: BaseSpool.concatenate(self, *, new_dim: int | None = None, **group_by)
Location: dascore.core.spool.BaseSpool (exposed as dc.spool().concatenate)
Inputs:
- **new_dim** – Optional integer specifying the size of a new dimension to create on each resulting patch. When provided, patches are concatenated in gr... | python | custom-check-github | diff --git a/dascore/io/prodml/utils.py b/dascore/io/prodml/utils.py
index e05dc5a..d7b3cb6 100644
--- a/dascore/io/prodml/utils.py
+++ b/dascore/io/prodml/utils.py
@@ -47,7 +47,7 @@ def _get_distance_coord(acq):
name_v2_0 = "SpatialSamplingIntervalUnit"
name_v2_1 = "SpatialSamplingInterval.uom"
... | clarify spool concat new dim behavior
## Description
This PR clarifies the behavior of `Spool.concatenate` when a new dimension is used. Closes #404. Also adds a few more tests related to new dimensions in concatenate.
## Checklist
I have (if applicable):
- [ ] referenced the GitHub issue this PR closes.
... | spool.concatenate with new dimension has incorrect shape
## Description
Specifying a new dimension in `BaseSpool.concatenate` returns a spool whose patch has only a length of 1 in the new dimension, regardless of the input shape.
## Example
```python
import dascore as dc
sp = dc.get_example_spool()
new = sp.c... | DASDAE/dascore | diff --git a/tests/test_io/test_prodml/test_prod_ml.py b/tests/test_io/test_prodml/test_prod_ml.py
index fabe0ff..645520a 100644
--- a/tests/test_io/test_prodml/test_prod_ml.py
+++ b/tests/test_io/test_prodml/test_prod_ml.py
@@ -4,6 +4,7 @@ from __future__ import annotations
import shutil
+import pandas as pd
imp... | [
"tests/test_io/test_prodml/test_prod_ml.py::TestProdMLFile::test_has_gauge_length"
] | [
"tests/test_io/test_prodml/test_prod_ml.py::TestProdMLFile::test_read_silixa",
"tests/test_io/test_prodml/test_prod_ml.py::TestProdMLFile::test_issue_221",
"tests/test_io/test_prodml/test_prod_ml.py::TestReadQuantXV2::test_precision_of_time_array",
"tests/test_utils/test_patch_utils.py::TestPatchFunction::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": "B5",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ea8ede3061d35a895f4e851c855bc54b85594daa | 2024-09-30 09:08:08 | docker.io/swerebenchv2/zopefoundation-restrictedpython:288-ea8ede3 | zopefoundation__restrictedpython-288 | Function: safer_getattr_raise(object, name, default=raise_)
Location: RestrictedPython.Guards.safer_getattr_raise
Inputs:
- **object** – any Python object from which an attribute is requested.
- **name** – attribute name as a string; must not start with an underscore.
- **default** – optional sentinel (default is ... | python | custom-check-github | diff --git a/CHANGES.rst b/CHANGES.rst
index 10fad5c..43226ba 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -7,6 +7,13 @@ Changes
- Allow to use the package with Python 3.13 -- Caution: No security
audit has been done so far.
+- Provide new function ``RestrictedPython.Guards.safer_getattr_raise``.
+ It is simila... | new function `safer_getattr_raise`
Fixed #287.
`safer_getattr_raise` is similar to `safer_getattr` but handles its parameter `default` like `getattr`. In particular, it raises `AttributeError` if the attribute lookup fails and no `default` has been provided. | Provide a `safer_getattr` variant with `getattr` compatible signature
We started to advertise `safer_getattr` as a safe `getattr` implementation candidate in a typical `RestrictedPython` environment **BUT** `safer_getattr` has a different signature and semantics than `getattr`: `safer_getattr` has by default the parame... | zopefoundation/RestrictedPython | diff --git a/tests/test_Guards.py b/tests/test_Guards.py
index f3db19b..b9c5b2f 100644
--- a/tests/test_Guards.py
+++ b/tests/test_Guards.py
@@ -329,6 +329,18 @@ def test_Guards__safer_getattr__5():
) == str(err.value)
+def test_Guards__safer_getattr_raise():
+ from types import SimpleNamespace
+
+ from ... | [
"tests/test_Guards.py::test_Guards__safer_getattr_raise"
] | [
"tests/test_Guards.py::test_Guards_bytes",
"tests/test_Guards.py::test_Guards_sorted",
"tests/test_Guards.py::test_Guards__safe_builtins__1",
"tests/test_Guards.py::test_Guards__safe_builtins__2",
"tests/test_Guards.py::test_Guards__guarded_setattr__1",
"tests/test_Guards.py::test_Guards__write_wrapper__1... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1105047c6dbf953b7dc5190f996eebbcf630f6c7 | 2025-02-18 15:26:29 | docker.io/swerebenchv2/galileo-galilei-kedro-mlflow:640-1105047 | galileo-galilei__kedro-mlflow-640 | Method: KedroMlflowConfig.setup(self, context)
Location: kedro_mlflow/config/kedro_mlflow_config.py
Inputs:
- **context** (`KedroContext`) – the Kedro project context passed when a Kedro session is started.
Outputs: `None` (void).
Description: Sets up MLflow for the Kedro run (creates experiment, configures t... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3111f49..cbffdc7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+### Added
+
+- :sparkles: Add the ``tracking.disable_tracking.disable_autologging`` configuration option in ``mlflow.yml ``to disable autologging by default. This simplify ... | :sparkles: Add configuration to disable autologging for Databricks
## Description
Close #610
## Development notes
What have you changed, and how has this been tested?
- Add a configuration in ``mlflow.yml`` to disable autologging globally and set it to true by default.
- Trigger it in ``KedroMlflowConfig.setu... | MLFlow conflict when using Databricks
<!-- **_If you like the repo, please give it a :star:_** -->
## Description
When running kedro-mlflow on Databricks, occasionally a new run of the experiment might be triggered when running parallelized code. This is because Databricks enables autologging (at least in recent ru... | Galileo-Galilei/kedro-mlflow | diff --git a/tests/config/test_get_mlflow_config.py b/tests/config/test_get_mlflow_config.py
index e3a2415..0fbe9e0 100644
--- a/tests/config/test_get_mlflow_config.py
+++ b/tests/config/test_get_mlflow_config.py
@@ -35,7 +35,10 @@ def test_mlflow_config_default(kedro_project):
request_header_provider=dict... | [
"tests/config/test_get_mlflow_config.py::test_mlflow_config_default",
"tests/config/test_get_mlflow_config.py::test_mlflow_config_in_uninitialized_project[None]",
"tests/config/test_get_mlflow_config.py::test_mlflow_config_in_uninitialized_project[fake_project]",
"tests/config/test_get_mlflow_config.py::test_... | [
"tests/config/test_get_mlflow_config.py::test_mlflow_config_with_request_header_provider",
"tests/config/test_get_mlflow_config.py::test_mlflow_config_with_request_header_provider_with_init_kwargs",
"tests/config/test_get_mlflow_config.py::test_mlflow_config_with_request_header_provider_with_with_context",
"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": [
"https://kedro-org.slack.com/archives/C03RKP2LW64/p1732... |
f4549213dc71e171f89f46aeb68eb30a100400e7 | 2023-04-30 21:48:15 | docker.io/swerebenchv2/tomplus-kubernetes-asyncio:254-f454921 | tomplus__kubernetes_asyncio-254 | Method: Configuration.set_default(self, configuration: Optional[Configuration]) -> None
Location: kubernetes_asyncio/configuration.py, class Configuration
Inputs:
- **configuration** – a `Configuration` instance that should become the module‑wide default, or `None` to clear the default.
Outputs:
- Returns `None`. Si... | python | Apache-2.0 | diff --git a/kubernetes_asyncio/config/incluster_config.py b/kubernetes_asyncio/config/incluster_config.py
index 78093d3c..62704085 100644
--- a/kubernetes_asyncio/config/incluster_config.py
+++ b/kubernetes_asyncio/config/incluster_config.py
@@ -96,6 +96,10 @@ class InClusterConfigLoader(object):
def load_tok... | [fix] refreshing incluster configuration
Fixes #253 | Service account token is not refreshed when ApiClient is created with default configuration causing 401 (Unauthorized) error
I am facing an issue with service account token periodic refresh that was originally implemented in https://github.com/tomplus/kubernetes_asyncio/pull/205/files
**Problem**:
Service account... | tomplus/kubernetes_asyncio | diff --git a/kubernetes_asyncio/config/incluster_config_test.py b/kubernetes_asyncio/config/incluster_config_test.py
index d4437821..b1ccbdda 100644
--- a/kubernetes_asyncio/config/incluster_config_test.py
+++ b/kubernetes_asyncio/config/incluster_config_test.py
@@ -48,6 +48,7 @@ class InClusterConfigTest(unittest.Test... | [
"kubernetes_asyncio/config/incluster_config_test.py::InClusterConfigTest::test_refresh_token_default_config_with_copies"
] | [
"kubernetes_asyncio/config/incluster_config_test.py::InClusterConfigTest::test_client_config",
"kubernetes_asyncio/config/incluster_config_test.py::InClusterConfigTest::test_empty_cert_file",
"kubernetes_asyncio/config/incluster_config_test.py::InClusterConfigTest::test_empty_host",
"kubernetes_asyncio/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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/tomplus/kubernetes_asyncio/pull/205... |
86dcd7c2c55c36385090b81619a959c5a69bf40d | 2023-10-27 09:30:09 | docker.io/swerebenchv2/stfc-psyclone:2378-86dcd7c | stfc__psyclone-2378 | Method: Node.siblings(self)
Location: src/psyclone/psyir/nodes/node.py
Inputs: None (property accessed on a Node instance)
Outputs: List[psyclone.psyir.nodes.Node] – the list of children of this node’s parent, i.e., all sibling nodes including the node itself.
Description: Returns all sibling nodes of the current node ... | python | BSD-3-Clause | diff --git a/src/psyclone/psyir/nodes/node.py b/src/psyclone/psyir/nodes/node.py
index 642c93f94..e13bc0924 100644
--- a/src/psyclone/psyir/nodes/node.py
+++ b/src/psyclone/psyir/nodes/node.py
@@ -35,6 +35,7 @@
# I. Kavcic, Met Office
# J. Henrichs, Bureau of Meteorology
# Modified A. B. G. Chalk, ST... | Add `Node.siblings` property
Closes #2369.
A simple addition to determine a node's siblings, i.e., parent's children. I implemented it as a property, for consistency with `children` and `parent`. However, it does mean that the siblings include the node itself. Maybe this is fine. | Add `get_siblings` function/method
It'd be useful to have a way to get all 'siblings' of a node, i.e., all of its parents' children. | stfc/PSyclone | diff --git a/src/psyclone/tests/psyGen_test.py b/src/psyclone/tests/psyGen_test.py
index 5f5602742..9fd9a89d0 100644
--- a/src/psyclone/tests/psyGen_test.py
+++ b/src/psyclone/tests/psyGen_test.py
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
# -----------------------------------------------------------------------... | [
"src/psyclone/tests/psyGen_test.py::test_siblings"
] | [
"src/psyclone/tests/psyGen_test.py::test_object_index",
"src/psyclone/tests/psyGen_test.py::test_invalid_api",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_valid_return_object",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_valid_dm_flag",
"src/psyclone/tests/psyGen_test.py::test_psyfactory_cre... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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": [... |
4492dec726cdfd159f0850d68c98f82496b28d79 | 2021-06-19 17:28:48 | docker.io/swerebenchv2/pypa-build:318-4492dec | pypa__build-318 | Method: ProjectBuilder.prepare(self, name: str, outdir: str, config_settings: Mapping | None = None, **kwargs)
Location: src/build/__init__.py, class ProjectBuilder
Inputs:
- **name** – the distribution type to prepare (e.g., `"wheel"` or `"sdist"`).
- **outdir** – path where the prepared artifact will be written. ... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index dd43f31..9790e90 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,17 @@ Changelog
+++++++++
+
+Unreleased
+==========
+
+- Fix invoking the backend on an inexistent output directory with multiple levels (`PR #318`_, Fixes `#316`_)
+
+.. _PR #318: https://gi... | build: fix calls on inexistent outdir with multiple levels
Fixes #316
Signed-off-by: Filipe Laíns <lains@riseup.net> | 0.4.0: --outdir fails when parent directory does not exist
```console
+ cd rich-10.4.0
+ /usr/bin/python3 -m build --no-isolation --outdir build/lib
Traceback (most recent call last):
File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/u... | pypa/build | diff --git a/tests/test_projectbuilder.py b/tests/test_projectbuilder.py
index e910765..a825410 100644
--- a/tests/test_projectbuilder.py
+++ b/tests/test_projectbuilder.py
@@ -467,6 +467,28 @@ def test_prepare_not_dir_outdir(mocker, tmp_dir, test_flit_path):
builder.prepare('wheel', out)
+def test_no_outd... | [
"tests/test_projectbuilder.py::test_no_outdir_multiple"
] | [
"tests/test_projectbuilder.py::test_check_dependency[extras_dep-None]",
"tests/test_projectbuilder.py::test_check_dependency[missing_dep-expected1]",
"tests/test_projectbuilder.py::test_check_dependency[requireless_dep-None]",
"tests/test_projectbuilder.py::test_check_dependency[extras_dep[undefined_extra]-No... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [
... |
cb683fe79442269e45f20d22442de35b63daa9af | 2024-11-21 09:35:05 | docker.io/swerebenchv2/pennylaneai-pennylane:6622-cb683fe | pennylaneai__pennylane-6622 | Function: qnode_spectrum(qnode, encoding_args=None, argnum=None, decimals=8, validation=None)
Location: pennylane.fourier.qnode_spectrum
Inputs:
- **qnode** (qml.QNode): the quantum node whose Fourier spectrum is to be computed.
- **encoding_args** (optional, iterable of str or dict): identifiers for the encoding argum... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 7d9dfbc1e..6eabafdeb 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -60,6 +60,10 @@
<h3>Improvements 🛠</h3>
+* Raises a comprehensive error when using `qml.fourier.qnode_spectrum` with standard nump... | Fix `qnode_spectrum` with `interface="auto"`
**Context:**
An example from the docstring of `qnode_spectrum` is failing because the detection of trainable arguments fails when using Autograd via vanilla numpy inputs and `interface="auto"` (default).
Note that this problem is caused by a bug in `qml.math.is_independe... | [BUG] Documentation examples on `pennylane.fourier.qnode_spectrum` no longer work
### Expected behavior
I expect to be able to run all the examples in the `pennylane.fourier.qnode_spectrum` https://docs.pennylane.ai/en/stable/code/api/pennylane.fourier.qnode_spectrum.html examples.
### Actual behavior
Examples in th... | PennyLaneAI/pennylane | diff --git a/tests/fourier/test_qnode_spectrum.py b/tests/fourier/test_qnode_spectrum.py
index 4918efc11..8fe89517a 100644
--- a/tests/fourier/test_qnode_spectrum.py
+++ b/tests/fourier/test_qnode_spectrum.py
@@ -261,7 +261,7 @@ class TestCircuits:
qml.RY(0.4, wires=i)
return qml.expva... | [
"tests/fourier/test_qnode_spectrum.py::TestCircuits::test_numpy_parameters_auto_interface"
] | [
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circuit_0-enc_args0-None-enc_args_exp0-argnum_exp0]",
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circuit_0-None-0-enc_args_exp1-argnum_exp1]",
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.pennylane.ai/en/stable/code/api/pennylane... |
918367cc7bdc9e8e01477243ebc963709ac8178e | 2024-05-06 02:52:07 | docker.io/swerebenchv2/berriai-litellm:3470-918367c | berriai__litellm-3470 | Function: ollama_embeddings(api_base: str, model: str, prompts: list, optional_params=None, logging_obj=None, model_response=None, encoding=None)
Location: litellm.llms.ollama
Inputs:
- **api_base** (str): Base URL of the Ollama server (e.g., “http://localhost:11434”).
- **model** (str): Ollama model name *without* the... | python | custom-check-github | diff --git a/litellm/llms/ollama.py b/litellm/llms/ollama.py
index 5972d9e8c..f4c06dbe6 100644
--- a/litellm/llms/ollama.py
+++ b/litellm/llms/ollama.py
@@ -417,3 +417,23 @@ async def ollama_aembeddings(
"total_tokens": total_input_tokens,
}
return model_response
+
+def ollama_embeddings(
+ api_ba... | support sync ollama embeddings
## Support for ollama sync embeddings
Fixes #3387 and #2712
🐛 Bug Fix
## OS Tests (optional but appreciated):
- [ ] Tested on Windows
- [x] Tested on MacOS
- [ ] Tested on Linux
| [Bug]: Embedding Function on Ollama Seems not Working
### What happened?
Embedding functionality seems not working for Ollama. I have `nomic-embed-text` installed and tested using Ollama Python library..
`response = embedding(model='ollama/nomic-embed-text',
input=["good morning from litellm... | BerriAI/litellm | diff --git a/litellm/tests/test_ollama.py b/litellm/tests/test_ollama.py
index 82ec16f0e..77a6c91c3 100644
--- a/litellm/tests/test_ollama.py
+++ b/litellm/tests/test_ollama.py
@@ -1,3 +1,4 @@
+import asyncio
import sys, os
import traceback
from dotenv import load_dotenv
@@ -10,10 +11,10 @@ sys.path.insert(
) # Ad... | [
"litellm/tests/test_ollama.py::test_ollama_embeddings"
] | [
"litellm/tests/test_ollama.py::test_get_ollama_model",
"litellm/tests/test_ollama.py::test_get_ollama_params",
"litellm/tests/test_ollama.py::test_ollama_aembeddings",
"litellm/tests/test_ollama.py::test_ollama_json_mode"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
153eafaf52f3a2e878f185d817128f9d09fcc4c9 | 2025-07-11 02:06:01 | docker.io/swerebenchv2/vacanza-holidays:2714-153eafa | vacanza__holidays-2714 | Method: Montserrat.__init__(self, *args, **kwargs)
Location: holidays.countries.montserrat.Montserrat
Inputs: optional positional *args; optional keyword arguments (e.g., years, observed_rule, language, etc.) used to configure the holiday calendar.
Outputs: a Montserrat instance (subclass of ObservedHolidayBase) ready ... | python | MIT | diff --git a/README.md b/README.md
index e86cf1bd..f551d39b 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ and detailed information.
## Available Countries
-We currently support 212 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 213 country codes. The s... | Add Montserrat holidays
<!--
Thanks for contributing to holidays!
-->
## Proposed change
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Resolves #2665.
Add Montserrat holidays. Holidays start earlier than 2017 but the first official docu... | Add Montserrat holidays
URLs:
- https://en.wikipedia.org/wiki/Public_holidays_in_Montserrat | vacanza/holidays | diff --git a/tests/countries/test_montserrat.py b/tests/countries/test_montserrat.py
new file mode 100644
index 00000000..1c67b14f
--- /dev/null
+++ b/tests/countries/test_montserrat.py
@@ -0,0 +1,234 @@
+# holidays
+# --------
+# A fast, efficient Python library for generating country, province and state
+# specif... | [
"tests/countries/test_montserrat.py::TestMontserrat::test_boxing_day",
"tests/countries/test_montserrat.py::TestMontserrat::test_christmas_day",
"tests/countries/test_montserrat.py::TestMontserrat::test_code",
"tests/countries/test_montserrat.py::TestMontserrat::test_country_aliases",
"tests/countries/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.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://en.wikipedia.org/wiki/Public_holidays_in_Monts... |
b59448847b00ddfb193bf94160e926c70eea8f52 | 2015-03-18 20:14:21 | docker.io/swerebenchv2/mozilla-services-cliquet:101-b594488 | mozilla-services__cliquet-101 | Function: initialize_cliquet(config, version, name=None)
Location: cliquet/__init__.py
Inputs:
- **config**: a `Configurator` instance whose `registry.settings` dictionary holds configuration values.
- **version**: string representing the service version (e.g., `'0.0.1'`).
- **name** (optional): string for the project ... | python | custom-check-github | diff --git a/cliquet/__init__.py b/cliquet/__init__.py
index 740276bf..a4142a51 100644
--- a/cliquet/__init__.py
+++ b/cliquet/__init__.py
@@ -71,7 +71,8 @@ def load_default_settings(config):
"""
settings = config.get_settings()
for key, value in DEFAULT_SETTINGS.items():
- settings.setdefault(key... | Fix environment variable setting override (fixes #100)
(fixes #100) | Environment variables do not override INI values | mozilla-services/cliquet | diff --git a/cliquet/tests/test_initialization.py b/cliquet/tests/test_initialization.py
index e1d9bc61..f1663160 100644
--- a/cliquet/tests/test_initialization.py
+++ b/cliquet/tests/test_initialization.py
@@ -27,10 +27,10 @@ class InitializationTest(unittest.TestCase):
'0.0.1')
def te... | [
"cliquet/tests/test_initialization.py::InitializationTest::test_environment_values_override_configuration"
] | [
"cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_no_version_is_specified",
"cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_specified_version_is_not_string",
"cliquet/tests/test_initialization.py::InitializationTest::test_set_the_project_name_from_settings_even_if... | {
"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": "partial",
"pr_categories": [
... |
7ec2a712d9fa4eba760146e97e69cb8e4eaf7d4d | 2022-10-25 20:02:07 | docker.io/swerebenchv2/meltano-sdk:1109-7ec2a71 | meltano__sdk-1109 | Method: RESTStream.authenticator(self)
Location: singer_sdk/streams/rest.py – RESTStream class property returning the authenticator used for HTTP requests.
Inputs: *self* – the RESTStream instance.
Outputs: A callable compatible with ``requests.Session.auth`` (e.g., an instance of ``requests.auth.HTTPProxyAuth``) or ``... | python | Apache-2.0 | diff --git a/docs/_templates/class.rst b/docs/_templates/class.rst
index f1b00ed5..4ebc9be0 100644
--- a/docs/_templates/class.rst
+++ b/docs/_templates/class.rst
@@ -5,4 +5,4 @@
.. autoclass:: {{ name }}
:members:
- :special-members: __init__
+ :special-members: __init__, __call__
diff --git a/docs/class... | feat: Support `requests.auth` authenticators
Closes #1105
<!-- readthedocs-preview meltano-sdk start -->
----
:books: Documentation preview :books:: https://meltano-sdk--1109.org.readthedocs.build/en/1109/
<!-- readthedocs-preview meltano-sdk end --> | [Feature]: Allow built-in request authentication helpers to be used
### Feature scope
Taps (catalog, state, stream maps, etc.)
### Description
Some of these are nice, and would at least remove from duplication on our side:
- [requests.auth.HTTPBasicAuth(username, password)](https://requests.readthedocs.io/e... | meltano/sdk | diff --git a/tests/core/rest/conftest.py b/tests/core/rest/conftest.py
index 0ee924f3..8a09e302 100644
--- a/tests/core/rest/conftest.py
+++ b/tests/core/rest/conftest.py
@@ -2,6 +2,7 @@
import pytest
from memoization.memoization import cached
+from requests.auth import HTTPProxyAuth
from singer_sdk.authenticato... | [
"tests/core/rest/test_authenticators.py::test_requests_library_auth"
] | [
"tests/core/rest/test_authenticators.py::test_authenticator_is_reused[naive-auth-not-reused-between-requests]",
"tests/core/rest/test_authenticators.py::test_authenticator_is_reused[naive-auth-not-reused-between-streams]",
"tests/core/rest/test_authenticators.py::test_authenticator_is_reused[singleton-auth-reus... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://requests.readthedocs.io/en/latest/_modules/req... |
0a25de9556b6737cc778152d8613e0e23479ff46 | 2021-01-05 07:21:14 | docker.io/swerebenchv2/slackapi-python-slack-sdk:909-0a25de9 | slackapi__python-slack-sdk-909 | Method: WebClient.files_upload(self, *, file: Union[str, bytes, IOBase] = None, content: str = None, **kwargs)
Location: slack_sdk/web/client.py
Inputs:
- file – path string, raw bytes, or file‑like object (IOBase); optional, defaults to None.
- content – optional string to send as file contents when no file pa... | python | MIT | diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py
index 4295e22..ecc7834 100644
--- a/slack_sdk/web/async_client.py
+++ b/slack_sdk/web/async_client.py
@@ -1549,7 +1549,7 @@ class AsyncWebClient(AsyncBaseClient):
return await self.api_call("files.sharedPublicURL", json=kwargs)
a... | Fix #901 by correcting type hints for files_upload method args
## Summary
This pull request fixes #901 by correcting the `file` arg's type hint.
### Category (place an `x` in each of the `[ ]`)
- [x] **slack_sdk.web.WebClient** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient** (Incoming Webhook, resp... | Incorrect type hint for WebClient#files_upload file argument
After #771 was merged, the `files_upload` function signature still does not accept a `bytes` type object: https://github.com/slackapi/python-slack-sdk/blob/main/slack_sdk/web/client.py#L1458-L1460
```
def files_upload(
self, *, file: Union[st... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/web/test_web_client_issue_900.py b/tests/slack_sdk/web/test_web_client_issue_900.py
new file mode 100644
index 0000000..32ce13f
--- /dev/null
+++ b/tests/slack_sdk/web/test_web_client_issue_900.py
@@ -0,0 +1,22 @@
+import unittest
+from os.path import dirname
+
+from slack_sdk.web import We... | [
"tests/slack_sdk/web/test_web_client_issue_900.py::TestWebClient_Issue_900::test_if_it_works_with_default_params"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/slackapi/python-slack-sdk/blob/main/s... |
0984fac39d41ebbaa5bf75f0643256e8920510a2 | 2023-09-26 20:50:01 | docker.io/swerebenchv2/stac-utils-pystac:1231-0984fac | stac-utils__pystac-1231 | Method: ClassificationExtension.get_schema_uris()
Location: pystac/extensions/classification.py → class ClassificationExtension
Inputs: None (class method)
Outputs: List[str] – a list of schema URIs for all supported classification extension versions. Emits a DeprecationWarning on each call.
Description: Return... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e80072a3..e75a55ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+### Added
+
+- More permissive schema_uri matching to allow future versions of extension schemas ([#1231](https://github.com/stac-utils/pystac/pull/1231))
+
## [v1.8.4] ... | Allow future extensions to be used
**Related Issue(s):**
- Closes #1226
**Description:**
When loading extension data, extension implementations should use `startswith` (or whatever) to detect the presence of the extension, not an exact string match.
**PR Checklist:**
- [x] `pre-commit` hooks pass locally... | Rework extensions to handle "future" versions correctly
When loading extension data, extension implementations should use `startswith` (or whatever) to detect the presence of the extension, not an exact string match. | stac-utils/pystac | diff --git a/tests/extensions/test_classification.py b/tests/extensions/test_classification.py
index 33a39ae4..37cfd7bc 100644
--- a/tests/extensions/test_classification.py
+++ b/tests/extensions/test_classification.py
@@ -94,12 +94,13 @@ def test_bitfield_object() -> None:
def test_get_schema_uri(landsat_item: It... | [
"tests/extensions/test_projection.py::test_newer_extension_version"
] | [
"tests/extensions/test_classification.py::test_stac_extensions",
"tests/extensions/test_classification.py::test_classification_object",
"tests/extensions/test_classification.py::test_bitfield_object",
"tests/extensions/test_classification.py::test_ext_raises_if_item_does_not_conform",
"tests/extensions/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": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://stac-extensions.github.io/projection/v1.0.0/sc... |
98d7f1d9ed731c2027e3f51a79ef8ca3dfbff0a1 | 2024-03-13 03:28:23 | docker.io/swerebenchv2/tatuylonen-wiktextract:541-98d7f1d | tatuylonen__wiktextract-541 | Function: process_categories(wxr: WiktextractContext, page_data: list[dict[str, Any]]) -> None
Location: wiktextract/page.py
Inputs:
- wxr – a WiktextractContext containing the Wtp parser and configuration for the current language.
- page_data – a mutable list of dictionaries describing page entries; each dict should ... | python | custom-check-github | diff --git a/src/wiktextract/page.py b/src/wiktextract/page.py
index d55faf9b..4f435cd3 100644
--- a/src/wiktextract/page.py
+++ b/src/wiktextract/page.py
@@ -7,19 +7,19 @@ from collections import defaultdict
from copy import copy
from typing import Any, Callable, Optional, Union
-from mediawiki_langcodes import ge... | Remove category languages regex pattern
This huge regex pattern can't handle languages that have the same prefix("E" and "English"), split the category link by space and slash should serve the original code's purpose.
Fix #537 | Category "English phrasal verb" missing in "turn up"
The word "turn up" had, in an earlier version of the kaikki.org JSON outputs, the category "English phrasal verbs" in one of its senses.
Today, this category is missing from there, even though the Wiktionary entry still has the category:
https://kaikki.org/dict... | tatuylonen/wiktextract | diff --git a/tests/test_en_category.py b/tests/test_en_category.py
new file mode 100644
index 00000000..d3afa2ef
--- /dev/null
+++ b/tests/test_en_category.py
@@ -0,0 +1,33 @@
+from unittest import TestCase
+
+from wikitextprocessor import Wtp
+from wiktextract.config import WiktionaryConfig
+from wiktextract.wxr_conte... | [
"tests/test_en_category.py::TestEnCategory::test_filter_language_categories"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://kaikki.org/dictionary/English/meaning/t/tu/tur... |
ca5d514c61d74b7278ad9c3a035d179f54ed0b92 | 2024-03-17 19:33:05 | docker.io/swerebenchv2/getmoto-moto:7484-ca5d514 | getmoto__moto-7484 | Function: dynamodb_aws_verified(create_table: bool = True, add_range: bool = False)
Location: tests/test_dynamodb/__init__.py (function definition)
Inputs:
- **create_table** (bool, default True): when True the decorator creates a DynamoDB table before executing the wrapped test.
- **add_range** (bool, default False): ... | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index aa7596694..145c892fa 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -744,9 +744,10 @@ class Table(CloudFormationModel):
# Cycle through the previous page of results
# When we enc... | DynamoDB: query(): LastEvaluatedKey does not have to exist
Fixes #7461 | LastEvaluatedKey not handled when not present in dynamodb table
## The problem
For dynamodb when `client.query` is given a `LastEvaluatedKey` that is not actually in the mocked table it will act as if there are no records after the given `LastEvaluatedKey` even if there are. If the key is present `moto` behaves as e... | getmoto/moto | diff --git a/tests/test_dynamodb/__init__.py b/tests/test_dynamodb/__init__.py
index fb3729acd..3c8492eba 100644
--- a/tests/test_dynamodb/__init__.py
+++ b/tests/test_dynamodb/__init__.py
@@ -7,7 +7,7 @@ import boto3
from moto import mock_aws
-def dynamodb_aws_verified(create_table: bool = True):
+def dynamodb_aw... | [
"tests/test_dynamodb/test_dynamodb.py::test_query_with_unknown_last_evaluated_key",
"tests/test_dynamodb/test_dynamodb.py::test_scan_with_unknown_last_evaluated_key"
] | [
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[no-table]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[one-table]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[multiple-tables]",
"tests/test_dynamodb/test_dynamodb.py::test_list_tables_paginated",
"tests/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
22ee0e7e755b2ab2a8e40f4a9983b467b88c941d | 2016-02-03 07:49:45 | docker.io/swerebenchv2/timothycrosley-isort:390-22ee0e7 | timothycrosley__isort-390 | No new interfaces are introduced. | python | MIT | diff --git a/isort/isort.py b/isort/isort.py
index cc956eb1..90dcd72f 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -605,7 +605,7 @@ class SortImports(object):
return self._output_vertical_grid_common(statement, imports, white_space, indent, line_length, comments) + "\n)"
def _output_noqa(self, st... | Fix invalid syntax for noqa output
Will fix #389 | "multi_line_output = 6" generates invalid syntax
With "multi_line_output = 6" isort generates something like:
from a import x y z
which is not a valid import and will raise a SyntaxError. The commas are missing. With that it should be:
from a import x, y, z
After reading the docs:
https://docs.pyt... | timothycrosley/isort | diff --git a/test_isort.py b/test_isort.py
index 06c06ca3..878680ad 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -347,7 +347,7 @@ def test_output_modes():
output_noqa = SortImports(file_contents=REALLY_LONG_IMPORT_WITH_COMMENT,
multi_line_output=WrapModes.NOQA).output
- ass... | [
"test_isort.py::test_output_modes"
] | [
"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_qa_comment_case",
"test_isort.py::test_length_sort",
"test_isort.py::test_convert_... | {
"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://docs.python.org/2/reference/simple_stmts.html#im... |
ffb4fca2b81a5905bf8dae674b33a8371da1c5f5 | 2022-08-18 06:41:29 | docker.io/swerebenchv2/wntrblm-nox:647-ffb4fca | wntrblm__nox-647 | Function: which(program: str, paths: list[str] | None) -> str
Location: nox.command.which
Inputs:
- **program** – name of the executable to locate (e.g., ``"git"``).
- **paths** – optional list of directory strings that should be searched before the system ``PATH``; if ``None`` the normal ``PATH`` is used.
Outputs:
- R... | python | Apache-2.0 | diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index 918f829..9189189 100644
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -329,7 +329,7 @@ You can also pass the notified session positional arguments:
def consume_thing(session):
# The 'consume' command has the arguments
# sent to it from... | refactor: Drop `py` as a dependency
closes #583
I picked up @henryiii's excellent work on #592, resolved the conflicts and the issue he described with `shutil.which` expecting a `.exe`.
This should hopefully be everything needed to drop `py.path`, @henryiii I'd be grateful if you could check this out to see if I... | Remove usage of py.path?
Currently, there is a dependency on `py.path`, which pytest is trying to remove, and it seems like nox should remove it too, now that Python 3 is required (since quite a while, actually). py.path is not recommended for use: https://py.readthedocs.io/en/latest/path.html. This would reduce a depe... | wntrblm/nox | diff --git a/tests/test_command.py b/tests/test_command.py
index a05ab82..f649459 100644
--- a/tests/test_command.py
+++ b/tests/test_command.py
@@ -18,10 +18,12 @@ import ctypes
import logging
import os
import platform
+import shutil
import signal
import subprocess
import sys
import time
+from pathlib import Pa... | [
"tests/test_command.py::test_run_non_str",
"tests/test_virtualenv.py::test__resolved_interpreter_numerical_non_windows[3-python3]",
"tests/test_virtualenv.py::test__resolved_interpreter_numerical_non_windows[3.6-python3.6]",
"tests/test_virtualenv.py::test__resolved_interpreter_numerical_non_windows[3.6.2-pyt... | [
"tests/test_command.py::test_run_defaults",
"tests/test_command.py::test_run_silent",
"tests/test_command.py::test_run_not_in_path",
"tests/test_command.py::test_run_verbosity",
"tests/test_command.py::test_run_verbosity_failed_command",
"tests/test_command.py::test_run_env_unicode",
"tests/test_command... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://py.readthedocs.io/en/latest/path.html",
... |
4a2ca52b52a52a6f8fb9d915ad4c347c02b9fbde | 2025-02-04 14:27:39 | docker.io/swerebenchv2/narwhals-dev-narwhals:1934-4a2ca52 | narwhals-dev__narwhals-1934 | Function: all_horizontal(*exprs: IntoExpr | Iterable[IntoExpr])
Location: narwhals.stable.v1 (exposed via the Narwhals namespace as `nw.all_horizontal`)
Inputs: one or more horizontal expressions. Each argument may be a single expression/column, a list/tuple of expressions, **or** any iterator/generator yielding expres... | python | MIT | diff --git a/narwhals/utils.py b/narwhals/utils.py
index 7f122979..72618068 100644
--- a/narwhals/utils.py
+++ b/narwhals/utils.py
@@ -387,11 +387,7 @@ def remove_suffix(text: str, suffix: str) -> str: # pragma: no cover
def flatten(args: Any) -> list[Any]:
- if not args:
- return []
- if len(args) =... | fix: Always collect `Iterator[IntoExpr]` in `utils.flatten`
Fixes #1897
## What type of PR is this? (check all applicable)
- [ ] 💾 Refactor
- [ ] ✨ Feature
- [x] 🐛 Bug Fix
- [ ] 🔧 Optimization
- [ ] 📝 Documentation
- [ ] ✅ Test
- [ ] 🐳 Other
## Related issues
- Closes #1897
## Checklist
- [x] Code follows sty... | [Bug]: Missing handling for `Iterator[IntoExpr]`
### Describe the bug
Discovered this in (https://github.com/vega/altair/pull/3631#discussion_r1934313255) and managed to narrow it down to a more minimal repro.
I think this may be an issue for any function that accepts `Iterable[IntoExpr]` but assumes `Sequence[IntoEx... | narwhals-dev/narwhals | diff --git a/tests/expr_and_series/all_horizontal_test.py b/tests/expr_and_series/all_horizontal_test.py
index 706c42ba..086b35e3 100644
--- a/tests/expr_and_series/all_horizontal_test.py
+++ b/tests/expr_and_series/all_horizontal_test.py
@@ -1,104 +1,125 @@
-from __future__ import annotations
-
-from typing import Any... | [
"tests/expr_and_series/all_horizontal_test.py::test_allh_iterator[pandas]",
"tests/expr_and_series/all_horizontal_test.py::test_allh_iterator[pandas[nullable]]",
"tests/expr_and_series/all_horizontal_test.py::test_allh_iterator[pandas[pyarrow]]",
"tests/expr_and_series/all_horizontal_test.py::test_allh_iterat... | [
"tests/expr_and_series/all_horizontal_test.py::test_allh[pyarrow-b-expr11]",
"tests/expr_and_series/all_horizontal_test.py::test_allh_all[pandas]",
"tests/expr_and_series/all_horizontal_test.py::test_allh[polars[eager]-expr21-expr11]",
"tests/expr_and_series/all_horizontal_test.py::test_allh[polars[lazy]-b-a]... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/vega/altair/pull/3631#discussion_r193... |
dce176da7cdd42d0c7a169bce2676508c2d6bc6b | 2024-10-05 00:04:34 | docker.io/swerebenchv2/dynaconf-dynaconf:1185-dce176d | dynaconf__dynaconf-1185 | No new interfaces are introduced. | python | MIT | diff --git a/dynaconf/utils/inspect.py b/dynaconf/utils/inspect.py
index eee06f0..fdf77f7 100644
--- a/dynaconf/utils/inspect.py
+++ b/dynaconf/utils/inspect.py
@@ -17,6 +17,7 @@ from typing import Union
from dynaconf.loaders.base import SourceMetadata
from dynaconf.utils.boxing import DynaBox
from dynaconf.utils.fu... | [backport] fix(inspect): Fixed an error that would raise when using get_history with lazy values
This fixes the error by avoiding the attempt to evaluate altogheter.
get_history() should provide the original representation, so the user can reliably inspect its data. The evaluted value might be hard to track and pote... | [bug] Regression: get_history() of dynamic value throwing DynaconfFormatError
**Describe the bug**
In release 3.2.6 calling `get_history()` on a `LazySettings` object with a dotted key having a dynamic `@format` value incorrectly throws a `dynaconf.utils.parse_conf.DynaconfFormatError`. This is a regression from relea... | dynaconf/dynaconf | diff --git a/tests/test_inspect.py b/tests/test_inspect.py
index 1119edf..2e275c3 100644
--- a/tests/test_inspect.py
+++ b/tests/test_inspect.py
@@ -559,6 +559,37 @@ def test_get_history_env_and_key_filter(tmp_path):
assert history[1]["value"] == "from_prod_b"
+def tests_get_history_with_variable_interpolation... | [
"tests/test_inspect.py::tests_get_history_with_variable_interpolation"
] | [
"tests/test_inspect.py::test_ensure_serializable",
"tests/test_inspect.py::test_get_data_by_key",
"tests/test_inspect.py::test_get_history_general",
"tests/test_inspect.py::test_get_history_env_false__file_plus_envvar",
"tests/test_inspect.py::test_get_history_env_false__val_default_plus_envvar",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/dynaconf/dynaconf/issues/1180",
... |
8bc5882a47ad9a9600c5806ea56987c2892167cb | 2025-05-14 12:46:53 | docker.io/swerebenchv2/scikit-activeml-scikit-activeml:504-8bc5882 | scikit-activeml__scikit-activeml-504 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/.github/workflows/external-pull-request.yml b/.github/workflows/external-pull-request.yml
index 684b1d22..b7be1667 100644
--- a/.github/workflows/external-pull-request.yml
+++ b/.github/workflows/external-pull-request.yml
@@ -86,7 +86,7 @@ jobs:
- name: Black
uses: psf/black@stable
with:... | 503 reproducibility
Closes #503
**Additional context**
> Set `random_state` in `cluster_algo_dict`, if required.
> Extend reproducibility checks.
> Add `black` formatting to `pyproject.toml`. | BUG: Propagate `random_state` to `cluster_algo` in `TypiClust` and `ProbCover`
### Describe the issue:
Currently, the `random_state` set as `__init__` parameter of the query strategies `TypiClust` and `ProbCover` is not explicitly propagated to the `cluster_algo` but the user must set its `random_state` via `cluster_a... | scikit-activeml/scikit-activeml | diff --git a/skactiveml/pool/tests/test_prob_cover.py b/skactiveml/pool/tests/test_prob_cover.py
index 5372e125..30ef78b3 100644
--- a/skactiveml/pool/tests/test_prob_cover.py
+++ b/skactiveml/pool/tests/test_prob_cover.py
@@ -17,13 +17,18 @@ class TestProbCover(
):
def setUp(self):
query_default_params_... | [
"skactiveml/pool/tests/test_typi_clust.py::TestTypiClust::test_query_candidate_variation",
"skactiveml/pool/tests/test_typi_clust.py::TestTypiClust::test_query_reproducibility"
] | [
"skactiveml/pool/tests/test_prob_cover.py::TestProbCover::test_init_param_alpha",
"skactiveml/pool/tests/test_prob_cover.py::TestProbCover::test_init_param_cluster_algo",
"skactiveml/pool/tests/test_prob_cover.py::TestProbCover::test_init_param_cluster_algo_dict",
"skactiveml/pool/tests/test_prob_cover.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": [... |
546683ad59a0368908a4325537d468f22f084acd | 2021-09-19 01:33:16 | docker.io/swerebenchv2/cuthbertlab-music21:1138-546683a | cuthbertlab__music21-1138 | Method: TimeSignature.beatDivisionDurations(self)
Location: music21.meter.base.TimeSignature (property)
Inputs: **self** – an instance of `music21.meter.TimeSignature`. The time signature must have a partitioned beat; otherwise a `TimeSignatureException` is raised.
Outputs: **list[float]** – durations (as fractio... | python | BSD-3-Clause | diff --git a/music21/meter/base.py b/music21/meter/base.py
index b9592f17c..ec239a2e4 100644
--- a/music21/meter/base.py
+++ b/music21/meter/base.py
@@ -1178,7 +1178,10 @@ class TimeSignature(base.Music21Object):
# create a scratch MeterSequence for structure
tsStr = f'{self.numerator}/{self.denominat... | Fix accentSequence for 3/8
Fixes #925
After 9b86712d0ec509de9a774b9d4138e9c3d2d6f226 we started passing `1` instead of `3` as `firstPartitionForm`. We were getting lucky with `1` being the numerator of `1/4`, etc., so numerators of `3` made the only difference in behavior.
Better to pass `None` and assume less.
... | Fast 3/8 accent sequence no longer partitioned
**music21 version**
`7.0.2`
**Problem summary**
"FAST" 3/8 (new in v7) no longer gets a partitioned accent sequence (new) <s>or beat sequence (status quo for other 1-beat meters like 1/4, but doesn't seem ideal.)</s> Lack of a partitioned accent sequence could be ... | cuthbertLab/music21 | diff --git a/music21/meter/tests.py b/music21/meter/tests.py
index 493f6c3f4..5ee71b264 100644
--- a/music21/meter/tests.py
+++ b/music21/meter/tests.py
@@ -388,6 +388,9 @@ class Test(unittest.TestCase):
0.5, 0.125, 0.25, 0.125, 0.25, 0.125,
0.5, 0.125, 0.25, 0.125, 0.25, 0... | [
"music21/meter/tests.py::Test::testSetDefaultAccentWeights"
] | [
"music21/meter/tests.py::Test::testBeatProportionFromTimeSignature",
"music21/meter/tests.py::Test::testBestTimeSignature",
"music21/meter/tests.py::Test::testBestTimeSignatureB",
"music21/meter/tests.py::Test::testBestTimeSignatureDoubleDotted",
"music21/meter/tests.py::Test::testBestTimeSignatureDoubleDot... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
faa15fd7d1bea808a64f979c1a7ace8340d68d61 | 2024-08-22 23:37:09 | docker.io/swerebenchv2/aio-libs-aiohttp:8845-faa15fd | aio-libs__aiohttp-8845 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 907a6f78b..f10136eec 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -252,7 +252,6 @@ jobs:
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
- fail_ci_if_error: true
... | Return 500 error when handler has wrong return type
Fixes #4572.
Not entirely sure if this is the best solution. Will sort the test tomorrow. | Server closes connection if wrong type returned by handler
🐞 **Describe the bug**
<!-- A clear and concise description of what the bug is, on the next line. -->
Server closes session if handler returns anything else that `Response` instance.
💡 **To Reproduce**
<!-- How to reproduce the behavior?
For example:... | aio-libs/aiohttp | diff --git a/requirements/test.txt b/requirements/test.txt
index 2ae0d22fb..a6d8ebab7 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -16,7 +16,7 @@ async-timeout==4.0.3 ; python_version < "3.11"
# via -r requirements/runtime-deps.in
brotli==1.1.0 ; platform_python_implementation == "CPython"
... | [
"tests/test_client_functional.py::test_raw_headers[pyloop]",
"tests/test_client_functional.py::test_empty_header_values[pyloop]",
"tests/test_web_functional.py::test_handler_returns_not_response[pyloop]",
"tests/test_web_functional.py::test_handler_returns_none[pyloop]",
"tests/test_web_functional.py::test_... | [
"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": "B5",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0e2e694277abbc23062a1953bfee5f155ba05577 | 2023-01-18 14:05:42 | docker.io/swerebenchv2/openmdao-openmdao:2780-0e2e694 | openmdao__openmdao-2780 | Function: get_class_attributes(fname: str, class_dict: dict | None = None) -> dict
Location: openmdao.utils.code_utils
Inputs:
- **fname** (str): Path to a Python source file whose class definitions will be inspected.
- **class_dict** (dict or None, optional): Existing mapping of class names to attribute name sets; if... | python | custom-check-github | diff --git a/openmdao/components/exec_comp.py b/openmdao/components/exec_comp.py
index 088ab857a..bb56a4697 100644
--- a/openmdao/components/exec_comp.py
+++ b/openmdao/components/exec_comp.py
@@ -98,12 +98,6 @@ class ExecComp(ExplicitComponent):
List of code objects.
_exprs_info : list
List of t... | Updated the attribute doc test to error out if an attribute is documented but doesn't exist.
### Summary
Added a function that finds all self.* assignments in the class and uses that set of attributes to determine if a documented attribute exists. Using that information, instead of just the self.* assignments in th... | Our class attribute doc linter doesn't flag documentation of nonexistent attributes as a error.
### Task Description
It currently prints a message about documentation of non-existent attributes but doesn't raise an exception, so we don't see the problem when running testflo. The linter could probably be partially re-... | OpenMDAO/OpenMDAO | diff --git a/openmdao/code_review/test_lint_attributes.py b/openmdao/code_review/test_lint_attributes.py
index e2762c84c..02a80a429 100644
--- a/openmdao/code_review/test_lint_attributes.py
+++ b/openmdao/code_review/test_lint_attributes.py
@@ -4,6 +4,9 @@ import importlib
import inspect
import re
+from openmdao.ut... | [
"openmdao/code_review/test_lint_attributes.py::LintAttributesTestCase::test_attributes"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
3b4704221e80b64b9400453e46d6b16ef0264684 | 2024-09-07 16:02:10 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3671-3b47042 | aws-cloudformation__cfn-lint-3671 | Method: ServiceHealthCheckGracePeriodSeconds.validate(self, validator, keywords, instance, schema)
Location: src/cfnlint/rules/resources/ecs/ServiceHealthCheckGracePeriodSeconds.py
Inputs:
- **validator** – a `Validator` protocol instance used to evaluate JSON‑schema keywords.
- **keywords** – `Any`; the keywor... | python | MIT-0 | diff --git a/src/cfnlint/data/schemas/extensions/aws_ecs_service/healthcheckgraceperiodseconds.json b/src/cfnlint/data/schemas/extensions/aws_ecs_service/healthcheckgraceperiodseconds.json
new file mode 100644
index 000000000..666f84b3e
--- /dev/null
+++ b/src/cfnlint/data/schemas/extensions/aws_ecs_service/healthcheck... | Create rule E3056 to validate HealthCheck
*Issue #, if available:*
fix #3612
*Description of changes:*
- Create rule E3056 to validate HealthCheck
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| Feature Request: AWS::ECS::Service - Add check for `HealthCheckGracePeriodSeconds needs ALB/NLB`
### Is this feature request related to a new rule or cfn-lint capabilities?
_No response_
### Describe the feature you'd like to request
Currently cfn-lint is unable to see that if you add
```
HealthCheckGraceP... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/resources/ecs/test_service_health_check_grace_period_seconds.py b/test/unit/rules/resources/ecs/test_service_health_check_grace_period_seconds.py
new file mode 100644
index 000000000..dcabd4218
--- /dev/null
+++ b/test/unit/rules/resources/ecs/test_service_health_check_grace_period_seconds.... | [
"test/unit/rules/resources/ecs/test_service_health_check_grace_period_seconds.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/ecs/test_service_health_check_grace_period_seconds.py::test_validate[instance1-expected1]",
"test/unit/rules/resources/ecs/test_service_health_check_grace_period_seco... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
996e1f587b3928c53368f26b0d62b45c7e5e4ac3 | 2025-04-22 15:48:21 | docker.io/swerebenchv2/sdv-dev-rdt:985-996e1f5 | sdv-dev__rdt-985 | Function: _validate_unique_transformer_instances(column_name_to_transformer)
Location: rdt/_utils.py
Inputs: column_name_to_transformer – dict mapping column identifiers (str or tuple of str) to transformer instances (BaseTransformer or BaseMultiColumnTransformer); transformer may be None.
Outputs: Raises InvalidConfig... | python | custom-check-github | diff --git a/rdt/_utils.py b/rdt/_utils.py
new file mode 100644
index 0000000..370d0c8
--- /dev/null
+++ b/rdt/_utils.py
@@ -0,0 +1,47 @@
+from collections import defaultdict
+
+from rdt.errors import InvalidConfigError
+
+
+def _validate_unique_transformer_instances(column_name_to_transformer):
+ """Validate that t... | HyperTransformer should ensure that transformer instances are not reused
Resolve #965 | HyperTransformer should ensure that each column is assigned to a different transformer instance
### Problem Description
The HyperTransformer is designed to work by assigning a different transformer _instance_ to each of the columns. Each transformer instance is responsible for (a) learning/saving information about the ... | sdv-dev/RDT | diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py
index 2eb4381..ff6b82a 100644
--- a/tests/integration/test_hyper_transformer.py
+++ b/tests/integration/test_hyper_transformer.py
@@ -958,6 +958,39 @@ class TestHyperTransformer:
# Run and Assert
ht.... | [
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_default_inputs",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_field_transformers",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_single_category",
"tests/integration/test_hyper_trans... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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.sdv.dev/rdt/usage/hypertransformer/config... |
31bc2435d7968fdf8d1f0c5c67f0f851c1bef54e | 2020-11-18 21:10:52 | docker.io/swerebenchv2/samuelcolvin-pydantic:2133-31bc243 | samuelcolvin__pydantic-2133 | Function: pydantic_encoder(obj: Any) → Any
Location: pydantic/json.py
Inputs: any Python object; if the object is an instance of ``re.Pattern`` it is accepted.
Outputs: returns a JSON‑serialisable representation; for ``Pattern`` objects returns the pattern string (``obj.pattern``). Used implicitly by ``json.dumps`` in ... | python | MIT | diff --git a/changes/1975-mdavis-xyz.md b/changes/1975-mdavis-xyz.md
new file mode 100644
index 000000000..82cf2eb29
--- /dev/null
+++ b/changes/1975-mdavis-xyz.md
@@ -0,0 +1,1 @@
+Add `NonNegativeInt`, `NonPositiveInt`, `NonNegativeFloat`, `NonPositiveFloat`
diff --git a/changes/2045-PrettyWood.md b/changes/2045-Prett... | fix: support plain `typing.Tuple` type
<!-- Thank you for your contribution! -->
<!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR -->
<!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing -->
## Change Summary
We currently support ... | Tuple field triggers error checking inheritance
### 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
O... | samuelcolvin/pydantic | diff --git a/tests/mypy/modules/plugin_success.py b/tests/mypy/modules/plugin_success.py
index af4b8e376..c173bc9e0 100644
--- a/tests/mypy/modules/plugin_success.py
+++ b/tests/mypy/modules/plugin_success.py
@@ -1,6 +1,6 @@
from typing import ClassVar, Optional, Union
-from pydantic import BaseModel, Field
+from py... | [
"tests/test_dataclasses.py::test_simple",
"tests/test_dataclasses.py::test_model_name",
"tests/test_dataclasses.py::test_value_error",
"tests/test_dataclasses.py::test_frozen",
"tests/test_dataclasses.py::test_validate_assignment",
"tests/test_dataclasses.py::test_validate_assignment_error",
"tests/test... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pydantic-docs.helpmanual.io/"
],
"inte... |
9dd4a5766eb9bde5dc20d9a727724f9e30df863b | 2021-07-22 16:58:06 | docker.io/swerebenchv2/hikari-py-hikari:703-9dd4a57 | hikari-py__hikari-703 | Method: GatewayBot._close(self)
Location: hikari.impl.bot.GatewayBot (private shutdown routine)
Inputs: None – called without arguments.
Outputs: ``None`` (awaitable); performs the internal shutdown sequence previously performed by the public ``close`` method.
Description: Executes the actual shutdown steps for... | python | MIT | diff --git a/dev-requirements.txt b/dev-requirements.txt
index 7ffc5ec7..34832733 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -9,7 +9,7 @@ mock==4.0.3
pytest==6.2.4
pytest-asyncio==0.15.1
pytest-cov==2.12.1
-pytest-randomly==3.10.0
+pytest-randomly==3.10.1
# Coverage testing.
coverage==6.0b1
... | Fix some bugs in voice impl
- Allow disconnecting from voice channel
- ~~Allow moving voice channel in the same server~~
### Checklist
<!-- Make sure to tick all the following boxes by putting an `x` in between (like this `[x]`) -->
- [x] I have run `nox` and all the pipelines have passed.
- [x] I have made unitt... | Seperate voice disconnect
Something that just popped my mind, we dont actually have a disconnect a specific channels, we only have a full disconnect from all channels. Should we change disconnect to allow passing a channel to disconnect from and moving the closing all connections to `close`?
(This would be done in a... | hikari-py/hikari | diff --git a/tests/hikari/impl/test_bot.py b/tests/hikari/impl/test_bot.py
index a0609fd9..9958cee1 100644
--- a/tests/hikari/impl/test_bot.py
+++ b/tests/hikari/impl/test_bot.py
@@ -278,28 +278,37 @@ def test_check_if_alive(self, bot):
bot._check_if_alive()
@pytest.mark.asyncio()
- async def test_cl... | [
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test_connect_to_when_connection_already_present",
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test_disconnect_when_guild_id_not_in_connections",
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test_disconnect_all",
"tests/hikari... | [
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test_is_alive_property",
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test__on_connection_close_ignores_unknown_voice_state",
"tests/hikari/impl/test_voice.py::TestVoiceComponentImpl::test__on_voice_event",
"tests/hikari/impl/test_voice.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/hikari-py/hikari/pull/629#discussio... |
acb4ff3744ec36c11f34490909394d80c24c176c | 2021-07-16 12:15:51 | docker.io/swerebenchv2/samuelcolvin-pydantic:2989-acb4ff3 | samuelcolvin__pydantic-2989 | Function: PrivateAttr(default)
Location: pydantic.main (module level factory)
Inputs:
- **default** – Any – the value that will be used as the default for the private attribute. The value is deep‑copied when accessed on an instance.
Outputs:
- **ModelPrivateAttr** – an object stored in a model class’s ``__private_attri... | python | MIT | diff --git a/changes/2989-hmvp.md b/changes/2989-hmvp.md
new file mode 100644
index 000000000..7130d007b
--- /dev/null
+++ b/changes/2989-hmvp.md
@@ -0,0 +1,1 @@
+Make multiple inheritance work when using `PrivateAttr`
diff --git a/pydantic/main.py b/pydantic/main.py
index 7e1e3cbd4..a69023431 100644
--- a/pydantic/mai... | Fix error when using slots with multiple inheritance
<!-- Thank you for your contribution! -->
<!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR -->
<!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing -->
## Change Summary
Using... | Using PrivateAttr with multiple inheritance does not work because of the use of __slots__
### 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/) a... | samuelcolvin/pydantic | diff --git a/tests/test_private_attributes.py b/tests/test_private_attributes.py
index d87e572ab..0d3a0978e 100644
--- a/tests/test_private_attributes.py
+++ b/tests/test_private_attributes.py
@@ -200,3 +200,58 @@ def test_generic_private_attribute():
m = Model[int](value=1, _private_attr=3)
m._private_value ... | [
"tests/test_private_attributes.py::test_private_attribute_multiple_inheritance"
] | [
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pydantic-docs.helpmanual.io/"
],
"inte... |
cc6d134ec7e361eec54768fc9d6f37243920409e | 2024-06-24 14:26:11 | docker.io/swerebenchv2/sdv-dev-rdt:846-cc6d134 | sdv-dev__rdt-846 | Method: UnixTimestampEncoder._set_fitted_parameters(self, column_name, null_transformer, min_max_values=None, dtype='object') Location: rdt.transformers.datetime.UnixTimestampEncoder
Inputs:
- column_name (str): name of the column the transformer will handle.
- null_transformer (NullTransformer): a fitted NullTransf... | python | custom-check-github | diff --git a/pyproject.toml b/pyproject.toml
index 3e502dc..2c6f32f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -21,9 +21,9 @@ license = { text = 'BSL-1.1' }
requires-python = '>=3.8,<3.13'
readme = 'README.md'
dependencies = [
- "numpy>=1.21.0,<2.0.0;python_version<'3.10'",
- "numpy>=1.23.3,<2.0.0;pyt... | Add support for numpy 2.0.0
CU-86b0zmmj5
Resolve #843 | Add support for numpy 2.0.0
### Problem Description
- Currently, we restrict numpy < 2 for all python versions.
- We would like to support the newest major release of numpy.
### Expected behavior
- RDT supports numpy 2.0
### Additional context
- Remove upper bound restriction in pyproject.toml
- Update any ... | sdv-dev/RDT | diff --git a/tests/datasets/tests/test_categorical.py b/tests/datasets/tests/test_categorical.py
index 35e81b7..ded1b3c 100644
--- a/tests/datasets/tests/test_categorical.py
+++ b/tests/datasets/tests/test_categorical.py
@@ -1,5 +1,6 @@
import numpy as np
import pandas as pd
+from pandas.api.types import is_integer_d... | [
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test__reverse_transform_from_manually_set_parameters",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test__reverse_transform_from_manually_set_parameters_all_parameters",
"tests/integration/transformers/tes... | [
"tests/datasets/tests/test_categorical.py::TestRandomIntegerGenerator::test",
"tests/datasets/tests/test_categorical.py::TestRandomIntegerNaNsGenerator::test",
"tests/datasets/tests/test_categorical.py::TestRandomStringGenerator::test",
"tests/datasets/tests/test_categorical.py::TestRandomStringNaNsGenerator:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
6beda0cedcbe34981352de4aa7b4208458855cdc | 2023-06-27 06:22:53 | docker.io/swerebenchv2/postlund-pyatv:2077-6beda0c | postlund__pyatv-2077 | Method: get_protocol_version(service)
Location: pyatv.protocols.airplay.utils.get_protocol_version
Inputs:
- **service** (BaseService): an object providing a ``properties`` mapping (e.g., dict) that may contain the keys ``"ft"`` or ``"features"`` with hexadecimal feature strings.
Outputs:
- Returns an **AirPlayMaj... | python | MIT | diff --git a/pyatv/protocols/airplay/utils.py b/pyatv/protocols/airplay/utils.py
index 3a56ab48..24a7bf86 100644
--- a/pyatv/protocols/airplay/utils.py
+++ b/pyatv/protocols/airplay/utils.py
@@ -45,6 +45,11 @@ def _get_flags(properties: Mapping[str, str]) -> int:
return int(flags, 16)
+# These flags have been ... | airplay: Fix AirPlay major version detection
Fixes #2075
<a href="https://gitpod.io/#https://github.com/postlund/pyatv/pull/2077"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
| Detection of AirPlay version does not work
### Describe the bug
When I try to stream a file to my Apple TV 3, it is detected as an AirPlay 2 device which it is not. So streaming fails.
### Error log
```log
<place log here>
```
### How to reproduce the bug?
Use `stream_file` with atvremote and it will fail beca... | postlund/pyatv | diff --git a/tests/protocols/airplay/test_utils.py b/tests/protocols/airplay/test_utils.py
index f92d2ca8..6374adda 100644
--- a/tests/protocols/airplay/test_utils.py
+++ b/tests/protocols/airplay/test_utils.py
@@ -117,12 +117,20 @@ def test_is_remote_control_supported(props, credentials, expected_supported):
@pytest.... | [
"tests/protocols/airplay/test_utils.py::test_get_protocol_version[props1-AirPlayMajorVersion.AirPlayV1]",
"tests/protocols/airplay/test_utils.py::test_get_protocol_version[props3-AirPlayMajorVersion.AirPlayV1]"
] | [
"tests/protocols/airplay/test_utils.py::test_parse_features[0x00000001-AirPlayFlags.SupportsAirPlayVideoV1]",
"tests/protocols/airplay/test_utils.py::test_parse_features[0x40000003-AirPlayFlags.HasUnifiedAdvertiserInfo|SupportsAirPlayPhoto|SupportsAirPlayVideoV1]",
"tests/protocols/airplay/test_utils.py::test_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": "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": ... |
650efb92fd27ae60ec08a70f2ac1afbea37ac3e3 | 2021-01-04 23:00:51 | docker.io/swerebenchv2/pycqa-pyflakes:606-650efb9 | pycqa__pyflakes-606 | No new interfaces are introduced. | python | MIT | diff --git a/pyflakes/checker.py b/pyflakes/checker.py
index 38f8f73..215bd31 100644
--- a/pyflakes/checker.py
+++ b/pyflakes/checker.py
@@ -1140,7 +1140,10 @@ class Checker(object):
# then assume the rebound name is used as a global or within a loop
value.used = self.scope[value.name].used
... | Fix annotation clobbering __all__
Resolves #605 | Odd edge-case regression in type annotated `__all__`
I'm not quite sure how to approach fixing this -- it regressed as part of #535 -- CC @srittau
Here's a simplified example, this is boiled down from numpy's `numpy/typing/__init__.py`
```python
from typing import TYPE_CHECKING, List
from y import z
if no... | PyCQA/pyflakes | diff --git a/pyflakes/test/test_type_annotations.py b/pyflakes/test/test_type_annotations.py
index 409238b..835d8d9 100644
--- a/pyflakes/test/test_type_annotations.py
+++ b/pyflakes/test/test_type_annotations.py
@@ -335,6 +335,19 @@ class TestTypeAnnotations(TestCase):
def g(t: 'T'): pass
''')
+ ... | [
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_type_annotation_clobbers_all"
] | [
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_async_def",
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type",
"pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_annotated_type_typing_missing_forward_type_m... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
33b36ee82f39827ea7bd611d14104def888a768c | 2024-05-24 14:43:34 | docker.io/swerebenchv2/reata-sqllineage:619-33b36ee | reata__sqllineage-619 | No new interfaces are introduced. | python | MIT | diff --git a/sqllineage/utils/helpers.py b/sqllineage/utils/helpers.py
index e403ba7..df9c3ed 100644
--- a/sqllineage/utils/helpers.py
+++ b/sqllineage/utils/helpers.py
@@ -17,6 +17,10 @@ def escape_identifier_name(name: str):
for quote_char in quote_chars:
name = name.strip(quote_char)
r... | fix: allow tsql identifier enclosed in brackets
Closes #583 | Tsql table names with square brackets are not resolved correctly
Tsql:
When the same table name or column name has square brackets, the parsing result is considered to be two different objects, but it should actually be the same object.
Is there any configuration where I find that mysql backquotes can be parsed corre... | reata/sqllineage | diff --git a/tests/sql/table/test_select_dialect_specific.py b/tests/sql/table/test_select_dialect_specific.py
index 9755fa5..c53fc34 100644
--- a/tests/sql/table/test_select_dialect_specific.py
+++ b/tests/sql/table/test_select_dialect_specific.py
@@ -24,6 +24,18 @@ def test_select_with_schema_in_backtick(dialect: str... | [
"tests/sql/table/test_select_dialect_specific.py::test_select_with_table_name_in_bracket[tsql]",
"tests/sql/table/test_select_dialect_specific.py::test_select_with_schema_in_bracket[tsql]"
] | [
"tests/sql/table/test_select_dialect_specific.py::test_select_with_table_name_in_backtick[athena]",
"tests/sql/table/test_select_dialect_specific.py::test_select_with_table_name_in_backtick[bigquery]",
"tests/sql/table/test_select_dialect_specific.py::test_select_with_table_name_in_backtick[databricks]",
"tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ea93b549a93f65b216070e72a26cf0cc31d1e9ad | 2024-11-07 16:03:27 | docker.io/swerebenchv2/pallets-werkzeug:2997-ea93b54 | pallets__werkzeug-2997 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 6a2fd2ed..27a89e83 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -9,6 +9,9 @@ Unreleased
``list``, ``tuple``, or ``set`` when passing multiple values. It had been
changed to accept any ``Collection``, but this matched types that should be
treated as single val... | wrap IPv6 SERVER_NAME in []
When using IPv6, `SERVER_NAME` is sent as `::1`. When the `Host` header isn't present, `SERVER_NAME` is used to construct `request.host`. Wrap it with `[]` so that it matches the format that the `Host` header would have.
fixes #2993 | utils.get_current_url() fails to parse IPv6 IP address
(This has similar smells to it as #2903)
By the looks of it, https://github.com/pallets/werkzeug/blob/9a69323223616188d50f337ba03831a944e82d6f/src/werkzeug/sansio/utils.py#L97-L97 when called from https://github.com/pallets/werkzeug/blob/9a69323223616188d50f337b... | pallets/werkzeug | diff --git a/tests/sansio/test_utils.py b/tests/sansio/test_utils.py
index d43de66c..a63e7c66 100644
--- a/tests/sansio/test_utils.py
+++ b/tests/sansio/test_utils.py
@@ -14,12 +14,16 @@ from werkzeug.sansio.utils import get_host
("https", "spam", None, "spam"),
("https", "spam:443", None, "spam"),
... | [
"tests/sansio/test_utils.py::test_get_host[http-None-server14-[::1]:8080]"
] | [
"tests/sansio/test_utils.py::test_get_host[http-spam-None-spam]",
"tests/sansio/test_utils.py::test_get_host[http-spam:80-None-spam]",
"tests/sansio/test_utils.py::test_get_host[https-spam-None-spam]",
"tests/sansio/test_utils.py::test_get_host[https-spam:443-None-spam]",
"tests/sansio/test_utils.py::test_g... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/pallets/werkzeug/blob/9a6932322361618... |
4a807d45f9dd47266c82035bf6e04508a77f0258 | 2019-07-07 18:11:42 | docker.io/swerebenchv2/pycqa-pyflakes:451-4a807d4 | pycqa__pyflakes-451 | No new interfaces are introduced. | python | MIT | diff --git a/NEWS.rst b/NEWS.rst
index 8bf9023..993a545 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -1,3 +1,7 @@
+2.1.1 (2019-02-28)
+- Fix reported line number for type comment errors
+- Fix typing.overload check to only check imported names
+
2.1.0 (2019-01-23)
- Allow intentional assignment to variables named ``_``
... | Use absolute link to change log for PyPI's benefit
This closes #409. | Link to NEWS.rst in README file should be absolute
Link to NEWS.rst file in README.rst section is provided as relative - which of course behaves correctly on github page, but not on [PyPI](https://pypi.org/project/pyflakes/) website. | PyCQA/pyflakes | diff --git a/pyflakes/test/test_doctests.py b/pyflakes/test/test_doctests.py
index 0825ffe..5565226 100644
--- a/pyflakes/test/test_doctests.py
+++ b/pyflakes/test/test_doctests.py
@@ -433,6 +433,16 @@ class Test(TestCase):
return 1
''')
+ def test_globalUnderscoreInDoctest(self):
+ se... | [
"pyflakes/test/test_doctests.py::Test::test_globalUnderscoreInDoctest"
] | [
"pyflakes/test/test_doctests.py::TestOther::test_attrAugmentedAssignment",
"pyflakes/test/test_doctests.py::TestOther::test_breakInsideLoop",
"pyflakes/test/test_doctests.py::TestOther::test_breakOutsideLoop",
"pyflakes/test/test_doctests.py::TestOther::test_classFunctionDecorator",
"pyflakes/test/test_doct... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.92,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://pypi.org/project/pyflakes/",
"https://gith... |
724a4c10982c3ae7b64f1983e9232c380f06942e | 2021-03-05 14:41:27 | docker.io/swerebenchv2/alteryx-woodwork:666-724a4c1 | alteryx__woodwork-666 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index d55d956..9ba903b 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -42,6 +42,7 @@ Release Notes
* Adds ``__getitem__`` to WoodworkTableAccessor (:pr:`633`)
* Fixes
* Create new Schema ... | Fix bug in _reset_semantic_tags causing columns to share the same semantic tags set
- Fix bug in _reset_semantic_tags causing columns to share the same semantic tags set
- Closes #662
This PR fixes a bug in `_reset_semantic_tags` that was causing multiple schema columns to share the same semantic tags set after re... | Set time index adds tag to multiple columns after reset_semantic_tags call
If you try to set the time index after a call to reset the semantic tags on a dataframe, the `time_index` tag gets added to multiple columns and can return the wrong value for `df.ww.time_index`.
#### Code Sample
```python
>>> import wood... | alteryx/woodwork | diff --git a/woodwork/tests/schema/test_schema_column.py b/woodwork/tests/schema/test_schema_column.py
index 2f31a7f..d39661a 100644
--- a/woodwork/tests/schema/test_schema_column.py
+++ b/woodwork/tests/schema/test_schema_column.py
@@ -18,6 +18,7 @@ from woodwork.schema_column import (
_is_col_categorical,
_... | [
"woodwork/tests/schema/test_schema_column.py::test_reset_semantic_tags_returns_new_object"
] | [
"woodwork/tests/schema/test_schema_column.py::test_validate_logical_type_errors",
"woodwork/tests/schema/test_schema_column.py::test_validate_description_errors",
"woodwork/tests/schema/test_schema_column.py::test_validate_metadata_errors",
"woodwork/tests/schema/test_schema_column.py::test_get_column_dict",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b77d54fbb56f7080ad936383b90e01d238654da7 | 2024-09-12 05:41:24 | docker.io/swerebenchv2/mpmath-mpmath:864-b77d54f | mpmath__mpmath-864 | Function: zeta(s, a=1, d=0, **kwargs)
Location: mpmath/functions/zeta.py
Inputs:
- **s**: complex or real number, the exponent of the Hurwitz zeta function.
- **a**: complex or real number (default 1), the offset parameter. Must not be a negative integer; if `ctx.re(a) < 0` and `ctx.isnpint(a)`, a `ValueError` is raise... | python | BSD-3-Clause | diff --git a/README.rst b/README.rst
index b7e5d82..6e3fa82 100644
--- a/README.rst
+++ b/README.rst
@@ -171,8 +171,8 @@ Mpmath is a work in progress. Major issues include:
or two units in the last place (even if otherwise accurate).
* Some IEEE 754 features are not available. Inifinities and NaN are
- partially... | Misc fixes
* raise ValueError for complex infininity condition in zeta(s, a), closes #653
* remove remnants of fnzero | zeta(2, -2) crashes.
```
>>> from mpmath import *
>>> mp.dps = 100
>>> zeta(2, -2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/palaiologos/.local/lib/python3.10/site-packages/mpmath/functions/zeta.py", line 580, in zeta
return +ctx._hurwitz(s, a, d, **kwargs)
Fil... | mpmath/mpmath | diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py
index cd74e8b..d971e24 100644
--- a/mpmath/tests/test_functions2.py
+++ b/mpmath/tests/test_functions2.py
@@ -2403,3 +2403,6 @@ def test_issue_505():
assert mp.isnan(mp.polylog(mp.inf, 2.2))
assert mp.isnan(mp.polylog(mp.ninf, 2.2)... | [
"mpmath/tests/test_functions2.py::test_issue_653"
] | [
"mpmath/tests/test_functions2.py::test_bessel",
"mpmath/tests/test_functions2.py::test_bessel_zeros",
"mpmath/tests/test_functions2.py::test_hankel",
"mpmath/tests/test_functions2.py::test_struve",
"mpmath/tests/test_functions2.py::test_whittaker",
"mpmath/tests/test_functions2.py::test_kelvin",
"mpmath... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://www.wolframalpha.com/input?i=hurwitz%282%2C-2%29... |
79794650faad94cdfbae43a96ed4221d44d232ae | 2023-10-03 18:45:54 | docker.io/swerebenchv2/caikit-caikit:508-7979465 | caikit__caikit-508 | Method: DataStream.from_json_array(cls, filename: str) → DataStream
Location: caikit.core.data_model.streams.data_stream.DataStream (class method)
Inputs:
- **filename** – Path to a JSON file. The file must contain a top‑level JSON *array*; otherwise a `ValueError` is raised.
Outputs:
- Returns a `DataStream` that yi... | python | Apache-2.0 | diff --git a/caikit/core/data_model/streams/data_stream.py b/caikit/core/data_model/streams/data_stream.py
index d9af9c77..deee46cb 100644
--- a/caikit/core/data_model/streams/data_stream.py
+++ b/caikit/core/data_model/streams/data_stream.py
@@ -254,9 +254,16 @@ class DataStream(Generic[T]):
)
# ... | :goal_net: Return error for non-array JSON where array is expected
<!-- 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 #<i... | Reject non array .json files for data streams
## Describe the bug
If a user uploads a `.json` file for a data stream parameter in a runtime api, it is expected to be an array of the data stream elements. If a user instead supplies a file with contents like:
```
{
"input": "foo",
"output": "bar"
}
```
caik... | caikit/caikit | diff --git a/tests/core/data_model/streams/test_data_stream.py b/tests/core/data_model/streams/test_data_stream.py
index f4723d6e..d3756e7d 100644
--- a/tests/core/data_model/streams/test_data_stream.py
+++ b/tests/core/data_model/streams/test_data_stream.py
@@ -184,6 +184,21 @@ def test_bad_json_stream(tmp_path):
... | [
"tests/core/data_model/streams/test_data_stream.py::test_non_json_array_stream",
"tests/runtime/service_generation/test_data_stream_source.py::test_make_data_stream_source_non_json_array_errors"
] | [
"tests/core/data_model/streams/test_data_stream.py::test_list_data_stream",
"tests/core/data_model/streams/test_data_stream.py::test_txt_data_stream",
"tests/core/data_model/streams/test_data_stream.py::test_txt_collection_data_stream",
"tests/core/data_model/streams/test_data_stream.py::test_json_collection_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
1d1237c4526640659cce241075400a3721ce63a2 | 2025-05-19 10:25:39 | docker.io/swerebenchv2/conan-io-conan:18327-1d1237c | conan-io__conan-18327 | No new interfaces are introduced. | python | MIT | diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py
index d9527bcbd..54be9a9b8 100644
--- a/conan/tools/files/files.py
+++ b/conan/tools/files/files.py
@@ -366,7 +366,7 @@ def unzip(conanfile, filename, destination=".", keep_permissions=False, pattern=
output = conanfile.output
extract_filt... | [fix] Change wording on unzip tool when uncompressing file
Changelog: Fix: Change wording on unzip tool when uncompressing file
Docs: omit
- [x] Refer to the issue that supports this Pull Request: closes #18323
- [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Reques... | improve wording when uncompressing an archive
Very minor issue, but since this method may call `untargz()`, it's better to reword as Uncompressing. Also this word is used when actually uncompressing a non-zip archive.
https://github.com/conan-io/conan/blob/65bef8bb7b086d8550e738fa522004563e3e5078/conan/tools/files/fil... | conan-io/conan | diff --git a/test/integration/toolchains/gnu/test_pkgconfigdeps.py b/test/integration/toolchains/gnu/test_pkgconfigdeps.py
index e98c607ac..430e34b36 100644
--- a/test/integration/toolchains/gnu/test_pkgconfigdeps.py
+++ b/test/integration/toolchains/gnu/test_pkgconfigdeps.py
@@ -1202,29 +1202,3 @@ def test_pkg_config_... | [
"test/unittests/tools/files/test_zipping.py::test_untargz"
] | [
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_empty_dirs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_system_libs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/conan-io/conan/blob/65bef8bb7b086d855... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.