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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e87b117b2e7c33ee4ff591152c39c2e41f7dda26 | 2024-08-20 09:25:09 | docker.io/swerebenchv2/getmoto-moto:8009-e87b117 | getmoto__moto-8009 | Method: IncompatibleLocationConstraintException.__init__(self, location: str) Location: moto/s3/exceptions.py
Inputs: <location> – a string representing the location constraint that is incompatible with the region‑specific endpoint the request was sent to.
Outputs: Raises a S3ClientError with code “IllegalLocationConst... | python | Apache-2.0 | diff --git a/docs/docs/configuration/environment_variables.rst b/docs/docs/configuration/environment_variables.rst
index 2cc0382c0..fc7530b9e 100644
--- a/docs/docs/configuration/environment_variables.rst
+++ b/docs/docs/configuration/environment_variables.rst
@@ -34,6 +34,8 @@ The following is a non-exhaustive list of... | S3: Document usecase of S3_IGNORE_SUBDOMAIN_BUCKETNAME
Fixes #7488 | S3_IGNORE_SUBDOMAIN_BUCKETNAME undocumented + AWS_ENDPOINT_URL gotcha
TL;DR - some additional guidance on the two gotchas that I hit in the past couple days could be added to the docs. I can try to take a stab at some language if you think that makes sense
I've been using moto for a fair bit, but lately started usin... | getmoto/moto | diff --git a/tests/test_awslambda/test_lambda.py b/tests/test_awslambda/test_lambda.py
index 1490cc568..e22c99584 100644
--- a/tests/test_awslambda/test_lambda.py
+++ b/tests/test_awslambda/test_lambda.py
@@ -774,10 +774,7 @@ def test_get_function_code_signing_config(key):
def test_get_function_by_arn():
bucket_n... | [
"tests/test_s3/test_s3.py::test_create_bucket_with_wrong_location_constraint[us-east-1]",
"tests/test_s3/test_s3.py::test_create_bucket_with_wrong_location_constraint[us-east-2]",
"tests/test_s3/test_s3.py::test_create_bucket_with_wrong_location_constraint[eu-central-1]",
"tests/test_s3/test_s3.py::test_creat... | [
"tests/test_awslambda/test_lambda.py::test_lambda_regions[us-west-2]",
"tests/test_awslambda/test_lambda.py::test_lambda_regions[cn-northwest-1]",
"tests/test_awslambda/test_lambda.py::test_lambda_regions[us-isob-east-1]",
"tests/test_awslambda/test_lambda.py::test_list_functions",
"tests/test_awslambda/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://github.com/getmoto/moto/issues/2915",
"h... |
2bb3e4d3aa9692eebb8271a796aec8d8c8f944b9 | 2025-02-06 21:38:40 | docker.io/swerebenchv2/pennylaneai-pennylane:6933-2bb3e4d | pennylaneai__pennylane-6933 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 83d74e1f5..1e56914c5 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -282,6 +282,10 @@
<h3>Bug fixes 🐛</h3>
+* Fixed `qml.wires.Wires` initialization to disallow `Wires` objects as wires labels.
+ N... | Fixes `Wires` objects as wire labels bug
**Context:**
Prior to this PR we had the following behaviour,
```python
a = qml.wires.Wires("a")
b = qml.wires.Wires("b")
wires = [a,b,"c"]
>>> print(qml.wires.Wires(wires))
Wires([Wires(['a']), Wires(['b']), 'c'])
>>> print(qml.wires.Wires([0, 1, 2, 3, qml.wires.W... | [BUG] wires initialization issue
### Expected behavior
It would expect the following script to return `True`
`Wires(["a"]) == Wires([Wires("a")])`
i.e. detect if there are nested wires, and not accumulate them as different objects
### Actual behavior
Currently, they are different wires, which generates unw... | PennyLaneAI/pennylane | diff --git a/tests/test_wires.py b/tests/test_wires.py
index 0ae3e85b6..d80f5e5cd 100644
--- a/tests/test_wires.py
+++ b/tests/test_wires.py
@@ -34,6 +34,12 @@ else:
class TestWires:
"""Tests for the ``Wires`` class."""
+ def test_wires_object_as_label(self):
+ """Tests that a Wires object can be used... | [
"tests/test_wires.py::TestWires::test_wires_object_as_label",
"tests/test_wires.py::TestWires::test_creation_from_wires_lists",
"tests/test_wires.py::TestWires::test_contains",
"tests/test_wires.py::TestWires::test_contains_wires"
] | [
"tests/test_wires.py::TestWires::test_error_if_wires_none",
"tests/test_wires.py::TestWires::test_creation_from_common_iterables[iterable0]",
"tests/test_wires.py::TestWires::test_creation_from_common_iterables[iterable1]",
"tests/test_wires.py::TestWires::test_creation_from_common_iterables[iterable2]",
"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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
93399541299595718a250c497ff88b0e2482fd88 | 2021-09-15 20:01:29 | docker.io/swerebenchv2/postlund-pyatv:1310-9339954 | postlund__pyatv-1310 | Method: Stream.play_url(self, url: str, **kwargs)
Location: pyatv/interface.py → class Stream
Inputs:
- **url** – URL string pointing to media to be played.
- **kwargs** – optional protocol‑specific arguments passed through to the underlying implementation.
Outputs: Returns ``None`` on success. When the device do... | python | MIT | diff --git a/pyatv/core/facade.py b/pyatv/core/facade.py
index 1a531d7a..17ad213d 100644
--- a/pyatv/core/facade.py
+++ b/pyatv/core/facade.py
@@ -287,9 +287,10 @@ class FacadePower(Relayer, interface.Power, interface.PowerListener):
class FacadeStream(Relayer, interface.Stream): # pylint: disable=too-few-public-meth... | airplay: Improve feature availability support and error handling
Base feature availability of `play_url` from feature flag in zeroconf. Also raise exception if call is made to `play_url` when it's not supported.
Fixes #1308
<a href="https://gitpod.io/#https://github.com/postlund/pyatv/pull/1310"><img src="https://g... | Enhance feature detection of play_url and improve error handling
### What feature would you like?
Feature availability of `play_url` is solely based on credentials being available or not. This is generally the case as credentials are needed for AirPlay on the Apple TV (which supports `play_url`) and not on the HomePod... | postlund/pyatv | diff --git a/tests/common_functional_tests.py b/tests/common_functional_tests.py
index 8e015459..1cc143d2 100644
--- a/tests/common_functional_tests.py
+++ b/tests/common_functional_tests.py
@@ -518,9 +518,10 @@ class CommonFunctionalTests(AioHTTPTestCase):
@unittest_run_loop
async def test_features_play_ur... | [
"tests/protocols/airplay/test_airplay_interface.py::test_feature_play_url[0x0,0x0-FeatureState.Unavailable]",
"tests/protocols/airplay/test_airplay_interface.py::test_feature_play_url[0x1,0x0-FeatureState.Available]",
"tests/protocols/airplay/test_airplay_interface.py::test_feature_play_url[0x00000000,0x20000-F... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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":... |
762e08f787c9af8cd29d0fde0d481d5bd3a5570d | 2024-05-10 14:13:46 | docker.io/swerebenchv2/alteryx-woodwork:1862-762e08f | alteryx__woodwork-1862 | Function: getfullargspec(callable_obj)
Location: woodwork.deserializers.utils
Inputs: `callable_obj` – any Python callable whose full argument specification is to be inspected.
Outputs: `inspect.FullArgSpec` object containing args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, and annotations. May raise `TypeEr... | python | BSD-3-Clause | diff --git a/.github/workflows/pull_request_check.yaml b/.github/workflows/pull_request_check.yaml
index 0742225..e749af5 100644
--- a/.github/workflows/pull_request_check.yaml
+++ b/.github/workflows/pull_request_check.yaml
@@ -7,7 +7,7 @@ jobs:
name: pull request check
runs-on: ubuntu-latest
steps:
- ... | Use filter arg to safe extract archives
Closes #1860
The filter argument was added in these Python versions: 3.9.17, 3.10.12, 3.11.4, 3.12.0. If the user is running an older Python version an error will be thrown and they will need to upgrade to one of these patch releases (or newer) to extract the archive. | Add filter arg to tarfile.extractall call to safely deserialize dataframes
Update `tarfile.extractall` call to safely deserialize dataframes. | alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_serialization.py b/woodwork/tests/accessor/test_serialization.py
index c169965..23412dc 100644
--- a/woodwork/tests/accessor/test_serialization.py
+++ b/woodwork/tests/accessor/test_serialization.py
@@ -2,7 +2,7 @@ import json
import os
import shutil
import warnings
-from un... | [
"woodwork/tests/accessor/test_serialization.py::test_to_csv_S3_errors_if_python_version_unsafe",
"woodwork/tests/accessor/test_serialization.py::test_serialize_s3_pickle_errors_if_python_version_unsafe",
"woodwork/tests/accessor/test_serialization.py::test_serialize_s3_parquet_errors_if_python_version_unsafe"
] | [
"woodwork/tests/accessor/test_serialization.py::test_error_before_table_init",
"woodwork/tests/accessor/test_serialization.py::test_to_dictionary",
"woodwork/tests/accessor/test_serialization.py::test_unserializable_table",
"woodwork/tests/accessor/test_serialization.py::test_serialize_wrong_format",
"woodw... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e7156a76422de82342b4673d217004f384f427ed | 2023-11-16 19:04:38 | docker.io/swerebenchv2/getmoto-moto:7035-e7156a7 | getmoto__moto-7035 | Method: S3Backend.put_public_access_block(self, bucket_name: str, pub_block_config: Optional[Dict[str, Any]])
Location: moto/s3/models.py
Inputs: bucket_name – name of the bucket to modify (string); pub_block_config – optional dictionary with PublicAccessBlock settings (e.g., BlockPublicAcls, IgnorePublicAcls, BlockPub... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index 104eeb140..5d8ba44d1 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -6173,7 +6173,7 @@
## s3
<details>
-<summary>64% implemented</summary>
+<summary>65% implemented</summary>
- [X] abort_multipart_upload
- [X... | Docs: mark S3:put_public_access_block() as implemented
Fixes #7034 | put_public_access_block marked as unimplemented for s3
In http://docs.getmoto.org/en/latest/docs/services/s3.html, `put_public_access_block` is marked as unimplemented. `get_public_access_block` and `delete_public_access_block` are marked as implemented.
I notice that all three are marked as implemented for `s3contro... | getmoto/moto | diff --git a/tests/test_s3/test_s3_config.py b/tests/test_s3/test_s3_config.py
index b40289848..040984ed0 100644
--- a/tests/test_s3/test_s3_config.py
+++ b/tests/test_s3/test_s3_config.py
@@ -22,9 +22,7 @@ def test_s3_public_access_block_to_config_dict():
}
# Add a public access block:
- s3_config_query... | [
"tests/test_s3/test_s3_config.py::test_s3_public_access_block_to_config_dict"
] | [
"tests/test_s3/test_s3_config.py::test_list_config_discovered_resources",
"tests/test_s3/test_s3_config.py::test_s3_lifecycle_config_dict",
"tests/test_s3/test_s3_config.py::test_s3_notification_config_dict",
"tests/test_s3/test_s3_config.py::test_s3_acl_to_config_dict",
"tests/test_s3/test_s3_config.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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"http://docs.getmoto.org/en/latest/docs/services/s3.htm... |
116795c74ad60c24e7229fc00ea5f93fbec07d45 | 2023-07-31 18:19:55 | docker.io/swerebenchv2/github-issue-metrics:81-116795c | github__issue-metrics-81 | No new interfaces are introduced. | python | MIT | diff --git a/.pylintrc b/.pylintrc
index 96c0fce..df959dd 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -5,4 +5,5 @@ disable=
too-few-public-methods,
duplicate-code,
too-many-locals,
- too-many-branches,
\ No newline at end of file
+ too-many-branches,
+ line-too-long,
\ No newline at end of file
diff --git a/markdow... | Add reference to action in report
fixes #47 | feat: Include link to action in the markdown
Something like...
# Issue Metrics
| Overview Table |
| Issues Table |
_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_ | github/issue-metrics | diff --git a/test_markdown_writer.py b/test_markdown_writer.py
index 31426dd..b0b60fe 100644
--- a/test_markdown_writer.py
+++ b/test_markdown_writer.py
@@ -86,6 +86,7 @@ class TestWriteToMarkdown(unittest.TestCase):
"2 days, 0:00:00 | 3 days, 0:00:00 | 1 day, 0:00:00 |\n"
"| Issue 2 | https:/... | [
"test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown",
"test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown_with_vertical_bar_in_title",
"test_markdown_writer.py::TestWriteToMarkdownWithEnv::test_writes_markdown_file_with_non_hidden_columns_only"
] | [
"test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown_no_issues"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/github/issue-metrics"
],
"int... |
b5ce4b7f67ea347ff0e1357a61d5412027218a87 | 2021-11-22 09:53:54 | docker.io/swerebenchv2/virtuslab-git-machete:353-b5ce4b7 | virtuslab__git-machete-353 | No new interfaces are introduced. | python | MIT | diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 4cb7056..395fed7 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,9 @@
# Release notes
+## New in git-machete 3.6.0
+
+- added: `t` alias for `traverse` command
+
## New in git-machete 3.5.0
- added: new way of acquiring the github token (from... | Issue #134: Add t alias for traverse command
closes #134 | Add `t` as an alias for `traverse` (just as `s` is for `status`) | VirtusLab/git-machete | diff --git a/git_machete/tests/functional/test_machete.py b/git_machete/tests/functional/test_machete.py
index 24e5542..53cef1e 100644
--- a/git_machete/tests/functional/test_machete.py
+++ b/git_machete/tests/functional/test_machete.py
@@ -538,8 +538,39 @@ class MacheteTester(unittest.TestCase):
@mock.patch('git_... | [
"git_machete/tests/functional/test_machete.py::MacheteTester::test_traverse_no_push_override"
] | [
"git_machete/tests/functional/test_machete.py::MacheteTester::test_add",
"git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_few_possible_downstream_branches_and_yes_option",
"git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_no_downstream_branches",
"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": [],
"intent_completeness": "complete",
"pr_categories": [... |
d502c9f35a3fc7d848c718ca52f07551adbeec49 | 2021-11-15 04:51:22 | docker.io/swerebenchv2/materialsproject-custodian:183-d502c9f | materialsproject__custodian-183 | Method: VaspErrorHandler.check(self)
Location: custodian/vasp/handlers.py
Inputs: None (uses internal state set by __init__)
Outputs: bool – True if the handler detects any of its known VASP error patterns in the provided output, False otherwise.
Description: Scans the VASP output (or supplied error log) for errors... | python | MIT | diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index 547f8ccf..12017f78 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -30,7 +30,7 @@ from custodian.custodian import ErrorHandler
from custodian.utils import backup
from custodian.vasp.interpreter import VaspModder
-... | [VASP] Increase posmap error count
Closes #186:
- Previously, `self.error_count["posmap"]` was never updated even though there were two sequential INCAR swaps to consider. This caused the second fix to never take place, and there was no test to check for it. There is now a test and the issue is fixed.
- I more clea... | [VASP] [Bug] Second posmap error does not change SYMPREC
When the VASP `"posmap"` error occurs twice, [SYMPREC should be changed to 1e-4](https://github.com/materialsproject/custodian/blob/master/custodian/vasp/handlers.py#L413). However, it stays 1e-6 because the error counter was never updated. A test was also not wr... | materialsproject/custodian | diff --git a/custodian/vasp/tests/test_handlers.py b/custodian/vasp/tests/test_handlers.py
index ac175c67..bde7866a 100644
--- a/custodian/vasp/tests/test_handlers.py
+++ b/custodian/vasp/tests/test_handlers.py
@@ -275,6 +275,11 @@ class VaspErrorHandlerTest(unittest.TestCase):
i = Incar.from_file("INCAR")
... | [
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_posmap",
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_posmap_vasp6"
] | [
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_brmix",
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_bzint_vasp6",
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_check_correct",
"custodian/vasp/tests/test_handlers.py::VaspErrorHandlerTest::test_dent... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/materialsproject/custodian/blob/maste... |
e17479bd0701e8fc0b26981339540599dc224d11 | 2025-02-14 18:40:55 | docker.io/swerebenchv2/delgan-loguru:1299-e17479b | delgan__loguru-1299 | No new interfaces are introduced. | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index cd62613..5e0e34d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,7 +5,8 @@
- Fix possible ``ValueError`` raised on Windows when system clock was set far ahead in the future (`#1291 <https://github.com/Delgan/loguru/issues/1291>`_).
- Allow the ``rotation`` argumen... | Support the implementation of "NO_COLOR" standard
Fix #1178. | Support the implementation of https://no-color.org/
It would be awesome to support the detection of the NO_COLOR environment variable and act according to the specification. | Delgan/loguru | diff --git a/tests/test_add_option_colorize.py b/tests/test_add_option_colorize.py
index 61fbbfc..47d0071 100644
--- a/tests/test_add_option_colorize.py
+++ b/tests/test_add_option_colorize.py
@@ -1,3 +1,5 @@
+import os
+
import pytest
from loguru import logger
@@ -73,3 +75,12 @@ def test_automatic_detection_when_s... | [
"tests/test_colorama.py::test_honor_no_color_standard[__stdout__-False]",
"tests/test_colorama.py::test_honor_no_color_standard[__stderr__-False]",
"tests/test_colorama.py::test_honor_no_color_standard[stdout-False]",
"tests/test_colorama.py::test_honor_no_color_standard[stderr-False]",
"tests/test_colorama... | [
"tests/test_add_option_colorize.py::test_colorized_format[<red>{message}</red>-Foo-\\x1b[31mFoo\\x1b[0m\\n]",
"tests/test_add_option_colorize.py::test_colorized_format[<lambda>-Bar-\\x1b[31mBar\\x1b[0m]",
"tests/test_add_option_colorize.py::test_colorized_format[{message}-<red>Baz</red>-<red>Baz</red>\\n]",
"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://no-color.org/"
],
"intent_completeness":... |
a09aa3410c2a070b2384e02f29d37ea2569bb555 | 2022-09-25 03:59:34 | docker.io/swerebenchv2/farama-foundation-pettingzoo:802-a09aa34 | farama-foundation__pettingzoo-802 | Method: Env.last(self, observe: bool = True)
Location: pettingzoo/AECEnv (base class for all PettingZoo environments)
Inputs:
- observe (bool, optional): if True (default), returns the current observation for the active agent; if False, returns None for observation while still providing reward and episode‑end flags.
Ou... | python | custom-check-github | diff --git a/docs/_scripts/generate_gif_image.py b/docs/_scripts/generate_gif_image.py
index da0af880..321363c9 100644
--- a/docs/_scripts/generate_gif_image.py
+++ b/docs/_scripts/generate_gif_image.py
@@ -18,8 +18,8 @@ def generate_data(nameline, module):
for agent in env.agent_iter(
env.num_age... | replace 'done' with 'termination, truncation' new logic
# Description
I fixed #801 and along the way did my best for the rest of the code that relied on the old `env.last` output.
I have not tested all the changes I made other than the `random_demo` function which i added a test for.
## Type of change
- Bug fix... | [Bug Report] random_demo broke after the termination/truncation update
**Describe the bug**
the `random_demo` raise an error due to how the env.last API changed.
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../python3.9/site-packages/pettingzoo/utils/random_demo.py", line 1... | Farama-Foundation/PettingZoo | diff --git a/pettingzoo/test/api_test.py b/pettingzoo/test/api_test.py
index f450b973..17f28248 100644
--- a/pettingzoo/test/api_test.py
+++ b/pettingzoo/test/api_test.py
@@ -391,10 +391,10 @@ def api_test(env, num_cycles=1000, verbose_progress=False):
assert env.num_agents > 0, "An environment should have a posit... | [
"test/utils_test.py::test_random_demo_without_errors"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Farama-Foundation/PettingZoo/issues... |
ca611b300ee75a28873a3ddadc820ff19856bde6 | 2019-04-29 15:51:21 | docker.io/swerebenchv2/rochacbruno-dynaconf:188-ca611b3 | rochacbruno__dynaconf-188 | No new interfaces are introduced. | python | MIT | diff --git a/dynaconf/cli.py b/dynaconf/cli.py
index e91e71a..b62d87e 100644
--- a/dynaconf/cli.py
+++ b/dynaconf/cli.py
@@ -364,8 +364,18 @@ def init(fileformat, path, env, _vars, _secrets, wg, y, django):
default=None,
help="a loader identifier to filter e.g: toml|yaml",
)
-def _list(env, key, more, loader... | Fix #179 - dynaconf list command shows only user defined vars | [RFC] dynaconf list command should not show internal variables
**Is your feature request related to a problem? Please describe.**
When I run `dynaconf list` command line it shows all the variables I defined on my `settings.toml` file but it also shows dynaconf internal variables like `ENV_FOR_DYNACONF`, `RENAMED_VAR... | rochacbruno/dynaconf | diff --git a/tests/test_cli.py b/tests/test_cli.py
index 10f5d78..41dd10c 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -83,9 +83,18 @@ def test_init_with_path(fileformat, tmpdir):
def test_list(testdir):
+ """Test list command shows only user defined vars"""
result = run(["list"], env={"ROOT... | [
"tests/test_cli.py::test_list",
"tests/test_cli.py::test_list_with_all"
] | [
"tests/test_cli.py::test_version",
"tests/test_cli.py::test_help",
"tests/test_cli.py::test_banner",
"tests/test_cli.py::test_init_with_path[ini]",
"tests/test_cli.py::test_init_with_path[toml]",
"tests/test_cli.py::test_init_with_path[yaml]",
"tests/test_cli.py::test_init_with_path[json]",
"tests/tes... | {
"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": [... |
ee190b3a7644a47574ee64e4d68487b8c8521259 | 2022-08-12 17:17:44 | docker.io/swerebenchv2/pennylaneai-pennylane:2947-ee190b3 | pennylaneai__pennylane-2947 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/doc/releases/changelog-0.25.0.md b/doc/releases/changelog-0.25.0.md
index 1696b9060..3a49b7bd4 100644
--- a/doc/releases/changelog-0.25.0.md
+++ b/doc/releases/changelog-0.25.0.md
@@ -710,6 +710,9 @@ of operators.
<h3>Bug fixes 🐞</h3>
+* Fixes `qml.equal` so that operators with different inverse prop... | `qml.equal` considers in-place inversion.
Fixes #2945
Now we have
```
>>> qml.equal(qml.RX(1.0, wires=0), qml.RX(1.0, wires=0).inv())
False
``` | [BUG] `qml.equal` ignore in-place inversion
Currently, we have:
```
>>> qml.equal(qml.RX(1.0, wires=0), qml.RX(1.0, wires=0).inv())
True
```
If two operations are inverses of each other, they should not be equal. | PennyLaneAI/pennylane | diff --git a/tests/ops/functions/test_equal.py b/tests/ops/functions/test_equal.py
index 5d8b2bf07..d72118c34 100644
--- a/tests/ops/functions/test_equal.py
+++ b/tests/ops/functions/test_equal.py
@@ -847,3 +847,15 @@ class TestEqual:
+ " depth larger than 0 is not yet implemented.",
):
... | [
"tests/ops/functions/test_equal.py::TestEqual::test_not_equal_different_inversion"
] | [
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops0]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops1]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops2]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_di... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/PennyLaneAI/pennylane/pull/2947"
... |
37f6ba89a4b461bb7e2855f2a86a8940cba8072d | 2025-01-05 13:19:47 | docker.io/swerebenchv2/pythainlp-pythainlp:1056-37f6ba8 | pythainlp__pythainlp-1056 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/pythainlp/util/syllable.py b/pythainlp/util/syllable.py
index 58eef09f..c8e5fb27 100644
--- a/pythainlp/util/syllable.py
+++ b/pythainlp/util/syllable.py
@@ -5,6 +5,7 @@
"""
Syllable tools
"""
+
import re
from pythainlp import thai_consonants, thai_tonemarks
@@ -23,9 +24,7 @@ spelling_class = {
tha... | Fixed #1055 bug: Tone detector + syllable sound bug
### What does this changes
Fixed #1055 bug: Tone detector + syllable sound bug
### How this fixes it
Add more rule
### Your checklist for this pull request
<!--- Please review the guidelines for contributing to this repository at: -->
<!--- https://gi... | bug: Tone detector + syllable sound bug
### Description
Hello, thanks for your work. First and foremost, I am not very skilled in thai, but I think there might be two errors in the functions mentioned above:
1. for `ประ`, `sound_syllable` is returning `live`, but afaik it is dead.
2. for `เอ`, as in the loanword ว... | PyThaiNLP/pythainlp | diff --git a/tests/core/test_util.py b/tests/core/test_util.py
index 5d674221..f0a8e31b 100644
--- a/tests/core/test_util.py
+++ b/tests/core/test_util.py
@@ -680,9 +680,14 @@ class UtilTestCase(unittest.TestCase):
("เพราะ", "dead"),
("เกาะ", "dead"),
("แคะ", "dead"),
+ ... | [
"tests/core/test_util.py::UtilTestCase::test_sound_syllable",
"tests/core/test_util.py::UtilTestCase::test_tone_detector"
] | [
"tests/core/test_util.py::UtilTestCase::test_collate",
"tests/core/test_util.py::UtilTestCase::test_convert_years",
"tests/core/test_util.py::UtilTestCase::test_count_thai_chars",
"tests/core/test_util.py::UtilTestCase::test_countthai",
"tests/core/test_util.py::UtilTestCase::test_date",
"tests/core/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": [
"http://www.thai-language.com/id/219142"
],
"in... |
8174b03b962165278dd65508bf0f947c98a1190a | 2019-08-18 06:46:16 | docker.io/swerebenchv2/python-attrs-attrs:563-8174b03 | python-attrs__attrs-563 | Function: attrs(*, auto_exc: bool = False, slots: bool = False, frozen: bool = False, eq: bool = True, order: bool = False, hash: Optional[bool] = None, init: bool = True, repr: bool = True, **kwargs)
Location: src/attr/_make.py
Inputs:
- auto_exc: when True, generates an exception‑style class.
- slots: whether to use ... | python | MIT | diff --git a/changelog.d/543.change.rst b/changelog.d/543.change.rst
new file mode 100644
index 0000000..906275e
--- /dev/null
+++ b/changelog.d/543.change.rst
@@ -0,0 +1,1 @@
+``@attr.s(auto_exc=True)`` now generates classes that are hashable by ID, as the documentation always claimed it would.
diff --git a/changelog.... | Make auto_exc=True classes hashable by ID
They now behave as the docs claim.
Fixes #543 | auto_exc's hashing behavior and its documentation do not match
The [documentation](https://github.com/python-attrs/attrs/blob/25a02bbc7b5309acebda20101125372d42c978db/src/attr/_make.py#L846) for `auto_exc` says:
```
- the values for *cmp* and *hash* are ignored and the instances compare
and hash by the i... | python-attrs/attrs | diff --git a/tests/test_dark_magic.py b/tests/test_dark_magic.py
index 49477a9..778fc9f 100644
--- a/tests/test_dark_magic.py
+++ b/tests/test_dark_magic.py
@@ -515,9 +515,8 @@ class TestDarkMagic(object):
@pytest.mark.parametrize("frozen", [True, False])
def test_auto_exc(self, slots, frozen):
"""
-... | [
"tests/test_dark_magic.py::TestDarkMagic::test_auto_exc[True-True]",
"tests/test_dark_magic.py::TestDarkMagic::test_auto_exc[True-False]",
"tests/test_dark_magic.py::TestDarkMagic::test_auto_exc[False-True]",
"tests/test_dark_magic.py::TestDarkMagic::test_auto_exc[False-False]"
] | [
"tests/test_dark_magic.py::TestDarkMagic::test_fields[C2]",
"tests/test_dark_magic.py::TestDarkMagic::test_fields[C2Slots]",
"tests/test_dark_magic.py::TestDarkMagic::test_asdict[C1]",
"tests/test_dark_magic.py::TestDarkMagic::test_asdict[C1Slots]",
"tests/test_dark_magic.py::TestDarkMagic::test_validator[C... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/python-attrs/attrs/blob/25a02bbc7b5... |
93342b97390f0d29bb89f22899a4ed7b4a6d4c79 | 2021-04-10 06:46:15 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2932-93342b9 | hypothesisworks__hypothesis-2932 | Function: builds(target, *args, **kwargs)
Location: hypothesis.strategies (accessible as `st.builds`)
Inputs:
- **target**: a callable or a type annotation. When `target` is a typing “new‑type” (e.g., `typing.NewType`) or a generic from `typing` (e.g., `typing.List[int]`, `typing.Optional[int]`), and no positional or k... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..57e61e5bd
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,4 @@
+RELEASE_TYPE: patch
+
+This patch improves an error message from :func:`~hypothesis.strategies.from_type`
+when :func:`~hypothesis... | New error message for `builds(Optional[x])` suggesting `from_type()`
Closes #2930. | Support `builds(Optional[MyDataclass])` or document alternative
```python
>>> import dataclasses
>>> @dataclasses.dataclass
... class A:
... b: int
```
Since `builds(A)` works, I was thinking I can just use `builds(Optional[A])`, since if `A` is a type, `Optional[A]` is also a type.
But it doesn't work:
... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_lookup.py b/hypothesis-python/tests/cover/test_lookup.py
index cf288c35b..b74eccc62 100644
--- a/hypothesis-python/tests/cover/test_lookup.py
+++ b/hypothesis-python/tests/cover/test_lookup.py
@@ -846,3 +846,16 @@ def test_resolves_type_of_builtin_types(t):
@given(st.fro... | [
"hypothesis-python/tests/cover/test_lookup.py::test_builds_suggests_from_type[List]",
"hypothesis-python/tests/cover/test_lookup.py::test_builds_suggests_from_type[Optional]"
] | [
"hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.ByteString]",
"hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.Callable]",
"hypothesis-python/tests/cover/test_lookup.py::test_resolve_typing_module[typing.ChainMap]",
"hypothesis-python/tests/cove... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
d700acff43de729ae5912342084b58ba24a6ca4a | 2021-12-03 14:15:15 | docker.io/swerebenchv2/pennylaneai-pennylane:1980-d700acf | pennylaneai__pennylane-1980 | Function: insert(circuit, op, op_args, position="all", before=False)
Location: pennylane.transforms.insert_ops.insert
Inputs:
- circuit: Union[callable, QuantumTape, Device] – the circuit to transform.
- op: Union[callable, Type[Operation]] – a single‑qubit operation class or a callable that creates the operation.
- op... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 31a9314cd..f0cef4ccb 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -60,6 +60,9 @@
<h3>Improvements</h3>
+* Insert transform now supports adding operation after or before certain specific gates.
+ [... | Add functionality to qml.transforms.insert
**Context:**
As discussed in #1876, some quality of life enhancements are made.
**Description of the Change:**
`before` argument can be used to specify whether to insert operation before or after
`position` can now take operations to insert only after specific gates
**Be... | Insert only for certain gates when using qml.transforms.insert
### Feature details
The `qml.transforms.insert()` transform was recently added in https://github.com/PennyLaneAI/pennylane/pull/1795, allowing users to insert a specified single qubit gate into a circuit with three orientations:
- at the start of the ci... | PennyLaneAI/pennylane | diff --git a/tests/transforms/test_insert_ops.py b/tests/transforms/test_insert_ops.py
index 14337234e..ee18a67cb 100644
--- a/tests/transforms/test_insert_ops.py
+++ b/tests/transforms/test_insert_ops.py
@@ -51,10 +51,11 @@ class TestInsert:
with pytest.raises(ValueError, match="Only single-qubit operations c... | [
"tests/transforms/test_insert_ops.py::TestInsert::test_before",
"tests/transforms/test_insert_ops.py::TestInsert::test_operation_as_position",
"tests/transforms/test_insert_ops.py::TestInsert::test_operation_list_as_position"
] | [
"tests/transforms/test_insert_ops.py::TestInsert::test_multiwire_op",
"tests/transforms/test_insert_ops.py::TestInsert::test_invalid_position[1]",
"tests/transforms/test_insert_ops.py::TestInsert::test_invalid_position[pos1]",
"tests/transforms/test_insert_ops.py::TestInsert::test_invalid_position[ABC]",
"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://github.com/PennyLaneAI/pennylane/pull/1795",
... |
97a05b4002c9387e72deee4fa978690b6092349e | 2019-06-10 19:20:12 | docker.io/swerebenchv2/maas-python-libmaas:227-97a05b4 | maas__python-libmaas-227 | No new interfaces are introduced. | python | custom-check-github | diff --git a/maas/client/viscera/block_devices.py b/maas/client/viscera/block_devices.py
index d9277d6..362bbec 100644
--- a/maas/client/viscera/block_devices.py
+++ b/maas/client/viscera/block_devices.py
@@ -123,25 +123,25 @@ class BlockDevice(Object, metaclass=BlockDeviceTypeMeta):
async def format(self, fstyp... | Fix issues where the new self._reset should be called instead of setting self._data. Fixes #226. | Once a vid is updated subsequent vlan attribute changes fail to save.
Commit 112ca7bd introduced a bug where once the vid is updated subsequent vlan attribute changes fail to save.
ubuntu@hoskins:~/python-libmaas$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(u... | maas/python-libmaas | diff --git a/maas/client/viscera/tests/test_vlans.py b/maas/client/viscera/tests/test_vlans.py
index a593694..827a0f4 100644
--- a/maas/client/viscera/tests/test_vlans.py
+++ b/maas/client/viscera/tests/test_vlans.py
@@ -217,6 +217,41 @@ class TestVlan(TestCase):
fabric_id=fabric_id, vid=vid, _vid=new_vid)... | [
"maas/client/viscera/tests/test_vlans.py::TestVlan::test__vlan_update_vid_twice"
] | [
"maas/client/viscera/tests/test_vlans.py::TestVlans::test__vlans_create",
"maas/client/viscera/tests/test_vlans.py::TestVlans::test__vlans_create_with_fabric",
"maas/client/viscera/tests/test_vlans.py::TestVlans::test__vlans_get_default",
"maas/client/viscera/tests/test_vlans.py::TestVlans::test__vlans_read",... | {
"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": [... |
89d58c2ec089f3df54ed6cc9279949b8e2bbcd29 | 2023-03-02 12:56:04 | docker.io/swerebenchv2/more-itertools-more-itertools:689-89d58c2 | more-itertools__more-itertools-689 | Function: combination_with_replacement_index(element, iterable)
Location: more_itertools.more.combination_with_replacement_index
Inputs: element – an iterable (tuple, list, etc.) representing a non‑decreasing combination (may be empty); iterable – an ordered collection of hashable items that defines the lexicographic o... | python | MIT | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 379f5f6..1e421f2 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -53,6 +53,7 @@ __all__ = [
'circular_shifts',
'collapse',
'combination_index',
+ 'combination_with_replacement_index',
'consecutive_groups',
... | Indexing of combinations with replacement
### Issue reference
Related to #684 and #685, and closes #685.
### Changes
This pull request implements the function `combination_with_replacement_index` as an analog to `combination_index`, but for `itertools.combinations_with_replacement` instead of `itertools.combinatio... | [Feature Request] inverse_nth_*
### Description
The inverse of `nth_combination`, `nth_permutation`, etc ... functions.
For example, it would have a signature `inverse_nth_combination(iterable, r, comb)`
and would return `list(combinations(iterable, r)).index(sorted(comb))`
without enumerating all combinations.... | more-itertools/more-itertools | diff --git a/tests/test_more.py b/tests/test_more.py
index 2eea0c6..aa5c3bf 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -12,6 +12,7 @@ from itertools import (
accumulate,
chain,
combinations,
+ combinations_with_replacement,
count,
cycle,
groupby,
@@ -4584,6 +4585,65 @@ ... | [
"tests/test_more.py::CombinationWithReplacementIndexTests::test_invalid_large",
"tests/test_more.py::CombinationWithReplacementIndexTests::test_invalid_match",
"tests/test_more.py::CombinationWithReplacementIndexTests::test_invalid_order",
"tests/test_more.py::CombinationWithReplacementIndexTests::test_long",... | [
"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": "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": ... |
3c6a33fab69e45e921379feddf8469143a5a06dd | 2022-08-16 08:04:28 | docker.io/swerebenchv2/myremylar-pygame-gui:322-3c6a33f | myremylar__pygame_gui-322 | Method: UIHorizontalScrollBar.set_scroll_from_start_percentage(self, new_start_percentage: float)
Location: pygame_gui.elements.ui_horizontal_scroll_bar.UIHorizontalScrollBar.set_scroll_from_start_percentage
Inputs: new_start_percentage – float in the range [0.0, 1.0] (clamped internally).
Outputs: None (the method u... | python | MIT | diff --git a/pygame_gui/elements/ui_drop_down_menu.py b/pygame_gui/elements/ui_drop_down_menu.py
index 2e1b663..12ce795 100644
--- a/pygame_gui/elements/ui_drop_down_menu.py
+++ b/pygame_gui/elements/ui_drop_down_menu.py
@@ -204,8 +204,15 @@ class UIExpandedDropDownState:
... | Change drop down to scroll to selected item in list
This happens when the drop down options list is expanded. The currently selected option is now highlighted in the list and, if necessary, the list is scrolled to include the option as near to the top of the visible options as possible.
fixes #161 | Item inside UIDropDownMenu should auto scroll to and selected when in expanded state
**Is your feature request related to a problem? Please describe.**
If UIDropDownMenu has many items, whenever I click the expand button, it just shows item start from index 0 of options_list whatever the item I have chosen.
**Des... | MyreMylar/pygame_gui | diff --git a/tests/test_elements/test_ui_horizontal_scroll_bar.py b/tests/test_elements/test_ui_horizontal_scroll_bar.py
index 14f0910..1a14f44 100644
--- a/tests/test_elements/test_ui_horizontal_scroll_bar.py
+++ b/tests/test_elements/test_ui_horizontal_scroll_bar.py
@@ -366,6 +366,17 @@ class TestUIHorizontalScrollBa... | [
"tests/test_elements/test_ui_horizontal_scroll_bar.py::TestUIHorizontalScrollBar::test_set_scroll_from_start_percentage",
"tests/test_elements/test_ui_selection_list.py::TestUISelectionList::test_get_single_selection_start_percentage",
"tests/test_elements/test_ui_vertical_scroll_bar.py::TestUIVerticalScrollBar... | [
"tests/test_elements/test_ui_horizontal_scroll_bar.py::TestUIHorizontalScrollBar::test_creation",
"tests/test_elements/test_ui_horizontal_scroll_bar.py::TestUIHorizontalScrollBar::test_rebuild",
"tests/test_elements/test_ui_horizontal_scroll_bar.py::TestUIHorizontalScrollBar::test_check_has_moved_recently",
"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
8454bc9a7146e2b648090e866d09054589070599 | 2024-12-12 18:21:48 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3875-8454bc9 | aws-cloudformation__cfn-lint-3875 | Method: _ForEachValueFnFindInMap.value(self, cfn, params, only_params, is_ref)
Location: src/cfnlint/template/transforms/_language_extensions.py
Inputs:
- **cfn**: the CloudFormation template object used for resolution.
- **params**: optional additional parameters (tests pass `None`).
- **only_params**: `bool` ind... | python | MIT-0 | diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py
index 5263cf686..3f1e38a86 100644
--- a/src/cfnlint/template/transforms/_language_extensions.py
+++ b/src/cfnlint/template/transforms/_language_extensions.py
@@ -403,11 +403,14 @@ class _ForEac... | Dont guess at mappings when values are static
*Issue #, if available:*
fix #3873
*Description of changes:*
- When doing language extension transform don't guess at a mapping value when the FindInMap values are static
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this... | FindInMap with DefaultValue vailidates unrelated Second Level Keys values against Property constraints
### CloudFormation Lint Version
1.22.0
### What operating system are you using?
fedora
### Describe the bug
When using `FindInMap` with a `DefaultValue` unrelated SecondLevelKey Values are validated aga... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/template/transforms/test_language_extensions.py b/test/unit/module/template/transforms/test_language_extensions.py
index f992f88cd..fabfb5279 100644
--- a/test/unit/module/template/transforms/test_language_extensions.py
+++ b/test/unit/module/template/transforms/test_language_extensions.py... | [
"test/unit/module/template/transforms/test_language_extensions.py::TestFindInMap::test_find_in_map_values_not_found_with_default",
"test/unit/module/template/transforms/test_language_extensions.py::TestFindInMap::test_find_in_map_values_strings_without_default"
] | [
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_collection_type",
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_identifier_type",
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_output_type",
"test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
20b496752ff693596907bc11e0acafbcdb97fdad | 2021-09-18 20:05:56 | docker.io/swerebenchv2/mit-ll-responsible-ai-hydra-zen:104-20b4967 | mit-ll-responsible-ai__hydra-zen-104 | Method: builds(hydra_target: Importable, *pos_args: Any, populate_full_signature: bool = False, hydra_partial: bool = False, hydra_recursive: Optional[bool] = None, hydra_convert: Optional[str] = None, frozen: bool = False, dataclass_name: Optional[str] = None, builds_bases: Tuple[Any, ...] = (), **kwargs_for_target) →... | python | MIT | diff --git a/.gitignore b/.gitignore
index b6e47617..0b7bbb4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -127,3 +127,16 @@ dmypy.json
# Pyre type checker
.pyre/
+
+# hydra-zen docs
+
+docs/source/_build
+docs/builds
+
+# pycharm
+.idea/
+
+# pyright
+node_modules/
+
+scratch/
\ No newline at end of file
diff --git... | Deprecate `builds(target=<target>, ...)`; make target positional-only
Closes #100
Before:
```python
builds(target=dict, a=1, b=2) # allowed
builds(dict, target=1) # raises (multiple values for target)
```
After:
```python
builds(target=dict, a=1, b=2) # Deprecated. Will raise: missing required p... | Change signature of builds to not occupy name "target"
Our signature for `builds`, `builds(target, ...)`, occupies the name `target` such that the following function is impossible to use with `builds`:
```python
def f(*, target): return target
builds(f, target=1) # TypeError: builds() got multiple values for ar... | mit-ll-responsible-ai/hydra-zen | diff --git a/tests/test_validation.py b/tests/test_validation.py
index e7e4da86..f88bf974 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -1,6 +1,5 @@
# Copyright (c) 2021 Massachusetts Institute of Technology
# SPDX-License-Identifier: MIT
-
import inspect
from collections import Counter
f... | [
"tests/test_validation.py::test_builds_no_args_raises",
"tests/test_validation.py::test_builds_no_positional_target_raises",
"tests/test_validation.py::test_target_as_kwarg_is_deprecated",
"tests/test_validation.py::test_builds_target_as_kwarg_is_still_correct",
"tests/test_validation.py::test_builds_with_t... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.python.org/dev/peps/pep-0570/"
],
... |
7a5f9ef94c64ff7661d980441f25fe16f88cfcf7 | 2024-04-13 18:59:50 | docker.io/swerebenchv2/myremylar-pygame-gui:580-7a5f9ef | myremylar__pygame_gui-580 | Method: IWindowInterface.layer(self) → int
Location: pygame_gui/core/interfaces/window_interface.py
Inputs: None (property getter)
Outputs: Returns the integer rendering layer of the window (read‑only).
Description: Provides the current drawing layer of a window; used by the window stack to order windows.
Method: IWin... | python | MIT | diff --git a/pygame_gui/core/interfaces/window_interface.py b/pygame_gui/core/interfaces/window_interface.py
index ea72445..2ed6162 100644
--- a/pygame_gui/core/interfaces/window_interface.py
+++ b/pygame_gui/core/interfaces/window_interface.py
@@ -7,13 +7,37 @@ import pygame
class IWindowInterface(metaclass=ABCMeta... | Add always on top feature to windows
fixes #564 | Add 'always on top' feature to windows & window stack
**Is your feature request related to a problem? Please describe.**
Allow any window to be set as 'always on top' so it will be drawn above all windows in the normal window stack. This will need a second 'always on top' stack above the normal window stack where th... | MyreMylar/pygame_gui | diff --git a/tests/test_core/test_window_stack.py b/tests/test_core/test_window_stack.py
index b98eabc..c97a369 100644
--- a/tests/test_core/test_window_stack.py
+++ b/tests/test_core/test_window_stack.py
@@ -3,6 +3,8 @@ import pygame
from pygame_gui.core.ui_window_stack import UIWindowStack
from pygame_gui.element... | [
"tests/test_core/test_window_stack.py::TestWindowStack::test_add_window_always_on_top",
"tests/test_core/test_window_stack.py::TestWindowStack::test_clear_with_always_on_top",
"tests/test_core/test_window_stack.py::TestWindowStack::test_remove_window_with_always_on_top",
"tests/test_core/test_window_stack.py:... | [
"tests/test_core/test_window_stack.py::TestWindowStack::test_creation",
"tests/test_core/test_window_stack.py::TestWindowStack::test_add_window",
"tests/test_core/test_window_stack.py::TestWindowStack::test_clear",
"tests/test_core/test_window_stack.py::TestWindowStack::test_remove_window",
"tests/test_core... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
8588548ba44ce444801d40544b008bdc516d1075 | 2025-03-06 21:41:07 | docker.io/swerebenchv2/openmdao-dymos:1146-8588548 | openmdao__dymos-1146 | Method: ControlInterpComp.__init__(self, control_options, time_units=None, grid_data, output_grid_data=None) Location: dymos/transcriptions/common/control_comp.py
Inputs:
- **control_options** (dict): Mapping of control names to option sub‑dicts (must include keys such as *units*, *shape*, *dynamic*, and the newly req... | python | Apache-2.0 | diff --git a/dymos/phase/phase.py b/dymos/phase/phase.py
index b83fa50e..e123f2b2 100644
--- a/dymos/phase/phase.py
+++ b/dymos/phase/phase.py
@@ -2632,7 +2632,7 @@ class Phase(om.Group):
# Assign control values
for name, options in phs.control_options.items():
- ip = ip_dict[f'control_gr... | Removed ControlGroup since ControlInterpComp handles all types of controls
### Summary
It is no longer necessary to have the ControlGroup since ControlInterpComp now handles both fully dynamic and polynomial controls.
### Related Issues
- Resolves #1128
### Backwards incompatibilities
None
### New De... | ControlGroup cleanup.
### Task Description
Previously `ControlGroup` existed to house separate `ControlInterpComp` and `PolynomialControlInterpComp` components. Since these have been united, there is no longer a reason for the `ControlGroup` to exist.
With the development of new Radau and GaussLobatto transcription... | OpenMDAO/dymos | diff --git a/dymos/transcriptions/common/test/test_control_group.py b/dymos/transcriptions/common/test/test_control_group.py
index 8990d34c..b2d6ed33 100644
--- a/dymos/transcriptions/common/test/test_control_group.py
+++ b/dymos/transcriptions/common/test/test_control_group.py
@@ -24,7 +24,7 @@ class MyODE(om.Explicit... | [
"dymos/transcriptions/common/test/test_control_group.py::TestControlInterpComp::test_poly_con_bug",
"dymos/transcriptions/common/test/test_control_interp_comp.py::TestControlRateComp::test_control_interp_matrix_2x2",
"dymos/transcriptions/common/test/test_control_interp_comp.py::TestControlRateComp::test_contro... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
fd7538f0e23a49ec34b636484de2d1b4b690c7fb | 2024-08-02 08:35:52 | docker.io/swerebenchv2/python-attrs-attrs:1321-fd7538f | python-attrs__attrs-1321 | Method: __attrs_init_subclass__(cls)
Location: Classmethod defined on a base class (can be any class, not necessarily an attrs‑decorated one) and invoked by the attrs class builder after the subclass has been fully assembled.
Inputs:
- cls (type): the subclass that has just been created by the attrs decorator.
Outputs... | python | MIT | diff --git a/README.md b/README.md
index bdb248c..ab78e4f 100644
--- a/README.md
+++ b/README.md
@@ -133,7 +133,7 @@ class SomeClass:
On the tin, *attrs* might remind you of `dataclasses` (and indeed, `dataclasses` [are a descendant](https://hynek.me/articles/import-attrs/) of *attrs*).
In practice it does a lot mo... | Add support for __attrs_init_subclass__
Fixes #595
https://attrs--1321.org.readthedocs.build/en/1321/init.html#attrs-and-init-subclass | Attr-compatible __init_subclass__ variant: __attr_init_subclass__
Say I have a base class Foo, where for every derived class I want to compute some class fields. This can easily be done with `__init_subclass__` in python. However, it's not possible to use the class's attribute data in `__init_subclass__`, since they wi... | python-attrs/attrs | diff --git a/tests/test_functional.py b/tests/test_functional.py
index 712e6ed..05a9aac 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -4,7 +4,6 @@
End-to-end tests.
"""
-
import inspect
import pickle
@@ -744,3 +743,21 @@ class TestFunctional:
pass
assert hash(Ha... | [
"tests/test_functional.py::TestFunctional::test_init_subclass[True]",
"tests/test_functional.py::TestFunctional::test_init_subclass[False]"
] | [
"tests/test_functional.py::TestFunctional::test_fields[C2]",
"tests/test_functional.py::TestFunctional::test_fields[C2Slots]",
"tests/test_functional.py::TestFunctional::test_asdict[C1]",
"tests/test_functional.py::TestFunctional::test_asdict[C1Slots]",
"tests/test_functional.py::TestFunctional::test_valida... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0ceb41015f8b7081a891f17df0fafe3728e130b7 | 2024-06-27 22:56:00 | docker.io/swerebenchv2/python-zk-kazoo:755-0ceb410 | python-zk__kazoo-755 | Function: create_tcp_connection(module, address, hostname=None, timeout=None, use_ssl=False, ca=None, keyfile=None, keyfile_password=None, verify_certs=True, check_hostname=False, options=None, ciphers=None)
Location: kazoo.handlers.utils
Inputs:
- **module**: a socket‑like module providing `socket` and `getaddrinfo`.... | python | Apache-2.0 | diff --git a/kazoo/client.py b/kazoo/client.py
index 27b7c38..7ee4e83 100644
--- a/kazoo/client.py
+++ b/kazoo/client.py
@@ -120,6 +120,7 @@ class KazooClient(object):
ca=None,
use_ssl=False,
verify_certs=True,
+ check_hostname=False,
**kwargs,
):
"""Create a :cl... | Added support for SNI
Fixes #754
## Why is this needed?
Supports SNI
## Proposed Changes
Add server_hostname to the wrap call
## Does this PR introduce any breaking change?
No
| Add support for SNI hostnames
## What would you like to be added
Send the SNI header with TLS connections.
## Why is this needed
Currently when connecting to TLS hosts, only the IP is used. Some sites are behind passthrough proxies that proxy based upon hostname in the SNI header. Without support for SNI, thes... | python-zk/kazoo | diff --git a/kazoo/tests/test_utils.py b/kazoo/tests/test_utils.py
index b56744c..96d484a 100644
--- a/kazoo/tests/test_utils.py
+++ b/kazoo/tests/test_utils.py
@@ -30,6 +30,59 @@ class TestCreateTCPConnection(unittest.TestCase):
timeout = call_args[0][1]
assert timeout >= 0, "... | [
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_ssl_server_check_hostname",
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_ssl_server_check_hostname_config_validation",
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_ssl_server_hostname"
] | [
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_negative_timeout",
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_slow_connect",
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_timeout_arg",
"kazoo/tests/test_utils.py::TestCreateTCPConnection::test_timeout_arg_eventlet",
"kazo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [... |
ea84f22423bccb022f088deec2fe081f1f1fa29a | 2024-08-16 16:59:34 | docker.io/swerebenchv2/aio-libs-aiohttp:8720-ea84f22 | aio-libs__aiohttp-8720 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/8720.bugfix.rst b/CHANGES/8720.bugfix.rst
new file mode 100644
index 000000000..9941be275
--- /dev/null
+++ b/CHANGES/8720.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed an edge case in the Python parser when chunk separators happen to align with network chunks -- by :user:`Dreamsorcerer`.
diff --git a/aiohttp/... | Fix Python parser when chunk separators align
Fixes #3904. | "ClientPayloadError: Response payload is not completed" with https://www.тв-програма.bg
```python
import aiohttp
import pytest
async def fetch():
async with aiohttp.ClientSession() as session:
remote_resp = await session.request("GET", "https://www.тв-програма.bg")
print(remote_resp)
... | aio-libs/aiohttp | diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py
index 3dc650d38..17352ba6e 100644
--- a/tests/test_http_parser.py
+++ b/tests/test_http_parser.py
@@ -1461,6 +1461,29 @@ def test_parse_chunked_payload_empty_body_than_another_chunked(
assert b"second" == b"".join(d for d in payload._buffer)
+a... | [
"tests/test_http_parser.py::test_parse_chunked_payload_split_chunks[py-parser-pyloop]"
] | [
"tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]",
"tests/test_http_parser.py::test_reject_obsolete_line_folding[py-parser-pyloop]",
"tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-\"]",
"tests/test_http_pa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.тв-програма.bg"
],
"intent_complet... |
3fc7ae0d2ec967269f8a6db947d20d86a674ded5 | 2023-09-01 09:19:56 | docker.io/swerebenchv2/stfc-psyclone:2301-3fc7ae0 | stfc__psyclone-2301 | Method: GOLoop.independent_iterations(self, test_all_variables=False, signatures_to_ignore=None, dep_tools=None)
Location: src/psyclone/gocean1p0.py
Inputs:
- test_all_variables: bool (optional, default False) – if True, all variable accesses are checked; otherwise stop at the first non‑independent access.
- signat... | python | BSD-3-Clause | diff --git a/changelog b/changelog
index 667e2962f..f52c414c2 100644
--- a/changelog
+++ b/changelog
@@ -590,6 +590,8 @@
198) PR #2283 for #2282 and #2286. Adds a get_ubound_expression
method to ArrayMixin (analagous to get_lbound_expression).
+ 199) PR #2293 for #2301. Add 'is_independent' property/query to Loop... | (Closes #2293) Add 'is_independent' property/query to Loop
This will enable the dependence analysis to be made domain-specific in a natural and efficient manner. | LFRic-specific Dependency Analysis
As part of #2197, we are moving to using pointers to pass data to kernel calls so as to avoid accessing structures within an OpenACC region (e.g. `my_proxy%data`). However, the Dependence Analysis now sees that we are passing an array to a kernel and, by default, we give all such argu... | stfc/PSyclone | diff --git a/src/psyclone/tests/domain/gocean/goloop_test.py b/src/psyclone/tests/domain/gocean/goloop_test.py
index e2935ada1..5af500203 100644
--- a/src/psyclone/tests/domain/gocean/goloop_test.py
+++ b/src/psyclone/tests/domain/gocean/goloop_test.py
@@ -1,7 +1,7 @@
# ------------------------------------------------... | [
"src/psyclone/tests/domain/gocean/goloop_test.py::test_independent_iterations",
"src/psyclone/tests/domain/lfric/lfric_loop_test.py::test_loop_independent_iterations[False]",
"src/psyclone/tests/domain/lfric/lfric_loop_test.py::test_loop_independent_iterations[True]",
"src/psyclone/tests/psyir/nodes/loop_test... | [
"src/psyclone/tests/domain/gocean/goloop_test.py::test_goloop_no_parent",
"src/psyclone/tests/domain/gocean/goloop_test.py::test_goloop_no_children",
"src/psyclone/tests/domain/gocean/goloop_test.py::test_goloop_create",
"src/psyclone/tests/domain/gocean/goloop_test.py::test_goloop_properties_getters_and_sett... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
c72ab6a2ed091bbca1d4847fbe6df6e8be4d2d8f | 2023-04-25 20:11:25 | docker.io/swerebenchv2/agnostiqhq-covalent:1599-c72ab6a | agnostiqhq__covalent-1599 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 87dc6045..a70d62af 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Result status comparison
- Raise error on extra args/kwargs
+- Fixed redispatching and trigger server ad... | Fixed redispatch and trigger server address passing in base trigger
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If ... | Make triggers compatible with self-hosted
### Environment
- **Covalent version**: 0.202.0rc0
- **Python version**: 3.8.13
- **Operating system**: MacOS Ventura M1
### What is happening?
When using the client machine as the Trigger server and self-hosted as the Dispatcher, there are two sets of errors that come u... | AgnostiqHQ/covalent | diff --git a/tests/covalent_tests/triggers/base_test.py b/tests/covalent_tests/triggers/base_test.py
index 6d98791c..bcf4af9f 100644
--- a/tests/covalent_tests/triggers/base_test.py
+++ b/tests/covalent_tests/triggers/base_test.py
@@ -33,7 +33,7 @@ def test_register(mocker):
"""
mock_config = "mock-config"
... | [
"tests/covalent_tests/triggers/base_test.py::test_do_redispatch[True-False]",
"tests/covalent_tests/triggers/base_test.py::test_do_redispatch[False-False]"
] | [
"tests/covalent_tests/triggers/base_test.py::test_register",
"tests/covalent_tests/triggers/base_test.py::test_get_status[True-mock_status0]",
"tests/covalent_tests/triggers/base_test.py::test_get_status[True-mock_status1]",
"tests/covalent_tests/triggers/base_test.py::test_get_status[False-mock_status2]",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
bd5e5fa3c7a44293de03dec9e6a4b8ab6835caf7 | 2024-08-30 14:57:47 | docker.io/swerebenchv2/fsspec-universal-pathlib:261-bd5e5fa | fsspec__universal_pathlib-261 | Method: UPath.samefile(self, other_path) -> bool
Location: upath/core.py (UPath class)
Inputs:
- other_path: a path-like object; can be another UPath instance, a string, or a pathlib.Path. The method resolves the argument to a UPath for stat comparison.
Outputs:
- Returns True if the two paths refer to the same under... | python | MIT | diff --git a/upath/_stat.py b/upath/_stat.py
index 5a4f0b1..c2ef5a0 100644
--- a/upath/_stat.py
+++ b/upath/_stat.py
@@ -142,6 +142,12 @@ class UPathStatResult:
seq_attrs = ", ".join(map("{0[0]}={0[1]}".format, zip(self._fields, self)))
return f"{cls_name}({seq_attrs}, info={self._info!r})"
+ def... | Implement UPath.samefile
Closes #246 | samefile() is not implemented
Is there a plan for implementing `UPath.samefile()`? I can see how such a method might be difficult to define universally, and that it isn't the same thing as `UPath.__eq__()`, which is implemented, but this broke some code of mine that was usually using `Path.samefile()` and then failed w... | fsspec/universal_pathlib | diff --git a/upath/tests/cases.py b/upath/tests/cases.py
index d865d53..1d50af5 100644
--- a/upath/tests/cases.py
+++ b/upath/tests/cases.py
@@ -317,9 +317,6 @@ class BaseTests:
expected = [*pathlib_base.rglob(pattern)]
assert len(result) == len(expected)
- def test_samefile(self):
- pass
... | [
"upath/tests/implementations/test_data.py::TestUPathDataPath::test_samefile"
] | [
"upath/tests/implementations/test_data.py::TestUPathDataPath::test_cwd",
"upath/tests/implementations/test_data.py::TestUPathDataPath::test_home",
"upath/tests/implementations/test_data.py::TestUPathDataPath::test_stat",
"upath/tests/implementations/test_data.py::TestUPathDataPath::test_chmod",
"upath/tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
85473204ac7f0174947342d2d3d74aeff7a0b63c | 2022-06-04 18:26:41 | docker.io/swerebenchv2/neogeny-tatsu:265-8547320 | neogeny__tatsu-265 | Method: tatsu.parser.Parser.parse(self, text, start=None, rule_name=None, parseinfo=False, semantics=None, filename=None, **kwargs)
Location: `tatsu/parser.py` (Parser class)
Inputs:
- **text** – the source to be parsed (str or a Tokenizer instance).
- **start** – name of the starting rule; if provided it overr... | python | custom-check-github | diff --git a/.pylintrc b/.pylintrc
index bb78ebb..1f1165a 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -165,7 +165,7 @@ disable=
# c-extension-no-member, # I1101
# literal-comparison, # R0123
# comparison-with-itself, # R0124
- no-self-use, # R0201
+ # no-self-use, # R0201 / moved to extension
... | [codegen] Use modern super() call in generated ModelBuilderSemantics
Fixes #259. | Generated semantics use old syntax for super() in __init__() | neogeny/TatSu | diff --git a/test/__init__.py b/test/__init__.py
index ccdd1d1..e69de29 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -1,2 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import generator_stop
diff --git a/test/__main__.py b/test/__main__.py
index 273944e..a329e21 100644
--- a/test/__main__.py
+++ b/test/__... | [
"test/parsing_test.py::ParsingTests::test_start"
] | [
"test/ast_test.py::ASTTests::test_add",
"test/ast_test.py::ASTTests::test_ast",
"test/ast_test.py::ASTTests::test_empty",
"test/ast_test.py::ASTTests::test_init",
"test/ast_test.py::ASTTests::test_iter",
"test/buffering_test.py::BufferingTests::test_goto_consistency",
"test/buffering_test.py::BufferingT... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
eb3d324c05f0f998e706f06563c58c36f81ecaa7 | 2023-03-29 16:15:24 | docker.io/swerebenchv2/arm-doe-act:651-eb3d324 | arm-doe__act-651 | Method: HistogramDisplay.plot_stacked_bar_graph(self, field, dsname=None, bins=10, sortby_field=None, sortby_bins=None, subplot_index=(0,), set_title=None, density=False, hist_kwargs=dict(), **kwargs)
Location: act/plotting/histogramdisplay.py – class HistogramDisplay
Inputs:
- **field** (str): name of the variable in ... | python | custom-check-github | diff --git a/act/plotting/histogramdisplay.py b/act/plotting/histogramdisplay.py
index 6b73bb2ee..3fdd97e13 100644
--- a/act/plotting/histogramdisplay.py
+++ b/act/plotting/histogramdisplay.py
@@ -92,12 +92,13 @@ class HistogramDisplay(Display):
self,
field,
dsname=None,
- bins=None,
+... | MNT: Missing kwargs from axes.step.
- [x] Closes #650
- [x] PEP8 Standards or use of linter
- [x] Xarray Dataset or DataArray variable naming follows 'ds' or 'da' naming
| Missing kwargs in plot_stacked_bar_graph
### Description
I just saw this in the code and wanted to report it. I think we need to pass in kawrgs to the below line in plot_stacked_bar_graph.
'''
my_hist, bins = np.histogram(xdata.values.flatten(), bins=bins, density=density)
''' | ARM-DOE/ACT | diff --git a/act/tests/test_plotting.py b/act/tests/test_plotting.py
index aed778d0e..5d3f77136 100644
--- a/act/tests/test_plotting.py
+++ b/act/tests/test_plotting.py
@@ -3,6 +3,7 @@ import glob
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
+from numpy.testing import assert_allclose
import ... | [
"act/tests/test_plotting.py::test_histogram_kwargs"
] | [
"act/tests/test_plotting.py::test_plot",
"act/tests/test_plotting.py::test_errors",
"act/tests/test_plotting.py::test_histogram_errors",
"act/tests/test_plotting.py::test_xsection_errors",
"act/tests/test_plotting.py::test_multidataset_plot_tuple",
"act/tests/test_plotting.py::test_multidataset_plot_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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
048e401e83f95a31189a95decf42fe8ef48cbdc2 | 2024-06-16 10:04:25 | docker.io/swerebenchv2/getmoto-moto:7773-048e401 | getmoto__moto-7773 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py
index ef82ebb3e..ca92ac9bb 100644
--- a/moto/elbv2/models.py
+++ b/moto/elbv2/models.py
@@ -197,6 +197,16 @@ class FakeTargetGroup(CloudFormationModel):
"Target deregistration is in progress",
)
+ if target["id"]... | ELBv2 - describe_target_health() should detect unknown/never-registered instances
Fixes #7692 | ELBV2 describe_target_health on deregistered target should return a state of "unused" instead of "unavailable"
As per this documentation - https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html
The `unavailable` state is related to `Target.HealthCheckDisabled` when health c... | getmoto/moto | diff --git a/tests/test_elbv2/test_elbv2_target_health.py b/tests/test_elbv2/test_elbv2_target_health.py
index 847272e5d..2647839bd 100644
--- a/tests/test_elbv2/test_elbv2_target_health.py
+++ b/tests/test_elbv2/test_elbv2_target_health.py
@@ -286,8 +286,6 @@ sudo systemctl enable httpd"""
}
]
... | [
"tests/test_elbv2/test_elbv2_target_health.py::test_describe_unknown_targets"
] | [
"tests/test_elbv2/test_elbv2_target_health.py::test_register_targets"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.aws.amazon.com/elasticloadbalancing/latest/... |
76d2b873caa22ce88c79587b522696d468097ee5 | 2025-05-22 01:38:06 | docker.io/swerebenchv2/tatuylonen-wiktextract:1220-76d2b87 | tatuylonen__wiktextract-1220 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/wiktextract/extractor/es/conjugation.py b/src/wiktextract/extractor/es/conjugation.py
index b723df35..86a475ae 100644
--- a/src/wiktextract/extractor/es/conjugation.py
+++ b/src/wiktextract/extractor/es/conjugation.py
@@ -36,6 +36,31 @@ class SpanHeader:
span: int
+# https://en.wikipedia.org/w... | [es] translate pronoun tags
close #1207 | [es] Issues with conjugation parsing
I'm using the Spanish Wiktionary extract from Kaikki (specifically https://kaikki.org/dictionary/downloads/es/es-extract.jsonl). I noticed some inconsistencies in the extracted verb conjugations.
**First**: There are some verbs where the form contains footnotes (e.g., a reference f... | tatuylonen/wiktextract | diff --git a/tests/test_es_conj.py b/tests/test_es_conj.py
index e8036c4e..774cd8b0 100644
--- a/tests/test_es_conj.py
+++ b/tests/test_es_conj.py
@@ -73,12 +73,24 @@ etymology text
{"form": "haber dado", "tags": ["impersonal", "infinitive"]},
{
"form": "diera",
- ... | [
"tests/test_es_conj.py::TestESConjugation::test_es_v"
] | [
"tests/test_es_conj.py::TestESConjugation::test_only_add_conj_data_to_verb"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/downloads/es/es-extract.... |
adf9ab08c6d7b39b303374a430623846bc6548d3 | 2024-05-16 01:32:11 | docker.io/swerebenchv2/igorbenav-fastcrud:87-adf9ab0 | igorbenav__fastcrud-87 | Method: FilterConfig.__init__(self, **filters: Any)
Location: fastcrud/endpoint/helper.py
Inputs: Arbitrary keyword arguments where each key is a filter name and each value is the default filter value (must be None, str, int, float, or bool).
Outputs: Instance of FilterConfig containing a `filters` dictionary mergin... | python | MIT | diff --git a/docs/advanced/endpoint.md b/docs/advanced/endpoint.md
index f6e64bf..d007402 100644
--- a/docs/advanced/endpoint.md
+++ b/docs/advanced/endpoint.md
@@ -438,6 +438,102 @@ This setup ensures that the soft delete functionality within your application ut
By specifying custom column names for soft deletion, ... | [WIP] Filters in Automatic Endpoints
This is a work in progress, but it will close #15. This PR adds optional filters to automatic endpoints.
- [x] Create a class to validate passed filters
- [x] Validate that filters are indeed columns of the db
- [x] Create function to dynamically add filters to endpoints
- [x]... | Add Automatic Filters for Auto Generated Endpoints
**Is your feature request related to a problem? Please describe.**
I would like to be able to filter get_multi endpoint.
**Describe the solution you'd like**
I want to be filtering and searching in the get_multi endpoint. This is such a common feature in most CRUD... | igorbenav/fastcrud | diff --git a/tests/sqlalchemy/conftest.py b/tests/sqlalchemy/conftest.py
index 18b325b..b245109 100644
--- a/tests/sqlalchemy/conftest.py
+++ b/tests/sqlalchemy/conftest.py
@@ -13,7 +13,7 @@ from sqlalchemy.sql import func
from fastcrud.crud.fast_crud import FastCRUD
from fastcrud.endpoint.crud_router import crud_r... | [
"tests/sqlalchemy/core/test_filter_config.py::test_filter_config_with_invalid_default_value",
"tests/sqlalchemy/core/test_filter_config.py::test_filter_config_with_valid_default_values",
"tests/sqlalchemy/core/test_filter_config.py::test_filter_config_get_params",
"tests/sqlalchemy/endpoint/test_get_items.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.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/arthurio/fastapi-filter",
"ht... |
d334d8220a96e6488deded07a7a41ad80dfa3dc5 | 2021-03-23 22:10:55 | docker.io/swerebenchv2/pallets-click:1822-d334d82 | pallets__click-1822 | Function: style(text, fg=None, bg=None, bold=None, dim=None, underline=None, overline=None, italic=None, blink=None, reverse=None, strikethrough=None, reset=True)
Location: click.termui.style
Inputs:
- text: str – the string to style.
- fg: optional color name, integer, or RGB tuple – foreground color.
- bg: optional c... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index b88d16f..907e21a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -174,7 +174,8 @@ Unreleased
addition to its type. :issue:`457`
- ``confirmation_prompt`` can be set to a custom string. :issue:`723`
- Allow styled output in Jupyter on Windows. :issue:`1271`
-- ``st... | Overline and italic support
This adds italics and overline support to `termui.style`
- fixes #1821
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [x] Add or update relevant docs, in the docs folder and in code.
- [x] Add an entry in `CH... | Italic and overline aren't supported in `style`
Most terminal programs are capable of presenting italic and overlined fonts.
This is solvable with a relatively trivial change to termui.style
| pallets/click | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 441794b..3150b09 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -64,10 +64,15 @@ def test_echo_custom_file():
({"bg": "white"}, "\x1b[47mx y\x1b[0m"),
({"bg": 91}, "\x1b[48;5;91mx y\x1b[0m"),
({"bg": (135, 0, 175)}, "... | [
"tests/test_utils.py::test_styling[styles21-\\x1b[55mx",
"tests/test_utils.py::test_styling[styles22-\\x1b[23mx"
] | [
"tests/test_utils.py::test_echo",
"tests/test_utils.py::test_echo_custom_file",
"tests/test_utils.py::test_styling[styles0-\\x1b[30mx",
"tests/test_utils.py::test_styling[styles1-\\x1b[31mx",
"tests/test_utils.py::test_styling[styles2-\\x1b[32mx",
"tests/test_utils.py::test_styling[styles3-\\x1b[33mx",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
04d79bd34c0543f023314960dd17e6440ee374c3 | 2025-01-19 09:35:21 | docker.io/swerebenchv2/mpmath-mpmath:902-04d79bd | mpmath__mpmath-902 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/ctx_fp.py b/mpmath/ctx_fp.py
index 79cb6ba..9e931cf 100644
--- a/mpmath/ctx_fp.py
+++ b/mpmath/ctx_fp.py
@@ -196,16 +196,40 @@ def _is_real_type(ctx, z):
def _is_complex_type(ctx, z):
return isinstance(z, complex)
- def hypsum(ctx, p, q, types, coeffs, z, maxterms=6000, **kwargs):... | Special case in ctx.hypsum for infinite z
Closes #511 | Unexpected Result from laguerre with inf input
mpmath version: 1.1.0
I'm no expert on this function, but it appears that the expected behavior for `laguerre(1, a, b)` is to return `1 + a - b`. SciPy agrees with this. However, when `b` is `inf`, the return appears to consistently be `1 + a` when one might expect a nega... | mpmath/mpmath | diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py
index c57ec95..1176fb4 100644
--- a/mpmath/tests/test_functions2.py
+++ b/mpmath/tests/test_functions2.py
@@ -165,6 +165,8 @@ def test_hyper_misc():
mp.dps = 25
v = mpc('1.2282306665029814734863026', '-0.1225033830118305184672133')... | [
"mpmath/tests/test_functions2.py::test_hyper_2f1_hard",
"mpmath/tests/test_functions2.py::test_issue_511"
] | [
"mpmath/tests/test_functions2.py::test_bessel",
"mpmath/tests/test_functions2.py::test_issue_877",
"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",
"mpm... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
03b4bcab4efcb0ca5493ea29c1aafba7e2b1197e | 2021-01-11 08:22:59 | docker.io/swerebenchv2/getindata-kedro-kubeflow:27-03b4bca | getindata__kedro-kubeflow-27 | Method: PluginConfig.__init__(self, raw_config: dict)
Location: kedro_kubeflow/config.py
Inputs:
- **raw_config** – dictionary that must contain at least a ``host`` key and optionally a ``run_config`` key (itself a dict for runtime settings such as ``volume``).
Outputs:
- Returns a ``PluginConfig`` instance e... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bee54ce..192d76e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@
- Added sample support for [TemplatedConfigLoader](https://kedro.readthedocs.io/en/latest/kedro.config.TemplatedConfigLoader.html)
- MLFlow support updated to not use nested runs.
- Simple con... | KFPClient adjusted to new config, ability to skip volume init
#### Description
* KFP Client was adjusted to the new object-like configuration
* Ability to skip volume init using `skip-init` flag in the config file (in case there is no raw data in the image)
Resolves #24
##### PR Checklist
- [x] Tests added
... | Allow to skip volume init
In case if there is no raw data in the image, `data-volume-init` step is not needed.
To be controlled via config: `volume.skip_init = true` | getindata/kedro-kubeflow | diff --git a/tests/test_mod.py b/tests/test_mod.py
index 48be56f..ba68d60 100644
--- a/tests/test_mod.py
+++ b/tests/test_mod.py
@@ -9,6 +9,7 @@ import kfp
from google.auth.exceptions import DefaultCredentialsError
from kedro.pipeline import Pipeline, node
+from kedro_kubeflow.config import PluginConfig
from kedro... | [
"tests/test_mod.py::TestKubeflowClient::test_should_compile_pipeline",
"tests/test_mod.py::TestKubeflowClient::test_should_compile_pipeline_with_modified_pull_policy",
"tests/test_mod.py::TestKubeflowClient::test_should_disable_old_runs_before_schedule",
"tests/test_mod.py::TestKubeflowClient::test_should_err... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
cc1b2f7ec575848f3a6bff7c7acef32e4b68994f | 2024-09-12 18:12:38 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3686-cc1b2f7 | aws-cloudformation__cfn-lint-3686 | Method: Pattern.pattern(self, validator: Validator, patrn: str, instance: Any, schema: Any) -> ValidationResult
Location: cfnlint.rules.resources.properties.Pattern
Inputs:
- validator: a JSON‑schema Validator containing the template context (parameters, transforms, etc.).
- patrn: the regular‑expression pattern string... | python | MIT-0 | diff --git a/src/cfnlint/context/context.py b/src/cfnlint/context/context.py
index 0773d798b..e75efeb1b 100644
--- a/src/cfnlint/context/context.py
+++ b/src/cfnlint/context/context.py
@@ -8,6 +8,7 @@ from __future__ import annotations
from abc import ABC, abstractmethod
from collections import deque
from dataclasse... | Escape SSM pattern matching when using SAM and SSM
*Issue #, if available:*
fix #3640
*Description of changes:*
- Escape SSM pattern matching when using SAM and SSM
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| seeing E3031 for valid SSM
### CloudFormation Lint Version
1.11.0
### What operating system are you using?
Mac/Ubuntu
### Describe the bug
The linter is raising a `E3031` error saying
```shell
'<redacted>' does not match '^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/resources/properties/test_pattern_ssm.py b/test/unit/rules/resources/properties/test_pattern_ssm.py
new file mode 100644
index 000000000..6836cc18a
--- /dev/null
+++ b/test/unit/rules/resources/properties/test_pattern_ssm.py
@@ -0,0 +1,70 @@
+"""
+Copyright Amazon.com, Inc. or its affiliate... | [
"test/unit/rules/resources/properties/test_pattern_ssm.py::test_validate[Valid"
] | [
"test/unit/rules/resources/properties/test_pattern_ssm.py::test_validate[Invalid"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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":... |
15089219bdb609b6b5149fbe1aa520b98dc1b52d | 2022-10-27 20:40:57 | docker.io/swerebenchv2/agnostiqhq-covalent:1392-1508921 | agnostiqhq__covalent-1392 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e6ba6955..a613f6ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for transferring the contents of folders to and from S3 buckets using the file transfer module.
... | Ensure that each node output is a TransportableObject when printing
Convert None outputs to TransportableObject(None)
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the righ... | Result object cannot be printed if a node fails
Consider the following trivial workflow:
```python
@ct.electron(executor="local")
def task():
raise RuntimeError("error")
@ct.lattice(executor="local")
def workflow():
return task()
```
I cannot print the result object:
```
dispatch_id = ct.dispatch(workflow)()
... | AgnostiqHQ/covalent | diff --git a/tests/covalent_tests/results_manager_tests/results_test.py b/tests/covalent_tests/results_manager_tests/results_test.py
index 9c0da777..538a3ecb 100644
--- a/tests/covalent_tests/results_manager_tests/results_test.py
+++ b/tests/covalent_tests/results_manager_tests/results_test.py
@@ -88,6 +88,29 @@ def re... | [
"tests/covalent_tests/results_manager_tests/results_test.py::test_str_result"
] | [
"tests/covalent_tests/results_manager_tests/results_test.py::test_get_node_error",
"tests/covalent_tests/results_manager_tests/results_test.py::test_get_all_node_results",
"tests/covalent_tests/results_manager_tests/results_test.py::test_result_root_dispatch_id",
"tests/covalent_tests/results_manager_tests/re... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
33f829acff781ae8ec240950d37c63c8ef131eda | 2020-02-11 18:36:01 | docker.io/swerebenchv2/ucfopen-canvasapi:352-33f829a | ucfopen__canvasapi-352 | Method: Course.create_late_policy(self, **kwargs)
Location: canvasapi/course.py – defined in class Course
Inputs: **kwargs – keyword arguments that map to the Canvas “late_policy” JSON payload (e.g., missing_submission_deduction, late_submission_interval, etc.). No positional arguments besides the implicit ``self``.
Ou... | python | MIT | diff --git a/canvasapi/course.py b/canvasapi/course.py
index a3850fd..839958a 100644
--- a/canvasapi/course.py
+++ b/canvasapi/course.py
@@ -358,6 +358,26 @@ class Course(CanvasObject):
)
return GroupCategory(self._requester, response.json())
+ def create_late_policy(self, **kwargs):
+ """... | Added the create, edit and get late policy endpoints fixes #326
# Adding new endpoints
* Added get a late policy method
* Added create a late policy method
* Added patch a late policy method
Fixes #326
| Late Policy
**What resource needs additional coverage?**
Late Policy
**What endpoints need to be covered?**
https://canvas.instructure.com/doc/api/late_policy.html
- [ ] Get a late policy
- [ ] Create a late policy
- [ ] Patch a late policy
| ucfopen/canvasapi | diff --git a/tests/fixtures/course.json b/tests/fixtures/course.json
index faf198b..7346d0b 100644
--- a/tests/fixtures/course.json
+++ b/tests/fixtures/course.json
@@ -2088,6 +2088,51 @@
},
"status_code": 200
},
+ "get_late_policy": {
+ "method": "GET",
+ "endpoint": "courses/1/late_policy",
+ "data": {
+ ... | [
"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://canvas.instructure.com/doc/api/late_policy.htm... |
8c1c9f2d260ef3e4e8c279db708ae5d6152a49b2 | 2024-04-15 00:26:41 | docker.io/swerebenchv2/amaranth-lang-amaranth:1334-8c1c9f2 | amaranth-lang__amaranth-1334 | No new interfaces are introduced. | python | BSD-2-Clause | diff --git a/amaranth/hdl/_dsl.py b/amaranth/hdl/_dsl.py
index 9aee72a..5b24275 100644
--- a/amaranth/hdl/_dsl.py
+++ b/amaranth/hdl/_dsl.py
@@ -191,9 +191,11 @@ class _ModuleBuilderDomainSet:
raise TypeError("Only clock domains may be added to `m.domains`, not {!r}"
.format(do... | hdl._dsl: improve error message on `m.domains.cd_foo = ...`.
Fixes #1331. | Unclear error message on `m.domains.cd_tx = ClockDomain()`
One could reasonably write the following code:
```py
m.domains.cd_tx = ClockDomain()
```
This fails with:
```
NameError: Clock domain name 'rx' must match name in `m.domains.cd_rx += ...` syntax
```
It fails because the `cd_` prefix is stripped ... | amaranth-lang/amaranth | diff --git a/tests/test_hdl_dsl.py b/tests/test_hdl_dsl.py
index ca9c4f4..68a4522 100644
--- a/tests/test_hdl_dsl.py
+++ b/tests/test_hdl_dsl.py
@@ -930,7 +930,7 @@ class DSLTestCase(FHDLTestCase):
def test_domain_add_wrong_name(self):
m = Module()
with self.assertRaisesRegex(NameError,
- ... | [
"tests/test_hdl_dsl.py::DSLTestCase::test_bug_1331",
"tests/test_hdl_dsl.py::DSLTestCase::test_domain_add_wrong_name"
] | [
"tests/test_hdl_dsl.py::DSLTestCase::test_Case_after_Default_wrong",
"tests/test_hdl_dsl.py::DSLTestCase::test_Case_bits_wrong",
"tests/test_hdl_dsl.py::DSLTestCase::test_Case_outside_Switch_wrong",
"tests/test_hdl_dsl.py::DSLTestCase::test_Case_pattern_wrong",
"tests/test_hdl_dsl.py::DSLTestCase::test_Case... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
92804498e306dd11091b8e4607cccc3352358130 | 2020-04-30 09:49:27 | docker.io/swerebenchv2/enthought-traits:1058-9280449 | enthought__traits-1058 | Method: ObserverExceptionHandlerStack.push_exception_handler(self, handler=None, reraise_exceptions=False)
Location: traits/observers/_exception_handling.py
Inputs:
- handler (callable(event) or None): optional custom function to receive the exception event; if None the default logger is used.
- reraise_exceptions ... | python | custom-check-github | diff --git a/docs/source/traits_user_manual/internals.rst b/docs/source/traits_user_manual/internals.rst
index 95533bc4..c273b302 100644
--- a/docs/source/traits_user_manual/internals.rst
+++ b/docs/source/traits_user_manual/internals.rst
@@ -177,6 +177,122 @@ Attribute deletion
Attribute deletion (``del obj.name``) g... | Trait container documentation
Added documentation about the new Trait container classes to the internals section, plus some minor clarifications to the section on TraitEvents
Fixes #997.
**Checklist**
- ~[ ] Tests~
- ~[ ] Update API reference (`docs/source/traits_api_reference`)~
- [X] Update User manual (`doc... | Document meaning and use of TraitList notification arguments
`TraitList` calls its notifiers with a triple `(index, removed, added)`.
On current master, we have per-method descriptions of the contents of this triple in the docstrings. Those descriptions are removed in #989. I don't think the individual docstrings ar... | enthought/traits | diff --git a/traits/observers/tests/test_exception_handling.py b/traits/observers/tests/test_exception_handling.py
new file mode 100644
index 00000000..f09b6824
--- /dev/null
+++ b/traits/observers/tests/test_exception_handling.py
@@ -0,0 +1,89 @@
+# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX
+# All rights res... | [
"traits/observers/tests/test_exception_handling.py::TestExceptionHandling::test_default_logging",
"traits/observers/tests/test_exception_handling.py::TestExceptionHandling::test_pop_exception_handler",
"traits/observers/tests/test_exception_handling.py::TestExceptionHandling::test_push_exception_handler",
"tr... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
8007aefd1b4b182b4e2cc3eb07e8b57aab3105c7 | 2025-01-31 02:37:21 | docker.io/swerebenchv2/getmoto-moto:8538-8007aef | getmoto__moto-8538 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/ec2/models/amis.py b/moto/ec2/models/amis.py
index c58be632a..185fba794 100644
--- a/moto/ec2/models/amis.py
+++ b/moto/ec2/models/amis.py
@@ -56,6 +56,7 @@ class Ami(TaggedEC2Resource):
snapshot_description: Optional[str] = None,
product_codes: Set[str] = set(),
boot_mode: ... | Support tagging in custom AMI definitions
Resolves #8517 | Feature: ability to pass tags via json configured in `MOTO_AMIS_PATH`
For my use case, I have code heavily depend on AWS tags (specifically on AMIs)
I would be very helpful if I can describe the labels for each AMI I wan't to be loaded is a declarative why
for now I need to list all of the AMIs, and have code by thei... | getmoto/moto | diff --git a/tests/test_ec2/test_utils.py b/tests/test_ec2/test_utils.py
index 5752e65f9..5829d5f24 100644
--- a/tests/test_ec2/test_utils.py
+++ b/tests/test_ec2/test_utils.py
@@ -54,6 +54,10 @@ def test_gen_moto_amis():
"Name": "Windows_Server-2016-English-Nano-Base-2017.10.13",
"VirtualizationType"... | [
"tests/test_ec2/test_utils.py::test_gen_moto_amis",
"tests/test_special_cases/test_custom_amis.py::TestEC2CustomAMIs::test_custom_amis_with_MOTO_AMIS_PATH"
] | [
"tests/test_ec2/test_utils.py::test_random_key_pair",
"tests/test_ec2/test_utils.py::test_random_ipv6_cidr",
"tests/test_ec2/test_utils.py::test_select_hash_algorithm__rsa[True-md5_hash]",
"tests/test_ec2/test_utils.py::test_select_hash_algorithm__rsa[False-openssl_sha1]",
"tests/test_ec2/test_utils.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": "B2",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
909354f089a3e08e810a194a10ce54858b26e6f6 | 2022-05-16 11:32:46 | docker.io/swerebenchv2/cs-si-eodag:458-909354f | cs-si__eodag-458 | Method: SearchResult.filter_online(self)
Location: eodag/api/search_result.py → class SearchResult
Inputs: **self** – a `SearchResult` instance containing a list of `EOProduct` objects. No additional parameters.
Outputs: Returns a new `SearchResult` (sub‑class of `UserList`) that includes only those `EOProduct` i... | python | Apache-2.0 | diff --git a/docs/api_reference/searchresult.rst b/docs/api_reference/searchresult.rst
index cb845cfe..7957cf0b 100644
--- a/docs/api_reference/searchresult.rst
+++ b/docs/api_reference/searchresult.rst
@@ -22,6 +22,7 @@ Crunch
SearchResult.filter_latest_by_name
SearchResult.filter_overlap
SearchResult.filt... | Online filter
Close #215
Changes made to the SearchResult class (https://github.com/CS-SI/eodag/pull/359) added an easier way to filter-out OFFLINE products.
In the original issue, that kind of code did the trick:
```python
from eodag.plugins.crunch.filter_property import FilterProperty
dag.set_preferred_pro... | Avoid trying to order an OFFLINE product
From @remi-braun in https://github.com/CS-SI/eodag/issues/214
> Maybe add the LTA order as a parameter, as it is not needed in every usecase (sometimes, sb just want to download everything he can without triggering any LTA retrieval)
LTA: Long Term Archive
The `HTTPDown... | CS-SI/eodag | diff --git a/tests/units/test_search_result.py b/tests/units/test_search_result.py
index 608cd86f..e85e3233 100644
--- a/tests/units/test_search_result.py
+++ b/tests/units/test_search_result.py
@@ -22,13 +22,34 @@ from collections import UserList
import geojson
from shapely.geometry.collection import GeometryCollect... | [
"tests/units/test_search_result.py::TestSearchResult::test_search_result_filter_online"
] | [
"tests/units/test_search_result.py::TestSearchResult::test_search_result_as_geojson_object",
"tests/units/test_search_result.py::TestSearchResult::test_search_result_as_shapely_geometry_object",
"tests/units/test_search_result.py::TestSearchResult::test_search_result_as_wkt_object",
"tests/units/test_search_r... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/CS-SI/eodag/issues/214"
],
"i... |
53b2cd9ec6d25b9acaa613c3eb97596c4245e68f | 2024-09-27 13:08:24 | docker.io/swerebenchv2/rhayes777-pyautofit:1053-53b2cd9 | rhayes777__pyautofit-1053 | Method: DirectoryPaths.__init__(self, *, unique_tag: Optional[str] = None, path_prefix: Optional[Path] = None, name: Optional[str] = None, **kwargs)
Location: autofit.non_linear.paths (class DirectoryPaths)
Inputs:
- **unique_tag** – optional string used to tag the output directory; when provided it is incorporated in... | python | MIT | diff --git a/autofit/non_linear/paths/abstract.py b/autofit/non_linear/paths/abstract.py
index 1129be8f4..d686a5d43 100644
--- a/autofit/non_linear/paths/abstract.py
+++ b/autofit/non_linear/paths/abstract.py
@@ -32,7 +32,7 @@ class AbstractPaths(ABC):
parent: Optional["AbstractPaths"] = None,
unique_... | optionally include unique tag in the output path
Resolves #1032
Note that setting the unique_tag will change the identifier
| Sensitivity Mapping `unique_tag` path
In the following example:
https://github.com/Jammy2211/autofit_workspace/blob/release/scripts/features/sensitivity_mapping.py
I create a `search` with the `unique_tag=hello`:
```
search = af.DynestyStatic(
path_prefix=path.join("features", "sensitivity_mapping", "sin... | rhayes777/PyAutoFit | diff --git a/test_autofit/non_linear/paths/test_paths.py b/test_autofit/non_linear/paths/test_paths.py
index ffd784988..e123e897e 100644
--- a/test_autofit/non_linear/paths/test_paths.py
+++ b/test_autofit/non_linear/paths/test_paths.py
@@ -39,7 +39,9 @@ class TestPathDecorator:
self.assert_paths_as_expected(s... | [
"test_autofit/non_linear/paths/test_paths.py::test_unique_tag"
] | [
"test_autofit/non_linear/paths/test_paths.py::test_null_paths",
"test_autofit/non_linear/paths/test_paths.py::TestPathDecorator::test_with_arguments",
"test_autofit/non_linear/paths/test_paths.py::TestPathDecorator::test_positional",
"test_autofit/non_linear/paths/test_paths.py::TestPathDecorator::test_paths_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Jammy2211/autofit_workspace/blob/re... |
05beb25fb31f27f243f25b4542b1dcea6201300e | 2022-10-21 15:41:07 | docker.io/swerebenchv2/cta-observatory-ctapipe:2102-05beb25 | cta-observatory__ctapipe-2102 | ComponentName
Location: ctapipe.core.traits.ComponentName
Inputs:
- **cls** (type): a subclass of ``Component`` that the trait will refer to.
- **default_value** (optional, ``str``): default component name.
- **help** (optional, ``str``): custom help text.
- **allow_none** (optional, ``bool``): whether ``None`` ... | python | BSD-3-Clause | diff --git a/ctapipe/calib/camera/calibrator.py b/ctapipe/calib/camera/calibrator.py
index a6eb81c5..373301ce 100644
--- a/ctapipe/calib/camera/calibrator.py
+++ b/ctapipe/calib/camera/calibrator.py
@@ -13,8 +13,8 @@ from ctapipe.containers import DL1CameraContainer
from ctapipe.core import TelescopeComponent
from ct... | Add and use ComponentName traitlet instead of create_class_enum_trait, fixes #2100, #1874 | Move validation of class enum trait to run time instead of import time
**Please describe the use case that requires this feature.**
Currently, we define class traitlets like this:
```
class Foo(Component):
bar_type = create_class_enum_trait(Bar...).tag(config=True)
```
this runs at import time of Foo. W... | cta-observatory/ctapipe | diff --git a/ctapipe/core/tests/test_traits.py b/ctapipe/core/tests/test_traits.py
index f3dd7bbf..1a593367 100644
--- a/ctapipe/core/tests/test_traits.py
+++ b/ctapipe/core/tests/test_traits.py
@@ -1,9 +1,12 @@
import os
import pathlib
import tempfile
+from abc import ABCMeta, abstractmethod
from unittest import m... | [
"ctapipe/core/tests/test_traits.py::test_component_name"
] | [
"ctapipe/core/tests/test_traits.py::test_path_allow_none_false",
"ctapipe/core/tests/test_traits.py::test_path_allow_none_true",
"ctapipe/core/tests/test_traits.py::test_path_exists",
"ctapipe/core/tests/test_traits.py::test_path_invalid",
"ctapipe/core/tests/test_traits.py::test_bytes",
"ctapipe/core/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d1e3f50756fdaaea498e8e47d5dcd56686e6ecdf | 2023-02-21 22:33:47 | docker.io/swerebenchv2/getmoto-moto:5960-d1e3f50 | getmoto__moto-5960 | Method: Table.scan(self, IndexName=None, **kwargs)
Location: moto/dynamodb/models/table.py – class Table
Inputs:
- **IndexName** (optional str): name of a Global Secondary Index (GSI) or Local Secondary Index (LSI) to scan. If provided, the scan operates on that index and the returned items are projected according to t... | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index b520e24f4..1be961410 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -843,6 +843,12 @@ class Table(CloudFormationModel):
if passes_all_conditions:
results.append(item)
+ ... | DynamoDB: scan() should respect the Projection-attribute of GSI/LSI's
Fixes #5950 | Scan of DynamoDB table with GSI ignores projection type and returns all attributes
## Description
Scanning the global secondary index (GSI) of a dynamodb table with the GSI projection type set to `INCLUDE` or `KEYS_ONLY` returns all the table attributes (i.e. ignores which attributes are projected to the index).
... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py
index 8f3459ef9..2146184dc 100644
--- a/tests/test_dynamodb/test_dynamodb.py
+++ b/tests/test_dynamodb/test_dynamodb.py
@@ -4708,6 +4708,17 @@ def test_gsi_projection_type_include():
}
)
+ # Same when scanning th... | [
"tests/test_dynamodb/test_dynamodb.py::test_gsi_projection_type_include",
"tests/test_dynamodb/test_dynamodb.py::test_lsi_projection_type_keys_only"
] | [
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b6a8c3cd7e2ca21c50641c2e18682d432f3e2058 | 2020-12-06 10:26:29 | docker.io/swerebenchv2/liampauling-flumine:348-b6a8c3c | liampauling__flumine-348 | Method: SimulatedMiddleware._calculate_reduction_factor(self, price: float, adjustment_factor: float) → float
Location: flumine/markets/middleware.py
Inputs:
- **price** – original matched price (float). Expected to be a positive decimal odds value; the function will ensure the final result never drops below the minim... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 746a8cb..332624e 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,17 +3,6 @@
Release History
---------------
-1.15.0 (2020-12-07)
-+++++++++++++++++++
-
-**Improvements**
-
-- Updates for bflw 2.11.0
-
-**Libraries**
-
-- betfairlightweight upgraded to 2.11.0
-
1.14.13 ... | closes #347 Adjustment Factor Bug
refactor to function and make minimum 1.01 | Adjustment Factor Bug
If I was matched at decimal odds of 3.2, and the adjustment factor was 75.18, what should the new price be?
From reading this document, I also get 0.79. But how is it possible to get matched at 0.79? 1.01 is the lowest possible odds.
10:01
https://en-betfair.custhelp.com/app/answers/detail/a_... | liampauling/flumine | diff --git a/tests/test_middleware.py b/tests/test_middleware.py
index bec8d60..4a57d5b 100644
--- a/tests/test_middleware.py
+++ b/tests/test_middleware.py
@@ -135,6 +135,14 @@ class SimulatedMiddlewareTest(unittest.TestCase):
self.middleware._process_runner_removal(mock_market, 12345, 0, None)
self.... | [
"tests/test_middleware.py::SimulatedMiddlewareTest::test__calculate_reduction_factor"
] | [
"tests/test_middleware.py::MiddlewareTest::test_add_market",
"tests/test_middleware.py::MiddlewareTest::test_call",
"tests/test_middleware.py::MiddlewareTest::test_remove_market",
"tests/test_middleware.py::SimulatedMiddlewareTest::test__process_runner",
"tests/test_middleware.py::SimulatedMiddlewareTest::t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://en-betfair.custhelp.com/app/answers/detail/a_id/... |
5401530075b680cbc8f9e92b83ab603003854063 | 2023-11-05 01:07:38 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3785-5401530 | hypothesisworks__hypothesis-3785 | Method: resolve_Tuple(thing)
Location: hypothesis.strategies._internal.types (registered via @register for typing.Tuple)
Inputs:
- thing: a typing.Tuple type object (e.g., tuple[int], Tuple[str, …]); may have __args__ specifying element types.
Outputs:
- A hypothesis Strategy that generates tuples matching the suppli... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..98a86ab0e
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch refactors ``from_type(typing.Tuple)``, allowing
+:func:`~hypothesis.strategies.register_type_str... | Allow registration of tuples
If this works (🤞), it'll fix #3750 and close #3782.
The underlying problem here is that old versions of the `typing` module had some really weird implementation details; happily they've been steadily cleaned up and with Python 3.7 now end of life we can simplify our handling considerabl... | `register_type_strategy` doesn't seem to work on parameterized generic types
The docs for `register_type_strategy` say that instead of registering `tuple[int]`, I can register `tuple` with a function that takes the type and return the strategy. I may be misunderstanding, but I take this to mean that I can register
`st... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_lookup_py39.py b/hypothesis-python/tests/cover/test_lookup_py39.py
index c860cd3bc..0cd538289 100644
--- a/hypothesis-python/tests/cover/test_lookup_py39.py
+++ b/hypothesis-python/tests/cover/test_lookup_py39.py
@@ -149,3 +149,11 @@ def test_only_tuple_subclasses_in_typi... | [
"hypothesis-python/tests/cover/test_lookup_py39.py::test_lookup_registered_tuple"
] | [
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-integers()]",
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-lists(floats())]",
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-text()]",
"hypothesis-pyt... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e1d1752012cf8dcb01cba4c2984ace5697e880b0 | 2023-04-28 14:36:22 | docker.io/swerebenchv2/owkin-pydeseq2:123-e1d1752 | owkin__pydeseq2-123 | Method: DeseqDataSet.vst(self, use_design: bool = False, fit_type: Literal["parametric", "mean"] = "parametric")
Location: pydeseq2/dds.py → class DeseqDataSet
Inputs:
- **use_design** (bool): Whether to include the full design matrix when fitting dispersions. Default =False.
- **fit_type** (Literal["parametric","mean"... | python | MIT | diff --git a/README.md b/README.md
index 8c70d6f..825f61b 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,9 @@ In case there is a feature you would particularly like to be implemented, feel f
## Installation
-`PyDESeq2` can be installed from PyPI:
+### PyPI
+
+`PyDESeq2` can be installed from PyPI using `pip`:... | Implement fitType="mean" for vst
Closes #116.
DESeq2 has a fit type "mean" for the vst which is used as the fallback when the parametric fit fails. It would be nice to have an equivalent in the python implementation.
Here's my attempt based on https://github.com/mikelove/DESeq2/blob/devel/R/vst.R#L188 and https:/... | Implement fitType="mean" for vst
DESeq2 has a fit type "mean" for the vst which is used as the fallback when the parametric fit fails. It would be nice to have an equivalent in the python implementation.
Here's my attempt based on https://github.com/mikelove/DESeq2/blob/devel/R/vst.R#L188 and https://github.com/mike... | owkin/PyDESeq2 | diff --git a/tests/data/single_factor/r_mean_vst.csv b/tests/data/single_factor/r_mean_vst.csv
new file mode 100644
index 0000000..b75ee76
--- /dev/null
+++ b/tests/data/single_factor/r_mean_vst.csv
@@ -0,0 +1,11 @@
+"","sample1","sample2","sample3","sample4","sample5","sample6","sample7","sample8","sample9","sample10"... | [
"tests/test_pydeseq2.py::test_deseq2_norm"
] | [
"tests/test_pydeseq2.py::test_ref_level"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/mikelove/DESeq2/blob/devel/R/vst.R#... |
0e729f836d8e5f99d42006f57194fdc2d2b2b713 | 2023-07-11 10:11:49 | docker.io/swerebenchv2/sdv-dev-rdt:670-0e729f8 | sdv-dev__rdt-670 | Method: AnonymizedFaker.__init__(self, provider_name=None, function_name=None, function_kwargs=None, locales=None, enforce_uniqueness=False, missing_value_generation='random')
Location: rdt/transformers/pii/anonymizer.py
Inputs:
- provider_name (str or None): optional faker provider name.
- function_name (str or None)... | python | custom-check-github | diff --git a/HISTORY.md b/HISTORY.md
index ca410c2..5dacdd6 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,5 +1,29 @@
# History
+## 1.6.0 -2023-07-12
+
+This release adds the ability to generate missing values to the `AnonymizedFaker`. Users can now provide the `missing_value_generation` parameter during initializat... | Update the default transformers that HyperTransformer assigns to each sdtype
Resolve #664
Few things about this PR.
- I removed the `_default_sdtype_transformers` of the `HyperTransformer` because it was never used. Maybe we want to define it properly and use it.
- I added the `dtype` attribute similar to the one... | Update the default transformers that HyperTransformer assigns to each sdtype
### Problem Description
Currently, the default transformers used by HyperTransformer are different than the ones used by SDV. Additionally, they may also be stale (eg. FrequencyEncoder is a candidate for deprecation).
### Expected behavior... | sdv-dev/RDT | diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py
index 43c853d..008aefc 100644
--- a/tests/integration/test_hyper_transformer.py
+++ b/tests/integration/test_hyper_transformer.py
@@ -92,16 +92,25 @@ def get_transformed_data():
return pd.DataFrame({
'in... | [
"tests/integration/test_hyper_transformer.py::test_hypertransformer_default_inputs",
"tests/integration/test_hyper_transformer.py::test_multiple_detects",
"tests/integration/transformers/pii/test_anonymizer.py::test_anonymizedfaker_with_nans",
"tests/integration/transformers/pii/test_anonymizer.py::test_anony... | [
"tests/integration/test_hyper_transformer.py::test_hypertransformer_field_transformers",
"tests/integration/test_hyper_transformer.py::test_single_category",
"tests/integration/test_hyper_transformer.py::test_categorical_encoders_with_booleans",
"tests/integration/test_hyper_transformer.py::test_dtype_categor... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "partial",
"pr_categories": ... |
05e266d387f6a09a26090d764ad6904bc538bf1b | 2024-03-26 18:07:24 | docker.io/swerebenchv2/pennylaneai-pennylane:5439-05e266d | pennylaneai__pennylane-5439 | Method: AdaptiveOptimizer.step_and_cost(self, circuit, pool, drain_pool=True)
Location: pennylane.optimize.adaptive.AdaptiveOptimizer
Inputs:
- **circuit** (Callable): a quantum circuit (QNode) to be optimized.
- **pool** (list[Operation]): list of candidate excitations/operators.
- **drain_pool** (bool, opti... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index d1f17ae1d..621b094b7 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -291,6 +291,9 @@
<h3>Bug fixes 🐛</h3>
+* The `QNSPSAOptimizer` now properly handles differentiable parameters, resulting in being ... | Fix `QNSPSA` Optimizer
Fixes #5437 . [sc-59838]
When we started distinguishing vanilla numpy and autograd numpy in our source code, we accidentally switched to using vanilla numpy in the `QNSPSA` optimizer instead of autograd numpy. This switches it back. | [BUG] `QNSPSAOptimizer` with Autograd changes differentiable parameters type to vanilla NumPy array
### Expected behavior
Updating parameters with `opt = qml.QNSPSAOptimizer` should not change the type of the parameters.
### Actual behavior
The parameters change from `<class 'pennylane.numpy.tensor.tensor'>` to `<cl... | PennyLaneAI/pennylane | diff --git a/tests/optimize/test_adaptive.py b/tests/optimize/test_adaptive.py
index b117b3492..74fa75507 100644
--- a/tests/optimize/test_adaptive.py
+++ b/tests/optimize/test_adaptive.py
@@ -118,7 +118,7 @@ def test_step_and_cost_nodrain(circuit, energy_ref, pool):
"""Test that step_and_cost function returns the... | [
"tests/optimize/test_qnspsa.py::test_workflow_integration"
] | [
"tests/optimize/test_adaptive.py::test_private_circuit[initial_circuit-params0-gates0--1.2465499384199534]",
"tests/optimize/test_adaptive.py::test_step[initial_circuit--1.2613740231522113-pool0]",
"tests/optimize/test_adaptive.py::test_step_and_cost_drain[initial_circuit--1.274397672040264-pool0]",
"tests/op... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://discuss.pennylane.ai/t/qnspsa-error-using-a-da... |
835b144ed9204661df7016f5ff3d0812ed5ed102 | 2023-08-01 17:14:17 | docker.io/swerebenchv2/caikit-caikit:388-835b144 | caikit__caikit-388 | Method: get_config()
Location: caikit.config.get_config
Inputs: None
Outputs: Config object – a hierarchical configuration view exposing sections such as ``model_management.trainers.default.config.subprocess_start_method`` and other runtime settings.
Description: Retrieves the global Caikit configuration singleton. Use... | python | Apache-2.0 | diff --git a/caikit/config/config.yml b/caikit/config/config.yml
index 2196bb74..74ae887f 100644
--- a/caikit/config/config.yml
+++ b/caikit/config/config.yml
@@ -38,6 +38,7 @@ model_management:
# Format: XdXhXmXs
retention_duration: 1d
use_subprocess: false
+ ... | Use spawn for train subprocess 384
**What this PR does / why we need it**:
Closes #384
This PR makes it safe to use "spawn" when performing training jobs.
**If applicable**:
- [x] this PR contains unit tests
- [x] this PR has been tested for backwards compatibility
| Support "spawn" for training subprocesses
## Describe the bug
Some libraries such as `torch` have significant issues when running in a `subprocess` using the `"fork"` method. The current `DestroyableThread` [explicitly uses "fork"](https://github.com/caikit/caikit/blob/main/caikit/core/toolkit/destroyable_process.py... | caikit/caikit | diff --git a/tests/conftest.py b/tests/conftest.py
index 5831ac5d..f1c6a180 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -49,12 +49,29 @@ def test_environment():
"""The most important fixture: This runs caikit configuration with the base test config overrides"""
test_config_path = os.path.join(FI... | [
"tests/core/toolkit/test_destroyable_process.py::test_processes_can_be_interrupted[fork]",
"tests/core/toolkit/test_destroyable_process.py::test_processes_can_be_interrupted[forkserver]",
"tests/core/toolkit/test_destroyable_process.py::test_processes_can_be_interrupted[spawn]",
"tests/core/toolkit/test_destr... | [
"tests/core/model_management/test_local_model_trainer.py::test_train_and_get_info[True]",
"tests/core/model_management/test_local_model_trainer.py::test_train_and_get_info[False]",
"tests/core/model_management/test_local_model_trainer.py::test_train_save_and_load[True]",
"tests/core/model_management/test_loca... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/caikit/caikit/blob/main/caikit/core/t... |
65a9f4c033f401fb274c5d528cd1a4595d347e8c | 2025-03-22 14:45:58 | docker.io/swerebenchv2/callowayproject-bump-my-version:326-65a9f4c | callowayproject__bump-my-version-326 | Method: ConfiguredFile._contains_change_pattern(self, search_expression: re.Pattern, raw_search_expression: str, version: Version)
Location: bumpversion/files.py – defined inside class ConfiguredFile
Inputs:
- **search_expression** – compiled regular expression that represents the search pattern for the version ... | python | MIT | diff --git a/bumpversion/files.py b/bumpversion/files.py
index b806a517..37280e37 100644
--- a/bumpversion/files.py
+++ b/bumpversion/files.py
@@ -7,6 +7,7 @@ from difflib import context_diff
from pathlib import Path
from typing import Dict, List, MutableMapping, Optional
+from bumpversion.config import DEFAULTS as... | Bug Fixes
- Fixes rendering of moveable tags
- Fixes #321 | Custom searches do not fail if the file also contains the version number
- bump-my-version version: `1.0.2`
- python version: `3.11.1`
- OS: `Windows 11, 23H2, 22631.4890`
**Expectation:**
When doing a custom search if the search pattern is not found, a `VersionNotFoundError` should be raised. I ran into this issue wh... | callowayproject/bump-my-version | diff --git a/tests/test_cli/test_replace.py b/tests/test_cli/test_replace.py
index b7b2129a..bb886e25 100644
--- a/tests/test_cli/test_replace.py
+++ b/tests/test_cli/test_replace.py
@@ -197,14 +197,7 @@ class TestReplaceCLI:
)
config_file = tmp_path / ".bumpversion.toml"
config_f... | [
"tests/test_files.py::TestModifyFiles::test_non_matching_search_does_not_modify_file",
"tests/test_scm/test_git.py::TestGit::TestGitCommitAndTag::test_commits_and_tags_when_configured",
"tests/test_scm/test_git.py::TestGit::TestGitCommitAndTag::test_tags_when_commit_is_false"
] | [
"tests/test_files.py::TestModifyFiles::test_raises_correct_missing_version_string",
"tests/test_files.py::TestModifyFiles::test_ignore_missing_version_ignores_correctly[ignore",
"tests/test_files.py::TestModifyFilesRegex::test_regex_search_string_is_replaced",
"tests/test_files.py::TestModifyFilesRegex::test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d31f2027b16fb535275c8c8f6c353f58cde64cef | 2024-08-30 14:02:52 | docker.io/swerebenchv2/researchobject-ro-crate-py:191-d31f202 | researchobject__ro-crate-py-191 | Method: ROCrate.add_action(self, instrument, identifier=None, object=None, result=None, properties=None)
Location: rocrate/rocrate.py
Inputs:
- **instrument** – a ContextEntity (or subclass) representing the tool or software that performed the action; required.
- **identifier** – optional string or URI fragment for the... | python | Apache-2.0 | diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py
index 5597d54..63f2eb3 100644
--- a/rocrate/rocrate.py
+++ b/rocrate/rocrate.py
@@ -556,6 +556,22 @@ class ROCrate():
self.metadata.extra_terms.update(TESTING_EXTRA_TERMS)
return definition
+ def add_action(self, instrument, identifier=None, ob... | Add method to add actions to the crate
Closes #188.
The default is to create a `CreateAction`. Other action types can be created by specifying the `@type` in `properties`, as shown in the unit test.
| Add function to add a CreateAction to the crate
e.g. `add_action()` which takes the inputs, outputs, instrument, etc as arguments and builds a CreateAction entity.
CreateAction entities are fiddly to create, but essential for WRROC - so many workflow managers need to create them and have written the code themselves ... | ResearchObject/ro-crate-py | diff --git a/test/test_wrroc.py b/test/test_wrroc.py
new file mode 100644
index 0000000..3b9d7df
--- /dev/null
+++ b/test/test_wrroc.py
@@ -0,0 +1,79 @@
+# Copyright 2019-2024 The University of Manchester, UK
+# Copyright 2020-2024 Vlaams Instituut voor Biotechnologie (VIB), BE
+# Copyright 2020-2024 Barcelona Supercom... | [
"test/test_wrroc.py::test_add_action"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
ca24f65f2ff415a7eb7eddcea3bd8173e5d5f920 | 2024-04-18 20:42:43 | docker.io/swerebenchv2/getmoto-moto:7607-ca24f65 | getmoto__moto-7607 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/stepfunctions/parser/asl/component/state/exec/state_task/service/state_task_service_callback.py b/moto/stepfunctions/parser/asl/component/state/exec/state_task/service/state_task_service_callback.py
index f1eb7af9b..7772bd581 100644
--- a/moto/stepfunctions/parser/asl/component/state/exec/state_task/s... | StepFunctions: DynamoDB: Handle missing TaskToken
Fixes #7583 | Cryptic error when using start_execution with Moto 5.0.5
## Reporting Bugs
Moto version: 5.0.5
Issue: Currently can not test `send_task_success` or `send_task_failure` with Moto 5.0.4+ yet due to the state machine doesn't run properly with `waitForTaskToken` integration type.
Running following test snippet:
... | getmoto/moto | diff --git a/tests/test_stepfunctions/parser/__init__.py b/tests/test_stepfunctions/parser/__init__.py
index 34a513126..11d3e17d9 100644
--- a/tests/test_stepfunctions/parser/__init__.py
+++ b/tests/test_stepfunctions/parser/__init__.py
@@ -76,7 +76,7 @@ def verify_execution_result(
)
for _ in range(10):
... | [
"tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put_wait_for_task_token"
] | [
"tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put",
"tests/test_stepfunctions/parser/test_stepfunctions_dynamodb_integration.py::test_state_machine_calling_dynamodb_put_and_delete"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
17c7d9540fdba6922ade9e9d761fbf45b6442ef4 | 2023-11-22 03:24:04 | docker.io/swerebenchv2/aio-libs-aiohttp:7865-17c7d95 | aio-libs__aiohttp-7865 | Function: WebSocketReader(queue: DataQueue[WSMessage], max_msg_size: int)
Location: aiohttp/http_websocket.py (class WebSocketReader)
Inputs:
- **queue** – a `DataQueue` instance that will receive `WSMessage` objects produced by the reader.
- **max_msg_size** – integer specifying the maximum allowed size (in bytes) fo... | python | custom-check-github | diff --git a/CHANGES/7865.bugfix b/CHANGES/7865.bugfix
new file mode 100644
index 000000000..9a46e1244
--- /dev/null
+++ b/CHANGES/7865.bugfix
@@ -0,0 +1,1 @@
+Restore async concurrency safety to websocket compressor
diff --git a/aiohttp/compression_utils.py b/aiohttp/compression_utils.py
index 52791fe50..9631d377e 100... | Restore async concurrency safety to websocket compressor
<!-- Thank you for your contribution! -->
## What do these changes do?
Restore async concurrency safety to websocket compressor
## Are there changes in behavior for the user?
<!-- Outline any notable behaviour for the end users. -->
## Related is... | ZLibCompressor issue leading to Websocket anomalies
### Describe the bug
After upgrading aiohttp to version 3.9.0, I encountered an intermittent error where the browser reports an 'Invalid frame header' during websocket access.
On delving deeper, I found that the websocket module in aiohttp, when compressing the ... | aio-libs/aiohttp | diff --git a/tests/test_websocket_writer.py b/tests/test_websocket_writer.py
index 82bed5461..c3a59fa6a 100644
--- a/tests/test_websocket_writer.py
+++ b/tests/test_websocket_writer.py
@@ -1,11 +1,13 @@
# type: ignore
+import asyncio
import random
-from typing import Any
+from typing import Any, Callable
from unitte... | [
"tests/test_websocket_writer.py::test_concurrent_messages[16-<lambda>]",
"tests/test_websocket_writer.py::test_concurrent_messages[4096-<lambda>]",
"tests/test_websocket_writer.py::test_concurrent_messages[32-<lambda>]"
] | [
"tests/test_websocket_writer.py::test_pong",
"tests/test_websocket_writer.py::test_ping",
"tests/test_websocket_writer.py::test_send_text",
"tests/test_websocket_writer.py::test_send_binary",
"tests/test_websocket_writer.py::test_send_binary_long",
"tests/test_websocket_writer.py::test_send_binary_very_lo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aio-libs/aiohttp/commit/586778f19b6... |
8498aa7b97f4e58d99d5b06d20ff8220f83de8e5 | 2018-11-13 12:02:23 | docker.io/swerebenchv2/takluyver-flit:234-8498aa7 | takluyver__flit-234 | Function: read_pkg_ini(ini_path: Path) → dict
Location: flit/inifile.py
Inputs: *ini_path* – a pathlib.Path pointing to a ``pyproject.toml`` (or legacy ini) file containing a ``[tool.flit.metadata]`` section. The file is read and parsed; mandatory keys such as ``module`` must be present.
Outputs: Returns a dictionary w... | python | BSD-3-Clause | diff --git a/flit/inifile.py b/flit/inifile.py
index 266c495..6ed83a4 100644
--- a/flit/inifile.py
+++ b/flit/inifile.py
@@ -185,8 +185,13 @@ def _prep_metadata(md_sect, path):
# Description file
if 'description-file' in md_sect:
description_file = path.parent / md_sect.get('description-file')
- ... | Show a nice error if the configured description-file is missing
Fixes #176. | Have a more helpful message when description-file is missing
I created a `pyproject.toml` file with a `description-file = "README.md"` but didn't create the README file. flit presented me with a not-so-direct message about a missing `README.md`. It would be nice if flit had suggested something like "did you not create ... | takluyver/flit | diff --git a/tests/samples/missing-description-file.toml b/tests/samples/missing-description-file.toml
new file mode 100644
index 0000000..00fae72
--- /dev/null
+++ b/tests/samples/missing-description-file.toml
@@ -0,0 +1,9 @@
+[build-system]
+requires = ["flit"]
+
+[tool.flit.metadata]
+module = "missingdescriptionfil... | [
"tests/test_inifile.py::test_missing_description_file"
] | [
"tests/test_inifile.py::test_invalid_classifier",
"tests/test_inifile.py::test_classifiers_with_space",
"tests/test_inifile.py::test_requires_with_empty_lines",
"tests/test_inifile.py::test_missing_entrypoints",
"tests/test_inifile.py::test_flatten_entrypoints",
"tests/test_inifile.py::test_load_toml",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
3dd3077144f924fe2b4e4092765fb0a231e63b3c | 2025-03-26 23:51:05 | docker.io/swerebenchv2/cogent3-cogent3:2269-3dd3077 | cogent3__cogent3-2269 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/src/cogent3/core/new_alignment.py b/src/cogent3/core/new_alignment.py
index 7c545656a..21590e4eb 100644
--- a/src/cogent3/core/new_alignment.py
+++ b/src/cogent3/core/new_alignment.py
@@ -5061,7 +5061,7 @@ class Alignment(SequenceCollection):
new = self.array_seqs[:, indices]
new_seq_da... | BUG: correctly creating seq data on renamed collections, FIXES #2268
[CHANGED] constructing new seqs_data collections need to pass in
self._name_map.values(), not self.names
## Summary by Sourcery
Fix sequence data creation for renamed collections by using renamed sequence names
Bug Fixes:
- Corrected sequence ... | new_type Alignment
**Describe the bug**
after renaming sequences, then calling omit_gap_pos(), get a key error
```
aln = cogent3.load_aligned_seqs("~/repos/Cogent3/tests/data/brca1.fasta", moltype="dna", new_type=True)
aln = aln.rename_seqs(lambda x: x.lower())
aln = aln.take_seqs(["human", "chimpanzee", "gorilla", "o... | cogent3/cogent3 | diff --git a/tests/test_core/test_new_alignment.py b/tests/test_core/test_new_alignment.py
index 930c8e514..2e5758a90 100644
--- a/tests/test_core/test_new_alignment.py
+++ b/tests/test_core/test_new_alignment.py
@@ -4682,7 +4682,8 @@ def test_filtered_drop_remainder():
assert len(got) == 4
-def test_no_degene... | [
"tests/test_core/test_new_alignment.py::test_no_degenerates[True]",
"tests/test_core/test_new_alignment.py::test_no_degenerates_non_divisible_length[True]",
"tests/test_core/test_new_alignment.py::test_omit_gap_pos_motif_length[True]"
] | [
"tests/test_core/test_new_alignment.py::test_seqs_data_construction",
"tests/test_core/test_new_alignment.py::test_seqs_data_construction_wrong_alphabet",
"tests/test_core/test_new_alignment.py::test_seqs_data_default_attributes",
"tests/test_core/test_new_alignment.py::test_seqs_data_view_repr_default[seq1]"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ece488b31b4e20a55e52948f21622da3e38223cb | 2021-01-21 00:56:58 | docker.io/swerebenchv2/django-channels:1614-ece488b | django__channels-1614 | Method: InMemoryChannelLayer.__init__(self, capacity=3, expiry=None, *args, **kwargs)
Location: channels.layers.InMemoryChannelLayer
Inputs:
- **capacity** (int, optional): maximum number of messages per channel before ChannelFull is raised.
- **expiry** (float or None, optional): time‑to‑live for each message in sec... | python | BSD-3-Clause | diff --git a/channels/auth.py b/channels/auth.py
index 3392552..93cd692 100644
--- a/channels/auth.py
+++ b/channels/auth.py
@@ -9,7 +9,6 @@ from django.contrib.auth import (
user_logged_in,
user_logged_out,
)
-from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import constant_tim... | Update asgiref dependency to >=3.3.1 (fixes #1613)
Update asgiref dependency to require at least version 3.3.1 which fixes crashing of background workers, as discussed in #1613. | asgiref dependency should be updated; channels 3.0.3 requires min. 3.2.10, which doesn't work for background workers
Channels 3.0.3 depends on `asgiref>=3.2.10`, however with that version, background workers will fail with `TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'` when receiv... | django/channels | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index ef8f871..0b53e0a 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -21,17 +21,19 @@ jobs:
steps:
- uses: actions/checkout@v2
+
- name: Set up Python ${{ matrix.python-version }}
uses: a... | [
"tests/test_inmemorychannel.py::test_expiry_single",
"tests/test_inmemorychannel.py::test_expiry_unread",
"tests/test_inmemorychannel.py::test_expiry_multi"
] | [
"tests/test_inmemorychannel.py::test_multi_send_receive",
"tests/test_inmemorychannel.py::test_groups_basic",
"tests/test_inmemorychannel.py::test_groups_channel_full"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
ffd22836781ac595be44a092d09699dbb18a0041 | 2020-01-11 13:20:28 | docker.io/swerebenchv2/aws-cloudformation-cfn-python-lint:1301-ffd2283 | aws-cloudformation__cfn-python-lint-1301 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/parameters/Configuration.py b/src/cfnlint/rules/parameters/Configuration.py
index f54c72c13..4d6c22780 100644
--- a/src/cfnlint/rules/parameters/Configuration.py
+++ b/src/cfnlint/rules/parameters/Configuration.py
@@ -14,37 +14,120 @@ class Configuration(CloudFormationLintRule):
sour... | Build out more parameter configuration logic in rule E2001
*Issue #, if available:*
Fix #1295
*Description of changes:*
- Add more configuration checks to rule E2001
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| An error occurred (ValidationError) when calling the CreateStack operation: Template format error: Every AllowedValues member must be a list.
cfn-lint 0.26.2
Checking .yaml file, block
```yaml
Parameters:
Env:
Type: "String"
Description: "Environment"
Default: "staging"
AllowedValues:
... | aws-cloudformation/cfn-python-lint | diff --git a/test/fixtures/templates/bad/parameters.yaml b/test/fixtures/templates/bad/parameters.yaml
deleted file mode 100644
index 79f49b9bf..000000000
--- a/test/fixtures/templates/bad/parameters.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
----
-AWSTemplateFormatVersion: '2010-09-09'
-Parameters:
- myParameter:
- # Typ... | [
"test/unit/rules/parameters/test_configuration.py::TestParameterConfiguration::test_file_negative"
] | [
"test/unit/rules/parameters/test_configuration.py::TestParameterConfiguration::test_file_positive",
"test/unit/rules/parameters/test_types.py::TestParameterTypes::test_file_negative",
"test/unit/rules/parameters/test_types.py::TestParameterTypes::test_file_positive",
"test/unit/rules/parameters/test_used.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
63250a521092099c3f0b7d7026b70b060d13a86a | 2020-11-17 11:52:51 | docker.io/swerebenchv2/brettcannon-gidgethub:137-63250a5 | brettcannon__gidgethub-137 | Function: setenv(name: str, value: str)
Location: gidgethub.actions
Inputs:
- **name** – the environment variable name (must be a non‑empty string).
- **value** – the value to assign to the variable (string; no automatic conversion performed).
Outputs: Returns ``None``. Side‑effects: updates ``os.environ`` and app... | python | Apache-2.0 | diff --git a/README.rst b/README.rst
index 071d6ff..564c5d8 100644
--- a/README.rst
+++ b/README.rst
@@ -1,6 +1,6 @@
gidgethub
=========
-An asynchronous `GitHub API <https://developer.github.com/>`_ library.
+An asynchronous `GitHub API <https://docs.github.com/>`_ library.
Development status
@@ -32,7 +32,7 @@ ... | Add support for Actions environment files
Closes #132
TODO:
- [x] Update docs
- [x] Update changelog | Add support for Actions environment files
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
https://github.com/actions/toolkit/blob/main/packages/co... | brettcannon/gidgethub | diff --git a/tests/test_actions.py b/tests/test_actions.py
index 671198a..ecff0e5 100644
--- a/tests/test_actions.py
+++ b/tests/test_actions.py
@@ -4,6 +4,7 @@ import os
import pytest
from gidgethub import actions
+from gidgethub.actions import _DELIMITER
@pytest.fixture
@@ -14,6 +15,22 @@ def tmp_webhook(tmp... | [
"tests/test_actions.py::TestWorkspace::test_reading",
"tests/test_actions.py::TestWorkspace::test_caching",
"tests/test_actions.py::TestEvent::test_reading",
"tests/test_actions.py::TestEvent::test_caching",
"tests/test_actions.py::TestCommand::test_set_output",
"tests/test_actions.py::TestCommand::test_d... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.blog/changelog/2020-10-01-github-action... |
c6f8f1fae2ed8fa80b59c42cf8d1cff523b3c754 | 2024-04-29 11:15:42 | docker.io/swerebenchv2/spikeinterface-spikeinterface:2775-c6f8f1f | spikeinterface__spikeinterface-2775 | Function: CurationSorting.split(self, split_unit_id, indices_list, new_unit_ids=None)
Location: spikeinterface.curation.curationsorting.CurationSorting
Inputs:
- split_unit_id (int or str): identifier of the unit to be split.
- indices_list (list or np.ndarray or iterable of iterables): per‑segment collections of integ... | python | MIT | diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py
index 9edb52787..85ea9b843 100644
--- a/src/spikeinterface/core/sortinganalyzer.py
+++ b/src/spikeinterface/core/sortinganalyzer.py
@@ -1187,7 +1187,7 @@ def _get_children_dependencies(extension_name):
name... | Fix split in more than 2 units and extend curation docs and tests
Fixes #2694 and replaces #2695 (by @OlivierPeron)
@OlivierPeron when making aPR it's better to create a branch different than main so we can directly contribute to it ;) | Split function and `new_unit_ids` definition
Hi !
I was looking into the curation module and didn't quite get how to use the split function. Let's say I want to split my unit into 3. To do so I just have to properly define my `indices_list` and then I could just do as so:
`cs.split(unit_id, indices_list)`
The cl... | SpikeInterface/spikeinterface | diff --git a/src/spikeinterface/core/tests/test_analyzer_extension_core.py b/src/spikeinterface/core/tests/test_analyzer_extension_core.py
index 7c4792097..55ce0bbbb 100644
--- a/src/spikeinterface/core/tests/test_analyzer_extension_core.py
+++ b/src/spikeinterface/core/tests/test_analyzer_extension_core.py
@@ -205,11 ... | [
"src/spikeinterface/curation/tests/test_curationsorting.py::test_curation"
] | [
"src/spikeinterface/core/tests/test_analyzer_extension_core.py::test_ComputeNoiseLevels[True-memory]",
"src/spikeinterface/core/tests/test_analyzer_extension_core.py::test_ComputeNoiseLevels[False-memory]",
"src/spikeinterface/core/tests/test_analyzer_extension_core.py::test_get_children_dependencies",
"src/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": "B2",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
dd110f1dbde444e714b589dede5d323a8b6165a0 | 2020-10-18 17:30:32 | docker.io/swerebenchv2/python-semver-python-semver:292-dd110f1 | python-semver__python-semver-292 | Function: VersionInfo(major, minor=0, patch=0, prerelease=None, build=None)
Location: semver.VersionInfo.__init__
Inputs:
- major (int): required, must be non‑negative.
- minor (int, optional): defaults to 0, must be non‑negative if supplied.
- patch (int, optional): defaults to 0, must be non‑negative if suppli... | python | BSD-3-Clause | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 46a94ee..2fdfa8d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -6,6 +6,36 @@ Change Log
All notable changes to this code base will be documented in this file,
in every released version.
+Version 2.12.0
+==============
+
+:Released:
+:Maintainer: Tom Schraitle
+
+... | Fix #291: Disallow negative numbers in VersionInfo
This PR fixes #291 and contains the following change:
Disallow negative numbers of `major`, `minor`, and `patch` in `semver.VersionInfo.`
Reason: a version can only contain positive numbers
@tlaferriere This is the corresponding pull request. Maybe there are bet... | semver.VersionInfo allows negative numbers
# Situation
If you pass negative numbers into `semver.VersionInfo` it doesn't raise any errors:
```python
>>> import semver
>>> semver.VersionInfo(-2) ... | python-semver/python-semver | diff --git a/test_semver.py b/test_semver.py
index 0aeedbd..3637982 100644
--- a/test_semver.py
+++ b/test_semver.py
@@ -73,6 +73,20 @@ def test_fordocstrings(func):
assert func.__doc__, "Need a docstring for function %r" % func.__name
+@pytest.mark.parametrize(
+ "ver",
+ [
+ {"major": -1},
+ ... | [
"test_semver.py::test_should_not_allow_negative_numbers[ver0]",
"test_semver.py::test_should_not_allow_negative_numbers[ver1]",
"test_semver.py::test_should_not_allow_negative_numbers[ver2]",
"test_semver.py::test_should_not_allow_negative_numbers[ver3]"
] | [
"test_semver.py::test_should_private_increment_string[rc-rc]",
"test_semver.py::test_should_private_increment_string[rc.1-rc.2]",
"test_semver.py::test_should_private_increment_string[2x-3x]",
"test_semver.py::test_fordocstrings[compare]",
"test_semver.py::test_fordocstrings[createparser]",
"test_semver.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.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
1fa722b5f1e4173b2e998e562618bd7f0f3a656a | 2021-04-04 20:46:31 | docker.io/swerebenchv2/neogeny-tatsu:206-1fa722b | neogeny__tatsu-206 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.pylintrc b/.pylintrc
index 9d0055d..e192645 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -166,6 +166,7 @@ disable=C0102, C0103, C0111, C0122, C0123,
W0621, W0622,
W0702, W0703, W0706,
W0707, # consider using `raise from`
+ W1116, # pylint doesn'get tuples of type for isinsta... | fix for "misformatted output of unknown rules" #204
fixes #204 | misformatted output of unknown rules since 5.6.0
Since version 5.6.0, TatSu's output of unknown rules in grammars is misformatted:
```
import tatsu
GRAMMAR = '''
@@grammar::TestGrammar
block = test ;
'''
if __name__ == '__main__':
import pprint
from tatsu import parse
ast = parse(G... | neogeny/TatSu | diff --git a/test/grammar/error_test.py b/test/grammar/error_test.py
new file mode 100644
index 0000000..ab4c8d2
--- /dev/null
+++ b/test/grammar/error_test.py
@@ -0,0 +1,26 @@
+from __future__ import annotations
+
+from tatsu.tool import parse
+from tatsu.exceptions import GrammarError
+
+
+def test_missing_rule():
+ ... | [
"test/grammar/error_test.py::test_missing_rule",
"test/grammar/error_test.py::test_missing_rules"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
88a5fb15e2035e7ab4b542c02db3aa3ec7a9c246 | 2023-12-08 00:32:36 | docker.io/swerebenchv2/pytask-dev-pytask:521-88a5fb1 | pytask-dev__pytask-521 | Function: task(*, produces: pathlib.Path, **kwargs)
Location: pytask (public API)
Inputs:
- produces: pathlib.Path – path of the file that the task is expected to create.
- **kwargs: additional keyword arguments accepted by the decorator (e.g., `depends_on`, `takes`, etc.).
Outputs: Callable[[Callable[..., Any]], Call... | python | custom-check-github | diff --git a/docs/source/changes.md b/docs/source/changes.md
index bf94f0a..3767bb2 100644
--- a/docs/source/changes.md
+++ b/docs/source/changes.md
@@ -12,6 +12,9 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
(fixes #514). It also warns if the path is configured as a string and not a list... | Add error message for not collected tasks with @task decorator.
Closes #513. | BUG: using `pytask.task()(func_defined_in_other_file)` doesn't work
- [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 pytask.
---
#### Code Sample, ... | pytask-dev/pytask | diff --git a/tests/test_task.py b/tests/test_task.py
index b95194e..8335762 100644
--- a/tests/test_task.py
+++ b/tests/test_task.py
@@ -679,3 +679,30 @@ def test_raise_error_with_builtin_function_as_task(runner, tmp_path):
result = runner.invoke(cli, [tmp_path.as_posix()])
assert result.exit_code == ExitCode... | [
"tests/test_task.py::test_task_function_in_another_module"
] | [
"tests/test_task.py::test_task_with_task_decorator[the_only_task-task_example]",
"tests/test_task.py::test_task_with_task_decorator[the_only_task-func]",
"tests/test_task.py::test_task_with_task_decorator[None-task_example]",
"tests/test_task.py::test_task_with_task_decorator[None-func]",
"tests/test_task.p... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/pytask-dev/pytask/files/13572990/ta... |
5734e694994562830a5f7d4894910f2a41ec5aac | 2024-02-15 20:45:02 | docker.io/swerebenchv2/meltano-sdk:2245-5734e69 | meltano__sdk-2245 | Function: append_type(type_dict: dict, new_type: str) -> dict
Location: singer_sdk.helpers._typing
Inputs:
- **type_dict** (dict): JSON‑Schema fragment to be modified (may contain “type”, “anyOf”, or “oneOf” keys).
- **new_type** (str): New JSON‑Schema type name to add (e.g., “null”).
Outputs:
- Returns a new (or mutat... | python | Apache-2.0 | diff --git a/singer_sdk/helpers/_typing.py b/singer_sdk/helpers/_typing.py
index 6df38e83..f3ea68e1 100644
--- a/singer_sdk/helpers/_typing.py
+++ b/singer_sdk/helpers/_typing.py
@@ -59,6 +59,10 @@ def append_type(type_dict: dict, new_type: str) -> dict:
result["anyOf"] = [result["anyOf"], new_type]
... | fix: Instances of `oneOf` are now handled by null-appending logic
Closes #1887
<!-- readthedocs-preview meltano-sdk start -->
----
📚 Documentation preview 📚: https://meltano-sdk--2245.org.readthedocs.build/en/2245/
<!-- readthedocs-preview meltano-sdk end --> | bug: `oneOf` schema is not handled by null-appending logic
### Singer SDK Version
0.30.0
### Is this a regression?
- [ ] Yes
### Python Version
NA
### Bug scope
Taps (catalog, state, etc.)
### Operating System
NA
### Description
`oneOf` is not handled by `append_type`, which is used to handle nullable fields... | meltano/sdk | diff --git a/tests/core/test_typing.py b/tests/core/test_typing.py
index 7bb0ab36..b985aeec 100644
--- a/tests/core/test_typing.py
+++ b/tests/core/test_typing.py
@@ -19,6 +19,7 @@ from singer_sdk.typing import (
PropertiesList,
Property,
StringType,
+ append_type,
to_sql_type,
)
@@ -318,3 +31... | [
"tests/core/test_typing.py::test_append_null[oneOf]"
] | [
"tests/core/test_typing.py::test_simple_schema_conforms_types",
"tests/core/test_typing.py::test_primitive_arrays_are_conformed",
"tests/core/test_typing.py::test_only_root_fields_are_conformed_for_root_level",
"tests/core/test_typing.py::test_no_fields_are_conformed_for_none_level",
"tests/core/test_typing... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/meltano/sdk/blob/c3a8f90ac4d79eb5c655... |
d5b2c95e9ab6fcbbd3eeed9ec4924205bf11b99b | 2023-07-13 19:35:21 | docker.io/swerebenchv2/xgcm-xgcm:615-d5b2c95 | xgcm__xgcm-615 | Method: Grid.__init__(self, ds, check_dims=True, periodic=False, default_shifts=None, face_connections=None, coords=None, metrics=None, boundary=None, fill_value=None)
Location: xgcm/grid.py (class Grid)
Inputs:
- ds: xarray.Dataset containing grid data.
- face_connections (optional): dict whose first key is the name o... | python | MIT | diff --git a/doc/whats-new.rst b/doc/whats-new.rst
index 0454114..c16b02f 100644
--- a/doc/whats-new.rst
+++ b/doc/whats-new.rst
@@ -39,6 +39,10 @@ Documentation
Bugfixes
~~~~~~~~
+- Fix bug that did not allow to create grids with faceconnections if the face dimension was coordinate-less. (:issue:`616`, :pull:`616`... | Allow face connections for non-coordinate face dimension
<!-- Feel free to remove check-list items aren't relevant to your change -->
- [x] Closes #616
- [x] Tests added
- [x] Passes `pre-commit run --all-files`
- [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst`
| [BUG] Grid creation for coordinateless face dimension fails
I am working on #475 and noticed a bug
```python
import xarray as xr
import numpy as np
da = xr.DataArray(np.ones([4,4,13]), dims=['i','j','face']) * xr.DataArray(np.arange(13), dims=['face'])
ds = da.to_dataset(name='data')
# ECCO connectivity
fa... | xgcm/xgcm | diff --git a/xgcm/test/test_faceconnections.py b/xgcm/test/test_faceconnections.py
index 22562cc..78e7331 100644
--- a/xgcm/test/test_faceconnections.py
+++ b/xgcm/test/test_faceconnections.py
@@ -131,7 +131,12 @@ def test_connection_errors(ds):
pass
-def test_create_connected_grid(ds, ds_face_connections_x_to... | [
"xgcm/test/test_faceconnections.py::test_create_connected_grid[True]",
"xgcm/test/test_faceconnections.py::test_create_connected_grid_error_wrong_facedim"
] | [
"xgcm/test/test_faceconnections.py::test_connection_errors",
"xgcm/test/test_faceconnections.py::test_create_connected_grid[False]",
"xgcm/test/test_faceconnections.py::test_diff_interp_connected_grid_x_to_x",
"xgcm/test/test_faceconnections.py::test_diff_interp_connected_grid_x_to_y",
"xgcm/test/test_facec... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
e0a7b3d23034c5b2b69bcabc9454c85b5e1fcd1e | 2020-05-25 07:31:24 | docker.io/swerebenchv2/mercadona-rele:160-e0a7b3d | mercadona__rele-160 | Function: create_and_run(subs, config)
Location: rele/worker.py
Inputs:
- **subs**: iterable of :class:`rele.subscription.Subscription` objects (the subscriptions the worker should handle).
- **config**: :class:`rele.config.Config` instance providing configuration values (`gc_project_id`, `credentials`, `ack_deadline`,... | python | Apache-2.0 | diff --git a/docs/guides/unrecoverable_middleware.rst b/docs/guides/unrecoverable_middleware.rst
index c62dfbf..640ee45 100644
--- a/docs/guides/unrecoverable_middleware.rst
+++ b/docs/guides/unrecoverable_middleware.rst
@@ -1,7 +1,7 @@
.. _unrecoverable_middleware:
Unrecoverable Middleware
-===========
+==========... | CLI
### :tophat: What?
Provide a CLI for Relé
### :thinking: Why?
- Easily run a worker.
- Auto Discovery of subs.
- Auto Discovery of settings.
- Ability to add more functionality to the CLI (ie. graph...)
### :link: Related issue
Fixes #153
Here is an example on my local test application.
<... | SUB_PREFIX is not added to subscriptions
When running Relé as a standalone worker (ie, no django, flask, etc.) I expect the subscribers to be prefixed with the SUB_PREFIX value.
However, this does not happen since we are manually registering the subs in the worker.
This can result in a conflicts when having mul... | mercadona/rele | diff --git a/tests/commands/test_runrele.py b/tests/commands/test_runrele.py
index e10638e..5dfdeaf 100644
--- a/tests/commands/test_runrele.py
+++ b/tests/commands/test_runrele.py
@@ -14,7 +14,7 @@ class TestRunReleCommand:
@pytest.fixture
def mock_worker(self):
- with patch("rele.management.command... | [
"tests/test_worker.py::TestWorker::test_start_subscribes_and_saves_futures_when_subscriptions_given",
"tests/test_worker.py::TestWorker::test_setup_creates_subscription_when_topic_given",
"tests/test_worker.py::TestWorker::test_run_sets_up_and_creates_subscriptions_when_called",
"tests/test_worker.py::TestWor... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": ... |
dc96f5f0b4c0f782d868d526f7f9f26e9c6ef58d | 2024-01-26 06:06:11 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1452-dc96f5f | slackapi__python-slack-sdk-1452 | Method: ImageBlock.__init__(self, *, image_url: Optional[str] = None, slack_file: Optional[Union[Dict[str, Any], SlackFile]] = None, alt_text: str, title: Optional[Union[str, dict, PlainTextObject]] = None, block_id: Optional[str] = None, **others: dict)
Location: slack_sdk.models.blocks.blocks.ImageBlock
Inputs:
- al... | python | MIT | diff --git a/pyproject.toml b/pyproject.toml
index 1976da1..a0bf06c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "slack_sdk"
-dynamic = ["version", "readme", "authors"]
+dynamic = ["version", "readme", "authors", "optional-dependencies"]
... | Fix #1450 slack_file in image block/element
## Summary
This pull request resolves #1450
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender)
- [ ] **slac... | Add "slack_file" properties to "image" blocks/elements under slack_sdk.models
The "image" blocks and block elements now can have "slack_file", which refers to an uploaded image file within Slack instead of "image_url", which must be a publicly hosted one. The Block Kit class representation in this SDK should add suppor... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py
index 836f65b..92abc76 100644
--- a/tests/slack_sdk/models/test_blocks.py
+++ b/tests/slack_sdk/models/test_blocks.py
@@ -29,6 +29,7 @@ from slack_sdk.models.blocks import (
RichTextPreformattedElement,
RichTextElementP... | [
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq",
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2",
"tests/slack_sdk/models/tes... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.slack.com/reference/block-kit/blocks#image... |
9ba021ea758429e5bed27a0a405dabf565235802 | 2024-10-16 12:19:25 | docker.io/swerebenchv2/huggingface-transformers:34197-9ba021e | huggingface__transformers-34197 | Method: AutoModelForCausalLM.heal_tokens(self, input_ids, tokenizer=None)
Location: defined in the GenerationMixin (used by AutoModelForCausalLM) in src/transformers/generation/utils.py.
Inputs:
- **input_ids** – torch.Tensor containing token IDs to be healed.
- **tokenizer** – optional PreTrainedTokenizer (or compa... | python | Apache-2.0 | diff --git a/src/transformers/generation/utils.py b/src/transformers/generation/utils.py
index 6d71b754d6..86ea702dd9 100644
--- a/src/transformers/generation/utils.py
+++ b/src/transformers/generation/utils.py
@@ -1419,7 +1419,7 @@ class GenerationMixin:
input_ids_length,
inputs_tensor,
):
- ... | Revert `accelerate` error caused by `46d09af`
# What does this PR do?
Fixes #34176
Starting from `v4.45.0` Trainer was not able to train on TPU VMs.
so i tested commits between `v4.44.2` and `v4.45.0` one by one, then found this 1 line change commit [46d09af](https://github.com/huggingface/transformers/commit/4... | [Bug] transformers `TPU` support broken on `v4.45.0`
### System Info
transformers: v4.45.0 and up (any of v4.45.0 / v4.45.1 / v4.45.2)
accelerate: v1.0.1 (same result on v0.34.2)
### Who can help?
trainer experts: @muellerzr @SunMarc
accelerate expert: @muellerzr
text models expert: @ArthurZucker
Thank you guys... | huggingface/transformers | diff --git a/tests/generation/test_utils.py b/tests/generation/test_utils.py
index 5165e43c09..6766fa22b9 100644
--- a/tests/generation/test_utils.py
+++ b/tests/generation/test_utils.py
@@ -28,7 +28,6 @@ from transformers import AutoConfig, is_torch_available, pipeline, set_seed
from transformers.testing_utils import... | [
"tests/utils/test_tokenization_utils.py::ExtensionsTrieTest::test_no_extension_match"
] | [
"tests/utils/test_tokenization_utils.py::TokenizerUtilTester::test_cached_files_are_used_when_internet_is_down",
"tests/utils/test_tokenization_utils.py::TokenizerUtilTester::test_cached_files_are_used_when_internet_is_down_missing_files",
"tests/utils/test_tokenization_utils.py::TrieTest::test_cut_text_hardeni... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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://gist.github.com/steveepreston/acd125a08214c631... |
561aa0425c44b9d4376163f2b909bf1b655cf71a | 2025-04-22 21:01:49 | docker.io/swerebenchv2/gorakhargosh-watchdog:1101-561aa04 | gorakhargosh__watchdog-1101 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/README.rst b/README.rst
index 74ddac3..59f5c42 100755
--- a/README.rst
+++ b/README.rst
@@ -62,7 +62,7 @@ ignoring all directory events:
.. code-block:: bash
watchmedo log \
- --patterns='*.py;*.txt' \
+ --patterns='**/*.py;**/*.txt' \
--ignore-directories \
--recurs... | ENH: Use pathlib.full_match for pattern matching
* Allows full directory matches and recursive patterns to succeed.
* Copies in some python 3.13 code for earlier python compatibility
* Fixes #798
The implementation changes from `path.match` to `path.full_match`, which will cause breaking changes in patterns specif... | watchmedo does not support ignoring monitoring specific folder and its sub-folders
From the usage of `watchmedo auto-restart`, we can see the only possible way we can use to exclude a specific folder is using `--ignore-pattern` parameter, as following shows.
```
sh-4.4$ watchmedo auto-restart --help
usage: watchm... | gorakhargosh/watchdog | diff --git a/tests/test_0_watchmedo.py b/tests/test_0_watchmedo.py
index c1abcd6..912b578 100644
--- a/tests/test_0_watchmedo.py
+++ b/tests/test_0_watchmedo.py
@@ -324,7 +324,7 @@ def test_tricks_from_file(command, tmp_path):
"""
tricks:
- watchdog.tricks.LoggerTrick:
- patterns: ["*.py", "*.js"]
+ pa... | [
"tests/test_patterns.py::test_match_path[/users/gorakhargosh/foobar.py-included_patterns1-excluded_patterns1-True-False]"
] | [
"tests/test_pattern_matching_event_handler.py::test_dispatch",
"tests/test_pattern_matching_event_handler.py::test_handler",
"tests/test_pattern_matching_event_handler.py::test_ignore_directories",
"tests/test_pattern_matching_event_handler.py::test_ignore_patterns",
"tests/test_pattern_matching_event_handl... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/gorakhargosh/watchdog/blob/master/s... |
5cbfacf3b1e4b214cf1c8f143a8b25ecd5213004 | 2024-10-08 20:45:19 | docker.io/swerebenchv2/getmoto-moto:8215-5cbfacf | getmoto__moto-8215 | Method: ResourceGroupsTaggingAPIClient.get_resources(self, ResourceTypeFilters: List[str] = None, TagFilters: List[Dict] = None, PaginationToken: str = None, ResourcesPerPage: int = None)
Location: boto3 client for “resourcegroupstaggingapi” (region‑specific)
Inputs:
- ResourceTypeFilters – optional list of resource‑... | python | Apache-2.0 | diff --git a/moto/resourcegroupstaggingapi/models.py b/moto/resourcegroupstaggingapi/models.py
index 8cafdb18b..b384042f6 100644
--- a/moto/resourcegroupstaggingapi/models.py
+++ b/moto/resourcegroupstaggingapi/models.py
@@ -25,6 +25,7 @@ from moto.sagemaker.models import SageMakerModelBackend, sagemaker_backends
from... | Step Function - Add support for State Machine to resourcegrouptaggingapi
resolves #8212 | Enhancement: Add Step Functions to support resourcegroupstagging
Per the [AWS docs](https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html) Step Function support the Resource Groups Tagging API.
It looks like there is a custom implementation for tags for step functions. @bblomm... | getmoto/moto | diff --git a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py b/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py
index 05e656675..fc73f210d 100644
--- a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py
+++ b/tests/test_resourcegroupstaggingapi/test_resourcegro... | [
"tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_stepfunction",
"tests/test_workspacesweb/test_workspacesweb.py::test_list_tags_for_resource"
] | [
"tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_cloudformation",
"tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_acm",
"tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_get_resources_backup",
"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": "B1",
"confidence": 0.92,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/resourcegroupstagging/late... |
6be7c74cdd59650991da16d835aa6b8a52f6c62d | 2023-09-06 11:07:38 | docker.io/swerebenchv2/tomwhite-cubed:303-6be7c74 | tomwhite__cubed-303 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/cubed/array_api/creation_functions.py b/cubed/array_api/creation_functions.py
index 1a717211..8a4cf7be 100644
--- a/cubed/array_api/creation_functions.py
+++ b/cubed/array_api/creation_functions.py
@@ -6,8 +6,8 @@ from zarr.util import normalize_shape
from cubed.core import Plan, gensym, map_blocks
from ... | Introduce `VirtualFullArray`
…and use it in `full` so no Zarr arrays are materialized
Fixes #247 | Don't materialize `full` or offsets arrays
Arrays whose values are a function of the index do not need to be materialized - either in memory or on disk. These include arrays where every entry is the same (created with `full`), and arrays of offsets (used in `map_blocks` to provide block IDs to the map function).
Zar... | tomwhite/cubed | diff --git a/cubed/tests/test_optimization.py b/cubed/tests/test_optimization.py
index b772ce1d..b232077d 100644
--- a/cubed/tests/test_optimization.py
+++ b/cubed/tests/test_optimization.py
@@ -61,7 +61,7 @@ def test_no_fusion(spec):
c = xp.positive(b)
d = xp.equal(b, c)
- num_created_arrays = 4 # a, b... | [
"cubed/tests/test_optimization.py::test_no_fusion",
"cubed/tests/test_optimization.py::test_no_fusion_multiple_edges"
] | [
"cubed/tests/test_optimization.py::test_fusion",
"cubed/tests/test_optimization.py::test_fusion_transpose"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/tomwhite/cubed/blob/e21786591d9832a... |
c81391e3148dad86adbb79e017cf105b61c8d869 | 2021-08-11 10:16:02 | docker.io/swerebenchv2/zalando-patroni:2029-c81391e | zalando__patroni-2029 | Method: AbstractEtcdClientWithFailover._get_machines_cache_from_srv(self, srv, srv_suffix=None)
Location: patroni/dcs/etcd.py (class AbstractEtcdClientWithFailover)
Inputs:
- srv (str): domain name where the SRV records are queried (e.g., "example.org").
- srv_suffix (str, optional): suffix appended to each SRV service... | python | MIT | diff --git a/docs/ENVIRONMENT.rst b/docs/ENVIRONMENT.rst
index 7c837a6b..43a35921 100644
--- a/docs/ENVIRONMENT.rst
+++ b/docs/ENVIRONMENT.rst
@@ -59,7 +59,8 @@ Etcd
- **PATRONI\_ETCD\_USE\_PROXIES**: If this parameter is set to true, Patroni will consider **hosts** as a list of proxies and will not perform a topolog... | Support for ETCD SRV name suffix
Add support for ETCD SRV name suffix as per description in ETCD dosc:
> The -discovery-srv-name flag additionally configures a suffix to the SRV name that is queried during discovery. Use this flag to differentiate between multiple etcd clusters under the same domain. For example, if... | Add ETCD srv_name config parametter
Please consider adding ETCD SRV name config parameter to Patroni.
As per ETCD documentation:
> The -discovery-srv-name flag additionally configures a suffix to the SRV name that is queried during discovery. Use this flag to differentiate between multiple etcd clusters under th... | zalando/patroni | diff --git a/tests/test_etcd.py b/tests/test_etcd.py
index b96082ae..c631bd90 100644
--- a/tests/test_etcd.py
+++ b/tests/test_etcd.py
@@ -87,7 +87,8 @@ def dns_query(name, _):
raise DNSException()
srv = Mock()
srv.port = 2380
- srv.target.to_text.return_value = 'localhost' if name == '_etcd-serve... | [
"tests/test_etcd.py::TestClient::test__get_machines_cache_from_srv"
] | [
"tests/test_etcd.py::TestDnsCachingResolver::test_run",
"tests/test_etcd.py::TestClient::test___del__",
"tests/test_etcd.py::TestClient::test__get_machines_cache_from_dns",
"tests/test_etcd.py::TestClient::test__load_machines_cache",
"tests/test_etcd.py::TestClient::test__refresh_machines_cache",
"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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a8aacd1df1d1c9598e913f96cb022197eca0948a | 2023-01-12 20:41:49 | docker.io/swerebenchv2/sdv-dev-rdt:610-a8aacd1 | sdv-dev__rdt-610 | Method: BaseTransformer.reset_randomization(self)
Location: rdt/transformers/base.py
Inputs: None (operates on the instance's `random_states` dictionary)
Outputs: Updates `self.random_states['fit']`, `self.random_states['transform']`, and `self.random_states['reverse_transform']` to the values of `INITIAL_FIT_STATE`, `... | python | custom-check-github | diff --git a/rdt/performance/datasets/categorical.py b/rdt/performance/datasets/categorical.py
index d747211..13b43d8 100644
--- a/rdt/performance/datasets/categorical.py
+++ b/rdt/performance/datasets/categorical.py
@@ -331,7 +331,7 @@ class UniqueIntegerGenerator(CategoricalGenerator):
'memory': 2000... | The 'reset_randomization' should also apply to 'fit' and 'transform'
resolves #608 | The `reset_randomization` should also apply to `fit` and `transform`
### Environment Details
* RDT version: 1.3.0 (dev)
* Python version: Any
* Operating System: Any
### Description
The `reset_randomization` method is being used to control the determinism of the reverse transform only. It would make sense to... | sdv-dev/RDT | diff --git a/tests/unit/transformers/test_base.py b/tests/unit/transformers/test_base.py
index 7d35c10..633d7c5 100644
--- a/tests/unit/transformers/test_base.py
+++ b/tests/unit/transformers/test_base.py
@@ -117,14 +117,20 @@ class TestBaseTransformer:
"""Test that the random seed for ``reverse_transform`` is... | [
"tests/unit/transformers/test_base.py::TestBaseTransformer::test_reset_randomization",
"tests/unit/transformers/test_categorical.py::TestCustomLabelEncoder::test___repr___default",
"tests/unit/transformers/test_categorical.py::TestCustomLabelEncoder::test___repr___add_noise_true"
] | [
"tests/unit/transformers/test_base.py::test_set_random_states",
"tests/unit/transformers/test_base.py::test_random_state",
"tests/unit/transformers/test_base.py::test_random_state_random_states_is_none",
"tests/unit/transformers/test_base.py::TestBaseTransformer::test_set_random_state",
"tests/unit/transfor... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7cf64833b85e1c85377d8370e7d1ecff02bf57b6 | 2023-08-28 16:28:54 | docker.io/swerebenchv2/stan-dev-cmdstanpy:688-7cf6483 | stan-dev__cmdstanpy-688 | Method: CmdStanModel.sample(self, data: Union[Mapping[str, Any], str, os.PathLike, None] = None, chains: int = 1, seed: Optional[int] = None, parallel_chains: Optional[int] = None, threads_per_chain: Optional[int] = None, chain_ids: Union[int, List[int], None] = None, inits: Union[Mapping[str, Any], float, str, List[st... | python | BSD-3-Clause | diff --git a/cmdstanpy/cmdstan_args.py b/cmdstanpy/cmdstan_args.py
index f642681..75730c1 100644
--- a/cmdstanpy/cmdstan_args.py
+++ b/cmdstanpy/cmdstan_args.py
@@ -55,6 +55,7 @@ class SamplerArgs:
adapt_metric_window: Optional[int] = None,
adapt_step_size: Optional[int] = None,
fixed_param: ... | Allow multiple dicts in inits, fix multichain
#### Submission Checklist
- [x] Run unit tests
- [x] Declare copyright holder and open-source license: see below
#### Summary
This closes #687 and #362, and cleans up a lot of the temp file code we currently have.
The actual test is guarded behind a version tes... | Multiple inits files incorrectly processed when running multiple chains in one executable
#### Summary:
Make two inits files, `inits1.json` and `inits2.json`. They can both just contain `{}`.
Run
```python
import os
from cmdstanpy import CmdStanModel, cmdstan_path
bernoulli_dir = os.path.join(cmdstan_path(), 'e... | stan-dev/cmdstanpy | diff --git a/test/test_sample.py b/test/test_sample.py
index f600252..d34d90b 100644
--- a/test/test_sample.py
+++ b/test/test_sample.py
@@ -277,10 +277,24 @@ def test_init_types() -> None:
iter_sampling=100,
inits=[inits_path1, inits_path2],
show_progress=False,
+ force_one_process_pe... | [
"test/test_sample.py::test_validate_big_run",
"test/test_sample.py::test_instantiate_from_csvfiles",
"test/test_sample.py::test_instantiate_from_csvfiles_fail",
"test/test_sample.py::test_from_csv_fixed_param",
"test/test_sample.py::test_validate_bad_run",
"test/test_sample.py::test_variables_2d",
"test... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
97d4ca395a95f040ca08504386da1b1da204be54 | 2020-06-17 15:40:36 | docker.io/swerebenchv2/yt-project-unyt:153-97d4ca3 | yt-project__unyt-153 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/HISTORY.rst b/HISTORY.rst
index 1010b0d..13731aa 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -269,7 +269,7 @@ you run into issues please let us know by `opening an issue on GitHub
>>> units.kilometer
km
>>> units.microsecond
- µs
+ μs
See `PR #68 <https://github.com/yt... | Switch from u00b5 to u03bc for micro
This closes #145 .
This script:
```python
import yt
ds = yt.testing.fake_amr_ds(["density"])
p = yt.SlicePlot(ds, "x", "density")
p.set_axes_unit("um")
```
demonstrates the old and new behavior; first is old, second is new.
:
def test_micro():
from unyt import Unit
- assert str(Unit("um")) == "µm"
- assert str(Unit("us")) == "µs"
... | [
"unyt/tests/test_units.py::test_micro"
] | [
"unyt/tests/test_units.py::test_no_conflicting_symbols",
"unyt/tests/test_units.py::test_dimensionless",
"unyt/tests/test_units.py::test_create_from_string",
"unyt/tests/test_units.py::test_create_from_expr",
"unyt/tests/test_units.py::test_create_with_duplicate_dimensions",
"unyt/tests/test_units.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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
fe30a7b935ac5df93f671fa70264ef956f5d1d7c | 2025-03-29 11:38:07 | docker.io/swerebenchv2/pennylaneai-pennylane:7163-fe30a7b | pennylaneai__pennylane-7163 | Function: cwire_connections(layers, bit_map)
Location: pennylane/drawer/utils.py
Inputs:
- layers (list[list[Operation]]): Drawable layers of the circuit.
- bit_map (dict[MidMeasureMP, int]): Mapping from mid‑circuit measurements to classical wire indices (may be updated).
Outputs:
- tuple:
1. bit_map (dict[MidMeasur... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 6cd17e700..eae6f3da0 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -494,6 +494,7 @@ With `qml.decompositions.enable_graph()`, the following new features are availab
<h3>Improvements 🛠</h3>
+
<h4... | Reuse lines for classical wires if possible
**Context:**
As described in #7118 , a lot of white space is produced by the circuit drawer if there are many MCMs, even if their impact is localized, and the same lines below the quantum wires could be reused for different classical wires.
**Description of the Change:**
... | [Enhancement] Avoid expansion of whitespace when using many MCMs in MPL drawer

When using many MCM operations, the MPL drawer fails to recycle whitespace. This makes readability a challenge when MCMs grow to large numbers.
The en... | PennyLaneAI/pennylane | diff --git a/tests/drawer/test_draw.py b/tests/drawer/test_draw.py
index 2d255290d..b5a9a296e 100644
--- a/tests/drawer/test_draw.py
+++ b/tests/drawer/test_draw.py
@@ -575,12 +575,10 @@ class TestMidCircuitMeasurements:
"1: ──RX(0.50)───║─────────┤↗├─├●─────┤↗├────├●─────║─├●────────────────────┤ │ \n... | [
"tests/drawer/test_draw.py::TestMidCircuitMeasurements::test_multi_meas_multi_cond",
"tests/drawer/test_draw.py::TestMidCircuitMeasurements::test_multi_meas_multi_cond_split_lines",
"tests/drawer/test_drawable_layers.py::TestRecursiveFindLayer::test_first_mcm_stats_layer",
"tests/drawer/test_drawable_layers.p... | [
"tests/drawer/test_draw.py::TestLabelling::test_any_wire_labels",
"tests/drawer/test_draw.py::TestLabelling::test_wire_order[True]",
"tests/drawer/test_draw.py::TestLabelling::test_wire_order[False]",
"tests/drawer/test_draw.py::TestLabelling::test_show_all_wires",
"tests/drawer/test_draw.py::TestLabelling:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": "partial",
"pr_categories": ... |
c457c013056c82b40892aae816b324a3ef9aa1a4 | 2023-05-31 18:40:19 | docker.io/swerebenchv2/getmoto-moto:6350-c457c01 | getmoto__moto-6350 | Method: SimpleSystemManagerBackend.create_maintenance_window(self, name: str, description: str | None, schedule: str, schedule_timezone: str | None, schedule_offset: int, start_date: str, end_date: str, tags: list[dict[str, str]] | None = None)
Location: moto/ssm/models.py
Inputs:
- **name** – maintenance‑window... | python | Apache-2.0 | diff --git a/moto/rds/models.py b/moto/rds/models.py
index ea79565e3..fd8c7ed65 100644
--- a/moto/rds/models.py
+++ b/moto/rds/models.py
@@ -416,7 +416,6 @@ class Cluster:
class ClusterSnapshot(BaseModel):
-
SUPPORTED_FILTERS = {
"db-cluster-id": FilterDef(
["cluster.db_cluster_arn", "cl... | SSM: Support tags for Maintenance Windows
Fixes #6344 | Supporting tags operations on ssm MaintenanceWindow resources
## Issue description
Add/List/Remove tags operations are not supported on MaintenanceWindow resources. (They fail with 'InvalidResourceId' errors)
## Reproduction (with awslocal, which uses moto's SSM backend under the hood)
`awslocal ssm add-tags-t... | getmoto/moto | diff --git a/tests/test_ssm/test_ssm_maintenance_windows.py b/tests/test_ssm/test_ssm_maintenance_windows.py
index b3b877636..08b3c1ddc 100644
--- a/tests/test_ssm/test_ssm_maintenance_windows.py
+++ b/tests/test_ssm/test_ssm_maintenance_windows.py
@@ -153,3 +153,62 @@ def test_delete_maintenance_windows():
resp... | [
"tests/test_ssm/test_ssm_maintenance_windows.py::test_tags"
] | [
"tests/test_ssm/test_ssm_maintenance_windows.py::test_describe_maintenance_window",
"tests/test_ssm/test_ssm_maintenance_windows.py::test_create_maintenance_windows_simple",
"tests/test_ssm/test_ssm_maintenance_windows.py::test_create_maintenance_windows_advanced",
"tests/test_ssm/test_ssm_maintenance_windows... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/getmoto/moto/blob/master/moto/ssm/m... |
7583336ca12047e61de784280d66e974f08980c3 | 2024-12-12 08:10:18 | docker.io/swerebenchv2/getmoto-moto:8392-7583336 | getmoto__moto-8392 | Method: CognitoIdpBackend.list_users(self, user_pool_id: str, filt: str) -> List[CognitoIdpUser]
Location: moto/cognitoidp/models.py
Inputs:
- **user_pool_id** – identifier of the user pool to query.
- **filt** – the raw Cognito filter string (e.g., `phone_number ^= "+48"`). If empty, no filtering is applied.
Output... | python | Apache-2.0 | diff --git a/moto/athena/responses.py b/moto/athena/responses.py
index 23b074160..727711167 100644
--- a/moto/athena/responses.py
+++ b/moto/athena/responses.py
@@ -89,7 +89,7 @@ class AthenaResponse(BaseResponse):
"QueryPlanningTimeInMillis": 0,
"ServiceProcessingTimeInMillis"... | CognitoIDP: Fix Limit and Filter params for list_users()
Fixes #8363
* move `filt` to the backend list_users logic so that the paginator decorator can pick up the right filter users
* Also added the test case for this specific issue | Limit shouldn't be applied before Filter when listing users
Using the current version of moto, if you run cognito-idp's list_users() with both Limit and Filter keywords, the limit is applied before the filter. So, if you are searching for a user with a particular sub that isn't the first item in the user pool, and you ... | getmoto/moto | diff --git a/tests/test_athena/test_athena.py b/tests/test_athena/test_athena.py
index e539c42b1..1e75ebc86 100644
--- a/tests/test_athena/test_athena.py
+++ b/tests/test_athena/test_athena.py
@@ -237,6 +237,29 @@ def test_stop_query_execution():
assert details["Status"]["State"] == "CANCELLED"
+@mock_aws
+def... | [
"tests/test_athena/test_athena.py::test_start_execution_with_workgroup",
"tests/test_cognitoidp/test_cognitoidp.py::test_list_users",
"tests/test_dynamodb/test_dynamodb_update_table.py::test_update_table_deletion_protection_disabled",
"tests/test_es/test_es.py::test_describe_elasticsearch_domains",
"tests/t... | [
"tests/test_athena/test_athena.py::test_create_work_group",
"tests/test_athena/test_athena.py::test_get_primary_workgroup",
"tests/test_athena/test_athena.py::test_create_and_get_workgroup",
"tests/test_athena/test_athena.py::test_start_query_execution",
"tests/test_athena/test_athena.py::test_start_query_e... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.88,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
630b3557c48bb3b1d9883e9eb29148924b6b283d | 2024-11-15 13:08:35 | docker.io/swerebenchv2/pythainlp-pythainlp:998-630b355 | pythainlp__pythainlp-998 | Function: th_zodiac(year: int, output_type: int = 1) -> Union[str, int>
Location: pythainlp.util.thai_lunar_date.th_zodiac
Inputs:
- year (int): Gregorian year (AD) to convert.
- output_type (int, optional): Determines the representation of the result (1 = Thai name, 2 = English name, 3 = numeric index). Defaults to 1... | python | Apache-2.0 | diff --git a/docs/api/util.rst b/docs/api/util.rst
index 8f3e3110..76452e12 100644
--- a/docs/api/util.rst
+++ b/docs/api/util.rst
@@ -268,6 +268,16 @@ Modules
The `pythainlp.util.spell_words.spell_word` function is designed for spelling individual words in Thai text, facilitating phonetic analysis and pronuncia... | Add Thai Solar Date convert to Thai Lunar Date
Thank @cstorm125 for the function name.
### What does this changes
Add Thai Solar Date convert to Thai Lunar Date
Fixed #993
### Your checklist for this pull request
<!--- Please review the guidelines for contributing to this repository at: -->
<!--- https:... | Add Thai Solar Date convert to Thai Lunar Date
## Detailed description
Add Thai Solar Date convert to Thai Lunar Date
## Context
Th function will help user for converting Thai Solar Date to Thai Lunar Date.
## Possible implementation
Today, I found [gist from github](https://gist.github.com/touchiep/99f4... | PyThaiNLP/pythainlp | diff --git a/tests/core/test_util.py b/tests/core/test_util.py
index deb9f5cd..e5e39278 100644
--- a/tests/core/test_util.py
+++ b/tests/core/test_util.py
@@ -9,7 +9,7 @@ Unit tests for pythainlp.util module.
import os
import unittest
from collections import Counter
-from datetime import datetime, time, timedelta, t... | [
"tests/core/test_util.py::UtilTestCase::test_collate",
"tests/core/test_util.py::UtilTestCase::test_convert_years",
"tests/core/test_util.py::UtilTestCase::test_count_thai_chars",
"tests/core/test_util.py::UtilTestCase::test_countthai",
"tests/core/test_util.py::UtilTestCase::test_date",
"tests/core/test_... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B3",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://gist.github.com/touchiep/99f4f5bb349d6b983ef78... |
805b4e3e9fd36d992e5501f8a79dfff53c90ba6d | 2021-01-04 13:00:16 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2738-805b4e3 | hypothesisworks__hypothesis-2738 | Function: HealthCheck.function_scoped_fixture
Location: hypothesis._settings.HealthCheck (enum member)
Inputs: None (accessed as a constant enum value)
Outputs: Returns a HealthCheck enum member representing the “function‑scoped‑fixture” health check. Used by the pytest plugin to decide whether to emit the warning/depr... | python | custom-check-github | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7b04b0898..8a7dd16b0 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -38,18 +38,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- - name: Restore c... | Add HealthCheck.function_scoped_fixture to suppress fixture warnings
The Hypothesis pytest plugin emits a warning when it sees `given` applied to a test function that also takes pytest function-scoped fixtures. Function-scoped fixtures are only run once per function, not
per example, which is usually unexpected and ca... | Turn pytest function-scoped fixtures into a health check error (instead of a hard error)
As I mentioned in https://github.com/HypothesisWorks/hypothesis/issues/2709#issuecomment-753732671, I'm thinking about adding a health check for function-scoped fixtures, so that rare intentional uses can continue to opt-out when t... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/src/hypothesis/extra/pytestplugin.py b/hypothesis-python/src/hypothesis/extra/pytestplugin.py
index 9d536129d..f6c3fcc2a 100644
--- a/hypothesis-python/src/hypothesis/extra/pytestplugin.py
+++ b/hypothesis-python/src/hypothesis/extra/pytestplugin.py
@@ -17,7 +17,7 @@ from inspect import s... | [
"hypothesis-python/tests/pytest/test_fixtures.py::test_can_mix_fixture_and_positional_strategy",
"hypothesis-python/tests/pytest/test_fixtures.py::test_can_mix_fixture_and_keyword_strategy",
"hypothesis-python/tests/pytest/test_fixtures.py::test_can_mix_fixture_example_and_keyword_strategy",
"hypothesis-pytho... | [
"hypothesis-python/tests/cover/test_control.py::test_cannot_cleanup_with_no_context",
"hypothesis-python/tests/cover/test_control.py::test_cannot_event_with_no_context",
"hypothesis-python/tests/cover/test_control.py::test_cleanup_executes_on_leaving_build_context",
"hypothesis-python/tests/cover/test_control... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/HypothesisWorks/hypothesis/issues/2... |
b09a532636ec6a8740f968261496a092531275a2 | 2023-05-26 14:24:26 | docker.io/swerebenchv2/mirumee-ariadne-codegen:159-b09a532 | mirumee__ariadne-codegen-159 | Method: ResultTypesGenerator.get_operation_as_str(self)
Location: ariadne_codegen/client_generators/result_types.py
Inputs: None (relies on the instance's `operation_definition` and internal fragment tracking)
Outputs: str – the GraphQL operation string where all `@mixin` directives have been removed; the original `... | python | BSD-3-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e243479..986a37a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
- Fixed handling of inline fragments inside other fragments.
- Changed generated unions to use pydantic's discriminated unions feature.
- Replaced HTTPX's `json=` serializer for query payloa... | Remove mixin directive from operation string sent to server
This pr resolves #155 | Mixin Strategy Produces Invalid Queries
### Summary
The Mixins feature is a great idea for extending the functionality of generated classes, however the mixin directive is not removed from the final generated query, resulting in errors returned from remote APIs.
### Example
Let's say that we simply want to valid... | mirumee/ariadne-codegen | diff --git a/tests/client_generators/result_types_generator/test_get_operation_as_str.py b/tests/client_generators/result_types_generator/test_get_operation_as_str.py
index ba924d7..47720af 100644
--- a/tests/client_generators/result_types_generator/test_get_operation_as_str.py
+++ b/tests/client_generators/result_type... | [
"tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive"
] | [
"tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments",
"tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/mirumee/ariadne-codegen/assets/3174... |
3396680a66b2746f07be462de8918a2ab4a437a0 | 2022-07-19 16:19:14 | docker.io/swerebenchv2/warpnet-salt-lint:284-3396680 | warpnet__salt-lint-284 | Method: NestedDictRule.__init__(self)
Location: saltlint.rules.NestedDictRule
Inputs: None (the rule is instantiated without arguments)
Outputs: An instance of NestedDictRule ready to be registered with a RulesCollection. Used directly in TestNestedDictRule.setUp() to create the rule object.
Method: NestedDictRule.mat... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5ce5bec..c317dff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ All notable changes in **salt-lint** are documented below.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http... | feat: Add nested dictionary formating check
This pull request add a check on proper nested dictionary over-indentation as advised in https://docs.saltproject.io/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#nested-dictionaries
It adds Rule 219 (which seems to be the first never-used 2xx rule number). Fee... | Add check for proper nested dict indentation
**Is your feature request related to a problem? Please describe.**
Nested dicts should be over-indented (this is required by yaml). See https://docs.saltproject.io/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#nested-dictionaries
We should add a check in salt... | warpnet/salt-lint | diff --git a/tests/unit/TestNestedDictRule.py b/tests/unit/TestNestedDictRule.py
new file mode 100644
index 0000000..8b6e2e1
--- /dev/null
+++ b/tests/unit/TestNestedDictRule.py
@@ -0,0 +1,118 @@
+# -*- coding: utf-8 -*-
+# Copyright (c) 2020 Warpnet B.V.
+
+import unittest
+
+from saltlint.linter.collection import Rul... | [
"tests/unit/TestNestedDictRule.py::TestNestedDictRule::test_statement_negative",
"tests/unit/TestNestedDictRule.py::TestNestedDictRule::test_statement_positive"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.saltproject.io/en/latest/topics/troublesh... |
d5d4361e1cf731dc0fef99cb3d7524481758a5e6 | 2022-02-04 13:35:42 | docker.io/swerebenchv2/laspy-laspy:195-d5d4361 | laspy__laspy-195 | Method: LasHeader.grow(self, points: PackedPointRecord)
Location: laspy/header.py (class LasHeader)
Inputs:
- **points** – a `PackedPointRecord` containing the point data to be incorporated into the header. The record must match the header’s point format.
Outputs:
- Updates the header in‑place: recalculates `x_min... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6dff431..7626c98 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@
## Unreleased
+### Fixed
+- Fixed `LasHeader.update` (thus fixing `LasData.update_header`) computation of x,y,z mins and maxs
+
## 2.1.1
### Fixed
diff --git a/laspy/header.py b/laspy/he... | Fix header.update mechanism
The `update` function of the `LasHeader` was written in a way
that made it compute the correct x,y,z bound when writing in chunk mode.
`update` computed the bounds by "growing" them, which is the right strategy
for chunk mode writing, but not when you juste want to update the header
to... | Update header working right?
Greetings,
python: 3.9.9
laspy: 2.1.1
I am editing some las files, filtering by classification and sampling. When I store/assign the PackedPointRecord filtered in a new lasdata and perform the header_update the method does not calculate the bounding box correctly I think:
```pytho... | laspy/laspy | diff --git a/tests/test_header.py b/tests/test_header.py
index f8b6483..7a441fa 100644
--- a/tests/test_header.py
+++ b/tests/test_header.py
@@ -2,6 +2,7 @@ import io
from datetime import date
import pytest
+import numpy as np
import laspy
from laspy import LasHeader
@@ -177,3 +178,109 @@ def test_extra_vlr_byt... | [
"tests/test_header.py::test_header_update_after_slicing",
"tests/test_header.py::test_header_update_setting_points_on_new_las",
"tests/test_header.py::test_update_header_empty_las_data"
] | [
"tests/test_header.py::test_header_copy",
"tests/test_header.py::test_set_uuid",
"tests/test_header.py::test_set_offsets",
"tests/test_header.py::test_set_scales",
"tests/test_header.py::test_set_maxs",
"tests/test_header.py::test_set_mins",
"tests/test_header.py::test_point_count_stays_synchronized",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
0a68b3e0a4fc9e0f612b3a2be70e961a44248ce3 | 2025-05-07 16:46:53 | docker.io/swerebenchv2/sdv-dev-rdt:992-0a68b3e | sdv-dev__rdt-992 | Function: _safe_parse_datetime(value, warn=False, datetime_format=None)
Location: rdt/transformers/utils.py
Inputs:
- value: str, datetime.datetime, or pandas.Timestamp – the input to parse.
- warn: bool (default False) – whether to emit warnings for unknown timezones.
- datetime_format: str or None (default None) – a ... | python | custom-check-github | diff --git a/rdt/transformers/datetime.py b/rdt/transformers/datetime.py
index 419084f..d729c2c 100644
--- a/rdt/transformers/datetime.py
+++ b/rdt/transformers/datetime.py
@@ -74,34 +74,51 @@ class UnixTimestampEncoder(BaseTransformer):
self._has_multiple_timezones = False
self._timezone_offset = Non... | Make `_safe_parse_datetime` work for for large numbers
Resolves #991. | `_safe_parse_datetime` causes `OverflowError` for large numbers
### Error Description
The `_safe_parse_datetime` method calls `dateutil.parser.parse` on the input value. When the value is a large integer, it will try to interpret it as a Unix timestamp but will fail to convert this large number to a C long (which is u... | sdv-dev/RDT | diff --git a/tests/integration/transformers/test_datetime.py b/tests/integration/transformers/test_datetime.py
index 4daf5ee..e857554 100644
--- a/tests/integration/transformers/test_datetime.py
+++ b/tests/integration/transformers/test_datetime.py
@@ -316,6 +316,68 @@ class TestUnixTimestampEncoder:
pd.testin... | [
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_datetime_strings_large_numbers",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_datetime_strings_large_numbers_no_timezone",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncod... | [
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_different_format",
"tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixti... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/sdv-dev/SDV/actions/runs/1486537720... |
41f7646303bb27a148d5f964f24cd70a1db6fbc2 | 2021-06-16 15:46:37 | docker.io/swerebenchv2/researchobject-ro-crate-py:69-41f7646 | researchobject__ro-crate-py-69 | Method: ROCrate.write_zip(self, out_file_path)
Location: rocrate/rocrate.py
Inputs: out_file_path – a Path‑like object (Path or str) indicating the destination zip file. The path may be inside the crate directory.
Outputs: None (creates a zip archive at the given location). If the destination zip file resides within th... | python | Apache-2.0 | diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py
index 5c3969d..a968f10 100644
--- a/rocrate/rocrate.py
+++ b/rocrate/rocrate.py
@@ -510,6 +510,8 @@ class ROCrate():
root = Path(root)
for name in files:
source = root / name
+ if source.samefi... | Fix a bug that caused write_zip to include the zip file itself
Fixes #68 | write_zip should not include the new archive in itself
If one calls `write_zip` with an output path that is within the RO-crate directory, the new zip file ends up inside itself. As `write_zip` walks the directory tree it'll find the partially written zip file and copy it into the archive. | ResearchObject/ro-crate-py | diff --git a/test/test_write.py b/test/test_write.py
index 63fdc85..c83797c 100644
--- a/test/test_write.py
+++ b/test/test_write.py
@@ -215,3 +215,17 @@ def test_no_parts(tmpdir, helpers):
json_entities = helpers.read_json_entities(out_path)
helpers.check_crate(json_entities)
assert "hasPart" not in jso... | [
"test/test_write.py::test_no_zip_in_zip"
] | [
"test/test_write.py::test_file_writing[False-False]",
"test/test_write.py::test_file_writing[False-True]",
"test/test_write.py::test_file_writing[True-False]",
"test/test_write.py::test_file_writing[True-True]",
"test/test_write.py::test_file_stringio",
"test/test_write.py::test_remote_uri[False]",
"tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
c4209e71c7366e978826d7644da41c6ea024565d | 2021-03-02 10:50:43 | docker.io/swerebenchv2/pyfar-pyfar:114-c4209e7 | pyfar__pyfar-114 | No new interfaces are introduced. | python | MIT | diff --git a/pyfar/_codec.py b/pyfar/_codec.py
index c27b473f..065282c3 100644
--- a/pyfar/_codec.py
+++ b/pyfar/_codec.py
@@ -295,7 +295,7 @@ def _is_dtype(obj):
""" True if object is `numpy.dtype`.
"""
return isinstance(obj, type) and (
- obj.__module__ == 'numpy' or obj == np.complex)
+ ... | Replace deprecated numpy types by builtins
### Which issue(s) are closed by this pull request?
Closes #103
### Changes proposed in this pull request:
Replace deprecated numpy aliases of types by builtins. For a full list of deprecated types see the numpy release notes [here](https://numpy.org/devdocs/release/... | Some numpy aliases of builtin type deprecated
## Description
Since numpy version 1.20.0, the some builtin type aliases are deprecated. Pyfar contains a fair number of `np.int` for example. The deprecated aliases need to be replaced by their equivalent builtin types or numpy types
with corresponding precision. See r... | pyfar/pyfar | diff --git a/pyfar/testing/stub_utils.py b/pyfar/testing/stub_utils.py
index ac4ebb6d..b258902c 100644
--- a/pyfar/testing/stub_utils.py
+++ b/pyfar/testing/stub_utils.py
@@ -154,7 +154,7 @@ def sine_func(frequency, sampling_rate, n_samples, fft_norm, cshape):
time = np.sin(2 * np.pi * frequency[..., np.newaxis] *... | [
"tests/test_eq_area_partitions.py::test_caps_dim_2",
"tests/test_eq_area_partitions.py::test_caps_dim_1",
"tests/test_eq_area_partitions.py::test_polar_colat",
"tests/test_eq_area_partitions.py::test_num_collars",
"tests/test_eq_area_partitions.py::test_ideal_region_list",
"tests/test_eq_area_partitions.p... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://numpy.org/devdocs/release/1.20.0-notes.html#de... |
e704ab4d4405fde784aeecde47f563900f5f8dfd | 2022-01-24 01:42:02 | docker.io/swerebenchv2/pycqa-flake8:1543-e704ab4 | pycqa__flake8-1543 | Method: PluginExecutionFailed.__init__(self, filename: str, plugin_name: str, exception: Exception)
Location: src/flake8/exceptions.py
Inputs:
- **filename** – path of the file being checked when the plugin failed.
- **plugin_name** – human‑readable name of the plugin that raised the error.
- **exception** – the origi... | python | custom-check-github | diff --git a/setup.cfg b/setup.cfg
index f230cfe..2e0987c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -39,7 +39,7 @@ package_dir =
# And in which releases we will update those ranges here:
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
install_requires =
- mccabe>=0.7.0,<0.8.0
+ mcca... | include the file path in the plugin execution error
resolves #265 | Improvement suggestion: Add the relevant path as context when encountering exceptions in checker.py
In GitLab by @motin1 on Oct 2, 2018, 03:07
Ran into `UnicodeDecodeError: 'utf8' codec can't decode byte 0xb1 in position 81: invalid start byte` suddenly when running flake8:
```
$ flake8
Traceback (most recent call la... | PyCQA/flake8 | diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py
index 06c5179..96d0244 100644
--- a/tests/unit/test_exceptions.py
+++ b/tests/unit/test_exceptions.py
@@ -18,6 +18,7 @@ from flake8 import exceptions
exception=ValueError("boom!"),
),
exceptions.PluginExecutionFail... | [
"tests/unit/test_exceptions.py::test_pickleable[err0]",
"tests/unit/test_exceptions.py::test_pickleable[err1]",
"tests/unit/test_exceptions.py::test_pickleable[err2]",
"tests/unit/test_file_checker.py::test_repr",
"tests/unit/test_file_checker.py::test_nonexistent_file",
"tests/unit/test_file_checker.py::... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
db28e389f8285f1d9b08d0b0313ac73ba448c4c3 | 2024-07-07 09:33:06 | docker.io/swerebenchv2/getmoto-moto:7828-db28e38 | getmoto__moto-7828 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/parsing/ast_nodes.py b/moto/dynamodb/parsing/ast_nodes.py
index 81afbfae5..95875d90d 100644
--- a/moto/dynamodb/parsing/ast_nodes.py
+++ b/moto/dynamodb/parsing/ast_nodes.py
@@ -40,7 +40,8 @@ class Node(metaclass=abc.ABCMeta):
if len(set_attributes) != len(set(set_attributes)):
... | DynamoDB: transact_write_items() should validate set clauses, not actions
Fixes #7817
`SET action1, action2` is allowed. `SET action1 SET action2` is not allowed.
So when validating this, we need to count the number of clauses (SET statements) - not the number of actions ([action1, action2]).
| DynamoDb transact write items errors for Update expression multiple set action
When using moto mock dynamodb, transact_write_items operation errors even when there is only a single SET action in an update action to dynamo. Error as below
_**botocore.exceptions.ClientError: An error occurred (ValidationException) whe... | getmoto/moto | diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_transactions.py b/tests/test_dynamodb/exceptions/test_dynamodb_transactions.py
index 90877bd28..722f10565 100644
--- a/tests/test_dynamodb/exceptions/test_dynamodb_transactions.py
+++ b/tests/test_dynamodb/exceptions/test_dynamodb_transactions.py
@@ -85,7 +85,7 ... | [
"tests/test_dynamodb/exceptions/test_dynamodb_transactions.py::test_transact_write_items__update_with_multiple_set_clauses"
] | [
"tests/test_dynamodb/exceptions/test_dynamodb_transactions.py::test_multiple_transactions_on_same_item",
"tests/test_dynamodb/exceptions/test_dynamodb_transactions.py::test_transact_write_items__put_and_delete_on_same_item",
"tests/test_dynamodb/exceptions/test_dynamodb_transactions.py::test_transact_write_item... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
9ad312cda6fac4a3ea20cc98dd95f0f0e8f78e31 | 2025-01-23 12:37:03 | docker.io/swerebenchv2/jelmer-dulwich:1482-9ad312c | jelmer__dulwich-1482 | Function: describe(repo, abbrev=None)
Location: dulwich.porcelain.describe
Inputs:
- **repo**: a path (str/bytes) or a `dulwich.repo.Repo`‑like object representing the Git repository to describe.
- **abbrev** (optional): `int` or `None`. When provided, limits the length of the commit hash shown (e.g., `abbrev=40` retur... | python | custom-check-github | diff --git a/dulwich/porcelain.py b/dulwich/porcelain.py
index d43d4017..a164a28f 100644
--- a/dulwich/porcelain.py
+++ b/dulwich/porcelain.py
@@ -2184,7 +2184,7 @@ def find_unique_abbrev(object_store, object_id):
return object_id.decode("ascii")[:7]
-def describe(repo, abbrev=7):
+def describe(repo, abbrev=No... | porcelain: respect 'abbrev' argument when describing annotated-tagless repositories
Resolves #1477. | porcelain: 'abbrev' parameter is ignored when describing tagless repositories
Hello,
This may be a known/expected behaviour, based on the [logic](https://github.com/jelmer/dulwich/blob/77c2d8d10695a6dfded196a927047eecf88c542f/dulwich/porcelain.py#L2223-L2225) and [`todo` comment](https://github.com/jelmer/dulwich/bl... | jelmer/dulwich | diff --git a/tests/test_porcelain.py b/tests/test_porcelain.py
index 008b0361..d76dd187 100644
--- a/tests/test_porcelain.py
+++ b/tests/test_porcelain.py
@@ -3403,6 +3403,19 @@ class DescribeTests(PorcelainTestCase):
porcelain.describe(self.repo.path, abbrev=40),
)
+ def test_untagged_commit... | [
"tests/test_porcelain.py::DescribeTests::test_untagged_commit_abbreviation"
] | [
"tests/test_porcelain.py::ArchiveTests::test_simple",
"tests/test_porcelain.py::UpdateServerInfoTests::test_simple",
"tests/test_porcelain.py::CommitTests::test_custom_author",
"tests/test_porcelain.py::CommitTests::test_no_verify",
"tests/test_porcelain.py::CommitTests::test_timezone",
"tests/test_porcel... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/jelmer/dulwich/blob/77c2d8d10695a6d... |
2f8a356b3f9dd4f5787017bcde143586f80f782f | 2023-01-26 23:26:43 | docker.io/swerebenchv2/getmoto-moto:5878-2f8a356 | getmoto__moto-5878 | Method: allocate_hosts(self, Quantity, AvailabilityZone, InstanceType=None, InstanceFamily=None, HostRecovery=None, AutoPlacement=None, TagSpecifications=None)
Location: moto/ec2/responses/hosts.py → HostsResponse.allocate_hosts
Inputs:
- **Quantity** (int, required) – number of dedicated hosts to allocate.
- *... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index 8062fc56b..d000b2826 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -1745,7 +1745,7 @@
- [X] accept_vpc_peering_connection
- [ ] advertise_byoip_cidr
- [X] allocate_address
-- [ ] allocate_hosts
+- [X] allocate_ho... | EC2: Support Dedicated Hosts
Fixes #2423
This implements:
- allocate_hosts()
- describe_hosts()
- modify_hosts()
- release_hosts() | NotImplementedError: allocate_hosts
`NotImplementedError: The allocate_hosts action has not been implemented`
Method used to generate issue:
```
def setup_mock_dedicated_host(zone):
response = ec2client.allocate_hosts(
AvailabilityZone=zone,
InstanceType='t3a.nano',
Quantity=1
... | getmoto/moto | diff --git a/tests/terraformtests/terraform-tests.success.txt b/tests/terraformtests/terraform-tests.success.txt
index 85145b503..28e16c2ce 100644
--- a/tests/terraformtests/terraform-tests.success.txt
+++ b/tests/terraformtests/terraform-tests.success.txt
@@ -118,6 +118,11 @@ dynamodb:
ec2:
- TestAccEC2Availabilit... | [
"tests/test_ec2/test_hosts.py::test_allocate_hosts",
"tests/test_ec2/test_hosts.py::test_describe_hosts_with_instancefamily",
"tests/test_ec2/test_hosts.py::test_describe_hosts",
"tests/test_ec2/test_hosts.py::test_describe_hosts_with_tags",
"tests/test_ec2/test_hosts.py::test_describe_hosts_using_filters",... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
69454168e8780b52b898fb3d1e9ef7a72521f618 | 2024-11-03 14:20:14 | docker.io/swerebenchv2/myremylar-pygame-gui:646-6945416 | myremylar__pygame_gui-646 | No new interfaces are introduced. | python | MIT | diff --git a/pygame_gui/core/text/text_box_layout.py b/pygame_gui/core/text/text_box_layout.py
index 155b2dc..283cf21 100644
--- a/pygame_gui/core/text/text_box_layout.py
+++ b/pygame_gui/core/text/text_box_layout.py
@@ -1339,8 +1339,8 @@ class TextBoxLayout:
row_index = bisect_left(self.row_lengths, text_... | Try to fix text entry new line bug
As title.
fixes #606 | UITextEntryBox desyncs in an edge case
**Describe the bug**
Stumbled upon this while getting to know this lovely library (thank you for that!).
The behavior I observed was that sometimes when entering a newline and a character directly after it, the character would propagate to the widget's internal state, but not ... | MyreMylar/pygame_gui | diff --git a/tests/test_core/test_ui_appearance_theme.py b/tests/test_core/test_ui_appearance_theme.py
index 3920cbe..2d2c206 100644
--- a/tests/test_core/test_ui_appearance_theme.py
+++ b/tests/test_core/test_ui_appearance_theme.py
@@ -192,11 +192,8 @@ class TestUIAppearanceTheme:
assert shadow_width == '0'
... | [
"tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_get_font"
] | [
"tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_creation",
"tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_load_non_default_theme_from_package",
"tests/test_core/test_ui_appearance_theme.py::TestUIAppearanceTheme::test_load_non_default_theme_from_dictionary",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": ... |
90e63c1cb5178acaa49cfc301b2688dcaba12115 | 2023-01-22 10:54:42 | docker.io/swerebenchv2/getmoto-moto:5864-90e63c1 | getmoto__moto-5864 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8891b5ae6..efe3fe77d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -209,6 +209,8 @@ jobs:
docker build -t motoserver/moto . --tag moto:latest
# Required to get the correct Digest
# See h... | Enable Apple M1 support for Docker-builds with latest-tag
Fixes #5858
Related to #5553 - this applies the same solution to our `latest`-releases | Docker image support for Apple Silicon?
Not sure if this is the correct repo, I don't see any other repos under this organisation for the docker images.
I tried searching issues for `docker` and also `m1`, but didn't see any obvious results for previous threads on this topic.
---
It seems that the docker image... | getmoto/moto | diff --git a/tests/test_ecs/test_ecs_boto3.py b/tests/test_ecs/test_ecs_boto3.py
index 161212b01..94b81554e 100644
--- a/tests/test_ecs/test_ecs_boto3.py
+++ b/tests/test_ecs/test_ecs_boto3.py
@@ -701,6 +701,17 @@ def test_list_services():
cluster1_fargate_services["serviceArns"][0].should.equal(test_ecs_service2_... | [
"tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[no",
"tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[unknown]"
] | [
"tests/test_ecs/test_ecs_boto3.py::test_create_cluster",
"tests/test_ecs/test_ecs_boto3.py::test_create_cluster_with_setting",
"tests/test_ecs/test_ecs_boto3.py::test_list_clusters",
"tests/test_ecs/test_ecs_boto3.py::test_describe_clusters",
"tests/test_ecs/test_ecs_boto3.py::test_describe_clusters_missing... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://hub.docker.com/r/motoserver/moto/tags"
],
... |
9cc7c7f4d32c8e69c67460e8b8b2aa5ed411da2e | 2020-06-01 15:25:35 | docker.io/swerebenchv2/wtforms-wtforms:615-9cc7c7f | wtforms__wtforms-615 | Method: RadioField.__call__(self, **render_kw)
Location: wtforms/fields/core.py (inherits from `SelectFieldBase` → `Field.__call__`)
Inputs: optional rendering keyword arguments (`render_kw`); the field instance contains `self.choices`, `self.validators` (e.g., `InputRequired`) and other field configuration.
Outp... | python | BSD-3-Clause | diff --git a/src/wtforms/fields/core.py b/src/wtforms/fields/core.py
index 331e5d6..0326545 100644
--- a/src/wtforms/fields/core.py
+++ b/src/wtforms/fields/core.py
@@ -500,7 +500,11 @@ class SelectFieldBase(Field):
def __iter__(self):
opts = dict(
- widget=self.option_widget, name=self.name,... | Fix RadioField required attribute
Fixes #477
Add required attribute for RadioFields. | DataRequired and InputRequired do not add required attribute to RadioField objects
When adding a `DataRequired` or `InputRequired` validator to a `RadioField`, the `required` attribute of the `input` tag.
Here's the function I wrote that reveals the problem:
```python
@bp.route('/<string:slug>/survey', met... | wtforms/wtforms | diff --git a/tests/fields/test_radio.py b/tests/fields/test_radio.py
index 523a71b..863b933 100644
--- a/tests/fields/test_radio.py
+++ b/tests/fields/test_radio.py
@@ -1,3 +1,6 @@
+from tests.common import DummyPostData
+
+from wtforms import validators
from wtforms.fields import RadioField
from wtforms.form import ... | [
"tests/fields/test_radio.py::test_required_flag"
] | [
"tests/fields/test_radio.py::test_radio_field",
"tests/fields/test_radio.py::test_text_coercion",
"tests/fields/test_radio.py::test_callable_choices",
"tests/fields/test_radio.py::test_required_validator",
"tests/fields/test_select.py::test_select_field_copies_choices",
"tests/fields/test_select.py::test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
39a0032c264a911e0456cc8472237e920f6ee07f | 2016-09-21 21:10:00 | docker.io/swerebenchv2/ipython-traitlets:319-39a0032 | ipython__traitlets-319 | Method: Application.parse_command_line(self, argv: list[str])
Location: traitlets/config/application.py
Inputs:
- self – the Application (or subclass) instance.
- argv – a list of command‑line arguments (e.g. ["-e"], ["--enable"], ["-i=5"]). Short options may be supplied as a single dash when the flag or alias key... | python | BSD-3-Clause | diff --git a/traitlets/config/application.py b/traitlets/config/application.py
index 0d886f0..b79062b 100644
--- a/traitlets/config/application.py
+++ b/traitlets/config/application.py
@@ -312,16 +312,28 @@ class Application(SingletonConfigurable):
classdict[c.__name__] = c
for alias, longna... | app: support flags/aliases given as (--long, -short) tuple
+ Specify both short/long forms of flags & aliases at once.
+ Explain explicitely equivalence of flags/aliases.
+ Handle and log exceptions while printing flag/alias help-msgs - stacktrace was too convoluted otherwise.
+ FIX #296: print all relevant (sub)cla... | Enhance `--help-all` to print all relevant configurables, along with their relations
Now that an elaborate traversal of **"Configurable-inheritance"** got merged (#289) for when generating the sample config-file (hopefully everything works all right),
is there a reason why the same logic is not used when printing th... | ipython/traitlets | diff --git a/traitlets/config/tests/test_application.py b/traitlets/config/tests/test_application.py
index 5db0243..dcc3c2f 100644
--- a/traitlets/config/tests/test_application.py
+++ b/traitlets/config/tests/test_application.py
@@ -6,9 +6,12 @@ Tests for traitlets.config.application.Application
# Copyright (c) IPytho... | [
"traitlets/config/tests/test_application.py::TestApplication::test_aliases",
"traitlets/config/tests/test_application.py::TestApplication::test_aliases_help_msg",
"traitlets/config/tests/test_application.py::TestApplication::test_config",
"traitlets/config/tests/test_application.py::TestApplication::test_conf... | [
"traitlets/config/tests/test_application.py::TestApplication::test_basic",
"traitlets/config/tests/test_application.py::TestApplication::test_cli_priority",
"traitlets/config/tests/test_application.py::TestApplication::test_document_config_option",
"traitlets/config/tests/test_application.py::TestApplication:... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ipython/traitlets/blob/master/trait... |
71eea06f8c6116ce5919349ea8f99d547083a0fc | 2024-03-22 12:50:31 | docker.io/swerebenchv2/altair-viz-altair:3377-71eea06 | altair-viz__altair-3377 | Function: sanitize_arrow_table(pa_table)
Location: altair.utils.core (function sanitize_arrow_table)
Inputs:
- pa_table: a pyarrow Table object (any schema). The table may contain columns of types timestamp, date, duration, or other Arrow-supported types. Date and timestamp columns are converted to strings; duration c... | python | BSD-3-Clause | diff --git a/altair/utils/__init__.py b/altair/utils/__init__.py
index 0bd8ec5e..dba1e1f8 100644
--- a/altair/utils/__init__.py
+++ b/altair/utils/__init__.py
@@ -2,6 +2,7 @@ from .core import (
infer_vegalite_type,
infer_encoding_types,
sanitize_dataframe,
+ sanitize_arrow_table,
parse_shorthand... | fix: Handle Date32 columns in Arrow tables and Polars DataFrames
Closes #3280
This includes:
1. Support sanitizing Date32 columns in pyarrow Tables
2. For objects that follow the DataFrame interchange protocol, check for direct arrow conversion methods by name ("arrow", "to_arrow", and "to_arrow_table"), and if ... | Polars Dataframe with "date" dtype would not be rendered by Altair. Two workarounds (with and without pandas) are proposed.
## Issue when altair (version 5.2.0) chart would not render if **any of the column** is in ["**date**" temporal data type](https://pola-rs.github.io/polars/user-guide/transformations/time-series/p... | altair-viz/altair | diff --git a/tests/utils/test_mimebundle.py b/tests/utils/test_mimebundle.py
index 541ac483..97c353c5 100644
--- a/tests/utils/test_mimebundle.py
+++ b/tests/utils/test_mimebundle.py
@@ -241,7 +241,7 @@ def check_pre_transformed_vega_spec(vega_spec):
# Check that the bin transform has been applied
row0 = da... | [
"tests/utils/test_mimebundle.py::test_vegalite_to_vega_mimebundle[vl-convert]",
"tests/utils/test_mimebundle.py::test_vegalite_to_vega_mimebundle[None]",
"tests/utils/test_mimebundle.py::test_spec_to_vegalite_mimebundle",
"tests/utils/test_mimebundle.py::test_spec_to_vega_mimebundle",
"tests/utils/test_mime... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://pola-rs.github.io/polars/user-guide/transforma... |
debb661f016f70096f4e9abeb7251332e686984a | 2025-01-14 10:31:08 | docker.io/swerebenchv2/tatuylonen-wiktextract:986-debb661 | tatuylonen__wiktextract-986 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/wiktextract/extractor/en/inflection.py b/src/wiktextract/extractor/en/inflection.py
index 040607b3..85d0ad2b 100644
--- a/src/wiktextract/extractor/en/inflection.py
+++ b/src/wiktextract/extractor/en/inflection.py
@@ -3046,6 +3046,10 @@ def handle_wikitext_or_html_table(
# Imported here to avoid a... | Fix pre-expanded templates being split by inflection section template detection
At some point, having several templates in an inflection section needed to be fixed, which I think I? did with a simple regex for curly braces and matching nesting levels.
However, in cases where you got already pre-expanded (or just raw... | Missing inflection templates for aii
The 2025-01-03 kaikki dump from the enwiktionary dump dated 2025-01-01 for https://kaikki.org/dictionary/Assyrian%20Neo-Aramaic/index.html is missing `inflection_templates` for prepositions.
The XML file https://dumps.wikimedia.org/enwiktionary/20250101/enwiktionary-20250101-page... | tatuylonen/wiktextract | diff --git a/tests/test_en_inflection_aii.py b/tests/test_en_inflection_aii.py
new file mode 100644
index 00000000..9c3c14dd
--- /dev/null
+++ b/tests/test_en_inflection_aii.py
@@ -0,0 +1,242 @@
+# -*- fundamental -*-
+#
+# Tests for parsing inflection tables
+#
+# Copyright (c) 2021, 2022 Tatu Ylonen. See file LICENS... | [
"tests/test_en_inflection_aii.py::InflTests::test_aii_table"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://kaikki.org/dictionary/Assyrian%20Neo-Aramaic/i... |
27ed3d16c9ba734ec177ea4c393afba515ba6334 | 2017-08-24 21:43:55 | docker.io/swerebenchv2/yelp-bravado-core:183-27ed3d1 | yelp__bravado-core-183 | No new interfaces are introduced. | python | custom-check-github | diff --git a/bravado_core/docstring.py b/bravado_core/docstring.py
index 9a2a3e7..2817bea 100644
--- a/bravado_core/docstring.py
+++ b/bravado_core/docstring.py
@@ -3,8 +3,6 @@ import logging
from six import iteritems
-from bravado_core.exception import SwaggerMappingError
-
log = logging.getLogger(__name__)
... | Don't perform validation if type is not specified
Types are not required according to the swagger specification, however bravado will fail if a type is not specified. this fixes that by not performing validation when there is no type specified
This fixes #166 | Bravado doesn't default to type object for definitions objects
https://github.com/Yelp/bravado-core/blob/master/bravado_core/unmarshal.py#L37
```
if not obj_type and 'allOf' in schema_object_spec:
```
This should probably be `or` | Yelp/bravado-core | diff --git a/tests/docstring/create_operation_docstring_test.py b/tests/docstring/create_operation_docstring_test.py
index 6d4cae0..dcc66f4 100644
--- a/tests/docstring/create_operation_docstring_test.py
+++ b/tests/docstring/create_operation_docstring_test.py
@@ -78,6 +78,22 @@ def test_no_description(op_spec, empty_s... | [
"tests/docstring/create_operation_docstring_test.py::test_notype",
"tests/docstring/formatted_type_test.py::test_default",
"tests/unmarshal/unmarshal_schema_object_test.py::test_missing_object_spec"
] | [
"tests/docstring/create_operation_docstring_test.py::test_simple",
"tests/docstring/create_operation_docstring_test.py::test_no_parameters",
"tests/docstring/create_operation_docstring_test.py::test_deprecated",
"tests/docstring/create_operation_docstring_test.py::test_no_summary",
"tests/docstring/create_o... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Yelp/bravado-core/blob/master/bravado... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.