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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03d229e18264f7749619291ab4fd7a2578392698 | 2022-02-17 23:37:29 | docker.io/swerebenchv2/xgcm-xgcm:435-03d229e | xgcm__xgcm-435 | No new interfaces are introduced. | python | MIT | diff --git a/xgcm/grid_ufunc.py b/xgcm/grid_ufunc.py
index c76f30e..fe0bba6 100644
--- a/xgcm/grid_ufunc.py
+++ b/xgcm/grid_ufunc.py
@@ -1,6 +1,16 @@
import re
import string
-from typing import TYPE_CHECKING, Any, Callable, List, Mapping, Sequence, Tuple, Union
+from typing import (
+ TYPE_CHECKING,
+ Any,
+ ... | Fix bug where padding changed chunking
- [x] Closes #430
- [x] Tests added
- [x] Passes `pre-commit run --all-files`
| [BUG] Problems with custom grid ufunc and dask options
<!-- Please include a self-contained copy-pastable example that generates the issue if possible.
Please be concise with code posted. See guidelines below on how to provide a good bug report:
- Craft Minimal Bug Reports: http://matthewrocklin.com/blog/work/201... | xgcm/xgcm | diff --git a/xgcm/test/test_grid_ufunc.py b/xgcm/test/test_grid_ufunc.py
index 079d029..8ddad10 100644
--- a/xgcm/test/test_grid_ufunc.py
+++ b/xgcm/test/test_grid_ufunc.py
@@ -237,6 +237,63 @@ class TestGridUFunc:
result = diff_center_to_left(grid, da, axis=[("depth",)])
assert_equal(result, expected... | [
"xgcm/test/test_grid_ufunc.py::TestGridUFunc::test_1d_unchanging_size_but_padded_dask_parallelized"
] | [
"xgcm/test/test_grid_ufunc.py::TestParseGridUfuncSignature::test_parse_valid_signatures[()->()-exp_in_ax_names0-exp_out_ax_names0-exp_in_ax_pos0-exp_out_ax_pos0]",
"xgcm/test/test_grid_ufunc.py::TestParseGridUfuncSignature::test_parse_valid_signatures[(X:center)->()-exp_in_ax_names1-exp_out_ax_names1-exp_in_ax_po... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"http://matthewrocklin.com/blog/work/2018/02/28/minimal... |
9387f8b78fa09f440d3235ad129c81e399171227 | 2020-03-17 16:32:49 | docker.io/swerebenchv2/salesforce-policy-sentry:143-9387f8b | salesforce__policy_sentry-143 | No new interfaces are introduced. | python | MIT | diff --git a/.pylintrc b/.pylintrc
index 4810d9cb..3ed3013b 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -156,7 +156,8 @@ disable=print-statement,
expression-not-assigned,
invalid-name,
logging-too-many-args,
- bad-continuation
+ bad-continuation,
+ logging-format-interpolat... | Fixes #142 - ARN matching mechanism and also adds better logging for the write-policy command | Write-policy issues when multiple ARN types listed by RDS actions table
Template file:
```yml
mode: crud
read:
- 'arn:aws:rds:us-east-1:123456789012:db:mydatabase'
```
Output:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "RdsReadDb",
"Effect": "Al... | salesforce/policy_sentry | diff --git a/docs/contributing/testing.rst b/docs/contributing/testing.rst
index 8e25b2f4..676869c1 100644
--- a/docs/contributing/testing.rst
+++ b/docs/contributing/testing.rst
@@ -97,6 +97,12 @@ We use `Nose <https://nose.readthedocs.io/en/latest/>`_ for unit testing. All te
nosetests -v
+ # This will ou... | [
"test/command/test_write_policy.py::RdsWritingTestCase::test_rds_policy_read_only",
"test/command/test_write_policy.py::RdsWritingTestCase::test_rds_policy_read_write_list",
"test/util/test_arns.py::ArnsTestCase::test_does_arn_match_rds"
] | [
"test/command/test_write_policy.py::WritePolicyPreventWildcardEscalation::test_wildcard_when_not_necessary",
"test/command/test_write_policy.py::WildcardOnlyServiceLevelTestCase::test_add_wildcard_only_actions_matching_services_and_access_level",
"test/util/test_arns.py::ArnsTestCase::test_does_arn_match_case_1... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
b6a5f567cf4c9ef2d4d669700cb67f6147f56df3 | 2024-01-15 19:16:28 | docker.io/swerebenchv2/irrdnet-irrd:894-b6a5f56 | irrdnet__irrd-894 | No new interfaces are introduced. | python | custom-check-github | diff --git a/irrd/rpsl/rpsl_objects.py b/irrd/rpsl/rpsl_objects.py
index 56020bb..3229bf3 100644
--- a/irrd/rpsl/rpsl_objects.py
+++ b/irrd/rpsl/rpsl_objects.py
@@ -468,7 +468,7 @@ class RPSLMntner(RPSLObject):
)
def verify_auth(self, passwords: List[str], keycert_obj_pk: Optional[str] = None) -> Op... | Fix #891 - Fix legacy password hashes and handling of disabled hashes | Traceback in all requests from maintainers
**Describe the bug**
Every update to IRR fails, except ones with override password
**To Reproduce**
Upgrade from 4.2.5 to 4.3.1 and then to 4.4.2
Send an object with maintainer password
Traceback (most recent call last):
File "/home/irrd/.local/pipx/venvs/irrd/lib/... | irrdnet/irrd | diff --git a/irrd/updates/tests/test_validators.py b/irrd/updates/tests/test_validators.py
index 017d3a4..0626e18 100644
--- a/irrd/updates/tests/test_validators.py
+++ b/irrd/updates/tests/test_validators.py
@@ -180,6 +180,44 @@ class TestAuthValidator:
["rpsl_pks", ({"TEST-MNT"},), {}],
]
+ ... | [
"irrd/updates/tests/test_validators.py::TestAuthValidator::test_new_person_with_legacy_hash",
"irrd/updates/tests/test_validators.py::TestAuthValidator::test_new_person_with_authless_mntner"
] | [
"irrd/updates/tests/test_validators.py::test_validator_result",
"irrd/updates/tests/test_validators.py::TestAuthValidator::test_override_valid[$1$J6KycItM$MbPaBU6iFSGFV299Rk7Di0]",
"irrd/updates/tests/test_validators.py::TestAuthValidator::test_override_valid[$2b$12$FU9brDeaS5o93mBbidgeruRL8JzwQi7yK8JBXUGgBLoB5... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
0bc31a4cbc7c44adcbd687b5933a273623e3868a | 2023-11-06 19:48:13 | docker.io/swerebenchv2/systemd-mkosi:2044-0bc31a4 | systemd__mkosi-2044 | Method: MkosiArgs.__init__(self, *, directory: Optional[Path] = None, debug: bool = False, debug_shell: bool = False, debug_workspace: bool = False, pager: bool = True, genkey_valid_days: str = "", genkey_common_name: str = "", …)
Location: mkosi/config.py
Inputs: Named boolean parameters `debug`, `debug_shell` and... | python | null | diff --git a/NEWS.md b/NEWS.md
index bcffe804..49a0e0f0 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -41,6 +41,27 @@
- Source directories are now made ephemeral when running scripts. This
means any changes made to source directories while running scripts
will be undone after the scripts have finished executing.
+- Work... | Add --debug-workspace
Fixes #2036 | Add an option to keep workspace directory when an error occurs
I am currently running into issues with GPG signing, and am unable to debug them because the workspace directory is cleared automatically after exit. The addition of a debug option to assist would be helpful. | systemd/mkosi | diff --git a/tests/test_json.py b/tests/test_json.py
index d0c1663f..7a80b539 100644
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -39,6 +39,7 @@ def test_args(path: Optional[Path]) -> None:
],
"Debug": false,
"DebugShell": false,
+ "DebugWorkspace": false,
... | [
"tests/test_json.py::test_args[None]",
"tests/test_json.py::test_args[/baz/qux]"
] | [
"tests/test_json.py::test_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": "B2",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
32b5fd9f50a7226e649f9641eb40573fa6ce6bdd | 2025-06-13 10:18:30 | docker.io/swerebenchv2/pennylaneai-pennylane:7671-32b5fd9 | pennylaneai__pennylane-7671 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 949c355bc..6ec541d8e 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -742,6 +742,11 @@ Here's a list of deprecations made this release. For a more detailed breakdown o
<h3>Bug fixes 🐛</h3>
+* A bug i... | Fix `Prod.simplify()`
**Context:**
Simplifying `qml.ops.op_math.Prod` instances via their `simplify` method sometimes swallows global phases, see #7670 .
**Description of the Change:**
A mere indentation change, leading to correct consideration of global phases.
**Benefits:**
bug fix.
**Possible Drawbacks:*... | [BUG] `qml.simplify` does not handle products with global phases correctly
### Expected behavior
`qml.simplify` returns outputs equivalent to its inputs.
### Actual behavior
The example operator below is "simplified" into an in-equivalent operator by swallowing a global phase.
### Additional information
Note that... | PennyLaneAI/pennylane | diff --git a/tests/ops/op_math/test_prod.py b/tests/ops/op_math/test_prod.py
index 3eb5d3b90..98bec399d 100644
--- a/tests/ops/op_math/test_prod.py
+++ b/tests/ops/op_math/test_prod.py
@@ -1244,6 +1244,33 @@ class TestSimplify:
simplified_op = prod_op.simplify()
qml.assert_equal(simplified_op, final_o... | [
"tests/ops/op_math/test_prod.py::TestSimplify::test_grouping_with_equal_paulis_single_wire",
"tests/ops/op_math/test_prod.py::TestSimplify::test_grouping_with_equal_paulis_two_wires"
] | [
"tests/ops/op_math/test_prod.py::test_basic_validity",
"tests/ops/op_math/test_prod.py::TestInitialization::test_init_prod_op[foo]",
"tests/ops/op_math/test_prod.py::TestInitialization::test_init_prod_op[bar]",
"tests/ops/op_math/test_prod.py::TestInitialization::test_hash",
"tests/ops/op_math/test_prod.py:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3cb1d3b5d62693b278f1043982c1fb8c5258a7dd | 2020-05-02 20:57:32 | docker.io/swerebenchv2/openlawlibrary-pygls:117-3cb1d3b | openlawlibrary__pygls-117 | Function: position_from_utf16(lines: List[str], position: Position) -> Position
Location: pygls.workspace
Inputs:
- **lines** – list of document lines (each a `str`).
- **position** – a `Position` where `character` is a zero‑based offset expressed in UTF‑16 code units.
Outputs:
- A new `Position` with the same line... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ce9804..bae5965 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,12 +7,17 @@ and this project adheres to [Semantic Versioning][semver].
## [Unreleased]
+### Added
+
+- Functions to convert positions from and to utf-16 code units ([#117])
+
### Changed
- Exit se... | Fix utf-16 to utf-32 character offsets.
Closes #116.
Python uses utf-32 for strings, but the language-server-protocol uses utf-16 to encode strings. Hence higher level unicode code points are represented by two utf-16 code units. Thus the `position.character` needs to be adjusted in case of the presence of such unic... | Make sure you handle UTF-16 character offsets
One of the major downsides of pyls is that it craps out at UTF-16 offsets.
I just want to make sure that this library doesn't fail in the same way. Just to be clear, the LSP spec says:
> A position inside a document (see Position definition below) is expressed as a ze... | openlawlibrary/pygls | diff --git a/tests/conftest.py b/tests/conftest.py
index 1ef4cc9..c3669a9 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -32,6 +32,7 @@ CALL_TIMEOUT = 2
DOC = """document
for
testing
+with "😋" unicode.
"""
DOC_URI = uris.from_fs_path(__file__)
diff --git a/tests/test_document.py b/tests/test_document... | [
"tests/test_document.py::test_document_empty_edit",
"tests/test_document.py::test_document_end_of_file_edit",
"tests/test_document.py::test_document_full_edit",
"tests/test_document.py::test_document_line_edit",
"tests/test_document.py::test_document_lines",
"tests/test_document.py::test_document_multilin... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
bc333844e10e389f9818e615bcc28c5c69daee94 | 2016-07-08 16:35:13 | docker.io/swerebenchv2/axelrod-python-axelrod:653-bc33384 | axelrod-python__axelrod-653 | Function: seed(seed)
Location: axelrod (exposed via ``axelrod.seed``; implemented in ``axelrod/random_.py``)
Inputs:
- **seed** (int): the seed value to initialise both Python's ``random`` module and NumPy's random generator. Must be a non‑negative integer; typical range 0‑2³²‑1.
Outputs:
- **None** (side‑effects onl... | python | custom-check-github | diff --git a/axelrod/__init__.py b/axelrod/__init__.py
index 7cb2ebda..482df852 100644
--- a/axelrod/__init__.py
+++ b/axelrod/__init__.py
@@ -2,7 +2,7 @@ from __future__ import absolute_import
# The order of imports matters!
from .actions import Actions, flip_action
-from .random_ import random_choice
+from .rando... | 651 - Tests for random seeding and a random seeding function
Closes #651
Firstly this adds a test to `integration/test_matches`. Simply checks that if two stochastic matches are played with the same seed they give the same result.
Note that both the numpy and stdlib seed need to be set.
Have also added a fun... | Add tests for reproducibility of stochastic results
I'd like to add a property based test similar to https://github.com/Nikoleta-v3/Axelrod/blob/635/axelrod/tests/integration/test_matches.py but that checks that when setting a seed we get the same results for stochastic strategies (those tests there only check for 'wel... | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/integration/test_matches.py b/axelrod/tests/integration/test_matches.py
index b6241145..d0018132 100644
--- a/axelrod/tests/integration/test_matches.py
+++ b/axelrod/tests/integration/test_matches.py
@@ -11,6 +11,10 @@ C, D = axelrod.Actions.C, axelrod.Actions.D
deterministic_strategies = [s... | [
"axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats",
"axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats_stochastic",
"axelrod/tests/integration/test_tournament.py::TestTournament::test_full_tournament",
"axelrod/tests/integration/test_tournamen... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Nikoleta-v3/Axelrod/blob/635/axelrod/... |
43c0236e1282af8cb36c8008e015a48135139f2b | 2019-05-06 16:44:12 | docker.io/swerebenchv2/vmware-tern:255-43c0236 | vmware__tern-255 | Method: Package.download_url(self)
Location: tern/classes/package.py, class Package
Inputs: None (property getter)
Outputs: str – the current download URL (empty string '' if not set)
Description: Returns the package's download location URL; used in tests to read the property value.
Method: Package.download_url(self, ... | python | BSD-2-Clause | diff --git a/tern/classes/package.py b/tern/classes/package.py
index 3e86e82..735202e 100644
--- a/tern/classes/package.py
+++ b/tern/classes/package.py
@@ -17,6 +17,7 @@ class Package:
pkg_license: package license that is declared
copyright: copyright text
src_url: package source url
+ ... | classes: Add download_url property to Package class
Resolves #244
Download URL is a mandatory property for SPDX documents. Adding it
to the Package class
Modifying tests to include this property
Signed-off-by: Nisha K <nishak@vmware.com> | Add download_url property to Package class
**Description**
SPDX documents require a mandatory `Package Download Location` as described in PR #182.
Add `download_url` as a property to the `Package` class.
Add a test for the property.
**Implementation**
In `tern/classes/package.py`:
```
def __init__(self...
... | vmware/tern | diff --git a/tests/test_class_package.py b/tests/test_class_package.py
index 847c6b4..3cababd 100644
--- a/tests/test_class_package.py
+++ b/tests/test_class_package.py
@@ -19,6 +19,7 @@ class TestClassPackage(unittest.TestCase):
self.p1.pkg_license = 'Apache 2.0'
self.p1.copyright = 'All Rights Reser... | [
"tests/test_class_package.py::TestClassPackage::testFill",
"tests/test_class_package.py::TestClassPackage::testInstance"
] | [
"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::testToDict",
"tests/test_class_package.py::TestClassPackage::testToDictTem... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
05cc3a538d9c26707bbadd6bde5fe81a4a1f6018 | 2023-08-21 14:09:13 | docker.io/swerebenchv2/mirumee-ariadne-codegen:196-05cc3a5 | mirumee__ariadne-codegen-196 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 56ac0bc..6603027 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- Changed generated client and models to use pydantic v2.
- Changed custom scalars implementation to utilize pydantic's `BeforeValidator` and `PlainSerializer`. Added `scalars_module_name` op... | Handle field names reserved by pydantic
This pr handles input and result field names which were colliding with names reserved by pydantic's `BaseModel` methods and attributes. The same as python keywords, we add `_` as a suffix. Full list of reserved names:
```python
In [2]: [name for name in dir(BaseModel) if not na... | NameError: Field name "schema" shadows a BaseModel attribute; use a different field name with "alias='schema'".
Schema that use a field called "schema" fail the pydantic post generation check. See https://pythonfix.com/error/pydantic-field-name-schema-shadows-basemodel-attribute/ and https://stackoverflow.com/questions... | mirumee/ariadne-codegen | diff --git a/tests/client_generators/input_types_generator/test_names.py b/tests/client_generators/input_types_generator/test_names.py
index 8f9dcc5..a5d1ea9 100644
--- a/tests/client_generators/input_types_generator/test_names.py
+++ b/tests/client_generators/input_types_generator/test_names.py
@@ -160,6 +160,7 @@ def... | [
"tests/client_generators/input_types_generator/test_names.py::test_generate_returns_module_with_valid_field_names",
"tests/client_generators/result_types_generator/test_names.py::test_generate_returns_module_with_valid_field_names"
] | [
"tests/client_generators/input_types_generator/test_names.py::test_generate_returns_module_with_fields_names_converted_to_snake_case[\\n",
"tests/client_generators/result_types_generator/test_names.py::test_generate_returns_module_with_query_names_converted_to_snake_case",
"tests/client_generators/result_types_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://pythonfix.com/error/pydantic-field-name-schema... |
49f12426c5a11c3ccea5c7dd534c2d565fcf747a | 2025-05-03 12:29:46 | docker.io/swerebenchv2/getmoto-moto:8870-49f1242 | getmoto__moto-8870 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/core/exceptions.py b/moto/core/exceptions.py
index 94f9b8189..11d886f33 100644
--- a/moto/core/exceptions.py
+++ b/moto/core/exceptions.py
@@ -4,6 +4,8 @@ from typing import Any, Dict, List, Optional, Tuple
from jinja2 import DictLoader, Environment
from werkzeug.exceptions import HTTPException
+f... | S3: Add Content-Type=application/xml headers where appropriate
Fixes #8560 | S3 list bucket and list all buckets response should have content-type application/xml instead of text/html
Currently a lot of responses incorrectly have content-type text/html. Instead they should have application/xml when appropriate. | getmoto/moto | diff --git a/tests/test_s3/test_s3_response_headers.py b/tests/test_s3/test_s3_response_headers.py
new file mode 100644
index 000000000..e5588c4af
--- /dev/null
+++ b/tests/test_s3/test_s3_response_headers.py
@@ -0,0 +1,32 @@
+import boto3
+import pytest
+
+from . import s3_aws_verified
+from .test_s3 import DEFAULT_RE... | [
"tests/test_s3/test_s3_response_headers.py::test_header_content_type"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
031f88d75f394ffbdee404c3b24fece9f6911a98 | 2022-10-21 15:03:35 | docker.io/swerebenchv2/jelmer-dulwich:1073-031f88d | jelmer__dulwich-1073 | No new interfaces are introduced. | python | custom-check-github | diff --git a/NEWS b/NEWS
index 85c2a5bf..ae34d80a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
0.20.47 UNRELEASED
+ * Fix Repo.reset_index.
+ Previously, it instead took the union with the given tree.
+ (Christian Sattler, #1072)
+
* Add -b argument to ``dulwich clone``.
(Jelmer Vernooij)
diff --git a/dul... | Fix handling of removed files in Repo.reset_index
This fixes #1072. | Repo.reset_index is broken
Suppose I have a repository with a staged file:
```bash
mkdir test-repo
cd test-repo
git init
git commit --allow-empty --allow-empty-message -m ''
touch file
git add file
```
Then I reset the index using dulwich:
```python
import dulwich.repo
r = dulwich.repo.Repo('test-repo')
... | jelmer/dulwich | diff --git a/dulwich/tests/test_repository.py b/dulwich/tests/test_repository.py
index 40456bf7..ad48c89d 100644
--- a/dulwich/tests/test_repository.py
+++ b/dulwich/tests/test_repository.py
@@ -1404,6 +1404,7 @@ class BuildRepoRootTests(TestCase):
porcelain.add(self._repo, paths=[full_path])
self._re... | [
"dulwich/tests/test_repository.py::BuildRepoRootTests::test_reset_index"
] | [
"dulwich/tests/test_repository.py::CreateRepositoryTests::test_create_disk_bare",
"dulwich/tests/test_repository.py::CreateRepositoryTests::test_create_disk_bare_mkdir",
"dulwich/tests/test_repository.py::CreateRepositoryTests::test_create_disk_non_bare",
"dulwich/tests/test_repository.py::CreateRepositoryTes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
e9fb43b96093bf4205881c2370b33828a6e2a8c5 | 2023-08-01 13:18:58 | docker.io/swerebenchv2/pennylaneai-pennylane:4421-e9fb43b | pennylaneai__pennylane-4421 | Method: QNSPSAOptimizer.step_and_cost(self, cost, params)
Location: pennylane/optimize/qnspsa.py
Inputs:
- **cost**: Callable (typically a QNode) that returns a scalar cost when evaluated with given parameters.
- **params**: array‑like of parameter values compatible with the cost function; shape may vary per template.... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index bb4a9d4b8..2a9141cd3 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -196,6 +196,9 @@
`Tensor.sparse_matrix()`, it is recommended to use the `wire_order` keyword argument over `wires`.
[(#4424)](htt... | QNSPSA bugfix
Fixes #4420
The operator method `Operator.adjoint` is for defining a custom decomposition for the adjoint of an operator, and is only defined for cases where the adjoint is another fundamental gate. `qml.adjoint` is the more public, always works version of `Operator.adjoint`. | [BUG] `qml.QNSPSAOptimizer` includes `op.adjoint` instead of `qml.adjoint(op)` in source
### Expected behavior
Circuit that includes `qml.RandomLayers` and uses `qml.QNSPSAOptimizer` executes normally.
### Actual behavior
Execution raises `AdjointUndefinedError`. Other optimizers execute fine.
### Additiona... | PennyLaneAI/pennylane | diff --git a/tests/optimize/test_qnspsa.py b/tests/optimize/test_qnspsa.py
index e72c87e4a..132ba2ae4 100644
--- a/tests/optimize/test_qnspsa.py
+++ b/tests/optimize/test_qnspsa.py
@@ -418,3 +418,20 @@ class TestQNSPSAOptimizer:
# blocking should stop params from updating from this minimum
new_params,... | [
"tests/optimize/test_qnspsa.py::test_template_no_adjoint"
] | [
"tests/optimize/test_qnspsa.py::TestQNSPSAOptimizer::test_gradient_from_single_input[0.001-1]",
"tests/optimize/test_qnspsa.py::TestQNSPSAOptimizer::test_gradient_from_single_input[0.001-151]",
"tests/optimize/test_qnspsa.py::TestQNSPSAOptimizer::test_gradient_from_single_input[0.001-1231]",
"tests/optimize/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": [
"https://discuss.pennylane.ai/t/basisstate-raises-adjoint... |
1fcfb44220965f230e73f89ee9a974b346e67351 | 2020-10-22 22:28:29 | docker.io/swerebenchv2/stac-utils-pystac:207-1fcfb44 | stac-utils__pystac-207 | Method: Collection.__init__(self, id, description, extent=None, properties=None, href=None, **kwargs)
Location: pystac/collection.py
Inputs:
- **id** (str): Unique identifier for the collection.
- **description** (str): Human‑readable description of the collection.
- **extent** (Extent, optional): Spatial and temporal... | python | custom-check-github | diff --git a/pystac/catalog.py b/pystac/catalog.py
index 6fe29b6b..8a30b0bc 100644
--- a/pystac/catalog.py
+++ b/pystac/catalog.py
@@ -87,14 +87,14 @@ class Catalog(STACObject):
else:
self.extra_fields = extra_fields
+ self._resolved_objects = ResolvedObjectCache()
+ self._resolved... | Ensure resolve object cache is set before set_self_href is called
This commit modifies the order of the logic in the Catalog.__init__ method to ensure the resolved object cache is established before a set_self_href call is made, which occurs if a non-None href is supplied. The logic of the Collection's set_self_href me... | Collection construction can cause unintended exception
Creating a collection like this:
```python
collection = Collection(
collection_id,
"Example for script interaction with PySTAC",
{"spatial": [[0, 0, 1, 1]], "temporal": [[datetime.now().isoformat(), None]]},
None,
[],
[],
[],
... | stac-utils/pystac | diff --git a/tests/test_collection.py b/tests/test_collection.py
index 87beeec1..835ef3d4 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -177,6 +177,20 @@ class CollectionTest(unittest.TestCase):
[[item2.common_metadata.start_datetime, base_extent.temporal.intervals[0][1]]],
... | [
"tests/test_collection.py::CollectionTest::test_supplying_href_in_init_does_not_fail"
] | [
"tests/test_collection.py::TestCases::test_case_1",
"tests/test_collection.py::TestCases::test_case_2",
"tests/test_collection.py::TestCases::test_case_3",
"tests/test_collection.py::TestCases::test_case_4",
"tests/test_collection.py::TestCases::test_case_5",
"tests/test_collection.py::TestCases::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": [... |
9638cb2772f005e454d5dbd1b6c65a8f00b4ff6f | 2022-11-17 17:12:09 | docker.io/swerebenchv2/ucfopen-canvasapi:571-9638cb2 | ucfopen__canvasapi-571 | Method: RubricAssociation.create_rubric_assessment(self, **kwargs)
Location: canvasapi.rubric.RubricAssociation.create_rubric_assessment
Inputs: keyword arguments defining a RubricAssessment payload (e.g., score, artifact_type, artifact_id, artifact_attempt, assessment_type, assessor_id, provisional, etc.). All param... | python | MIT | diff --git a/canvasapi/rubric.py b/canvasapi/rubric.py
index 5ee003f..e566cf4 100644
--- a/canvasapi/rubric.py
+++ b/canvasapi/rubric.py
@@ -26,10 +26,84 @@ class Rubric(CanvasObject):
return Rubric(self._requester, response.json())
+class RubricAssessment(CanvasObject):
+ def __str__(self):
+ re... | Issue 538 Rubric endpoint coverage
# Proposed Changes
Add endpoints for managing `RubricAssessments`.
Fixes #538.
| Updating Scores to a Specific Rubric
**What resource needs additional coverage?**
Rubrics
**What endpoints need to be covered?**
Requested here is a method that would allow one to upload scores on a specific rubric for a specific assignment. Ideally this would include the ability to add scores for multiple differe... | ucfopen/canvasapi | diff --git a/tests/fixtures/rubric.json b/tests/fixtures/rubric.json
index df4e058..0eea19c 100644
--- a/tests/fixtures/rubric.json
+++ b/tests/fixtures/rubric.json
@@ -1,4 +1,64 @@
{
+ "create_rubric_assessment": {
+ "method": "POST",
+ "endpoint": "courses/1/rubric_associations/4/rubric_assessments",
+ "data": {
... | [
"tests/test_rubric.py::TestRubric::test__str__",
"tests/test_rubric.py::TestRubric::test_delete",
"tests/test_rubric.py::TestGradingStandard::test__str__",
"tests/test_rubric.py::TestRubricAssessment::test__str__",
"tests/test_rubric.py::TestRubricAssessment::test_delete",
"tests/test_rubric.py::TestRubri... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.84,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ucfopen/canvasapi/discussions/537#d... |
91f371fbc561b67dfec14284b9f70ae5fc88e70d | 2022-03-28 15:02:14 | docker.io/swerebenchv2/martinthoma-flake8-simplify:124-91f371f | martinthoma__flake8-simplify-124 | No new interfaces are introduced. | python | MIT | diff --git a/flake8_simplify/rules/ast_for.py b/flake8_simplify/rules/ast_for.py
index fcbac36..8d4d984 100644
--- a/flake8_simplify/rules/ast_for.py
+++ b/flake8_simplify/rules/ast_for.py
@@ -97,7 +97,7 @@ def get_sim110_sim111(node: ast.For) -> List[Tuple[int, int, str]]:
return errors
if not hasattr(no... | SIM111: Fix false-positive
Closes #62 | [Adjust Rule] SIM111 - Detect if another statement comes after the loop
## Desired change
* **Rule(s)**: SIM111
* **Adjustment**: Detect if another statement comes after the loop
## Explanation
The below code is flagged with SIM111, but if I would would use the suggested code, the `call_method` call would be ... | MartinThoma/flake8-simplify | diff --git a/tests/test_100_rules.py b/tests/test_100_rules.py
index 2164e31..fba08fe 100644
--- a/tests/test_100_rules.py
+++ b/tests/test_100_rules.py
@@ -498,3 +498,15 @@ def test_sim120():
assert results == {
"1:0 SIM120 Use 'class FooBar:' instead of 'class FooBar(object):'"
}
+
+
+def test_sim1... | [
"tests/test_100_rules.py::test_sim111_false_positive"
] | [
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
14e4cdbeeaf6a27ff8a678a2f0a23d32bf8f1b64 | 2020-09-09 14:54:01 | docker.io/swerebenchv2/yt-project-unyt:172-14e4cdb | yt-project__unyt-172 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/unyt/array.py b/unyt/array.py
index 281d31b..012ccaf 100644
--- a/unyt/array.py
+++ b/unyt/array.py
@@ -843,8 +843,8 @@ class unyt_array(np.ndarray):
RuntimeWarning,
stacklevel=2,
)
- new_dtype = np.dtype("f" + str(dsize))
- ... | Fix unyt_array.to() to support complex-valued arrays
Closes #171 | unyt_array.in_units() casts complex numbers to real losing imaginary part
* unyt version: 2.7.2
* Python version: 3.8.5
* Operating System: Ubuntu 18.04
### Description
Attempted to convert unit of a complex valued array.
### What I Did
```
>>> from unyt import Ω, F, Hz
>>> freq = [1j, 1j*10]*Hz
>>> arr ... | yt-project/unyt | diff --git a/unyt/tests/test_unyt_array.py b/unyt/tests/test_unyt_array.py
index 4f69fb7..d5898ee 100644
--- a/unyt/tests/test_unyt_array.py
+++ b/unyt/tests/test_unyt_array.py
@@ -2423,3 +2423,37 @@ def test_kip():
def test_ksi():
assert_allclose_units(unyt_quantity(1, "lbf/inch**2"), unyt_quantity(0.001, "ksi... | [
"unyt/tests/test_unyt_array.py::test_complexvalued"
] | [
"unyt/tests/test_unyt_array.py::test_multiplication",
"unyt/tests/test_unyt_array.py::test_division",
"unyt/tests/test_unyt_array.py::test_comparisons",
"unyt/tests/test_unyt_array.py::test_unyt_array_unyt_quantity_ops",
"unyt/tests/test_unyt_array.py::test_selecting",
"unyt/tests/test_unyt_array.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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
28bbaa5a17ed1ac39be63b1ecd9bd7e187a7db2e | 2025-01-01 20:51:57 | docker.io/swerebenchv2/wntrblm-nox:906-28bbaa5 | wntrblm__nox-906 | Function: _PLATFORM
Location: nox.virtualenv module
Inputs: *none*
Outputs: <str> – the value of ``sys.platform`` (e.g., ``"win32"`` on Windows, ``"linux"`` on Linux). It is used throughout the virtual‑env implementation for OS checks and is explicitly patched in the test suite to fake different platforms.
Description... | python | Apache-2.0 | diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml
index 4db5a7c..2119850 100644
--- a/.github/workflows/action.yml
+++ b/.github/workflows/action.yml
@@ -27,7 +27,7 @@ jobs:
- macos-14
steps:
- uses: actions/checkout@v4
- - uses: astral-sh/setup-uv@v4
+ - uses: as... | fix: correctly separate command-line arguments in `tox-to-nox`
Fixes #905 | `tox-to-nox` should correctly separate the command-line arguments
### Current Behavior
I try to convert config from `tox.ini` to `nox` (noxfile.py)
`tox.ini` - https://github.com/reagento/dishka/blob/develop/tox.ini
### Expected Behavior
`tox-to-nox` tool should correctly separate the command-line argumen... | wntrblm/nox | diff --git a/tests/test_command.py b/tests/test_command.py
index dd1af5f..3811587 100644
--- a/tests/test_command.py
+++ b/tests/test_command.py
@@ -36,12 +36,12 @@ import nox.popen
PYTHON = sys.executable
skip_on_windows_primary_console_session = pytest.mark.skipif(
- platform.system() == "Windows" and "SECONDA... | [
"tests/test_virtualenv.py::test_condaenv_bin_windows",
"tests/test_virtualenv.py::test_bin_windows",
"tests/test_virtualenv.py::test_bin_windows_mingw",
"tests/test_virtualenv.py::test__resolved_interpreter_numerical_non_windows[3-python3]",
"tests/test_virtualenv.py::test__resolved_interpreter_numerical_no... | [
"tests/test_command.py::test_run_defaults",
"tests/test_command.py::test_run_silent",
"tests/test_command.py::test_run_not_in_path",
"tests/test_command.py::test_run_verbosity",
"tests/test_command.py::test_run_verbosity_failed_command",
"tests/test_command.py::test_run_non_str",
"tests/test_command.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/reagento/dishka/blob/develop/tox.in... |
4cd0ed208af85dfb8a4a731f3e7c60ea730f57d9 | 2023-07-08 11:36:41 | docker.io/swerebenchv2/brazilian-utils-brutils-python:124-4cd0ed2 | brazilian-utils__brutils-python-124 | Function: generate()
Location: brutils/cep.py
Inputs: None
Outputs: str – an 8‑character string containing only digits (0‑9), representing a syntactically valid CEP.
Description: Produces a random CEP by generating eight random digits. The result satisfies the format required by `is_valid` and can be used wherever a va... | python | MIT | diff --git a/README.md b/README.md
index f1c26c6..807b7e8 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,8 @@ False
- [remove_symbols_cnpj](#remove_symbols_cnpj)
- [generate_cnpj](#generate_cnpj)
- [CEP](#cep)
- - [is_valid_cep](#is_valid_cep)
+ - [is_valid_cep](#is_valid_cep)
+ - [generate_cep](#gener... | Feature: `generate_cep`
Nova função adicionada:
*gera um cep válido aleatório;
* documentação atualizada;
closes #122 | Gerar CEPs aleatórios e válidos
Implementar um utilitário que retorna um CEP aleatório válido | brazilian-utils/brutils-python | diff --git a/tests/test_cep.py b/tests/test_cep.py
index b3d18e6..e023061 100644
--- a/tests/test_cep.py
+++ b/tests/test_cep.py
@@ -11,6 +11,7 @@ path.insert(
)
from brutils.cep import (
is_valid,
+ generate,
)
from unittest import TestCase, main
@@ -29,3 +30,8 @@ class CEP(TestCase):
# When CEP... | [
"tests/test_cep.py::CEP::test_generate",
"tests/test_cep.py::CEP::test_is_valid"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
17af9c2c084b6f37fdf5f32a0ccc88d9aeee4134 | 2024-05-29 17:31:10 | docker.io/swerebenchv2/openmdao-openmdao:3255-17af9c2 | openmdao__openmdao-3255 | Function: assert_no_warning(category, msg=None, contains=False)
Location: openmdao.utils.assert_utils.assert_no_warning
Inputs:
- **category** (class): The warning class that should not be raised.
- **msg** (str or None, optional): Expected warning message text. If `None`, only the warning class is checked.
- **contain... | python | custom-check-github | diff --git a/openmdao/core/driver.py b/openmdao/core/driver.py
index f038ede05..3ee30196e 100644
--- a/openmdao/core/driver.py
+++ b/openmdao/core/driver.py
@@ -1097,7 +1097,8 @@ class Driver(object):
cons[name] = data
else:
objs[name] = data
- response_size += ... | fix for incorrect warning about response size vs. dv size
### Related Issues
- Resolves #3252
### Backwards incompatibilities
None
### New Dependencies
None
| Wrong calculation of number of nonlinear responses
### Description
Hi,
The `reponse_size` variable, computed in openmdao/core/problem.py:1047
```python
response_size, desvar_size = driver._update_voi_meta(self.model)
```
counts the number of objectives, nonlinear constraints and linear constraints. This can c... | OpenMDAO/OpenMDAO | diff --git a/openmdao/drivers/tests/test_scipy_optimizer.py b/openmdao/drivers/tests/test_scipy_optimizer.py
index f69c7d83d..f104729a6 100644
--- a/openmdao/drivers/tests/test_scipy_optimizer.py
+++ b/openmdao/drivers/tests/test_scipy_optimizer.py
@@ -19,11 +19,11 @@ from openmdao.test_suite.components.sellar import S... | [
"openmdao/drivers/tests/test_scipy_optimizer.py::TestScipyOptimizeDriver::test_resp_size_w_linear_cons"
] | [
"openmdao/drivers/tests/test_scipy_optimizer.py::TestScipyOptimizeDriver::test_basinhopping",
"openmdao/drivers/tests/test_scipy_optimizer.py::TestScipyOptimizeDriver::test_basinhopping_bounded",
"openmdao/drivers/tests/test_scipy_optimizer.py::TestScipyOptimizeDriver::test_boolean_driver_return_deprecation",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e093a00f61fbda25c17d24658522f2c7a7e2dc53 | 2024-02-08 00:15:28 | docker.io/swerebenchv2/openmdao-openmdao:3117-e093a00 | openmdao__openmdao-3117 | Method: GeometryAndAero2.__init__(self, n: int, rho: float, vinf: float, declare_partials: bool = True)
Location: openmdao/core/tests/test_semitotals.py – class GeometryAndAero2 definition (initialize and setup methods)
Inputs:
- **n** – size of the vector, required integer.
- **rho** – density, required float.... | python | custom-check-github | diff --git a/openmdao/core/component.py b/openmdao/core/component.py
index bf56bbd27..8f34070dc 100644
--- a/openmdao/core/component.py
+++ b/openmdao/core/component.py
@@ -386,7 +386,7 @@ class Component(System):
def _get_missing_partials(self, missing):
"""
- Return a list of (of, wrt) tuples f... | Skip any relevance/singular_jac checks when `approx_totals` is used
### Summary
When a group in OpenMDAO uses approx_totals, the user is not required to explicitly declare partials in their systems.
This renders the relevance_graph in OpenMDAO useless, because it doesn't capture this dependency information.
Checks... | Error for constraints not dependent on design vars does not work well for `approx_totals` models
### Description
For Issue #2980, [this change](https://github.com/OpenMDAO/OpenMDAO/pull/2997/files#diff-0f5666af4457f169f61dab7eef161117cefc6c8424bca49eb51b06f4c5dad9c7) was made in PR #2997 . However, for models that re... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_semitotals.py b/openmdao/core/tests/test_semitotals.py
index a4508b63f..c75f46f45 100644
--- a/openmdao/core/tests/test_semitotals.py
+++ b/openmdao/core/tests/test_semitotals.py
@@ -199,6 +199,7 @@ class FakeGeomComp(om.ExplicitComponent):
def initialize(self):
sel... | [
"openmdao/core/tests/test_semitotals.py::TestSemiTotalsNumCalls::test_check_relevance_approx_totals"
] | [
"openmdao/core/tests/test_semitotals.py::TestSemiTotals::test_multi_conn_inputs_manual_connect",
"openmdao/core/tests/test_semitotals.py::TestSemiTotals::test_multi_conn_inputs_promoted",
"openmdao/core/tests/test_semitotals.py::TestSemiTotals::test_semi_totals_cs",
"openmdao/core/tests/test_semitotals.py::Te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/OpenMDAO/OpenMDAO/pull/2997/files#d... |
6d0e5477a282ebc5599e03a600e1ad8a3c1eb213 | 2017-11-02 10:32:21 | docker.io/swerebenchv2/yelp-bravado-core:212-6d0e547 | yelp__bravado-core-212 | No new interfaces are introduced. | python | custom-check-github | diff --git a/bravado_core/spec.py b/bravado_core/spec.py
index 38abc50..6b4fde6 100644
--- a/bravado_core/spec.py
+++ b/bravado_core/spec.py
@@ -570,6 +570,13 @@ def post_process_spec(swagger_spec, on_container_callbacks):
descend(fragment[index], path + [str(index)], visited_refs)
descend(swagg... | Ensure proper polymorphic objects handling in case of fully dereferenced specs
Fixes #210
The issue reported is caused by two concurrent factors:
1. in case of fully dereferenced specs polymorphic checks are performed on specs that have references (but ``deref`` will not resolve them) -> ensure that Spec is built ... | internally_dereference_refs generates wrong result when discriminators are used in spec
internally_dereference_refs appears to not properly deserialize responses when discriminators are used in the spec and when use_models is enabled. In particular, if the model contains a type and a subtype none of the attributes of t... | Yelp/bravado-core | diff --git a/test-data/2.0/polymorphic_specs/swagger.json b/test-data/2.0/polymorphic_specs/swagger.json
index 1e36743..48f181c 100644
--- a/test-data/2.0/polymorphic_specs/swagger.json
+++ b/test-data/2.0/polymorphic_specs/swagger.json
@@ -13,7 +13,13 @@
"operationId": "get_pets",
"responses": {
... | [
"tests/model/model_test.py::test_ensure_polymorphic_objects_are_correctly_build_in_case_of_fully_dereferenced_specs[False-True-True]"
] | [
"tests/model/model_test.py::test_model_properties_iteration",
"tests/model/model_test.py::test_model_properties_iteration_additionalProperties",
"tests/model/model_test.py::test_model_properties_iteration_allOf",
"tests/model/model_test.py::test_model_delete_property",
"tests/model/model_test.py::test_model... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://gist.github.com/gstarnberger/4dd7d76b94d7afec8... |
38021aea7ae183ae67897ae3aeebc45df39fd499 | 2024-05-06 23:36:53 | docker.io/swerebenchv2/pennersr-django-allauth:3785-38021ae | pennersr__django-allauth-3785 | Function: expose_session_token(request)
Location: allauth/headless/internal/sessionkit.py
Inputs:
- request: Django HttpRequest object whose session may have been modified or cleared.
Outputs:
- Returns a new session token string if the session was modified **and** the session contains data; otherwise returns None. T... | python | MIT | diff --git a/ChangeLog.rst b/ChangeLog.rst
index bde662ea..32ba2dde 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -12,6 +12,10 @@
- An official API for single-page and mobile application support is now
available, via the new ``allauth.headless`` app.
+- Added support for a honeypot field on the signup form. R... | fix(headless): Do not create an empty session on logout
# Submitting Pull Requests
## General
- [x] Make sure you use [semantic commit messages](https://seesparkbox.com/foundry/semantic_commit_messages).
Examples: `"fix(google): Fixed foobar bug"`, `"feat(accounts): Added foobar feature"`.
- [x] All Py... | Headless `SessionView` for `APP` client creates an unnecessary session
In an `APP` context, when the client invokes DELETE on `SessionView`, a new empty and useless session is created in the session store and an associated session token is present in the response. Because this new session is empty, it can't be used to ... | pennersr/django-allauth | diff --git a/allauth/account/tests/test_login.py b/allauth/account/tests/test_login.py
index 977edef4..8c7c3966 100644
--- a/allauth/account/tests/test_login.py
+++ b/allauth/account/tests/test_login.py
@@ -274,7 +274,7 @@ class LoginTests(TestCase):
user=user, email="john@example.org", primary=True, verif... | [
"allauth/account/tests/test_login_by_code.py::test_login_by_code_unknown_user",
"allauth/account/tests/test_signup.py::test_does_not_create_user_when_honeypot_filled_out",
"allauth/headless/account/tests/test_session.py::test_logout_no_token",
"allauth/socialaccount/tests/test_connect.py::test_disconnect[Fals... | [
"allauth/account/tests/test_login.py::LoginTests::test_account_authenticated_login_redirects_is_false",
"allauth/account/tests/test_login.py::LoginTests::test_ajax_password_change",
"allauth/account/tests/test_login.py::LoginTests::test_login_failed_attempts_exceeded",
"allauth/account/tests/test_login.py::Lo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
20cb6c89ddd0d81590c0926f15d73141d2ec035d | 2024-06-11 20:23:41 | docker.io/swerebenchv2/spikeinterface-spikeinterface:3017-20cb6c8 | spikeinterface__spikeinterface-3017 | Function: _make_bins(sorting, window_ms, bin_ms)
Location: spikeinterface/postprocessing/correlograms.py
Inputs:
- **sorting**: a SpikeInterface `Sorting` object containing spike times and sampling frequency.
- **window_ms** (float): total width of the correlation window in milliseconds (full span, symmetric around zer... | python | MIT | diff --git a/src/spikeinterface/postprocessing/__init__.py b/src/spikeinterface/postprocessing/__init__.py
index ae071a55e..68047a1ad 100644
--- a/src/spikeinterface/postprocessing/__init__.py
+++ b/src/spikeinterface/postprocessing/__init__.py
@@ -21,11 +21,7 @@ from .spike_amplitudes import compute_spike_amplitudes, ... | Optimize numba cross-correlation and extend `correlograms.py` docstrings and tests
This PR (closes #2990):
1) optimizes the numba cross-correlation implementation, thanks to @DradeAW for advice on how to best optimise it.
2) extends docstrings in correlogram.py and test_correlogram.py
3) Makes a fix to the numpy i... | Numpy and Numba do not give exactly the same output in unit test environment
There was a test in `test_correlogram.py` that indicates the output of numpy and numba are slightly different when building correlograms.
```
def _test_correlograms(sorting, window_ms, bin_ms, methods):
for method in methods:
... | SpikeInterface/spikeinterface | diff --git a/src/spikeinterface/postprocessing/tests/test_correlograms.py b/src/spikeinterface/postprocessing/tests/test_correlograms.py
index eef4af10f..66d84c956 100644
--- a/src/spikeinterface/postprocessing/tests/test_correlograms.py
+++ b/src/spikeinterface/postprocessing/tests/test_correlograms.py
@@ -7,12 +7,18 ... | [
"src/spikeinterface/postprocessing/tests/test_correlograms.py::TestComputeCorrelograms::test_extension[params0]",
"src/spikeinterface/postprocessing/tests/test_correlograms.py::TestComputeCorrelograms::test_extension[params1]",
"src/spikeinterface/postprocessing/tests/test_correlograms.py::TestComputeCorrelogra... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
8f8ca4846347a0fd6e1884cbfa59cb364d9c6fbd | 2024-03-03 11:51:39 | docker.io/swerebenchv2/fsspec-universal-pathlib:203-8f8ca48 | fsspec__universal_pathlib-203 | No new interfaces are introduced. | python | MIT | diff --git a/upath/core.py b/upath/core.py
index bea2eba..ec0a575 100644
--- a/upath/core.py
+++ b/upath/core.py
@@ -516,6 +516,11 @@ class UPath(PathlibPathShim, Path):
def _parts(self, value):
self.__parts = value
+ @property
+ def _cparts(self):
+ # required for pathlib.Path.__eq__ compa... | Fix __eq__ _cparts missing
Close #202 | AttributeError: _cparts
When upgrading to the new version of `universal-pathlib` I'm finding it common in my use case for tools to compare `UPath` instances to `pathlib.Path` instances and raise an `AttributeError`:
```python
import pathlib
from upath import UPath
github_path = UPath("github://fsspec:universa... | fsspec/universal_pathlib | diff --git a/upath/tests/test_core.py b/upath/tests/test_core.py
index d9a42d6..71a53ae 100644
--- a/upath/tests/test_core.py
+++ b/upath/tests/test_core.py
@@ -248,6 +248,13 @@ def test_copy_path_append():
assert str(path / "folder2" / "folder3") == str(copy_path)
+def test_compare_to_pathlib_path_ne():
+ ... | [
"upath/tests/test_core.py::test_compare_to_pathlib_path_ne"
] | [
"upath/tests/test_core.py::test_posix_path",
"upath/tests/test_core.py::test_UPath_untested_protocol_warning",
"upath/tests/test_core.py::test_UPath_file_protocol_no_warning",
"upath/tests/test_core.py::TestUpath::test_stat",
"upath/tests/test_core.py::TestUpath::test_stat_dir_st_mode",
"upath/tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
d21e44354d0c4a84c90ebce70444a87ff04a060c | 2025-01-08 13:08:31 | docker.io/swerebenchv2/aristanetworks-anta:1000-d21e443 | aristanetworks__anta-1000 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/anta/cli/utils.py b/anta/cli/utils.py
index e740f8c5..508424dd 100644
--- a/anta/cli/utils.py
+++ b/anta/cli/utils.py
@@ -17,6 +17,7 @@ from yaml import YAMLError
from anta.catalog import AntaCatalog
from anta.inventory import AntaInventory
from anta.inventory.exceptions import InventoryIncorrectSchemaE... | feat(anta.cli): Better error message when invalid inventory or catalogs are parsed
# Description
log exceptions in CLI
Fixes #986
# Checklist:
<!-- Delete not relevant items !-->
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have run ... | Silent exits when providing invalid inventory or catalog files
When providing an invalid inventory or catalog file in ANTA CLI, the program exits silently without any error messages or exceptions.
This can be reproduced with:
1. An invalid inventory file:
```yaml
anta_inventory:
- host: 172.20.20.101
na... | aristanetworks/anta | diff --git a/tests/data/invalid_inventory.yml b/tests/data/invalid_inventory.yml
new file mode 100644
index 00000000..5199a15f
--- /dev/null
+++ b/tests/data/invalid_inventory.yml
@@ -0,0 +1,5 @@
+---
+anta_inventory:
+ - host: 172.20.20.101
+ name: DC1-SPINE1
+ tags: ["SPINE", "DC1"]
diff --git a/tests/units/cl... | [
"tests/units/cli/nrfu/test__init__.py::test_invalid_inventory",
"tests/units/cli/nrfu/test__init__.py::test_invalid_catalog"
] | [
"tests/units/cli/nrfu/test__init__.py::test_anta_nrfu_help",
"tests/units/cli/nrfu/test__init__.py::test_anta_nrfu_wrong_subcommand",
"tests/units/cli/nrfu/test__init__.py::test_anta_nrfu",
"tests/units/cli/nrfu/test__init__.py::test_anta_nrfu_dry_run",
"tests/units/cli/nrfu/test__init__.py::test_anta_passw... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/aristanetworks/anta/blob/v1.2.0/ant... |
9782e80c58fb4e403cc48d64a2369f9748a7e5e1 | 2024-09-24 16:33:44 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3714-9782e80 | aws-cloudformation__cfn-lint-3714 | Method: Template.__init__(self, template_path: str, template_body: dict)
Location: src/cfnlint/template.py
Inputs:
- **template_path** – a string used for identification of the template (can be empty).
- **template_body** – a dictionary representing the parsed CloudFormation template (as produced by `decode_str... | python | MIT-0 | diff --git a/src/cfnlint/conditions/_equals.py b/src/cfnlint/conditions/_equals.py
index 06872c422..401e48f17 100644
--- a/src/cfnlint/conditions/_equals.py
+++ b/src/cfnlint/conditions/_equals.py
@@ -10,7 +10,7 @@ import logging
from typing import Any, Mapping, Tuple
from sympy import Symbol
-from sympy.logic.bool... | Add equal vars for Rules to cnf building
*Issue #, if available:*
fix #3710
*Description of changes:*
- Add equal vars for Rules to cnf building
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| [Bug] Rules support `Condition`, which is not a rule-specific intrinsic function
### CloudFormation Lint Version
1.15.0
### What operating system are you using?
Mac `pre-commit`
### Background
Note that I described similar behavior in #3630, which #3634 and #3703 attempted to address. Unfortunately it ap... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/conditions/test_rules.py b/test/unit/module/conditions/test_rules.py
index f9871bc44..49f09be65 100644
--- a/test/unit/module/conditions/test_rules.py
+++ b/test/unit/module/conditions/test_rules.py
@@ -23,14 +23,14 @@ class TestConditionsWithRules(TestCase):
Assertions:
... | [
"test/unit/module/conditions/test_rules.py::TestConditionsWithRules::test_conditions_with_rules_and_parameters"
] | [
"test/unit/module/conditions/test_rules.py::TestConditionsWithRules::test_conditions_with_multiple_rules",
"test/unit/module/conditions/test_rules.py::TestConditionsWithRules::test_conditions_with_rules",
"test/unit/module/conditions/test_rules.py::TestConditionsWithRules::test_conditions_with_rules_implies",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/AWSCloudFormation/latest/U... |
d03216e6ce5407a7f28489aa4d4b23a9c4345fac | 2024-04-18 07:47:52 | docker.io/swerebenchv2/pennylaneai-pennylane:5538-d03216e | pennylaneai__pennylane-5538 | Function: _equal_hilbert_schmidt(op1: qml.HilbertSchmidt, op2: qml.HilbertSchmidt, check_interface: bool = True, check_trainability: bool = True, rtol: float = 1e-5, atol: float = 1e-9) -> bool
Location: Defined in pennylane/ops/functions/equal.py as a registered overload of qml.equal for HilbertSchmidt objects.
Inputs... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 6291af1df..8681fe6af 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -390,6 +390,9 @@
<h3>Bug fixes 🐛</h3>
+* (In)equality of `qml.HilbertSchmidt` instances is now reported correctly by `qml.equal`.
... | [bugfix] Make `qml.equal` work with `qml.HilbertSchmidt`
**Context:**
`qml.HilbertSchmidt` has `QuantumScript` instances as hyperparameters, which are not compared correctly by the default `Operator` dispatch of `qml.equal`.
**Description of the Change:**
This PR adds a custom dispatch branch for `qml.HilbertSchmi... | [BUG] `qml.equal` does not work with `qml.HilbertSchmidt`
### Expected behavior
Equal ops are detected to be equal
### Actual behavior
Equal ops are reported to be different
### Additional information
The culprit is `v_tape` in the hyperparameters.
### Source code
```shell
u_tape = qml.tape.QuantumScript([qml.Ha... | PennyLaneAI/pennylane | diff --git a/tests/ops/functions/test_equal.py b/tests/ops/functions/test_equal.py
index e0b89c530..1812f3db7 100644
--- a/tests/ops/functions/test_equal.py
+++ b/tests/ops/functions/test_equal.py
@@ -2033,6 +2033,8 @@ class TestQuantumScriptComparisons:
class TestBasisRotation:
+ """Test that qml.equal works w... | [
"tests/ops/functions/test_equal.py::TestHilbertSchmidt::test_different_tolerances_comparison[op0-other_op0]",
"tests/ops/functions/test_equal.py::TestHilbertSchmidt::test_different_tolerances_comparison[op1-other_op1]",
"tests/ops/functions/test_equal.py::TestHilbertSchmidt::test_non_equal_data[op0-other_op0]",... | [
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops0]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops1]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_diff_op[ops2]",
"tests/ops/functions/test_equal.py::TestEqual::test_equal_simple_di... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
04af085f6d21d85cecaeafc406f8c08cb12502e7 | 2024-04-27 11:49:14 | docker.io/swerebenchv2/celery-celery:8984-04af085 | celery__celery-8984 | Method: DjangoTask.delay_on_commit(self, *args, **kwargs) -> None
Location: celery/contrib/django/task.py
Inputs: arbitrary positional and keyword arguments that will be passed to the task’s original ``delay`` method when the transaction commits.
Outputs: ``None`` – the method registers a callback with ``transaction.on... | python | custom-check-github | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2e6ce34bb..b0312854b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,7 +30,7 @@ repos:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.9.0
+ rev: v1.10.0
hooks:
- id: myp... | Clarify return values of ..._on_commit methods
*Note*: Before submitting this pull request, please review our [contributing
guidelines](https://docs.celeryq.dev/en/main/contributing.html).
## Description
Clarify return values for `delay_on_commit` and `apply_async_on_commit` in the code and in the documentation.... | New Django tash with transaction atomic, not return the task_id
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verif... | celery/celery | diff --git a/requirements/test.txt b/requirements/test.txt
index 87a3357af..9c69caa39 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -1,4 +1,4 @@
-pytest==8.1.1
+pytest==8.2.0
pytest-celery[all]>=1.0.0
pytest-rerunfailures==14.0
pytest-subtests==0.12.1
diff --git a/t/unit/contrib/django/test_task.... | [
"t/unit/contrib/django/test_task.py::test_DjangoTask::test_delay_on_commit",
"t/unit/contrib/django/test_task.py::test_DjangoTask::test_apply_async_on_commit"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
ed7e75d8fe474e11e1d6692cc81a33b41c3cb87e | 2024-05-29 19:11:41 | docker.io/swerebenchv2/openmdao-aviary:298-ed7e75d | openmdao__aviary-298 | Function: parse_inputs(vehicle_deck, aircraft_values, meta_data=_MetaData)
Location: aviary.utils.process_input_decks
Inputs:
- **vehicle_deck** (str or pathlib.Path): Path to a CSV‑style input deck containing variable definitions.
- **aircraft_values** (AviaryValues): A container of Aviary option values that will be p... | python | custom-check-github | diff --git a/aviary/utils/process_input_decks.py b/aviary/utils/process_input_decks.py
index 672da5be..cb795311 100644
--- a/aviary/utils/process_input_decks.py
+++ b/aviary/utils/process_input_decks.py
@@ -139,7 +139,13 @@ def parse_inputs(vehicle_deck, aircraft_values: AviaryValues(), meta_data=_MetaD
... | added a warning if a variable is not in meta_data nor in guess_names
### Summary
This is to respond to issue #56. If a user variable in csv file is not in meta_data nor in guess_names, then print a warning message. This variable is ignored.
### Related Issues
- Resolves #56
### Backwards incompatibilities
... | There is no checking on hierarchy variables read in from a csv file.
### Description
If I typo one of the aircraft:* or mission:* hierarchy names, there is no warning or error that I have made a mistake.
Note: the aviary reader is going to see this as a non-hierarchy variable, since you can set any top-level variab... | OpenMDAO/Aviary | diff --git a/aviary/utils/test/test_csv_data_file.py b/aviary/utils/test/test_csv_data_file.py
index 1847660b..043a1cb3 100644
--- a/aviary/utils/test/test_csv_data_file.py
+++ b/aviary/utils/test/test_csv_data_file.py
@@ -1,12 +1,16 @@
+import os
import unittest
import warnings
-from openmdao.utils.assert_utils im... | [
"aviary/utils/test/test_csv_data_file.py::TestAviaryCSV::test_parse_input"
] | [
"aviary/utils/test/test_csv_data_file.py::TestAviaryCSV::test_aliases_csv",
"aviary/utils/test/test_csv_data_file.py::TestAviaryCSV::test_read_data_file",
"aviary/utils/test/test_csv_data_file.py::TestAviaryCSV::test_read_metadata_csv",
"aviary/utils/test/test_csv_data_file.py::TestAviaryCSV::test_write_data_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
87ee618d3764a8c0bf9cf5c277b926cbc0f3e14e | 2021-03-04 23:14:04 | docker.io/swerebenchv2/ericmjl-pyjanitor:811-87ee618 | ericmjl__pyjanitor-811 | Function: check_column(df: pandas.DataFrame, column_names, present: bool = True, case_sensitive: bool = True)
Location: janitor.utils
Inputs:
- df: pandas DataFrame containing the data to be inspected.
- column_names: a single column identifier (str, int, or any hashable) **or** an iterable of such identifiers. The fun... | python | MIT | diff --git a/.requirements/base.in b/.requirements/base.in
index cdef080..b793e56 100644
--- a/.requirements/base.in
+++ b/.requirements/base.in
@@ -4,5 +4,5 @@
natsort
# seaborn
pandas_flavor
-sklearn
+scikit-learn
multipledispatch
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 469ca60..e00378c 100644
--- a/CHANGE... | [ENH] Fix check_column to support single inputs
<!-- 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.
- ... | janitor.utils.check_column issue when passed single column
If `check_column` is passed a string instead of an iterable list/tuple/etc of column names, as can happen with `label_encode`, it will iterate through the string's characters, checking whether each is present as a column:
https://github.com/ericmjl/pyjanitor... | ericmjl/pyjanitor | diff --git a/tests/utils/test_check_column.py b/tests/utils/test_check_column.py
index 88e3cdd..2ee2878 100644
--- a/tests/utils/test_check_column.py
+++ b/tests/utils/test_check_column.py
@@ -11,6 +11,27 @@ def test_check_column(dataframe):
assert check_column(dataframe, ["a"]) is None
+@pytest.mark.utils
+de... | [
"tests/utils/test_check_column.py::test_check_column_single"
] | [
"tests/utils/test_check_column.py::test_check_column",
"tests/utils/test_check_column.py::test_check_column_absent_column",
"tests/utils/test_check_column.py::test_check_column_excludes",
"tests/utils/test_check_column.py::test_check_column_absent_column_excludes"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/ericmjl/pyjanitor/blob/87ee618d3764a8... |
3afc31a6faf8487a2a45812ad850a849be91fb77 | 2023-05-26 06:35:28 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1374-3afc31a | slackapi__python-slack-sdk-1374 | Method: ImageBlock.__init__(self, image_url: str, alt_text: str, title: Optional[Union[str, dict, PlainTextObject]] = None, block_id: Optional[str] = None, **others)
Location: slack_sdk.models.blocks.blocks.ImageBlock
Inputs:
- image_url (str, required): URL of the image to display.
- alt_text (str, required): Alt‑text... | python | MIT | diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index acbd048..1b42cc4 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -18,9 +18,9 @@ jobs:
PYTHON_SLACK_SDK_MOCK_SERVER_MODE: 'threading'
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: '1'
... | Fix #1369 ImageBlock title parsing defaults to incorrect behaviour when given a string
## Summary
This pull request resolves #1369
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming ... | ImageBlock title parsing defaults to incorrect behaviour when given a string
When providing a `str` as the `title` argument, the block created is incorrect and when submitted to Slack (e.g. via a `views.open` API call) will hit a JSON Schema error:
```
[ERROR] failed to match all allowed schemas [json-pointer:/view/b... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py
index 9eb12a8..5461ba8 100644
--- a/tests/slack_sdk/models/test_blocks.py
+++ b/tests/slack_sdk/models/test_blocks.py
@@ -251,6 +251,60 @@ class ImageBlockTests(unittest.TestCase):
}
self.assertDictEqual(input, ... | [
"tests/slack_sdk/models/test_blocks.py::ImageBlockTests::test_issue_1369_title_type"
] | [
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq",
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2",
"tests/slack_sdk/models/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.slack.com/reference/block-kit/blocks#image... |
88405fc9fa3cf8165a59ddf5b33b48213d71fa70 | 2024-08-16 21:03:07 | docker.io/swerebenchv2/getmoto-moto:7993-88405fc | getmoto__moto-7993 | Method: Rule.send_to_targets(self, original_event: EventMessageType, transform_input: bool = True)
Location: moto/events/models.py – class Rule
Inputs:
- **original_event** – the raw EventBridge event dict generated by `PutEvents`.
- **transform_input** – optional flag (default True). When True the method appli... | python | Apache-2.0 | diff --git a/moto/events/models.py b/moto/events/models.py
index 9b43ba579..dc54f52e8 100644
--- a/moto/events/models.py
+++ b/moto/events/models.py
@@ -38,7 +38,12 @@ from moto.utilities.utils import (
get_partition,
)
-from .utils import _BASE_EVENT_MESSAGE, PAGINATION_MODEL, EventMessageType
+from .utils imp... | RDS: update_db_instance() now supports the CloudwatchLogsExportConfig…
…uration-parameter
Fixes #7990 | Bug in RDS modify_db_instance with CloudwatchLogsExportConfiguration
## how to reproduce the issue
```
import boto3
from moto import mock_aws
@mock_aws
def rds():
client = boto3.client("rds")
response = client.create_db_instance(
DBInstanceIdentifier="test",
DBInstanceClass="db.m5.l... | getmoto/moto | diff --git a/.github/workflows/tests_real_aws.yml b/.github/workflows/tests_real_aws.yml
index 736b47a55..f3d204bbb 100644
--- a/.github/workflows/tests_real_aws.yml
+++ b/.github/workflows/tests_real_aws.yml
@@ -44,4 +44,4 @@ jobs:
env:
MOTO_TEST_ALLOW_AWS_REQUEST: ${{ true }}
run: |
- py... | [
"tests/test_events/test_events.py::test_archive_actual_events",
"tests/test_events/test_events_cloudformation.py::test_create_rule_with_targets",
"tests/test_rds/test_rds.py::test_modify_db_instance"
] | [
"tests/test_events/test_events.py::test_put_rule",
"tests/test_events/test_events.py::test_put_rule__where_event_bus_name_is_arn",
"tests/test_events/test_events.py::test_put_rule_error_schedule_expression_custom_event_bus",
"tests/test_events/test_events.py::test_list_rules",
"tests/test_events/test_events... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/releases/tag/5.0.12"
... |
9dc35b6bdb0644c9b1e84464cad2f70d4cfd9a47 | 2024-07-03 22:24:40 | docker.io/swerebenchv2/mill1000-midea-msmart:132-9dc35b6 | mill1000__midea-msmart-132 | Method: AirConditioner._update_state(self, res: Response)
Location: msmart/device/AC/device.py → class AirConditioner
Inputs: `res` – a Response object which may be a StateResponse, PropertiesResponse, EnergyUsageResponse, or HumidityResponse.
Outputs: None (updates internal state attributes).
Description: Upda... | python | MIT | diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 8965acd..4870083 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,5 +1,5 @@
{
- "image": "mcr.microsoft.com/devcontainers/python:3.11",
+ "image": "mcr.microsoft.com/devcontainers/python:3.12"... | Add control capability to CLI
Add new `control` command to the CLI which enables setting device properties.
Basic syntax is as follows:
```
msmart-ng control DEVICE_IP setting1=value1 setting2=value2
```
The CLI will attempt to convert the incoming values to the correct types.
- Enum types can use the numb... | Control Support for CLI
Hi,
any chance to add control support for the CLI tool?
Currently only discover and query is possible but not control the device via CLI.
Kind Regards | mill1000/midea-msmart | diff --git a/msmart/device/AC/test_command.py b/msmart/device/AC/test_command.py
index 1687058..c0ee681 100644
--- a/msmart/device/AC/test_command.py
+++ b/msmart/device/AC/test_command.py
@@ -1,14 +1,11 @@
import logging
import unittest
-from typing import Union, cast
+from typing import cast
from msmart.const im... | [
"msmart/device/AC/test_command.py::TestCommand::test_frame",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_additional_precision",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_checksum",
"msmart/device/AC/test_command.py::TestStateResponse::test_message_v2",
"msmart... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/mill1000/midea-msmart/pull/116#issueco... |
b1dcfd5ce55c65ca08322dbb3a0dc1c39bfafe16 | 2023-03-01 12:47:13 | docker.io/swerebenchv2/pandas-dev-pandas:51715-b1dcfd5 | pandas-dev__pandas-51715 | Function: sort_whatsnew_note(content)
Location: scripts/sort_whatsnew_note.py
Inputs: content (str) – the full “whatsnew” RST block; lines to be sorted start with “- ” and end with a pattern ``(:issue:`<number>`)\n``.
Outputs: str – the same note text with each contiguous block of such bullet lines reordered in ascendi... | python | BSD-3-Clause | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e0468aa813..484107af67 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -436,3 +436,10 @@ repos:
types: [python]
files: ^pandas/tests
language: python
+ - id: sort-whatsnew-items
+ name: sort... | DEV: reduce merge conflicts by sorting whatsnew notes by issue number?
- [ ] closes #51712 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code ... | DEV: reduce merge conflicts by sorting whatsnew notes by issue number?
@jbrockmendel noted [here](https://github.com/pandas-dev/pandas/pull/50275#issuecomment-1448499430) that whatsnew notes are a major source of merge conflicts. @rhshadrach also mentioned it in Slack once.
I have an idea for how to address this - w... | pandas-dev/pandas | diff --git a/scripts/tests/test_sort_whatsnew_note.py b/scripts/tests/test_sort_whatsnew_note.py
new file mode 100644
index 0000000000..6e40f6814c
--- /dev/null
+++ b/scripts/tests/test_sort_whatsnew_note.py
@@ -0,0 +1,30 @@
+from scripts.sort_whatsnew_note import sort_whatsnew_note
+
+
+def test_sort_whatsnew_note():
... | [
"scripts/tests/test_sort_whatsnew_note.py::test_sort_whatsnew_note"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B5",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/pandas-dev/pandas/pull/50275#issuec... |
c8aaee76133f0644341e2d81f8aa25ab51094d45 | 2019-05-30 17:31:28 | docker.io/swerebenchv2/maas-python-libmaas:224-c8aaee7 | maas__python-libmaas-224 | Method: LogicalVolumes.create(cls, volume_group, name, size, *, uuid=None, tags=None)
Location: maas.client.viscera.logical_volumes.LogicalVolumes.create
Inputs:
- **volume_group**: a VolumeGroup instance (the target VG).
- **name**: str, logical‑volume name (must be provided).
- **size**: int, size in bytes ... | python | custom-check-github | diff --git a/maas/client/viscera/__init__.py b/maas/client/viscera/__init__.py
index b0e3c8b..3a9875d 100644
--- a/maas/client/viscera/__init__.py
+++ b/maas/client/viscera/__init__.py
@@ -151,11 +151,12 @@ class ObjectType(Asynchronous, metaclass=Asynchronous):
attrs.setdefault("__slots__", ())
retur... | Fix issue with not being able to create a logical volume. Fixes #213. | Cannot create LVM logical volumes
## Environment
python-libmaas==0.6.1
Python 3.6.7
## Problem
There is no way to create logical volumes (LVs) over a Volume Group (VG). The `create()` function fails: `TypeError: node must be a Node or str, not VolumeGroup`
## Steps to reproduce
```python
In [102]: vgs = mach... | maas/python-libmaas | diff --git a/maas/client/viscera/tests/test_logical_volumes.py b/maas/client/viscera/tests/test_logical_volumes.py
new file mode 100644
index 0000000..e830baa
--- /dev/null
+++ b/maas/client/viscera/tests/test_logical_volumes.py
@@ -0,0 +1,85 @@
+"""Test for `maas.client.viscera.logical_volumes`."""
+
+import random
+f... | [
"maas/client/viscera/tests/test_logical_volumes.py::TestLogicalVolume::test__string_representation_includes_only_name",
"maas/client/viscera/tests/test_logical_volumes.py::TestLogicalVolumes::test__create"
] | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
afbf4d0d64e489279fb8efbe457570b05a8142c4 | 2021-08-16 22:52:29 | docker.io/swerebenchv2/astropenguin-xarray-dataclasses:60-afbf4d0 | astropenguin__xarray-dataclasses-60 | Method: parse(dataclass: DataClassLike) -> Structure
Location: xarray_dataclasses.parser
Inputs: a dataclass class or instance (any object that satisfies the DataClass protocol)
Outputs: a Structure object representing the parsed dataclass, containing lists of attribute, coordinate, data, and name descriptors
Descripti... | python | MIT | diff --git a/xarray_dataclasses/dataarray.py b/xarray_dataclasses/dataarray.py
index 6182a2a..b335ca3 100644
--- a/xarray_dataclasses/dataarray.py
+++ b/xarray_dataclasses/dataarray.py
@@ -52,7 +52,7 @@ def asdataarray(inst: Any, dataarray_factory: Any = xr.DataArray) -> Any:
except AttributeError:
pass
... | Add type hints for creating data/coord field from DataArray class
This PR closes #59. | Add type hints for creating data/coord field from DataArray class | astropenguin/xarray-dataclasses | diff --git a/tests/test_parser.py b/tests/test_parser.py
index 9397e06..61ba57b 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -9,7 +9,7 @@ from typing_extensions import Literal
# submodules
from xarray_dataclasses.parser import parse
-from xarray_dataclasses.typing import Attr, Coord, Data, Name
+... | [
"tests/test_parser.py::test_xaxis_attr",
"tests/test_parser.py::test_xaxis_data",
"tests/test_parser.py::test_xaxis_name",
"tests/test_parser.py::test_yaxis_attr",
"tests/test_parser.py::test_yaxis_data",
"tests/test_parser.py::test_yaxis_name",
"tests/test_parser.py::test_matrix_coord",
"tests/test_p... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "insufficient",
"pr_categories... |
db792cffd356543ce58c3a109f2c77de987c030f | 2022-11-25 14:00:56 | docker.io/swerebenchv2/yukinarit-pyserde:281-db792cf | yukinarit__pyserde-281 | Function: field(*args, rename: Optional[str] = None, alias: Optional[List[str]] = None, skip: Optional[bool] = None, skip_if: Optional[Callable] = None, skip_if_false: Optional[bool] = None, default: Any = MISSING, default_factory: Any = MISSING, init: Optional[bool] = None, compare: Any = MISSING, metadata: Optional[M... | python | MIT | diff --git a/README.md b/README.md
index b74096b..e703e7f 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,7 @@ Foo(i=10, s='foo', f=100.0, b=True)
- [Forward reference](docs/features/forward-reference.md)
- [Case Conversion](docs/features/case-conversion.md)
- [Rename](docs/features/rename.md)
+- [Alias](docs/fe... | feat: Implement alias
* `alias` works only during deserialization
* `rename` + `alias` works as expected
* If alias conflicts, the first one wins
```python
@serde
@dataclass
class Foo:
a: int = field(alias=["b", "c", "d"])
```
Closes #253 | Support for aliasing on dataclass fields
Similarly to [field attributes](https://serde.rs/field-attrs.html) in the serde.rs crate it would be very useful to be able to describe multiple aliases for the same field, that way you're not stuck if multiple names exist while de-serializing.
Something like this would be us... | yukinarit/pyserde | diff --git a/tests/test_basics.py b/tests/test_basics.py
index 6e3cd96..d4237d8 100644
--- a/tests/test_basics.py
+++ b/tests/test_basics.py
@@ -454,6 +454,50 @@ def test_rename_formats(se, de):
assert f == de(Foo, se(f))
+@pytest.mark.parametrize('se,de', (format_dict + format_json + format_yaml + format_toml... | [
"tests/test_basics.py::test_alias[to_dict-from_dict]",
"tests/test_basics.py::test_alias[to_json-from_json]",
"tests/test_basics.py::test_alias[to_yaml-from_yaml]",
"tests/test_basics.py::test_alias[to_toml-from_toml]",
"tests/test_basics.py::test_conflicting_alias",
"tests/test_basics.py::test_rename_and... | [
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]",
"tests/test_basics... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://serde.rs/field-attrs.html"
],
"intent_... |
aa097fc055322ad0773d619115640f7b005152c8 | 2023-11-29 03:07:35 | docker.io/swerebenchv2/djrobstep-sqlakeyset:100-aa097fc | djrobstep__sqlakeyset-100 | No new interfaces are introduced. | python | Unlicense | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 48b2f2a..69551f4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -105,7 +105,7 @@ workflows:
matrix:
parameters:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
- sqlalchemy: ["1.3.24", "1.4.... | Fix key mapping
Fixes #99. | `row._mapping` is broken after pagination
Already found the culprit at https://github.com/djrobstep/sqlakeyset/blob/aa097fc055322ad0773d619115640f7b005152c8/sqlakeyset/sqla20.py#L105-L112
Instead of `key -> col value` mapping, `Row` wants `key -> col index` mapping.
I'm running SQLAlchemy 2.0.23 and I have no ide... | djrobstep/sqlakeyset | diff --git a/tests/test_paging.py b/tests/test_paging.py
index dd07018..1c1d30c 100644
--- a/tests/test_paging.py
+++ b/tests/test_paging.py
@@ -45,6 +45,7 @@ from conftest import (
JoinedInheritanceBase,
Base,
SQLA2,
+ SQLA_VERSION,
)
warnings.simplefilter("error")
@@ -171,13 +172,41 @@ def test_... | [
"tests/test_paging.py::test_core_row_mapping[sqlite]"
] | [
"tests/test_paging.py::test_orm_query1[sqlite]",
"tests/test_paging.py::test_orm_query2[sqlite]",
"tests/test_paging.py::test_orm_query3[sqlite]",
"tests/test_paging.py::test_orm_query4[sqlite]",
"tests/test_paging.py::test_orm_bad_page[sqlite]",
"tests/test_paging.py::test_orm_row_mapping[sqlite]",
"te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/djrobstep/sqlakeyset/blob/aa097fc05... |
309f2c9c8959222e59d537b447c087a65c8b8998 | 2024-06-29 15:23:58 | docker.io/swerebenchv2/keras-team-keras:19937-309f2c9 | keras-team__keras-19937 | Method: Loss.__init__(self, name=None, reduction="sum_over_batch_size", dtype=None)
Location: keras/src/losses/loss.py
Inputs: `name` (optional string), `reduction` (string specifying reduction mode), `dtype` (optional – either a string like `"float16"`/`"float32"` or a `keras.dtype_policies.DTypePolicy` instance).... | python | Apache-2.0 | diff --git a/keras/src/losses/loss.py b/keras/src/losses/loss.py
index a35ecf7d4..c73690e6f 100644
--- a/keras/src/losses/loss.py
+++ b/keras/src/losses/loss.py
@@ -1,4 +1,5 @@
from keras.src import backend
+from keras.src import dtype_policies
from keras.src import ops
from keras.src import tree
from keras.src.api... | Improve consistency of the `dtype` argument across `Layer`, `Loss`, and `Metric`.
Fix #19932
Now the logic for parsing the `dtype` argument is the same across `Layer`, `Loss` and `Metric`. | `unhashable type: 'DTypePolicy'` may leads problems in keras 3.4.1
Hello. Thank you for your contributions and maintenance for the best Keras.
I'm working on a customized loss and using `keras.DTypePolicy` to config the dtype in it, as the following:
```python
class MyCustomizedLoss(keras.losses.Loss):
def __... | keras-team/keras | diff --git a/keras/src/losses/loss_test.py b/keras/src/losses/loss_test.py
index e438f7d88..fd120fcb9 100644
--- a/keras/src/losses/loss_test.py
+++ b/keras/src/losses/loss_test.py
@@ -4,6 +4,7 @@ import numpy as np
import pytest
from keras.src import backend
+from keras.src import dtype_policies
from keras.src im... | [
"keras/src/losses/loss_test.py::LossTest::test_dtype_arg",
"keras/src/metrics/metric_test.py::MetricTest::test_dtype_arg"
] | [
"keras/src/losses/loss_test.py::LossTest::test_get_method",
"keras/src/losses/loss_test.py::LossTest::test_mask",
"keras/src/losses/loss_test.py::LossTest::test_mask_and_sample_weight",
"keras/src/losses/loss_test.py::LossTest::test_mask_and_sample_weight_rank2",
"keras/src/losses/loss_test.py::LossTest::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://keras.io/api/mixed_precision/policy/"
],
... |
48079439c436329e4faaceb89f7d70ada647cdb0 | 2023-08-25 16:02:26 | docker.io/swerebenchv2/ploomber-jupysql:834-4807943 | ploomber__jupysql-834 | Function: ConnectionManager.set(url: str, displaycon: bool = True, alias: str | None = None)
Location: src/sql/connection/connection.py – class ConnectionManager, static method set
Inputs:
- **url** – database connection string (e.g., “postgresql://user:topsecret@somedomain.com/db”)
- **displaycon** – whether to immedi... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d2d69c3..23017e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
* [Feature] Improved messages when loading configurations from `pyproject.toml` file.
* [Feature] Add `--schema/-s` for `%sqlcmd` commands that support `--table/-t` and ensure `--table schema... | show feedback when starting a new connection
## Describe your changes
Show feedback when starting a new connection. This is configurable through setting `%config SqlMagic.feedback = 0`
## Issue number
Closes #807
## Checklist before requesting a review
- [x] Performed a self-review of my code
- [x] Fo... | showing feedback when starting a new connection
we're currently not displaying any feedback when creating a new connection, but we should display something like "Connected to {alias}". This should be configurable and turned off when `feedback=0`
Likewise, the "switching to connection" messages should be turned off w... | ploomber/jupysql | diff --git a/src/tests/test_connection.py b/src/tests/test_connection.py
index 3dccfe1..6fc3d2a 100644
--- a/src/tests/test_connection.py
+++ b/src/tests/test_connection.py
@@ -672,7 +672,7 @@ def test_feedback_when_switching_connection_with_alias(
ip_empty.run_cell("%sql one")
captured = capsys.readouterr(... | [
"src/tests/test_connection.py::test_feedback_when_switching_connection_with_alias[1]",
"src/tests/test_connection.py::test_feedback_when_switching_connection_with_alias[2]",
"src/tests/test_connection.py::test_feedback_when_switching_connection_with_descriptors",
"src/tests/test_connection.py::test_feedback_w... | [
"src/tests/test_connection.py::test_password_isnt_displayed",
"src/tests/test_connection.py::test_connection_name",
"src/tests/test_connection.py::test_alias",
"src/tests/test_connection.py::test_get_database_information",
"src/tests/test_connection.py::test_get_sqlglot_dialect_no_curr_connection",
"src/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ploomber/jupysql/blob/master/src/sq... |
7380019e81cf3ab4fcffe9292737fff580674142 | 2022-09-19 10:43:23 | docker.io/swerebenchv2/researchobject-ro-crate-py:136-7380019 | researchobject__ro-crate-py-136 | Method: ROCrate.write(self, out_path: pathlib.Path)
Location: rocrate/rocrate.py
Inputs: *out_path* – Path where the crate should be written. Must be a writable directory that does not already contain a crate with the same identifier.
Outputs: Writes the crate to *out_path*. Raises **OSError** when the crate contains a... | python | Apache-2.0 | diff --git a/rocrate/model/dataset.py b/rocrate/model/dataset.py
index f883a02..b378ea3 100644
--- a/rocrate/model/dataset.py
+++ b/rocrate/model/dataset.py
@@ -18,6 +18,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import errno
+import os
import shuti... | Fix missing file
Fixes #135.
Now when `write` is called on a crate containing at least a file or dataset whose source is missing, an `OSError` will be raised. Note that the use case mentioned in #73 is still covered: a crate with a missing data entity can still be loaded, but will not be immediately writable back to... | Fix behavior wrt "missing" data entities
After the merge of #75, we allow data entities whose `@id` does not map to an existing file or directory, even if local. While this adds flexibility for use cases like #73, such crates are not supported by other libraries. Specifically, I got reports of crates generated with ro-... | ResearchObject/ro-crate-py | diff --git a/test/test_read.py b/test/test_read.py
index edb1d9f..df50801 100644
--- a/test/test_read.py
+++ b/test/test_read.py
@@ -320,10 +320,27 @@ def test_missing_dir(test_data_dir, tmpdir):
assert examples_dataset.id == f'{name}/'
out_path = tmpdir / 'crate_read_out'
+ with pytest.raises(OSError):
... | [
"test/test_read.py::test_missing_dir",
"test/test_read.py::test_missing_file",
"test/test_write.py::test_missing_source[file]",
"test/test_write.py::test_missing_source[dataset]"
] | [
"test/test_read.py::test_crate_dir_loading[False-False]",
"test/test_read.py::test_crate_dir_loading[True-False]",
"test/test_read.py::test_crate_dir_loading[True-True]",
"test/test_read.py::test_legacy_crate",
"test/test_read.py::test_bad_crate",
"test/test_read.py::test_init[False]",
"test/test_read.p... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
188904f22c4c80fd7406706850c798f611690a4a | 2024-12-25 06:25:09 | docker.io/swerebenchv2/pythainlp-pythainlp:1046-188904f | pythainlp__pythainlp-1046 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/pythainlp/util/syllable.py b/pythainlp/util/syllable.py
index 9d480d81..bf3d4be4 100644
--- a/pythainlp/util/syllable.py
+++ b/pythainlp/util/syllable.py
@@ -184,7 +184,7 @@ def syllable_length(syllable: str) -> str:
# output: short
"""
consonants = [i for i in syllable if i in list(thai... | Fixed #1004
### What does this changes
Fixed tone_detector bug
### How this fixes it
<!--- Description of how the changes fix the issue. -->
Fixes #1004
### Your checklist for this pull request
<!--- Please review the guidelines for contributing to this repository at: -->
<!--- https://github.com/PyT... | bug: tone_detector wrongly detect falling tone for ครับ
### Description
`print(tone_detector("ครับ"))`
result: f
`print(tone_detector("ค่ะ"))`
result: h
### Expected results
"ครับ" should be high tone
"ค่ะ" should be falling tone
### Current results
"ครับ": falling tone
"ค่ะ": high tone
### Ste... | PyThaiNLP/pythainlp | diff --git a/tests/core/test_util.py b/tests/core/test_util.py
index de7a7a9d..aef11e09 100644
--- a/tests/core/test_util.py
+++ b/tests/core/test_util.py
@@ -708,6 +708,8 @@ class UtilTestCase(unittest.TestCase):
("f", "ไหม้"),
("f", "ต้น"),
("f", "ผู้"),
+ ("h", "ครับ... | [
"tests/core/test_util.py::UtilTestCase::test_tone_detector"
] | [
"tests/core/test_util.py::UtilTestCase::test_collate",
"tests/core/test_util.py::UtilTestCase::test_convert_years",
"tests/core/test_util.py::UtilTestCase::test_count_thai_chars",
"tests/core/test_util.py::UtilTestCase::test_countthai",
"tests/core/test_util.py::UtilTestCase::test_date",
"tests/core/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
aca3ac6e2d0eacff962af7f5f53cdc050724fed3 | 2020-05-27 16:34:29 | docker.io/swerebenchv2/pycqa-docformatter:53-aca3ac6 | pycqa__docformatter-53 | Function: format_docstring(indentation: str, docstring: str, *, summary_wrap_length: int = 79, description_wrap_length: int = 72, pre_summary_newline: bool = False, make_summary_multi_line: bool = False, post_description_blank: bool = False, force_wrap: bool = False, strict: bool = True) → str
Location: docformatter.fo... | python | MIT | diff --git a/.gitignore b/.gitignore
index 7e1c99c..51246d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+*~
*.egg
*.egg-info/
*.eggs/
diff --git a/README.rst b/README.rst
index d206021..a926b88 100644
--- a/README.rst
+++ b/README.rst
@@ -2,6 +2,34 @@
docformatter
============
+.. |CI| image:: https... | Removed the empty line between function definiton and docstring #51
Prevents additional line breaks after function definition as only one linebreak is allowed.
Closes #51 | Remove the empty line between function definiton and docstring
If there is a blank line between function definition and the docstring, it should be removed:
```python
def my_func():
"""Summary of my function"""
```
should be modified to:
```python
def my_func():
"""Summary of my function"""
``` | PyCQA/docformatter | diff --git a/test_docformatter.py b/test_docformatter.py
index 0e225e6..da4b380 100755
--- a/test_docformatter.py
+++ b/test_docformatter.py
@@ -356,7 +356,7 @@ Hello.
"""'''
self.assertEqual(
docstring,
- docformatter.format_docstring(' ', docstring))
+ docformatter.... | [
"test_docformatter.py::TestUnits::test__format_code_additional_empty_line_before_doc",
"test_docformatter.py::TestUnits::test_format_docstring_should_leave_list_alone",
"tests/test_utility_functions.py::TestIsSomeSortdOfList::test_is_some_sort_of_list",
"tests/test_utility_functions.py::TestIsSomeSortdOfList:... | [
"test_docformatter.py::TestUnits::test_exclude",
"test_docformatter.py::TestUnits::test_exclude_nothing",
"test_docformatter.py::TestUnits::test_force_wrap",
"test_docformatter.py::TestUnits::test_format_code",
"test_docformatter.py::TestUnits::test_format_code_docstring_length",
"test_docformatter.py::Te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d135fc45e5a4a37cf14bf98b63f0ef9eb82c5ee9 | 2022-04-01 03:15:24 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3279-d135fc4 | hypothesisworks__hypothesis-3279 | Function: from_type(thing: Type[Ex]) -> SearchStrategy[Ex]
Location: hypothesis.strategies (public API)
Inputs:
- **thing**: a Python type annotation. May be a concrete type, a generic type (e.g., `list[int]`), a typing construct (e.g., `typing.Union`, `typing.Optional`, `typing.Literal`), **or a native PEP 604 union ... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..3de2437bb
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,4 @@
+RELEASE_TYPE: patch
+
+Fixed :func:`~hypothesis.strategies.from_type` support for
+:pep:`604` union types, like ``int | None`` (:i... | Support PEP-604 `int | str` syntax for union types
Fixes #3255. | PEP 604 not supported - exception when writing union types X | Y
hypothesis is not recognizing the new bar-annotation for union types as a valid type on python 3.10+
resulting in an exception, see minimal reproduction example below -
```python
from typing import Optional, Union
from dataclasses import dataclass
... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/conftest.py b/hypothesis-python/tests/conftest.py
index 3ec6ebdd4..bd80a005b 100644
--- a/hypothesis-python/tests/conftest.py
+++ b/hypothesis-python/tests/conftest.py
@@ -31,6 +31,8 @@ if sys.version_info < (3, 8):
collect_ignore_glob.append("cover/*py38*")
if sys.version_inf... | [
"hypothesis-python/tests/cover/test_lookup_py310.py::test_native_unions"
] | [
"hypothesis-python/tests/cover/test_testdecorators.py::test_int_addition_is_commutative",
"hypothesis-python/tests/cover/test_testdecorators.py::test_str_addition_is_commutative",
"hypothesis-python/tests/cover/test_testdecorators.py::test_bytes_addition_is_commutative",
"hypothesis-python/tests/cover/test_te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
89eae72a416f2759bcfe40336d35c152a984f8e1 | 2024-03-25 20:59:10 | docker.io/swerebenchv2/amaranth-lang-amaranth:1245-89eae72 | amaranth-lang__amaranth-1245 | Method: Simulator.write_vcd(self, vcd_file, gtkw_file=None, *, fs_per_delta=1.0, traces=())
Location: amaranth/sim/core.py
Inputs:
- **vcd_file** – path (str) or file‑like object where the VCD dump will be written.
- **gtkw_file** – optional path (str) or file‑like object for the GTKWave save file.
- **fs_per_delt... | python | BSD-2-Clause | diff --git a/amaranth/sim/core.py b/amaranth/sim/core.py
index 4ea4993..d3f5581 100644
--- a/amaranth/sim/core.py
+++ b/amaranth/sim/core.py
@@ -212,17 +212,25 @@ class Simulator:
file.close()
raise ValueError("Cannot start writing waveforms after advancing simulation time")
- ... | Emit signal groups in GTKW files
Fixes #764.
Things to look at in the review:
* Group names for views and interfaces. The current code uses "view" and "interface". Maybe the name should reference a layout/signature in some way?
* Treating single-field view as in https://github.com/amaranth-lang/amaranth/issues/764... | GTKW files with signal groups
For debugging complex circuits, it's useful to have the signal traces grouped according to their function. The popular _gtkwave_ tool supports this, as does the `GTKWSave` class from the `vcd` package used by Amaranth to export VCD files. All that remains is to connect this together.
I ... | amaranth-lang/amaranth | diff --git a/tests/test_sim.py b/tests/test_sim.py
index 8859a19..4179a17 100644
--- a/tests/test_sim.py
+++ b/tests/test_sim.py
@@ -16,7 +16,7 @@ from amaranth.hdl._ir import *
from amaranth.sim import *
from amaranth.sim._pyeval import eval_format
from amaranth.lib.memory import Memory
-from amaranth.lib import en... | [
"tests/test_sim.py::SimulatorTracesTestCase::test_dict",
"tests/test_sim.py::SimulatorTracesTestCase::test_interface",
"tests/test_sim.py::SimulatorTracesTestCase::test_struct_view"
] | [
"tests/test_sim.py::SimulatorUnitTestCase::test_abs",
"tests/test_sim.py::SimulatorUnitTestCase::test_add",
"tests/test_sim.py::SimulatorUnitTestCase::test_all",
"tests/test_sim.py::SimulatorUnitTestCase::test_and",
"tests/test_sim.py::SimulatorUnitTestCase::test_any",
"tests/test_sim.py::SimulatorUnitTes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/kuznia-rdzeni/coreblocks/blob/maste... |
a9e5b43db5e70a766f1814c95001c68f8b82073e | 2023-01-30 22:08:45 | docker.io/swerebenchv2/opencybersecurityalliance-stix-shifter:1306-a9e5b43 | opencybersecurityalliance__stix-shifter-1306 | Method: StixTranslation.translate(self, module: str, result_type: str, data_source: str, data: str, options: dict = None)
Location: stix_shifter_utils/stix_translation/stix_translation.py
Inputs:
- **module** – name of the connector module (e.g., `'elastic_ecs'`).
- **result_type** – string indicating the translatio... | python | custom-check-github | diff --git a/stix_shifter_modules/elastic_ecs/stix_translation/results_translator.py b/stix_shifter_modules/elastic_ecs/stix_translation/results_translator.py
index 6293b74d..9b9be9bd 100644
--- a/stix_shifter_modules/elastic_ecs/stix_translation/results_translator.py
+++ b/stix_shifter_modules/elastic_ecs/stix_transla... | elastic_ecs: fix STIX 2.1 results translation
Remove unnecessary result processing that raised the exception for STIX 2.1.
Fixes #1304 | elastic_ecs module raises spurious exception for STIX 2.1 results
**Describe the bug**
When you set the `"stix_2.1": True` option, you get a bogus exception:
> RuntimeError: Incorrect number of result objects after translation. Found: 23, expected: 2.
There is code in the result translation that attempts to count ... | opencybersecurityalliance/stix-shifter | diff --git a/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py b/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py
index fa770081..0a3a6d4b 100644
--- a/stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py
... | [
"stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py::TestElasticEcsTransform::test_stix_2_1"
] | [
"stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py::TestElasticEcsTransform::test_artifact_prop",
"stix_shifter_modules/elastic_ecs/tests/stix_translation/test_elastic_ecs_json_to_stix.py::TestElasticEcsTransform::test_common_prop",
"stix_shifter_modules/elastic_ecs/tests/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1f2725e7b7b7fb2feb62d57b151b25b23d099fd9 | 2020-08-29 09:46:32 | docker.io/swerebenchv2/ericmjl-pyjanitor:727-1f2725e | ericmjl__pyjanitor-727 | Method: DataFrame.complete(self, columns: List[Union[str, List, Tuple, Dict]], fill_value: Optional[Dict] = None)
Location: janitor/functions.py (registered as a pandas‑flavor dataframe method)
Inputs:
- **columns** – a list describing which columns to complete; each entry may be a column name (str), a tuple/list ... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index f301a9f..e7cceb3 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,7 +1,8 @@
new version (on deck)
=====================
- [ENH] Added function ``sort_timestamps_monotonically`` to timeseries functions @UGuntupalli
-
+- [ENH] Added the complete function for convert... | [ENH] Added the `complete` function for converting implicit missing values to explicit ones
<!-- 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 feature... | Complete function for missing combinations of data
# Brief Description
I would like to propose the ``complete`` function, similar to tidyr's ``complete`` function, to get missing combinations of data.
# Example API
```python
#code idea:
@pf.register_dataframe_method
def complete(df, combinations: ..., fil... | ericmjl/pyjanitor | diff --git a/tests/functions/test_complete.py b/tests/functions/test_complete.py
new file mode 100644
index 0000000..bd7e711
--- /dev/null
+++ b/tests/functions/test_complete.py
@@ -0,0 +1,322 @@
+import itertools
+
+import numpy as np
+import pandas as pd
+import pytest
+from pandas.testing import assert_frame_equal
+... | [
"tests/functions/test_complete.py::test_complete[df0-columns0-output0]",
"tests/functions/test_complete.py::test_complete[df1-columns1-output1]",
"tests/functions/test_complete.py::test_fill_value",
"tests/functions/test_complete.py::test_fill_value_all_years",
"tests/functions/test_complete.py::test_type_c... | [
"tests/timeseries/test_fill_missing_timestamps.py::test_fill_missing_timestamps",
"tests/timeseries/test_fill_missing_timestamps.py::test__get_missing_timestamps",
"tests/timeseries/test_sort_timestamps_monotonically.py::test_sort_timestamps_monotonically",
"tests/timeseries/test_sort_timestamps_monotonically... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://tidyr.tidyverse.org/reference/complete.html",
... |
14e789e16e44ab54038eaabfbc2918cdf97869a2 | 2024-08-29 18:03:20 | docker.io/swerebenchv2/openmdao-openmdao:3334-14e789e | openmdao__openmdao-3334 | No new interfaces are introduced. | python | custom-check-github | diff --git a/openmdao/recorders/case.py b/openmdao/recorders/case.py
index 80a9aafb6..7addddd01 100644
--- a/openmdao/recorders/case.py
+++ b/openmdao/recorders/case.py
@@ -677,11 +677,18 @@ class Case(object):
meta['max'] = np.round(np.max(meta['val']), np_precision)
if ... | Updated Case list methods to handle missing residuals data
### Summary
Updated `list_vars` and `list_outputs` methods on `Case` to handle missing residuals data.
Also:
- updated recorder to populate `abs_err` and `rel_err` fields with `None` if they were not recorded so that it is properly handled in the list me... | CaseReader.list_outputs method should handle missing data more gracefully
### Description
Currently when the `CaseReader.list_outputs` method is called, if a requested type of data, for example, residuals, is not recorded, the method raises an Exception and does not continue. The error shown is
```
outputs = c... | OpenMDAO/OpenMDAO | diff --git a/openmdao/recorders/tests/test_list_vars.py b/openmdao/recorders/tests/test_list_vars.py
index 80836a9d6..134a524dd 100644
--- a/openmdao/recorders/tests/test_list_vars.py
+++ b/openmdao/recorders/tests/test_list_vars.py
@@ -40,6 +40,191 @@ class ListVarsTest(unittest.TestCase):
self.assertEqual(... | [
"openmdao/recorders/tests/test_list_vars.py::ListVarsTest::test_err_not_recorded",
"openmdao/recorders/tests/test_list_vars.py::ListVarsTest::test_not_recorded"
] | [
"openmdao/recorders/tests/test_list_vars.py::ListVarsTest::test_discrete_missing_attributes",
"openmdao/recorders/tests/test_list_vars.py::ListVarsTest::test_invalid_return_format",
"openmdao/recorders/tests/test_list_vars.py::ListVarsTest::test_list_outputs",
"openmdao/recorders/tests/test_list_vars.py::List... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
249d8e2b61417fd4195b35bd19e6c60b93008694 | 2024-12-27 20:23:40 | docker.io/swerebenchv2/getmoto-moto:8441-249d8e2 | getmoto__moto-8441 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/stepfunctions/models.py b/moto/stepfunctions/models.py
index 5a0ee9a1a..c432b9bd0 100644
--- a/moto/stepfunctions/models.py
+++ b/moto/stepfunctions/models.py
@@ -26,14 +26,13 @@ from .exceptions import (
from .utils import PAGINATION_MODEL, api_to_cfn_tags, cfn_to_api_tags
-class StateMachine(Cl... | StepFunctions: describe_state_machine() now takes Version ARN's
Fixes #8439 | statemachine.describe_state_machine returning error for a version ARN
When running the following sequence under moto 5.0.25:
```python
import boto3
client = boto3.client("stepfunctions", region_name='us-west-2)
client.create_state_machine(
name='somestatemachine',
definition=json.dumps({... | getmoto/moto | diff --git a/tests/test_stepfunctions/test_stepfunctions_versions.py b/tests/test_stepfunctions/test_stepfunctions_versions.py
new file mode 100644
index 000000000..715033cb0
--- /dev/null
+++ b/tests/test_stepfunctions/test_stepfunctions_versions.py
@@ -0,0 +1,53 @@
+import json
+from uuid import uuid4
+
+import boto3... | [
"tests/test_stepfunctions/test_stepfunctions_versions.py::test_describe_state_machine_using_version_arn[use_parser]",
"tests/test_stepfunctions/test_stepfunctions_versions.py::test_describe_state_machine_using_version_arn[use_mock]"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://boto3.amazonaws.com/v1/documentation/api/1.35.... |
f8f2c9ca540079fa031cd3296eb9bc14105db328 | 2018-06-26 22:41:51 | docker.io/swerebenchv2/streamlink-streamlink:1857-f8f2c9c | streamlink__streamlink-1857 | Method: Mjunoon.can_handle_url(cls, url)
Location: src/streamlink/plugins/mjunoon.py (class Mjunoon)
Inputs:
- **url** (str): the URL to be evaluated, expected to point to a mjunoon.tv page.
Outputs:
- **bool** – `True` if the URL matches the plugin’s regular expression (i.e., it is a valid mjunoon.tv stream URL),... | python | BSD-2-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74a24292..c3bbeba7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,83 +1,5 @@
# Changelog
-## streamlink 0.14.0 (2018-06-26)
-
-Here are the changes to this months release!
-
-- Multiple plugin fixes
-- Bug fixes for DASH streams (https://github.com/streamlink/stream... | plugins.mjunoon: support for live and vod streams on mjunoon.tv
Support for both live and VOD streams from mjunoon.tv.
Would be nice to have someone test it out.
Fixes #1834 | plugin rerquest for mjunoon
https://www.mjunoon.tv/
streamlink https://www.mjunoon.tv/a-tv-live
[cli][info] streamlink is running as root! Be careful!
error: No plugin can handle URL: https://www.mjunoon.tv/a-tv-live
| streamlink/streamlink | diff --git a/tests/resources/dash/test_7.mpd b/tests/resources/dash/test_7.mpd
deleted file mode 100644
index 17e9bec0..00000000
--- a/tests/resources/dash/test_7.mpd
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="urn:mpeg:... | [
"tests/streams/test_dash_parser.py::TestMPDParsers::test_bool_str",
"tests/streams/test_dash_parser.py::TestMPDParsers::test_datetime",
"tests/streams/test_dash_parser.py::TestMPDParsers::test_duration",
"tests/streams/test_dash_parser.py::TestMPDParsers::test_frame_rate",
"tests/streams/test_dash_parser.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": "B5",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.mjunoon.tv/",
"https://mjunoon.tv/ne... |
91729ba44cdbaa888eedc7072251015d1d9e8da2 | 2023-11-29 20:32:18 | docker.io/swerebenchv2/pyomo-pyomo:3056-91729ba | pyomo__pyomo-3056 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pyomo/repn/plugins/nl_writer.py b/pyomo/repn/plugins/nl_writer.py
index 1941e1e0c..fa7063370 100644
--- a/pyomo/repn/plugins/nl_writer.py
+++ b/pyomo/repn/plugins/nl_writer.py
@@ -1685,6 +1685,15 @@ class _NLWriter_impl(object):
if not self.config.linear_presolve:
return eliminated_co... | Remove presolve-eliminated variables from named expressions
<!-- ##################################################################### -->
<!-- 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 suit... | Incorrect degrees of freedom with linear presolve
## Summary
Testing out `NLWriter().write(model, file, linear_presolve=True)`, I have noticed that sometimes a variable that is eliminated is still written to the nl file.
### Steps to reproduce the issue
```python
import pyomo.environ as pyo
import pyomo.re... | Pyomo/pyomo | diff --git a/pyomo/repn/tests/ampl/test_nlv2.py b/pyomo/repn/tests/ampl/test_nlv2.py
index 7e47de24f..32274f26a 100644
--- a/pyomo/repn/tests/ampl/test_nlv2.py
+++ b/pyomo/repn/tests/ampl/test_nlv2.py
@@ -1480,7 +1480,6 @@ G0 1
# Note: bounds on x[1] are:
# min(22/3, 82/17, 23/4, -39/-6) == 4.823529... | [
"pyomo/repn/tests/ampl/test_nlv2.py::Test_NLWriter::test_presolve_named_expressions"
] | [
"pyomo/repn/tests/ampl/test_nlv2.py::Test_AMPLRepnVisitor::test_custom_named_expression",
"pyomo/repn/tests/ampl/test_nlv2.py::Test_AMPLRepnVisitor::test_divide",
"pyomo/repn/tests/ampl/test_nlv2.py::Test_AMPLRepnVisitor::test_duplicate_shared_linear_expressions",
"pyomo/repn/tests/ampl/test_nlv2.py::Test_AMP... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Pyomo/pyomo/blob/91729ba44cdbaa888e... |
ac13bbb885c275fd446f85a9d2e74d8058c2b3c1 | 2022-05-12 15:03:16 | docker.io/swerebenchv2/ipython-traitlets:724-ac13bbb | ipython__traitlets-724 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/traitlets/config/application.py b/traitlets/config/application.py
index e5a8686..efff262 100644
--- a/traitlets/config/application.py
+++ b/traitlets/config/application.py
@@ -92,6 +92,9 @@ else:
)
+IS_PYTHONW = sys.executable and sys.executable.endswith("pythonw.exe")
+
+
def catch_config_error(... | Fix KeyError in Application.get_default_logging_config
Fixes #723 | KeyError in get_default_logging_config
If sys.executable is set to pythonw.exe calling get_default_logging_config results in a KeyError because it tries to delete a key that doesn't exist.
https://github.com/ipython/traitlets/blob/main/traitlets/config/application.py#L259
```
2022-05-12 15:42:05,811 - ERROR : ... | ipython/traitlets | diff --git a/traitlets/config/tests/test_application.py b/traitlets/config/tests/test_application.py
index 4c64811..f38765c 100644
--- a/traitlets/config/tests/test_application.py
+++ b/traitlets/config/tests/test_application.py
@@ -804,6 +804,19 @@ def test_logging_config(tmp_path, capsys):
assert capsys.readoute... | [
"traitlets/config/tests/test_application.py::test_get_default_logging_config_pythonw"
] | [
"traitlets/config/tests/test_application.py::TestApplication::test_aliases",
"traitlets/config/tests/test_application.py::TestApplication::test_aliases_help_msg",
"traitlets/config/tests/test_application.py::TestApplication::test_basic",
"traitlets/config/tests/test_application.py::TestApplication::test_cli_a... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/ipython/traitlets/blob/main/traitlets... |
615ca5b439563bca6fb181980fbed6a88d0ca28b | 2022-08-18 09:47:41 | docker.io/swerebenchv2/unleash-unleash-client-python:218-615ca5b | unleash__unleash-client-python-218 | No new interfaces are introduced. | python | MIT | diff --git a/UnleashClient/api/features.py b/UnleashClient/api/features.py
index 267373c..9774788 100644
--- a/UnleashClient/api/features.py
+++ b/UnleashClient/api/features.py
@@ -1,6 +1,10 @@
from typing import Tuple
import requests
-from UnleashClient.constants import REQUEST_TIMEOUT, FEATURES_URL
+from requests.a... | Add retries to get features
# Description
Create session and provide it with a custom HTTPAdapter, that has max_retries set.
Fixes #217
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which ... | Add retries to get_feature_toggles
**Is your feature request related to a problem? Please describe.**
HTTP requests in get_feature_toggles might fail due to intermittent network issues.
Since this is called quite often, it could create plenty of long stack traces, since the entire stack trace is printed: https://g... | Unleash/unleash-client-python | diff --git a/tests/unit_tests/api/test_feature.py b/tests/unit_tests/api/test_feature.py
index ec1e48b..d929ceb 100644
--- a/tests/unit_tests/api/test_feature.py
+++ b/tests/unit_tests/api/test_feature.py
@@ -1,5 +1,6 @@
import responses
from pytest import mark, param
+
from tests.utilities.mocks.mock_features impor... | [
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle[failure1]",
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle_failed_etag",
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle_retries"
] | [
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle[success]",
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle[failure0]",
"tests/unit_tests/api/test_feature.py::test_get_feature_toggle_project"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Unleash/unleash-client-python/blob/... |
359c2db460f4410e86782a99eef06dabbfd96d34 | 2023-02-28 09:41:01 | docker.io/swerebenchv2/python-attrs-attrs:1107-359c2db | python-attrs__attrs-1107 | Function: field(*, default=..., validator=..., repr=..., eq=..., order=..., on_setattr=..., alias=..., type=...)
Location: src/attr/_next_gen.py
Inputs: Optional keyword arguments configuring an attribute; newly added **type** parameter accepts a Python type (e.g., `int`) that is stored as metadata for use with `attrs.... | python | MIT | diff --git a/changelog.d/1107.change.md b/changelog.d/1107.change.md
new file mode 100644
index 0000000..7606494
--- /dev/null
+++ b/changelog.d/1107.change.md
@@ -0,0 +1,3 @@
+Added *type* parameter to `attrs.field()` function for use with `attrs.make_class().
+
+Please note that type checkers ignore type metadata pas... | Added `type` parameter to `attrs.field()` function
# Summary
<!-- Please tell us what your pull request is about here. -->
This resolves #1082
Could somebody help me with the tests? I'm not sure they're right where they are.
# Pull Request Check List
<!--
This is just a friendly reminder about the most ... | Add `type` back to `attrs.field()` for use in `attrs.make_class()`
I'm using `attrs.make_class()` to dynamically construct a class based on other attrs classes, and it would be nice to be able to specify the `type` of the fields on the generated class using `attrs.field()` instead of `attr.ib()`. In other words, this w... | python-attrs/attrs | diff --git a/tests/test_next_gen.py b/tests/test_next_gen.py
index cb6ee2a..7908a41 100644
--- a/tests/test_next_gen.py
+++ b/tests/test_next_gen.py
@@ -28,6 +28,16 @@ class TestNextGen:
"""
C("1", 2)
+ def test_field_type(self):
+ """
+ Make class with attrs.field and type paramete... | [
"tests/test_next_gen.py::TestNextGen::test_field_type"
] | [
"tests/test_next_gen.py::TestNextGen::test_simple",
"tests/test_next_gen.py::TestNextGen::test_no_slots",
"tests/test_next_gen.py::TestNextGen::test_validates",
"tests/test_next_gen.py::TestNextGen::test_no_order",
"tests/test_next_gen.py::TestNextGen::test_override_auto_attribs_true",
"tests/test_next_ge... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
cc173e79bda7505e61811d96bc351a33b29648b7 | 2021-03-31 12:16:33 | docker.io/swerebenchv2/zopefoundation-btrees:158-cc173e7 | zopefoundation__btrees-158 | Function: _c_optimizations_ignored()
Location: src/BTrees/_compat.py
Inputs: none; reads the ``PURE_PYTHON`` environment variable (or defaults to PyPy detection) to decide whether C optimizations should be ignored.
Outputs: bool – ``True`` if C extensions should be ignored (i.e., ``PURE_PYTHON`` is not set to ``"0"`` o... | python | custom-check-github | diff --git a/.coveragerc b/.coveragerc
index c1e9d8c..011b38b 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -7,3 +7,4 @@ relative_files = True
exclude_lines =
pragma: no cover
class I[A-Z]\w+\((Interface|I[A-Z].*)\):
+ self.fail
diff --git a/.manylinux-install.sh b/.manylinux-install.sh
index 49f3651..e5b... | Let PURE_PYTHON=0 force the use of C extensions.
Except on PyPy.
Fixes #156 | Support PURE_PYTHON=0 to require C extensions
Like `zope.interface` does.
This is handy for testing on CI to be sure we're getting the extensions and to fail early if we're not.
Currently, if we expect the extensions, but don't actually have them, we fail late in the test run with some confusing errors about `<... | zopefoundation/BTrees | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 2e26a53..d683ed6 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -52,6 +52,11 @@ env:
PYTHONDEVMODE: 1
PYTHONFAULTHANDLER: 1
ZOPE_INTERFACE_STRICT_IRO: 1
+ # Require C extensions; this will be disabled l... | [
"src/BTrees/tests/test_Length.py::TestLength::test___call___no_args",
"src/BTrees/tests/test_Length.py::TestLength::test___call___w_args",
"src/BTrees/tests/test_Length.py::TestLength::test___getstate___",
"src/BTrees/tests/test_Length.py::TestLength::test___setstate__",
"src/BTrees/tests/test_Length.py::Te... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3a7806ea30507dbfba6571260210420a62f8022d | 2017-09-23 01:05:50 | docker.io/swerebenchv2/pre-commit-pre-commit:630-3a7806e | pre-commit__pre-commit-630 | Function: main(argv=None)
Location: pre_commit.languages.pygrep.main
Inputs:
- argv (optional iterable of strings): command‑line arguments. If omitted the function reads from sys.argv. Expected order: optional `-i`/`--ignore-case` flag, a regex pattern string, followed by zero or more filenames.
Outputs:
- int: exit st... | python | MIT | diff --git a/pre_commit/languages/all.py b/pre_commit/languages/all.py
index 67b7dde..514ba61 100644
--- a/pre_commit/languages/all.py
+++ b/pre_commit/languages/all.py
@@ -5,6 +5,7 @@ from pre_commit.languages import docker_image
from pre_commit.languages import golang
from pre_commit.languages import node
from pre... | Implement pygrep language as a replacement for pcre
This is more cross-platform compatible than pcre.
Resolves #404 | Expose `negate` and deprecate pcre hooks
See https://github.com/pre-commit/pre-commit/blob/b05cc4077e621cec637b22d6ad2b80ee84749f97/pre_commit/xargs.py#L48
I imagine something like this:
``` yaml
- id: test
language: system
negate_returncode: true
entry: grep -P herp
```
Instead of the equivalent pcre hook
| pre-commit/pre-commit | diff --git a/testing/fixtures.py b/testing/fixtures.py
index befc3f5..388b344 100644
--- a/testing/fixtures.py
+++ b/testing/fixtures.py
@@ -73,7 +73,7 @@ def config_with_local_hooks():
('id', 'do_not_commit'),
('name', 'Block if "DO NOT COMMIT" is found'),
('entry', '... | [
"tests/languages/pygrep_test.py::test_main[baz-0-]",
"tests/languages/pygrep_test.py::test_main[foo-1-f1:1:foo\\n]",
"tests/languages/pygrep_test.py::test_main[bar-1-f1:2:bar\\n]",
"tests/languages/pygrep_test.py::test_main[(?i)\\\\[info\\\\]-1-f2:1:[INFO]",
"tests/languages/pygrep_test.py::test_main[h'q-1-... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/pre-commit/pre-commit/blob/b05cc407... |
73d1c7ce02ac156ffbe53a02a6b053238c50481a | 2021-06-10 19:48:28 | docker.io/swerebenchv2/ethereum-web3.py:2023-73d1c7c | ethereum__web3.py-2023 | Function: get_dev_ipc_path()
Location: web3.providers.ipc.get_dev_ipc_path
Inputs: None (relies on the environment variable `WEB3_PROVIDER_URI`; if set, the function expects it to contain a filesystem path to an existing IPC socket file)
Outputs: `str` – the IPC socket path to use for a development Geth node. Returns t... | python | MIT | diff --git a/docs/internals.rst b/docs/internals.rst
index e5e1deec..faf4afcc 100644
--- a/docs/internals.rst
+++ b/docs/internals.rst
@@ -80,16 +80,6 @@ HTTP or an IPC socket. There is however nothing which requires providers to be
RPC based, allowing for providers designed for testing purposes which use an
in-memo... | Honor WEB3_PROVIDER_URI for geth auto dev connection
### What was wrong?
Connecting via the gethdev auto provider didn't look first for the `WEB3_PROVIDER_URI` environment variable.
Fixes #1817
### How was it fixed?
Added a check at the beginning of the `get_dev_ipc_path` function for the WEB3_PROVIDER_UR... | gethdev AutoProvider does not consider the WEB3_PROVIDER_URI environment variable
* Version: 5.13.0
* Python: 3.8.5
* OS: Linux (Ubuntu 20.04.1 LTS)
### What was wrong?
When using `web3.auto.gethdev`, the `WEB3_PROVIDER_URI` environment variable does not appear to be honored.
```
$ export WEB3_PROVIDER_URI=... | ethereum/web3.py | diff --git a/tests/core/providers/test_auto_provider.py b/tests/core/providers/test_auto_provider.py
index 6fd773a9..c0e30295 100644
--- a/tests/core/providers/test_auto_provider.py
+++ b/tests/core/providers/test_auto_provider.py
@@ -17,6 +17,9 @@ from web3.providers import (
from web3.providers.auto import (
lo... | [
"tests/core/providers/test_auto_provider.py::test_get_dev_ipc_path"
] | [
"tests/core/providers/test_auto_provider.py::test_load_provider_from_env[-NoneType-expected_attrs0]",
"tests/core/providers/test_auto_provider.py::test_load_provider_from_env[http://1.2.3.4:5678-HTTPProvider-expected_attrs1]",
"tests/core/providers/test_auto_provider.py::test_load_provider_from_env[https://node... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
ba5ba8c78e97f5dc7fb4e16c588d7be037e6e5e7 | 2017-07-01 16:27:45 | docker.io/swerebenchv2/audreyr-cookiecutter:967-ba5ba8c | audreyr__cookiecutter-967 | Function: merge_configs(default: dict, overwrite: dict) -> dict
Location: cookiecutter/config.py
Inputs:
- **default** – a dictionary representing the base configuration (e.g., DEFAULT_CONFIG). May contain nested dictionaries such as the “abbreviations” mapping.
- **overwrite** – a dictionary with user‑provided values... | python | BSD-3-Clause | diff --git a/cookiecutter/config.py b/cookiecutter/config.py
index f2e7d24..42214b8 100644
--- a/cookiecutter/config.py
+++ b/cookiecutter/config.py
@@ -39,6 +39,25 @@ def _expand_path(path):
return path
+def merge_configs(default, overwrite):
+ """Recursively update a dict with the key/value pair of anothe... | Fix missing builtin abbreviations
Resolve #966 | gh: prefix doesn't work anymore
* Cookiecutter version: 1.5.1
* Template project url: `gh:*`
* Python version: 2.7.13
* Operating System: Linux
### Description:
cookiecutter does not honor prefixes anymore.
### What I've run:
Simply testing the example from the README doesn't work as expected:
``` bas... | audreyr/cookiecutter | diff --git a/tests/test-config/valid-config.yaml b/tests/test-config/valid-config.yaml
index 95150d9..1a10bf5 100644
--- a/tests/test-config/valid-config.yaml
+++ b/tests/test-config/valid-config.yaml
@@ -4,3 +4,5 @@ default_context:
github_username: "example"
cookiecutters_dir: "/home/example/some-path-to-templa... | [
"tests/test_get_config.py::test_merge_configs",
"tests/test_get_config.py::test_get_config",
"tests/test_get_user_config.py::test_get_user_config_valid",
"tests/test_get_user_config.py::test_specify_config_path",
"tests/test_get_user_config.py::test_default_config_from_env_variable"
] | [
"tests/test_get_config.py::test_get_config_does_not_exist",
"tests/test_get_config.py::test_invalid_config",
"tests/test_get_config.py::test_get_config_with_defaults",
"tests/test_get_user_config.py::test_get_user_config_invalid",
"tests/test_get_user_config.py::test_get_user_config_nonexistent",
"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": "complete",
"pr_categories":... |
adf44878d9d0d3a87b805fea40d563963aa76fd9 | 2018-05-05 10:36:33 | docker.io/swerebenchv2/dataversioncontrol-dvc:692-adf4487 | dataversioncontrol__dvc-692 | Method: CmdRemoteList.run(self)
Location: dvc/command/remote.py
Inputs: None (uses the command’s internal configuration loaded from the DVC config files; optional “--local” flag can affect which config files are consulted, but the flag is parsed by the CLI, not by the method itself)
Outputs: int — returns 0 on success;... | python | Apache-2.0 | diff --git a/dvc/cli.py b/dvc/cli.py
index 0ea61e3a5..075aff008 100644
--- a/dvc/cli.py
+++ b/dvc/cli.py
@@ -16,7 +16,7 @@ from dvc.command.gc import CmdGC
from dvc.command.add import CmdAdd
from dvc.command.config import CmdConfig
from dvc.command.checkout import CmdCheckout
-from dvc.command.remote import CmdRemot... | dvc: introduce 'dvc remote list'
Fixes #690
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> | Show all remotes
Something similar to Git is needed:
```
$ git remote
origin
$ git remote -v
origin https://github.com/dataversioncontrol/dvc.git (fetch)
origin https://github.com/dataversioncontrol/dvc.git (push)
``` | dataversioncontrol/dvc | diff --git a/tests/test_remote.py b/tests/test_remote.py
new file mode 100644
index 000000000..8ad6b35b6
--- /dev/null
+++ b/tests/test_remote.py
@@ -0,0 +1,21 @@
+from dvc.main import main
+
+from tests.basic_env import TestDvc
+
+
+class TestRemote(TestDvc):
+ def test(self):
+ remotes = ['a', 'b', 'c']
+
+... | [
"tests/test_remote.py::TestRemote::test"
] | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
e0f614cc390fc70b83cba1c9988cdb7ae4b5d2c6 | 2024-10-15 17:25:49 | docker.io/swerebenchv2/pennylaneai-pennylane:6398-e0f614c | pennylaneai__pennylane-6398 | Function: expand_matrix(mat, wires, wire_order=None, sparse_format="csr")
Location: pennylane.math.matrix_manipulation.expand_matrix
Inputs:
- **mat** (tensor_like): the operator matrix to expand; can be dense or SciPy sparse. Its dimension must be Dⁿ×Dⁿ where D is the qudit dimension and n = len(wires).
- **wires** (I... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 47d0e961d..32c7a43b2 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -273,6 +273,9 @@
<h3>Bug fixes 🐛</h3>
+* Fixes `qml.math.expand_matrix` for qutrit and arbitrary qudit operators.
+ [(#6398)](htt... | fix `expand_matrix` for qudit matrices
**Context:**
We were incorrectly manipulating qutrit matrices.
**Description of the Change:**
Allow `expand_matrix` to work on higher qudit matrices.
**Benefits:**
**Possible Drawbacks:**
**Related GitHub Issues:**
[sc-75501] Fixes #6368 | [BUG] `qml.matrix` gives wrong solutions in `default.qutrit` for more than one wire
### Expected behavior
```python
@qml.qnode(qml.device("default.qutrit", wires = 2))
def circuit():
qml.TShift(wires=0)
qml.TShift(wires=1)
qml.adjoint(qml.TShift)(wires=0)
qml.adjoint(qml.TShift)(wir... | PennyLaneAI/pennylane | diff --git a/tests/math/test_matrix_manipulation.py b/tests/math/test_matrix_manipulation.py
index 5c8be4859..d6b4029a0 100644
--- a/tests/math/test_matrix_manipulation.py
+++ b/tests/math/test_matrix_manipulation.py
@@ -22,6 +22,7 @@ from scipy.sparse import csr_matrix
import pennylane as qml
from pennylane import... | [
"tests/math/test_matrix_manipulation.py::TestExpandMatrixQutrit::test_add_wire_at_end",
"tests/math/test_matrix_manipulation.py::TestExpandMatrixQutrit::test_add_wire_at_start",
"tests/math/test_matrix_manipulation.py::TestExpandMatrixQutrit::test_wire_permutation",
"tests/math/test_matrix_manipulation.py::Te... | [
"tests/math/test_matrix_manipulation.py::TestExpandMatrix::test_no_expansion",
"tests/math/test_matrix_manipulation.py::TestExpandMatrix::test_no_wire_order_returns_base_matrix",
"tests/math/test_matrix_manipulation.py::TestExpandMatrix::test_no_expansion_broadcasted",
"tests/math/test_matrix_manipulation.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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
f09f88d1eb7a089d83cb2426811a45256cbc8410 | 2024-08-26 13:09:07 | docker.io/swerebenchv2/aio-libs-aiohttp:8893-f09f88d | aio-libs__aiohttp-8893 | 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/CHANGES/8845.bugfix.rst b/CHANGES/8845.bugfix.rst
new fi... | [PR #5344/bff76313 backport][3.10] Fix StreamResponse.prepared not returning True after EOF is sent
**This is a backport of PR #5344 as merged into master (bff76313298d8b2c7539f9dc496801ee86ab7097).**
Fixes #5343
I renamed a few tests (i think the `prepared` attribute used to be named `started` and the tests were n... | `web_response.Response.prepared` is `False` after `write_eof()`
`web_response.Response.prepared` is `False` after `write_eof()` (the payload writer goes back to None).
This is a bit mis-leading - any reason not to change `Response.prepared` to `self._eof_sent or self._payload_writer is not None`? | aio-libs/aiohttp | diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
index 96a4f82ba..431971de2 100644
--- a/tests/test_web_functional.py
+++ b/tests/test_web_functional.py
@@ -101,12 +101,8 @@ async def test_handler_returns_not_response(aiohttp_server, aiohttp_client) -> N
server = await aiohttp_server(app, l... | [
"tests/test_web_functional.py::test_handler_returns_not_response[pyloop]",
"tests/test_web_functional.py::test_handler_returns_none[pyloop]",
"tests/test_web_response.py::test_prepared_after_eof",
"tests/test_web_response.py::test_drain_before_start"
] | [
"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_head_returns_empty_body[pyloop]",
"tests/test_web_functional.py::test_default_content_type_no_body[pyloop-201]",
"tests/test_web_functional.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": "B6",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7a0b3f48b69fcfeed40e728cf354aa24f7f2c3ae | 2025-04-28 04:45:43 | docker.io/swerebenchv2/mpmath-mpmath:949-7a0b3f4 | mpmath__mpmath-949 | Function: isspecial(x)
Location: mpmath/__init__.py (exposed as a top‑level function, alias to mp.isspecial)
Inputs: x – any numeric object (int, float, mpf, mpc, MPQ, MPZ, etc.). The function may also accept arbitrary objects that the context can convert.
Outputs: bool – True if *x* is a “special” value (zero, ±inf, o... | python | BSD-3-Clause | diff --git a/mpmath/__init__.py b/mpmath/__init__.py
index 19d703f..a517646 100644
--- a/mpmath/__init__.py
+++ b/mpmath/__init__.py
@@ -75,6 +75,7 @@
isinf = mp.isinf
isnan = mp.isnan
isnormal = mp.isnormal
+isspecial = mp.isspecial
isint = mp.isint
isfinite = mp.isfinite
almosteq = mp.almosteq
diff --git a/mpma... | Add isspecial() method for mp/fp contexts, deprecate isnormal()
Closes #946 | fp.isnormal(5e-324) returns True
This is valid for mp.isnormal(5e-324), as the mp context has no subnormal numbers. But for the fp context we, probably, should follow to usual notion.
Also, the fp context, probably, should have `issubnormal()` function. | mpmath/mpmath | diff --git a/mpmath/tests/test_basic_ops.py b/mpmath/tests/test_basic_ops.py
index ea3894b..701a19f 100644
--- a/mpmath/tests/test_basic_ops.py
+++ b/mpmath/tests/test_basic_ops.py
@@ -9,8 +9,9 @@
import mpmath
from mpmath import (ceil, fadd, fdiv, floor, fmul, fneg, fp, frac, fsub, inf,
- isinf,... | [
"mpmath/tests/test_basic_ops.py::test_type_compare",
"mpmath/tests/test_basic_ops.py::test_add",
"mpmath/tests/test_basic_ops.py::test_sub",
"mpmath/tests/test_basic_ops.py::test_mul",
"mpmath/tests/test_basic_ops.py::test_div",
"mpmath/tests/test_basic_ops.py::test_mod",
"mpmath/tests/test_basic_ops.py... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
3f44cd61ed3d3eaa98148254ab11b850e9a87c1d | 2016-12-02 22:05:46 | docker.io/swerebenchv2/googlecloudplatform-google-auth-library-python:89-3f44cd6 | googlecloudplatform__google-auth-library-python-89 | Method: Signing.signer_email(self)
Location: google.auth.credentials.Signing (abstract base class)
Inputs: None (property getter)
Outputs: Optional[str] – the email address that identifies the signer; raises NotImplementedError if not implemented.
Description: Abstract property that concrete credential classes ... | python | Apache-2.0 | diff --git a/google/auth/app_engine.py b/google/auth/app_engine.py
index 566475e..608651d 100644
--- a/google/auth/app_engine.py
+++ b/google/auth/app_engine.py
@@ -110,3 +110,8 @@ class Credentials(credentials.Scoped, credentials.Signing,
@_helpers.copy_docstring(credentials.Signing)
def sign_bytes(self, mes... | Add Signing.singer_email
Resolves #85 | Consider making `service_account_email` part of the `Signing` interface
google-cloud-python needs both a signer and a service account email to identify the signer to make a [signed url](https://github.com/GoogleCloudPlatform/google-cloud-python/blob/115748814bf6a59d99c13e070dfdcfbdec5e865d/core/google/cloud/credentials... | GoogleCloudPlatform/google-auth-library-python | diff --git a/tests/oauth2/test_service_account.py b/tests/oauth2/test_service_account.py
index 678e6a3..e6ce631 100644
--- a/tests/oauth2/test_service_account.py
+++ b/tests/oauth2/test_service_account.py
@@ -134,6 +134,9 @@ class TestCredentials(object):
signature = self.credentials.sign_bytes(to_sign)
... | [
"tests/oauth2/test_service_account.py::TestCredentials::test_signer_email",
"tests/test_app_engine.py::TestCredentials::test_signer_email",
"tests/test_jwt.py::TestCredentials::test_signer_email"
] | [
"tests/oauth2/test_service_account.py::TestCredentials::test_from_service_account_info",
"tests/oauth2/test_service_account.py::TestCredentials::test_from_service_account_info_args",
"tests/oauth2/test_service_account.py::TestCredentials::test_from_service_account_file",
"tests/oauth2/test_service_account.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": "B2",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/GoogleCloudPlatform/google-cloud-py... |
a484f9a0a0a1ad13f3ec6c5cd2dd68990faf09b3 | 2024-10-29 19:36:52 | docker.io/swerebenchv2/vacanza-holidays:2092-a484f9a | vacanza__holidays-2092 | No new interfaces are introduced. | python | MIT | diff --git a/holidays/countries/germany.py b/holidays/countries/germany.py
index 5f00cc03..e4f6cc70 100644
--- a/holidays/countries/germany.py
+++ b/holidays/countries/germany.py
@@ -12,7 +12,7 @@
from gettext import gettext as tr
-from holidays.calendars.gregorian import MAY, OCT
+from holidays.calendars.gregoria... | Update Germany holidays: add East German Uprising Day 2028 in Berlin
<!--
Thanks for contributing to holidays!
-->
## Proposed change
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Adds the `75th anniversary of the East German uprising of... | Missing 2028-06-17 ("75. Jahrestag des Aufstandes vom 17. Juni 1953"); One-Time Holiday in Berlin, Germany (DE-BE)
## Bug Report
### Expected Behavior
2028-06-17 is a public holiday in DE-BE (Berlin, Germany)
https://gesetze.berlin.de/bsbe/document/jlr-FeiertGBEV8P1
### Actual Behavior
2028-06-17 is not ma... | vacanza/holidays | diff --git a/tests/countries/test_germany.py b/tests/countries/test_germany.py
index e35b3d5a..f284792b 100644
--- a/tests/countries/test_germany.py
+++ b/tests/countries/test_germany.py
@@ -206,6 +206,15 @@ class TestDE(CommonCountryTests, TestCase):
for subdiv in subdivs_that_dont:
self.assertNo... | [
"tests/countries/test_germany.py::TestDE::test_75_jahrestag_des_aufstandes_vom_17_juni_1953"
] | [
"tests/countries/test_germany.py::TestDE::test_1990_present",
"tests/countries/test_germany.py::TestDE::test_75_jahrestag_beendigung_zweiter_weltkrieg",
"tests/countries/test_germany.py::TestDE::test_80_jahrestag_beendigung_zweiter_weltkrieg",
"tests/countries/test_germany.py::TestDE::test_all_holidays_presen... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://gesetze.berlin.de/bsbe/document/jlr-FeiertGBEV... |
d241966101add995fa1e69fae6ae7707faac8ce5 | 2023-05-01 18:18:36 | docker.io/swerebenchv2/myremylar-pygame-gui:453-d241966 | myremylar__pygame_gui-453 | Method: IUIAppearanceThemeInterface.build_all_combined_ids(self, element_base_ids: Union[None, List[Union[str, None]]], element_ids: Union[None, List[str]], class_ids: Union[None, List[Union[str, None]]], object_ids: Union[None, List[Union[str, None]]]) → List[str]
Location: pygame_gui/core/interfaces/appearance_theme_... | python | MIT | diff --git a/docs/source/theme_reference/theme_colour_picker_dialog.rst b/docs/source/theme_reference/theme_colour_picker_dialog.rst
index 80e6490..1ce87be 100644
--- a/docs/source/theme_reference/theme_colour_picker_dialog.rst
+++ b/docs/source/theme_reference/theme_colour_picker_dialog.rst
@@ -3,7 +3,8 @@
UIColourPi... | Add 'base_id' capability to allow windows to have two element ids
A window can now be both a 'window' and e.g. a 'file_dialog'.
fixes #451 | pygame_gui.windows.UIFileDialog changing object_id has strange behavior
**Describe the bug**
With class pygame_gui.windows.UIFileDialog, setting object_id to anything other than the default "#file_dialog" results in the four little buttons for home, unknown, parent and refresh to not render correctly. They show up as ... | MyreMylar/pygame_gui | diff --git a/tests/test_core/test_text/test_html_parser.py b/tests/test_core/test_text/test_html_parser.py
index 63828cc..2a2cccc 100644
--- a/tests/test_core/test_text/test_html_parser.py
+++ b/tests/test_core/test_text/test_html_parser.py
@@ -10,7 +10,8 @@ from pygame_gui.core.text import HTMLParser, LineBreakLayoutR... | [
"tests/test_core/test_text/test_html_parser.py::TestHTMLParser::test_creation",
"tests/test_core/test_text/test_html_parser.py::TestHTMLParser::test_handle_start_tag",
"tests/test_core/test_text/test_html_parser.py::TestHTMLParser::test_handle_end_tag",
"tests/test_core/test_text/test_html_parser.py::TestHTML... | [
"tests/test_core/test_text/test_text_box_layout_row.py::TestTextBoxLayoutRow::test_creation",
"tests/test_core/test_text/test_text_box_layout_row.py::TestTextBoxLayoutRow::test_at_start",
"tests/test_core/test_text/test_text_box_layout_row.py::TestTextBoxLayoutRow::test_add_item",
"tests/test_core/test_text/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.94,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
537d7b03932263062d37a7e747f19a385709b9f7 | 2025-03-17 20:52:59 | docker.io/swerebenchv2/astanin-python-tabulate:362-537d7b0 | astanin__python-tabulate-362 | No new interfaces are introduced. | python | MIT | diff --git a/tabulate/__init__.py b/tabulate/__init__.py
index b15d7f0..b937d6c 100644
--- a/tabulate/__init__.py
+++ b/tabulate/__init__.py
@@ -1641,13 +1641,7 @@ def _wrap_text_to_colwidths(list_of_lists, colwidths, numparses=True):
if width is not None:
wrapper = _CustomTextWrap(width... | Fix handling "True"/"False" bool str and None
calling `_type` is incorrect here; the subsequent lines need a `str`. Also you can't reconstruct `None` with `type(None)(None)` anyway. This regressed in e8e3091d46966f462735f227d5ef4effdfaa0582
Fixes #305 | Can not tabulate row with a field that looks like a Python Bool using maxcolwidths
The following line will fail with an error about "bool' object has no attribute 'expandtabs'
tabulate.tabulate([['init','True']], maxcolwidths=[None, 42])
This happens because the _wrap_text_to_col_widths method casts the cell ... | astanin/python-tabulate | diff --git a/test/test_textwrapper.py b/test/test_textwrapper.py
index 8c0a6cc..46dd818 100644
--- a/test/test_textwrapper.py
+++ b/test/test_textwrapper.py
@@ -220,3 +220,27 @@ def test_wrap_datetime():
]
expected = "\n".join(expected)
assert_equal(expected, result)
+
+
+def test_wrap_optional_bool_strs... | [
"test/test_textwrapper.py::test_wrap_optional_bool_strs"
] | [
"test/test_textwrapper.py::test_wrap_multiword_non_wide",
"test/test_textwrapper.py::test_wrap_multiword_non_wide_with_hypens",
"test/test_textwrapper.py::test_wrap_longword_non_wide",
"test/test_textwrapper.py::test_wrapper_len_ignores_color_chars",
"test/test_textwrapper.py::test_wrap_full_line_color",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
bb75cec0cda23c9a1641eda4871c23615c302a36 | 2025-04-11 11:02:02 | docker.io/swerebenchv2/vacanza-holidays:2463-bb75cec | vacanza__holidays-2463 | Method: Oman.__init__(self, islamic_show_estimated: bool = True, *args, **kwargs)
Location: holidays/countries/oman.py
Inputs:
- islamic_show_estimated (bool): flag indicating whether Islamic holidays that are date‑estimated should have the “(estimated)” label.
- *args, **kwargs: forwarded to the base HolidayBase (e.g... | python | MIT | diff --git a/README.md b/README.md
index 568d47c9..91cbcabd 100644
--- a/README.md
+++ b/README.md
@@ -99,7 +99,7 @@ and detailed information.
## Available Countries
-We currently support 167 country codes. The standard way to refer to a country is by using its [ISO
+We currently support 168 country codes. The sta... | Add Oman holidays
<!--
Thanks for contributing to holidays!
-->
## I've added Oman's Holidays.
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Resolves #1237.
## Type of change
<!--
Type of change you want to introduce. Please, ... | Add Oman holidays
Links:
- https://en.wikipedia.org/wiki/Public_holidays_in_Oman
- https://www.timeanddate.com/holidays/oman/ | vacanza/holidays | diff --git a/tests/countries/test_oman.py b/tests/countries/test_oman.py
new file mode 100644
index 00000000..10a6be38
--- /dev/null
+++ b/tests/countries/test_oman.py
@@ -0,0 +1,238 @@
+# holidays
+# --------
+# A fast, efficient Python library for generating country, province and state
+# specific sets of holiday... | [
"tests/countries/test_oman.py::TestOman::test_2019",
"tests/countries/test_oman.py::TestOman::test_2021",
"tests/countries/test_oman.py::TestOman::test_accession_day",
"tests/countries/test_oman.py::TestOman::test_code",
"tests/countries/test_oman.py::TestOman::test_country_aliases",
"tests/countries/test... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://en.wikipedia.org/wiki/Public_holidays_in_Oman"... |
d9f16f411fdf5eb6ad752f984782dd06ed882dc8 | 2022-02-22 18:02:30 | docker.io/swerebenchv2/cs-si-eodag:405-d9f16f4 | cs-si__eodag-405 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py
index 3202c76a..fe7d3573 100644
--- a/eodag/plugins/download/aws.py
+++ b/eodag/plugins/download/aws.py
@@ -253,11 +253,17 @@ class AwsDownload(Download):
bucket_names_and_prefixes = [self.get_bucket_name_and_prefix(product)]
... | fix: productPath regex for earth_search
fixes #402, answers [#404 ](https://github.com/CS-SI/eodag/discussions/404)
- handle missing files error during SAFE build
- fixes issue in `productPath` property extraction regex for `earth_search` provider | finalize_s2_safe_product: Fails when missing manifest.safe
When downloading some products on `earth_search`, I have a problem when converting the product format to `.SAFE`:

![2022-02-22_14h48_... | CS-SI/eodag | diff --git a/tests/units/test_search_plugins.py b/tests/units/test_search_plugins.py
index 405451a8..47ced2e6 100644
--- a/tests/units/test_search_plugins.py
+++ b/tests/units/test_search_plugins.py
@@ -297,3 +297,50 @@ class TestSearchPluginODataV4Search(BaseSearchPluginTest):
self.assertEqual(estimate, self.... | [
"tests/units/test_search_plugins.py::TestSearchPluginStacSearch::test_plugins_search_stacsearch_mapping_earthsearch"
] | [
"tests/units/test_search_plugins.py::TestSearchPluginQueryStringSearch::test_plugins_search_querystringseach_count_and_search_sobloo",
"tests/units/test_search_plugins.py::TestSearchPluginQueryStringSearch::test_plugins_search_querystringseach_no_count_and_search_sobloo",
"tests/units/test_search_plugins.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": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://user-images.githubusercontent.com/67311115/155... |
becdddd1eabdde488d555ae010f826329d51e6f8 | 2020-06-03 07:55:07 | docker.io/swerebenchv2/liampauling-flumine:199-becdddd | liampauling__flumine-199 | Method: BaseClient.__init__(self, betting_client: BettingClient, market_filter: dict = None, capital_base: float = DEFAULT_CAPITAL_BASE, commission_base: float = DEFAULT_COMMISSION_BASE, interactive_login: bool = False, id_: str = None, order_stream: bool = True)
Location: flumine/clients/baseclient.py
Inputs:
- ... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 7f7b70a..860a60f 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,18 +3,6 @@
Release History
---------------
-1.6.3 (2020-06-03)
-+++++++++++++++++++
-
-**Improvements**
-
-- #178 Client order stream disable/enable
-- #179 Info properties
-
-**Bug Fixes**
-
-- #191 missi... | closes #178
allow order stream to be disabled (enabled by default)
remove incorrect add_simulated, this is for paper trading only | Allow order stream to be disabled
Often a user will want to only record data therefore it should be possible to disable the order stream from starting (reduces the number of threads)
Ideally this is done on the Client object
```python
client.enable_order_stream: bool = False
``` | liampauling/flumine | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 79d1968..1c30c22 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -65,8 +65,6 @@ jobs:
- name: Publish
run: |
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"... | [
"tests/test_clients.py::BaseClientTest::test_init",
"tests/test_streams.py::StreamsTest::test_add_client_no_order_stream"
] | [
"tests/test_clients.py::ClientsTest::test_exchange_type",
"tests/test_clients.py::BaseClientTest::test_add_execution",
"tests/test_clients.py::BaseClientTest::test_keep_alive",
"tests/test_clients.py::BaseClientTest::test_login",
"tests/test_clients.py::BaseClientTest::test_logout",
"tests/test_clients.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
b9df39e3fb4c6bfa061eaba32b1f30fd67aa832f | 2021-07-12 12:47:33 | docker.io/swerebenchv2/liampauling-flumine:467-b9df39e | liampauling__flumine-467 | Method: OrderPackage.reset_orders(self, complete: bool = False) -> None
Location: flumine/order/orderpackage.py
Inputs:
- **self**: the OrderPackage (or any subclass of BaseOrderPackage) containing an iterable collection of Order objects.
- **complete** (optional): a boolean flag (default False). When **True**, each o... | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 3839ad2..ba5e507 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -12,6 +12,7 @@ Release History
**Bug Fixes**
- #454 SP nr size adjustment (@jsphon)
+- #464 wrong order state after multiple connection reset errors
1.19.6 (2021-07-09)
+++++++++++++++++++
diff --git a/fl... | wrong order state after multiple connection reset errors
closes #464 | Wrong order state after multiple connection reset errors
Hi!
I sometimes get multiple `ConnectionResetError`s when trying to cancel an order, even when retrying. After the last failed attempt, the order state is not properly reset, but remains `CANCELLING`.
I looked at the code to execute the cancel operation:
h... | liampauling/flumine | diff --git a/tests/test_execution.py b/tests/test_execution.py
index 814a12d..cf5e2f0 100644
--- a/tests/test_execution.py
+++ b/tests/test_execution.py
@@ -833,6 +833,33 @@ class BetfairExecutionTest(unittest.TestCase):
mock_trading_function.assert_called_with(mock_order_package, mock_session)
mock__... | [
"tests/test_execution.py::BetfairExecutionTest::test__execution_helper_error_no_retry",
"tests/test_execution.py::BetfairExecutionTest::test__execution_helper_error_no_retry_place",
"tests/test_middleware.py::SimulatedMiddlewareTest::test__process_runner_removal_sp_place",
"tests/test_middleware.py::Simulated... | [
"tests/test_execution.py::BaseExecutionTest::test__create_new_session",
"tests/test_execution.py::BaseExecutionTest::test__get_http_session",
"tests/test_execution.py::BaseExecutionTest::test__get_http_session_stale",
"tests/test_execution.py::BaseExecutionTest::test__order_logger_cancel",
"tests/test_execu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/liampauling/flumine/blob/4da58825ae... |
ae50236379a79289586483b022d83c59b7d2bf26 | 2021-12-20 05:28:20 | docker.io/swerebenchv2/quora-pyanalyze:357-ae50236 | quora__pyanalyze-357 | Function: overload(func: Callable[..., Any]) -> Callable[..., Any]
Location: pyanalyze/extensions.py
Inputs: A callable object (function) that represents an overload signature. The callable may have any parameter and return type annotations.
Outputs: The same callable is returned unchanged. The decorator records the ov... | python | Apache-2.0 | diff --git a/pyanalyze/arg_spec.py b/pyanalyze/arg_spec.py
index 2448a10..3d5a0c6 100644
--- a/pyanalyze/arg_spec.py
+++ b/pyanalyze/arg_spec.py
@@ -18,6 +18,7 @@ from .safe import (
safe_issubclass,
is_typing_name,
safe_isinstance,
+ get_fully_qualified_name,
)
from .stacked_scopes import Composite... | patch @typing.overload
So we can (usually) typecheck libraries that use `@overload`.
Closes #182. | Support overloaded functions
Pyanalyze currently doesn't support overloaded functions at all. It should. Some thoughts in no particular order:
- Supporting overloads for runtime code is hard because the overloads aren't stored in the module dict. The best solution I can think of is to add a `pyanalyze.extensions.overl... | quora/pyanalyze | diff --git a/pyanalyze/test_signature.py b/pyanalyze/test_signature.py
index a998aaf..26eccf5 100644
--- a/pyanalyze/test_signature.py
+++ b/pyanalyze/test_signature.py
@@ -1150,3 +1150,30 @@ class TestOverload(TestNameCheckVisitorBase):
assert_is_value(f.__round__(None), TypedValue(int))
f.__... | [
"pyanalyze/test_signature.py::TestOverload::test_runtime"
] | [
"pyanalyze/test_signature.py::test_stringify",
"pyanalyze/test_signature.py::TestCanAssign::test_return_value",
"pyanalyze/test_signature.py::TestCanAssign::test_pos_only",
"pyanalyze/test_signature.py::TestCanAssign::test_pos_or_keyword",
"pyanalyze/test_signature.py::TestCanAssign::test_kw_only",
"pyana... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
2903afcb46b9846ba4736c84db9489f0c5d3f800 | 2019-05-13 21:31:34 | docker.io/swerebenchv2/theacodes-nox:185-2903afc | theacodes__nox-185 | Method: Manifest.list_all_sessions(self)
Location: nox/manifest.py
Inputs: *self* – the Manifest instance.
Outputs: An iterator yielding tuples *(session_obj, selected)* where *session_obj* is a session namespace and *selected* is a **bool** indicating whether the session is in the execution queue (i.e., will be run). ... | python | Apache-2.0 | diff --git a/nox/__main__.py b/nox/__main__.py
index 24fd899..093d0f7 100644
--- a/nox/__main__.py
+++ b/nox/__main__.py
@@ -57,6 +57,7 @@ class GlobalConfig:
self.install_only = args.install_only
self.posargs = args.posargs
self.report = args.report
+ self.color = not args.nocolor or ... | Make --list list all available sessions, not just the selected ones.
Closes #161 | List all sections when a list of sections is set using nox.options
**Describe the bug**
Setting `nox.options.sessions` results in `nox -l` only those sections, not all the sections.
**How to reproduce**
Create a `noxfile.py` with 3 sessions (format, tests, docs) and set `nox.options.sessions = ["format"]`, then ru... | theacodes/nox | diff --git a/tests/test_main.py b/tests/test_main.py
index 5c43652..861d6a8 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -51,6 +51,8 @@ class TestGlobalConfig:
install_only=False,
posargs=["a", "b", "c"],
report=None,
+ nocolor=False,
+ forceco... | [
"tests/test_manifest.py::test_list_all_sessions_with_filter",
"tests/test_tasks.py::test_honor_list_request[None]",
"tests/test_tasks.py::test_honor_list_request[bar]",
"tests/test_tasks.py::test_honor_list_request_skip_and_selected"
] | [
"tests/test_main.py::TestGlobalConfig::test_constructor",
"tests/test_main.py::TestGlobalConfig::test_merge_from_options_no_changes",
"tests/test_main.py::TestGlobalConfig::test_merge_from_options_options_by_default",
"tests/test_main.py::TestGlobalConfig::test_merge_from_options_args_precedence",
"tests/te... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2|B6",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": true
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories... |
b59e2819c647ae0d52ad9ff2be083411ac4b06af | 2024-03-05 13:03:34 | docker.io/swerebenchv2/cubed-dev-cubed:410-b59e281 | cubed-dev__cubed-410 | Function: finfo(type)
Location: cubed.array_api.data_type_functions
Inputs:
- **type**: a dtype object (e.g., `float32`, `int64`) or a scalar type accepted by the backend’s `finfo`. Must be a floating‑point dtype.
Outputs:
- An object (named `finfo_object` in the original implementation) exposing the attributes `bits... | python | Apache-2.0 | diff --git a/cubed/__init__.py b/cubed/__init__.py
index 19ef3958..c04ce4d0 100644
--- a/cubed/__init__.py
+++ b/cubed/__init__.py
@@ -1,10 +1,3 @@
-# Suppress numpy.array_api experimental warning
-import sys
-import warnings
-
-if not sys.warnoptions:
- warnings.filterwarnings("ignore", category=UserWarning)
-
fro... | Delegate dtype functions to backend array API
Fixes #407 | Removing `numpy.array_api` import
Hi, I noticed through code search that there are a few comments in this repo that reference `numpy.array_api` and (more importantly) one import:
https://github.com/cubed-dev/cubed/blob/76ea07e6301c53202b990442677e1c82da5e2a3a/cubed/array_api/data_type_functions.py#L4
I wanted to ... | cubed-dev/cubed | diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml
index 76a28d54..c1040275 100644
--- a/.github/workflows/array-api-tests.yml
+++ b/.github/workflows/array-api-tests.yml
@@ -101,15 +101,14 @@ jobs:
array_api_tests/test_statistical_functions.py::test_std
arr... | [
"cubed/tests/test_random.py::test_random[executor0]",
"cubed/tests/test_random.py::test_random_add[executor0]",
"cubed/tests/test_random.py::test_random_seed[executor0]",
"cubed/tests/test_random.py::test_random[executor1]",
"cubed/tests/test_random.py::test_random_add[executor1]",
"cubed/tests/test_rando... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/numpy/numpy/pull/25911",
"htt... |
8cb522b4190bd556ce51be04942720650b1a3e57 | 2025-02-13 20:03:44 | docker.io/swerebenchv2/huggingface-transformers:36184-8cb522b | huggingface__transformers-36184 | Function: get_steps_per_epoch(trainer: Trainer) -> int
Location: src/transformers/testing_utils.py
Inputs:
- trainer (Trainer): an instantiated Trainer whose training arguments and dataloaders are already configured.
Outputs:
- int: the number of training steps in a single epoch, derived from the Trainer’s initial tr... | python | Apache-2.0 | diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py
index 727661137c..7ddd519391 100755
--- a/src/transformers/modeling_utils.py
+++ b/src/transformers/modeling_utils.py
@@ -4831,6 +4831,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
err... | Try working around the processor registration bugs
Draft PR for now, will write a full desc when it's ready!
Update: Posted the full desc in a comment below
Fixes #34307 | Initializing via AutoImageProcessor before AutoProcessor is imported causes `AttributeError`
### System Info
- `transformers` version: 4.45.2
- Platform: Linux-4.18.0-513.18.1.el8_9.x86_64-x86_64-with-glibc2.28
- Python version: 3.10.4
- Huggingface_hub version: 0.24.5
- Safetensors version: 0.4.4
- Accelerate ... | huggingface/transformers | diff --git a/src/transformers/testing_utils.py b/src/transformers/testing_utils.py
index 0b4307dff6..d75c2d778f 100644
--- a/src/transformers/testing_utils.py
+++ b/src/transformers/testing_utils.py
@@ -38,7 +38,7 @@ from dataclasses import MISSING, fields
from functools import wraps
from io import StringIO
from pat... | [
"tests/models/auto/test_processor_auto.py::AutoFeatureExtractorTest::test_dynamic_processor_with_specific_dynamic_subcomponents"
] | [
"tests/models/auto/test_processor_auto.py::AutoFeatureExtractorTest::test_auto_processor_creates_tokenizer",
"tests/models/auto/test_processor_auto.py::AutoFeatureExtractorTest::test_from_pretrained_dynamic_processor",
"tests/models/auto/test_processor_auto.py::AutoFeatureExtractorTest::test_from_pretrained_dyn... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B1",
"confidence": 0.88,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a0086d1e86f28ee42d32f903602268fd8829f789 | 2024-06-17 07:07:27 | docker.io/swerebenchv2/marketsquare-robotframework-robocop:1094-a0086d1 | marketsquare__robotframework-robocop-1094 | Function: comma_separated_list(value: str)
Location: robocop/checkers/misc.py
Inputs: <value: a single string containing identifiers separated by commas, e.g. "section,var">
Outputs: <List[str] – the individual identifiers obtained by splitting the input on commas>
Description: <Parses a comma‑separated configuration v... | python | Apache-2.0 | diff --git a/docs/releasenotes/unreleased/rules.1.rst b/docs/releasenotes/unreleased/rules.1.rst
new file mode 100644
index 0000000..ae75c73
--- /dev/null
+++ b/docs/releasenotes/unreleased/rules.1.rst
@@ -0,0 +1,5 @@
+empty-variable can be now disabled for VAR (#1056)
+-------------------------------------------------... | Make empty-variable configurable
Closes #1056 | Option to disable empty-variable rule for VAR and leave it for *** Variables *** section
Since new `VAR` syntax has by default the same settings as creating empty variables in `*** Variables ***` section, it is inconsistent with old `Create Dictionary` / `Create List` / `Set Variable` keywords that allowed creating emp... | MarketSquare/robotframework-robocop | diff --git a/tests/atest/rules/misc/empty_variable/expected_output_var.txt b/tests/atest/rules/misc/empty_variable/expected_output_var.txt
new file mode 100644
index 0000000..ad87cce
--- /dev/null
+++ b/tests/atest/rules/misc/empty_variable/expected_output_var.txt
@@ -0,0 +1,4 @@
+test.robot:51:5 [I] 0912 Use built-in ... | [
"tests/atest/rules/misc/empty_variable/test_rule.py::TestRuleAcceptance::test_rule_only_var",
"tests/atest/rules/misc/empty_variable/test_rule.py::TestRuleAcceptance::test_rule_only_var_section"
] | [
"tests/atest/rules/misc/empty_variable/test_rule.py::TestRuleAcceptance::test_rule"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
99be20c6a0f341549a286bd05c576ba092e7dd2f | 2021-04-08 16:19:43 | docker.io/swerebenchv2/sappelhoff-pyprep:57-99be20c | sappelhoff__pyprep-57 | Function: _mat_quantile(arr, q, axis=None)
Location: pyprep.utils
Inputs:
- **arr** (np.ndarray): Input data array containing the sample values.
- **q** (float): Desired quantile between 0 and 1 inclusive.
- **axis** (int, tuple of ints, or None, optional): Axis or axes along which to compute the quantile. If None the ... | python | MIT | diff --git a/docs/whats_new.rst b/docs/whats_new.rst
index 8943538..cec22ab 100644
--- a/docs/whats_new.rst
+++ b/docs/whats_new.rst
@@ -42,6 +42,7 @@ Bug
~~~
- Fixed RANSAC to give consistent results with a fixed seed across different chunk sizes, by `Austin Hurst`_ and `Yorguin Mantilla`_ (:gh:`43`)
- Fixed "bad c... | Add MATLAB-style implementations of the quantile and IQR functions
# PR Description
Closes #56. As mentioned in that issue, MATLAB's quantile and IQR functions calculate quantiles slightly differently than Numpy and SciPy, leading to higher sensitivity to differences in channel correlation than in the original MATLA... | Bad channels by correlation differ between PyPREP and MATLAB PREP
In my recent comparison efforts, I noticed that the numbers of initial bad channels by correlation sometimes differed slightly between PyPREP and MATLAB PREP. Since this code doesn't involve any random number generation, it should always be consistent be... | sappelhoff/pyprep | diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
index 0000000..1eb36b2
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,37 @@
+"""Test various helper functions."""
+import numpy as np
+
+from pyprep.utils import _mat_quantile, _mat_iqr
+
+
+def test_mat_quantile_iqr():
+ """Test MATLAB-... | [
"tests/test_utils.py::test_mat_quantile_iqr"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/sappelhoff/pyprep/blob/8476ea5c1f80... |
c1d85a005d4a258dba98a98f875301d1a6da2d83 | 2023-02-02 23:07:23 | docker.io/swerebenchv2/getmoto-moto:5899-c1d85a0 | getmoto__moto-5899 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/iam/models.py b/moto/iam/models.py
index 3177c4780..f60a00470 100644
--- a/moto/iam/models.py
+++ b/moto/iam/models.py
@@ -2470,7 +2470,8 @@ class IAMBackend(BaseBackend):
def add_user_to_group(self, group_name, user_name):
user = self.get_user(user_name)
group = self.get_group(... | IAM: add_user_to_group() should be idempotent
Fixes #5897 | [IAM] Adding user the same IAM group twice causes the group to become "sticky"
Hi team.
Discovered an interesting behavior of mock_s3: if I add an IAM user to an IAM group and then remove the user from the group, everything works as expected, i.e. as a result the user is not a member of any group. However, if I add th... | getmoto/moto | diff --git a/tests/test_iam/test_iam_groups.py b/tests/test_iam/test_iam_groups.py
index 5efa67e69..dc2d0ff60 100644
--- a/tests/test_iam/test_iam_groups.py
+++ b/tests/test_iam/test_iam_groups.py
@@ -23,7 +23,7 @@ MOCK_POLICY = """
@mock_iam
-def test_create_group_boto3():
+def test_create_group():
conn = bo... | [
"tests/test_iam/test_iam_groups.py::test_add_user_should_be_idempotent"
] | [
"tests/test_iam/test_iam_groups.py::test_create_group",
"tests/test_iam/test_iam_groups.py::test_get_group",
"tests/test_iam/test_iam_groups.py::test_get_group_current",
"tests/test_iam/test_iam_groups.py::test_get_all_groups",
"tests/test_iam/test_iam_groups.py::test_add_unknown_user_to_group",
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b8c0311ce33808346ba3ab2a2e44f40a77bcab89 | 2024-04-14 22:10:10 | docker.io/swerebenchv2/openmdao-openmdao:3190-b8c0311 | openmdao__openmdao-3190 | No new interfaces are introduced. | python | custom-check-github | diff --git a/openmdao/components/add_subtract_comp.py b/openmdao/components/add_subtract_comp.py
index 2c46d5937..44862305b 100644
--- a/openmdao/components/add_subtract_comp.py
+++ b/openmdao/components/add_subtract_comp.py
@@ -7,6 +7,7 @@ import numpy as np
from scipy import sparse as sp
from openmdao.core.explic... | Warning in AddSubtractComp for duplicate input names
### Summary
Added a warning when an input is connected to the same equation multiple times, since this double-counts the value. Also added a new unit test which makes sure that the warning is only issued when duplicate inputs are in the input names.
### Related... | AddSubtractComp allows the same input multiple times
### Description
It is possible to define an input multiple times when using the 'AddSubtractComp'. This is confusing as it double-counts that value.
I would appreciate at least a warning if that happens.
### Example
import openmdao.api as om
def opt_... | OpenMDAO/OpenMDAO | diff --git a/openmdao/components/tests/test_add_subtract_comp.py b/openmdao/components/tests/test_add_subtract_comp.py
index 856b7cb8a..01b17dcfc 100644
--- a/openmdao/components/tests/test_add_subtract_comp.py
+++ b/openmdao/components/tests/test_add_subtract_comp.py
@@ -3,7 +3,8 @@ import unittest
import numpy as np... | [
"openmdao/components/tests/test_add_subtract_comp.py::TestDuplicateWarning::test_if_warning"
] | [
"openmdao/components/tests/test_add_subtract_comp.py::TestAddSubtractCompScalars::test_partials",
"openmdao/components/tests/test_add_subtract_comp.py::TestAddSubtractCompScalars::test_results",
"openmdao/components/tests/test_add_subtract_comp.py::TestAddSubtractCompNx1::test_partials",
"openmdao/components/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": [... |
7d25322a986a8061007958acd6cae481771dee83 | 2021-08-27 11:55:08 | docker.io/swerebenchv2/materials-consortia-optimade-python-tools:914-7d25322 | materials-consortia__optimade-python-tools-914 | Function: check_reduced_formulae(value, field)
Location: optimade/models/structures.py
Inputs:
- **value** *(str | None)* – the chemical formula string supplied to either `chemical_formula_anonymous` or `chemical_formula_reduced`. May be ``None`` which bypasses validation.
- **field** *(pydantic.fields.ModelField)* ... | python | MIT | diff --git a/optimade/models/structures.py b/optimade/models/structures.py
index 5d9ab1aa..00c6d059 100644
--- a/optimade/models/structures.py
+++ b/optimade/models/structures.py
@@ -1,6 +1,9 @@
# pylint: disable=no-self-argument,line-too-long,no-name-in-module
import re
import warnings
+import sys
+import math
+fro... | Add validator to check whether anonymous and reduced formulae are reduced
Closes #913. | Add validation that anonymous/reduced chemical formulae are in fact reduced
Prompted by https://github.com/aiidateam/aiida-optimade/issues/279.
We should add validators that check that the chemical formulae presented in `chemical_formula_reduced` and `chemical_formula_anonymous` are in fact reduced, e.g. that for A<... | Materials-Consortia/optimade-python-tools | diff --git a/tests/models/test_structures.py b/tests/models/test_structures.py
index 84979385..4fa91118 100644
--- a/tests/models/test_structures.py
+++ b/tests/models/test_structures.py
@@ -166,6 +166,22 @@ deformities = (
{"chemical_formula_reduced": "Ag6 Cl2"},
"chemical_formula_reduced\n string d... | [
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity24]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity25]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity26]",
"tests/models/test_structures.py::test_structure_fatal_deformiti... | [
"tests/models/test_structures.py::test_good_structure_with_missing_data",
"tests/models/test_structures.py::test_structure_fatal_deformities[None]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity1]",
"tests/models/test_structures.py::test_structure_fatal_deformities[deformity2]",... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/aiidateam/aiida-optimade/issues/279... |
f9108ac61728eeb4c35899e5b49035aee00288ee | 2024-07-24 09:49:59 | docker.io/swerebenchv2/cta-observatory-ctapipe:2602-f9108ac | cta-observatory__ctapipe-2602 | Method: ImageCleaner.__call__(self, tel_id: int, image: numpy.ndarray, arrival_times: numpy.ndarray, monitoring: MonitoringCameraContainer | None = None)
Location: src/ctapipe/image/cleaning.py
Inputs:
- tel_id (int): Identifier of the telescope to clean.
- image (numpy.ndarray): Pixel charge values for the event.
- a... | python | BSD-3-Clause | diff --git a/docs/changes/2602.bugfix.rst b/docs/changes/2602.bugfix.rst
new file mode 100644
index 00000000..34275815
--- /dev/null
+++ b/docs/changes/2602.bugfix.rst
@@ -0,0 +1,3 @@
+Fix ``NSBImageCleaner`` that tries to reach the tel attribute
+from a MonitoringCameraContainer which results in an AttributeError
+whe... | Delete tel attribute from MonitoringCameraContainer in NSBImageCleaner
Fixes #2601
Adding `MonitoringCameraContainer` to tests | NSBImageCleaner tries to reach the tel attribute from the MonitoringCameraContainer
'NSBImageCleaner' tries to reach the 'tel' attribute from the 'MonitoringCameraContainer' here
https://github.com/cta-observatory/ctapipe/blob/f9108ac61728eeb4c35899e5b49035aee00288ee/src/ctapipe/image/cleaning.py#L802
which results... | cta-observatory/ctapipe | diff --git a/src/ctapipe/image/tests/test_image_cleaner_component.py b/src/ctapipe/image/tests/test_image_cleaner_component.py
index e0f34829..6bfe4379 100644
--- a/src/ctapipe/image/tests/test_image_cleaner_component.py
+++ b/src/ctapipe/image/tests/test_image_cleaner_component.py
@@ -2,6 +2,7 @@ import numpy as np
i... | [
"src/ctapipe/image/tests/test_image_cleaner_component.py::test_image_cleaner[NSBImageCleaner]"
] | [
"src/ctapipe/image/tests/test_image_cleaner_component.py::test_image_cleaner[TailcutsImageCleaner]",
"src/ctapipe/image/tests/test_image_cleaner_component.py::test_image_cleaner[MARSImageCleaner]",
"src/ctapipe/image/tests/test_image_cleaner_component.py::test_image_cleaner[FACTImageCleaner]",
"src/ctapipe/im... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/cta-observatory/ctapipe/blob/f9108ac6... |
2a8017076e0a4669f2e2e55e2198aadacb13bb83 | 2024-08-07 09:24:45 | docker.io/swerebenchv2/getmoto-moto:7940-2a80170 | getmoto__moto-7940 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py
index ce66fef66..7943659cc 100644
--- a/moto/awslambda/models.py
+++ b/moto/awslambda/models.py
@@ -1150,9 +1150,9 @@ class LambdaFunction(CloudFormationModel, DockerModel):
spec = {
"Code": properties["Code"],
"Function... | AWSLambda: Allow CF creation of Lambdas with ImageURI's
Fixes #7853 | Moto doesn't support mock cloudformation which has a lambda resource deployed as container
## Reporting Bugs
**how to reproduce the issue**
```
import os
import pytest
import json
import boto3
from moto import mock_aws
from unittest.mock import Mock
dummy_template = {
"AWSTemplateFormatVersion": "2010... | getmoto/moto | diff --git a/tests/test_awslambda/test_awslambda_cloudformation.py b/tests/test_awslambda/test_awslambda_cloudformation.py
index 09e3edf8c..6e1198a0f 100644
--- a/tests/test_awslambda/test_awslambda_cloudformation.py
+++ b/tests/test_awslambda/test_awslambda_cloudformation.py
@@ -1,4 +1,5 @@
import io
+import json
im... | [
"tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_with_code_image_can_be_created"
] | [
"tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_can_be_updated_by_cloudformation",
"tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_can_be_deleted_by_cloudformation"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/getmoto/moto/blob/master/moto/awslamb... |
94830ccd0deeb959a2f3d426be07772d4e414ff8 | 2020-03-26 04:54:40 | docker.io/swerebenchv2/pythainlp-pythainlp:371-94830cc | pythainlp__pythainlp-371 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py
index 7bccff38..f4fed0d7 100644
--- a/pythainlp/__init__.py
+++ b/pythainlp/__init__.py
@@ -2,26 +2,33 @@
__version__ = "2.2.0-dev0"
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
+
thai_vowels = (
- "ฤฦะ\u0e31าำ\u0e34\u0e3... | Improve normalize() function
This will close #372
- Improve text normalization function
- Replace Thai characters with Unicode literals for readability
| Generalized reorder rules in text normalization
- Generalized `Nikhahit + Tonemark + Sara A` case to also cover `Nikhahit + Sara A`
- New rule: `Nikhahit + TONEMARK* + Sara Aa -> TONEMARK* + Sara Am`
- Generalized `Sara Am + Tonemark` case to also cover follow vowels
- New rule: `FOLLOWVOWEL+ + TONEMARK+ -> TONE... | PyThaiNLP/pythainlp | diff --git a/tests/test_util.py b/tests/test_util.py
index 3ba011e3..585a29e9 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -255,9 +255,30 @@ class TestUtilPackage(unittest.TestCase):
self.assertEqual(deletetone("จิ้น"), delete_tone("จิ้น"))
def test_normalize(self):
+ self.assertIs... | [
"tests/test_util.py::TestUtilPackage::test_normalize"
] | [
"tests/test_util.py::TestUtilPackage::test_collate",
"tests/test_util.py::TestUtilPackage::test_countthai",
"tests/test_util.py::TestUtilPackage::test_date",
"tests/test_util.py::TestUtilPackage::test_delete_tone",
"tests/test_util.py::TestUtilPackage::test_is_native_thai",
"tests/test_util.py::TestUtilPa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e5eff384edd5e55927fcb78007c37e13f5a567c4 | 2020-12-19 16:52:07 | docker.io/swerebenchv2/pyfar-pyfar:67-e5eff38 | pyfar__pyfar-67 | Method: Signal.reshape(self, newshape)
Location: pyfar/signal.py – class Signal
Inputs:
- newshape (int or tuple of ints): Desired channel shape (cshape) for the returned signal. One dimension may be -1 to infer its size; the total number of channel elements must match the original signal’s cshape. Raises ValueError if... | python | MIT | diff --git a/pyfar/signal.py b/pyfar/signal.py
index 5566681c..b4432056 100644
--- a/pyfar/signal.py
+++ b/pyfar/signal.py
@@ -309,6 +309,68 @@ class Signal(Audio):
"""
return self._data.shape[:-1]
+ def reshape(self, newshape):
+ """
+ Return reshaped copy of the signal.
+
+ ... | added flatten and reshape method for signal
### Which issue(s) are closed by this pull request?
Closes #63
### Changes proposed in this pull request:
- added flatten and reshape methods for signal
- added test for new methods | creshape and cflatten for Signal class
It would be nice if Signal hat a channel_reshape `creshape()` and channel_flatten function that return copies of the signal with another channel layout. Implementation will be analogous to np.flatten and np.reshape, but the last dimension (n_samples, n_bins) can not be changed.
... | pyfar/pyfar | diff --git a/tests/test_signal.py b/tests/test_signal.py
index 7d101147..7039fbd0 100644
--- a/tests/test_signal.py
+++ b/tests/test_signal.py
@@ -344,6 +344,57 @@ def test_find_nearest_frequency():
npt.assert_allclose(actual, expected)
+def test_reshape():
+
+ # test reshape with tuple
+ signal_in = Sig... | [
"tests/test_signal.py::test_reshape",
"tests/test_signal.py::test_reshape_exceptions",
"tests/test_signal.py::test_flatten"
] | [
"tests/test_signal.py::test_signal_init",
"tests/test_signal.py::test_signal_init_list",
"tests/test_signal.py::test_signal_init_default_parameter",
"tests/test_signal.py::test_signal_comment",
"tests/test_signal.py::test_domain_getter_freq",
"tests/test_signal.py::test_domain_getter_time",
"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.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
abe3f66a39d6af22b96823a7e49d2ada1288b85c | 2024-08-16 10:32:05 | docker.io/swerebenchv2/pennylaneai-pennylane:6107-abe3f66 | pennylaneai__pennylane-6107 | Function: flatten(obj, is_leaf=None)
Location: qml.pytrees.flatten
Inputs:
- obj (Any): the pytree (or any object) to be flattened.
- is_leaf (Optional[Callable[[Any], bool]]): a callable that receives a node and returns ``True`` if that node should be treated as a terminal leaf, overriding any registered ``flatten_fn`... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index e120047dd..dd4421616 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -236,6 +236,9 @@
* Observable validation for `default.qubit` is now based on execution mode (analytic vs. finite shots) and measurement... | Add is_leaf argument to pytrees\pytrees.py with test at tests\pytrees\test_pytrees.py, fixes #6083
**Context:**
Add is_leaf argument to pytrees\pytrees.py with test at tests\pytrees\test_pytrees.py
fixes #6083
**Description of the Change:**
Added is_leaf argument to the function pytrees\pytrees.py. Should this a... | Add `is_leaf`optional keyword argument to `qml.pytrees.flatten`
PennyLane has its own tools for working with pytrees similar to jax's [`tree`](https://jax.readthedocs.io/en/latest/jax.tree.html#module-jax.tree) module. These tools can be used to manipulate data structures.
```pycon
>>> x = {"a": (1, 2), "b": 3}
>... | PennyLaneAI/pennylane | diff --git a/tests/pytrees/test_pytrees.py b/tests/pytrees/test_pytrees.py
index 64b188448..9de8c7f91 100644
--- a/tests/pytrees/test_pytrees.py
+++ b/tests/pytrees/test_pytrees.py
@@ -183,3 +183,82 @@ def test_get_typename_type_invalid():
ValueError, match=re.escape("'not.a.typename' is not the name of a Pytr... | [
"tests/pytrees/test_pytrees.py::test_flatten_is_leaf",
"tests/pytrees/test_pytrees.py::test_unflatten_is_leaf",
"tests/pytrees/test_pytrees.py::test_unflatten_for_structure_is_leaf"
] | [
"tests/pytrees/test_pytrees.py::test_structure_repr_str",
"tests/pytrees/test_pytrees.py::test_register_new_class",
"tests/pytrees/test_pytrees.py::test_list",
"tests/pytrees/test_pytrees.py::test_tuple",
"tests/pytrees/test_pytrees.py::test_dict",
"tests/pytrees/test_pytrees.py::test_nested_pl_object",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/jax.tree.html#mod... |
158af5c003706f5cad0f14d800a1cff00149cf00 | 2024-05-21 14:25:22 | docker.io/swerebenchv2/leshchenko1979-fast-bitrix24:237-158af5c | leshchenko1979__fast_bitrix24-237 | No new interfaces are introduced. | python | MIT | diff --git a/fast_bitrix24/mult_request.py b/fast_bitrix24/mult_request.py
index e4126e8..a4e2233 100644
--- a/fast_bitrix24/mult_request.py
+++ b/fast_bitrix24/mult_request.py
@@ -103,7 +103,7 @@ class MultipleServerRequestHandler:
elif isinstance(extracted, dict):
self.results.update(ext... | Исправить и упростить обработку вложенных результатов с сервера
Fixes #235 | extract_from_batch_response
Проблема в методе `extract_from_batch_response`, в файле `fast_bitrix24/server_response.py`.
Код, который я выполняю:
```python
result = await bitrix_client.call(
"crm.item.add",
{
"entityTypeId": 1,
"fields": {
"first_name": "first_name",
... | leshchenko1979/fast_bitrix24 | diff --git a/tests/real_responses/crm_item_add.py b/tests/real_responses/crm_item_add.py
new file mode 100644
index 0000000..5f2c500
--- /dev/null
+++ b/tests/real_responses/crm_item_add.py
@@ -0,0 +1,41 @@
+response = {
+ "result": {
+ "result": {
+ "order0000000000": {
+ "item": {
... | [
"tests/test_server_responses.py::test_crm_add_item"
] | [
"tests/test_server_responses.py::test_single_success",
"tests/test_server_responses.py::test_batch_success",
"tests/test_server_responses.py::test_batch_single_page_error",
"tests/test_server_responses.py::test_call_single_success",
"tests/test_server_responses.py::test_call_several_success",
"tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://dev.1c-bitrix.ru/rest_help/crm/dynamic/methodscr... |
2b4486f3a4aa825300c7850dc8efd30838965bcc | 2021-03-02 15:28:15 | docker.io/swerebenchv2/alteryx-woodwork:651-2b4486f | alteryx__woodwork-651 | Method: WoodworkTableAccessor.types(self)
Location: woodwork/table_accessor.py – property defined on WoodworkTableAccessor
Inputs: None (accessor instance `self`)
Outputs: pandas.DataFrame – DataFrame containing physical dtypes, logical types, and semantic tags for each column in the underlying Schema
Description: Retu... | python | BSD-3-Clause | diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst
index dea1466..8c46ef1 100644
--- a/docs/source/api_reference.rst
+++ b/docs/source/api_reference.rst
@@ -19,6 +19,7 @@ WoodworkTableAccessor
WoodworkTableAccessor.mutual_information_dict
WoodworkTableAccessor.mutual_information
W... | Add schema properties to WoodworkTableAccessor
- We weren't getting proper property behavior with attributes that are properties on the Schema but are getting pulled in the WoodworkTableAccessor's getattr, so by adding them as properties on the WoodworkTableAccessor, we get the benefit of not being able to set those pr... | @property does not pass from Schema to Accessor
We access Schema `@properties` like `index`, `semantic_tags`, etc via the WoodworkTableAccessor with a `__getattr__` that makes the Schema call. However, the `property` is not being propagated, so users can set those values and interact with them in ways that they couldn'... | alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py
index 3cfa83d..a40cf94 100644
--- a/woodwork/tests/accessor/test_table_accessor.py
+++ b/woodwork/tests/accessor/test_table_accessor.py
@@ -1606,3 +1606,25 @@ def test_accessor_rename_indices(sample_df):
... | [
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_schema_properties[sample_df_pandas]"
] | [
"woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]",
"woodwork/tests/ac... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
542b9fb6bcb496a55ff993ffb7ecd54435567fb5 | 2025-02-07 18:50:43 | docker.io/swerebenchv2/stac-utils-pystac:1522-542b9fb | stac-utils__pystac-1522 | Method: Collection.from_items(cls, items: Iterable[Item] | pystac.ItemCollection, *, id: str | None = None, strategy: HrefLayoutStrategy | None = None) -> Collection
Location: pystac/collection.py
Inputs:
- **items**: an iterable of :class:`pystac.Item` objects or an :class:`pystoc.ItemCollection`. The collection will... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c6b825a..33664c03 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+### Added
+
+- `Collection.from_items` for creating a `pystac.Collection` from an `ItemCollection` ([#1522](https://github.com/stac-utils/pystac/pull/1522))
+
### Fixed
... | Add `Collection.from_items`
**Related Issue(s):**
- Closes #1254
**Description:**
I ended up implementing this the opposite direction from the original proposal as mentioned in the ticket. There are probably more attributes that we can scrape off the items especially once #1521 shakes out.
**PR Checklist:*... | Add `ItemCollection.to_collection`
This would be a nice convenience method that would generate the extents, etc from the items in the `ItemCollection`. | stac-utils/pystac | diff --git a/tests/conftest.py b/tests/conftest.py
index 10a8b606..86a3c352 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -9,7 +9,7 @@ from typing import Any
import pytest
-from pystac import Asset, Catalog, Collection, Item, Link
+from pystac import Asset, Catalog, Collection, Item, ItemCollection, Li... | [
"tests/test_collection.py::test_from_items[sample_item_collection]",
"tests/test_collection.py::test_from_items[sample_items]",
"tests/test_collection.py::test_from_items_pulls_from_properties",
"tests/test_collection.py::test_from_items_without_collection_id",
"tests/test_collection.py::test_from_items_wit... | [
"tests/test_collection.py::test_provider_to_from_dict",
"tests/test_collection.py::test_spatial_extent_from_coordinates",
"tests/test_collection.py::test_read_eo_items_are_heritable",
"tests/test_collection.py::test_save_uses_previous_catalog_type",
"tests/test_collection.py::test_clone_uses_previous_catalo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
617a979370cf401d80667320b3b572b535f5b07c | 2019-04-21 03:18:11 | docker.io/swerebenchv2/neogeny-tatsu:100-617a979 | neogeny__tatsu-100 | Method: Buffer.line_info(self, line_no: int) -> LineInfo
Location: tatsu.buffering.Buffer
Inputs: line_no – 1‑based line number to query; uses internal buffer state.
Outputs: a LineInfo object whose **line** attribute gives the line number (same as input) and **end** attribute gives the character offset of the line’s e... | python | custom-check-github | diff --git a/README.md b/README.md
index 8aa1d6e..cd6ced6 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
[](https://raw.githubusercontent.com/neogeny/tatsu/master/LICENSE.txt) [](https://... | [leftrec_cleanup] clean up unit tests and issues related to leftrec
closes #94 | Left recursion bug when not at top level?
I have the following grammar that purports to parse declarations of the form: `<type> <name>`. The `type` is either an identifier, or an array of `type`, so `int x` and `int[] x` and `int[][] x` would be valid declarations.
```py
import tatsu
grammar = r"""
identifier =... | neogeny/TatSu | diff --git a/test/buffering_test.py b/test/buffering_test.py
index 732d5cb..802ccf9 100644
--- a/test/buffering_test.py
+++ b/test/buffering_test.py
@@ -11,6 +11,7 @@ import random
import unittest
from codecs import open
+from tatsu import parse
from tatsu.buffering import Buffer
from tatsu.util import ustr
@@ ... | [
"test/buffering_test.py::BufferingTests::test_line_info_consistency",
"test/grammar/directive_test.py::DirectiveTests::test_whitespace_none_directive",
"test/grammar/semantics_test.py::SemanticsTests::test_optional_attributes"
] | [
"test/buffering_test.py::BufferingTests::test_goto_consistency",
"test/buffering_test.py::BufferingTests::test_line_consistency",
"test/buffering_test.py::BufferingTests::test_linecount",
"test/buffering_test.py::BufferingTests::test_next_consisntency",
"test/buffering_test.py::BufferingTests::test_pos_cons... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0b0bcba9961ffcfb6a883ec93fe31403ed5fde67 | 2023-11-09 14:55:13 | docker.io/swerebenchv2/pysal-libpysal:634-0b0bcba | pysal__libpysal-634 | Method: Graph.eliminate_zeros(self)
Location: libpysal/graph/base.py
Inputs:
- self (Graph): the graph whose internal adjacency series will be examined. No additional arguments are required.
Outputs:
- Graph: a new Graph instance containing all original edges except those with weight == 0 that are not isolates (i.e.,... | python | custom-check-github | diff --git a/libpysal/graph/base.py b/libpysal/graph/base.py
index bac25401..82180641 100644
--- a/libpysal/graph/base.py
+++ b/libpysal/graph/base.py
@@ -995,9 +995,13 @@ class Graph(SetOpsMixin):
pandas.Index
Index with a subset of observations that do not have any neighbor
"""
- ... | ENH: Graph.eliminate_zeros, refactor isolates
Closes #633 | include a method to remove non-isolate zero-weight edges
I have a use case of subsetting the Graph but to ensure all focals are preserved, the only safe option is to set weight of unwanted edges to 0. It would be nice to be able to simply clean the adjacency and remove zero-weight edges to save memory. I can roundtrip ... | pysal/libpysal | diff --git a/libpysal/graph/tests/test_base.py b/libpysal/graph/tests/test_base.py
index 2dca9b04..3b755abf 100644
--- a/libpysal/graph/tests/test_base.py
+++ b/libpysal/graph/tests/test_base.py
@@ -942,6 +942,14 @@ class TestBase:
expected, nybb.component_labels, check_dtype=False
)
+ def te... | [
"libpysal/graph/tests/test_base.py::TestBase::test_eliminate_zeros"
] | [
"libpysal/graph/tests/test_base.py::TestBase::test_init",
"libpysal/graph/tests/test_base.py::TestBase::test_copy",
"libpysal/graph/tests/test_base.py::TestBase::test_adjacency",
"libpysal/graph/tests/test_base.py::TestBase::test_w_roundtrip",
"libpysal/graph/tests/test_base.py::TestBase::test_from_sparse",... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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":... |
d0e14405648a4e412a4c0f6621ceb4c1d1ae500b | 2018-01-05 13:12:51 | docker.io/swerebenchv2/kayak-pypika:96-d0e1440 | kayak__pypika-96 | Method: Query.join(self, table: Table, how: JoinType = JoinType.inner)
Location: defined in the Query class (pypika/queries.py)
Inputs:
- **table** – Table instance representing the table to be joined.
- **how** – JoinType enum indicating the join type. Accepted values now include `inner`, `left`, `right`, `ou... | python | Apache-2.0 | diff --git a/pypika/enums.py b/pypika/enums.py
index 9a4472d..e96a283 100644
--- a/pypika/enums.py
+++ b/pypika/enums.py
@@ -47,6 +47,9 @@ class JoinType(Enum):
left = 'LEFT'
right = 'RIGHT'
outer = 'OUTER'
+ left_outer = 'LEFT OUTER'
+ right_outer = 'RIGHT OUTER'
+ full_outer = 'FULL OUTER'
... | Fixes #95 Added left outer, right outer, and full outer as join types | Invalid outer join for postgresql
Current join enum have only basic "OUTER" join, which is not supported by postgresql.
`how` parameter for joins should accept list of JoinType's, so join could be concatenated, or JoinType enum should be extended to have `LEFT OUTER' 'RIGHT OUTER' 'FULL OUTER'.
I can implement it, ... | kayak/pypika | diff --git a/pypika/tests/test_joins.py b/pypika/tests/test_joins.py
index 1465950..6cb41d5 100644
--- a/pypika/tests/test_joins.py
+++ b/pypika/tests/test_joins.py
@@ -2,16 +2,15 @@
import unittest
from pypika import (
+ Interval,
+ JoinException,
+ JoinType,
+ MySQLQuery,
Query,
Table,
... | [
"pypika/tests/test_joins.py::JoinTypeTests::test_full_outer_join",
"pypika/tests/test_joins.py::JoinTypeTests::test_left_outer_join",
"pypika/tests/test_joins.py::JoinTypeTests::test_right_outer_join"
] | [
"pypika/tests/test_joins.py::JoinTypeTests::test_inner_join",
"pypika/tests/test_joins.py::JoinTypeTests::test_join_arithmetic_field",
"pypika/tests/test_joins.py::JoinTypeTests::test_join_on_complex_criteria",
"pypika/tests/test_joins.py::JoinTypeTests::test_join_on_field_multi",
"pypika/tests/test_joins.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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e9ebd657b0327dde2170706d8d6b81f01e7bdad0 | 2024-04-25 21:29:35 | docker.io/swerebenchv2/celery-celery:8982-e9ebd65 | celery__celery-8982 | Method: SecureSerializer.__init__(self, private_key: PrivateKey, cert: Certificate, cert_store: CertStore, serializer: str = "json")
Location: celery/security/serialization.py (class SecureSerializer)
Inputs:
- private_key – the PrivateKey instance used to sign serialized payloads.
- cert – the Certificate instance ... | python | custom-check-github | diff --git a/celery/security/serialization.py b/celery/security/serialization.py
index c58ef9065..937abe63c 100644
--- a/celery/security/serialization.py
+++ b/celery/security/serialization.py
@@ -29,7 +29,8 @@ class SecureSerializer:
assert self._cert is not None
with reraise_errors('Unable to serial... | security: SecureSerializer: support generic low-level serializers
*Note*: Before submitting this pull request, please review our [contributing
guidelines](https://docs.celeryq.dev/en/main/contributing.html).
## Description
Fixes #8981
This PR adds 'data_type' as a new field to the metadata that is saved as p... | SecureSerializer fails on certain types and binary serializers
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [X] I have verifi... | celery/celery | diff --git a/t/unit/security/test_serialization.py b/t/unit/security/test_serialization.py
index 6caf3857b..cb16d9f14 100644
--- a/t/unit/security/test_serialization.py
+++ b/t/unit/security/test_serialization.py
@@ -16,15 +16,19 @@ from .case import SecurityCase
class test_secureserializer(SecurityCase):
- def... | [
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[json-foo1]",
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[pickle-1]",
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[pickle-foo0]",
"t/unit/security/test_serialization.... | [
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[json-1]",
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[json-foo0]",
"t/unit/security/test_serialization.py::test_secureserializer::test_serialize[json-data3]",
"t/unit/security/test_serialization.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.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/celery/celery/discussions",
"ht... |
acfcdda93e2d1cd1fde7cd52b30280293ae3376f | 2020-04-01 22:14:21 | docker.io/swerebenchv2/yelp-mrjob:2155-acfcdda | yelp__mrjob-2155 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/guides/cloud-opts.rst b/docs/guides/cloud-opts.rst
index 11e05ddb..bcf8630a 100644
--- a/docs/guides/cloud-opts.rst
+++ b/docs/guides/cloud-opts.rst
@@ -364,6 +364,19 @@ Cluster software configuration
SupportedProducts:
- mapr-m3
+ .. versionchanged:: 0.7.2
+
+ ... | recursively merge extra_cluster_params
Make something like this:
```
runners:
emr:
extra_cluster_params:
Instances:
EmrManagedMasterSecurityGroup: sg-00000000000000000
```
add `EmrManagedMasterSecurityGroup` to the `Instances` API parameter, rather than clobbering it.
Fixes #2154. | extra_cluster_params should merge dictionaries
Currently, if you do something like this in your config:
```
runners:
emr:
extra_cluster_params:
Instances:
EmrManagedMasterSecurityGroup: sg-00000000000000000
```
it'll actually blow away the entire `Instances` parameter to `RunJobFlow`, ra... | Yelp/mrjob | diff --git a/tests/test_emr.py b/tests/test_emr.py
index 22ac35a0..c9b5bed3 100644
--- a/tests/test_emr.py
+++ b/tests/test_emr.py
@@ -694,6 +694,22 @@ class ExtraClusterParamsTestCase(MockBoto3TestCase):
cluster['Ec2InstanceAttributes']['Ec2SubnetId'],
'subnet-ffffffff')
+ def test_set_n... | [
"tests/test_emr.py::ExtraClusterParamsTestCase::test_set_nested_param_with_dict"
] | [
"tests/test_emr.py::HadoopExtraArgsTestCase::test_hadoop_extra_args",
"tests/test_emr.py::HadoopExtraArgsTestCase::test_hadoop_extra_args_comes_after_jobconf",
"tests/test_emr.py::InlineInputManifestTestCase::test_input_manifest",
"tests/test_emr.py::EMRJobRunnerEndToEndTestCase::test_cleanup_all",
"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": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
a6eb97ac7ecc6c09a67c33f013d110ed207319a1 | 2024-10-23 21:24:45 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3785-a6eb97a | aws-cloudformation__cfn-lint-3785 | Method: Parameter.__init__(self, definition: dict)
Location: cfnlint.context.context.Parameter class, instantiated in test_resolvers_cfn.py when building the test Context.
Inputs: a dictionary containing the raw CloudFormation parameter specification (e.g., {"Type": "String"} or {"Type": "String", "AllowedValues": ... | python | MIT-0 | diff --git a/src/cfnlint/jsonschema/_resolvers_cfn.py b/src/cfnlint/jsonschema/_resolvers_cfn.py
index 8b2be3e2e..2c0bb487e 100644
--- a/src/cfnlint/jsonschema/_resolvers_cfn.py
+++ b/src/cfnlint/jsonschema/_resolvers_cfn.py
@@ -15,6 +15,7 @@ from cfnlint.helpers import (
AVAILABILITY_ZONES,
PSEUDOPARAMS,
... | Update findinmap resolv to handle Ref psedueparams
*Issue #, if available:*
fix #3784
*Description of changes:*
- This will update the FindInMap resolver to look for a secondary key to match a string when the top level key is a Ref to a pseudo-parameter (AWS::AccountId or AWS::Region)
- We will return 0 results ... | cfn-lint is not validating the FindInMap function for Mappings under RegionMap.
### CloudFormation Lint Version
1.16.1
### What operating system are you using?
Mac
### Describe the bug
cfn-lint is not validating the FindInMap function for values under the Mappings section in RegionMap. In the example below, an inv... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/jsonschema/test_resolvers_cfn.py b/test/unit/module/jsonschema/test_resolvers_cfn.py
index f61793784..b0d316a32 100644
--- a/test/unit/module/jsonschema/test_resolvers_cfn.py
+++ b/test/unit/module/jsonschema/test_resolvers_cfn.py
@@ -8,7 +8,7 @@ from collections import deque
import pytes... | [
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_functions[Valid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_functions[Invalid"
] | [
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_resolvers_ref[Valid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_invalid_functions[Invalid",
"test/unit/module/jsonschema/test_resolvers_cfn.py::test_no_mapping[Invalid"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
9b6f0d5948bd634d1c7ef0f3af39ac4612047275 | 2023-04-21 15:16:55 | docker.io/swerebenchv2/cta-observatory-ctapipe:2317-9b6f0d5 | cta-observatory__ctapipe-2317 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/.mailmap b/.mailmap
index d431d96f..466d1714 100644
--- a/.mailmap
+++ b/.mailmap
@@ -88,6 +88,3 @@ Orel Gueta <orel.gueta@desy.de> orelgueta <22728856+orelgueta@users.noreply.gith
Rune Michael Dominik <rune.dominik@tu-dortmund.de>
Henning Ptaszyk <henning.ptaszyk@udo.edu>
-
-
-Tomas Bylund <tomas.bylu... | Fix neighbor matrix for no pixels, fixes #2316 | Neighbormatrix fails to compute for geometry with a single pixel
### Discussed in https://github.com/cta-observatory/ctapipe/discussions/2309
<div type='discussions-op-text'>
<sup>Originally posted by **Elisa-Visentin** April 19, 2023</sup>
Hi,
Sorry for the banal question but... While computing morphology para... | cta-observatory/ctapipe | diff --git a/ctapipe/core/tests/test_tool.py b/ctapipe/core/tests/test_tool.py
index a65ecf83..8db62479 100644
--- a/ctapipe/core/tests/test_tool.py
+++ b/ctapipe/core/tests/test_tool.py
@@ -426,38 +426,3 @@ def test_exit_stack():
assert run_tool(tool, raises=False) == 1
assert tool.manager.enter_called
... | [
"ctapipe/image/tests/test_morphology.py::test_number_of_islands_masked"
] | [
"ctapipe/core/tests/test_tool.py::test_tool_simple",
"ctapipe/core/tests/test_tool.py::test_tool_version",
"ctapipe/core/tests/test_tool.py::test_provenance_dir",
"ctapipe/core/tests/test_tool.py::test_provenance_log_help",
"ctapipe/core/tests/test_tool.py::test_export_config_to_yaml",
"ctapipe/core/tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/cta-observatory/ctapipe/discussions/2... |
bebbb937a4ccd09bc82fe3c10c974a60743dd767 | 2022-01-27 16:42:41 | docker.io/swerebenchv2/alteryx-woodwork:1269-bebbb93 | alteryx__woodwork-1269 | Method: WoodworkColumnAccessor.box_plot_dict(self, quantiles: dict[float, float] | None = None, include_indices_and_values: bool = False)
Location: woodwork/column_accessor.py (accessor method)
Inputs:
- **quantiles** – optional mapping of required quantile points (keys 0.0, 0.25, 0.75, 1.0) to their numeric val... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 4bfcb8c..a33b9f7 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -9,6 +9,7 @@ Future Release
* Add Slack link to GitHub issue creation templates (:pr:`1242`)
* Fixes
* Fixed issue wi... | Update box plot bounds to min and max if necessary
- Requires min and max values in quantiles so they can be used to set the high and low bounds when no outliers are present
- Closes #1267
| Box plot dictionary has misleading values for high and low bounds in some cases.
As a Woodwork user, I want to be able to use the output of `series.ww.box_plot_dict` to build a box plot that makes sense.
Currently, Woodwork's use of IQR to determine the high and low outlier bounds can end up in situations where th... | alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_statistics.py b/woodwork/tests/accessor/test_statistics.py
index 106b03a..752bf08 100644
--- a/woodwork/tests/accessor/test_statistics.py
+++ b/woodwork/tests/accessor/test_statistics.py
@@ -1074,8 +1074,10 @@ def test_box_plot_outliers(outliers_df):
no_outliers_dict = n... | [
"woodwork/tests/accessor/test_statistics.py::test_box_plot_outliers[outliers_df_pandas]",
"woodwork/tests/accessor/test_statistics.py::test_box_plot_outliers_with_quantiles[outliers_df_pandas]",
"woodwork/tests/accessor/test_statistics.py::test_box_plot_different_quantiles[outliers_df_pandas]",
"woodwork/test... | [
"woodwork/tests/accessor/test_statistics.py::test_get_mode",
"woodwork/tests/accessor/test_statistics.py::test_accessor_replace_nans_for_mutual_info",
"woodwork/tests/accessor/test_statistics.py::test_accessor_make_categorical_for_mutual_info",
"woodwork/tests/accessor/test_statistics.py::test_mutual_info_sam... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
2b00b050de83917573f7fdabc54d99af8035ca90 | 2023-03-08 19:14:09 | docker.io/swerebenchv2/getmoto-moto:6038-2b00b05 | getmoto__moto-6038 | Method: decrease_replication_factor(self, ClusterName: str, NewReplicationFactor: int, NodeIdsToRemove: List[str] = None) Location: DAX client (boto3 client method backed by moto.dax.models.DaxBackend) Inputs:
- **ClusterName** – name of the DAX cluster to modify (must be a valid existing cluster name).
- **NewRepli... | python | Apache-2.0 | diff --git a/moto/apigateway/models.py b/moto/apigateway/models.py
index c6d8a1680..eb7935f33 100644
--- a/moto/apigateway/models.py
+++ b/moto/apigateway/models.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import
-
import string
import re
import responses
diff --git a/moto/core/responses.py b/moto/core/respo... | fix:params not sorted properly when tags are present
Attempt to fix #6033
This is my first time trying to contribute, so please be indulgent :)
| Error with autoscaling group
Hello,
I use moto_server with command `moto_server -p4566`
When trying to create an autoscaling group with Terraform, I get the following trace error :
```
127.0.0.1 - - [08/Mar/2023 08:24:52] "POST / HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "C... | getmoto/moto | diff --git a/tests/test_cloudformation/test_import_value.py b/tests/test_cloudformation/test_import_value.py
index 82538cba3..6675373a2 100644
--- a/tests/test_cloudformation/test_import_value.py
+++ b/tests/test_cloudformation/test_import_value.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division
-
# ... | [
"tests/test_glue/test_glue.py::test_get_job_exists",
"tests/test_s3/test_s3_storageclass.py::test_s3_copy_object_for_deep_archive_storage_class_restored"
] | [
"tests/test_cloudformation/test_import_value.py::TestSimpleInstance::test_simple_instance",
"tests/test_cloudformation/test_import_value.py::TestSimpleInstance::test_simple_instance_missing_export",
"tests/test_dax/test_dax.py::test_create_cluster_minimal",
"tests/test_dax/test_dax.py::test_create_cluster_des... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
5d509e044c1e8523b3a13411a943fc259d02ef87 | 2022-07-15 04:56:52 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1237-5d509e0 | slackapi__python-slack-sdk-1237 | Method: VideoBlock.__init__(self, block_id=None, alt_text=None, video_url=None, thumbnail_url=None, title=None, title_url=None, description=None, provider_icon_url=None, provider_name=None, author_name=None, **others)
Location: slack_sdk/models/blocks/blocks.py
Inputs:
- block_id (Optional[str]): optional identifier (... | python | MIT | diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py
index deea314..bb54235 100644
--- a/slack_sdk/models/blocks/__init__.py
+++ b/slack_sdk/models/blocks/__init__.py
@@ -48,6 +48,7 @@ from .blocks import HeaderBlock
from .blocks import ImageBlock
from .blocks import InputBlock
from... | Fix #1236 Add video block to Block Kit model classes
## Summary
This pull request resolves #1236
### Category (place an `x` in each of the `[ ]`)
- [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client)
- [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender)
- [... | Add video block to Block Kit model classes
"video" type blocks are now available in Block Kit.
>Showcase your cool cat videos in a new [video block](https://api.slack.com/reference/block-kit/blocks#video) with [Block Kit](https://api.slack.com/block-kit). Read on to learn more on [how to embed videos in your apps](h... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py
index 86a717f..fa72bc2 100644
--- a/tests/slack_sdk/models/test_blocks.py
+++ b/tests/slack_sdk/models/test_blocks.py
@@ -20,6 +20,7 @@ from slack_sdk.models.blocks import (
PlainTextObject,
MarkdownTextObject,
Hea... | [
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq",
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1",
"tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2",
"tests/slack_sdk/models/tes... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.slack.com/reference/block-kit/blocks#video... |
94ccb34bd8229d36331f4b178da4a3fdfaf93a3b | 2024-09-05 18:45:08 | docker.io/swerebenchv2/openmdao-openmdao:3340-94ccb34 | openmdao__openmdao-3340 | Method: set_env_vars(**env_vars)
Location: openmdao.utils.testing_utils
Inputs: keyword arguments where each key is the name of an environment variable (str) and each value is the value to set (str). The decorator temporarily updates os.environ with these pairs for the duration of the wrapped function (or test method) ... | python | custom-check-github | diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py
index 222cbd3b8..a371a0df6 100644
--- a/openmdao/core/problem.py
+++ b/openmdao/core/problem.py
@@ -229,10 +229,9 @@ class Problem(object):
# Set the Problem name so that it can be referenced from command line tools (e.g. check)
# that a... | Duplicate problem names are now a warning, not an error
### Summary
In notebook environments, running a cell repeatedly would create a new problem instance (with a new name) each time.
This causes the number of output directories to balloon.
To fix this, one can name the problem something specific so that it alway... | POEM 097: Duplicate Problem names should warn, not raise.
### Desired capability or behavior.
With the recent POEM 097 related changes, output directories are either automatically named...or the user can impart a particular name so that the outputs are always saved to the same directory.
For scripts this is fine, b... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_problem.py b/openmdao/core/tests/test_problem.py
index 231d30b3f..1556512ad 100644
--- a/openmdao/core/tests/test_problem.py
+++ b/openmdao/core/tests/test_problem.py
@@ -14,11 +14,11 @@ from openmdao.core.driver import Driver
from openmdao.test_suite.components.paraboloid import ... | [
"openmdao/core/tests/test_problem.py::TestProblem::test_duplicate_prob_name",
"openmdao/core/tests/test_problem.py::TestProblem::test_duplicate_problem_name",
"openmdao/core/tests/test_problem.py::NestedProblemTestCase::test_nested_prob_default_naming"
] | [
"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": "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": ... |
eed48eb3cd914db91d15036f3932db454ae5e8cf | 2023-09-01 09:43:18 | docker.io/swerebenchv2/aeye-lab-pymovements:486-eed48eb | aeye-lab__pymovements-486 | No new interfaces are introduced. | python | MIT | diff --git a/src/pymovements/dataset/dataset_files.py b/src/pymovements/dataset/dataset_files.py
index 949f726..cf2ba4a 100644
--- a/src/pymovements/dataset/dataset_files.py
+++ b/src/pymovements/dataset/dataset_files.py
@@ -467,6 +467,8 @@ def save_preprocessed(
disable_progressbar = not verbose
for file_i... | fix: Get rid of unnest side effect during GazeDataFrame.save()
## Description
Closes #480
## Implemented changes
The gaze dataframe will now be completely copied before post-processing and saving.
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## How Has This Been Tested?
... | Unexpected unnest-sideeffect in Dataset.save_preprocessed()
## Current Behavior
When calling `Dataset.save_preprocessed()` with `extension='csv'` columns need to be unnested before saving.
This part is definitely intended. But it is unexpected that the columns stay unnested after the call.
The user now needs to ca... | aeye-lab/pymovements | diff --git a/tests/dataset/dataset_test.py b/tests/dataset/dataset_test.py
index c45bc86..9e2f99c 100644
--- a/tests/dataset/dataset_test.py
+++ b/tests/dataset/dataset_test.py
@@ -1026,19 +1026,24 @@ def test_save_preprocessed_directory_exists(
)
-def test_save_preprocessed_no_tuple_columns(dataset_configurat... | [
"tests/dataset/dataset_test.py::test_save_preprocessed_has_no_side_effect[ToyMono-time]",
"tests/dataset/dataset_test.py::test_save_preprocessed_has_no_side_effect[ToyMono-pixel]",
"tests/dataset/dataset_test.py::test_save_preprocessed_has_no_side_effect[ToyMono-position]",
"tests/dataset/dataset_test.py::tes... | [
"tests/dataset/dataset_test.py::test_load_correct_fileinfo[ToyMono]",
"tests/dataset/dataset_test.py::test_load_correct_fileinfo[ToyBino]",
"tests/dataset/dataset_test.py::test_load_correct_fileinfo[ToyLeft]",
"tests/dataset/dataset_test.py::test_load_correct_fileinfo[ToyRight]",
"tests/dataset/dataset_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":... |
4240ef8fc783c0c1598085b596783ace9ccaee03 | 2024-09-17 09:31:44 | docker.io/swerebenchv2/joke2k-faker:2104-4240ef8 | joke2k__faker-2104 | No new interfaces are introduced. | python | MIT | diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 46a4bbcb..b5909b52 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 28.4.1
+current_version = 29.0.0
files = VERSION faker/__init__.py docs/conf.py
commit = True
tag = True
diff --git a/CHANGELOG.md b/CHANGEL... | Force the slug always be generated with ASCII characters
### What does this change
Compose the slug with Latin words only, regardless the assigned locale.
### What was wrong
The slug may be empty if there is no Latin characters in the locale language, such as Japanese, Korean and Chinese.
### How this fixes... | slug() - returns an empty string in some locales
* Faker version: 28.4.1
* OS: Mac
When using certain locales (e.g. `jp_JP`), the `slug` fake returns an empty string. I had a quick look and this is probably because the `slugify` decorator disallows unicode characters (which makes sense) and the fake is using the `t... | joke2k/faker | diff --git a/tests/providers/test_internet.py b/tests/providers/test_internet.py
index 3bd431fe..4e0ecc69 100644
--- a/tests/providers/test_internet.py
+++ b/tests/providers/test_internet.py
@@ -477,6 +477,11 @@ class TestJaJp:
tld = faker.tld()
assert isinstance(tld, str)
+ def test_slug(self, f... | [
"tests/providers/test_internet.py::TestJaJp::test_slug",
"tests/providers/test_internet.py::TestZhCn::test_slug",
"tests/providers/test_internet.py::TestZhTw::test_slug",
"tests/providers/test_internet.py::TestArAa::test_slug",
"tests/providers/test_internet.py::TestRuRu::test_slug",
"tests/providers/test... | [
"tests/providers/test_internet.py::TestInternetProvider::test_email",
"tests/providers/test_internet.py::TestInternetProvider::test_safe_default_email",
"tests/providers/test_internet.py::TestInternetProvider::test_unsafe_email",
"tests/providers/test_internet.py::TestInternetProvider::test_email_with_domain"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.