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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba51537349a9acdf4b9d0427c4a21e0fb6a2ae05 | 2024-09-13 20:26:23 | docker.io/swerebenchv2/aio-libs-aiohttp:9140-ba51537 | aio-libs__aiohttp-9140 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/9140.bugfix.rst b/CHANGES/9140.bugfix.rst
new file mode 100644
index 000000000..c9b8f7bf4
--- /dev/null
+++ b/CHANGES/9140.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed race condition that could cause server to close connection incorrectly at keepalive timeout -- by :user:`Dreamosorcerer`.
diff --git a/aiohttp... | Fix keepalive race condition
Fixes #9138. | 3.9.2 server keep-alive timeout can cause disconnect of active connections and hence client server disconnect errors
### Describe the bug
as mentioned in https://github.com/aio-libs/aiohttp/issues/2682 we had an issue with keep-alive timeouts. There appears to be a race condition between how often requests are made a... | aio-libs/aiohttp | diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
index ec9279ccb..aad386f07 100644
--- a/tests/test_web_functional.py
+++ b/tests/test_web_functional.py
@@ -25,6 +25,7 @@ from aiohttp import (
from aiohttp.hdrs import CONTENT_LENGTH, CONTENT_TYPE, TRANSFER_ENCODING
from aiohttp.test_utils impo... | [
"tests/test_web_functional.py::test_keepalive_race_condition[pyloop]"
] | [
"tests/test_web_functional.py::test_simple_get[pyloop]",
"tests/test_web_functional.py::test_simple_get_with_text[pyloop]",
"tests/test_web_functional.py::test_handler_returns_not_response[pyloop]",
"tests/test_web_functional.py::test_handler_returns_none[pyloop]",
"tests/test_web_functional.py::test_handle... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aio-libs/aiohttp/issues/2682"
],
... |
a8f5bae3f163171d774c2dd93170fc85afd57564 | 2016-11-04 10:42:16 | docker.io/swerebenchv2/frictionlessdata-tabulator-py:129-a8f5bae | frictionlessdata__tabulator-py-129 | Method: Stream.__init__(self, source: str, format: str | None = None, **options)
Location: tabulator/stream.py
Inputs:
- **source** – URL, file path or file‑like object; tests pass a Google Sheets URL string.
- **format** – optional explicit format name (e.g., “csv”, “gsheet”); can be None so the library auto‑detect... | python | MIT | diff --git a/README.md b/README.md
index cc6d0e1..9b77439 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Consistent interface for stream reading and writing tabular data (csv/xls/json/e
## Features
-- supports various formats: csv/tsv/xls/xlsx/json/ndjson/ods/native/etc
+- supports various formats: csv/t... | Added Google Spreadsheet support
- fixes #117
---
@akariv
@pwalsh
If I've got it right (and you know any google docs are the best in the world=) that any usage of Sheets API should include API Key:
- https://developers.google.com/sheets/quickstart/python
- https://developers.google.com/sheets/guides/author... | Add Google Sheet parser
# Description
We would like a Google Sheets parser. This is quite high priority, as we'd like it for direct use in OpenSpending.
Some google sheets are "public on the web", and some need credentials. first implementation can assume public on the web and completely bypass credentials.
| frictionlessdata/tabulator-py | diff --git a/tests/test_stream.py b/tests/test_stream.py
index 501fc37..a5800cf 100644
--- a/tests/test_stream.py
+++ b/tests/test_stream.py
@@ -8,7 +8,7 @@ import pytest
from tabulator import Stream, exceptions
-# Tests [formats]
+# Tests [format:csv]
def test_stream_csv_excel():
source = 'value1,value2\n... | [
"tests/test_stream.py::test_stream_gsheet_bad_url"
] | [
"tests/test_stream.py::test_stream_csv_excel",
"tests/test_stream.py::test_stream_csv_excel_tab",
"tests/test_stream.py::test_stream_csv_unix",
"tests/test_stream.py::test_stream_csv_escaping",
"tests/test_stream.py::test_stream_csv_doublequote",
"tests/test_stream.py::test_stream_csv_delimiter",
"tests... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.google.com/spreadsheets/d/1HXCBuWlekSd359... |
d429a907d050f99c7d8b80afd7c050f569a03c29 | 2021-03-18 12:31:31 | docker.io/swerebenchv2/datalad-datalad:5509-d429a90 | datalad__datalad-5509 | Function: parse_gitconfig_dump(dump: str, cwd: path‑like | None = None, multi_value: bool = True) → (dict[str, str | None], set[pathlib.Path])
Location: datalad/config.py
Inputs:
- **dump** – raw output from `git config -z --list` (null‑byte separated string). May contain optional origin lines (`file:<path>` or `comman... | python | custom-check-github | diff --git a/datalad/config.py b/datalad/config.py
index 3cbfb06ed..a30853fb1 100644
--- a/datalad/config.py
+++ b/datalad/config.py
@@ -31,7 +31,15 @@ from pathlib import Path
import logging
lgr = logging.getLogger('datalad.config')
-cfg_kv_regex = re.compile(r'(^.*)\n(.*)$', flags=re.MULTILINE)
+# git-config key ... | Test, documentation, fixes and public introduction of parse_gitconfig_dump()
This PR (in order of importance):
- fixes handling of multi-line values (all but the first line were ignored before)
- introduces a unit test for this function
- adds more documentation
- robustifies the parser to be able to work with co... | git-config produces output that _parse_gitconfig_dump cannot handle
This is still a mystery, but this issue is about some aspect that might trigger a `get` failure that was reported to me. The environment is an HPC system with GPFS. Correction: the dataset is located in `/dev/shm/...` (tmpfs), while the user HOME is on... | datalad/datalad | diff --git a/datalad/tests/test_config.py b/datalad/tests/test_config.py
index 17e4f75ab..ac57affd4 100644
--- a/datalad/tests/test_config.py
+++ b/datalad/tests/test_config.py
@@ -40,6 +40,7 @@ from datalad.distribution.dataset import Dataset
from datalad.api import create
from datalad.config import (
ConfigMan... | [
"datalad/tests/test_config.py::test_parse_gitconfig_dump",
"datalad/tests/test_config.py::test_from_env",
"datalad/tests/test_config.py::test_rewrite_url"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
bbcfc8c3656e9039975c0e08379e07cafce35449 | 2018-06-20 20:35:01 | docker.io/swerebenchv2/box-box-python-sdk:283-bbcfc8c | box__box-python-sdk-283 | Method: BaseObject.__eq__(self, other)
Location: boxsdk/object/base_object.py
Inputs: `other` – an instance of `BaseObject` (or any object); comparison is only valid when `other` is a `BaseObject`.
Outputs: Returns `True` if both objects represent the same Box API resource (their URLs are identical), `False` othe... | python | Apache-2.0 | diff --git a/.travis.yml b/.travis.yml
index 4aa3a59..ad6acef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,11 @@
sudo: false
language: python
+branches:
+ only:
+ - master
+ - "1.5"
+
cache:
directories:
- $HOME/.cache/pip
diff --git a/HISTORY.rst b/HISTORY.rst
index 7c3d85d..e39f... | Fix API object equality test
Fixes #163 | BaseObject.__eq__ is incorrect
`BaseObject.__eq__` only compares object ID, not type. So `client.file(id) == client.folder(id)` evaluates to `True`.
It should also return `NotImplemented` if the other object is not a `BaseObject`, but right now it will raise an exception (e.g. #151 ).
This is technically a backwa... | box/box-python-sdk | diff --git a/test/unit/object/conftest.py b/test/unit/object/conftest.py
index 9c0264e..021e4d3 100644
--- a/test/unit/object/conftest.py
+++ b/test/unit/object/conftest.py
@@ -7,6 +7,7 @@
import pytest
from six import int2byte, PY2
from boxsdk.object.collaboration import Collaboration
+from boxsdk.object.collection... | [
"test/unit/object/test_base_object.py::test_update_info[file-None-None]",
"test/unit/object/test_base_object.py::test_update_info[file-None-headers1]",
"test/unit/object/test_base_object.py::test_update_info[file-None-headers2]",
"test/unit/object/test_base_object.py::test_update_info[file-None-headers3]",
... | [] | {
"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.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
75b554a5e9c746641aa1805fce0584e0577f378b | 2021-05-25 09:59:02 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1022-75b554a | slackapi__python-slack-sdk-1022 | Method: View.__init__(self, type: str, title: Union[str, Dict], submit: Union[str, Dict] = None, close: Union[str, Dict] = None, external_id: str = None, private_metadata: str = None, callback_id: str = None, blocks: List[Dict] = None, state: Union[ViewState, dict, None] = None, hash: str = None, clear_on_close: bool =... | python | MIT | diff --git a/slack_sdk/models/views/__init__.py b/slack_sdk/models/views/__init__.py
index f524fa5..0b32273 100644
--- a/slack_sdk/models/views/__init__.py
+++ b/slack_sdk/models/views/__init__.py
@@ -73,6 +73,8 @@ class View(JsonObject):
self.blocks = Block.parse_all(blocks)
self.private_metadata = p... | Fix #1021 by updating View constructor to convert state as dict to class object
## Summary
This pull request fixes #1021 by updating the `slack_sdk.models.views.View`'s constructor to convert a given `state` dict value to the `ViewState` class object.
As all other properties in `View` class are already converted... | Initialize View state field to ViewState object based on type
The View class (`slack_sdk.models.views.View`) does not initialize the state parameter value to `ViewState(state)` or `ViewState(**state)` based on the corresponding type (`ViewState` or `dict`, respectively)
### Reproducible in:
#### The Slack SDK ver... | slackapi/python-slack-sdk | diff --git a/tests/data/view_modal_009.json b/tests/data/view_modal_009.json
index c8fe21d..7464086 100644
--- a/tests/data/view_modal_009.json
+++ b/tests/data/view_modal_009.json
@@ -35,7 +35,7 @@
"callback_id": "view_4",
"external_id": "some-unique-id",
"state": {
- "values": []
+ "values": {}
},
... | [
"tests/slack_sdk/models/test_views.py::ViewTests::test_load_modal_view_008",
"tests/slack_sdk/models/test_views.py::ViewTests::test_load_modal_view_009",
"tests/slack_sdk/models/test_views.py::ViewTests::test_load_modal_view_010"
] | [
"tests/slack_sdk/models/test_elements.py::InteractiveElementTests::test_action_id",
"tests/slack_sdk/models/test_elements.py::ButtonElementTests::test_document_1",
"tests/slack_sdk/models/test_elements.py::ButtonElementTests::test_document_2",
"tests/slack_sdk/models/test_elements.py::ButtonElementTests::test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://my.slack.com/help/requests/new",
"https://... |
2780d1ff0facc43138a77f0960d2fbf35c7c7341 | 2020-09-28 17:00:29 | docker.io/swerebenchv2/xgcm-xgcm:250-2780d1f | xgcm__xgcm-250 | Method: Grid.__init__(self, ds, coords=None, metrics=None, periodic=False, boundary='fill'|'extend', fill_value=None, **kwargs)
Location: xgcm/grid.py – class Grid
Inputs:
- ds: xarray.Dataset containing data and coordinates
- coords: optional mapping defining center/right/left coordinate names per axis
- metrics:... | python | MIT | diff --git a/xgcm/grid.py b/xgcm/grid.py
index 42ee589..e8b1c68 100644
--- a/xgcm/grid.py
+++ b/xgcm/grid.py
@@ -581,7 +581,7 @@ class Axis:
da,
to=None,
boundary=None,
- fill_value=0.0,
+ fill_value=None,
boundary_discontinuity=None,
vector_partner=None,
... | Bugfix 224
<!-- Feel free to remove check-list items aren't relevant to your change -->
- [x] Closes #224
- [x] Tests added
- [x] Passes `black . `
- [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` | Globally set `fill_value` set on grid object is not propagated.
I just discovered what I think is a bug:
Consider this simple example:
```
from xgcm import Grid
import xarray as xr
import numpy as np
z = np.arange(3)
z_right = z+0.5
ds = xr.DataArray(np.ones_like(z)*1e5, dims=['z'], coords={'z':z}).to_datas... | xgcm/xgcm | diff --git a/xgcm/test/test_metrics_ops_single_axis.py b/xgcm/test/test_metrics_ops_single_axis.py
index 5835dca..6d1ffd9 100644
--- a/xgcm/test/test_metrics_ops_single_axis.py
+++ b/xgcm/test/test_metrics_ops_single_axis.py
@@ -71,6 +71,43 @@ class TestParametrized:
assert new.equals(expected)
+@pytes... | [
"xgcm/test/test_metrics_ops_single_axis.py::test_boundary_global_input[10-fill-interp]",
"xgcm/test/test_metrics_ops_single_axis.py::test_boundary_global_input[10-fill-diff]",
"xgcm/test/test_metrics_ops_single_axis.py::test_boundary_global_input[10-fill-min]",
"xgcm/test/test_metrics_ops_single_axis.py::test... | [
"xgcm/test/test_metrics_ops_single_axis.py::TestParametrized::test_weighted_metric[fill-True-X-X-tracer-B-interp]",
"xgcm/test/test_metrics_ops_single_axis.py::TestParametrized::test_weighted_metric[fill-True-X-X-tracer-B-diff]",
"xgcm/test/test_metrics_ops_single_axis.py::TestParametrized::test_weighted_metric... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/xgcm/xgcm/blob/9c83d5368193237d80f728... |
634b1ecb6e147b91b9a3756bfd87bd4a93780061 | 2024-11-07 11:35:09 | docker.io/swerebenchv2/aristanetworks-anta:920-634b1ec | aristanetworks__anta-920 | Class: DnsServer
Location: anta.input_models.services
Inputs:
- server_address: IPv4Address | IPv6Address – the DNS server’s IP address (required).
- vrf: str = "default" – name of the VRF instance the server belongs to.
- priority: int (0 ≤ value ≤ 4) – server priority; lower numbers mean higher priority.
Outputs:
- A... | python | Apache-2.0 | diff --git a/anta/input_models/services.py b/anta/input_models/services.py
new file mode 100644
index 00000000..596a3e38
--- /dev/null
+++ b/anta/input_models/services.py
@@ -0,0 +1,31 @@
+# Copyright (c) 2023-2024 Arista Networks, Inc.
+# Use of this source code is governed by the Apache License 2.0
+# that can be fou... | refactor(anta): Refactor VerifyDNSServers test for nicer failure message
# Description
Refactor VerifyDNSServers test for nicer failure message
Related to #587 #388
# Checklist:
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my code
- [X] I have run p... | Have nicer result failure messages
Would be nice to have a more human readable format for the test result failures messages:

BGP tests are also not very user friendly:
:
class VerifyLoggingLogsGeneration(AntaTest):
"""Verifies if logs are generated.
+ This test performs the... | [
"tests/units/anta_tests/test_services.py::test[anta.tests.services.VerifyHostname-success]",
"tests/units/anta_tests/test_services.py::test[anta.tests.services.VerifyHostname-failure-incorrect-hostname]",
"tests/units/anta_tests/test_services.py::test[anta.tests.services.VerifyDNSLookup-success]",
"tests/unit... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/arista-netdevops-community/anta/ass... |
7dfee0c585d2a3781ffc6e769c7c8bbe4dbe9714 | 2024-03-28 14:40:16 | docker.io/swerebenchv2/googleapis-python-bigquery:1879-7dfee0c | googleapis__python-bigquery-1879 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py
index 9f8dcfde..3b58d373 100644
--- a/google/cloud/bigquery/_pandas_helpers.py
+++ b/google/cloud/bigquery/_pandas_helpers.py
@@ -32,7 +32,7 @@ try:
import pandas # type: ignore
pandas_import_exception = None
-... | fix: make `pyarrow` an optional dependency post-3.20.0 yanked release
Partial rollback of https://github.com/googleapis/python-bigquery/commit/0ac6e9bf186945832f5dcdf5a4d95667b4da223e
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- ... | pyarrow import error in 3.20.0
#### Environment details
- OS type and version: MacOS 14.4.1 (23E224)
- Python version: 3.10
- pip version: 24.0
- `google-cloud-bigquery` version: 3.20.0
#### Steps to reproduce
Create a new virtualenv, install google-cloud-bigquery==3.20.0, attempt to `import google.c... | googleapis/python-bigquery | diff --git a/samples/desktopapp/requirements-test.txt b/samples/desktopapp/requirements-test.txt
index 413a7fd4..9142d490 100644
--- a/samples/desktopapp/requirements-test.txt
+++ b/samples/desktopapp/requirements-test.txt
@@ -2,4 +2,3 @@ google-cloud-testutils==1.4.0
pytest===7.4.4; python_version == '3.7'
pytest==8... | [
"tests/unit/test__pandas_helpers.py::test_do_all",
"tests/unit/test__pandas_helpers.py::test_all_",
"tests/unit/test__pandas_helpers.py::test_verify_pandas_imports_no_pandas",
"tests/unit/test__versions_helpers.py::test_try_import_raises_error_w_no_pyarrow",
"tests/unit/test__versions_helpers.py::test_retur... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
d8de0d0f6f925b95d3d276c647302518684b94f0 | 2022-11-01 19:41:45 | docker.io/swerebenchv2/pyomo-pyomo:2597-d8de0d0 | pyomo__pyomo-2597 | Function: _validate_file_name(cplex, filename, description)
Location: pyomo.solvers.plugins.solvers.CPLEX._validate_file_name
Inputs:
- **cplex** – a CPLEX solver object (or any object used only to provide context for the error message); not inspected by the function.
- **filename** – `str` representing the path or nam... | python | custom-check-github | diff --git a/pyomo/solvers/plugins/solvers/CPLEX.py b/pyomo/solvers/plugins/solvers/CPLEX.py
index 7fb16249f..ea33fabf2 100644
--- a/pyomo/solvers/plugins/solvers/CPLEX.py
+++ b/pyomo/solvers/plugins/solvers/CPLEX.py
@@ -66,8 +66,10 @@ def _validate_file_name(cplex, filename, description):
"CPLEX or re... | Allow more characters in CPLEX Filenames
## Fixes #2548
## Summary/Motivation:
The list of allowable characters has changed. This PR updates the list and adds extra tests for it.
## Changes proposed in this PR:
- Add full list of allowable characters (see [IBM's docs](https://www.ibm.com/docs/en/icos/12.10.0?t... | Unallowed character (@) found in CPLEX solution file path/name
## Summary
On Linux, solving a model with CPLEX solver where the user has a name of the form `user@D01.arc.local` is not allowed.
### Steps to reproduce the issue
As outlined in Summary above
### Error Message
```console
Traceback (most rece... | Pyomo/pyomo | diff --git a/pyomo/solvers/tests/checks/test_cplex.py b/pyomo/solvers/tests/checks/test_cplex.py
index 8c9cb52c7..9e2269d5a 100644
--- a/pyomo/solvers/tests/checks/test_cplex.py
+++ b/pyomo/solvers/tests/checks/test_cplex.py
@@ -61,6 +61,33 @@ class CPLEX_utils(unittest.TestCase):
with self.assertRaisesRegex(V... | [
"pyomo/solvers/tests/checks/test_cplex.py::CPLEX_utils::test_validate_file_name"
] | [
"pyomo/solvers/tests/checks/test_cplex.py::CPLEXShellWritePrioritiesFile::test_raise_due_to_invalid_priority",
"pyomo/solvers/tests/checks/test_cplex.py::CPLEXShellWritePrioritiesFile::test_use_default_due_to_invalid_direction",
"pyomo/solvers/tests/checks/test_cplex.py::CPLEXShellWritePrioritiesFile::test_writ... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B6",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "medium",
"external_urls": [
"https://github.com/Pyomo/pyomo/blob/3c50ee20e8d93f6803... |
01ca2f1b4db7bba99e15f00d534a013c6a656eec | 2023-01-18 03:52:34 | docker.io/swerebenchv2/stfc-psyclone:2015-01ca2f1 | stfc__psyclone-2015 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/changelog b/changelog
index 47ded6741..9eb0f69d6 100644
--- a/changelog
+++ b/changelog
@@ -270,6 +270,9 @@
92) PR #1976 for #1974. Fixes issues with literal constants and
array accesses in VariableAccessInfo for the LFRic API.
+ 93) PR #2015 for #2012. Fixes crash in access-information
+ collection ... | #2012 Fix crash in access information collection when an LFRic domain loop is used.
This should fix #2012 . I looked at a few options of implementing this, but in `loop.py`, there is no `loop_type` or `iteration_space` defined that I could use (some tests failed because they did pass in a plain `Loop`, not a `PSyLoop`... | NanTestTrans fails if applied to a 'null' loop
We get an error saying that the loop variable is `None`. Without looking at the code, I think this case should probably be supported so I'm marking this as a bug. | stfc/PSyclone | diff --git a/src/psyclone/tests/core/access_info_test.py b/src/psyclone/tests/core/access_info_test.py
index 0a3ce2cbf..8668945b6 100644
--- a/src/psyclone/tests/core/access_info_test.py
+++ b/src/psyclone/tests/core/access_info_test.py
@@ -1,7 +1,7 @@
# ----------------------------------------------------------------... | [
"src/psyclone/tests/core/access_info_test.py::test_variables_access_info_domain_loop"
] | [
"src/psyclone/tests/core/access_info_test.py::test_access_info",
"src/psyclone/tests/core/access_info_test.py::test_access_info_exceptions",
"src/psyclone/tests/core/access_info_test.py::test_variable_access_info",
"src/psyclone/tests/core/access_info_test.py::test_variable_access_info_is_array",
"src/psycl... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
201d3ff8f1bbcce6bebf90d2c1a5e5d6dec4fd5e | 2024-09-09 09:43:53 | docker.io/swerebenchv2/google-jax:23502-201d3ff | google__jax-23502 | Function: debug_print(fmt: str, *args, ordered: bool = False, **kwargs) -> None
Location: jax._src.debugging.debug_print (exposed as jax.debug.print)
Inputs:
- fmt (str): format string that may contain `{}` or `{name}` placeholders, optionally with format specifiers (e.g., `{x:.2f}`).
- *args: positional values to fil... | python | Apache-2.0 | diff --git a/jax/_src/debugging.py b/jax/_src/debugging.py
index 62bfdf031..3e7082ab1 100644
--- a/jax/_src/debugging.py
+++ b/jax/_src/debugging.py
@@ -265,6 +265,10 @@ def debug_callback(callback: Callable[..., None], *args: Any,
class _DebugPrintFormatChecker(string.Formatter):
+ def format_field(self, value, ... | Fixed validation in `jax.debug.format`
This commit ensures that no formatting is done during validation, because the arguments could be abstract values.
Closes #23475. | jax.debug.print() fails when passing value formatting (which docs say is supported)
### Description
`jax.debug.print()` supports printing variable values, e.g.: `a = 5; jax.debug.print("{}", a)` outputs `5`. And this works inside of a function that has been JAX compiled as well.
And when called **without** any comp... | google/jax | diff --git a/tests/debugging_primitives_test.py b/tests/debugging_primitives_test.py
index f5d7c4711..273c12f1b 100644
--- a/tests/debugging_primitives_test.py
+++ b/tests/debugging_primitives_test.py
@@ -106,6 +106,16 @@ class DebugPrintTest(jtu.JaxTestCase):
jax.effects_barrier()
self.assertEqual(output()... | [
"tests/debugging_primitives_test.py::DebugPrintTest::test_can_stage_out_debug_print_with_formatting"
] | [
"tests/debugging_primitives_test.py::DebugCallbackTest::test_error_with_non_callable",
"tests/debugging_primitives_test.py::DebugPrintTest::test_can_double_stage_out_ordered_print",
"tests/debugging_primitives_test.py::DebugPrintTest::test_can_stage_out_debug_print",
"tests/debugging_primitives_test.py::Debug... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://jax.readthedocs.io/en/latest/_autosummary/jax.... |
494e485c5d619d8c800bc845c391dfdced21fb2a | 2024-07-08 17:48:08 | docker.io/swerebenchv2/stac-utils-stac-fastapi:729-494e485 | stac-utils__stac-fastapi-729 | Method: create_get_request_model(extensions: List[ApiExtension], base_model: Type[BaseModel]) -> Type[BaseModel]
Location: stac_fastapi/api/models.py
Inputs:
- **extensions** – list of instantiated API extensions (e.g., `FilterExtension()`, `FieldsExtension()`).
- **base_model** – a Pydantic model class (typically `... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index d19e160..649bd2e 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,6 +2,12 @@
## [Unreleased] - TBD
+## [3.0.0b2] - 2024-07-09
+
+### Changed
+
+* move back to `@attrs` (instead of dataclass) for `APIRequest` (model for GET request) class type [#729](https://github.com/stac-... | move back to attrs
closes #728
well, I found a way to still user `attr` and allow `-` in aliases 🎉 | `make_dataclass` erase the `__post_init__` method
in #714 we changed how we create GET request model from using `attrs` to `dataclass`. This was to support `alias` with `-`. The downside was that we need to do `validation/conversion` in a `__post_init__` method.
It seems that this wasn't well tested 😢, and now wh... | stac-utils/stac-fastapi | diff --git a/stac_fastapi/api/tests/test_app.py b/stac_fastapi/api/tests/test_app.py
index 9fb2c52..0ddcb24 100644
--- a/stac_fastapi/api/tests/test_app.py
+++ b/stac_fastapi/api/tests/test_app.py
@@ -1,12 +1,13 @@
-from dataclasses import dataclass
from datetime import datetime
from typing import List, Optional, Uni... | [
"stac_fastapi/api/tests/test_models.py::test_create_get_request_model"
] | [
"stac_fastapi/api/tests/test_app.py::test_client_openapi",
"stac_fastapi/api/tests/test_models.py::test_create_post_request_model[None-True]",
"stac_fastapi/api/tests/test_models.py::test_create_post_request_model[filter1-True]",
"stac_fastapi/api/tests/test_models.py::test_create_post_request_model[test==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/stac-utils/stac-fastapi/blob/494e48... |
a5c337329410c2132e2dea31a69e2a942111a1ec | 2025-01-29 14:08:11 | docker.io/swerebenchv2/kubernetes-client-python:2340-a5c3373 | kubernetes-client__python-2340 | Method: ExecProvider.__init__(self, kube_config, user, cluster)
Location: class ExecProvider in kubernetes/base/config/exec_provider.py
Inputs:
- **kube_config** – dictionary (or ConfigNode) representing the loaded kube‑config data.
- **user** – optional user configuration (can be ``None``).
- **cluster** – an ins... | python | Apache-2.0 | diff --git a/kubernetes/base/config/exec_provider.py b/kubernetes/base/config/exec_provider.py
index 317a56695..03dc0386e 100644
--- a/kubernetes/base/config/exec_provider.py
+++ b/kubernetes/base/config/exec_provider.py
@@ -71,7 +71,7 @@ class ExecProvider(object):
if previous_response:
kubernete... | Fix exec provider
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://git.k8s.io/community/contributors/deve... | Version 32.0.0 gke-gcloud-auth-plugin configuration break
**What happened (please include outputs or screenshots)**:
Attempting to run a simple test program to merely load configuration breaks with a json.dumps TypeError error when using a configuration file similar to those generated by executing the `gcloud containe... | kubernetes-client/python | diff --git a/kubernetes/base/config/exec_provider_test.py b/kubernetes/base/config/exec_provider_test.py
index 9ff62d12e..fc4944b22 100644
--- a/kubernetes/base/config/exec_provider_test.py
+++ b/kubernetes/base/config/exec_provider_test.py
@@ -175,7 +175,7 @@ class ExecProviderTest(unittest.TestCase):
instanc... | [
"kubernetes/base/config/exec_provider_test.py::ExecProviderTest::test_with_cluster_info"
] | [
"kubernetes/base/config/exec_provider_test.py::ExecProviderTest::test_error_code_returned",
"kubernetes/base/config/exec_provider_test.py::ExecProviderTest::test_mismatched_api_version",
"kubernetes/base/config/exec_provider_test.py::ExecProviderTest::test_missing_input_keys",
"kubernetes/base/config/exec_pro... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/kubernetes-client/python/blob/v32.0.0... |
0e49186755250b368239ddf9a571b63aaa73385d | 2021-03-02 20:35:12 | docker.io/swerebenchv2/rochacbruno-dynaconf:533-0e49186 | rochacbruno__dynaconf-533 | Method: BoxList.__init__(self, iterable=None, box_class=None, **box_options)
Location: dynaconf/vendor/box/box_list.py
Inputs:
- iterable (optional): any iterable whose items will be added to the list.
- box_class (optional): class to wrap each item; if omitted or None the function get_dynabox_class_avoiding_circular_... | python | MIT | diff --git a/dynaconf/vendor/box/box_list.py b/dynaconf/vendor/box/box_list.py
index b3778f8..9c03a67 100644
--- a/dynaconf/vendor/box/box_list.py
+++ b/dynaconf/vendor/box/box_list.py
@@ -7,14 +7,19 @@ _C='strict'
_B='utf-8'
_A=None
import copy,re
-from typing import Iterable
+from typing import Iterable,Optional
... | Fix #462 make DynaBox nested List to use DynaBox as default class
Fix #462 | Regression detected [was] Case insensitive access of structures inside lists
**Describe the bug**
When I access a Box that is stored in a BoxList the access becomes case sensitive. I know about DynaBox, but for some reason the list access returns a vanilla Box and not a DynaBox.
Background: I need to parse more ... | rochacbruno/dynaconf | diff --git a/tests/test_dynabox.py b/tests/test_dynabox.py
index 6d8ae1c..7b183ce 100644
--- a/tests/test_dynabox.py
+++ b/tests/test_dynabox.py
@@ -1,4 +1,9 @@
+import pytest
+
from dynaconf.utils.boxing import DynaBox
+from dynaconf.vendor.box import Box
+from dynaconf.vendor.box import BoxKeyError
+from dynaconf.ve... | [
"tests/test_dynabox.py::test_accessing_dynabox_inside_boxlist_inside_dynabox"
] | [
"tests/test_dynabox.py::test_datatypes",
"tests/test_dynabox.py::test_access_lowercase",
"tests/test_dynabox.py::test_access_uppercase",
"tests/test_dynabox.py::test_access_items",
"tests/test_dynabox.py::test_access_items_lower",
"tests/test_dynabox.py::test_get",
"tests/test_dynabox.py::test_copy_no_c... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
0e67dfaf48954ed212e1052da24726a69028ce54 | 2023-05-03 13:24:30 | docker.io/swerebenchv2/agnostiqhq-covalent:1617-0e67dfa | agnostiqhq__covalent-1617 | Method: CloudResourceManager.__init__(self, executor_name: str, executor_module_path: str, options: dict | None = None)
Location: covalent.cloud_resource_manager.core.CloudResourceManager
Inputs: executor_name – name of the executor plugin; executor_module_path – filesystem path to the executor module; options – option... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ff08a75..0997812e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New Runner and executor API to bypass server-side memory when running tasks.
- Added qelectron_db as an as... | Executor resource deployment UX implementation
Fixes #1604
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's ... | Executor Resource Deployment: CLI command group UX
## Overview
Add [deploy.py](http://deploy.py) file in `covalent/covalent_dispatcher/_cli/groups` where the [click.group](http://click.group) corresponding to deployment needs to be implemented to provide the following UI.
```bash
covalent deploy status
covalent... | AgnostiqHQ/covalent | diff --git a/tests/covalent_dispatcher_tests/_cli/cli_test.py b/tests/covalent_dispatcher_tests/_cli/cli_test.py
index 1f23b2bd..a8b546e9 100644
--- a/tests/covalent_dispatcher_tests/_cli/cli_test.py
+++ b/tests/covalent_dispatcher_tests/_cli/cli_test.py
@@ -56,6 +56,7 @@ def test_cli_commands():
"cluster",
... | [
"tests/covalent_dispatcher_tests/_cli/cli_test.py::test_cli_commands",
"tests/covalent_tests/cloud_resource_manager/core_test.py::test_cloud_resource_manager_init[options1]",
"tests/covalent_tests/cloud_resource_manager/core_test.py::test_print_stdout",
"tests/covalent_tests/cloud_resource_manager/core_test.p... | [
"tests/covalent_dispatcher_tests/_cli/cli_test.py::test_cli",
"tests/covalent_tests/cloud_resource_manager/core_test.py::test_get_executor_module",
"tests/covalent_tests/cloud_resource_manager/core_test.py::test_validate_options",
"tests/covalent_tests/cloud_resource_manager/core_test.py::test_cloud_resource_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [
"http://deploy.py",
"http://click.group"
],
... |
8c6f6603ad0f99074bd0743a9a5e1454da57bc88 | 2025-04-02 04:14:41 | docker.io/swerebenchv2/mpmath-mpmath:935-8c6f660 | mpmath__mpmath-935 | Function: spherical_jn(n, z)
Location: mpmath/functions/bessel.py (public API via mpmath.__init__)
Inputs:
- **n**: integer or real order of the spherical Bessel function (typically non‑negative integer, but accepted as any numeric type compatible with the underlying Bessel function).
- **z**: complex or real argument... | python | BSD-3-Clause | diff --git a/docs/functions/bessel.rst b/docs/functions/bessel.rst
index 04f9bdb..6510c9a 100644
--- a/docs/functions/bessel.rst
+++ b/docs/functions/bessel.rst
@@ -33,6 +33,13 @@ Hankel functions
.. autofunction:: mpmath.hankel2
+Spherical Bessel functions
+..........................
+
+.. autofunction:: mpmath.s... | Support spherical Bessel functions (jn/yn)
Naming scheme follows to SciPy. Closes #319 | Spherical Bessel functions
Spherical Bessel functions of the first kind are defined as,
```
from mpmath import mpf, sqrt, pi, besselj
def sph_jn(n, z):
return besselj(n + mpf(1)/2, z)*sqrt(pi/(2*z))
```
For positive integer `n`, these functions have closed-form expressions in terms of trigonometric functions. F... | mpmath/mpmath | diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py
index 610f7ca..05edd39 100644
--- a/mpmath/tests/test_functions2.py
+++ b/mpmath/tests/test_functions2.py
@@ -11,8 +11,8 @@
kei, ker, laguerre, lambertw, ldexp, legendre, legenp,
legenq, lerchphi, li... | [
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"http://dlmf.nist.gov/10.49.E3"
],
"intent_comple... |
fab2cc3ea3b37c9d7d7cbc07985e2f1096e139e2 | 2022-10-04 14:50:11 | docker.io/swerebenchv2/meltano-sdk:1036-fab2cc3 | meltano__sdk-1036 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/singer_sdk/sinks/core.py b/singer_sdk/sinks/core.py
index d3f8bada..18487546 100644
--- a/singer_sdk/sinks/core.py
+++ b/singer_sdk/sinks/core.py
@@ -423,6 +423,14 @@ class Sink(metaclass=abc.ABCMeta):
"Ignoring."
)
+ def setup(self) -> None:
+ """Perform any setup actions... | fix: create schema and table on `add_sink`
Closes #1027
- #1027
<!-- readthedocs-preview meltano-sdk start -->
----
:books: Documentation preview :books:: https://meltano-sdk--1036.org.readthedocs.build/en/1036/
<!-- readthedocs-preview meltano-sdk end --> | bug: Tables not created if no records arrive with `SQLSink`
### Singer SDK Version
0.11.1
### Python Version
3.8
### Bug scope
Targets (data type handling, batching, SQL object generation, etc.)
### Operating System
MacOS
### Description
With non-SDK Targets it is common for schema/table objects to be created ... | meltano/sdk | diff --git a/tests/core/test_sqlite.py b/tests/core/test_sqlite.py
index 5e76d816..b9c7c82c 100644
--- a/tests/core/test_sqlite.py
+++ b/tests/core/test_sqlite.py
@@ -10,6 +10,7 @@ from typing import Dict, cast
from uuid import uuid4
import pytest
+import sqlalchemy
from samples.sample_tap_sqlite import SQLiteCo... | [
"tests/core/test_sqlite.py::test_sqlite_schema_addition"
] | [
"tests/core/test_sqlite.py::test_sql_metadata",
"tests/core/test_sqlite.py::test_sqlite_discovery",
"tests/core/test_sqlite.py::test_sqlite_input_catalog",
"tests/core/test_sqlite.py::test_sqlite_tap_standard_tests",
"tests/core/test_sqlite.py::test_sync_sqlite_to_csv",
"tests/core/test_sqlite.py::test_sy... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
c4314a94452517ebc1bda0f4164225e001e34be0 | 2024-11-12 03:43:58 | docker.io/swerebenchv2/keras-team-keras:20484-c4314a9 | keras-team__keras-20484 | Method: STFT.__init__(self, side='real', window='hann', scaling='density', periodic=False)
Location: keras.src.initializers.constant_initializers.STFT
Inputs:
- side: str, either **'real'** or **'imag'** (default **'real'**). Determines which component of the complex STFT kernel is produced.
- window: str, array‑like, ... | python | Apache-2.0 | diff --git a/keras/api/_tf_keras/keras/initializers/__init__.py b/keras/api/_tf_keras/keras/initializers/__init__.py
index 405fa1142..9b49190c4 100644
--- a/keras/api/_tf_keras/keras/initializers/__init__.py
+++ b/keras/api/_tf_keras/keras/initializers/__init__.py
@@ -7,6 +7,9 @@ since your modifications would be overw... | Improve the consistency of the names of initializers
Fix #20483
This PR renames `OrthogonalInitializer` to `Orthogonal` and `STFTInitializer` to `STFT` for name consistency and adds serialization tests to prevent future breakages.
This PR also adds a default value `side="real"` to support calls to `initializers.... | Issue loading model containing Dense layer with Identity initializer
Hi, I've been migrating some model code from Keras 2 to Keras 3, and I think I stumbled upon a bug.
I've noticed that if I save a model containing a dense layer with an identity kernel initializer in Keras 3+, I cannot reload the model. I get an ex... | keras-team/keras | diff --git a/keras/src/initializers/constant_initializers_test.py b/keras/src/initializers/constant_initializers_test.py
index 055ff1e7d..28e199b43 100644
--- a/keras/src/initializers/constant_initializers_test.py
+++ b/keras/src/initializers/constant_initializers_test.py
@@ -69,6 +69,10 @@ class ConstantInitializersTe... | [
"keras/src/initializers/constant_initializers_test.py::ConstantInitializersTest::test_identity_initializer",
"keras/src/initializers/constant_initializers_test.py::ConstantInitializersTest::test_stft_initializer",
"keras/src/initializers/random_initializers_test.py::RandomInitializersTest::test_orthogonal",
"... | [
"keras/src/initializers/constant_initializers_test.py::ConstantInitializersTest::test_constant_initializer",
"keras/src/initializers/constant_initializers_test.py::ConstantInitializersTest::test_constant_initializer_array_value",
"keras/src/initializers/constant_initializers_test.py::ConstantInitializersTest::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://github.com/user-attachments/files/17710057/tes... |
1108b801d642ac63a53f357fac95d2911de44d2c | 2025-04-13 02:19:43 | docker.io/swerebenchv2/pydap-pydap:479-1108b80 | pydap__pydap-479 | Method: BaseType.__init__(self, name: str, data, dims: List[str] = None, **attributes)
Location: src/pydap/model.py (class BaseType)
Inputs:
- **name** – variable name (string).
- **data** – lazily‑loaded data object or numpy‑like array.
- **dims** – optional list of dimension identifiers (strings). The ident... | python | MIT | diff --git a/README.md b/README.md
index 8981750..b5d61a0 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ This will install pydap together with all the required dependencies.
`pydap` is also available through [Anaconda](https://www.anaconda.com/). Below we install `pydap` and its required dependencies, along ... | update netcdf handler to be consistent with dmr parser when creating …
…datasets
<!-- Thank you very much for your hard work and contribution! -->
The following Pull Request:
- [x] Closes #478
- [x] Tests are updated to reflect the new change
| make NetcdfHandler conform to the DMRParser data model
The `NetcdfHandler` is broadly used for testing, and so it has not received a lot of development/update. This is true compared to the dataset that results from the downloading DAP responses (via dmr parser).
The differences lie in the attributes of the resulting d... | pydap/pydap | diff --git a/src/pydap/tests/test_handlers_netcdf.py b/src/pydap/tests/test_handlers_netcdf.py
index 3a3f64d..fed759c 100644
--- a/src/pydap/tests/test_handlers_netcdf.py
+++ b/src/pydap/tests/test_handlers_netcdf.py
@@ -145,7 +145,7 @@ def test_handler_array(simple_Group_data, simple_handler2):
np.testing.assert_... | [
"src/pydap/tests/test_handlers_netcdf.py::test_handler_array",
"src/pydap/tests/test_handlers_netcdf.py::test_handler_nested_Group_array",
"src/pydap/tests/test_handlers_netcdf.py::test_handler_repeatdims_Group_array",
"src/pydap/tests/test_parsers_dmr.py::TestDMRParser::test_jpl",
"src/pydap/tests/test_par... | [
"src/pydap/tests/test_handlers_netcdf.py::test_handler",
"src/pydap/tests/test_parsers_dmr.py::TestDMRParser::test_SWOT",
"src/pydap/tests/test_parsers_dmr.py::TestDMRParser::test_atl03",
"src/pydap/tests/test_parsers_dmr.py::TestDMRParser::test_attribute_warning",
"src/pydap/tests/test_parsers_dmr.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": [
"http://test.opendap.org/opendap/dap4/SimpleGroup.nc4.h... |
887e227003e93710f037632c58de71e183bf1930 | 2022-02-21 21:36:58 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3237-887e227 | hypothesisworks__hypothesis-3237 | No new interfaces are introduced. | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..2d26b50eb
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,6 @@
+RELEASE_TYPE: patch
+
+This patch fixes a bug in stateful testing, where returning a single value
+wrapped in :func:`~hypothesis.s... | Fix single-return stateful printing
Closes #3236. | Invalid failing example description with `hypothesis.stateful.multiple` containing single value
On my machine with `Python 3.9.5` and `hypothesis==6.37.1` (latest at the moment of writing) test case
```python
from hypothesis.stateful import (Bundle,
RuleBasedStateMachine,
... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_stateful.py b/hypothesis-python/tests/cover/test_stateful.py
index cf2f6b86c..45ed6bb8d 100644
--- a/hypothesis-python/tests/cover/test_stateful.py
+++ b/hypothesis-python/tests/cover/test_stateful.py
@@ -228,6 +228,32 @@ def test_multiple_variables_printed():
st... | [
"hypothesis-python/tests/cover/test_stateful.py::test_multiple_variables_printed_single_element"
] | [
"hypothesis-python/tests/cover/test_stateful.py::TestPrecondition::runTest",
"hypothesis-python/tests/cover/test_stateful.py::test_picks_up_settings_at_first_use_of_testcase",
"hypothesis-python/tests/cover/test_stateful.py::test_multiple_rules_same_func",
"hypothesis-python/tests/cover/test_stateful.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":... |
050bec750ff2c5acf881415fa2b5efb5fcce8414 | 2024-02-07 19:24:55 | docker.io/swerebenchv2/useblocks-sphinx-needs:1102-050bec7 | useblocks__sphinx-needs-1102 | No new interfaces are introduced. | python | MIT | diff --git a/sphinx_needs/defaults.py b/sphinx_needs/defaults.py
index c23903fc..2e7a1191 100644
--- a/sphinx_needs/defaults.py
+++ b/sphinx_needs/defaults.py
@@ -199,7 +199,7 @@ NEEDFLOW_CONFIG_DEFAULTS = {
""",
}
-TITLE_REGEX = r'([\w]+) as "([\w ]+)"'
+TITLE_REGEX = r'([^\s]+) as "([^"]+)"'
NEED_DEFAULT... | 👌 Make needtable titles more permissive
For `key as "title"` columns, the regex has been changed, to allow for the key to contain anything except whitespace characters, and the title to contain anything except the `"` character
closes #1089 | Custom column titles in needtable does not work
Custom column titles in needtable does not work if the `needs_extra_options` has special characters like "-".
The following, for example, prints an empty "Description" column.
```rst
.. needtable::
:filter: id.startswith("REQ_ID")
:columns: id;title;status-... | useblocks/sphinx-needs | diff --git a/tests/doc_test/doc_needtable/conf.py b/tests/doc_test/doc_needtable/conf.py
index 585e4438..73fd6107 100644
--- a/tests/doc_test/doc_needtable/conf.py
+++ b/tests/doc_test/doc_needtable/conf.py
@@ -23,6 +23,7 @@ needs_extra_options = [
"github",
"value",
"unit",
+ "special-chars!",
]
... | [
"tests/test_needtable.py::test_doc_needtable_titles[test_app0]"
] | [
"tests/test_needtable.py::test_doc_build_html[test_app0]",
"tests/test_needtable.py::test_doc_needtable_options[test_app0]",
"tests/test_needtable.py::test_doc_needtable_styles[test_app0]",
"tests/test_needtable.py::test_doc_needtable_parts[test_app0]"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
5e4f2600247116a46701ef26ce046a213b3df519 | 2024-12-03 22:26:49 | docker.io/swerebenchv2/ucfopen-canvasapi:673-5e4f260 | ucfopen__canvasapi-673 | Method: Course.create_lti_resource_link(self, url, title=None, custom=None, **kwargs)
Location: canvasapi/course.py
Inputs:
- url (str, required): launch URL for the LTI resource link.
- title (str, optional): human‑readable title of the link.
- custom (dict, optional): arbitrary custom parameters to forward to the to... | python | MIT | diff --git a/AUTHORS.md b/AUTHORS.md
index d2ac0bf..67b1d40 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -53,6 +53,7 @@
- Ian Altgilbers [@altgilbers](https://github.com/altgilbers)
- Ian Turgeon [@iturgeon](https://github.com/iturgeon)
- [@jackrsteiner](https://github.com/jackrsteiner)
+- Jasmine Hou [@jsmnhou](http... | Issue/662 Add API coverage for LTI resource links
# Proposed Changes
* Add support for [LTI resource links](https://canvas.instructure.com/doc/api/lti_resource_links.html)
* Implement `get_lti_resource_links()`, `get_lti_resource_link()`, `create_lti_resouce_link()`
* Add associated tests/fixtures (see `test_courses... | Add API coverage for LTI resource links
**What resource needs additional coverage?**
Courses `lti_resource links`, which is a new API which is in beta and will be released soon.
**What endpoints need to be covered?**
Add support for these https://canvas.instructure.com/doc/api/lti_resource_links.html
```
GET /... | ucfopen/canvasapi | diff --git a/tests/fixtures/lti_resource_link.json b/tests/fixtures/lti_resource_link.json
new file mode 100644
index 0000000..2de1351
--- /dev/null
+++ b/tests/fixtures/lti_resource_link.json
@@ -0,0 +1,49 @@
+{
+ "create_lti_resource_link": {
+ "method": "POST",
+ "endpoint": "courses/1/lti_resource_links",
+ "dat... | [
"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": "B2|B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://canvas.instructure.com/doc/api/lti_resource_... |
60b0a6347e3bbcee4a2a6261a5e1b3166c45e192 | 2021-03-27 02:24:49 | docker.io/swerebenchv2/pyfilesystem-pyfilesystem2:474-60b0a63 | pyfilesystem__pyfilesystem2-474 | Method: convert_os_errors(method, path)
Location: fs/error_tools.py
Inputs:
- method (str): name of the filesystem operation being performed (e.g., "stat").
- path (str): the path argument supplied to the operation; used for error wrapping.
Outputs: A context‑manager (enterable with `with`) that intercepts `OSError` e... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index aacded9..62cc085 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added FTP over TLS (FTPS) support to FTPFS.
Closes [#437](https://github.com/PyFilesystem/pyfilesystem2/issues/437),... | Add missing `exc` argument to `PathError`
## Type of changes
- Bug fix
## Checklist
- [x] I've run the latest [black](https://github.com/ambv/black) with default args on new code.
- [x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
- [x] I've added tests for new code.
- [x] I accept that ... | convert_os_errors error when converting errno.ENAMETOOLONG to PathError
Using convert_os_errors to convert errno.ENAMETOOLONG to PathError results in unexpected keyword arguement 'exc' error. Seems that [this line](https://github.com/PyFilesystem/pyfilesystem2/blob/8784fd61797fac654511f16fd50c38c8a1675f16/fs/error_tool... | PyFilesystem/pyfilesystem2 | diff --git a/tests/test_error_tools.py b/tests/test_error_tools.py
index b9ac25c..4f6aa32 100644
--- a/tests/test_error_tools.py
+++ b/tests/test_error_tools.py
@@ -3,13 +3,23 @@ from __future__ import unicode_literals
import errno
import unittest
+import fs.errors
from fs.error_tools import convert_os_errors
-fro... | [
"tests/test_error_tools.py::TestErrorTools::test_convert_enametoolong"
] | [
"tests/test_error_tools.py::TestErrorTools::test_convert_enoent"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/PyFilesystem/pyfilesystem2/blob/8784f... |
8718d5af93f9e48bc2506c64827663fdccc5ad89 | 2025-04-15 22:52:26 | docker.io/swerebenchv2/reagento-dishka:436-8718d5a | reagento__dishka-436 | Method: Provider.__init__(self, scope: Scope)
Location: dishka.provider.Provider
Inputs: *scope – a member of the ``Scope`` enum indicating the default scope for factories defined on this provider.
Outputs: Initializes the provider instance; raises ``InvalidScopeError`` if the scope is not a ``Scope`` value.
Descri... | python | Apache-2.0 | diff --git a/src/dishka/registry_builder.py b/src/dishka/registry_builder.py
index 9a7f2ec..e0fe0f1 100644
--- a/src/dishka/registry_builder.py
+++ b/src/dishka/registry_builder.py
@@ -12,7 +12,7 @@ from .dependency_source import (
from .entities.component import DEFAULT_COMPONENT, Component
from .entities.factory_ty... | Defer scopes processing to handle overriding properly
/closes #435 | bug: Provider doesn't override factory with lower scope
```python
from dishka import Provider, make_container, Scope, provide
class RealProvider(Provider):
@provide(scope=Scope.REQUEST)
def get_int(self) -> int:
return 1
class FakeProvider(Provider):
@provide(scope=Scope.APP)
def get_int(sel... | reagento/dishka | diff --git a/tests/unit/container/override/test_alias.py b/tests/unit/container/override/test_alias.py
index a1deddc..aa9f01a 100644
--- a/tests/unit/container/override/test_alias.py
+++ b/tests/unit/container/override/test_alias.py
@@ -86,3 +86,55 @@ def test_skip_cant_override() -> None:
TestProvider(),
... | [
"tests/unit/container/override/test_alias.py::test_override_alias_to_provide_different_scope[Scope.REQUEST-Scope.APP]",
"tests/unit/container/override/test_alias.py::test_override_source_to_different_scope[Scope.APP-Scope.REQUEST]",
"tests/unit/container/override/test_alias.py::test_override_source_to_different... | [
"tests/unit/container/override/test_alias.py::test_no_override",
"tests/unit/container/override/test_alias.py::test_skip_no_override",
"tests/unit/container/override/test_alias.py::test_override_ok",
"tests/unit/container/override/test_alias.py::test_cant_override",
"tests/unit/container/override/test_alias... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
9a952fef5fa8399cb82cb726860814e21816f16d | 2024-10-19 23:56:46 | docker.io/swerebenchv2/stanfordnlp-dspy:1651-9a952fe | stanfordnlp__dspy-1651 | Method: TypedPredictor.__init__(self, signature, instructions=None, max_retries=3, wrap_json=False, explain_errors=False)
Location: dspy/functional/functional.py
Inputs:
- **signature** – a dspy.Signature (or a type that can be converted to one) describing the expected input‑output fields.
- **instructions** – optio... | python | MIT | diff --git a/dspy/functional/functional.py b/dspy/functional/functional.py
index a45e302c..d407c0a2 100644
--- a/dspy/functional/functional.py
+++ b/dspy/functional/functional.py
@@ -98,12 +98,20 @@ class TypedPredictor(dspy.Module):
explain_errors: If True, the model will try to explain the errors it enco... | Fix the saving of TypePredictor
resolve #1644
We don't need a standalone signature attribute in `TypePredictor`, because it's never actually used. We keep the `self.signature` to be valid for backward compatibility | Model Load
Hi Team!
Framework version: dspy-ai-2.5.12
I'm encountering an issue when trying to load an optimized MiproV2 model and use it in my project. I have optimized my initial model using MiproV2 and saved it as a JSON file. However, when I load the model, it seems that the original model signature is being ... | stanfordnlp/dspy | diff --git a/tests/functional/test_functional.py b/tests/functional/test_functional.py
index 61ac8c15..b3047a72 100644
--- a/tests/functional/test_functional.py
+++ b/tests/functional/test_functional.py
@@ -822,3 +822,23 @@ def test_model_validator():
pred = predictor(input_data="What is the best animal?", allow... | [
"tests/functional/test_functional.py::test_save_type_predictor"
] | [
"tests/functional/test_functional.py::test_simple",
"tests/functional/test_functional.py::test_list_output",
"tests/functional/test_functional.py::test_simple_type",
"tests/functional/test_functional.py::test_simple_type_input",
"tests/functional/test_functional.py::test_simple_class",
"tests/functional/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/stanfordnlp/dspy/issues/617"
],... |
418c69f477add62271938fbf4c1b8117087f4cd8 | 2023-02-16 23:00:33 | docker.io/swerebenchv2/getmoto-moto:5940-418c69f | getmoto__moto-5940 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/glue/models.py b/moto/glue/models.py
index 31f3bd1be..dcec934ba 100644
--- a/moto/glue/models.py
+++ b/moto/glue/models.py
@@ -130,7 +130,7 @@ class GlueBackend(BaseBackend):
database.tables[table_name] = table
return table
- def get_table(self, database_name, table_name):
+ ... | Glue:get_table_version() - Add VersionId/UpdateTime fields
Fixes #5933 | Incorect response when calling glue.get_table_versions
## Reporting Bugs
The current implementation of glue.get_table_versions, see [here](https://github.com/getmoto/moto/blob/78840fd71c365bb40214f59a9d7c5f5f3d00b850/moto/glue/responses.py#L73-L85)
it's different from the actual response from boto3. Specifically ... | getmoto/moto | diff --git a/tests/test_glue/test_datacatalog.py b/tests/test_glue/test_datacatalog.py
index 8dc0ecf82..56956213a 100644
--- a/tests/test_glue/test_datacatalog.py
+++ b/tests/test_glue/test_datacatalog.py
@@ -339,11 +339,13 @@ def test_get_table_versions():
for n, ver in enumerate(vers):
n = str(n + 1)
... | [
"tests/test_glue/test_datacatalog.py::test_get_table_versions"
] | [
"tests/test_glue/test_datacatalog.py::test_create_database",
"tests/test_glue/test_datacatalog.py::test_create_database_already_exists",
"tests/test_glue/test_datacatalog.py::test_get_database_not_exits",
"tests/test_glue/test_datacatalog.py::test_get_databases_empty",
"tests/test_glue/test_datacatalog.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/getmoto/moto/blob/78840fd71c365bb40... |
761c30122dc78a8dc13a2e5a1f160416609a45be | 2017-08-16 05:17:48 | docker.io/swerebenchv2/pylons-waitress:171-761c301 | pylons__waitress-171 | Method: BaseWSGIServer.get_server_name(self, ip)
Location: waitress/server.py – defined in class BaseWSGIServer
Inputs:
- ip (str): a non‑empty IP address or hostname to resolve. If the string is empty a ValueError is raised.
Outputs:
- str: the resolved server name. Returns the hostname for wildcard addresses (`0.0.... | python | custom-check-github | diff --git a/waitress/server.py b/waitress/server.py
index 7175c64..198d5fa 100644
--- a/waitress/server.py
+++ b/waitress/server.py
@@ -193,21 +193,35 @@ class BaseWSGIServer(wasyncore.dispatcher, object):
def get_server_name(self, ip):
"""Given an IP or hostname, try to determine the server name."""
-... | Change get_server_name logic to be more correct
Closes #186, #201, #168 | Exception on run with cyrillic symbols in the hostname
Sighted it on the Windows 7 system with python 3.6.3 and waitress 1.1.0
```
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\waitress\__init__.py", line 11, in serve
server = _server(app, **kw)
File "c:\users\user\appdata\local\progr... | Pylons/waitress | diff --git a/waitress/tests/test_server.py b/waitress/tests/test_server.py
index 76eade5..0aa217a 100644
--- a/waitress/tests/test_server.py
+++ b/waitress/tests/test_server.py
@@ -74,8 +74,7 @@ class TestWSGIServer(unittest.TestCase):
def test_get_server_name_empty(self):
inst = self._makeOneWithMap(_s... | [
"waitress/tests/test_server.py::TestWSGIServer::test_get_server_name_empty",
"waitress/tests/test_server.py::TestWSGIServer::test_get_server_name_ipv6"
] | [
"waitress/tests/test_server.py::TestWSGIServer::test_add_task",
"waitress/tests/test_server.py::TestWSGIServer::test_backward_compatibility",
"waitress/tests/test_server.py::TestWSGIServer::test_ctor_app_is_None",
"waitress/tests/test_server.py::TestWSGIServer::test_ctor_makes_dispatcher",
"waitress/tests/t... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
25b64df6a9066b8eef7e68101567de938e38ea0e | 2023-09-02 17:58:28 | docker.io/swerebenchv2/python-markdown-markdown:1380-25b64df | python-markdown__markdown-1380 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/changelog.md b/docs/changelog.md
index d233abf..50e868c 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -28,6 +28,11 @@ links to the header, placing them after all other header content.
* Update the list of empty HTML tags (#1353).
* Add customizable TOC title class to TOC extension (#1293... | Fix admonition corner case with indented code blocks
Fix a corner case in admonitions where if an indented code block was provided as the first block, the output would be malformed.
Fixes #1329 | admonition extension returns **invalid** html code if tab_length=2
```python
In [8]: import markdown
In [9]: some_text = """
...: !!! danger "Danger"
...: don't try this at home.
...:
...: """
In [10]: markdown.markdown(some_text, tab_length=2, extensions=['admonition'])
Out[10]: '<div class="ad... | Python-Markdown/markdown | diff --git a/tests/test_syntax/extensions/test_admonition.py b/tests/test_syntax/extensions/test_admonition.py
index 44c70d1..268633d 100644
--- a/tests/test_syntax/extensions/test_admonition.py
+++ b/tests/test_syntax/extensions/test_admonition.py
@@ -243,3 +243,23 @@ class TestAdmonition(TestCase):
),
... | [
"tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_admonition_first_indented"
] | [
"tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_admontion_detabbing",
"tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_definition_list",
"tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_with_big_lists",
"tests/test_syntax/extensions/test_admon... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
bec9130d4c474674ef2beb3cc4acc756aa270793 | 2023-06-25 11:19:35 | docker.io/swerebenchv2/getmoto-moto:6444-bec9130 | getmoto__moto-6444 | Method: RDSBackend.create_db_snapshot(self, db_instance_identifier: str, db_snapshot_identifier: str, snapshot_type: str = "manual", tags: Optional[List[Dict[str, str]]] = None)
Location: moto.rds.models.RDSBackend
Inputs:
- **db_instance_identifier** – identifier of the DB instance to snapshot.
- **db_snapshot... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index f2baabe83..faf335e50 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -5318,7 +5318,7 @@
## rds
<details>
-<summary>38% implemented</summary>
+<summary>39% implemented</summary>
- [ ] add_role_to_db_cluster
- [... | RDS: Automated snapshots now have the appropriate SnapshotType
SnapshotType is set to `manual` for snapshots created by the user, and set to `automated` for snapshots created when a cluster is deleted.
This applies to both DatabaseSnapshots and ClusterSnapshots.
The `snapshot-type`-filter has also been fixed.
Th... | rds_client.create_db_snapshot, describe_db_snapshots behavior not right due to the snapshot type attribute
## What went wrong?
Based on this aws document [create_db_snapshot](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds/client/create_db_snapshot.html), the db snapshot created by thi... | getmoto/moto | diff --git a/tests/test_rds/test_filters.py b/tests/test_rds/test_filters.py
index 488c87c9e..529b32516 100644
--- a/tests/test_rds/test_filters.py
+++ b/tests/test_rds/test_filters.py
@@ -6,8 +6,7 @@ from botocore.exceptions import ClientError
from moto import mock_rds
-class TestDBInstanceFilters(object):
-
+cla... | [
"tests/test_rds/test_filters.py::TestDBSnapshotFilters::test_snapshot_type_filter",
"tests/test_rds/test_filters.py::TestDBClusterSnapshotFilters::test_snapshot_type_filter",
"tests/test_rds/test_rds.py::test_delete_database",
"tests/test_rds/test_rds_clusters.py::test_delete_db_cluster_do_snapshot"
] | [
"tests/test_rds/test_filters.py::TestDBInstanceFilters::test_invalid_filter_name_raises_error",
"tests/test_rds/test_filters.py::TestDBInstanceFilters::test_empty_filter_values_raises_error",
"tests/test_rds/test_filters.py::TestDBInstanceFilters::test_db_cluster_id_filter",
"tests/test_rds/test_filters.py::T... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://boto3.amazonaws.com/v1/documentation/api/lates... |
94f032399c84da4a9fff968bf5d666ec35d502c8 | 2021-03-26 00:42:00 | docker.io/swerebenchv2/pyfilesystem-pyfilesystem2:470-94f0323 | pyfilesystem__pyfilesystem2-470 | Method: WrapReadOnly.removetree(self, path: Text) -> None
Location: class WrapReadOnly in fs/wrap.py
Inputs:
- **path** (Text): the filesystem path to be removed recursively.
Outputs:
- Never returns normally; always raises **fs.errors.ResourceReadOnly** for the given *path*, indicating that a read‑only wrapper must ... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4dfe905..0b80ff8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
arguments for the `write` and `writelines` methods, as expected by their base class [`io.RawIOBase`](https://docs.pytho... | Fix miscellaneous bugs in `fs.wrap`
## Type of changes
- Bug fix
- Tests
## Checklist
- [x] I've run the latest [black](https://github.com/ambv/black) with default args on new code.
- [x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
- [x] I've added tests for new code.
- [x] I accept t... | WrapReadOnly does not wrap `removetree`
`fs.wrap.WrapReadOnly` does not wrap `FS.removetree`, so it's still possible to remove a folder with this method. | PyFilesystem/pyfilesystem2 | diff --git a/tests/test_wrap.py b/tests/test_wrap.py
index 4d5cc8c..89a9118 100644
--- a/tests/test_wrap.py
+++ b/tests/test_wrap.py
@@ -1,97 +1,219 @@
from __future__ import unicode_literals
+import operator
import unittest
-from fs import errors
+try:
+ from unittest import mock
+except ImportError:
+ imp... | [
"tests/test_wrap.py::TestWrapReadOnly::test_removetree",
"tests/test_wrap.py::TestWrapReadOnlySyspath::test_move_dir",
"tests/test_wrap.py::TestWrapReadOnlySyspath::test_move_fs",
"tests/test_wrap.py::TestWrapCachedDir::test_isdir",
"tests/test_wrap.py::TestWrapCachedDir::test_isfile"
] | [
"tests/test_wrap.py::TestWrapReadOnly::test_appendbytes",
"tests/test_wrap.py::TestWrapReadOnly::test_appendtext",
"tests/test_wrap.py::TestWrapReadOnly::test_copy",
"tests/test_wrap.py::TestWrapReadOnly::test_create",
"tests/test_wrap.py::TestWrapReadOnly::test_makedir",
"tests/test_wrap.py::TestWrapRead... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
ab947a7eb268566d20514732d728873b0de784ff | 2015-07-15 19:26:05 | docker.io/swerebenchv2/yelp-bravado-core:34-ab947a7 | yelp__bravado-core-34 | Class: SwaggerFormat
Location: bravado_core/formatter.py
Inputs:
- format: str – name of the custom format (e.g., "base64")
- to_wire: Callable[[Any], Any] – function that marshals a Python value to the wire representation
- to_python: Callable[[Any], Any] – function that unmarshals a wire value to a Python object
- v... | python | custom-check-github | diff --git a/.travis.yml b/.travis.yml
index 0bb31b1..d022492 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,4 +12,3 @@ script:
- tox -e $TOX_ENV
after_success:
- coveralls
-sudo: false
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index d4f0740..84c7d3d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,5 @@... | Support and validation for user defined Swagger formats
- add `SwaggerFormat` namedtuple
- add call to `validate` during primitive check
- Fixes #32 | Add UserFormatterLike interface
This is to be called from `pyramid_swagger` during [init](https://github.com/striglia/pyramid_swagger/blob/master/pyramid_swagger/__init__.py#L13)
Roughly interface should look like:
```python
class UserFormatterLike(object):
"""
Interface for marshalling/unmarshalling u... | Yelp/bravado-core | diff --git a/tests/conftest.py b/tests/conftest.py
index f85b001..69bfa27 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,8 +1,10 @@
+import base64
import os
import simplejson as json
import pytest
+import bravado_core.formatter
from bravado_core.spec import Spec
@@ -45,3 +47,23 @@ def petstore... | [
"tests/exception/wrap_exception_test.py::test_exception_gets_correctly_wrapped",
"tests/formatter/get_format_test.py::test_returns_format_if_present",
"tests/formatter/get_format_test.py::test_returns_none_if_format_not_present",
"tests/formatter/register_format_test.py::test_success",
"tests/formatter/to_p... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/striglia/pyramid_swagger/blob/maste... |
b3545483df675a685b71b831ed8038605ae5198b | 2024-02-26 11:46:02 | docker.io/swerebenchv2/rhayes777-pyautofit:953-b354548 | rhayes777__pyautofit-953 | Method: Representative.find_representatives(items: Iterable[tuple], minimum: int = 4) → list
Location: autofit/text/representative.py
Inputs:
- **items** – an iterable of ``(key, object)`` tuples where *key* is a string (or other hashable) identifying the position of the object in a model hierarchy, and *object* ... | python | MIT | diff --git a/autofit/non_linear/mock/mock_samples.py b/autofit/non_linear/mock/mock_samples.py
index d3d1d4ed2..dd48c1cee 100644
--- a/autofit/non_linear/mock/mock_samples.py
+++ b/autofit/non_linear/mock/mock_samples.py
@@ -63,7 +63,9 @@ class MockSamples(SamplesPDF):
except (KeyError, AttributeError):
... | feature/concise model info
Resolves #925 and #926
When an object in a collection in the info tree is repeated four times or more it is summarised with a representative as per #925
| Concise `model.info` for Models with lists of priors
In PyAutoLens, we often compose a model where a galaxy is made of 90 Gaussian's:
```
analysis = al.AnalysisImaging(
dataset=dataset,
adapt_images=source_pix_results[0].adapt_images_from()
)
centre_0 = af.UniformPrior(lower_limit=... | rhayes777/PyAutoFit | diff --git a/test_autofit/mapper/model/derived_quantities/test_derived_quantities.py b/test_autofit/mapper/model/derived_quantities/test_derived_quantities.py
index 146a76f77..b37a3af21 100644
--- a/test_autofit/mapper/model/derived_quantities/test_derived_quantities.py
+++ b/test_autofit/mapper/model/derived_quantitie... | [
"test_autofit/mapper/model/derived_quantities/test_derived_quantities.py::test_derived_quantities",
"test_autofit/mapper/model/derived_quantities/test_derived_quantities.py::test_model_derived_quantities",
"test_autofit/mapper/model/derived_quantities/test_derived_quantities.py::test_embedded_derived_quantities... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
fcb2cf55c3fd9ab89782648a9da5154f149f0e4e | 2024-10-29 09:42:21 | docker.io/swerebenchv2/tatuylonen-wiktextract:893-fcb2cf5 | tatuylonen__wiktextract-893 | Method: decode_tags(tag_string: str, allow_any: bool = False) Location: src/wiktextract/extractor/en/form_descriptions.py
Inputs:
- **tag_string** (str): The raw tag description text to be parsed, e.g., `"nominative and accusative"` or `"first/third-person singular present subjunctive"`.
- **allow_any** (bool, option... | python | custom-check-github | diff --git a/src/wiktextract/extractor/en/form_descriptions.py b/src/wiktextract/extractor/en/form_descriptions.py
index e4a80203..e3957592 100644
--- a/src/wiktextract/extractor/en/form_descriptions.py
+++ b/src/wiktextract/extractor/en/form_descriptions.py
@@ -441,13 +441,6 @@ head_end_re = re.compile(
r"(" + "|... | [en] Retry decoding tags with errors if " and " in tag
Removed unused code with `valid_words` from 2020. Didn't find an elegant way to use it where it was meant to be used.
I've been hitting my head trying to figure out what to do in decode_tags1 to get " and " to parse correctly (that is, ignored it), and finally g... | [en] Decode tags algorithm broken with "x and y" style constructions
```python
def test_and(self):
ret, topics = decode_tags("nominative and accusative")
self.assertEqual(ret, ["foo",])
```
`decode_tags` fails to parse this very simple string, and gives an `error-unknown-tag` for the whole th... | tatuylonen/wiktextract | diff --git a/tests/test_en_tags.py b/tests/test_en_tags.py
index ae03d373..3bf25b09 100644
--- a/tests/test_en_tags.py
+++ b/tests/test_en_tags.py
@@ -8,7 +8,6 @@ from wiktextract.extractor.en.form_descriptions import decode_tags
class EnTagTests(unittest.TestCase):
-
def test_empty(self):
ret = deco... | [
"tests/test_en_tags.py::EnTagTests::test_and",
"tests/test_ko_sound.py::TestKoSound::test_common_sound_templates",
"tests/test_ko_sound.py::TestKoSound::test_ja_pron",
"tests/test_ko_sound.py::TestKoSound::test_ko_ipa_template"
] | [
"tests/test_en_tags.py::EnTagTests::test_empty",
"tests/test_en_tags.py::EnTagTests::test_tags1",
"tests/test_en_tags.py::EnTagTests::test_tags10",
"tests/test_en_tags.py::EnTagTests::test_tags11",
"tests/test_en_tags.py::EnTagTests::test_tags12",
"tests/test_en_tags.py::EnTagTests::test_tags13",
"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": "B5",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
8afd968842cc85dfbb0e221558b198fd0c583cce | 2023-04-23 23:38:41 | docker.io/swerebenchv2/pycqa-docformatter:182-8afd968 | pycqa__docformatter-182 | Method: Formatter._do_format_docstring(self, indentation, docstring)
Location: src/docformatter/formatter.py
Inputs:
- **indentation** (str): The string used for indenting continuation lines (e.g., four spaces).
- **docstring** (str): The raw docstring content (already stripped of surrounding triple quotes) that sho... | python | MIT | diff --git a/src/docformatter/syntax.py b/src/docformatter/syntax.py
index 6c893be..9afbeb6 100644
--- a/src/docformatter/syntax.py
+++ b/src/docformatter/syntax.py
@@ -175,6 +175,9 @@ def description_to_list(
if _text:
_lines.extend(_text)
_lines.append("")
+ with contextlib.suppr... | fix: adding newlines around wrapped URL
Closes #180 | v1.6.1 - Newlines inserted around hyperlinks
Ran v1.6.1 and encountered this situation.
- config:
```
- repo: https://github.com/PyCQA/docformatter
rev: v1.6.1
hooks:
- id: docformatter
args: [--in-place, --wrap-descriptions=88, --wrap-summaries=88]
```
- On the first pass, these hyperl... | PyCQA/docformatter | diff --git a/tests/test_format_docstring.py b/tests/test_format_docstring.py
index 92dd79c..df1d764 100644
--- a/tests/test_format_docstring.py
+++ b/tests/test_format_docstring.py
@@ -1298,6 +1298,57 @@ num_iterations is the number of updates - instead of a better definition of conv
INDENTATION, docstring... | [
"tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_link_only_one_newline_after_link[args0]"
] | [
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring[args0]",
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_summary_that_ends_in_quote[args0]",
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_bad_indentation[args0]",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a4763ef93734ccfea497ea10bf0870d588132432 | 2020-10-26 00:15:33 | docker.io/swerebenchv2/pallets-click:1698-a4763ef | pallets__click-1698 | Method: ProgressBar.__init__(self, iterable=None, length=None, label=None, file=None, color=None, update_min_steps=1, width=30)
Location: src/click/_termui_impl.py
Inputs:
- iterable – optional collection to iterate over (must support len() if length is not given)
- length – optional explicit length of the iterable
- ... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index d86e7ce..4845673 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -149,6 +149,8 @@ Unreleased
type like an input value would be. :pr:`1517`
- Automatically generated short help messages will stop at the first
ending of a phrase or double linebreak. :issue:`1082`
+-... | Add update interval for progress bar
Adds an optional `update_interval` for progress bars that allows the user to skip unnecessary renders for frequently updated iterators.
- Fixes #676
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [x... | Avoid rendering on highly frequent updates in progressbar
I am using a progressbar in a loop with short iterations, which negatively affects performance. It would be good to supply a chunk size such that the heavy part of an update is only performed every nth time.
Currently I am using a small wrapper around it:
```... | pallets/click | diff --git a/tests/test_termui.py b/tests/test_termui.py
index e199516..956de77 100644
--- a/tests/test_termui.py
+++ b/tests/test_termui.py
@@ -344,6 +344,16 @@ def test_progressbar_update_with_item_show_func(runner, monkeypatch):
assert "Custom 4" in lines[2]
+def test_progress_bar_update_min_steps(runner):
... | [
"tests/test_termui.py::test_progress_bar_update_min_steps"
] | [
"tests/test_termui.py::test_progressbar_strip_regression",
"tests/test_termui.py::test_progressbar_length_hint",
"tests/test_termui.py::test_progressbar_hidden",
"tests/test_termui.py::test_progressbar_time_per_iteration[avg0-0.0]",
"tests/test_termui.py::test_progressbar_time_per_iteration[avg1-2.5]",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
f9e863793895eaaa717027c0b7e1e55a33f1c4c8 | 2023-05-03 12:59:08 | docker.io/swerebenchv2/stfc-psyclone:2124-f9e8637 | stfc__psyclone-2124 | Method: OMPParallelDirective._infer_sharing_attributes(self)
Location: src/psyclone/psyir/nodes/omp_directives.py (class OMPParallelDirective)
Inputs: No external parameters – operates on the directive instance; it analyses the references inside the directive body and the default clause.
Outputs: Tuple of three sets of... | python | BSD-3-Clause | diff --git a/.gitignore b/.gitignore
index f401dd74e..64ddd5929 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,5 @@ src/*.egg-info
*.sublime-project
*.sublime-workspace
.idea
+.rtx.toml
+.venv
diff --git a/changelog b/changelog
index 7b700c92c..c22bd5875 100644
--- a/changelog
+++ b/changelog
@@ -485,6 +485,9... | (closes #2101) Refactor OpenMP inference of private symbols and report symbols needing sync | get_private_clauses of OMPParallelDirective incorrectly flagging non-array accesses as firstprivate
I have the following test in the task branch which now fails (and before the `firstprivate` changes did not). I've slightly adjusted it as previously it was easy to argue "k wasn't set", but now k is an input parameter a... | stfc/PSyclone | diff --git a/src/psyclone/tests/psyir/nodes/omp_directives_test.py b/src/psyclone/tests/psyir/nodes/omp_directives_test.py
index 494a01645..3d0a5ab93 100644
--- a/src/psyclone/tests/psyir/nodes/omp_directives_test.py
+++ b/src/psyclone/tests/psyir/nodes/omp_directives_test.py
@@ -59,7 +59,7 @@ from psyclone.psyir.symbo... | [
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_ompparallel_lowering",
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_ompparallel_gen_code_clauses",
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_omp_paralleldo_clauses_gen_code",
"src/psyclone/tests/psyir/nodes/omp_dir... | [
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_omp_teams_distribute_parallel_do_strings",
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_ompdo_constructor",
"src/psyclone/tests/psyir/nodes/omp_directives_test.py::test_omp_do_directive_collapse_getter_and_setter",
"src/psyclone/test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
5e0f444360f94267c6e17aa7788f553f1ab321d1 | 2022-04-28 19:43:55 | docker.io/swerebenchv2/wtforms-wtforms:739-5e0f444 | wtforms__wtforms-739 | Method: SelectField.iter_choices(self)
Location: src/wtforms/fields/choices.py
Inputs: – uses `self.choices` (list, tuple, dict or callable), `self.coerce` and `self.data` internally; no external parameters.
Outputs: Yields a tuple **(value, label, selected, render_kw)** where `selected` is a bool indicating if the opt... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index b993f04..923df9b 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,6 +10,8 @@ Unreleased
- Translation improvements :pr:`732` :pr:`734` :pr:`754`
- Implement :class:`~fields.ColorField` :pr:`755`
- Delayed import of ``email_validator``. :issue:`727`
+- ``<option>`... | `SelectField` choice refactoring
Fixes #692. Related to #381.
`SelectField` `choice` argument can take a list of 3 items tuples, the last one being a dict that will be rendered as `<option>` HTML parameter. | SelectField - can choices tuples be expanded to allow for tooltips
At present the choices list should contain tuples:
`[ ("option-value", "display-text"), (..., ...), ... ]`
Can it be expanded to optionally allow a **tool-tip** as 3rd tuple element which is then rendered as a `title` attribute in the <option> eleme... | wtforms/wtforms | diff --git a/tests/conftest.py b/tests/conftest.py
index a9223c1..80c54f6 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -28,7 +28,7 @@ def basic_widget_dummy_field(dummy_field_class):
@pytest.fixture
def select_dummy_field(dummy_field_class):
- return dummy_field_class([("foo", "lfoo", True), ("bar",... | [
"tests/fields/test_select.py::test_optgroup",
"tests/fields/test_select.py::test_optgroup_shortcut",
"tests/fields/test_select.py::test_option_render_kw",
"tests/fields/test_select.py::test_optgroup_option_render_kw",
"tests/fields/test_selectmultiple.py::test_defaults",
"tests/fields/test_selectmultiple.... | [
"tests/fields/test_select.py::test_select_field_copies_choices",
"tests/fields/test_select.py::test_defaults",
"tests/fields/test_select.py::test_with_data",
"tests/fields/test_select.py::test_value_coercion",
"tests/fields/test_select.py::test_iterable_options",
"tests/fields/test_select.py::test_default... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
f816f92923c623d070438dd566a4bb86594ac629 | 2025-03-02 07:46:27 | docker.io/swerebenchv2/mpmath-mpmath:922-f816f92 | mpmath__mpmath-922 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py
index 459e571..1d42b70 100644
--- a/mpmath/libmp/libmpf.py
+++ b/mpmath/libmp/libmpf.py
@@ -1578,6 +1578,10 @@ def format_fixed(s,
return sign, digits
+_MAP_FMT_EXP = {'E': 'E', 'e': 'e', 'G': 'E', 'g': 'e',
+ 'A': 'P', 'a': 'p', 'B': ... | Fix handling of zeropad flag
Closes #917 | Invalid handling of zeropad option in mpf formatting
As [docs says](https://docs.python.org/3.14/library/string.html#format-specification-mini-language): "When no explicit alignment is given, preceding the width field by a zero ('0') character enables sign-aware zero-padding for numeric types, excluding [complex](https... | mpmath/mpmath | diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py
index 3aeb69d..fd10947 100644
--- a/mpmath/tests/test_format.py
+++ b/mpmath/tests/test_format.py
@@ -473,6 +473,9 @@ def test_mpf_fmt_cpython():
@example(fmt='.0g', x=9.995074823339339e-05) # issue 880
@example(fmt='.016f', x=0.1) # issue 915
... | [
"mpmath/tests/test_format.py::test_mpf_floats_bulk"
] | [
"mpmath/tests/test_format.py::test_mpf_fmt_cpython",
"mpmath/tests/test_format.py::test_mpc_complexes",
"mpmath/tests/test_format.py::test_mpc_fmt",
"mpmath/tests/test_format.py::test_mpf_fmt",
"mpmath/tests/test_format.py::test_issue_858",
"mpmath/tests/test_format.py::test_errors",
"mpmath/tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.python.org/3.14/library/string.html#forma... |
0b9f04c1e11199c5050c0f8b22d41b622e45d50e | 2020-01-11 05:52:37 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2316-0b9f04c | hypothesisworks__hypothesis-2316 | Function: ip_addresses(*, v: int = None, network: Union[str, IPv4Network, IPv6Network] = None)
Location: hypothesis.strategies._internal.ipaddress.ip_addresses
Inputs:
- v (optional, int): must be either 4 or 6 if supplied; selects IPv4Address or IPv6Address respectively. If omitted, both versions are allowed.
- networ... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..d228a6f46
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,12 @@
+RELEASE_TYPE: minor
+
+The standard library :mod:`ipaddress` module is new in Python 3, and this release
+adds the new :func:`~hy... | New core strategies for IP addresses
Now that Hypothesis is Python-3-only (:tada:), there are some useful things we can rely on having available - like [the `ipaddress` module](https://docs.python.org/3/library/ipaddress.html)! This patch:
- Adds a strategy `ip_addresses(*, v=None, network=None)`. `v` may be eithe... | Add a strategy for `ipaddress` address objects, deprecate provisional strategy for IP addr strings
Now that Hypothesis is Python-3-only (:tada:), there are some useful things we can rely on having available - like [the `ipaddress` module](https://docs.python.org/3/library/ipaddress.html)! I think that we should:
- ... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_direct_strategies.py b/hypothesis-python/tests/cover/test_direct_strategies.py
index 2dac42809..6abe857f0 100644
--- a/hypothesis-python/tests/cover/test_direct_strategies.py
+++ b/hypothesis-python/tests/cover/test_direct_strategies.py
@@ -18,6 +18,7 @@ import decimal
i... | [
"hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_keyword_arguments[integers(**{'min_value':",
"hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_keyword_arguments[integers(**{'max_value':",
"hypothesis-python/tests/cover/test_direct_strategies.py::test_validates_key... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.python.org/3/library/ipaddress.html"
... |
956dd265f028f85a10a237e6b848dcd0c302c2d1 | 2023-08-27 21:33:41 | docker.io/swerebenchv2/getmoto-moto:6736-956dd26 | getmoto__moto-6736 | Method: Cluster.__init__(self, **kwargs)
Location: moto/rds/models.py → class Cluster definition
Inputs:
- **kwargs** – dictionary of initialization parameters; now may include **serverless_v2_scaling_configuration** (dict with optional keys **MinCapacity** (float/int) and **MaxCapacity** (float/int)).
Outputs:... | python | Apache-2.0 | diff --git a/moto/rds/models.py b/moto/rds/models.py
index 10020677b..8405171e7 100644
--- a/moto/rds/models.py
+++ b/moto/rds/models.py
@@ -208,6 +208,9 @@ class Cluster:
"timeout_action": "RollbackCapacityChange",
"seconds_before_timeout": 300,
}
+ self.serverless... | RDS: Clusters now support the ServerlessV2ScalingConfiguration parameter
Fixes #6671 | Aurora Postgres Does Not Support Mock ServerlessV2
From what I can tell, Aurora Postgres does not support ServerlessV2ScalingConfiguration like Neptune does. Support for this would be great! | getmoto/moto | diff --git a/tests/test_rds/test_rds_clusters.py b/tests/test_rds/test_rds_clusters.py
index c047e276e..3190bc8ae 100644
--- a/tests/test_rds/test_rds_clusters.py
+++ b/tests/test_rds/test_rds_clusters.py
@@ -219,6 +219,10 @@ def test_create_db_cluster_additional_parameters():
"MinCapacity": 5,
... | [
"tests/test_rds/test_rds_clusters.py::test_create_db_cluster_additional_parameters"
] | [
"tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_initial",
"tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_fails_for_non_existent_cluster",
"tests/test_rds/test_rds_clusters.py::test_create_db_cluster_needs_master_username",
"tests/test_rds/test_rds_clusters.py::test_create_db_clu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
2d7af8f2990142aee82d584016f75ce7ae377093 | 2017-09-27 18:47:27 | docker.io/swerebenchv2/ansible-tower-cli:371-2d7af8f | ansible__tower-cli-371 | Method: Resource.launch(self, job_template=None, monitor=False, wait=False, timeout=None, no_input=True, extra_vars=None, **kwargs)
Location: tower_cli/resources/job.py (class Resource, subclass of models.ExeResource)
Inputs:
- **job_template** (int | str): identifier of the job template to launch.
- **monitor... | python | Apache-2.0 | diff --git a/tower_cli/resources/job.py b/tower_cli/resources/job.py
index 38ffc44..cd95f41 100644
--- a/tower_cli/resources/job.py
+++ b/tower_cli/resources/job.py
@@ -14,7 +14,6 @@
# limitations under the License.
from __future__ import absolute_import, unicode_literals
-from copy import copy
from getpass import... | remove the unusable job endpoint launch method
Resolves #357 | [v2] Remove `--use-job-endpoint` in job launch
it is deprecated in API v2, so it wouldn't work anyway | ansible/tower-cli | diff --git a/tests/test_resources_job.py b/tests/test_resources_job.py
index ca7a5d7..e45c53b 100644
--- a/tests/test_resources_job.py
+++ b/tests/test_resources_job.py
@@ -24,7 +24,6 @@ import tower_cli
from tower_cli.api import client
from tower_cli import exceptions as exc
from tower_cli.cli.resource import ResSu... | [
"tests/test_resources_job.py::LaunchTests::test_basic_launch",
"tests/test_resources_job.py::LaunchTests::test_basic_launch_wait_option",
"tests/test_resources_job.py::LaunchTests::test_basic_launch_with_echo",
"tests/test_resources_job.py::LaunchTests::test_ignored_fields",
"tests/test_resources_job.py::La... | [
"tests/test_resources_job.py::StatusTests::test_detailed",
"tests/test_resources_job.py::StatusTests::test_normal",
"tests/test_resources_job.py::StatusTests::test_normal_with_lookup",
"tests/test_resources_job.py::MonitorWaitTests::test_already_successful",
"tests/test_resources_job.py::MonitorWaitTests::t... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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":... |
4f0cad17b057fb72adbf9fa3e3b77586714e4690 | 2022-05-12 16:42:02 | docker.io/swerebenchv2/jsonpickle-jsonpickle:387-4f0cad1 | jsonpickle__jsonpickle-387 | Function: dumps(obj, include_properties=False, **kwargs)
Location: jsonpickle/__init__.py
Inputs:
- **obj**: any Python object to be serialized.
- **include_properties** (bool, optional): when set to ``True`` the pickler will also serialize attributes exposed via ``@property`` (including those on ``__slots__`` objects)... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 606a7cd..0bcc7b8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,6 +10,8 @@ v3.0.0
* Drop support for CPython<3.7. CPython 3.6 and below have reached EOL
and no longer receieve security updates. (#375)
* Remove jsonlib and yajl backends (py2 only)
+ * A... | Move to CPython 3.7+
Also closes #297.
| Doesn't respect @property
Hey! When using ``jsonpickle.encode(Object)``, it doesn't serialize the methods marked with @property. For example:
```python
@property
def name(self):
return 'John Smith'
```
Should yield the following json:
```json
{
"name": "John Smith"
} | jsonpickle/jsonpickle | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c8c4753..9ee8223 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
+ ... | [
"tests/jsonpickle_test.py::PicklingTestCase::test_include_properties_dict"
] | [
"tests/jsonpickle_test.py::flake-8::FLAKE8",
"tests/jsonpickle_test.py::PicklingTestCase::test_base85_override_py3",
"tests/jsonpickle_test.py::PicklingTestCase::test_base85_still_handles_base64",
"tests/jsonpickle_test.py::PicklingTestCase::test_boolean",
"tests/jsonpickle_test.py::PicklingTestCase::test_b... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
4e4524230ed41ef7cd9d637c52f4e86b1ffedad9 | 2020-12-23 15:17:47 | docker.io/swerebenchv2/slackapi-python-slack-sdk:905-4e45242 | slackapi__python-slack-sdk-905 | No new interfaces are introduced. | python | MIT | diff --git a/slack/web/classes/blocks.py b/slack/web/classes/blocks.py
index b05f802..ba24041 100644
--- a/slack/web/classes/blocks.py
+++ b/slack/web/classes/blocks.py
@@ -238,7 +238,7 @@ class ActionsBlock(Block):
super().__init__(type=self.type, block_id=block_id)
show_unknown_key_warning(self, oth... | Fix #903 by parsing elements in ActionsBlock
## Summary
Fix [issue 903](https://github.com/slackapi/python-slack-sdk/issues/903) for slackclient (v2) maintenance
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient** (Incom... | ActionsBlock elements are not parsed
### Description
In ActionsBlock __init__, elements are simplie copied.
[Exact bug place](https://github.com/slackapi/python-slack-sdk/blob/4e4524230ed41ef7cd9d637c52f4e86b1ffedad9/slack/web/classes/blocks.py#L241)
For all other Blocks, similar elements are parsed into BlockE... | slackapi/python-slack-sdk | diff --git a/tests/web/classes/test_blocks.py b/tests/web/classes/test_blocks.py
index 8f69b64..6b3e50d 100644
--- a/tests/web/classes/test_blocks.py
+++ b/tests/web/classes/test_blocks.py
@@ -10,7 +10,15 @@ from slack.web.classes.blocks import (
ImageBlock,
SectionBlock, InputBlock, FileBlock, Block, CallBlo... | [
"tests/web/classes/test_blocks.py::ActionsBlockTests::test_element_parsing"
] | [
"tests/web/classes/test_blocks.py::BlockTests::test_parse",
"tests/web/classes/test_blocks.py::SectionBlockTests::test_document_1",
"tests/web/classes/test_blocks.py::SectionBlockTests::test_document_2",
"tests/web/classes/test_blocks.py::SectionBlockTests::test_document_3",
"tests/web/classes/test_blocks.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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/slackapi/python-slack-sdk/blob/4e4524... |
fd830c8f2c31c940dc4d425f1bd366eba36dbd85 | 2025-02-25 21:29:20 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3972-fd830c8 | aws-cloudformation__cfn-lint-3972 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/PrimaryIdentifiers.py b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
index bf3305c44..3c9cc7a31 100644
--- a/src/cfnlint/rules/resources/PrimaryIdentifiers.py
+++ b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
@@ -31,6 +31,22 @@ class PrimaryIdentifiers(CloudFormationL... | Provide configuration for exceptions to E3019
*Issue #, if available:*
fix #3831
*Description of changes:*
- Provide configuration for exceptions to E3019
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| Feature Request: `AWS::CodeBuild::Project` - recognize if 2 resources have the same `Name`
### Is this feature request related to a new rule or cfn-lint capabilities?
_No response_
### Describe the feature you'd like to request
It would be great if cfn-lint would recognize if a `AWS::CodeBuild::Project` has th... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/bad/resources/primary_identifiers.yaml b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
index 3aea9828c..632c424ad 100644
--- a/test/fixtures/templates/bad/resources/primary_identifiers.yaml
+++ b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
@@ -162... | [
"test/unit/rules/resources/test_primary_identifiers.py::TestPrimaryIdentifiers::test_file_negative_alias"
] | [
"test/unit/rules/resources/test_primary_identifiers.py::TestPrimaryIdentifiers::test_file_positive"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2d32850bdbcc0ea15f80f8d0263bc21783d29bbb | 2023-03-26 19:17:11 | docker.io/swerebenchv2/sanic-org-sanic-ext:191-2d32850 | sanic-org__sanic-ext-191 | Method: Extend.add_dependency(self, type: Type, constructor: Optional[Callable[..., Any]] = None, request_arg: Optional[str] = None)
Location: sanic_ext/bootstrap.py, class Extend
Inputs:
- **type** – the class that will be used as the dependency key.
- **constructor** – optional callable that returns an instance of... | python | MIT | diff --git a/sanic_ext/bootstrap.py b/sanic_ext/bootstrap.py
index 48882d5..bf149ca 100644
--- a/sanic_ext/bootstrap.py
+++ b/sanic_ext/bootstrap.py
@@ -137,10 +137,31 @@ class Extend:
self,
type: Type,
constructor: Optional[Callable[..., Any]] = None,
+ request_arg: Optional[str] = No... | Force request property for injections
Explicit set of request argument on an injection
Closes #180 | [Bug] Using add_dependency with lambda causes error.
**Describe the bug**
From your [offical document](https://sanic.dev/en/plugins/sanic-ext/injection.html#basic-implementation):
> Lower level: app.ext.add_dependency(...)
>
> - `type: Type,`: some unique class that will be the type of the oject
> - `construc... | sanic-org/sanic-ext | diff --git a/tests/extensions/injection/test_add_dependency.py b/tests/extensions/injection/test_add_dependency.py
index c0488ef..1507166 100644
--- a/tests/extensions/injection/test_add_dependency.py
+++ b/tests/extensions/injection/test_add_dependency.py
@@ -4,6 +4,7 @@ import asyncio
from dataclasses import datacla... | [
"tests/extensions/injection/test_add_dependency.py::test_injection_of_lambda_properties"
] | [
"tests/extensions/injection/test_add_dependency.py::test_injection_not_allowed_when_ext_disabled",
"tests/extensions/injection/test_add_dependency.py::test_injection_of_matched_object",
"tests/extensions/injection/test_add_dependency.py::test_injection_of_matched_object_as_deprecated_injection",
"tests/extens... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://sanic.dev/en/plugins/sanic-ext/injection.html#... |
24210418d9340c603103fbea48a0963f623a0160 | 2021-04-07 07:05:47 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2924-2421041 | hypothesisworks__hypothesis-2924 | Function: sampled_from(elements)
Location: hypothesis.strategies.sampled_from (implemented in hypothesis.strategies._internal.core.sampled_from)
Inputs:
- **elements**: a non‑empty iterable of values **or** an `enum.Enum` subclass. If `elements` is an `Enum` type with zero members **and** defines class‑level `__annotat... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..a53db0f66
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,6 @@
+RELEASE_TYPE: patch
+
+This patch adds a more helpful error message if you try to call
+:func:`~hypothesis.strategies.sampled_from... | Improve error message for certain empty enums
Closes #2923. @HypothesisWorks/hypothesis-python-contributors for a quick review?
(plus a small documentation update following #2915) | Add helpful error message for `st.sampled_from(EmptyEnumWithAnnotations)`
Following the discussion at #2693, the documented method of sampling from an Enum does not appear to work (or the documentation could use clarification and/or an example). The approach I tried is:
```python
from enum import Enum
from hypothe... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_sampled_from.py b/hypothesis-python/tests/cover/test_sampled_from.py
index babcf8de7..c8ef6d5df 100644
--- a/hypothesis-python/tests/cover/test_sampled_from.py
+++ b/hypothesis-python/tests/cover/test_sampled_from.py
@@ -186,3 +186,12 @@ def test_mutability_2(data):
... | [
"hypothesis-python/tests/cover/test_sampled_from.py::test_suggests_elements_instead_of_annotations"
] | [
"hypothesis-python/tests/cover/test_sampled_from.py::test_cannot_sample_sets",
"hypothesis-python/tests/cover/test_sampled_from.py::test_can_sample_sequence_without_warning",
"hypothesis-python/tests/cover/test_sampled_from.py::test_can_sample_ordereddict_without_warning",
"hypothesis-python/tests/cover/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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
18e9f57d1abbae8051b9aef75de3f19b4d1f0630 | 2022-06-04 16:37:31 | docker.io/swerebenchv2/zulko-moviepy:1788-18e9f57 | zulko__moviepy-1788 | No new interfaces are introduced. | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 995d3e6..423c2ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed scroll FX not being scrolling [\#1591](https://github.com/Zulko/moviepy/pull/1591)
- Fixed parsing FFM... | Fix textclip filename parameter in wrong format
<!--
Please tick when you have done these. They don't need to all be completed before the PR is submitted.
Delete them if they are not appropriate for this pull request.
-->
- [x] I have provided code that clearly demonstrates the bug and that only works correctly whe... | Providing filename instead of txt to TextClip results in filename being written instead of the actual content of the file
#### Expected Behavior
Providing a filename to TextClip instead of txt parameter should produce an image with the text in the provided file being set on the image, for example the following two sni... | Zulko/moviepy | diff --git a/scripts/get-latest-imagemagick-win.py b/scripts/get-latest-imagemagick-win.py
index c51620d..9683e4d 100644
--- a/scripts/get-latest-imagemagick-win.py
+++ b/scripts/get-latest-imagemagick-win.py
@@ -4,7 +4,7 @@ import sys
from urllib.request import urlopen
-BINARIES_URL = "https://download.imagemagic... | [
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_video_nframes",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_multiple_audio_streams",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_chapters",
"tests/test_ffmpeg_reader.py::test_str... | [
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_decode_file[decode_file=False]",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_metadata",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_metadata_with_attached_pic",
"tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_multiline_metadata",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.94,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://user-images.githubusercontent.com/19710525/17184... |
c0b6fb26c125df3a7e096756d9cbd6ffdcdfeea5 | 2024-11-27 15:16:03 | docker.io/swerebenchv2/github-issue-metrics:433-c0b6fb2 | github__issue-metrics-433 | Method: get_discussions(token: str, search_query: str, ghe: str)
Location: discussions.py
Inputs:
- **token** (str): Personal Access Token used for GitHub authentication.
- **search_query** (str): Full search query string (e.g., `"repo:user/repo type:discussions query"`). The function strips the `type:discussions` filt... | python | MIT | diff --git a/discussions.py b/discussions.py
index 9b16090..b3ab1d0 100644
--- a/discussions.py
+++ b/discussions.py
@@ -16,15 +16,15 @@ def get_discussions(token: str, search_query: str, ghe: str):
Args:
token (str): A personal access token for GitHub.
search_query (str): The search query to fil... | feat(discussions): refactor get_discussions function for pagination support
# Pull Request
This pull request includes enhancements to the `get_discussions` function in `discussions.py` to support pagination and improvements to the corresponding tests in `test_discussions.py`. The most important changes include addin... | Discussions are limited to 100 results
Seems like some folks might want this to be increased to measure metrics on more than 100 discussions. We could either implement a more reasonable limit or figure out how to handle paging up to the limit of github search results. | github/issue-metrics | diff --git a/test_discussions.py b/test_discussions.py
index 22b247f..8145aad 100644
--- a/test_discussions.py
+++ b/test_discussions.py
@@ -14,54 +14,49 @@ from discussions import get_discussions
class TestGetDiscussions(unittest.TestCase):
"""A class to test the get_discussions function in the discussions modul... | [
"test_discussions.py::TestGetDiscussions::test_get_discussions_error_status_code",
"test_discussions.py::TestGetDiscussions::test_get_discussions_graphql_error",
"test_discussions.py::TestGetDiscussions::test_get_discussions_multiple_pages"
] | [
"test_discussions.py::TestGetDiscussions::test_get_discussions_single_page"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
2d94946a938878ea10da479b7ac83ab1c434df4d | 2023-05-29 07:11:43 | docker.io/swerebenchv2/pyca-pyopenssl:1218-2d94946 | pyca__pyopenssl-1218 | Method: Context.set_session_id(self, session_id: bytes)
Location: OpenSSL.SSL.Context
Inputs: session_id – a bytes object containing the session identifier; must be non‑empty and may be up to 32 bytes.
Outputs: None. The call updates the context’s session‑id value; raises SSL.Error if the value is invalid.
Description:... | python | Apache-2.0 | diff --git a/setup.cfg b/setup.cfg
index 40a93c1..c33dc2e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,5 @@
[tool:pytest]
-minversion = 3.0.1
-strict = true
+addopts = "-r s --strict-markers"
testpaths = tests
[metadata]
| fix a variety of deprecation warnings
fixes #1024 and future proofs this for pytest 8 | 23.1.1: pytest warnings
<details>
```console
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, plugg... | pyca/pyopenssl | diff --git a/tests/test_crypto.py b/tests/test_crypto.py
index 0f67d20..3429231 100644
--- a/tests/test_crypto.py
+++ b/tests/test_crypto.py
@@ -6,9 +6,9 @@ Unit tests for :py:mod:`OpenSSL.crypto`.
"""
import base64
import sys
+import warnings
from datetime import datetime, timedelta
from subprocess import PIPE, P... | [
"tests/test_crypto.py::TestX509Ext::test_str",
"tests/test_crypto.py::TestX509Ext::test_type",
"tests/test_crypto.py::TestX509Ext::test_construction",
"tests/test_crypto.py::TestX509Ext::test_invalid_extension[thisIsMadeUp-False-hi]",
"tests/test_crypto.py::TestX509Ext::test_invalid_extension[basicConstrain... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": "insufficient",
"pr_categories... |
c471729e7b9fd6236e88e1913760f1fa4f2be121 | 2023-09-18 18:30:55 | docker.io/swerebenchv2/pyomo-pyomo:2997-c471729 | pyomo__pyomo-2997 | Method: VisitorConfig.__init__(self)
Location: pyomo.repn.quadratic
Inputs: No parameters (creates an empty configuration object).
Outputs: Instance with mutable attributes `subexpr` (dict), `var_map` (dict), `var_order` (dict). These are used by the quadratic representation visitor to track sub‑expressions and v... | python | custom-check-github | diff --git a/pyomo/repn/quadratic.py b/pyomo/repn/quadratic.py
index 4195d95e2..fbe386007 100644
--- a/pyomo/repn/quadratic.py
+++ b/pyomo/repn/quadratic.py
@@ -222,7 +222,6 @@ def _handle_product_nonlinear(visitor, node, arg1, arg2):
# We are multiplying (A + Bx + Cx^2 + D(x)) * (A + Bx + Cx^2 + Dx))
_, x1 =... | QuadraticRepnVisitor: Improve nonlinear expression expansion
<!-- ##################################################################### -->
<!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST -->
<!-- All changes must adhere to PEP8 standards as enforced by Black. -->
<!-- If your changes do NOT adhere, the test sui... | Extract linear/quadratic/nonlinear terms from nonlinear expressions
## Summary
I want to extract linear/quadratic/nonlinear terms from nonlinear expressions.
### Description
<!-- Describe the solution you'd like and the alternatives you have considered. -->
I first tried `expressions.args` and check the `po... | Pyomo/pyomo | diff --git a/pyomo/repn/tests/test_quadratic.py b/pyomo/repn/tests/test_quadratic.py
index 95f35a629..b034099de 100644
--- a/pyomo/repn/tests/test_quadratic.py
+++ b/pyomo/repn/tests/test_quadratic.py
@@ -126,8 +126,6 @@ class TestQuadratic(unittest.TestCase):
self.assertEqual(repn.constant, 0)
self.a... | [
"pyomo/repn/tests/test_quadratic.py::TestQuadratic::test_product"
] | [
"pyomo/repn/tests/test_quadratic.py::TestQuadratic::test_pow",
"pyomo/repn/tests/test_quadratic.py::TestQuadratic::test_sum",
"pyomo/repn/tests/test_quadratic.py::TestQuadratic::test_zero_elimination"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Pyomo/pyomo/blob/5683dc3d46e6c4a3a6... |
4e7c1ea346b510280218b47e8653dbbca3a69870 | 2025-06-05 21:05:35 | docker.io/swerebenchv2/yt-dlp-yt-dlp:13403-4e7c1ea | yt-dlp__yt-dlp-13403 | No new interfaces are introduced. | python | Unlicense | diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py
index d82225718..0b53756dc 100644
--- a/yt_dlp/extractor/youtube/_video.py
+++ b/yt_dlp/extractor/youtube/_video.py
@@ -2229,20 +2229,20 @@ def _decrypt_nsig(self, s, video_id, player_url):
def _extract_n_function_name(self, jscod... | [ie/youtube] Rework nsig function name extraction
<!--
**IMPORTANT**: PRs without the template will be CLOSED
Due to the high volume of pull requests, it may be a while before your PR is reviewed.
Please try to keep your pull request focused on a single bugfix or new feature.
Pull requests wit... | [youtube] player `fc2a56a5`: nsig extraction failed: Some formats may be missing
### Checklist
- [x] I'm reporting that yt-dlp is broken on a **supported** site
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've c... | yt-dlp/yt-dlp | diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 3f777aed7..3336b6bff 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -320,6 +320,14 @@
'https://www.youtube.com/s/player/59b252b9/player_ias.vflset/en_US/base.js',
'D3XWVpYgwhLLKNK4AG... | [
"test/test_youtube_signature.py::TestSignature::test_nsig_js_fc2a56a5_player_ias_vflset_en_US_base",
"test/test_youtube_signature.py::TestSignature::test_nsig_js_fc2a56a5_tv_player_ias_vflset_tv_player_ias"
] | [
"test/test_youtube_signature.py::TestPlayerInfo::test_youtube_extract_player_info",
"test/test_youtube_signature.py::TestSignature::test_nsig_js_009f1d77_player_ias_vflset_en_US_base",
"test/test_youtube_signature.py::TestSignature::test_nsig_js_074a8365_player_ias_tce_vflset_en_US_base",
"test/test_youtube_s... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/yt-dlp/yt-dlp#update-channels",
... |
72deee6df0ae5d012abb33ab25b7e88afc4c3933 | 2024-10-02 19:04:18 | docker.io/swerebenchv2/stac-utils-pystac:1423-72deee6 | stac-utils__pystac-1423 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4233bc68..03321520 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
- id: ruff-format
name: ruff-format
- entry: ruff format --force-exclude --check
+ entry: ruff format --forc... | Fix item field ordering on `save_object`
**Related Issue(s):**
- Closes #587
**Description:**
This PR fixes item field ordering in accordance with the order defined [here](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#item-fields). Additionally, I've fixed what appears to be a smal... | Order of Item fields
Hi all!
When generating Items using `item.save_object( )`, I expected the order of fields in my JSON files to reflect the order as listed [here](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#item-fields) and the [example file](https://github.com/radiantearth/stac-sp... | stac-utils/pystac | diff --git a/tests/test_item.py b/tests/test_item.py
index 46fd984a..2ab846ce 100644
--- a/tests/test_item.py
+++ b/tests/test_item.py
@@ -108,6 +108,30 @@ class ItemTest(unittest.TestCase):
actual_href = rel_asset.get_absolute_href()
self.assertEqual(None, actual_href)
+ def test_item_field_orde... | [
"tests/test_item.py::ItemTest::test_item_field_order"
] | [
"tests/test_item.py::ItemTest::test_0_9_item_with_no_extensions_does_not_read_collection_data",
"tests/test_item.py::ItemTest::test_asset_absolute_href",
"tests/test_item.py::ItemTest::test_asset_absolute_href_no_item_self",
"tests/test_item.py::ItemTest::test_clearing_collection",
"tests/test_item.py::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": [
"https://github.com/radiantearth/stac-spec/blob/master/it... |
796fb35dbc24a2e5b5a64833615d9680c1eadc56 | 2024-11-27 14:42:10 | docker.io/swerebenchv2/openmdao-openmdao:3406-796fb35 | openmdao__openmdao-3406 | Method: Problem.list_driver_vars(self, driver_scaling=True, desvar_opts=None, cons_opts=None, **kwargs)
Location: openmdao.core.problem.Problem
Inputs:
- driver_scaling (bool, optional, default True): when False, design‑variable and constraint bounds are reported in their model (un‑scaled) units; when True, bounds are... | python | custom-check-github | diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py
index c760a543b..417dda448 100644
--- a/openmdao/core/problem.py
+++ b/openmdao/core/problem.py
@@ -2147,6 +2147,15 @@ class Problem(object, metaclass=ProblemMetaclass):
# Design vars
desvars = self.driver._designvars
vals = sel... | Updated `list_driver_vars` to scale upper and lower bounds when `driver_scaling` is False
### Summary
Updated `list_driver_vars` to scale upper and lower bounds when `driver_scaling` is False
### Related Issues
- Resolves #3337
### Backwards incompatibilities
None
### New Dependencies
None
| `prob.list_driver_vars` should scaler `upper` and `lower` when `driver_scaling` is False
### Description
when `driver_scaling` is False, the value of the design variables/constraints get scaled, but the bound values do not. This may be confusing to some users as it may make the constraints appear violated when in fa... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_problem.py b/openmdao/core/tests/test_problem.py
index 68c08851f..8e2b39d8d 100644
--- a/openmdao/core/tests/test_problem.py
+++ b/openmdao/core/tests/test_problem.py
@@ -2056,6 +2056,77 @@ class TestProblem(unittest.TestCase):
self.assertTrue('-20.' in output[14]) # con
... | [
"openmdao/core/tests/test_problem.py::TestProblem::test_list_driver_vars_driver_scaling_bounds"
] | [
"openmdao/core/tests/test_problem.py::TestProblem::test_args",
"openmdao/core/tests/test_problem.py::TestProblem::test_check_totals_user_detect",
"openmdao/core/tests/test_problem.py::TestProblem::test_compute_jacvec_product_0_fwd",
"openmdao/core/tests/test_problem.py::TestProblem::test_compute_jacvec_produc... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
69e3936dc4952dfef265eac9fd5cc4c14bb5e91c | 2015-11-30 20:55:53 | docker.io/swerebenchv2/mapbox-mapbox-sdk-py:77-69e3936 | mapbox__mapbox-sdk-py-77 | Method: PolylineCodec.decode(self, expression)
Location: mapbox/polyline/codec.py
Inputs: expression – encoded polyline string (ASCII characters); must be a valid Google encoded polyline.
Outputs: list of (latitude, longitude) tuples as floats rounded to 5 decimal places; raises no exception for well‑formed input.
Desc... | python | MIT | diff --git a/mapbox/encoding.py b/mapbox/encoding.py
index 62259d4..f009fb8 100644
--- a/mapbox/encoding.py
+++ b/mapbox/encoding.py
@@ -1,6 +1,7 @@
-from polyline.codec import PolylineCodec
import json
+from .polyline.codec import PolylineCodec
+
def _geom_points(geom):
"""GeoJSON geometry to a sequence of ... | Vendorize polyline
Closes #74 | Problem with polyline module dependencies
@perrygeo I've traced our issues with failing tests on Travis to the `polyline` module requiring exactly one version of `six`. As shown by `pipdeptree`:
```polyline==1.1 -> six [required: ==1.8.0, installed: 1.8.0]```
Everybody would be better off if the requirement were ... | mapbox/mapbox-sdk-py | diff --git a/tests/test_polyline_codec.py b/tests/test_polyline_codec.py
new file mode 100644
index 0000000..cf9d12c
--- /dev/null
+++ b/tests/test_polyline_codec.py
@@ -0,0 +1,70 @@
+import unittest
+
+from mapbox.polyline.codec import PolylineCodec
+
+
+class PolylineCodecTestCase(unittest.TestCase):
+ def setUp(s... | [
"tests/test_polyline_codec.py::PolylineCodecTestCase::test_decode_multiple_points",
"tests/test_polyline_codec.py::PolylineCodecTestCase::test_decode_official_example",
"tests/test_polyline_codec.py::PolylineCodecTestCase::test_decode_single_point",
"tests/test_polyline_codec.py::PolylineCodecTestCase::test_e... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
462893cfae35229271524aec55c50a112aaddae3 | 2020-02-25 17:12:47 | docker.io/swerebenchv2/palantir-python-language-server:754-462893c | palantir__python-language-server-754 | Method: PythonLanguageServer.m_workspace__did_change_workspace_folders(self, event=None, **_kwargs)
Location: pyls/python_ls.py
Inputs:
- **event** (dict, optional): Dictionary with optional keys:
- `'added'` → list of workspace dicts, each ideally containing a `'uri'` string.
- `'removed'` → list of workspace dic... | python | MIT | diff --git a/pyls/python_ls.py b/pyls/python_ls.py
index 577675f..8d6c5f0 100644
--- a/pyls/python_ls.py
+++ b/pyls/python_ls.py
@@ -361,14 +361,37 @@ class PythonLanguageServer(MethodDispatcher):
for doc_uri in workspace.documents:
self.lint(doc_uri, is_saved=False)
- def m_workspace... | Follow LSP protocol when workspace folders are changed and adapt root workspace uri if folder is changed
If a workspace folder is changed via `m_workspace__did_change_workspace_folders` and the **removed uri equals the `root uri`,** the `root_uri` will be adapted. Additional the `self.workspace` will be reseted with a ... | Workspace folders not implemented completely
The signature for didChangeWorkspaceFolders
```python
def m_workspace__did_change_workspace_folders(self, added=None, removed=None, **_kwargs):
```
assumes `added` and `removed` are children of the `params` field, but according to the spec they should be nested under... | palantir/python-language-server | diff --git a/test/test_workspace.py b/test/test_workspace.py
index 9b5b7b0..6ecdfbf 100644
--- a/test/test_workspace.py
+++ b/test/test_workspace.py
@@ -96,8 +96,8 @@ def test_multiple_workspaces(tmpdir, pyls):
added_workspaces = [{'uri': path_as_uri(str(x))}
for x in (workspace1_dir, wo... | [
"test/test_workspace.py::test_multiple_workspaces",
"test/test_workspace.py::test_multiple_workspaces_wrong_removed_uri",
"test/test_workspace.py::test_root_workspace_changed",
"test/test_workspace.py::test_root_workspace_not_changed",
"test/test_workspace.py::test_root_workspace_removed"
] | [
"test/test_workspace.py::test_local",
"test/test_workspace.py::test_put_document",
"test/test_workspace.py::test_get_document",
"test/test_workspace.py::test_get_missing_document",
"test/test_workspace.py::test_rm_document",
"test/test_workspace.py::test_non_root_project[metafiles0]",
"test/test_workspa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://microsoft.github.io/language-server-protocol/s... |
37f44eda5555ffed3b4c581925650fb939e55b94 | 2024-11-21 22:09:20 | docker.io/swerebenchv2/delgan-loguru:1236-37f44ed | delgan__loguru-1236 | No new interfaces are introduced. | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index e9eda00..a4aa622 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,7 @@
- Fix possible ``RuntimeError`` when removing all handlers with ``logger.remove()`` due to thread-safety issue (`#1183 <https://github.com/Delgan/loguru/issues/1183>`_, thanks `@jeremyk <htt... | Fix inability to display '\' before color markups
Fix #988. | How to escape `\` before tag
In my server application, i'm using loguru logger to log messages from client. But in some case, the log failed with the error: https://github.com/nonebot/adapter-onebot/issues/74 `ValueError: Closing tag "</le>" has no corresponding opening tag`
Here is the example of the case:
```py... | Delgan/loguru | diff --git a/tests/test_ansimarkup_basic.py b/tests/test_ansimarkup_basic.py
index 008aa1d..5c0f114 100644
--- a/tests/test_ansimarkup_basic.py
+++ b/tests/test_ansimarkup_basic.py
@@ -140,10 +140,15 @@ def test_autoclose(text, expected):
@pytest.mark.parametrize(
"text, expected",
[
+ (r"\<red>foobar... | [
"tests/test_ansimarkup_basic.py::test_escaping[\\\\\\\\<red>foobar\\\\\\\\</red>-\\\\\\x1b[31mfoobar\\\\\\x1b[0m]",
"tests/test_ansimarkup_basic.py::test_escaping[\\\\\\\\\\\\<red>foobar\\\\\\\\\\\\</red>-\\\\<red>foobar\\\\</red>]",
"tests/test_ansimarkup_basic.py::test_escaping[\\\\\\\\\\\\\\\\<red>foobar\\\\... | [
"tests/test_ansimarkup_basic.py::test_styles[<bold>1</bold>-\\x1b[1m1\\x1b[0m]",
"tests/test_ansimarkup_basic.py::test_styles[<dim>1</dim>-\\x1b[2m1\\x1b[0m]",
"tests/test_ansimarkup_basic.py::test_styles[<normal>1</normal>-\\x1b[22m1\\x1b[0m]",
"tests/test_ansimarkup_basic.py::test_styles[<b>1</b>-\\x1b[1m1\... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/nonebot/adapter-onebot/issues/74",
... |
7722044f4b0f689eec8cb89afc8d3e4bb8e62908 | 2023-01-31 19:40:17 | docker.io/swerebenchv2/pypa-packaging:674-7722044 | pypa__packaging-674 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/packaging/specifiers.py b/src/packaging/specifiers.py
index 8f1e181..ba8fe37 100644
--- a/src/packaging/specifiers.py
+++ b/src/packaging/specifiers.py
@@ -399,7 +399,9 @@ class Specifier(BaseSpecifier):
# We need special logic to handle prefix matching
if spec.endswith(".*"):
... | Handle prefix match with zeros at end of prefix correctly
Closes #673 | Specifiers with `.*` and epoch changed behaviours
Hello, it seems that `SpecifierSet.contains` works differently between versions 21 and 23, when the `==` operator is used with a version that contains both an epoch and `.*`:
```bash
> docker run --rm -it python:3.11 /bin/bash
python3 -m venv /tmp/venv21
/tmp/... | pypa/packaging | diff --git a/tests/test_specifiers.py b/tests/test_specifiers.py
index 104fac9..799f873 100644
--- a/tests/test_specifiers.py
+++ b/tests/test_specifiers.py
@@ -369,6 +369,8 @@ class TestSpecifier:
("2!1.0", "==2!1.*"),
("2!1.0", "==2!1.0"),
("2!1.0", "!=1.0"),
+ ... | [
"tests/test_specifiers.py::TestSpecifier::test_specifiers[2!1.0.0-==2!1.0.*-True]"
] | [
"tests/test_specifiers.py::TestSpecifier::test_specifiers_valid[~=2.0]",
"tests/test_specifiers.py::TestSpecifier::test_specifiers_valid[==2.1.*]",
"tests/test_specifiers.py::TestSpecifier::test_specifiers_valid[==2.1.0.3]",
"tests/test_specifiers.py::TestSpecifier::test_specifiers_valid[!=2.2.*]",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/pypa/setuptools/issues/3802"
],... |
8e600963280d2dfaf7c68e300698164947e2b8d1 | 2023-02-23 16:40:44 | docker.io/swerebenchv2/stac-utils-pystac:1006-8e60096 | stac-utils__pystac-1006 | Method: CollectionVersionExtension.ext(collection: pystac.Collection, add_if_missing: bool = False) → CollectionVersionExtension
Location: pystac/extensions/version.py
Inputs: a Collection object; optional boolean flag `add_if_missing` to attach the extension if not present.
Outputs: an instance of CollectionVersionExt... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 58ca4ad4..012ff6ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@
- `STACObject.remove_hierarchical_links` and `Link.is_hierarchical` ([#999](https://github.com/stac-utils/pystac/pull/999))
- `extra_fields` to `AssetDefinition` in the item assets extensio... | Add deprecation warnings
**Related Issue(s):**
- Closes #843
**Description:**
- Inserts logic into the Item and Collection `from_dict()` methods that checks for the version extension and, if it exists, issues a `DeprecatedWarning` if the version extension `deprecated` field is set to `True`.
- Provides an `i... | Surface warnings when accessing deprecated collections #156
https://github.com/stac-extensions/version offers a mechanism for marking a collection or item as deprecated.
We at the Planetary Computer are deprecating our `landsat-8-c2-l2` collection in favor of `landsat-c2-l2`. I would love it if querying a deprecated... | stac-utils/pystac | diff --git a/tests/extensions/test_version.py b/tests/extensions/test_version.py
index ee4ba6d0..6397a6e0 100644
--- a/tests/extensions/test_version.py
+++ b/tests/extensions/test_version.py
@@ -2,12 +2,20 @@
import unittest
from datetime import datetime
-from typing import List, Optional
+from typing import Genera... | [
"tests/extensions/test_version.py::VersionExtensionTest::test_should_raise_exception_when_passing_invalid_extension_object",
"tests/extensions/test_version.py::ItemVersionExtensionTest::test_ext_add_to",
"tests/extensions/test_version.py::ItemVersionExtensionTest::test_extension_not_implemented",
"tests/exten... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/stac-extensions/version",
"ht... |
6ee2c081b3c1937712eb474a17ffb97af8e8424d | 2024-12-10 05:26:50 | docker.io/swerebenchv2/aristanetworks-anta:962-6ee2c08 | aristanetworks__anta-962 | Method: ResultManager._reset_stats(self)
Location: anta/result_manager/__init__.py
Inputs: self – the ResultManager instance. No other parameters.
Outputs: None (returns ``None``). Side‑effects: re‑initialises the internal statistics containers ``_device_stats``, ``_category_stats`` and ``_test_stats`` as empty ``de... | python | Apache-2.0 | diff --git a/anta/result_manager/__init__.py b/anta/result_manager/__init__.py
index ef0c4dfc..b5b0f393 100644
--- a/anta/result_manager/__init__.py
+++ b/anta/result_manager/__init__.py
@@ -6,6 +6,7 @@
from __future__ import annotations
import json
+import logging
from collections import defaultdict
from functoo... | fix(anta): Fix ResultManager statistics
# Description
Fix ResultManager statistics. ResultManager stats are only updated when needed.
Fixes #948
# Checklist:
- [x] Update documentation
- [x] Update unit tests
| fix: `anta nrfu table --group-by` is broken
```
mtache@cactus:/mnt/lab/projects/anta-demo$ anta nrfu -c 1-network-tests/nrfu.yml table --group-by device
╭────────────────────── Settings ──────────────────────╮
│ - ANTA Inventory contains 6 devices (AsyncEOSDevice) │
│ - Tests catalog contains 11 tests ... | aristanetworks/anta | diff --git a/tests/units/cli/nrfu/test_commands.py b/tests/units/cli/nrfu/test_commands.py
index 0d8046c0..372c86a8 100644
--- a/tests/units/cli/nrfu/test_commands.py
+++ b/tests/units/cli/nrfu/test_commands.py
@@ -79,7 +79,7 @@ def test_anta_nrfu_text(click_runner: CliRunner) -> None:
def test_anta_nrfu_text_multiple... | [
"tests/units/result_manager/test__init__.py::TestResultManager::test_stats_computation_methods",
"tests/units/result_manager/test__init__.py::TestResultManager::test_stats_property_computation"
] | [
"tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_table_help",
"tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_text_help",
"tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_json_help",
"tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_template_help",
"tests/units/result_manager/test__i... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "insufficient",
"pr_categori... |
f14c67f80a837e0f4ed53937029a2c769ceab2e8 | 2020-09-01 11:48:07 | docker.io/swerebenchv2/materials-consortia-optimade-python-tools:484-f14c67f | materials-consortia__optimade-python-tools-484 | Method: ToplevelLinks.__init__(self, **links: Union[str, dict, None])
Location: optimade.models.jsonapi.ToplevelLinks
Inputs: keyword arguments where each key is a link name (e.g., "first", "last", "prev", "next", or any arbitrary identifier). The corresponding value must be either a URL string that satisfies AnyUrl co... | python | MIT | diff --git a/openapi/index_openapi.json b/openapi/index_openapi.json
index f5bc5837..6a011bc7 100644
--- a/openapi/index_openapi.json
+++ b/openapi/index_openapi.json
@@ -1665,35 +1665,63 @@
},
"first": {
"title": "First",
- "maxLength": 65536,
- "minLength": 1,
... | Allow Link objects for pagination
I found a few more links that can be `jsonapi.Link` objects that must have been causing problems. Closes #394 (I hope - sorry it took so long @merkys!)
Continues to add onto our issues of unravelling the schema models with nested `$ref`'s under `allOf` etc... in discussion with @Cas... | Links under top-level 'links' may be objects
I am trying to validate COD implementation (in development) using `optimade-python-tools` v0.9.8. The validator seems to require the values under the top-level `links` being strings:
```
$ optimade_validator https://www.crystallography.net/cod-test/optimade -v 5
Testing e... | Materials-Consortia/optimade-python-tools | diff --git a/tests/models/test_jsonapi.py b/tests/models/test_jsonapi.py
index a63f5dc3..3d684666 100644
--- a/tests/models/test_jsonapi.py
+++ b/tests/models/test_jsonapi.py
@@ -1,6 +1,57 @@
-from optimade.models.jsonapi import Error
+from pydantic import ValidationError
+import pytest
+from optimade.models.jsonapi im... | [
"tests/models/test_jsonapi.py::test_toplevel_links"
] | [
"tests/models/test_jsonapi.py::test_hashability"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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.crystallography.net/cod-test/optimade",
... |
32298c9d9f49ae1ddc6deb779b87f5bca7a029b2 | 2017-08-13 09:38:08 | docker.io/swerebenchv2/axelrod-python-axelrod:1118-32298c9 | axelrod-python__axelrod-1118 | Method: __init__(self)
Location: axelrod.strategies.axelrod_first.TidemanAndChieruzzi
Inputs: None (no arguments besides the implicit instance).
Outputs: Initializes state attributes `is_retaliating`, `retaliation_length`, `retaliation_remaining`, `current_score`, `opponent_score`, `last_fresh_start`, and `fresh_... | python | custom-check-github | diff --git a/axelrod/strategies/_strategies.py b/axelrod/strategies/_strategies.py
index 978afb0e..471c7a22 100644
--- a/axelrod/strategies/_strategies.py
+++ b/axelrod/strategies/_strategies.py
@@ -6,7 +6,7 @@ from .appeaser import Appeaser
from .averagecopier import AverageCopier, NiceAverageCopier
from .axelrod_fi... | TidemanAndChieruzzi strategy
This is the implementation of Tideman and Chieruzzi's strategy from Axelrod's first tournament.
Resolves #1105. | Specific strategy: Tideman and Chieruzzi
This is one of the remaining strategies from the first tournament and is described here: http://axelrod.readthedocs.io/en/stable/reference/overview_of_strategies.html#tideman-and-chieruzzi:
This strategy begins by playing Tit For Tat and then things get slightly complicated:
... | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/strategies/test_axelrod_first.py b/axelrod/tests/strategies/test_axelrod_first.py
index bed9dfb7..f5603f94 100644
--- a/axelrod/tests/strategies/test_axelrod_first.py
+++ b/axelrod/tests/strategies/test_axelrod_first.py
@@ -437,3 +437,89 @@ class TestSteinAndRapoport(TestPlayer):
sel... | [
"axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_clone",
"axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_initialisation",
"axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_match_attributes",
"axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_re... | [] | {
"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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"http://axelrod.readthedocs.io/en/stable/reference/over... |
94becb521ab7537f05d6facb1e32ea3e99a94873 | 2024-06-27 13:18:58 | docker.io/swerebenchv2/amaranth-lang-amaranth:1420-94becb5 | amaranth-lang__amaranth-1420 | Method: Layout.const(self, init)
Location: amaranth.lib.data.Layout.const
Inputs:
- **self**: a Layout instance (e.g., StructLayout, ArrayLayout).
- **init**: a mapping (dict‑like) or a sequence (list‑like) representing constant values for the layout fields. The keys must exist in the layout; otherwise a ``Valu... | python | BSD-2-Clause | diff --git a/amaranth/lib/data.py b/amaranth/lib/data.py
index 8c77cc2..69ca86c 100644
--- a/amaranth/lib/data.py
+++ b/amaranth/lib/data.py
@@ -219,12 +219,16 @@ class Layout(ShapeCastable, metaclass=ABCMeta):
elif isinstance(init, Sequence):
iterator = enumerate(init)
else:
- ... | Make `data.Const` comparable with `list` and `dict` objects compatible with the layout
Before this commit, `data.Const` was only comparable to `data.Const` or `data.View`.
After this commit, in addition, it is also comparable to `dict` or `list` provided that such a value is accepted by `layout.const()` where `layou... | Allow comparison of `data.Const` with `dict` and `list`
It would be nice, for tests, if this worked:
```python
>>> data.StructLayout({"a": 4}).const({"a": 0b0001}) == {"a": 0b0001}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../python3.12/site-packages/amaranth/lib/data.py",... | amaranth-lang/amaranth | diff --git a/tests/test_lib_data.py b/tests/test_lib_data.py
index ceafd63..86a75c1 100644
--- a/tests/test_lib_data.py
+++ b/tests/test_lib_data.py
@@ -477,6 +477,10 @@ class LayoutTestCase(FHDLTestCase):
r"^Layout constant initializer must be a mapping or a sequence, not "
r"<.+?obje... | [
"tests/test_lib_data.py::LayoutTestCase::test_const_wrong",
"tests/test_lib_data.py::ConstTestCase::test_compare"
] | [
"tests/test_lib_data.py::FieldTestCase::test_construct",
"tests/test_lib_data.py::FieldTestCase::test_equal",
"tests/test_lib_data.py::FieldTestCase::test_immutable",
"tests/test_lib_data.py::FieldTestCase::test_offset_wrong",
"tests/test_lib_data.py::FieldTestCase::test_preserve_shape",
"tests/test_lib_d... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ad872a002dec8759203517ebc20588d5e2a564c5 | 2016-07-31 22:37:42 | docker.io/swerebenchv2/audreyr-cookiecutter:792-ad872a0 | audreyr__cookiecutter-792 | Function: configure_logger(stream_level='DEBUG', debug_file=None)
Location: cookiecutter/log.py
Inputs:
- **stream_level** (str): Desired log level for the console stream (`'DEBUG'`, `'INFO'`, etc.). Determines the formatter and the minimum level emitted to stdout.
- **debug_file** (str or None): Path to a file that wi... | python | BSD-3-Clause | diff --git a/cookiecutter/cli.py b/cookiecutter/cli.py
index 87edc98..6db44a0 100644
--- a/cookiecutter/cli.py
+++ b/cookiecutter/cli.py
@@ -9,13 +9,13 @@ Main `cookiecutter` CLI.
import os
import sys
-import logging
import json
import click
from cookiecutter import __version__
from cookiecutter.config impo... | Improve logging
This PR adds sophisticated logging to cookiecutter! 😃
``$ cookiecutter --debug-file generate-plugin.log cookiecutter-pytest-plugin``
Rather than using ``logging.basicConfig`` to set up the root logger and a handler, a ``cookiecutter`` logger with one or two handlers:
- ``StreamHandler`` loggi... | A "log what was done" option would be nice
Perhaps an option that writes a log file in the generated tree containing just the list of files created? | audreyr/cookiecutter | diff --git a/tests/test_cli.py b/tests/test_cli.py
index a56a319..9d0cdef 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -374,3 +374,53 @@ def test_cli_extra_context_invalid_format(cli_runner):
assert result.exit_code == 2
assert 'Error: Invalid value for "extra_context"' in result.output
asse... | [
"tests/test_cli.py::test_cli_version[-V]",
"tests/test_cli.py::test_cli_version[--version]",
"tests/test_cli.py::test_cli_error_on_existing_output_directory",
"tests/test_cli.py::test_cli",
"tests/test_cli.py::test_cli_verbose",
"tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exi... | [] | {
"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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
1129272c3264b6c3e152e699b4a3ef49d185f2c8 | 2024-12-13 13:29:23 | docker.io/swerebenchv2/celery-celery:9465-1129272 | celery__celery-9465 | Method: CassandraBackend.__init__(self, app, servers=None, keyspace=None, table=None, entry_ttl=None, port=None, bundle_path=None, **kwargs)
Location: celery/backends/cassandra.py
Inputs:
- **app** – the Celery application instance (required by BaseBackend).
- **servers** – optional list of Cassandra contact points; f... | python | custom-check-github | diff --git a/celery/backends/cassandra.py b/celery/backends/cassandra.py
index 0eb37f31b..4ca071d2d 100644
--- a/celery/backends/cassandra.py
+++ b/celery/backends/cassandra.py
@@ -86,7 +86,7 @@ class CassandraBackend(BaseBackend):
supports_autoexpire = True # autoexpire supported via entry_ttl
def __i... | Fix cassandra backend port settings not working
## Description
**Fix for Port Configuration in CassandraBackend Constructor**
Fixes #5226, which was marked as closed but unresolved.
The issue arises from the default parameter `port=9042` in the `CassandraBackend` constructor, which inadvertently prevents the app... | Config cassandra backend port config not work
## Checklist
- [ ] I have included the output of ``celery -A proj report`` in the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
```
software -> celery:4.1.0 (latentcall) kombu:4.1.0 py:2.7.12
bil... | celery/celery | diff --git a/t/unit/backends/test_cassandra.py b/t/unit/backends/test_cassandra.py
index 9bf8a480f..b51b51d05 100644
--- a/t/unit/backends/test_cassandra.py
+++ b/t/unit/backends/test_cassandra.py
@@ -267,4 +267,12 @@ class test_CassandraBackend:
'cql_version': '3.2.1',
'protocol_version': 3
... | [
"t/unit/backends/test_cassandra.py::test_CassandraBackend::test_options"
] | [
"t/unit/backends/test_cassandra.py::test_CassandraBackend::test_init_no_cassandra",
"t/unit/backends/test_cassandra.py::test_CassandraBackend::test_init_with_and_without_LOCAL_QUROM",
"t/unit/backends/test_cassandra.py::test_CassandraBackend::test_init_with_cloud",
"t/unit/backends/test_cassandra.py::test_Cas... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
3077d0ddfb315464321dc86f8ec3bf2cab9ce3b1 | 2024-07-23 17:15:21 | docker.io/swerebenchv2/tdameritrade-stumpy:1015-3077d0d | tdameritrade__stumpy-1015 | Function: motifs(T, P, min_neighbors=1, max_distance=np.inf, cutoff=None, max_matches=None, max_motifs=None)
Location: stumpy/motifs.py
Inputs:
- T: 1‑D numpy.ndarray, the time series to search.
- P: 1‑D numpy.ndarray, the matrix profile (or subsequence distances) corresponding to T.
- min_neighbors: int (default 1), m... | python | custom-check-github | diff --git a/stumpy/aamp_motifs.py b/stumpy/aamp_motifs.py
index 0d5f67d..c7a852f 100644
--- a/stumpy/aamp_motifs.py
+++ b/stumpy/aamp_motifs.py
@@ -268,7 +268,7 @@ def aamp_motifs(
m = T.shape[-1] - P.shape[-1] + 1
excl_zone = int(np.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))
if max_matches is None: # pr... | Fixed #1014 Fix max_matches=None bug
This fix addresses issue #1014 by not slicing the `query_matches` if `max_matches` is set to `None` for `motifs` (which in turn calls `_motifs` with `max_matches=np.inf`.
I made an initial effort to add testing, but I'm sure there are better ways to do so.
# Pull Request Check... | _motifs max_matches=None bug
When finding motifs, the function encounters a bug when `max_matches` is set to `None` to not restrict the number of matches. If the `max_matches` argument is set to `None` for `stumpy.motifs`, it assigns `max_matches = np.inf` before passing to `_motifs` which then tries to slice the `quer... | TDAmeritrade/stumpy | diff --git a/tests/test_motifs.py b/tests/test_motifs.py
index e7d571f..61e9ded 100644
--- a/tests/test_motifs.py
+++ b/tests/test_motifs.py
@@ -656,3 +656,30 @@ def test_motifs_with_isconstant():
npt.assert_almost_equal(ref_distances, comp_distance)
npt.assert_almost_equal(ref_indices, comp_indices)
+
+
+d... | [
"tests/test_motifs.py::test_motifs_with_max_matches_none"
] | [
"tests/test_motifs.py::test_motifs_one_motif",
"tests/test_motifs.py::test_motifs_two_motifs",
"tests/test_motifs.py::test_motifs_max_matches",
"tests/test_motifs.py::test_motifs_max_matches_max_distances_inf",
"tests/test_motifs.py::test_naive_match_exclusion_zone",
"tests/test_motifs.py::test_match[Q0-T... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
dba40df8d190f0fa9f76581d34bbf47a383b30fa | 2022-03-23 01:27:08 | docker.io/swerebenchv2/pycqa-flake8:1576-dba40df | pycqa__flake8-1576 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py
index 3479893..4c9dfb8 100644
--- a/src/flake8/main/options.py
+++ b/src/flake8/main/options.py
@@ -24,8 +24,8 @@ def stage1_arg_parser() -> argparse.ArgumentParser:
"--verbose",
default=0,
action="count",
- help="Pri... | simplify decision engine
- not specified codes (cmdline / config) are now known as being implicit via
None sentinel
- removed redundant logic for (explicit, explicit) selection
resolves #284 | Overriding built-in default ignores through an extension
In GitLab by @snoack on Jan 10, 2019, 14:17
We'd like to centralize our flake8 configuration through an extension, rather than duplicating the error codes to be selected/ignored in each of our project's `tox.ini`. It's already possible to add default ignores and... | PyCQA/flake8 | diff --git a/tests/integration/test_aggregator.py b/tests/integration/test_aggregator.py
index de9e6fb..d35266f 100644
--- a/tests/integration/test_aggregator.py
+++ b/tests/integration/test_aggregator.py
@@ -76,15 +76,5 @@ def test_aggregate_options_when_isolated(optmanager, flake8_config):
options = aggregator.a... | [
"tests/integration/test_aggregator.py::test_aggregate_options_when_isolated",
"tests/unit/test_decision_engine.py::test_was_ignored_ignores_errors[ignore_list0-extend_ignore0-E111]",
"tests/unit/test_decision_engine.py::test_was_ignored_ignores_errors[ignore_list1-extend_ignore1-E121]",
"tests/unit/test_decis... | [
"tests/integration/test_aggregator.py::test_aggregate_options_with_config"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
791dd3b0415b99faac229d42a81db1d7096b003c | 2022-08-09 08:18:03 | docker.io/swerebenchv2/pallets-jinja:1702-791dd3b | pallets__jinja-1702 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index feb1e6c3..540d5ccc 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,8 @@ Unreleased
``Template.generate_async``. :pr:`1960`
- Avoid leaving async generators unclosed in blocks, includes and extends.
:pr:`1960`
+- The runtime uses the correct ``concat`` ... | Use correct concat function for blocks evaluation
- fixes #1701
<!--
Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to each box below.
If only docs were changed, these aren't relevant and can be removed.
-->
Checklist:
- [ ] Add tests that demonstrate the correct behavior of the change.... | TypeError: sequence item 0: expected str instance, int found
```python
import jinja2
from jinja2.nativetypes import NativeEnvironment
NativeEnvironment().from_string('{% block test %}{% for i in range(1) %}{{ loop.index }}{% endfor %}{% endblock %}{{ self.test() }}').render()
```
```
Traceback (most recent call... | pallets/jinja | diff --git a/tests/test_nativetypes.py b/tests/test_nativetypes.py
index 8c852525..13690818 100644
--- a/tests/test_nativetypes.py
+++ b/tests/test_nativetypes.py
@@ -160,3 +160,13 @@ def test_macro(env):
result = t.render()
assert result == 2
assert isinstance(result, int)
+
+
+def test_block(env):
+ ... | [
"tests/test_nativetypes.py::test_block"
] | [
"tests/test_nativetypes.py::test_is_defined_native_return",
"tests/test_nativetypes.py::test_undefined_native_return",
"tests/test_nativetypes.py::test_adding_undefined_native_return",
"tests/test_nativetypes.py::test_cast_int",
"tests/test_nativetypes.py::test_list_add",
"tests/test_nativetypes.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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1bb84c6e73513c66f31dc4bee06aeab6b9e6743d | 2025-01-29 20:18:13 | docker.io/swerebenchv2/dwavesystems-dwave-system:554-1bb84c6 | dwavesystems__dwave-system-554 | Method: DWaveSampler.close(self)
Location: dwave/system/samplers/dwave_sampler.py – added as a public method of the DWaveSampler class.
Inputs: None (just the sampler instance).
Outputs: None. Performs cleanup by calling ``self.client.close()`` to shut down the underlying cloud client and its threads. After calling, an... | python | Apache-2.0 | diff --git a/docs/reference/samplers.rst b/docs/reference/samplers.rst
index 80e5add..c0d5d68 100644
--- a/docs/reference/samplers.rst
+++ b/docs/reference/samplers.rst
@@ -58,6 +58,7 @@ Methods
DWaveSampler.sample_qubo
DWaveSampler.validate_anneal_schedule
DWaveSampler.to_networkx_graph
+ DWaveSampler.cl... | Add `close()` to all QPU and hybrid samplers
Close #77.
Note: ~tests will fail because we need to release `dwave-cloud-client==0.13.3` first.~ We skip tests that require `UseAfterCloseError` from cloud client 0.13.3.
Follow-up: add support for context manager protocol to all samplers. | Add close method to DWaveSampler() | dwavesystems/dwave-system | diff --git a/dwave/system/testing.py b/dwave/system/testing.py
index 810fa3a..801ae4b 100644
--- a/dwave/system/testing.py
+++ b/dwave/system/testing.py
@@ -353,6 +353,9 @@ class MockDWaveSampler(dimod.Sampler, dimod.Structured):
# topology-dependent arguments:
self.properties.update(propertie... | [
"tests/test_dwavecliquesampler.py::TestFailover::test_close",
"tests/test_dwavesampler.py::TestDWaveSampler::test_close",
"tests/test_leaphybridcqmsampler.py::TestTimeLimit::test_close",
"tests/test_leaphybriddqmsolver.py::TestLeapHybridDQMSampler::test_close",
"tests/test_leaphybridnlsampler.py::TestNLSamp... | [
"tests/qpu/test_dwavesampler.py::TestClientSelection::test_client_type",
"tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_api",
"tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_clique",
"tests/test_dwavecliquesampler.py::TestDWaveCliqueSampler::test_ferromagnet_chimera",
"tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
225bf75020ed3bda5f68b2dbd99a91499dd4acc9 | 2025-05-23 16:22:42 | docker.io/swerebenchv2/googleapis-python-api-core:821-225bf75 | googleapis__python-api-core-821 | Method: BackgroundConsumer.__init__(self, bidi_rpc, on_response, on_fatal_exception=None)
Location: google.api_core.bidi.BackgroundConsumer
Inputs:
- **bidi_rpc** (ResumableBidiRpc): the RPC object that provides the bidirectional stream.
- **on_response** (Callable[[protobuf.Message], None]): callback invoked for each... | python | Apache-2.0 | diff --git a/google/api_core/bidi.py b/google/api_core/bidi.py
index b002b40..bed4c70 100644
--- a/google/api_core/bidi.py
+++ b/google/api_core/bidi.py
@@ -624,12 +624,15 @@ class BackgroundConsumer(object):
``open()``ed yet.
on_response (Callable[[protobuf.Message], None]): The callback to
... | fix: Allow BackgroundConsumer To Inform Caller of Fatal Exceptions with Optional Callback
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-api-core/iss... | Bidi BackgroundConsumer not Properly Notifying Caller on Fatal Processing Exceptions
This was discovered in [Pub/Sub](https://github.com/googleapis/python-pubsub/tree/main), whereby futures dependent on this class hang if not set with a timeout when a throw occurs in [BackgroundConsumer's _thread_main](https://github.c... | googleapis/python-api-core | diff --git a/tests/unit/test_bidi.py b/tests/unit/test_bidi.py
index 0e7b018..7640367 100644
--- a/tests/unit/test_bidi.py
+++ b/tests/unit/test_bidi.py
@@ -918,3 +918,33 @@ class TestBackgroundConsumer(object):
error_logs = [r.message for r in caplog.records if r.levelname == "ERROR"]
assert not erro... | [
"tests/unit/test_bidi.py::TestBackgroundConsumer::test_fatal_exceptions_can_inform_consumer"
] | [
"tests/unit/test_bidi.py::Test_RequestQueueGenerator::test_bounded_consume",
"tests/unit/test_bidi.py::Test_RequestQueueGenerator::test_yield_initial_and_exit",
"tests/unit/test_bidi.py::Test_RequestQueueGenerator::test_yield_initial_callable_and_exit",
"tests/unit/test_bidi.py::Test_RequestQueueGenerator::te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/googleapis/python-pubsub/tree/main"... |
7289a6c7b11bbbd97e6004ff742eb0af5139950f | 2024-04-04 19:53:16 | docker.io/swerebenchv2/getmoto-moto:7567-7289a6c | getmoto__moto-7567 | Method: ApplicationAutoScalingBackend.put_scaling_policy(self, service_namespace: str, resource_id: str, scalable_dimension: str, policy_name: str, policy_type: Optional[str], policy_body: Dict[str, Any]) → FakeApplicationAutoscalingPolicy
Location: moto/applicationautoscaling/models.py
Inputs:
- service_namespace – A... | python | Apache-2.0 | diff --git a/moto/applicationautoscaling/models.py b/moto/applicationautoscaling/models.py
index 41e7f2dda..91214821f 100644
--- a/moto/applicationautoscaling/models.py
+++ b/moto/applicationautoscaling/models.py
@@ -1,7 +1,7 @@
import time
from collections import OrderedDict
from enum import Enum, unique
-from typi... | SFN: Input for mock should be the same as input for parser
Fixes #7561
Also changes the existing tests for the parser to validate this behaviour against AWS | Stepfunction describe executions returns a double encoded string
## Issue
When running describe_execution as follows, the result is a string not the expected dictionary
``` python
@mock_aws
def test_a(self):
client = boto3.client("stepfunctions")
sf = client.create_state_machine(
name="name",... | getmoto/moto | diff --git a/tests/test_applicationautoscaling/__init__.py b/tests/test_applicationautoscaling/__init__.py
index e69de29bb..d197ac727 100644
--- a/tests/test_applicationautoscaling/__init__.py
+++ b/tests/test_applicationautoscaling/__init__.py
@@ -0,0 +1,71 @@
+import os
+from functools import wraps
+
+import boto3
+
... | [
"tests/test_applicationautoscaling/test_applicationautoscaling_policies.py::test_put_scaling_policy_with_unknown_policytype[TargetTrackingScaling-policy_body_kwargs0]",
"tests/test_applicationautoscaling/test_applicationautoscaling_policies.py::test_put_scaling_policy_with_unknown_policytype[TargetTrackingScaling... | [
"tests/test_applicationautoscaling/test_applicationautoscaling.py::test_describe_scalable_targets_one_basic_ecs_success",
"tests/test_applicationautoscaling/test_applicationautoscaling.py::test_describe_scalable_targets_one_full_ecs_success",
"tests/test_applicationautoscaling/test_applicationautoscaling.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": "B5",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ba784203142a4e8a4e1c3e34987a29c159e3c231 | 2023-01-18 20:25:40 | docker.io/swerebenchv2/getmoto-moto:5853-ba78420 | getmoto__moto-5853 | Function: parse_template(template, template_data, tokenizer=None, until=None)
Location: moto.ses.template
Inputs:
- **template** (str): the raw template string containing Mustache‑style placeholders (`{{var}}`) and loop blocks (`{{#each list}} … {{/each}}`).
- **template_data** (dict): a mapping of variable names to v... | python | Apache-2.0 | diff --git a/moto/dynamodb/parsing/key_condition_expression.py b/moto/dynamodb/parsing/key_condition_expression.py
index cb9953450..3bdbaa7e1 100644
--- a/moto/dynamodb/parsing/key_condition_expression.py
+++ b/moto/dynamodb/parsing/key_condition_expression.py
@@ -1,70 +1,6 @@
from enum import Enum
from moto.dynamodb... | SES: Improve template parsing
Fixes #5594
Improves generation of SES templates to also support for-each loops.
AWS supports a subset of the Handlebars templates. There is a python-fork that could be used to parse SES templates here: https://github.com/wbond/pybars3
However, it is unmaintained and slow (with a... | error when template contains Iteration of list
Error existe in lastest version moto 4.0.8
Having this template :
`{{#each items}} <a href="{{itemName}}">{{itemDesc}}</a> {{/each}}`
And our input :
`{"items": [{"itemName": "item1", "itemDesc": "description 1"}]}`
Moto will not find out "items" from input ... | getmoto/moto | diff --git a/tests/test_ses/test_ses_boto3.py b/tests/test_ses/test_ses_boto3.py
index c2c27cdb9..0ca55c7f8 100644
--- a/tests/test_ses/test_ses_boto3.py
+++ b/tests/test_ses/test_ses_boto3.py
@@ -1268,6 +1268,35 @@ def test_render_template():
)
+@mock_ses
+def test_render_template__with_foreach():
+ conn =... | [
"tests/test_ses/test_ses_boto3.py::test_verify_email_identity",
"tests/test_ses/test_ses_boto3.py::test_verify_email_identity_idempotency",
"tests/test_ses/test_ses_boto3.py::test_verify_email_address",
"tests/test_ses/test_ses_boto3.py::test_domain_verify",
"tests/test_ses/test_ses_boto3.py::test_delete_id... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/spulec/moto/blob/80ab997010f9f8a2c2... |
c9de103c4ff8da859ea2cfef47951bef1e80136e | 2024-06-14 23:21:53 | docker.io/swerebenchv2/amaranth-lang-amaranth:1395-c9de103 | amaranth-lang__amaranth-1395 | No new interfaces are introduced. | python | BSD-2-Clause | diff --git a/amaranth/__init__.py b/amaranth/__init__.py
index b968958..f9c20d8 100644
--- a/amaranth/__init__.py
+++ b/amaranth/__init__.py
@@ -20,6 +20,5 @@ __all__ = [
"Module",
"ClockDomain",
"Elaboratable", "Fragment", "Instance",
- "Memory",
"DomainRenamer", "ResetInserter", "EnableInserter... | hdl: remove `Memory`.
Fixes #1083. | Tracking issue for RFC 45: Move `hdl.Memory` to `lib.Memory`
- RFC PR: https://github.com/amaranth-lang/rfcs/pull/45
- Implementation PR: https://github.com/amaranth-lang/amaranth/pull/1142
- Documentation PR: https://github.com/amaranth-lang/amaranth/pull/1228
- Removal PR: https://github.com/amaranth-lang/amaranth... | amaranth-lang/amaranth | diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py
index 4ec8618..cdb0367 100644
--- a/tests/test_hdl_ast.py
+++ b/tests/test_hdl_ast.py
@@ -211,25 +211,6 @@ class ShapeCastableTestCase(FHDLTestCase):
r"^Can't instantiate abstract class ShapeCastable$"):
ShapeCastable()
- def ... | [
"tests/test_hdl_xfrm.py::DomainRenamerTestCase::test_rename_mem_ports"
] | [
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int",
"tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong",
"tests/test_hdl_ast... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/amaranth-lang/rfcs/pull/45",
... |
3fe72e9eea38d9a58211cde42cfaa577ce020e2c | 2025-06-01 04:28:03 | docker.io/swerebenchv2/yt-dlp-yt-dlp:13361-3fe72e9 | yt-dlp__yt-dlp-13361 | No new interfaces are introduced. | python | Unlicense | diff --git a/yt_dlp/extractor/adobepass.py b/yt_dlp/extractor/adobepass.py
index 91c40b32e..8c2d9d934 100644
--- a/yt_dlp/extractor/adobepass.py
+++ b/yt_dlp/extractor/adobepass.py
@@ -1574,18 +1574,29 @@ def extract_redirect_url(html, url=None, fatal=False):
post_form(mvpd_confirm_page_res... | [ie/odnoklassniki] Detect and raise when login is required
Closes #13360
<details open><summary>Template</summary> <!-- OPEN is intentional -->
### Before submitting a *pull request* make sure you have:
- [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRI... | "Unable to extract player;" error on certain OKRU videos (Odnoklassniki)
### Checklist
- [x] I'm reporting that yt-dlp is broken on a **supported** site
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've checked t... | yt-dlp/yt-dlp | diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py
index c6ff6209a..bc89b2955 100644
--- a/test/test_InfoExtractor.py
+++ b/test/test_InfoExtractor.py
@@ -314,6 +314,20 @@ def test_search_json_ld_realworld(self):
},
{},
),
+ (
+ ... | [
"test/test_InfoExtractor.py::TestInfoExtractor::test_search_json_ld_realworld"
] | [
"test/test_InfoExtractor.py::TestInfoExtractor::test_download_json",
"test/test_InfoExtractor.py::TestInfoExtractor::test_extract_jwplayer_data_realworld",
"test/test_InfoExtractor.py::TestInfoExtractor::test_get_netrc_login_info",
"test/test_InfoExtractor.py::TestInfoExtractor::test_html_search_meta",
"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.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/yt-dlp/yt-dlp#update-channels",
... |
0f045cd231f01716c9c81ac78fa2c237c0dd1933 | 2024-03-17 12:19:06 | docker.io/swerebenchv2/python-attrs-attrs:1267-0f045cd | python-attrs__attrs-1267 | Method: Converter.__init__(self, converter: Callable[[In], Out] | Callable[[In, AttrsInstance, Attribute], Out], *, takes_self: bool = False, takes_field: bool = False)
Location: attrs/_make.py – class `Converter` definition.
Inputs:
- `converter`: the user‑provided callable that converts a value. It may accept only t... | python | MIT | diff --git a/changelog.d/1267.change.md b/changelog.d/1267.change.md
new file mode 100644
index 0000000..2b31c57
--- /dev/null
+++ b/changelog.d/1267.change.md
@@ -0,0 +1,3 @@
+It is now possible to wrap a converter into an `attrs.Converter` and get the current instance and/or the current field definition passed into t... | converters: allow wrapping and passing self and fields
This allows to wrap converters into classes and pass them the instance that is being initialized and the field for which the value is converted.
Things open:
- [x] narrative docs in `init.md`
- [ ] I'm not sure how to approach the typing side, since every at... | Allow three-argument converters (like validators/on_setattr)
I'd like to move the discussion from [converter decorator PR](https://github.com/python-attrs/attrs/pull/404) to this issue.
I think converters are semantically closer to `on_setattr` and `validator` than `default`. E.g. `attr.ib(converter=...)` allows you... | python-attrs/attrs | diff --git a/tests/test_annotations.py b/tests/test_annotations.py
index 516c53f..b3f7b09 100644
--- a/tests/test_annotations.py
+++ b/tests/test_annotations.py
@@ -277,25 +277,27 @@ class TestAnnotations:
def identity(z):
return z
- assert attr.converters.pipe(int2str).__annotations__ ==... | [
"tests/test_annotations.py::TestAnnotations::test_basic_annotations",
"tests/test_annotations.py::TestAnnotations::test_catches_basic_type_conflict",
"tests/test_annotations.py::TestAnnotations::test_typing_annotations",
"tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected",
"t... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/python-attrs/attrs/pull/404"
],
... |
edfa84bc8183fdb75531102621eff5ffd945f601 | 2022-03-18 23:14:19 | docker.io/swerebenchv2/mie-lab-trackintel:384-edfa84b | mie-lab__trackintel-384 | Method: _split_overlaps(self, source: geopandas.GeoDataFrame, granularity: str = "day", max_iter: int = 60)
Location: trackintel.analysis.tracking_quality._split_overlaps
Inputs:
- **source** – a GeoDataFrame containing at least the columns *started_at* and *finished_at* (both timezone‑aware pandas Timestamps).
... | python | MIT | diff --git a/trackintel/analysis/tracking_quality.py b/trackintel/analysis/tracking_quality.py
index 254b9c6..20e3e3a 100644
--- a/trackintel/analysis/tracking_quality.py
+++ b/trackintel/analysis/tracking_quality.py
@@ -1,8 +1,8 @@
-import datetime
+import warnings
-import pandas as pd
+import geopandas as gpd
impo... | ENH: `_split_overlap` splits now exactly on border
This PR does quite a lot because some changes where necessary to generalize this method.
- use `dt.ceil()` and `dt.floor()` to handle the splits more generally.
- fixed multiple bugs that come from using `.date`/`.hour` (if on same date on different months it wouldn'... | ENH: _split_overlap() function does not deal with miliseconds
The splitting of records implemented in the `_split_overlap()` function only replaces the time larger than 1 second, causing the newly created records not to start exactly at 12 midnight. The codes [here](https://github.com/mie-lab/trackintel/blob/1ff2323c86... | mie-lab/trackintel | diff --git a/tests/analysis/test_tracking_quality.py b/tests/analysis/test_tracking_quality.py
index c22f42b..4511ec4 100644
--- a/tests/analysis/test_tracking_quality.py
+++ b/tests/analysis/test_tracking_quality.py
@@ -7,6 +7,7 @@ import geopandas as gpd
from shapely.geometry import Point
import trackintel as ti
... | [
"tests/analysis/test_tracking_quality.py::TestTemporal_tracking_quality::test_tracking_quality_all",
"tests/analysis/test_tracking_quality.py::TestTemporal_tracking_quality::test_tracking_quality_day",
"tests/analysis/test_tracking_quality.py::TestTemporal_tracking_quality::test_tracking_quality_week",
"tests... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/mie-lab/trackintel/blob/1ff2323c868... |
0b740dbb823acb3359acdc66dbad082f446ba892 | 2021-11-30 04:57:29 | docker.io/swerebenchv2/stac-utils-pystac-client:126-0b740db | stac-utils__pystac-client-126 | Method: CollectionClient.from_dict(cls, data: dict, root: Client = None)
Location: pystac_client/collection_client.py
Inputs:
- data (dict): JSON representation of a STAC Collection.
- root (Client, optional): The root API client from which to inherit headers and query‑string parameters.
Outputs: CollectionClient ... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f3bca9..e934c3c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
+- Values from `parameters` and `headers` arguments to `Client.open` and `Client.fro... | Propagate root StacAPIIO to ItemSearch in Client.get_items
**Related Issue(s):**
- Closes #125
**Description:**
Ensures that query string parameters and headers given in `Client.open` or `Client.from_file` are used in requests from `CollectionClient` instances fetched from that API.
**PR Checklist:**
- ... | StacApiIO instance not propagated to CollectionClient instances
The `Client` creation methods (`from_file` & `open`) accept `headers` and `parameters` arguments that allow a user to automatically include header and query string parameter values in all requests made to an API. However, these arguments are not passed alo... | stac-utils/pystac-client | diff --git a/tests/test_client.py b/tests/test_client.py
index 83ee40c..96f0165 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -144,6 +144,111 @@ class TestAPI:
assert len(actual_qp[init_qp_name]) == 1
assert actual_qp[init_qp_name][0] == init_qp_value
+ def test_custom_query_par... | [
"tests/test_client.py::TestAPI::test_custom_query_params_get_collections_propagation",
"tests/test_client.py::TestAPI::test_custom_query_params_get_collection_propagation"
] | [
"tests/test_client.py::TestAPI::test_spec_conformance",
"tests/test_client.py::TestAPI::test_no_conformance",
"tests/test_client.py::TestAPI::test_no_stac_core_conformance",
"tests/test_client.py::TestAPI::test_invalid_url",
"tests/test_client.py::TestAPI::test_get_collections_with_conformance",
"tests/te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/stac-utils/pystac-client/blob/883316b... |
cf7c50e41c6d1da5ee39efb5cab177fb543435dd | 2019-07-02 22:45:20 | docker.io/swerebenchv2/vmware-tern:355-cf7c50e | vmware__tern-355 | Method: Package.checksum(self)
Location: tern/classes/package.py – property getter
Inputs: None (accessed via the attribute `checksum` on a Package instance)
Outputs: Returns the stored checksum string; returns an empty string (`''`) if no checksum has been set
Description: Retrieves the checksum associated with the pa... | python | BSD-2-Clause | diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md
index 2d5ea6f..e79f816 100644
--- a/.github/ISSUE_TEMPLATE/bug.md
+++ b/.github/ISSUE_TEMPLATE/bug.md
@@ -24,6 +24,7 @@ A clear and concise description of what you expected to happen.
**Environment you are running Tern on**
Enter all that ap... | Add a version argument to tern CLI
This commit adds a --version option to Tern's CLI. This option will
display the version of Tern that is installed and also output the
python version. This commit also updates the GitHub issue template.
This will be useful for individuals opening bugs to provide the
version of Tern... | Add a version argument to tern CLI
**Describe the Feature**
Currently there is no way to identify the version of tern installed. Typically a CLI will have a `--version` argument to provide such information.
As a added bonus, it's good to put environmental information in the version output that way you can tell peo... | vmware/tern | diff --git a/tests/test_class_package.py b/tests/test_class_package.py
index b491030..314e455 100644
--- a/tests/test_class_package.py
+++ b/tests/test_class_package.py
@@ -19,6 +19,7 @@ class TestClassPackage(unittest.TestCase):
self.p1.copyright = 'All Rights Reserved'
self.p1.proj_url = 'github.com... | [
"tests/test_class_package.py::TestClassPackage::testFill",
"tests/test_class_package.py::TestClassPackage::testInstance"
] | [
"tests/test_class_package.py::TestClassPackage::testGetPackageId",
"tests/test_class_package.py::TestClassPackage::testGetters",
"tests/test_class_package.py::TestClassPackage::testIsEqual",
"tests/test_class_package.py::TestClassPackage::testSetters",
"tests/test_class_package.py::TestClassPackage::testToD... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.92,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
5f2da312fa66d6f001ca4d8d79ee281b9b62e9ed | 2022-07-15 08:13:06 | docker.io/swerebenchv2/yt-dlp-yt-dlp:4357-5f2da31 | yt-dlp__yt-dlp-4357 | Function: determine_file_encoding(data)
Location: yt_dlp/utils.py
Inputs:
- **data** (`bytes`): The initial bytes of a file (typically the first 512 bytes). May contain a Byte‑Order‑Mark (BOM) or a coding declaration comment.
Outputs:
- **Tuple[str | None, int]** – a pair where the first element is the detected encod... | python | Unlicense | diff --git a/README.md b/README.md
index af5fb46ae..b9e62d54b 100644
--- a/README.md
+++ b/README.md
@@ -1161,6 +1161,15 @@ # Save all videos under YouTube directory in your home directory
You can use `--ignore-config` if you want to disable all configuration files for a particular yt-dlp run. If `--ignore-config` i... | Allow users to specify encoding in each config files
<details open><summary>Template</summary> <!-- OPEN is intentional -->
<!--
# PLEASE FOLLOW THE GUIDE BELOW
- You will be asked some questions, please read them **carefully** and answer honestly
- Put an `x` into all the boxes `[ ]` relevant to your *pull r... | UnicodeDecodeError when configuration saved as UTF-8 and OS default encoding is GBK
<!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
###################################################################... | yt-dlp/yt-dlp | diff --git a/test/test_utils.py b/test/test_utils.py
index 948d5d059..c668ff9e4 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -39,6 +39,7 @@
datetime_from_str,
detect_exe_version,
determine_ext,
+ determine_file_encoding,
dfxp2srt,
dict_get,
encode_base_n,
@@ -1822,6 +1823... | [
"test/test_utils.py::TestUtil::test_LazyList",
"test/test_utils.py::TestUtil::test_LazyList_laziness",
"test/test_utils.py::TestUtil::test_age_restricted",
"test/test_utils.py::TestUtil::test_args_to_str",
"test/test_utils.py::TestUtil::test_base_url",
"test/test_utils.py::TestUtil::test_caesar",
"test/... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/yt-dlp/yt-dlp",
"https://gith... |
21d29514065540c4555b1a6e82a785c617d8eae2 | 2025-02-28 16:42:24 | docker.io/swerebenchv2/pennylaneai-pennylane:7025-21d2951 | pennylaneai__pennylane-7025 | Method: Controlled.has_sparse_matrix(self)
Location: pennylane/ops/op_math/controlled.py → class Controlled
Inputs: None (property accessor; uses the underlying `base` operator)
Outputs: ``bool`` – ``True`` if the wrapped base operator defines either a dense matrix (`has_matrix`) or a sparse matrix (`has_sparse_m... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index deab8eef8..388202a98 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -426,6 +426,10 @@
<h3>Bug fixes 🐛</h3>
+* `qml.ops.Controlled.has_sparse_matrix` now provides the correct information
+ by checki... | fix `qml.Controlled.has_sparse_matrix`
**Context:**
`Controlled.has_sparse_matrix` was always true
**Description of the Change:**
Fix `Controlled.has_sparse_matrix`.
**Benefits:**'
`Controlled.has_sparse_matrix` is accurate.
Unblock https://github.com/PennyLaneAI/pennylane/pull/6883/
**Possible Dra... | [BUG] `Controlled.has_sparse_matrix` is incorrect for ops without matrices or sparse matrices
### Expected behavior
`Operator.has_sparse_matrix` should agree with whether or not an actual matrix is returned by `Operator.sparse_matrix`
### Actual behavior
`Controlled.has_sparse_matrix` is always true.
### Additional... | PennyLaneAI/pennylane | diff --git a/tests/ops/op_math/test_controlled.py b/tests/ops/op_math/test_controlled.py
index 41a49e5ec..c8d7430a7 100644
--- a/tests/ops/op_math/test_controlled.py
+++ b/tests/ops/op_math/test_controlled.py
@@ -742,6 +742,7 @@ class TestMatrix:
sparse_mat = op.sparse_matrix()
assert isinstance(spars... | [
"tests/ops/op_math/test_controlled.py::TestMatrix::test_no_matrix_defined_sparse_matrix_error"
] | [
"tests/ops/op_math/test_controlled.py::TestControlledInheritance::test_plain_operator",
"tests/ops/op_math/test_controlled.py::TestControlledInheritance::test_operation",
"tests/ops/op_math/test_controlled.py::TestControlledInheritance::test_controlledop_new",
"tests/ops/op_math/test_controlled.py::TestContro... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
62ee72fc5ed2fe6d80acc6663d222458252c03de | 2020-06-15 00:34:28 | docker.io/swerebenchv2/ericmjl-pyjanitor:673-62ee72f | ericmjl__pyjanitor-673 | Function: update_where(df: pd.DataFrame, conditions: Union[str, Any], target_column_name: Hashable, target_val: Any)
Location: janitor.functions
Inputs:
- **df** – the DataFrame to be modified (mutated in‑place).
- **conditions** – either a pandas‑compatible boolean mask (Series/array) *or* a query‑style string... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 7396878..fe5250a 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,9 @@
new version (on deck)
=====================
-
+- [ENH]: Upgraded ``update_where`` function to use either the pandas query style,
+ or boolean indexing via the ``loc`` method.
+ Also updat... | [ENH] updates to update_where and find_replace functions
<!-- Thank you for your PR!
BEFORE YOU CONTINUE! Please add the appropriate three-letter abbreviation to your title.
The abbreviations can be:
- [DOC]: Documentation fixes.
- [ENH]: Code contributions and new features.
- [TST]: Test-related contributions... | [ENH] support .query()-style strings in df.update_where()
Given the `update_where` example:
```python
# The dataframe must be assigned to a variable first.
data = {
"a": [1, 2, 3, 4],
"b": [5, 6, 7, 8],
"c": [0, 0, 0, 0]
}
df = pd.DataFrame(data)
df = (
df
.update_where(
condit... | ericmjl/pyjanitor | diff --git a/tests/functions/test_update_where.py b/tests/functions/test_update_where.py
index ddcfe1e..5b6263a 100644
--- a/tests/functions/test_update_where.py
+++ b/tests/functions/test_update_where.py
@@ -1,5 +1,8 @@
import pandas as pd
import pytest
+from pandas.testing import assert_frame_equal
+
+from janitor.... | [
"tests/functions/test_update_where.py::test_update_where_query"
] | [
"tests/functions/test_update_where.py::test_update_where"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": [],
"intent_completeness": "complete",
"pr_categories": [... |
f1b6c6d003503f71834345f443a13b9ff06d96cd | 2022-07-07 15:20:21 | docker.io/swerebenchv2/martinthoma-flake8-simplify:147-f1b6c6d | martinthoma__flake8-simplify-147 | No new interfaces are introduced. | python | MIT | diff --git a/README.md b/README.md
index f73d258..4aeac9c 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ Python-specific rules:
* `SIM126`: Reserved for [SIM906](#sim906) once it's stable
* `SIM127`: Reserved for [SIM907](#sim907) once it's stable
-Simplifying Comparations:
+Simplifying Comparisons:
* ... | SIM104: Remove false-positives in case the loop is not a direct child of an async function
Not all for loops within a function body is a direct child of the function body
Closes #146 | yield from is not allowed in async function
## Desired change
Do not warning if a SIM104 is encountered inside an async function or method.
* **Rule(s)**: SIM104
* **Adjustment**: In which way should it/they be adjusted?
Do not warning if a SIM104 is encountered inside an async function or method.
## Explanati... | MartinThoma/flake8-simplify | diff --git a/tests/test_100_rules.py b/tests/test_100_rules.py
index fba08fe..955d71d 100644
--- a/tests/test_100_rules.py
+++ b/tests/test_100_rules.py
@@ -99,6 +99,17 @@ def test_s104_async_generator_false_positive():
assert "SIM104" not in el
+def test_s104_async_generator_false_positive_2():
+ ret =... | [
"tests/test_100_rules.py::test_s104_async_generator_false_positive_2"
] | [
"tests/test_100_rules.py::test_sim102_pattern1",
"tests/test_100_rules.py::test_sim102_pattern2",
"tests/test_100_rules.py::test_sim102_not_active1",
"tests/test_100_rules.py::test_sim102_should_not_trigger[__main__]",
"tests/test_100_rules.py::test_sim102_should_not_trigger[intermediate-statement]",
"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": [
"https://peps.python.org/pep-0525/#asynchronous-yield-fro... |
bc4acd320d2850ee4bb10608015383142340da90 | 2024-04-18 15:19:25 | docker.io/swerebenchv2/sdv-dev-rdt:805-bc4acd3 | sdv-dev__rdt-805 | Function: fill_nan_with_none(data)
Location: rdt.transformers.utils.fill_nan_with_none
Inputs:
- **data**: `pandas.Series` or `pandas.DataFrame` containing values that may include `np.nan`. The input is expected to be of any dtype; the function will call `.infer_objects()` to ensure an object dtype before processing.
... | python | custom-check-github | diff --git a/.github/workflows/dependency_checker.yml b/.github/workflows/dependency_checker.yml
index 7dbe870..7900502 100644
--- a/.github/workflows/dependency_checker.yml
+++ b/.github/workflows/dependency_checker.yml
@@ -2,7 +2,7 @@ name: Dependency Checker
on:
workflow_dispatch:
schedule:
- - cron: '0 0 ... | Pandas FutureWarnings are disrupting tqdm progress bars
CU-86b01yxhv
Resolve #793 | Pandas FutureWarnings are disrupting tqdm progress bars
### Environment Details
When calling some functions in SDV like `synthesizer.sample_remaining_columns()`, the tqdm progress bar doesn't progress in-line. Instead, each update to the progress bar results in the display of a `FutureWarning` from pandas around the... | sdv-dev/RDT | diff --git a/tests/integration/transformers/test_categorical.py b/tests/integration/transformers/test_categorical.py
index 907df48..4f77b7f 100644
--- a/tests/integration/transformers/test_categorical.py
+++ b/tests/integration/transformers/test_categorical.py
@@ -198,6 +198,28 @@ def test_frequency_encoder_numerical_n... | [
"tests/integration/transformers/test_categorical.py::test_frequency_encoder_numerical_nans_no_warning",
"tests/integration/transformers/test_categorical.py::test_label_encoder_numerical_nans_no_warning",
"tests/integration/transformers/test_categorical.py::test_ordered_label_encoder_numerical_nans_no_warning",
... | [
"tests/integration/transformers/test_categorical.py::TestUniformEncoder::test_frequency",
"tests/integration/transformers/test_categorical.py::TestUniformEncoder::test_clip_interval",
"tests/integration/transformers/test_categorical.py::TestUniformEncoder::test__reverse_transform",
"tests/integration/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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/sdv-dev/RDT/assets/801507/436f787e-... |
56cdb4fe752661d496ea8694685c2ddddb3d8b03 | 2015-09-10 22:47:04 | docker.io/swerebenchv2/boto-botocore:648-56cdb4f | boto__botocore-648 | Method: Loader.load_service_model(self, service_name, type_name, api_version=None)
Location: botocore.loaders
Inputs:
- **service_name** (str): name of the service to load; must exactly match one of the entries returned by `list_available_services(type_name)` (case‑sensitive).
- **type_name** (str): the type of model ... | python | Apache-2.0 | diff --git a/botocore/loaders.py b/botocore/loaders.py
index 5e0b63ad3..3ec069f9f 100644
--- a/botocore/loaders.py
+++ b/botocore/loaders.py
@@ -98,7 +98,7 @@ import os
from botocore import BOTOCORE_ROOT
from botocore.compat import json
from botocore.compat import OrderedDict
-from botocore.exceptions import DataNot... | Added validation to ensure that service names passed in conform to those exposed by the service model
Fixes #611
| Make clients case sensitive
Following up from https://github.com/boto/boto3/issues/171, this should *not* be allowed:
```
>>> import botocore.session
>>> session = botocore.session.get_session()
>>> session.create_client('S3')
<botocore.client.S3 object at 0x10368e2b0>
```
Our reference docs has all the se... | boto/botocore | diff --git a/tests/unit/test_loaders.py b/tests/unit/test_loaders.py
index deda4dd3b..6ec766bdb 100644
--- a/tests/unit/test_loaders.py
+++ b/tests/unit/test_loaders.py
@@ -24,7 +24,7 @@ import contextlib
import mock
-from botocore.exceptions import DataNotFoundError
+from botocore.exceptions import DataNotFoundEr... | [
"tests/unit/test_loaders.py::TestLoader::test_load_service_model_enforces_case"
] | [
"tests/unit/test_loaders.py::TestJSONFileLoader::test_file_does_not_exist_returns_false",
"tests/unit/test_loaders.py::TestJSONFileLoader::test_file_exists_check",
"tests/unit/test_loaders.py::TestJSONFileLoader::test_load_file",
"tests/unit/test_loaders.py::TestJSONFileLoader::test_load_json_file_does_not_ex... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/boto/boto3/issues/171"
],
"in... |
48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6 | 2024-08-24 13:23:59 | docker.io/swerebenchv2/aio-libs-aiohttp:8874-48a5e07 | aio-libs__aiohttp-8874 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/5343.bugfix b/CHANGES/5343.bugfix
new file mode 100644
index 000000000..4e33071ea
--- /dev/null
+++ b/CHANGES/5343.bugfix
@@ -0,0 +1,1 @@
+Fixed StreamResponse.prepared to return True after EOF is sent -- by :user:`arthurdarcet`.
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py
index ... | Update testing utility examples
Fixes #5311. | [Docs] Manual TestClient creation should be async
🐞 **Describe the bug**
In the [Framework agnostic utilities](https://docs.aiohttp.org/en/stable/testing.html?highlight=testing#framework-agnostic-utilities) section of the "Testing" docs, this code snippet indicates how to manually create a `TestClient` :
```python
... | aio-libs/aiohttp | diff --git a/docs/testing.rst b/docs/testing.rst
index 966bc4cad..1d29f3354 100644
--- a/docs/testing.rst
+++ b/docs/testing.rst
@@ -496,14 +496,12 @@ Framework Agnostic Utilities
High level test creation::
- from aiohttp.test_utils import TestClient, TestServer, loop_context
+ from aiohttp.test_utils import... | [
"tests/test_web_response.py::test_prepared_after_eof",
"tests/test_web_response.py::test_drain_before_start"
] | [
"tests/test_web_response.py::test_stream_response_ctor",
"tests/test_web_response.py::test_stream_response_hashable",
"tests/test_web_response.py::test_stream_response_eq",
"tests/test_web_response.py::test_stream_response_is_mutable_mapping",
"tests/test_web_response.py::test_stream_response_delitem",
"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": "B5",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.aiohttp.org/en/stable/testing.html?highligh... |
95ae5eb61ef969749e904c90ab429003238d6212 | 2023-05-23 19:55:35 | docker.io/swerebenchv2/astanin-python-tabulate:268-95ae5eb | astanin__python-tabulate-268 | No new interfaces are introduced. | python | MIT | diff --git a/tabulate/__init__.py b/tabulate/__init__.py
index 11bb865..f95da8e 100644
--- a/tabulate/__init__.py
+++ b/tabulate/__init__.py
@@ -1461,7 +1461,12 @@ def _normalize_tabular_data(tabular_data, headers, showindex="default"):
field_names = [field.name for field in dataclasses.fields(rows[0])]
... | Fix separating line with dataclasses
Closes #267 | SEPARATING_LINE does not work with dataclasses
Using tabulate to print a list of dataclasses when one or more rows is SEPARATING_LINE, produces:
```
File "....\.venv\lib\site-packages\tabulate\__init__.py", line 1451, in <listcomp>
rows = [[getattr(row, f) for f in field_names] for row in rows ]
AttributeEr... | astanin/python-tabulate | diff --git a/test/test_input.py b/test/test_input.py
index a178bd9..d52f10b 100644
--- a/test/test_input.py
+++ b/test/test_input.py
@@ -1,6 +1,6 @@
"""Test support of the various forms of tabular data."""
-from tabulate import tabulate
+from tabulate import tabulate, SEPARATING_LINE
from common import assert_equal... | [
"test/test_input.py::test_py37orlater_list_of_dataclasses_with_separating_line"
] | [
"test/test_input.py::test_iterable_of_iterables",
"test/test_input.py::test_iterable_of_iterables_headers",
"test/test_input.py::test_iterable_of_iterables_firstrow",
"test/test_input.py::test_list_of_lists",
"test/test_input.py::test_list_of_lists_firstrow",
"test/test_input.py::test_list_of_lists_keys",... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
80f7454e2848e70c5323cf36ff490966c1e98603 | 2019-03-19 14:36:13 | docker.io/swerebenchv2/rochacbruno-dynaconf:130-80f7454 | rochacbruno__dynaconf-130 | Function: load(settings, filename, env=None, key=None)
Location: dynaconf/loaders/ini_loader.py, dynaconf/loaders/toml_loader.py (and other format loaders that expose the same signature)
Inputs:
- **settings** – a Dynaconf settings instance to be populated.
- **filename** – path to the configuration file (string or Pat... | python | MIT | diff --git a/Makefile b/Makefile
index 8f5b723..668b212 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ test_examples:
@cd example/validators/with_toml/;pwd;dynaconf validate
@cd example/toml_with_secrets/;pwd;python program.py | grep -c My5up3r53c4et
@cd example/envs;pwd;python app.py
+ @cd example/get_fr... | Fix #129 on settings file, single keys should be case insensitive. | get_fresh breaks configuration
It's possible i'm using this wrong but I suspect this might be bug.
```Dynaconf 1.2.1,```
```
Python 3.7.1 (default, Dec 14 2018, 13:28:58)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
```
Code
```
In [1]: from dynaconf import settings ... | rochacbruno/dynaconf | diff --git a/tests/test_ini_loader.py b/tests/test_ini_loader.py
index 4da0edb..d4e4d2f 100644
--- a/tests/test_ini_loader.py
+++ b/tests/test_ini_loader.py
@@ -111,12 +111,20 @@ def test_load_single_key():
a = "a,b"
[foo]
bar = "blaz"
- zaz = "naz"
+ ZAZ = "naz"
+ lowerkey = 'hello'
+ UPPERK... | [
"tests/test_ini_loader.py::test_load_single_key",
"tests/test_toml_loader.py::test_load_single_key"
] | [
"tests/test_ini_loader.py::test_load_from_ini",
"tests/test_ini_loader.py::test_load_from_multiple_ini",
"tests/test_ini_loader.py::test_no_filename_is_none",
"tests/test_ini_loader.py::test_key_error_on_invalid_env",
"tests/test_ini_loader.py::test_no_key_error_on_invalid_env",
"tests/test_ini_loader.py:... | {
"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.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
4154652165dd475d79de606abd70b6debc4596d4 | 2018-08-09 15:22:12 | docker.io/swerebenchv2/backblaze-b2-command-line-tool:488-4154652 | backblaze__b2_command_line_tool-488 | Method: B2Api.get_bucket_by_name(self, bucket_name)
Location: class B2Api in b2/api.py
Inputs: bucket_name (str) – the name of the bucket to retrieve; the caller must have an application key that permits access to this bucket (RestrictedBucket is raised otherwise).
Outputs: Bucket object – the bucket matching the provi... | python | custom-check-github | diff --git a/b2/api.py b/b2/api.py
index 017f5ba..a1400e1 100644
--- a/b2/api.py
+++ b/b2/api.py
@@ -205,20 +205,27 @@ class B2Api(object):
def get_bucket_by_name(self, bucket_name):
"""
- Returns the bucket_id for the given bucket_name.
+ Returns the Bucket for the given bucket_name.
- ... | Fix #485 | b2.api.B2Api.get_bucket_by_name does not work with bucket-scoped application keys
I am using Duplicity 0.7.17 and b2 1.3.2.
duplicity is executed using
```
duplicity \
--verbosity debug \
/backup \
"b2://$B2_APP_KEY_ID:$B2_APP_KEY@$B2_BUCKET_NAME"
```
Where `$B2_APP_KEY_ID` and `$B2_APP_KEY` a... | Backblaze/B2_Command_Line_Tool | diff --git a/test/test_api.py b/test/test_api.py
index adcdb45..f72c336 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -53,6 +53,16 @@ class TestApi(TestBase):
[b.name for b in self.api.list_buckets(bucket_name=bucket1.name)],
)
+ def test_get_bucket_by_name_with_bucket_restriction(s... | [
"test/test_api.py::TestApi::test_get_bucket_by_name_with_bucket_restriction"
] | [
"test/test_api.py::TestApi::test_list_buckets",
"test/test_api.py::TestApi::test_list_buckets_with_name",
"test/test_api.py::TestApi::test_list_buckets_with_restriction",
"test/test_api.py::TestApi::test_list_buckets_with_restriction_and_no_name",
"test/test_api.py::TestApi::test_list_buckets_with_restricti... | {
"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": "medium",
"external_urls": [
"https://bazaar.launchpad.net/~duplicity-team/duplicity... |
5b6bec62458db536ee6a52f01be3855dfec44e37 | 2025-05-03 16:12:21 | docker.io/swerebenchv2/jlowin-fastmcp:309-5b6bec6 | jlowin__fastmcp-309 | Method: FastMCP.mount(self, prefix: str, server: FastMCP, tool_separator: str | None = None, resource_separator: str | None = None, prompt_separator: str | None = None, as_proxy: bool | None = None)
Location: class FastMCP in src/fastmcp/server/server.py
Inputs:
- **prefix** – the URL/namespace prefix under which... | python | Apache-2.0 | diff --git a/docs/patterns/composition.mdx b/docs/patterns/composition.mdx
index 6d62095..bb1ac9c 100644
--- a/docs/patterns/composition.mdx
+++ b/docs/patterns/composition.mdx
@@ -30,8 +30,6 @@ The choice of importing or mounting depends on your use case and requirements. I
| **Method** | `FastMCP.import_server()` | ... | Support proxy mount
Closes #305 by supporting converting mounted servers to proxies via a new `as_proxy` flag. FastMCP servers that have lifespans are automatically converted to proxies unless the user specifies as_proxy=False.
Incidentally I've noticed in this that the low-level server seems to never close the life... | Mounted Server Lifespans
### Description
It looks like the generics on FastMCP require the mounted servers and the root server to share the same lifespan context type object?
It also looks like mounted server lifespans are never invoked
```
from contextlib import asynccontextmanager
from logging import getLogger
from... | jlowin/fastmcp | diff --git a/tests/server/test_mount.py b/tests/server/test_mount.py
index dedb9e8..1b495cc 100644
--- a/tests/server/test_mount.py
+++ b/tests/server/test_mount.py
@@ -1,4 +1,5 @@
import json
+from contextlib import asynccontextmanager
import pytest
from mcp.server.lowlevel.helper_types import ReadResourceContent... | [
"tests/server/test_mount.py::TestAsProxyKwarg::test_as_proxy_false",
"tests/server/test_mount.py::TestAsProxyKwarg::test_as_proxy_true",
"tests/server/test_mount.py::TestAsProxyKwarg::test_as_proxy_defaults_true_if_lifespan",
"tests/server/test_mount.py::TestAsProxyKwarg::test_as_proxy_ignored_for_proxy_mount... | [
"tests/server/test_mount.py::TestBasicMount::test_mount_simple_server",
"tests/server/test_mount.py::TestBasicMount::test_mount_with_custom_separator",
"tests/server/test_mount.py::TestBasicMount::test_unmount_server",
"tests/server/test_mount.py::TestMultipleServerMount::test_mount_multiple_servers",
"test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0b8581ae98f6a2bfa5e8e6e09c0c10d5f9e35d41 | 2023-09-12 09:26:46 | docker.io/swerebenchv2/getmoto-moto:6807-0b8581a | getmoto__moto-6807 | Method: CustomRegistry.registered(self)
Location: moto/core/responses_custom_registry.py → class CustomRegistry
Inputs: None (property/parameter‑less getter)
Outputs: List[responses.BaseResponse] – a flat list containing every response object that has been added to the registry via `add`; the list is ordered by m... | python | Apache-2.0 | diff --git a/moto/core/models.py b/moto/core/models.py
index a556423fb..5462b0d8d 100644
--- a/moto/core/models.py
+++ b/moto/core/models.py
@@ -56,8 +56,8 @@ class BaseMockAWS(ContextManager["BaseMockAWS"]):
self.backends_for_urls.extend(default_backends)
self.FAKE_KEYS = {
- "AWS_ACCESS... | Core: Mocked ACCESS_KEY values now adhere to AWS guidelines
Fixes #6805
> DynamoDB local version 2.0.0 and greater AWS_ACCESS_KEY_ID can contain only letters (A–Z, a–z) and numbers (0–9).
>
Little odd that DynamoDB local cares about that, but it is the format that AWS uses for their access keys/secrets - so it... | Unable to use Moto and DynamoDB Local 2.0 simultaneously
Somewhat related to https://github.com/getmoto/moto/issues/2058
When using DynamoDB 2.0 or newer: "The updated convention specifies that the AWS_ACCESS_KEY_ID can only contain letters (A–Z, a–z) and numbers (0–9)" (https://repost.aws/articles/ARc4hEkF9CRgOrw8k... | getmoto/moto | diff --git a/tests/test_apigateway/test_apigateway_integration.py b/tests/test_apigateway/test_apigateway_integration.py
index 87a17c631..ae44bf078 100644
--- a/tests/test_apigateway/test_apigateway_integration.py
+++ b/tests/test_apigateway/test_apigateway_integration.py
@@ -15,7 +15,8 @@ def test_http_integration():
... | [
"tests/test_apigateway/test_apigateway_integration.py::test_http_integration",
"tests/test_core/test_environ_patching.py::test_aws_keys_are_patched",
"tests/test_core/test_environ_patching.py::test_aws_keys_can_be_none"
] | [
"tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb",
"tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb_multiple_stages",
"tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb_multiple_resources",
"tests/test_ap... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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/getmoto/moto/issues/2058",
"htt... |
9c0724e0d07ff79a0e807d2cbc28a506063dcd13 | 2023-10-26 18:28:49 | docker.io/swerebenchv2/getmoto-moto:6953-9c0724e | getmoto__moto-6953 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/sns/exceptions.py b/moto/sns/exceptions.py
index b1704e303..807f0b717 100644
--- a/moto/sns/exceptions.py
+++ b/moto/sns/exceptions.py
@@ -31,7 +31,7 @@ class DuplicateSnsEndpointError(SNSException):
code = 400
def __init__(self, message: str):
- super().__init__("DuplicateEndpoint"... | SNS: Improve PlatformApplication error handling
Fixes #2333
- create_platform_application now only returns the existing endpoint of both EndpointAttributes and CustomUserData is the same
- list_endpoints_by_platform_application() now throws an exception if the application does not exist
All modified tests aro... | Error handling for SNS mobile push does not match AWS
Currently, the Moto SNS mock raises an error with code `DuplicateEndpoint` when attempting to create a second platform endpoint using the same token.
This is not actually the behavior on AWS. On AWS, when attempting to do this, when not setting `CustomUserData`, ... | getmoto/moto | diff --git a/tests/test_sns/__init__.py b/tests/test_sns/__init__.py
index 08a1c1568..c41ea932d 100644
--- a/tests/test_sns/__init__.py
+++ b/tests/test_sns/__init__.py
@@ -1,1 +1,48 @@
-# This file is intentionally left blank.
+import boto3
+import botocore
+import os
+from functools import wraps
+from moto import moc... | [
"tests/test_sns/test_application_boto3.py::test_create_duplicate_platform_endpoint",
"tests/test_sns/test_application_boto3.py::test_get_list_endpoints_by_platform_application",
"tests/test_sns/test_application_boto3.py::test_publish_to_disabled_platform_endpoint"
] | [
"tests/test_sns/test_application_boto3.py::test_create_platform_application",
"tests/test_sns/test_application_boto3.py::test_get_platform_application_attributes",
"tests/test_sns/test_application_boto3.py::test_get_missing_platform_application_attributes",
"tests/test_sns/test_application_boto3.py::test_set_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/sns/latest/dg/mobile-platf... |
915cc064c53552f85a955ef5cf0bcce081ec84d9 | 2025-01-31 05:02:30 | docker.io/swerebenchv2/berriai-litellm:8131-915cc06 | berriai__litellm-8131 | Method: AmazonConverseConfig._handle_top_k_value(self, model: str, inference_params: dict) -> dict
Location: litellm.llms.bedrock.chat.converse_transformation.AmazonConverseConfig
Inputs:
- **model** (str): Full Bedrock model identifier (e.g., `"bedrock/anthropic.claude-3-sonnet-20240229-v1:0"`).
- **inference... | python | custom-check-github | diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.py
index 521dd2085..cab4a413d 100644
--- a/litellm/llms/bedrock/chat/converse_transformation.py
+++ b/litellm/llms/bedrock/chat/converse_transformation.py
@@ -332,9 +332,27 @@ class AmazonConverseConfig... | Fix passing top_k parameter for Bedrock Anthropic models
## Title
<!-- e.g. "Implement user authentication feature" -->
Fix passing top_k parameter for Bedrock Anthropic models
## Relevant issues
<!-- e.g. "Fixes #000" -->
Fixes #7782
## Type
<!-- Select the type of Pull Request -->
<!-- Keep only th... | [Bug]: Cannot pass provider-specific parameters to Bedrock Anthropic models
### What happened?
Passing the `top_k` parameter to an Anthropic model in the Bedrock platform throws this error:
```BadRequestError: litellm.BadRequestError: BedrockException - {"message":"The model returned the following errors: Malformed i... | BerriAI/litellm | diff --git a/tests/llm_translation/test_bedrock_completion.py b/tests/llm_translation/test_bedrock_completion.py
index 5f9c01f7b..f9f6bdef5 100644
--- a/tests/llm_translation/test_bedrock_completion.py
+++ b/tests/llm_translation/test_bedrock_completion.py
@@ -2580,3 +2580,72 @@ def test_bedrock_custom_deepseek():
... | [
"tests/llm_translation/test_bedrock_completion.py::test_handle_top_k_value_helper[bedrock/anthropic.claude-3-sonnet-20240229-v1:0-expected_output0]",
"tests/llm_translation/test_bedrock_completion.py::test_handle_top_k_value_helper[bedrock/converse/us.amazon.nova-pro-v1:0-expected_output1]",
"tests/llm_translat... | [
"tests/llm_translation/test_bedrock_completion.py::test_base_aws_llm_get_credentials",
"tests/llm_translation/test_bedrock_completion.py::test_bedrock_base_model_helper",
"tests/llm_translation/test_bedrock_completion.py::test_bedrock_completion_test_2",
"tests/llm_translation/test_bedrock_completion.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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/nova/latest/userguide/usin... |
75776378aaff6eed66ee3c2a6fcc1ac59d693084 | 2023-06-14 19:30:18 | docker.io/swerebenchv2/caikit-caikit:238-7577637 | caikit__caikit-238 | Method: GlobalPredictServicer.predict_model(self, request_name: str, model_id: str, aborter: Optional[CallAborter] = None, **kwargs)
Location: caikit/runtime/servicers/global_predict_servicer.py
Inputs:
- request_name (str): name of the request message type to validate the model's task.
- model_id (str): identifier ... | python | Apache-2.0 | diff --git a/caikit/runtime/servicers/global_predict_servicer.py b/caikit/runtime/servicers/global_predict_servicer.py
index 30dd2004..1eca5493 100644
--- a/caikit/runtime/servicers/global_predict_servicer.py
+++ b/caikit/runtime/servicers/global_predict_servicer.py
@@ -12,13 +12,15 @@
# See the License for the specif... | Split global predict servicer
## Description
Closes #223
This PR splits out the core inferencing logic from the `GlobalPredictServicer`'s `Predict` function so that it can be called directly with the data model objects. This is needed to allow a REST server to reuse the same inferencing logic as the grpc server. | Refactor: Extract protocol logic from global predict servicer
## Is your feature request related to a problem? Please describe.
For REST support, we're building a native rest server that would also like to use the `GlobalPredictServicer` to run model inference, instead of rewriting another inference handler.
But,... | caikit/caikit | diff --git a/tests/runtime/servicers/test_global_predict_servicer_impl.py b/tests/runtime/servicers/test_global_predict_servicer_impl.py
index 7b58a21f..f107107b 100644
--- a/tests/runtime/servicers/test_global_predict_servicer_impl.py
+++ b/tests/runtime/servicers/test_global_predict_servicer_impl.py
@@ -22,11 +22,8 @... | [
"tests/runtime/servicers/test_global_predict_servicer_impl.py::test_global_predict_predict_model_direct"
] | [
"tests/runtime/servicers/test_global_predict_servicer_impl.py::test_calling_predict_should_raise_if_module_raises",
"tests/runtime/servicers/test_global_predict_servicer_impl.py::test_invalid_input_to_a_valid_caikit_core_class_method_raises",
"tests/runtime/servicers/test_global_predict_servicer_impl.py::test_g... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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":... |
7a72f615bfa9bd8e9c436dfb726216dfa07d0839 | 2022-05-27 10:32:01 | docker.io/swerebenchv2/virtuslab-git-machete:534-7a72f61 | virtuslab__git-machete-534 | No new interfaces are introduced. | python | MIT | diff --git a/git_machete/client.py b/git_machete/client.py
index d063583..19ef0c4 100644
--- a/git_machete/client.py
+++ b/git_machete/client.py
@@ -2109,7 +2109,7 @@ class MacheteClient:
description_path = self.__git.get_main_git_subpath('info', 'description')
description: str = utils.slurp_file_or_e... | Issue #506: Update error message when firing GitHub pulls API request without token
closes #506 | Does `/pulls` endpoint for a public GitHub repository really require authentication?
As @mkondratek reported:
I've tried to use `create-pr` with that result:
```sh
mikko@mikko-MS-7C91:~/IdeaProjects/git-machete-intellij-plugin$ git machete github create-pr
Fetching origin...
Creating a PR from hook-executors-i... | VirtusLab/git-machete | diff --git a/tests/test_github.py b/tests/test_github.py
index 90fe555..d8fce10 100644
--- a/tests/test_github.py
+++ b/tests/test_github.py
@@ -454,7 +454,7 @@ class TestGithub:
expected_msg = ("Fetching origin...\n"
"Warn: Base branch for this PR (`feature/api_handling`) is not fou... | [
"tests/test_github.py::TestGithub::test_github_create_pr_missing_base_branch_on_remote"
] | [
"tests/test_github.py::TestGithub::test_github_retarget_pr",
"tests/test_github.py::TestGithub::test_github_anno_prs",
"tests/test_github.py::TestGithub::test_github_create_pr",
"tests/test_github.py::TestGithub::test_github_checkout_prs",
"tests/test_github.py::TestGithub::test_github_checkout_prs_freshly_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://api.github.com/repos/VirtusLab/git-machete-intel... |
5a8066fe94f41a63ad2d6f38d058534ab6b24365 | 2021-03-10 18:38:05 | docker.io/swerebenchv2/rochacbruno-dynaconf:549-5a8066f | rochacbruno__dynaconf-549 | Method: Settings.__init__(self, *, env=None, settings_file=None, validators=None, validate_only=None, validate_exclude=None, **kwargs)
Location: Called in tests via `LazySettings(settings_file=..., validators=..., validate_only=[...], validate_exclude=[...])`
Inputs:
- `settings_file` (str): path to a YAML/TOML/JSON s... | python | MIT | diff --git a/docs/validation.md b/docs/validation.md
index cde7e7d..8f3669a 100644
--- a/docs/validation.md
+++ b/docs/validation.md
@@ -135,9 +135,7 @@ Validator('DATABASE.HOST', must_exist=True) & Validator('DATABASE.CONN', must_ex
## CLI and dynaconf_validators.toml
-> **NEW in 1.0.1**
-
-Starting on version 1.... | Add the ability for selective validation
This change introduces the ability to control which sections of a
settings object are subject to validation.
This is controlled primarily by two mechanisms.
1: When creating a settings object, new arguments `validate_only`
and `validate_exclude` have been added which rece... | [RFC] Allow for validation of only specific nested sections
There is currently no way to specify what section(s) of a settings object are to be validated during a validate call. This can cause issues when validators are added, but the values they are validating are not.
Example: I have two larger sub-sections of a s... | rochacbruno/dynaconf | diff --git a/tests/test_validators.py b/tests/test_validators.py
index 43ffd49..25efc5c 100644
--- a/tests/test_validators.py
+++ b/tests/test_validators.py
@@ -47,6 +47,56 @@ MYSQL_PASSWD = "SuperSecret"
TESTVALUE = "value"
"""
+YAML = """
+server:
+ hostname: "localhost"
+ port: 22
+ users:
+ - "Bru... | [
"tests/test_validators.py::test_validator_init_exclude",
"tests/test_validators.py::test_validator_init_only",
"tests/test_validators.py::test_validator_init_mixed",
"tests/test_validators.py::test_validator_only_post_register",
"tests/test_validators.py::test_validator_exclude_post_register"
] | [
"tests/test_validators.py::test_validators_on_init",
"tests/test_validators.py::test_validators_register",
"tests/test_validators.py::test_dotted_validators",
"tests/test_validators.py::test_validation_error[validator_instance0]",
"tests/test_validators.py::test_validation_error[validator_instance1]",
"te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0039895f5eb2b7d44c7c8e23d3e2af716f12b335 | 2021-06-28 22:47:36 | docker.io/swerebenchv2/astropenguin-xarray-dataclasses:51-0039895 | astropenguin__xarray-dataclasses-51 | Method: asdataarray(inst: DataClassWithFactory[DA] | DataClass, dataarray_factory: Type[Any] = xr.DataArray) -> DA
Location: xarray_dataclasses/dataarray.py
Inputs:
- inst – a dataclass instance (optionally defining `__dataarray_factory__` that returns a subclass of `xr.DataArray`).
- dataarray_factory – optional fall... | python | MIT | diff --git a/package-lock.json b/package-lock.json
index 16ba2d0..4e06741 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,13 +5,13 @@
"packages": {
"": {
"devDependencies": {
- "pyright": "^1.1.126"
+ "pyright": "~1.1"
}
},
"node_modules/pyright": {
- "ver... | Add factory fields for custom DataArray/Dataset creation
This PR closes #50. | Add factory fields for custom DataArray/Dataset creation
Add support of special fields (`__dataarray_factory__`, `__dataset_factory__`) for custom DataArray or Dataset creation.
```python
class CustomDataset(xr.Dataset):
__slots__ = ()
@dataclass
class Custom(DataArrayMixin):
data: Data[tuple["x", "... | astropenguin/xarray-dataclasses | diff --git a/tests/test_dataarray.py b/tests/test_dataarray.py
index 577086c..d386f07 100644
--- a/tests/test_dataarray.py
+++ b/tests/test_dataarray.py
@@ -25,8 +25,14 @@ Y = Literal[DIMS[1]]
# dataclasses
+class Custom(xr.DataArray):
+ __slots__ = ()
+
+
@dataclass
class Image(DataArrayMixin):
+ __dataar... | [
"tests/test_dataarray.py::test_type",
"tests/test_dataset.py::test_type"
] | [
"tests/test_dataarray.py::test_data",
"tests/test_dataarray.py::test_dtype",
"tests/test_dataarray.py::test_dims",
"tests/test_dataarray.py::test_attrs",
"tests/test_dataarray.py::test_name",
"tests/test_dataset.py::test_data_vars",
"tests/test_dataset.py::test_dims",
"tests/test_dataset.py::test_attr... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
33983345c7eee06dd04e945ceac6112ae9cc5279 | 2024-02-16 19:01:44 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3061-3398334 | aws-cloudformation__cfn-lint-3061 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/template/template.py b/src/cfnlint/template/template.py
index e06ab639b..3b1b23f35 100644
--- a/src/cfnlint/template/template.py
+++ b/src/cfnlint/template/template.py
@@ -7,7 +7,7 @@ from __future__ import annotations
import logging
from copy import deepcopy
-from typing import List, Un... | Add getatt support for registry schemas
*Issue #, if available:*
fix #2622
*Description of changes:*
- Add getatt support for registry schemas
This will bring minimal support until v1. Anything of "array" will be switched to "List" of "String"s. So if you have a List of an object it will not translate correc... | CloudFormation Registry resource support - GetAtt rules broken
### CloudFormation Lint Version
cfn-lint 0.73.1
### What operating system are you using?
Mac
### Describe the bug
Currently the `-s` switch brings in the schemas for custom resource extensions. This allow some cfn-lint rules to work but not all.
As... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/registry/custom/resource.json b/test/fixtures/registry/custom/resource.json
new file mode 100644
index 000000000..4a0f12627
--- /dev/null
+++ b/test/fixtures/registry/custom/resource.json
@@ -0,0 +1,138 @@
+{
+ "typeName": "Initech::TPS::Report",
+ "description": "An example resource sc... | [
"test/unit/module/test_template.py::TestTemplate::test_schemas"
] | [
"test/unit/module/test_template.py::TestTemplate::test_conditions_return_list_success",
"test/unit/module/test_template.py::TestTemplate::test_conditions_return_object_success",
"test/unit/module/test_template.py::TestTemplate::test_conditions_return_string_success",
"test/unit/module/test_template.py::TestTe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://d1uauaxba7bl26.cloudfront.net/latest/gzip/Clou... |
4e721116279dcb725fcbfc1111003071c7546d8c | 2018-08-09 09:52:03 | docker.io/swerebenchv2/kayak-pypika:148-4e72111 | kayak__pypika-148 | Method: Query.insert(self, *values)
Location: class `pypika.Query` (production file `pypika/queries.py`)
Inputs: one or more positional arguments representing column values for a row; each argument can be a scalar, a Python `list` (treated as an SQL array) or a `tuple`/`list` of scalars representing multiple rows. ... | python | Apache-2.0 | diff --git a/pypika/terms.py b/pypika/terms.py
index 193203f..a0d1fc4 100644
--- a/pypika/terms.py
+++ b/pypika/terms.py
@@ -64,7 +64,9 @@ class Term(object):
return val
if val is None:
return NullValue()
- if isinstance(val, (list, tuple)):
+ if isinstance(val, list):
+... | Add support for array types
Fixes #143
Changed the SQL output for python array types to be arrays with square brackets
Previous to this change, python list type arguments were converted to a tuple type. Now, there is support for both tuples and arrays, and the appropriate data type must be used. | How to insert Array value into field?
For example
```sql
CREATE TABLE public.catalog (
id SERIAL PRIMARY KEY
,name VARCHAR(100) NOT NULL
,price decimal(6,2) NOT NULL
,retail_price decimal(6,2) NOT NULL
,code VARCHAR(100) NOT NULL
,property_values integer[]
,im... | kayak/pypika | diff --git a/pypika/tests/test_inserts.py b/pypika/tests/test_inserts.py
index 615ed92..b863c3c 100644
--- a/pypika/tests/test_inserts.py
+++ b/pypika/tests/test_inserts.py
@@ -36,31 +36,38 @@ class InsertIntoTests(unittest.TestCase):
self.assertEqual('INSERT INTO "abc" VALUES (1),(2)', str(query))
- de... | [
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_multiple_rows_with_array_value",
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_single_row_with_array_value"
] | [
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns",
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows",
"pypika/tests/test_inserts.py::InsertIntoTests::test_insert_all_columns_multi_rows_chained",
"pypika/tests/test_inserts.py::InsertIntoTests::test_inser... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
e6ad647673171bbf387d37af0e822df00fb7e1aa | 2023-12-13 02:27:58 | docker.io/swerebenchv2/agnostiqhq-covalent:1886-e6ad647 | agnostiqhq__covalent-1886 | Method: covalent._workflow.electron.Electron._auto_dict_node(keys, values)
Location: covalent/_workflow/electron.py
Inputs:
- **keys** (list): Ordered list of dictionary keys (may be any hashable type, not limited to strings).
- **values** (list): Ordered list of values corresponding to each key; length must match *... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 17344263..76c2a972 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Sublattice electron function strings are now parsed correctly
+- The keys of dictionary inputs... | Do not require dictionary keys to be `str`
The collector electron now assembles the dictionary from two lists -- one list of keys, one list of corresponding values.
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Add a note to /CHANGELOG.md summarizing the changes.
⚠️ If yo... | A `TypeError` is raised if a dictionary with a non-string key is passed as the input to an `@electron`
### Environment
- **Covalent version**: 0.234.0-rc.0
- **Python version**: 3.11
- **Operating system**: Ubuntu
### What is happening?
When passing a dictionary whose key is not a string as a keyword argum... | AgnostiqHQ/covalent | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 58189ba9..1349a02c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -217,9 +217,10 @@ jobs:
if: env.BUILD_AND_RUN_ALL
id: covalent_start
run: |
+ export COVALENT_ENABLE_TASK_PACK... | [
"tests/covalent_dispatcher_tests/_core/dispatcher_db_integration_test.py::test_get_abstract_task_inputs",
"tests/covalent_dispatcher_tests/_core/execution_test.py::test_get_task_inputs",
"tests/covalent_tests/workflow/electron_test.py::test_autogen_dict_electrons"
] | [
"tests/covalent_dispatcher_tests/_core/dispatcher_db_integration_test.py::test_handle_completed_node",
"tests/covalent_dispatcher_tests/_core/dispatcher_db_integration_test.py::test_get_initial_tasks_and_deps",
"tests/covalent_dispatcher_tests/_dal/importers/result_import_test.py::test_import_result",
"tests/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
c89beada69a0bb71f3abaead59c05a8695fc86d7 | 2023-04-22 16:11:45 | docker.io/swerebenchv2/pycqa-docformatter:179-c89bead | pycqa__docformatter-179 | Method: Formatter.__init__(self, args, stderr, stdin, stdout)
Location: src/docformatter/formatter.py
Inputs:
- args: configuration object (e.g., parsed CLI arguments) used to control formatting behavior.
- stderr: a file‑like object for error messages.
- stdin: a file‑like object for reading input when no file pa... | python | MIT | diff --git a/src/docformatter/strings.py b/src/docformatter/strings.py
index f72777c..0e73298 100644
--- a/src/docformatter/strings.py
+++ b/src/docformatter/strings.py
@@ -164,8 +164,9 @@ def split_summary_and_description(contents):
for index in range(1, len(split_lines)):
# Empty line separation would i... | fix: adding blank line in summary with symbol
Fixes the issue with docformatter adding a blank line in a summary that is wrapped and the second line begins with a symbol.
Closes #79. | Doc formatter reformats correct docstring
with `docformatter 1.4`, command `docformatter --wrap-summaries 100 --wrap-descriptions 100`
the following docstring
```
"""hello yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet -v
"""
```
gets transformed to
```
"""hello yeeeeee... | PyCQA/docformatter | diff --git a/tests/test_format_docstring.py b/tests/test_format_docstring.py
index e4cdfe4..92dd79c 100644
--- a/tests/test_format_docstring.py
+++ b/tests/test_format_docstring.py
@@ -332,9 +332,11 @@ Hello.
@pytest.mark.unit
@pytest.mark.parametrize("args", [[""]])
- def test_format_docstring_leave_bla... | [
"tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_no_blank_in_summary_with_symbol[args0]",
"tests/test_string_functions.py::TestSplitters::test_split_summary_and_description_with_list_on_other_line"
] | [
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring[args0]",
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_summary_that_ends_in_quote[args0]",
"tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_bad_indentation[args0]",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
dd954e3cf2fbb119530ca2e6885b784bad9bace9 | 2025-04-09 07:05:27 | docker.io/swerebenchv2/stanfordnlp-dspy:8053-dd954e3 | stanfordnlp__dspy-8053 | Method: GroundedProposer.propose_instructions_for_program(self, trainset, program, demo_candidates, trial_logs, N, T) → list[str]
Location: dspy.propose.grounded_proposer.GroundedProposer
Inputs:
- **trainset** (list): The full training set for the program (may be empty).
- **program** (dspy.predict.Predict): The progr... | python | MIT | diff --git a/dspy/propose/grounded_proposer.py b/dspy/propose/grounded_proposer.py
index 3f291430..e3d0d016 100644
--- a/dspy/propose/grounded_proposer.py
+++ b/dspy/propose/grounded_proposer.py
@@ -4,8 +4,7 @@ import dspy
from dspy.propose.dataset_summary_generator import create_dataset_summary
from dspy.propose.uti... | Handle empty demo case correctly in GroundedProposer
Since https://github.com/stanfordnlp/dspy/pull/1964/files#diff-f3e5aef968c9221a83083549f056a0f64f66dbaba64d22a3e7758615b1d20eadL318, GroundedProposer has a bug that it cannot handle empty demos correctly.
Resolve #8048 | [Bug] Not generating demo candidates leads to TypeError: 'NoneType' object is not subscriptable at MIPROv2
### What happened?
A potential error in generating few-shot examples should be caught before propagating invalid data.
Setting None to demo_examples in dspy.MIPROv2 makes more diificult to understand the cause o... | stanfordnlp/dspy | diff --git a/tests/propose/test_grounded_proposer.py b/tests/propose/test_grounded_proposer.py
new file mode 100644
index 00000000..ddf04163
--- /dev/null
+++ b/tests/propose/test_grounded_proposer.py
@@ -0,0 +1,53 @@
+import pytest
+import dspy
+from dspy.propose.grounded_proposer import GroundedProposer
+from dspy.pr... | [
"tests/propose/test_grounded_proposer.py::test_propose_instructions_for_program[None]",
"tests/propose/test_grounded_proposer.py::test_propose_instruction_for_predictor[None]"
] | [
"tests/propose/test_grounded_proposer.py::test_propose_instructions_for_program[demo_candidates1]",
"tests/propose/test_grounded_proposer.py::test_propose_instruction_for_predictor[demo_candidates1]"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/stanfordnlp/dspy/blob/1082d4d09f7b4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.