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
7f75249ddd6e3f1ea080495f6b320273b266468e
2024-08-23 14:44:51
docker.io/swerebenchv2/crossgl-crosstl:95-7f75249
crossgl__crosstl-95
No new interfaces are introduced.
python
Apache-2.0
diff --git a/crosstl/src/translator/parser.py b/crosstl/src/translator/parser.py index a46a9d2..d07c84e 100644 --- a/crosstl/src/translator/parser.py +++ b/crosstl/src/translator/parser.py @@ -644,6 +644,7 @@ class Parser: "ASSIGN_MOD", "BITWISE_SHIFT_RIGHT", "BITWISE_SHIFT_LEFT",...
Add parsing support for ASSIGN_SHIFT_RIGHT token (>>= operator) This PR addresses issue #82 by adding support for parsing the ASSIGN_SHIFT_RIGHT token (>>= operator) in the translator parser. This enhancement ensures that the parser correctly recognizes and processes expressions involving the >>= operator. Closes #82
Add Parsing for `Assignment Shift Right` Token Update the parser to handle the ASSIGN_SHIFT_RIGHT token, allowing it to correctly parse expressions involving the >>= operator.
CrossGL/crosstl
diff --git a/tests/test_translator/test_parser.py b/tests/test_translator/test_parser.py index 95c1eae..29a5d27 100644 --- a/tests/test_translator/test_parser.py +++ b/tests/test_translator/test_parser.py @@ -261,6 +261,44 @@ def test_function_call(): pytest.fail("Struct parsing not implemented.") +def tes...
[ "tests/test_translator/test_parser.py::test_assign_shift_right" ]
[ "tests/test_translator/test_parser.py::test_input_output", "tests/test_translator/test_parser.py::test_if_statement", "tests/test_translator/test_parser.py::test_for_statement", "tests/test_translator/test_parser.py::test_else_statement", "tests/test_translator/test_parser.py::test_else_if_statement", "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":...
2ab45380677b794eb3b7d07f3ff7e80ff83e3f2d
2025-07-16 16:18:05
docker.io/swerebenchv2/collective-icalendar:878-2ab4538
collective__icalendar-878
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES.rst b/CHANGES.rst index 29b75ca..bd66c00 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -41,6 +41,7 @@ New features: Bug fixes: - Fix invalid calendar: Parsing a date with TZID results in a datetime to not loose the timezone. See `Issue 187 <https://github.com/collective/icalendar/issues/187>`_....
Fix timezone placement in add_missing_timezones() Fixes #844 by modifying Calendar.add_missing_timezones() to insert VTIMEZONE components at the beginning of the calendar instead of appending them to the end. ## Problem The add_missing_timezones() method was placing VTIMEZONE components after VEVENT and other componen...
[BUG] Missing timezones are added to the end of the file but should be at the start <!-- This template is there to guide you and help us. If you can not complete everything here, that is fine. --> ## Describe the bug <!-- A clear and concise description of what the bug is. --> Adding missing timezones puts them last. ...
collective/icalendar
diff --git a/src/icalendar/tests/test_issue_844_timezone_placement.py b/src/icalendar/tests/test_issue_844_timezone_placement.py new file mode 100644 index 0000000..a580435 --- /dev/null +++ b/src/icalendar/tests/test_issue_844_timezone_placement.py @@ -0,0 +1,223 @@ +"""Tests for issue #844: timezone placement in cale...
[ "src/icalendar/tests/test_issue_844_timezone_placement.py::test_single_timezone_placed_before_event", "src/icalendar/tests/test_issue_844_timezone_placement.py::test_multiple_timezones_placed_before_events", "src/icalendar/tests/test_issue_844_timezone_placement.py::test_existing_timezone_preserved_new_ones_add...
[ "src/icalendar/tests/test_issue_844_timezone_placement.py::test_no_missing_timezones_no_changes", "src/icalendar/tests/test_issue_844_timezone_placement.py::test_empty_calendar_add_missing_timezones", "src/icalendar/tests/test_issue_844_timezone_placement.py::test_forward_reference_compatibility" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
0e8be51a7f8da8e7d55622f8d052e15418e38fc0
2025-04-22 13:28:39
docker.io/swerebenchv2/aeye-lab-pymovements:1112-0e8be51
aeye-lab__pymovements-1112
Function: repr_html(attrs: list[str] | None = None) → Callable[[T], T] Location: pymovements._utils._html Inputs: - attrs (optional): list of attribute names to include in the HTML representation; if None, all public, non‑callable attributes are displayed. Outputs: a decorator that, when applied to a class, injects a `...
python
MIT
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8acc0ee..27eab09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -119,7 +119,7 @@ repos: files: ^tests/ args: [ - '--ignore=D103,D107,D213', + '--ignore=D103,D107,D203,D213', ...
feat: HTML representations for Jupyter notebooks ## Description HTML representation for the most important classes (`GazeDataFrame`, `EventDataFrame`, `Experiment`, `Dataset`, etc.). Currently, it is simply a list with collapsible sections for selected attributes of the objects. Suggestions for design improvement...
HTML reprs for notebooks ## Description of the problem The most important classes (gaze and event dataframes, experiment metadata etc.) either don't have a `__repr__` at all, or it is incomplete and doesn't look very good. For a lot of people who use pymovements in interactive IPython sessions or notebooks (like mysel...
aeye-lab/pymovements
diff --git a/tests/unit/_utils/_html_test.py b/tests/unit/_utils/_html_test.py new file mode 100644 index 0000000..ff38e34 --- /dev/null +++ b/tests/unit/_utils/_html_test.py @@ -0,0 +1,238 @@ +# Copyright (c) 2025 The pymovements Project Authors +# +# Permission is hereby granted, free of charge, to any person obtaini...
[ "tests/unit/_utils/_html_test.py::test_html_repr[all_attrs]", "tests/unit/_utils/_html_test.py::test_html_repr[one_attr]", "tests/unit/_utils/_html_test.py::test_attr_inline_details_html[string_short]", "tests/unit/_utils/_html_test.py::test_attr_inline_details_html[long_short]", "tests/unit/_utils/_html_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://github.com/user-attachments/assets/7bed44bf-84...
8e12ba718411dd1816516079c9b8133035e788be
2019-08-12 20:40:08
docker.io/swerebenchv2/qiime2-qiime2:484-8e12ba7
qiime2__qiime2-484
Method: _FileFormat.view(self, view_type) Location: qiime2/plugin/model/file_format.py – class _FileFormat Inputs: - **view_type** – a Python type (e.g., `int`, `float`, a bound‑file class) that is registered in the Qiime2 transformation system. The method looks up a transformation from the format’s own model type to ...
python
BSD-3-Clause
diff --git a/qiime2/plugin/model/file_format.py b/qiime2/plugin/model/file_format.py index e32f8a1..575ba03 100644 --- a/qiime2/plugin/model/file_format.py +++ b/qiime2/plugin/model/file_format.py @@ -8,6 +8,7 @@ import abc +from qiime2.core import transform from .base import FormatBase, ValidationError, _check_v...
IMP: Add .view method to _FileFormat Closes #482 `_FileFormat` objects now have a `.view` method allowing for easy transformation of `_FileFormat` subclasses without them needing to be turned into `BoundFile` objects. I am unsure of how to test this code. Should `.view` tests be added to the tests for every `_FileForma...
`_FileFormat` Should Have A `.view` Method **Improvement Description** `_FileFormat` should have a `.view` method **Current Behavior** `BoundFile` objects have a `.view` method allowing for easy transformation between classes, but `_FileFormat` objects do not. This means the easiest way to transform `_FileFormat` ...
qiime2/qiime2
diff --git a/qiime2/plugin/model/tests/test_file_format.py b/qiime2/plugin/model/tests/test_file_format.py index 4495781..65185d1 100644 --- a/qiime2/plugin/model/tests/test_file_format.py +++ b/qiime2/plugin/model/tests/test_file_format.py @@ -11,6 +11,7 @@ import unittest import tempfile import qiime2.plugin.mode...
[ "qiime2/plugin/model/tests/test_file_format.py::TestFileFormat::test_view_invalid_type" ]
[ "qiime2/plugin/model/tests/test_file_format.py::TestTextFileFormat::test_open_read_good", "qiime2/plugin/model/tests/test_file_format.py::TestTextFileFormat::test_open_read_ignore_bom", "qiime2/plugin/model/tests/test_file_format.py::TestTextFileFormat::test_open_write_good", "qiime2/plugin/model/tests/test_f...
{ "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": [...
1de74be5e95e0fd0599d12084b286d3f65f858d6
2024-06-22 09:05:35
docker.io/swerebenchv2/pyg-team-pytorch-geometric:9446-1de74be
pyg-team__pytorch_geometric-9446
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b34a6493..b77526e11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed +- Added support for modifying `filename` of the stored partitioned file in `ClusterLoader` ...
Respect `torch.nn.Module.children` in `Sequential` Fixes #9437. This issue was introduced in #9369 since the name `children` is reserved in PyTorch. See https://github.com/pytorch/pytorch/blob/b57fa8d9c07b0e03afbe5dab279aa26697b828ea/torch/nn/modules/module.py#L2352-L2359.
TypeError: 'list' object is not callable ### 🐛 Describe the bug ```python from torch.nn import Linear, ReLU, Dropout from torch_geometric.nn import Sequential, GCNConv, JumpingKnowledge from torch_geometric.nn import global_mean_pool model = Sequential('x, edge_index, batch', [ (Dropout(p=0.5), 'x -> x'), ...
pyg-team/pytorch_geometric
diff --git a/test/nn/test_sequential.py b/test/nn/test_sequential.py index 87e5361ca..6239aa29f 100644 --- a/test/nn/test_sequential.py +++ b/test/nn/test_sequential.py @@ -28,7 +28,7 @@ def test_sequential_basic(): (GCNConv(64, 64), 'x, edge_index -> x'), ReLU(inplace=True), Linear(64, 7), -...
[ "test/nn/test_sequential.py::test_sequential_basic" ]
[ "test/nn/test_sequential.py::test_sequential_jit", "test/nn/test_sequential.py::test_sequential_tracable", "test/nn/test_sequential.py::test_sequential_with_multiple_return_values", "test/nn/test_sequential.py::test_sequential_with_ordered_dict", "test/nn/test_sequential.py::test_sequential_to_hetero" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
1dfbeed5a72a4bd57361e44441d0d06af6a2e58a
2023-06-14 19:16:03
docker.io/swerebenchv2/getmoto-moto:6408-1dfbeed
getmoto__moto-6408
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/ecr/models.py b/moto/ecr/models.py index b4a7256a6..ced3be688 100644 --- a/moto/ecr/models.py +++ b/moto/ecr/models.py @@ -581,7 +581,7 @@ class ECRBackend(BaseBackend): try: existing_images_with_matching_tag = list( filter( - lambda x: x.respo...
ECR: put_image() - ensure that we can overwrite tags on image with multiple tags Fixes #6395
Regression in 4.1.11 handling of image tags in ECR model Version 4.1.11 introduced a regression in ECR image handling in the case where you are calling put_image with: * A tag which already exists * Pointing to an image with multiple tags Reproduction code: ```python @mock_ecr def test_4111_move_image_tag_regre...
getmoto/moto
diff --git a/tests/test_ecr/test_ecr_boto3.py b/tests/test_ecr/test_ecr_boto3.py index 6249ab867..ca1479ebe 100644 --- a/tests/test_ecr/test_ecr_boto3.py +++ b/tests/test_ecr/test_ecr_boto3.py @@ -581,6 +581,55 @@ def test_put_same_image_with_same_tag(): images.should.have.length_of(1) +@mock_ecr +def test_mul...
[ "tests/test_ecr/test_ecr_boto3.py::test_multiple_tags__ensure_tags_exist_only_on_one_image" ]
[ "tests/test_ecr/test_ecr_boto3.py::test_create_repository", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_with_non_default_config", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_in_different_account", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_with_aws_managed_kms", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
7c6f6b08ee59d89d85be1b34c5d20992acbf4f5f
2021-11-29 18:53:46
docker.io/swerebenchv2/alteryx-woodwork:1206-7c6f6b0
alteryx__woodwork-1206
Method: DataFrame.ww.describe_dict(self, extra_stats: bool = False) Location: woodwork/accessor.py (Woodwork DataFrame accessor) Inputs: - **extra_stats** (bool, optional): When True, includes detailed numeric statistics such as histogram, top_values, recent_values, and nan_count for each column. Default is False. Outp...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 5fcb465..e33179b 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -6,6 +6,7 @@ Future Release ============== * Enhancements * Allow frequency inference on temporal (Datetime, Timedelta) colum...
Handle ints represented as doubles in describe_dict with extra stats - Handle ints represented as doubles in describe extra stats - Closes #1203 Updates `df.ww.describe_dict` to compute `top_values` for integers stored as doubles. Top values will be computed for double columns if the range of values is less than o...
Update describe_dict extra stats to return top values for Double columns - As a user, I wish I could use Woodwork to compute `top_values` for `Double` columns when using `df.ww.describe_dict(extra_stats=True). Currently top values are only returned for `Integer` and `IntegerNullable`.
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_statistics.py b/woodwork/tests/accessor/test_statistics.py index 8c10cd6..106b03a 100644 --- a/woodwork/tests/accessor/test_statistics.py +++ b/woodwork/tests/accessor/test_statistics.py @@ -763,6 +763,22 @@ def test_describe_with_include(sample_df): multi_params_df["full_...
[ "woodwork/tests/accessor/test_statistics.py::test_describe_numeric_all_nans" ]
[ "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": "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":...
93d18e467288d153a659ab6c0fce48ed2e57ef96
2024-08-30 19:26:49
docker.io/swerebenchv2/getmoto-moto:8062-93d18e4
getmoto__moto-8062
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/sqs/exceptions.py b/moto/sqs/exceptions.py index 7207d4488..a7f234e89 100644 --- a/moto/sqs/exceptions.py +++ b/moto/sqs/exceptions.py @@ -38,10 +38,10 @@ class QueueAlreadyExists(RESTError): class EmptyBatchRequest(RESTError): code = 400 - def __init__(self) -> None: + def __init__(self...
SQS: delete_message_batch() now validates there's at least one entry Fixes #8061
SQS `delete_message_batch` does not raise exception with no `Entries` Hello, When using `delete_message_batch` with an empty `Entries` parameter against AWS, the following exception is raised: ``` botocore.errorfactory.EmptyBatchRequest: An error occurred (AWS.SimpleQueueService.EmptyBatchRequest) when calling th...
getmoto/moto
diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index 7e5410d9f..30bf373d7 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -1972,6 +1972,20 @@ def test_delete_message_batch_with_invalid_receipt_id(): ] +@sqs_aws_verified() +@pytest.mark.aws_verified +def test_de...
[ "tests/test_sqs/test_sqs.py::test_delete_message_batch_with_zero_entries" ]
[ "tests/test_sqs/test_sqs.py::test_create_fifo_queue_fail", "tests/test_sqs/test_sqs.py::test_create_fifo_queue_invalid_name[]", "tests/test_sqs/test_sqs.py::test_create_fifo_queue_invalid_name[ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp]", "tests/test_sqs/test_sqs.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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
c874bbd7ff75f372351e0f73c32b92177e7621b4
2024-05-30 19:54:36
docker.io/swerebenchv2/pennylaneai-pennylane:5773-c874bbd
pennylaneai__pennylane-5773
Function: _to_string(fermi_op, of=False) Location: pennylane/fermi/fermionic.py Inputs: - fermi_op (FermiWord): the fermionic operator to be rendered. - of (bool, optional): if True, output uses OpenFermion shorthand (\"q^\" for creation, \"q\" for annihilation); default False gives PennyLane style (\"q+\" / \"q-\"). ...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 61fe416e6..fb62fcde1 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -47,20 +47,6 @@ * The `default.tensor` device is introduced to perform tensor network simulations of quantum circuits using the `mps` (...
Implement `of.QubitOperator` <-> `qml.ops.LinearCombination`. **Context:** This PR adds the functionality to convert a ``QubitOperator`` in OpenFermion to a ``LinearCombination`` in PennyLane and vice versa. **Description of the Change:** Added `convert_openfermion` module to `qchem` where users are able to conve...
Add function to convert PennyLane objects to OpenFermion objects ### Feature details ⚠️ This issue is part of an internal assignment and not meant for external contributors. PennyLane has several functions and classes for creating and manipulating qubit and fermionic operators. It will be useful to have functions...
PennyLaneAI/pennylane
diff --git a/tests/fermi/test_fermionic.py b/tests/fermi/test_fermionic.py index 5e37a5460..b5a9b237f 100644 --- a/tests/fermi/test_fermionic.py +++ b/tests/fermi/test_fermionic.py @@ -18,8 +18,9 @@ from copy import copy, deepcopy import numpy as np import pytest +import pennylane as qml from pennylane import nump...
[ "tests/fermi/test_fermionic.py::TestFermiWord::test_missing", "tests/fermi/test_fermionic.py::TestFermiWord::test_set_items", "tests/fermi/test_fermionic.py::TestFermiWord::test_update_items", "tests/fermi/test_fermionic.py::TestFermiWord::test_hash", "tests/fermi/test_fermionic.py::TestFermiWord::test_copy...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://docs.pennylane.ai/en/stable/code/api/pennylane...
7419c6125278d0ab2a993076420a6376a15cc306
2021-09-01 15:10:18
docker.io/swerebenchv2/jmcgeheeiv-pyfakefs:633-7419c61
jmcgeheeiv__pyfakefs-633
No new interfaces are introduced.
python
Apache-2.0
diff --git a/CHANGES.md b/CHANGES.md index c9a2f3d..83ce724 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,11 @@ The released versions correspond to PyPi releases. ## Version 4.6.0 (as yet unreleased) +### Fixes +* fixed handling of alternative path separator in `os.path.split`, + `os.path.splitdrive` and `...
Fixed handling of alternative path separator in some functions - affects os.path.split, os.path.splitdrive and glob.glob - fixes #632
Behavior difference for os.path.split **Describe the bug** On windows, the function python version of `os.path.split` does not convert path separators, while the pyfakefs version does. Is this intentional or is this a bug? **How To Reproduce** ```python import os import unittest from pyfakefs.fake_filesystem_...
jmcgeheeiv/pyfakefs
diff --git a/pyfakefs/tests/example.py b/pyfakefs/tests/example.py index 5793cdd..09d7a3d 100644 --- a/pyfakefs/tests/example.py +++ b/pyfakefs/tests/example.py @@ -121,7 +121,7 @@ def get_glob(glob_path): >>> import sys >>> if sys.platform.startswith('win'): ... # Windows style path - ... fil...
[ "pyfakefs/tests/fake_filesystem_test.py::SplitPathTest::test_root_separator_is_not_stripped", "pyfakefs/tests/fake_filesystem_test.py::DriveLetterSupportTest::test_split_drive_alt_sep", "pyfakefs/tests/fake_filesystem_test.py::DriveLetterSupportTest::test_split_drive_with_unc_path_alt_sep", "pyfakefs/tests/fa...
[ "pyfakefs/tests/example_test.py::TestExample::test_create_file", "pyfakefs/tests/example_test.py::TestExample::test_delete_file", "pyfakefs/tests/example_test.py::TestExample::test_file_exists", "pyfakefs/tests/example_test.py::TestExample::test_get_globs", "pyfakefs/tests/example_test.py::TestExample::test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
3098a7aea68c397de6b59ba09bc1f9bb2d4b1ff8
2020-04-20 10:03:28
docker.io/swerebenchv2/theacodes-nox:312-3098a7a
theacodes__nox-312
Method: Session.conda_install(self, *args, silent: bool = True, **kwargs) Location: nox.sessions.Session Inputs: one or more package specifications as strings (e.g., "urllib3", "urllib3<1.25", '"urllib3<1.25"'); the strings may contain version constraint operators '<' or '>'; optional keyword arguments such as silent (...
python
Apache-2.0
diff --git a/nox/sessions.py b/nox/sessions.py index 643f21c..e88f3e5 100644 --- a/nox/sessions.py +++ b/nox/sessions.py @@ -70,6 +70,36 @@ def _normalize_path(envdir: str, path: Union[str, bytes]) -> str: return full_path +def _dblquote_pkg_install_args(args: Tuple[str, ...]) -> Tuple[str, ...]: + """Doubl...
`conda_install` and `install` args are now automatically double-quoted when needed. Changelog (let me know if I should commit it somewhere): - `conda_install` ~~and `install`~~ args are now automatically double-quoted when they contain a `<` or a `>`. Fixes #311
`conda_install` should automatically escape args when they contain version constraints In `Session.conda_install` one reads this example: ```python session.conda_install('--channel=conda-forge', 'dask==2.1.0') ``` Now consider that we tweak it very lightly: ```python session.conda_install('--channel=conda-...
theacodes/nox
diff --git a/tests/test_sessions.py b/tests/test_sessions.py index 1da6f88..afd691b 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -302,6 +302,22 @@ class TestSession: with pytest.raises(ValueError, match="arg"): session.conda_install() + def test_conda_install_bad_args_o...
[ "tests/test_sessions.py::TestSession::test_conda_install_bad_args_odd_nb_double_quotes", "tests/test_sessions.py::TestSession::test_conda_install_bad_args_cannot_escape", "tests/test_sessions.py::TestSession::test_conda_install_non_default_kwargs[version_constraint=yes]" ]
[ "tests/test_sessions.py::test__normalize_path", "tests/test_sessions.py::test__normalize_path_hash", "tests/test_sessions.py::test__normalize_path_give_up", "tests/test_sessions.py::TestSession::test_create_tmp", "tests/test_sessions.py::TestSession::test_create_tmp_twice", "tests/test_sessions.py::TestSe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
f6beb72aa5107600c5273e407f067aeaa47bf769
2023-03-16 20:51:17
docker.io/swerebenchv2/pennylaneai-pennylane:3920-f6beb72
pennylaneai__pennylane-3920
Method: QuantumScript.draw(self, show_all_wires=False, decimals=None, max_length=100, show_matrices=True) Location: pennylane.tape.qscript.QuantumScript.draw Inputs: - self: QuantumScript instance to be drawn. - show_all_wires (bool, optional): Whether to display empty wires; default False. - decimals (int or None, op...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index a941142c3..399a6c8ab 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -70,6 +70,10 @@ the hash of any operators/measurement processes. [(#4087)](https://github.com/PennyLaneAI/pennylane/pull/4087) +...
Draw matrices by default **Context:** Currently, matrix-valued parameters are not drawn by default. **Description of the Change:** This PR changes the default of `show_matrices` to `True`. **Benefits:** This is expected to be convenient in particular for broadcasted tapes. Also: Test linting. **Possible Dr...
Implement labels for broadcasted operators ### Feature details When using parameter broadcasting and creating the label of an operation, its data is perceived as a matrix by PennyLane and therefore represented only symbolically: ```pycon >>> @qml.qnode(dev) >>> def qnode(x): >>> qml.RY(x, 0) >>> return qm...
PennyLaneAI/pennylane
diff --git a/tests/drawer/test_draw.py b/tests/drawer/test_draw.py index f6c0b43e1..c9c79bbfc 100644 --- a/tests/drawer/test_draw.py +++ b/tests/drawer/test_draw.py @@ -14,6 +14,7 @@ """ Integration tests for the draw transform """ +# pylint: disable=import-outside-toplevel from functools import partial import p...
[ "tests/drawer/test_draw.py::TestMatrixParameters::test_matrix_parameters", "tests/drawer/test_draw.py::TestMatrixParameters::test_matrix_parameters_batch_transform", "tests/drawer/test_tape_text.py::TestMaxLength::test_setting_max_length[15]", "tests/drawer/test_tape_text.py::TestShowMatrices::test_default_sh...
[ "tests/drawer/test_draw.py::TestLabelling::test_any_wire_labels", "tests/drawer/test_draw.py::TestLabelling::test_wire_order", "tests/drawer/test_draw.py::TestLabelling::test_show_all_wires", "tests/drawer/test_draw.py::TestLabelling::test_show_all_wires_and_wire_order", "tests/drawer/test_draw.py::TestDeci...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
a181c297f4915339435927b623f4d059a4e9bf8b
2019-05-03 17:38:58
docker.io/swerebenchv2/vmware-tern:250-a181c29
vmware__tern-250
Method: Package.copyright(self) → str Location: tern/classes/package.py → class Package Inputs: None (property getter) Outputs: Returns the current copyright text as a string; returns an empty string if not set. Description: Retrieves the copyright text associated with the package. Method: Package.copyright(self, text...
python
BSD-2-Clause
diff --git a/tern/classes/package.py b/tern/classes/package.py index edab9ae..36289c9 100644 --- a/tern/classes/package.py +++ b/tern/classes/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: BSD-2-Clause # +from tern.classes.notice import Notice from tern.classes.origins import Origins from tern.utils.genera...
Allow for Copyright text metadata This PR resolves #245 It contains changes to the Package object to include a 'copyright' property. This also changes the listing in base.yml. It would report a warning for any package manager listing that does not include a copyright listing. General functionality is not affecte...
Split "License" into "License" and "Copyright" **Description** There is a difference between the License name and the actual Copyright text. This means that the properties in the Package class need to change and the retrieval methods need to change **Implementation** 1. Add "copyright" to the Package class 2. Add...
vmware/tern
diff --git a/tests/test_class_package.py b/tests/test_class_package.py index aa59a42..847c6b4 100644 --- a/tests/test_class_package.py +++ b/tests/test_class_package.py @@ -17,6 +17,7 @@ class TestClassPackage(unittest.TestCase): self.p1 = Package('p1') self.p1.version = '1.0' self.p1.pkg_lic...
[ "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": "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":...
e7fe70764c8617ec77f9ebf82b4046d1c283832f
2022-04-20 17:27:33
docker.io/swerebenchv2/py-pdf-pypdf2:787-e7fe707
py-pdf__pypdf2-787
Method: PdfFileWriter.__init__(self) Location: class PdfFileWriter in PyPDF2/pdf.py Inputs: no positional arguments; optional keyword arguments may be added in future but currently none are required. Outputs: a new PdfFileWriter instance ready to receive pages and write output. Description: Creates a PDF writer object ...
python
custom-check-github
diff --git a/PyPDF2/pdf.py b/PyPDF2/pdf.py index 47430221..357c9ae4 100644 --- a/PyPDF2/pdf.py +++ b/PyPDF2/pdf.py @@ -606,7 +606,7 @@ class PdfFileWriter(object): self._sweepIndirectReferences(externMap, realdata) return data else: - if data.pdf.str...
BUG: 'PdfFileWriter' object has no attribute 'stream' Closes #670
AttributeError: 'PdfFileWriter' object has no attribute 'stream' I am very happy to see that PyPDF2 is being maintained and released again - however, it seems that the latest release appears to contain a regression. We had an unpinned dependency on PyPDF2 in our library, and when 1.27.0 was released, we started seeing ...
py-pdf/PyPDF2
diff --git a/Tests/test_writer.py b/Tests/test_writer.py index 7e478ca2..22d35a6d 100644 --- a/Tests/test_writer.py +++ b/Tests/test_writer.py @@ -340,3 +340,13 @@ def test_io_streams(): writer = PdfFileWriter() with BytesIO() as output_stream: writer.write(output_stream) + + +def test_regression_iss...
[ "Tests/test_writer.py::test_regression_issue670" ]
[ "Tests/test_writer.py::test_writer_clone", "Tests/test_writer.py::test_writer_operations", "Tests/test_writer.py::test_remove_images[side-by-side-subfig.pdf-False]", "Tests/test_writer.py::test_remove_images[reportlab-inline-image.pdf-True]", "Tests/test_writer.py::test_remove_text[side-by-side-subfig.pdf-F...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": [...
1cd0b8ff0914e8d6231175a404f59a37fe0b2410
2021-09-10 12:21:30
docker.io/swerebenchv2/systemd-mkosi:806-1cd0b8f
systemd__mkosi-806
No new interfaces are introduced.
python
null
diff --git a/man/mkosi.1 b/man/mkosi.1 index 5b97d788..2f157f4b 100644 --- a/man/mkosi.1 +++ b/man/mkosi.1 @@ -334,10 +334,10 @@ e.g.\ \[lq]!repo-url\[rq] to remove just one specific repository. For Arch Linux, additional repositories must be passed in the form \f[C]<name>::<url>\f[R] (e.g.\ \f[C]myrepo::https://myre...
Install extra trees after installing build results Fixes #789
RFC: Switch order of mkosi.extra/ and copying build results? In the case of systemd, copying the build results into the final image also copies a bunch of configuration files into the final image. We currently can't override these by using mkosi.extra/. I'm unsure if there's any big advantage to the current order so I ...
systemd/mkosi
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 89302899..cf40c843 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -98,7 +98,7 @@ class MkosiConfig(object): "read_only": False, "release": None, "repositories": [], - ...
[ "tests/test_config_parser.py::test_builtin[MkosiConfigSummary]", "tests/test_config_parser.py::test_builtin[MkosiConfigDistro]", "tests/test_config_parser.py::test_builtin[MkosiConfigManyParams]", "tests/test_config_parser.py::test_builtin[MkosiConfigIniLists1]", "tests/test_config_parser.py::test_def[Mkosi...
[ "tests/test_config_parser.py::test_verb_none", "tests/test_config_parser.py::test_verb_build", "tests/test_config_parser.py::test_verb_boot_no_cli_args1", "tests/test_config_parser.py::test_verb_boot_no_cli_args2", "tests/test_config_parser.py::test_verb_boot_no_cli_args3", "tests/test_config_parser.py::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
1b4915931c1b32ad1bcd043132a0831d71be3aa4
2021-05-19 18:38:37
docker.io/swerebenchv2/pallets-click:1916-1b49159
pallets__click-1916
Method: click.Argument.get_default(self, ctx, call=True) Location: src/click/core.py Inputs: - ctx: click.Context – the current execution context. - call (bool, default True) – if the default is a callable, determines whether to invoke it (True) or return the callable itself (False). Outputs: Returns the default value...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 6d807d1..9bc6e54 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -25,6 +25,8 @@ Unreleased ``default_map`` lookups. When using patterns like ``AliasedGroup``, override ``resolve_command`` to change the name that is returned if needed. :issue:`1895` +- If a def...
show help text with invalid default If `ctx.resilient_parsing` is enabled, type casting can fail when getting the default, and the raw invalid value will be returned instead. Showing help text temporarily enables resilient parsing mode when fetching the default. I wasn't sure what the effect would be of enabling that f...
Arguments may break `--help` Using `click.Path` for an argument may prevent the `--help` from showing up. A simple example is the following: ``` @click.command() @click.option( "-f", type=click.Path(exists=True, file_okay=True), default="this does not exist", help="Output file name", show_...
pallets/click
diff --git a/tests/test_basic.py b/tests/test_basic.py index c35e69a..c38c1af 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -547,3 +547,20 @@ def test_summary_line(runner): result = runner.invoke(cli, ["--help"]) assert "Summary line without period" in result.output assert "Here is a sent...
[ "tests/test_basic.py::test_help_invalid_default" ]
[ "tests/test_basic.py::test_basic_functionality", "tests/test_basic.py::test_repr", "tests/test_basic.py::test_return_values", "tests/test_basic.py::test_basic_group", "tests/test_basic.py::test_group_commands_dict", "tests/test_basic.py::test_group_from_list", "tests/test_basic.py::test_basic_option", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
bf49e22f41be7444dc20e05dfa5dd13f25672eba
2024-11-07 20:51:42
docker.io/swerebenchv2/getmoto-moto:8296-bf49e22
getmoto__moto-8296
Method: IoTResponse.create_role_alias(self, roleAlias: str, roleArn: str, credentialDurationSeconds: int = 3600) Location: moto/iot/responses.py Inputs: roleAlias – name of the role alias (string, required); roleArn – ARN of the IAM role to associate (string, required); credentialDurationSeconds – optional credential d...
python
Apache-2.0
diff --git a/CLOUDFORMATION_COVERAGE.md b/CLOUDFORMATION_COVERAGE.md index b7853a20f..34bcedc0a 100644 --- a/CLOUDFORMATION_COVERAGE.md +++ b/CLOUDFORMATION_COVERAGE.md @@ -277,6 +277,11 @@ Please let us know if you'd like support for a resource not yet listed here. - [x] update implemented - [x] delete impleme...
ECR: list_images() should list images with multiple tags separately Fixes #8269 The `list_images()`-method returns a `dict(imageDigest=..., imageTag=...)`, which means that we images may be listed multiple times if they have multiple tags. The original implementation ([added 7 years ago!](https://github.com/getm...
ECR only describe_images returns all the tags for given image If image has multiple tags, only the describe_images operation returns them. Other ones, like list_images return only the latest tag.
getmoto/moto
diff --git a/tests/test_ecr/test_ecr_boto3.py b/tests/test_ecr/test_ecr_boto3.py index a810718c4..8086df85e 100644 --- a/tests/test_ecr/test_ecr_boto3.py +++ b/tests/test_ecr/test_ecr_boto3.py @@ -677,6 +677,35 @@ def test_list_images(): assert "sha" in response["imageIds"][0]["imageDigest"] +@mock_aws +def te...
[ "tests/test_ecr/test_ecr_boto3.py::test_list_same_image_with_multiple_tags", "tests/test_iot/test_iot_cloudformation.py::test_create_role_alias_with_simple_cloudformation", "tests/test_iot/test_iot_cloudformation.py::test_update_role_alias_with_cloudformation", "tests/test_iot/test_iot_cloudformation.py::test...
[ "tests/test_ecr/test_ecr_boto3.py::test_create_repository", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_with_non_default_config", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_in_different_account", "tests/test_ecr/test_ecr_boto3.py::test_create_repository_with_aws_managed_kms", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5bada62721fd7882497aacfeb687aaa0c4b016e3
2025-01-11 16:24:50
docker.io/swerebenchv2/dask-dask-jobqueue:677-5bada62
dask__dask-jobqueue-677
Function: Job.__init__(self, name=None, cores=1, memory="2GB", processes=1, threads=None, local_directory=None, walltime="00:30:00", job_extra=None, job_extra_directives=None, env_extra=None, job_script_prologue=None, **job_script_epilogue**, header_skip=None, job_directives_skip=None, log_directory=None, **kwargs**) L...
python
BSD-3-Clause
diff --git a/dask_jobqueue/core.py b/dask_jobqueue/core.py index fe70ed5..8fcf4ca 100644 --- a/dask_jobqueue/core.py +++ b/dask_jobqueue/core.py @@ -25,9 +25,12 @@ logger = logging.getLogger(__name__) job_parameters = """ cores : int - Total number of cores per job + Total number of CPU cores on w...
Add argument 'job_script_epilogue' Closes #639 This allows user to specify commands that should be run after the worker command has exited. The working is similar to 'job_script_prologue' argument.
Job script epilogue Would be nice to have `job_script_prologue` equivalent but for cleanup. I.e. run some commands after worker exists. The argument could be called `job_script_epilogue`.
dask/dask-jobqueue
diff --git a/dask_jobqueue/tests/test_htcondor.py b/dask_jobqueue/tests/test_htcondor.py index 4ee455a..6b07623 100644 --- a/dask_jobqueue/tests/test_htcondor.py +++ b/dask_jobqueue/tests/test_htcondor.py @@ -33,6 +33,9 @@ def test_job_script(): "cd /some/path/", "source venv/bin/activate", ...
[ "dask_jobqueue/tests/test_htcondor.py::test_job_script", "dask_jobqueue/tests/test_oar.py::test_job_script", "dask_jobqueue/tests/test_sge.py::test_job_script", "dask_jobqueue/tests/test_slurm.py::test_job_script" ]
[ "dask_jobqueue/tests/test_htcondor.py::test_header", "dask_jobqueue/tests/test_htcondor.py::test_config_name_htcondor_takes_custom_config", "dask_jobqueue/tests/test_lsf.py::test_header", "dask_jobqueue/tests/test_lsf.py::test_job_script", "dask_jobqueue/tests/test_lsf.py::test_config", "dask_jobqueue/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.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e0b81d409f8bf4d97e5bc7548e243f884adf6e6c
2023-05-01 07:27:03
docker.io/swerebenchv2/reata-sqllineage:366-e0b81d4
reata__sqllineage-366
No new interfaces are introduced.
python
MIT
diff --git a/sqllineage/core/parser/sqlparse/handlers/source.py b/sqllineage/core/parser/sqlparse/handlers/source.py index 761402e..cdec7cd 100644 --- a/sqllineage/core/parser/sqlparse/handlers/source.py +++ b/sqllineage/core/parser/sqlparse/handlers/source.py @@ -96,7 +96,7 @@ class SourceHandler(SourceHandlerMixin, N...
fix: parenthesis around arithmetic operation Closes #355
Parenthesis around column arithmetic operation when i parsed the sql like ` insert into target1 (code,p,lsh) select code,(payment_standard - fee_tot) ,lsh from source1 ` i got the result (Column: <default>.source1.code, Column: <default>.target1.code) but i expect the result like (Colum...
reata/sqllineage
diff --git a/tests/test_columns.py b/tests/test_columns.py index 1b085c0..fcf0a59 100644 --- a/tests/test_columns.py +++ b/tests/test_columns.py @@ -223,6 +223,22 @@ FROM tab2""" def test_select_column_using_expression_in_parenthesis(): sql = """INSERT INTO tab1 +SELECT (col1 + col2) +FROM tab2""" + assert_c...
[ "tests/test_columns.py::test_select_column_using_expression_in_parenthesis" ]
[ "tests/test_columns.py::test_select_column", "tests/test_columns.py::test_select_column_wildcard", "tests/test_columns.py::test_select_distinct_column", "tests/test_columns.py::test_select_column_using_function", "tests/test_columns.py::test_select_column_using_function_with_complex_parameter", "tests/tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
316053bdf6900d70270e4f298c8e82ec6c7fd3e1
2023-04-26 17:59:57
docker.io/swerebenchv2/pallets-werkzeug:2661-316053b
pallets__werkzeug-2661
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 00eec338..3330f53f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ Version 2.3.1 Unreleased +- Percent-encode plus (+) when building URLs and in test requests. :issue:`2657` + Version 2.3.0 ------------- diff --git a/src/werkzeug/urls.py b/src/werkzeug/...
encode plus in urls The `urlencode` helper used when building URLs in the router and test client treated `+` as safe, but it has special meaning in query strings and should be percent-encoded. fixes #2657
plus (+) in query args converted to space # Summary In #2608 some functions were changed to use `urllib.parse.quote`. Note that there exists `urllib.parse.quote_plus`, which is almost the same, but handles the plus and space characters differently. I suspect, but am not certain, that werkzeug should be using `quote_...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index 08035963..00ad8b60 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -922,6 +922,7 @@ def test_build_values_multidict(endpoint, value, expect): ([1, 2], "?v=1&v=2"), ([1, None, 2], "?v=1&v=2"), ([1, "", 2], "?v=1...
[ "tests/test_routing.py::test_build_append_unknown_dict[1+2-?v=1%2B2]" ]
[ "tests/test_routing.py::test_basic_routing", "tests/test_routing.py::test_merge_slashes_match", "tests/test_routing.py::test_merge_slash_encoding[/merge/%//path-/merge/%25/path]", "tests/test_routing.py::test_merge_slash_encoding[/merge//st/path-/merge/st/path]", "tests/test_routing.py::test_merge_slashes_b...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
1b12ebfcbdef3715a1969139549d1038074f42aa
2023-06-29 22:55:48
docker.io/swerebenchv2/brazilian-utils-brutils-python:114-1b12ebf
brazilian-utils__brutils-python-114
No new interfaces are introduced.
python
MIT
diff --git a/brutils/cnpj.py b/brutils/cnpj.py index efca157..913a41e 100644 --- a/brutils/cnpj.py +++ b/brutils/cnpj.py @@ -93,7 +93,7 @@ def is_valid(cnpj): # type: (str) -> bool Using this method name to match with the js library api. Using the same method to ensure backwards compatibility. """ - ...
Melhorando os testes do método `is_valid` para o CNPJ Melhorando os testes do método is_valid.cnpj: * checando quando não é string; * quando o 'tamanho' não é o mesmo; * validando o algoritmo segundo a fonte: https://www.geradorcnpj.com/algoritmo_do_cnpj.htm closes #113
Criar mais testes para o utilitário is_valid_cnpj Criar mais casos de teste para o utilitário is_valid_cnpj. Alguns exemplos: * testar quando o input não é uma string * testar quando o input não tem o tamanho correto * testar quando o input não contém apenas dígitos Você pode utilizar o exemplo do CPF como bas...
brazilian-utils/brutils-python
diff --git a/tests/test_cnpj.py b/tests/test_cnpj.py index 08b5cb8..9b26234 100644 --- a/tests/test_cnpj.py +++ b/tests/test_cnpj.py @@ -50,31 +50,55 @@ class CNPJ(TestCase): assert format_cnpj("0000000000000a") is None assert format_cnpj("0000000000000") is None - def test_hashdigit(self): - ...
[ "tests/test_cnpj.py::CNPJ::test_is_valid" ]
[ "tests/test_cnpj.py::CNPJ::test_checksum", "tests/test_cnpj.py::CNPJ::test_display", "tests/test_cnpj.py::CNPJ::test_format_cnpj", "tests/test_cnpj.py::CNPJ::test_generate", "tests/test_cnpj.py::CNPJ::test_hashdigit", "tests/test_cnpj.py::CNPJ::test_remove_symbols", "tests/test_cnpj.py::CNPJ::test_sieve...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": "easy", "external_urls": [ "https://github.com/brazilian-utils/brutils-python/blob/1...
de011e2efe5478b8c9020275893a601063364a33
2024-01-17 11:01:29
docker.io/swerebenchv2/sdv-dev-rdt:754-de011e2
sdv-dev__rdt-754
Method: RegexGenerator._reverse_transform(self, columns_data) Location: rdt.transformers.text.RegexGenerator Inputs: - columns_data: pandas.Series – the transformed column values to be reverse‑transformed. - Uses instance attributes: * self.enforce_uniqueness (bool) * self.data_length (int) * self.generator_size ...
python
custom-check-github
diff --git a/rdt/transformers/text.py b/rdt/transformers/text.py index 7cae7a2..ca1887a 100644 --- a/rdt/transformers/text.py +++ b/rdt/transformers/text.py @@ -1,5 +1,5 @@ """Transformers for text data.""" -import warnings +import logging import numpy as np import pandas as pd @@ -8,6 +8,8 @@ from rdt.errors impo...
RegexGenerator gives a confusing message: # of possibilities are shown as an imaginary number CU-86ayz967f Resolve #748 I didn't use f-string formatting because it was raising this lint warning for info message: `rdt/transformers/text.py:166:12: W1203: Use lazy % formatting in logging functions (logging-fstring-in...
RegexGenerator gives a confusing message: # of possibilities are shown as an imaginary number ### Environment Details * RDT version: 1.9.0 ### Error Description In some cases, the RegexGenerator may be asked to create more regexes than there are unique possibilities. In this case, it will produce a warning indicat...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_text.py b/tests/unit/transformers/test_text.py index 511c351..ff208b2 100644 --- a/tests/unit/transformers/test_text.py +++ b/tests/unit/transformers/test_text.py @@ -485,3 +485,31 @@ class TestRegexGenerator: ) with pytest.raises(TransformerProcessingError, m...
[ "tests/unit/transformers/test_text.py::TestRegexGenerator::test__reverse_transform_info_message" ]
[ "tests/unit/transformers/test_text.py::TestIDGenerator::test___init__default", "tests/unit/transformers/test_text.py::TestIDGenerator::test___init__with_parameters", "tests/unit/transformers/test_text.py::TestIDGenerator::test_reset_randomization", "tests/unit/transformers/test_text.py::TestIDGenerator::test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/sdv-dev/SDV/issues/1729" ], ...
6cce53fd9acdfea9284dce7e8b9fe7b8242ce403
2016-11-19 07:58:02
docker.io/swerebenchv2/axelrod-python-axelrod:767-6cce53f
axelrod-python__axelrod-767
No new interfaces are introduced.
python
custom-check-github
diff --git a/axelrod/fingerprint.py b/axelrod/fingerprint.py index 4972b4af..b33a0a68 100644 --- a/axelrod/fingerprint.py +++ b/axelrod/fingerprint.py @@ -16,7 +16,7 @@ def create_points(step): A Point has coordinates (x, y). This function constructs points that are separated by a step equal to `step`. The ...
Adjust the range for the coordinates for the fingerprint to include 1 This ensures we get the full coordinate range for our fingerprints. This closes #766 CC @theref
The fingerprint range for x and y doesn't go to 1. Using `np.arange` for our coordinates means we don't necessarily get any coordinate at `1`: ``` >>> np.arange(0, 1, .2) array([ 0. , 0.2, 0.4, 0.6, 0.8]) ``` Given the definition by Ashlock (which defines this as an analytical function on the unit cube) I ...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_fingerprint.py b/axelrod/tests/unit/test_fingerprint.py index 663e0693..99b2d5b4 100644 --- a/axelrod/tests/unit/test_fingerprint.py +++ b/axelrod/tests/unit/test_fingerprint.py @@ -18,8 +18,12 @@ class TestFingerprint(unittest.TestCase): def setUpClass(cls): cls.strat...
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_construct_tournament_elemets", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_points", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_generate_data", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::...
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_edges", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_probes", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_init", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_plot" ]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
f542e5fb92d12ec42570d14df867d144a9e8ba4f
2020-12-14 02:51:50
docker.io/swerebenchv2/networkx-networkx:4461-f542e5f
networkx__networkx-4461
Function: randomized_partitioning(G, seed=None, p=0.5, weight=None) Location: networkx.algorithms.approximation.maxcut.randomized_partitioning Inputs: - G: a NetworkX graph (undirected, unweighted or weighted) - seed: int, :class:`random.Random` instance or ``None`` (default) controlling randomness - p: float in `...
python
custom-check-github
diff --git a/doc/reference/algorithms/approximation.rst b/doc/reference/algorithms/approximation.rst index 5b207d4fb..fe3dc53e0 100644 --- a/doc/reference/algorithms/approximation.rst +++ b/doc/reference/algorithms/approximation.rst @@ -107,3 +107,13 @@ Vertex Cover :toctree: generated/ min_weighted_vertex_co...
binomial_tree() with "create_using parameter Fixes #4460 <!-- Please run black to format your code. See https://networkx.org/documentation/latest/developer/contribute.html for details. --> <!-- this has been done. -->
Allow binomial_tree() to create directed graphs (via create_using parameter) `binomial_tree() ` doesn't seem to allow the `create_using` parameter to get passed and as a result, one can't create a directed binomial graph. This seem like a inadvertent omission and easy to fix. I will put in a PR to address this soon...
networkx/networkx
diff --git a/networkx/algorithms/approximation/tests/test_maxcut.py b/networkx/algorithms/approximation/tests/test_maxcut.py new file mode 100644 index 000000000..897d25594 --- /dev/null +++ b/networkx/algorithms/approximation/tests/test_maxcut.py @@ -0,0 +1,82 @@ +import random + +import networkx as nx +from networkx....
[ "networkx/algorithms/approximation/tests/test_maxcut.py::test_random_partitioning", "networkx/algorithms/approximation/tests/test_maxcut.py::test_random_partitioning_all_to_one", "networkx/algorithms/approximation/tests/test_maxcut.py::test_one_exchange_basic", "networkx/algorithms/approximation/tests/test_ma...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
4d35068ffe725720007ca6e1d5deb827498cd533
2020-03-04 14:31:26
docker.io/swerebenchv2/codezonediitj-pydatastructs:126-4d35068
codezonediitj__pydatastructs-126
Function: breadth_first_search(graph, source_node, operation, *args, **kwargs) Location: Inputs: - graph (Graph): graph instance on which BFS is performed. - source_node (str): name of the starting vertex. - operation (callable): function invoked for each edge traversal; signature `operation(curr_node, next_node, *args...
python
custom-check-github
diff --git a/.gitignore b/.gitignore index 52b1475..32018e9 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,9 @@ __pycache__/ ################ .vscode/ .vs/ + +# Other Files # +################ +.idea/ +build/ +dist/ diff --git a/README.md b/README.md index 786ee4a..e9d61a7 100644 --- a/README.md +++ b/README....
Added Serial BFS <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs or Relevant literature <!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact format, e.g. "Fixes #1234". See htt...
Add breadth first search for graphs #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> As graphs are now added to the `master` branch we can start adding graph algorithms. For a start we will move ahead with breadth first search(BFS). We look f...
codezonediitj/pydatastructs
diff --git a/pydatastructs/graphs/tests/test_algorithms.py b/pydatastructs/graphs/tests/test_algorithms.py new file mode 100644 index 0000000..2081081 --- /dev/null +++ b/pydatastructs/graphs/tests/test_algorithms.py @@ -0,0 +1,74 @@ +from pydatastructs import breadth_first_search, Graph + + +def test_breadth_first_sea...
[ "pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search", "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_DoublyLinkedList", "pydatastructs/linear_data_structures/tests/test_linked_lists.py::test_SinglyLinkedList", "pydatastructs/linear_data_structures/tests/test_linke...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.93, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://supertech.csail.mit.edu/papers/pbfs.pdf", ...
09fb29d0ecdd7465b6fd7d2e938aa75821da7432
2024-03-18 15:31:09
docker.io/swerebenchv2/sinaptik-ai-pandas-ai:1048-09fb29d
sinaptik-ai__pandas-ai-1048
Method: CodeManager._extract_fix_dataframe_redeclarations(self, node: ast.AST, code_lines: list[str]) -> ast.AST Location: pandasai/helpers/code_manager.py (within the CodeManager class) Inputs: - **node**: an AST node, typically an <ast.Assign> representing a potential DataFrame creation that may need fixing. - **code...
python
custom-check-github
diff --git a/pandasai/helpers/code_manager.py b/pandasai/helpers/code_manager.py index 56c6ab6a..005173cb 100644 --- a/pandasai/helpers/code_manager.py +++ b/pandasai/helpers/code_manager.py @@ -1,4 +1,5 @@ import ast +import copy import logging import re import traceback @@ -452,19 +453,24 @@ Code running: ...
fix: code manager to handle data not defined error - Closes #1045
NameError: name 'data' is not defined ### System Info MarkupSafe-2.1.5 annotated-types-0.6.0 anyio-4.3.0 astor-0.8.1 certifi-2024.2.2 charset-normalizer-3.3.2 colorama-0.4.6 contourpy-1.2.0 cycler-0.12.1 distro-1.9.0 duckdb-0.10.0 exceptiongroup-1.2.0 faker-19.13.0 fonttools-4.50.0 greenlet-3.0.3 h11-0.14.0 httpcore-1...
Sinaptik-AI/pandas-ai
diff --git a/tests/unit_tests/test_codemanager.py b/tests/unit_tests/test_codemanager.py index 9a870576..b445d4b2 100644 --- a/tests/unit_tests/test_codemanager.py +++ b/tests/unit_tests/test_codemanager.py @@ -695,7 +695,11 @@ df1 = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}) """ tree = ast.parse(python_c...
[ "tests/unit_tests/test_codemanager.py::TestCodeManager::test_fix_dataframe_redeclarations", "tests/unit_tests/test_codemanager.py::TestCodeManager::test_fix_dataframe_multiline_redeclarations", "tests/unit_tests/test_codemanager.py::TestCodeManager::test_fix_dataframe_no_redeclarations", "tests/unit_tests/tes...
[ "tests/unit_tests/test_codemanager.py::TestCodeManager::test_run_code_for_calculations", "tests/unit_tests/test_codemanager.py::TestCodeManager::test_run_code_invalid_code", "tests/unit_tests/test_codemanager.py::TestCodeManager::test_clean_code_remove_builtins", "tests/unit_tests/test_codemanager.py::TestCod...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
65320eae7c5b256cd197da00c16348824aadc807
2021-11-29 02:42:01
docker.io/swerebenchv2/sec-edgar-sec-edgar:249-65320ea
sec-edgar__sec-edgar-249
Method: fill_days(start, end, include_start=False, include_end=False) Location: secedgar.core.combo Inputs: - start (datetime.date): start of the range (required) - end (datetime.date): end of the range (required, must be >= start) - include_start (bool, optional): if True the start date is included in the result ...
python
Apache-2.0
diff --git a/docs/source/whatsnew/v0.4.0.rst b/docs/source/whatsnew/v0.4.0.rst index 84a8249..52354c6 100644 --- a/docs/source/whatsnew/v0.4.0.rst +++ b/docs/source/whatsnew/v0.4.0.rst @@ -17,6 +17,8 @@ Many breaking changes, as this update does a lot of restructuring. - Fix issue where daily CLI command would not wor...
FIX: Fix caching issue and simplify combo code - [x] closes #243 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] added entry to docs/whatsnew latest version
The same and only file gets downloaded for all years and quarters and filing types **Describe the bug** When running a sample piece of code from the official documentation (with addition of a custom `client`), the data that is downloaded is the same and the only file that gets downloaded for all years, quarters and f...
sec-edgar/sec-edgar
diff --git a/secedgar/tests/core/test_combo.py b/secedgar/tests/core/test_combo.py index 55ea6a2..bab68c7 100644 --- a/secedgar/tests/core/test_combo.py +++ b/secedgar/tests/core/test_combo.py @@ -1,8 +1,9 @@ from datetime import date import pytest + from secedgar.client import NetworkClient -from secedgar.core.co...
[ "secedgar/tests/core/test_combo.py::TestComboFilings::test_fill_days[True-True-expected0]", "secedgar/tests/core/test_combo.py::TestComboFilings::test_fill_days[True-False-expected1]", "secedgar/tests/core/test_combo.py::TestComboFilings::test_fill_days[False-False-expected2]", "secedgar/tests/core/test_combo...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": null, "confidence": null, "detected_issues": null, "difficulty": null, "external_urls": null, "intent_completeness": null, "pr_categories": null, "reasoning": null, "test_alignment_issues": null }, "num_modified_files": 3, "num_modified_lines": 182...
b7d4a927dd5b283813aae374097afb4beb2b59ec
2020-04-20 20:30:26
docker.io/swerebenchv2/ncar-geocat-comp:65-b7d4a92
ncar__geocat-comp-65
Function: month_to_season(xMon, season, time_coord_name='time') Location: geocat.comp.month_to_season module Inputs:   - xMon: xarray.Dataset (or DataArray) with a monthly time coordinate spanning whole years (number of time points must be a multiple of 12).   - season: str, three‑month season identifier (e.g., 'DJF...
python
Apache-2.0
diff --git a/src/geocat/comp/month_to_season.py b/src/geocat/comp/month_to_season.py new file mode 100644 index 0000000..c5b0e94 --- /dev/null +++ b/src/geocat/comp/month_to_season.py @@ -0,0 +1,77 @@ + + +def month_to_season(xMon, season, time_coord_name='time'): + """ This function takes an xarray dataset containi...
month_to_season CAPSTONE-118 Initial commit for Draft Pull Request Closes #7
month_to_season Port the NCL **month_to_season** family of functions, including: Month_to_season, month_to_seasonN, month_to_season12. The **month_to_season** function computes a user-specified three-month seasonal mean (DJF, JFM, FMA, MAM, AMJ, MJJ, JJA, JAS, ASO, SON, OND, NDJ).
NCAR/geocat-comp
diff --git a/test/test_month_to_season.py b/test/test_month_to_season.py new file mode 100644 index 0000000..48afb06 --- /dev/null +++ b/test/test_month_to_season.py @@ -0,0 +1,131 @@ +import unittest + +import numpy as np +import pandas as pd +import xarray as xr +from geocat.comp.month_to_season import month_to_seaso...
[ "test/test_month_to_season.py::Test_month_to_season::test_bad_season_returns_exception", "test/test_month_to_season.py::Test_month_to_season::test_partial_years_returns_exception" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
42f9d4f3b87ea2c0aec57c9322974c5fa8b8e92c
2016-05-28 12:52:59
docker.io/swerebenchv2/rpi-distro-python-gpiozero:342-42f9d4f
rpi-distro__python-gpiozero-342
Method: Robot.value(self) Location: gpiozero/boards.py Inputs: None (property getter) Outputs: tuple of two numbers (float or int) representing (left_motor_speed, right_motor_speed); each value in the range [-1, 1] where (-1, -1) = full speed backwards, (1, 1) = full speed forwards, (0, 0) = stopped. Description: Retur...
python
custom-check-github
diff --git a/gpiozero/boards.py b/gpiozero/boards.py index 3ff605a..dbd8ee4 100644 --- a/gpiozero/boards.py +++ b/gpiozero/boards.py @@ -776,6 +776,20 @@ class Robot(SourceMixin, CompositeDevice): right_motor=Motor(*right), _order=('left_motor', 'right_motor')) + @property + de...
Add value-setter for Robot class Fixes #305
Robot can't have its value set AFAIK the following _should_ work, but it doesn't. ```python >>> from gpiozero.pins.mock import MockPWMPin >>> import gpiozero.devices >>> gpiozero.devices.pin_factory = MockPWMPin >>> from gpiozero import Robot >>> r = Robot((1,2), (3,4)) >>> r.value RobotValue(left_motor=0, righ...
RPi-Distro/python-gpiozero
diff --git a/tests/test_boards.py b/tests/test_boards.py index 9ce00f2..7562a5d 100644 --- a/tests/test_boards.py +++ b/tests/test_boards.py @@ -617,20 +617,34 @@ def test_robot(): assert ( [device.pin for device in robot.left_motor] + [device.pin for device in robot.right_motor]) == ...
[ "tests/test_boards.py::test_robot" ]
[ "tests/test_boards.py::test_composite_output_on_off", "tests/test_boards.py::test_composite_output_toggle", "tests/test_boards.py::test_composite_output_value", "tests/test_boards.py::test_led_board_on_off", "tests/test_boards.py::test_led_board_active_low", "tests/test_boards.py::test_led_board_value", ...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
fb55eeee02581aaaf40c9a7b87880c6db4a97aaa
2024-04-24 22:09:25
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3169-fb55eee
aws-cloudformation__cfn-lint-3169
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/conditions/Configuration.py b/src/cfnlint/rules/conditions/Configuration.py index 591293928..10e5baf2d 100644 --- a/src/cfnlint/rules/conditions/Configuration.py +++ b/src/cfnlint/rules/conditions/Configuration.py @@ -26,8 +26,10 @@ class Configuration(CloudFormationLintRule): def ma...
Validate null Condition section *Issue #, if available:* fix #3168 *Description of changes:* Validate null Condition section By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Condition Specified but with no condition passes linting but fails deploy ### CloudFormation Lint Version 0.83.1 ### What operating system are you using? mac/ubuntu ### Describe the bug in a cfn template if you specify root level item `Conditions` but have no conditions this passes cfn-lint but always fa...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/bad/conditions_type.yaml b/test/fixtures/templates/bad/conditions_type.yaml new file mode 100644 index 000000000..8fffdf627 --- /dev/null +++ b/test/fixtures/templates/bad/conditions_type.yaml @@ -0,0 +1,8 @@ +AWSTemplateFormatVersion: "2010-09-09" +Conditions: +Resources: + myTo...
[ "test/unit/rules/conditions/test_configuration.py::TestMappingConfiguration::test_file_negative_type" ]
[ "test/unit/rules/conditions/test_configuration.py::TestMappingConfiguration::test_file_negative", "test/unit/rules/conditions/test_configuration.py::TestMappingConfiguration::test_file_positive" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8ddcf0889db28e2e822c409fe5d7c170d6742cd0
2020-09-27 11:32:44
docker.io/swerebenchv2/astropenguin-xarray-dataclasses:6-8ddcf08
astropenguin__xarray-dataclasses-6
Function: is_dataarrayclass(obj) Location: xarray_dataclasses/bases.py Inputs: obj – any Python object (typically a dataclass class or its instance) that should be examined for compliance with DataArrayClass requirements. Outputs: bool – True if *obj* is a native dataclass that defines a ``data`` field of type ``DataAr...
python
MIT
diff --git a/xarray_dataclasses/__init__.py b/xarray_dataclasses/__init__.py index 993a3bb..38e2c5f 100644 --- a/xarray_dataclasses/__init__.py +++ b/xarray_dataclasses/__init__.py @@ -4,8 +4,14 @@ __version__ = "0.1.1" # submodules +from . import bases from . import typing # aliases +from .bases import * f...
Add bases module This PR closes #5.
Add bases module Add bases module which provides `DataArrayClass`, a base class for dataclasses. ```python from xarray_dataclasses import DataArray, DataArrayClass class Image(DataArrayClass): data: DataArray[("x", "y"), float] x: DataArray["x", int] = 0 y: DataArray["y", int] = 0 ```
astropenguin/xarray-dataclasses
diff --git a/tests/test_bases.py b/tests/test_bases.py new file mode 100644 index 0000000..9773225 --- /dev/null +++ b/tests/test_bases.py @@ -0,0 +1,43 @@ +# standard library +from dataclasses import dataclass + + +# dependencies +from pytest import mark +from xarray_dataclasses.bases import is_dataarrayclass +from xa...
[ "tests/test_bases.py::test_subclass[Valid-True]", "tests/test_bases.py::test_subclass[InvalidDataType-False]", "tests/test_bases.py::test_subclass[InvalidCoordsType-False]" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": ...
cead3b2bf9fa8ba1acec7a4d36db4b153037090a
2024-07-25 03:56:17
docker.io/swerebenchv2/mpmath-mpmath:821-cead3b2
mpmath__mpmath-821
Method: mpf.__format__(self, format_spec) Location: mpmath/libmp/libmpf.py (class mpf) Inputs: - **self** – an instance of :class:`mpmath.mpf` (including special values `inf`, `-inf`, `nan`). - **format_spec** – a format‑spec string accepted by Python’s format mini‑language, e.g. ``'f'``, ``'F'``, ``'e'``, ``'E...
python
BSD-3-Clause
diff --git a/mpmath/ctx_mp_python.py b/mpmath/ctx_mp_python.py index e1a7bf6..2d28777 100644 --- a/mpmath/ctx_mp_python.py +++ b/mpmath/ctx_mp_python.py @@ -702,9 +702,10 @@ def npconvert(ctx, x): scalar. """ import numpy as np - if isinstance(x, np.integer): return ctx.make_mpf(from_i...
Misc fixes * move up blog2_10 constant * add hypothesis test deps * drop test_mpf_fmt_special() * support conversion from scalar ndarray's, closes #824
Add an additional line in ctx_mp_python.py line 679 to convert also numpy ndarrays of length 1 Hi, I would suggest adding the line if isinstance(x, np.ndarray) and len(x) == 1: x = x[0] as line 679 in ctx_mp_python.py to convert numpy ndarrays of length 1. Justification: The following code fails wi...
mpmath/mpmath
diff --git a/mpmath/tests/test_convert.py b/mpmath/tests/test_convert.py index 76cdfb5..678af08 100644 --- a/mpmath/tests/test_convert.py +++ b/mpmath/tests/test_convert.py @@ -277,7 +277,10 @@ def test_compatibility(): assert sqrt(Fraction(2, 3)).ae(sqrt(mpf('2/3'))) assert sqrt(Decimal(2)/Decimal(3)).ae(sqr...
[ "mpmath/tests/test_convert.py::test_compatibility" ]
[ "mpmath/tests/test_convert.py::test_basic_string", "mpmath/tests/test_convert.py::test_from_str", "mpmath/tests/test_convert.py::test_eps_repr", "mpmath/tests/test_convert.py::test_to_str", "mpmath/tests/test_convert.py::test_pretty", "mpmath/tests/test_convert.py::test_str_whitespace", "mpmath/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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d7a7589a6cee3aa4c68de60f4d69a9cdad50a7ff
2025-03-04 17:35:04
docker.io/swerebenchv2/python-babel-babel:1196-d7a7589
python-babel__babel-1196
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/babel/messages/extract.py b/babel/messages/extract.py index dcf62f2..2c0ccb3 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -508,7 +508,7 @@ def extract_python( :rtype: ``iterator`` """ funcname = lineno = message_lineno = None - call_stack = -1 + call_stack ...
Keep translator comments next to the translation function call (even if the text is further away) Fixes #1195.
Regression in Babel 2.17.0: pybabel extract drops comments for multi-line strings **Description** After upgrading to Babel 2.17.0, I noticed that pybabel extract no longer respects translator comments (# NOTE:) when the corresponding translatable string spans multiple lines. This was not an issue in Babel 2.16.0, makin...
python-babel/babel
diff --git a/tests/messages/test_extract.py b/tests/messages/test_extract.py index d5ac3b2..492d233 100644 --- a/tests/messages/test_extract.py +++ b/tests/messages/test_extract.py @@ -561,3 +561,46 @@ t2 = _(f'\xe5\xe4\xf6' f'\xc5\xc4\xd6') messages = list(extract.extract('python', buf, extract.DEFAULT_KEYWOR...
[ "tests/messages/test_extract.py::test_issue_1195", "tests/messages/test_extract.py::test_issue_1195_2" ]
[ "tests/messages/test_extract.py::ExtractPythonTestCase::test_comment_tag", "tests/messages/test_extract.py::ExtractPythonTestCase::test_comment_tag_multiline", "tests/messages/test_extract.py::ExtractPythonTestCase::test_comment_tag_with_leading_space", "tests/messages/test_extract.py::ExtractPythonTestCase::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
6801ed0de20df6d96b68ba834df2b82e4fc877e2
2022-02-20 07:24:51
docker.io/swerebenchv2/martinthoma-flake8-simplify:104-6801ed0
martinthoma__flake8-simplify-104
No new interfaces are introduced.
python
MIT
diff --git a/README.md b/README.md index 79277bf..a81494a 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Python-specific rules: * `SIM120` ![](https://shields.io/badge/-legacyfix-inactive): Use 'class FooBar:' instead of 'class FooBar(object):' ([example](#SIM120)) * `SIM124`: Reserved for [SIM904](#sim904)...
SIM906: Merge nested os.path.join calls Credits to Skylion007 for defining this rule! Closes #101
[SIM906] Merge nested os.path.join calls ## Explanation Explain briefly why you think this makes the code simpler. * This is a common but fun one I have noticed. I have noticed this pattern occur a lot and I believe in most cases it can be simplified to a single function call. I guess this would be kinda of similar...
MartinThoma/flake8-simplify
diff --git a/tests/test_simplify.py b/tests/test_simplify.py index 90cdc86..8faeed7 100644 --- a/tests/test_simplify.py +++ b/tests/test_simplify.py @@ -989,3 +989,26 @@ def test_sim905(): '1:10 SIM905 Use \'["de", "com", "net", "org"]\' ' "instead of '\"de com net org\".split()'" } + + +@pytest....
[ "tests/test_simplify.py::test_sim906[base]", "tests/test_simplify.py::test_sim906[str-arg]" ]
[ "tests/test_simplify.py::test_trivial_case", "tests/test_simplify.py::test_plugin_version", "tests/test_simplify.py::test_plugin_name", "tests/test_simplify.py::test_single_isinstance", "tests/test_simplify.py::test_fine_code", "tests/test_simplify.py::test_multiple_isinstance_multiple_lines", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/MartinThoma/flake8-simplify/issues/...
d32d5805e39fa8b75f7a688788de5b73b6ce0077
2024-09-27 18:23:36
docker.io/swerebenchv2/aio-libs-aiohttp:9318-d32d580
aio-libs__aiohttp-9318
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/9309.bugfix.rst b/CHANGES/9309.bugfix.rst new file mode 100644 index 000000000..73870da19 --- /dev/null +++ b/CHANGES/9309.bugfix.rst @@ -0,0 +1,1 @@ +Fixed assembling the :class:`~yarl.URL` for web requests when the host contains a non-default port or IPv6 address -- by :user:`bdraco`. diff --git ...
[PR #9309/e4028333 backport][3.10] Fix building the URL in BaseRequest when the host contains a port or IPv6 address **This is a backport of PR #9309 as merged into master (e40283338eab5b501e8e91e5b24c2c38cb1a0c71).** <!-- Thank you for your contribution! --> ## What do these changes do? The port was incorrectly...
BaseRequest.url passes the host and port to `URL.build` when the port is included in the host header (non-default port) request.host can be `127.0.0.1:8123` https://github.com/aio-libs/aiohttp/blob/0b8be7f6c8db0d59afe02109df9be874d0d637e6/aiohttp/web_request.py#L447 yarl 1.13.0+ caught this because host is not va...
aio-libs/aiohttp
diff --git a/tests/test_web_request.py b/tests/test_web_request.py index ba12d6f54..9e613bb66 100644 --- a/tests/test_web_request.py +++ b/tests/test_web_request.py @@ -526,6 +526,16 @@ def test_url_url() -> None: assert URL("http://example.com/path") == req.url +def test_url_non_default_port() -> None: + r...
[ "tests/test_web_request.py::test_url_non_default_port", "tests/test_web_request.py::test_url_ipv6" ]
[ "tests/test_web_request.py::test_base_ctor", "tests/test_web_request.py::test_ctor", "tests/test_web_request.py::test_deprecated_message", "tests/test_web_request.py::test_doubleslashes", "tests/test_web_request.py::test_content_type_not_specified", "tests/test_web_request.py::test_content_type_from_spec"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/aio-libs/aiohttp/blob/0b8be7f6c8db0d5...
418d42bfa05709b7190b546e8cbe3d69883f1c47
2024-06-11 17:52:34
docker.io/swerebenchv2/github-issue-metrics:313-418d42b
github__issue-metrics-313
Method: EnvVars.__init__(self, gh_app_id: str | None, gh_app_installation_id: str | None, gh_app_private_key: bytes, gh_token: str | None, ghe: str | None, hide_author: bool, hide_items_closed_count: bool, hide_label_metrics: bool, hide_time_to_answer: bool, hide_time_to_close: bool, ignore_users: List[str], labels_to_...
python
MIT
diff --git a/.env-example b/.env-example index f50b62c..c905ee3 100644 --- a/.env-example +++ b/.env-example @@ -4,6 +4,7 @@ GH_APP_PRIVATE_KEY="" GH_ENTERPRISE_URL = "" GH_TOKEN = "" HIDE_AUTHOR = "false" +HIDE_ITEMS_CLOSED_COUNT="false" HIDE_LABEL_METRICS = "false" HIDE_TIME_TO_ANSWER = "false" HIDE_TIME_TO_CLO...
feat: Add option to hide Number of items closed metric # Pull Request <!-- PR title needs to be prefixed with a conventional commit type (build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test) It should also be brief and descriptive for a good changelog entry examples: "feat: add new logger" or "fix: r...
Ability to hide `Number of items closed` Metric in the overview table ### Is your feature request related to a problem? `Number of items closed` as shown in the screenshot does not have any meaningful value when running the action against Discussions. Discussions are normally marked as answered rather than closed. ![...
github/issue-metrics
diff --git a/test_config.py b/test_config.py index d2f1bd1..6c2abef 100644 --- a/test_config.py +++ b/test_config.py @@ -72,6 +72,7 @@ class TestGetEnvVars(unittest.TestCase): "GH_TOKEN", "GHE", "HIDE_AUTHOR", + "HIDE_ITEMS_CLOSED_COUNT", "HIDE_LABEL_METRIC...
[ "test_config.py::TestGetEnvVars::test_get_env_vars_optional_values", "test_config.py::TestGetEnvVars::test_get_env_vars_optionals_are_defaulted", "test_config.py::TestGetEnvVars::test_get_env_vars_with_github_app", "test_config.py::TestGetEnvVars::test_get_env_vars_with_token", "test_markdown_writer.py::Tes...
[ "test_config.py::TestGetIntFromEnv::test_get_int_env_var", "test_config.py::TestGetIntFromEnv::test_get_int_env_var_with_empty_env_var", "test_config.py::TestGetIntFromEnv::test_get_int_env_var_with_non_integer", "test_config.py::TestGetEnvVars::test_get_env_vars_missing_query", "test_config.py::TestGetEnvV...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
ade23144e1d0971a66db6949997df5d33384037a
2022-10-15 21:54:21
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:84-ade2314
py-cov-action__python-coverage-comment-action-84
Function: set_output(github_output: pathlib.Path, **kwargs: bool) Location: coverage_comment/github.py Inputs: - github_output – a pathlib.Path pointing to the file used for GitHub Actions output (e.g., the file referenced by the GITHUB_OUTPUT environment variable). If falsy, the function performs no action. - **kwarg...
python
MIT
diff --git a/coverage_comment/github.py b/coverage_comment/github.py index be21db0..e322d89 100644 --- a/coverage_comment/github.py +++ b/coverage_comment/github.py @@ -153,6 +153,8 @@ def post_comment( raise CannotPostComment from exc -def set_output(**kwargs: bool) -> None: - for key, value in kwa...
Use environment files instead of `set-output` Closes #83
GitHub Actions set-output is deprecated https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter We need to change our way of setting an output value. ```python if settings.OUTPUT_FILE: with open(settings.OUTPUT_FILE, "a") as f: f.write("a=...
py-cov-action/python-coverage-comment-action
diff --git a/tests/conftest.py b/tests/conftest.py index 29d9048..2746276 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -385,3 +385,11 @@ def git(): git = Git() yield git assert not git.expected_calls + + +@pytest.fixture +def output_file(tmp_path): + file = tmp_path / "temp_output.txt" + ...
[ "tests/integration/test_github.py::test_set_output", "tests/unit/test_settings.py::test_config__from_environ__ok", "tests/unit/test_settings.py::test_config__GITHUB_PR_NUMBER[foo-None]", "tests/unit/test_settings.py::test_config__GITHUB_PR_NUMBER[refs/pull/2/merge-2]" ]
[ "tests/integration/test_github.py::test_is_default_branch[refs/heads/main-True]", "tests/integration/test_github.py::test_is_default_branch[refs/heads/other-False]", "tests/integration/test_github.py::test_is_public[private-False]", "tests/integration/test_github.py::test_is_public[internal-False]", "tests/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.github.com/en/actions/using-workflows/wor...
4ce6f6dceca70f0aae5a956adfa93c08145b922c
2025-02-14 02:08:29
docker.io/swerebenchv2/diaoul-subliminal:1207-4ce6f6d
diaoul__subliminal-1207
Method: Subtitle.reencode(self, text: str | None = None, encoding: str = 'utf-8') Location: src/subliminal/subtitle.py Inputs: - **text** (str | None): the subtitle text to be encoded; if ``None`` the current ``self.text`` is used. - **encoding** (str): target character encoding (default ``'utf-8'``). Outputs: - Re...
python
MIT
diff --git a/changelog.d/536.change.rst b/changelog.d/536.change.rst new file mode 100644 index 0000000..ed59b52 --- /dev/null +++ b/changelog.d/536.change.rst @@ -0,0 +1,1 @@ +Add a --subtitle-format CLI option to force converting subtitles to another format diff --git a/src/subliminal/cli.py b/src/subliminal/cli.py i...
Convert subtitles to another format closes #536 Add a `--subtitle-format` CLI option to force the conversion of the subtitles to another format, for instance srt. By default `--subtitle-format=''`, so the subtitles are not converted. @ptrcnull it would be good to test this on Napiprojekt subtitles that were in...
Subtitles fron NapiProjekt are not in .srt format Hi, So all subtitles downloaded from napiprojekt, are in mDVD format, not srt. I noticed though that Subliminal saves them with .srt extension, but if player supports only .srt, they will not work. Is there a chance to use eg. subconv to convert such subtitles from mD...
Diaoul/subliminal
diff --git a/tests/test_subtitle.py b/tests/test_subtitle.py index 5918996..f83b3f9 100644 --- a/tests/test_subtitle.py +++ b/tests/test_subtitle.py @@ -1,6 +1,7 @@ from __future__ import annotations import os +from textwrap import dedent import pytest from babelfish import Language # type: ignore[import-untyp...
[ "tests/test_subtitle.py::test_subtitle_reencode_text", "tests/test_subtitle.py::test_subtitle_convert_empty", "tests/test_subtitle.py::test_subtitle_convert_same_format_same_encoding", "tests/test_subtitle.py::test_subtitle_convert_same_format_different_encoding", "tests/test_subtitle.py::test_subtitle_conv...
[ "tests/test_subtitle.py::test_languague_type[None-None]", "tests/test_subtitle.py::test_languague_type[None-True]", "tests/test_subtitle.py::test_languague_type[None-False]", "tests/test_subtitle.py::test_languague_type[True-None]", "tests/test_subtitle.py::test_languague_type[True-True]", "tests/test_sub...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.84, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [ "https://www.bountysource.com/issues/28560659-subtitles...
7008855967c67da37eefbb51319ff471c71c3c1a
2024-06-22 11:43:30
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3377-7008855
aws-cloudformation__cfn-lint-3377
No new interfaces are introduced.
python
MIT-0
diff --git a/docs/rules.md b/docs/rules.md index a0b545310..686c1d102 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -137,7 +137,7 @@ The following **208** rules are applied by this linter: | [E3038<a name="E3038"></a>](../src/cfnlint/rules/resources/ServerlessTransform.py) | Check if Serverless Resources have Serv...
Relax E3041 to support DNS root records *Issue #, if available:* closes #3376 *Description of changes:* Relax `E3041` to support AWS::Route53::RecordSet resources that specify DNS root records. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the...
`E3041` false positives ### CloudFormation Lint Version 1.3.3 ### What operating system are you using? Mac ### Describe the bug I believe `E3041` is currently too strict: `Name` may be equal to `HostedZoneName`, i.e. when setting the root record. ### Expected behavior Setting the DNS root record should pass vali...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/route53/test_recordset_name.py b/test/unit/rules/resources/route53/test_recordset_name.py index 574005823..c32436872 100644 --- a/test/unit/rules/resources/route53/test_recordset_name.py +++ b/test/unit/rules/resources/route53/test_recordset_name.py @@ -27,6 +27,13 @@ def rule(): ...
[ "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance1-expected1]", "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance5-expected5]", "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance6-expected6]" ]
[ "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance0-expected0]", "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance2-expected2]", "test/unit/rules/resources/route53/test_recordset_name.py::test_validate[instance3-expected3]", "test/unit/rules/resou...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "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...
4829455bac15db5db652e3ab73e6baf08f6ea8b9
2025-05-22 22:31:11
docker.io/swerebenchv2/pymc-devs-pytensor:1414-4829455
pymc-devs__pytensor-1414
Function: pt.linalg.solve(A, b, assume_a=None, b_ndim=None, lower=False, check_finite=True, overwrite_a=False, overwrite_b=False) Location: pytensor.tensor.slinalg (exposed as pt.linalg.solve) Inputs: - **A**: Tensor (matrix or batch of matrices) of shape (..., N, N), dtype numeric. - **b**: Tensor (vector, matrix, or ...
python
custom-check-github
diff --git a/pytensor/link/jax/dispatch/slinalg.py b/pytensor/link/jax/dispatch/slinalg.py index 3d6af0001..855052b12 100644 --- a/pytensor/link/jax/dispatch/slinalg.py +++ b/pytensor/link/jax/dispatch/slinalg.py @@ -46,6 +46,7 @@ def jax_funcify_Cholesky(op, **kwargs): def jax_funcify_Solve(op, **kwargs): assume...
Fix shape issues in jax tridiagonal solve <!-- !! Thank your for opening a PR !! --> <!--- Provide a self-contained summary of your changes in the Title above --> <!--- This is what will be shown in the automatic release notes: https://github.com/pymc-devs/pytensor/releases --> ## Description <!--- Describe you...
BUG: Error in shape for JAX tridiagonal solve inputs ### Describe the issue: When calling `pt.linalg.solve` with `assume_a='tridiagonal'` on a problem A.dot(x) = b, the code fails because `dl` and `du` should have the same length as `d`. Additionally, if `b` is a vector, the code fails because `b` is supposed to hav...
pymc-devs/pytensor
diff --git a/tests/link/jax/test_slinalg.py b/tests/link/jax/test_slinalg.py index ca944221a..b2b722f8b 100644 --- a/tests/link/jax/test_slinalg.py +++ b/tests/link/jax/test_slinalg.py @@ -122,6 +122,54 @@ def test_jax_solve(): ) +@pytest.mark.parametrize( + "A_size, b_size, b_ndim", + [ + ( + ...
[ "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_forward_and_gradient[False]", "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_forward_and_gradient[True]", "tests/tensor/linalg/test_rewriting.py::test_lu_decomposition_reused_blockwise[False]", "tests/tensor/linalg/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":...
7d6cc8e42749c3dd63e8c2205d319221cdd7d911
2017-07-13 07:02:06
docker.io/swerebenchv2/axelrod-python-axelrod:1070-7d6cc8e
axelrod-python__axelrod-1070
Method: ReactivePlayer.__init__(self, probabilities: Tuple[float, float]) Location: axelrod.strategies.memoryone.ReactivePlayer Inputs: `probabilities` – a two‑element tuple of floats (P(C|C), P(C|D)) defining the conditional cooperation probabilities. Outputs: Initializes the player as a `MemoryOnePlayer` with a...
python
custom-check-github
diff --git a/axelrod/strategies/_strategies.py b/axelrod/strategies/_strategies.py index 1f584612..a5fa85ab 100644 --- a/axelrod/strategies/_strategies.py +++ b/axelrod/strategies/_strategies.py @@ -51,7 +51,7 @@ from .mathematicalconstants import Golden, Pi, e from .memoryone import ( MemoryOnePlayer, ALLCorALLD...
Add a Reactive Strategy. Closes #1069 This is just wrapper for the Memory One Player. - Write tests for Reactive strategy. - Add a Reactive strategy.
Add a reactive strategy class Any objection to adding a reactive strategy class? First described here: http://dl.acm.org/citation.cfm?id=64712 it's just a subset of a Memory One strategy where only the action of the opponent is considered. So where a mem 1 strategy is defined by $(p_1, p_2, p_3, p_4)$ (probabili...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/strategies/test_memoryone.py b/axelrod/tests/strategies/test_memoryone.py index 0cecd2ba..ac0531db 100644 --- a/axelrod/tests/strategies/test_memoryone.py +++ b/axelrod/tests/strategies/test_memoryone.py @@ -490,3 +490,41 @@ class TestALLCorALLD(TestPlayer): actions = [(C, C)] * 10 ...
[ "axelrod/tests/strategies/test_memoryone.py::TestPlayer::test_clone", "axelrod/tests/strategies/test_memoryone.py::TestPlayer::test_initialisation", "axelrod/tests/strategies/test_memoryone.py::TestPlayer::test_match_attributes", "axelrod/tests/strategies/test_memoryone.py::TestPlayer::test_repr", "axelrod/...
[]
{ "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|B4", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://dl.acm.org/citation.cfm?id=64712" ], ...
0b76b3b284884a7c8cf7b53adb5a8d37bb565855
2021-03-02 10:51:34
docker.io/swerebenchv2/pyccel-pyccel:780-0b76b3b
pyccel__pyccel-780
Function: for_loop1(start, stop, step) Location: tests/epyccel/modules/loops.py Inputs: three integers – `start` (first value of the range), `stop` (exclusive end of the range), and `step` (increment, can be negative for descending loops). The `@types(int, int, int)` decorator enforces integer arguments. Outputs: an in...
python
MIT
diff --git a/pyccel/codegen/printing/ccode.py b/pyccel/codegen/printing/ccode.py index 9a5f4601..6128e2c6 100644 --- a/pyccel/codegen/printing/ccode.py +++ b/pyccel/codegen/printing/ccode.py @@ -1317,7 +1317,7 @@ class CCodePrinter(CodePrinter): return '{} = {};'.format(lhs, rhs) def _print_For(self, ex...
Allow negative step in for loops Allow for loops of descending order (with negative step). This fixes #709: - Fix method `_print_PythonRange` of Fortran printer; - Fix method `_print_For` of C printer; - Add tests.
For Loop for loop descending order are not working in C and Fortran **Describe the bug** For Loop for loop descending order are not working in C and have some bugs in Fortran **To Reproduce** ```python for i in range(10, 1, -1): print(i) ``` ```Python >> 10 9 8 7 6 5 4 3 2 ``` ```C #include <stdlib....
pyccel/pyccel
diff --git a/tests/epyccel/modules/loops.py b/tests/epyccel/modules/loops.py index 9ee805c1..8ee87c54 100644 --- a/tests/epyccel/modules/loops.py +++ b/tests/epyccel/modules/loops.py @@ -215,3 +215,22 @@ def while_not_0( n ): while n: n -= 1 return n + +@types( int, int, int ) +def for_loop1(start, s...
[ "tests/epyccel/test_loops.py::test_for_loops[fortran]", "tests/epyccel/test_loops.py::test_for_loops[c]" ]
[ "tests/epyccel/test_loops.py::test_sum_natural_numbers[fortran]", "tests/epyccel/test_loops.py::test_sum_natural_numbers[c]", "tests/epyccel/test_loops.py::test_sum_natural_numbers[python]", "tests/epyccel/test_loops.py::test_factorial[fortran]", "tests/epyccel/test_loops.py::test_factorial[c]", "tests/ep...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
792864c5c8e6c9cd316af44012f8e261b5df9308
2023-03-15 21:28:52
docker.io/swerebenchv2/xknx-xknx:1227-792864c
xknx__xknx-1227
No new interfaces are introduced.
python
MIT
diff --git a/docs/changelog.md b/docs/changelog.md index 88516e9f..7d8f4ec3 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,6 +12,7 @@ nav_order: 2 - Add support for Device Management Configuration service. - Support CEMI M_Prop messages. +- Don't ignore CEMIFrames with source address equal to `xknx.c...
Don't ignore CEMIFrames from current xknx address <!-- You are awesome! Thanks for contributing to our project! Please, DO NOT DELETE ANY TEXT from this template!. --> ## Description <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. Li...
2.6.0 filters telegrams from KNX gateway/tunnel device itself **Description of problem:** Since xknx 2.6.0, xknx no longer recieves/processes telegrams originating from the KNX gateway itself. A RTU modbus device is connected directly to the gateway, which is why the packets originates from the gateway itself (addr...
XKNX/xknx
diff --git a/test/cemi_tests/cemi_handler_test.py b/test/cemi_tests/cemi_handler_test.py index f45ad022..d972e1b0 100644 --- a/test/cemi_tests/cemi_handler_test.py +++ b/test/cemi_tests/cemi_handler_test.py @@ -166,7 +166,7 @@ def test_unsupported_cemi(raw): assert xknx.connection_manager.cemi_count_incoming_e...
[ "test/cemi_tests/cemi_handler_test.py::test_incoming_from_own_ia" ]
[ "test/cemi_tests/cemi_handler_test.py::test_wait_for_l2_confirmation", "test/cemi_tests/cemi_handler_test.py::test_incoming_cemi", "test/cemi_tests/cemi_handler_test.py::test_incoming_management_telegram[telegram0]", "test/cemi_tests/cemi_handler_test.py::test_incoming_management_telegram[telegram1]", "test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/XKNX/xknx/commit/996697ae8cce878aadfc...
174e33977c164a0429ff535f9a5b452663cc05fa
2023-08-28 10:54:55
docker.io/swerebenchv2/ploomber-jupysql:839-174e339
ploomber__jupysql-839
Method: TableWidget.__init__(self, table, schema=None) Location: src/sql/widgets/table_widget/table_widget.py Inputs: - **table** (str): name of the SQL table to explore (required). - **schema** (str, optional): name of the schema the table belongs to; if omitted the table is looked up without a schema qualifier. Ou...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b44d24..d2d69c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.10.2dev +* [Feature] Improved messages when loading configurations from `pyproject.toml` file. +* [Feature] Add `--schema/-s` for `%sqlcmd` commands that support `--table/-t` and ensure...
Remove nargs from plotting ## Describe your changes ## Issue number Closes #595 ## Checklist before requesting a review - [ ] Performed a self-review of my code - [ ] Formatted my code with [`pkgmt format`](https://ploomber-contributing.readthedocs.io/en/latest/contributing/pr.html#linting-formatting) - ...
better argument validation in `%sqlplot` In sqlplot we have `nargs="*"`: https://github.com/ploomber/jupysql/blob/2e847539185ebe99175e9eb89b35b4da5f516f85/src/sql/magic_plot.py#L29 this causes the parser to take n arguments, changing it (like we have it in `%sqlcmd`: https://github.com/ploomber/jupysql/blob/2e847539...
ploomber/jupysql
diff --git a/src/sql/cmd/test.py b/src/sql/cmd/test.py index be79c74..0390ed9 100644 --- a/src/sql/cmd/test.py +++ b/src/sql/cmd/test.py @@ -23,7 +23,11 @@ def return_test_results(args, conn, query): def run_each_individually(args, conn): - base_query = select("*").from_(args.table) + if args.schema: + ...
[ "src/tests/test_config.py::test_dsn_filename_default_value", "src/tests/test_config.py::test_dsn_filename_resolves_user_directory", "src/tests/test_config.py::test_no_error_if_connection_file_doesnt_exist", "src/tests/test_config.py::test_no_error_if_connection_file_doesnt_have_default_section", "src/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": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/ploomber/jupysql/blob/2e847539185ebe9...
689a0e64012d1e576ebd99e786a254bc537582c6
2024-08-02 07:12:18
docker.io/swerebenchv2/python-attrs-attrs:1319-689a0e6
python-attrs__attrs-1319
Method: KWOnlyAndDefault.__attrs_pre_init__(self, *, kw_and_default) Location: defined inside the test class `KWOnlyAndDefault` in `tests/test_make.py`. Inputs: - kw_and_default (int, required keyword‑only argument). When the class is instantiated without an explicit value, the generated `__init__` supplies the defaul...
python
MIT
diff --git a/changelog.d/1319.change.md b/changelog.d/1319.change.md new file mode 100644 index 0000000..02ae141 --- /dev/null +++ b/changelog.d/1319.change.md @@ -0,0 +1,1 @@ +The combination of a `__attrs_pre_init__` that takes arguments, a kw-only field, and a default on that field does not crash anymore. diff --git...
Fix crash when __pre_init__, kw_only, and defaults come together Fixes #1284
`kw_only` with `default` breaks `__attrs_pre_init__` call The following code raises SyntaxError ```python from attrs import define, field @define class A: a: int = field(kw_only=True, default=3) def __attrs_pre_init__(self, _): pass ``` ```python Traceback (most recent call last): File ...
python-attrs/attrs
diff --git a/tests/test_make.py b/tests/test_make.py index 7a568bf..e1ad150 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -694,6 +694,25 @@ class TestAttributes: assert 12 == getattr(c, "z", None) + @pytest.mark.usefixtures("with_and_without_validation") + def test_pre_init_kw_only_work...
[ "tests/test_make.py::TestAttributes::test_pre_init_kw_only_work_with_defaults[True]", "tests/test_make.py::TestAttributes::test_pre_init_kw_only_work_with_defaults[False]" ]
[ "tests/test_make.py::TestCountingAttr::test_returns_Attr", "tests/test_make.py::TestCountingAttr::test_validators_lists_to_wrapped_tuples", "tests/test_make.py::TestCountingAttr::test_validator_decorator_single", "tests/test_make.py::TestCountingAttr::test_validator_decorator[<lambda>0]", "tests/test_make.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
b9fc728f29660c64cd850534e0f2631060706e73
2021-09-23 09:05:31
docker.io/swerebenchv2/virtuslab-git-machete:248-b9fc728
virtuslab__git-machete-248
Function: get_pull_request_by_number_or_none(number: int, org: str, repo: str) -> Optional[GitHubPullRequest] Location: git_machete/github.py Inputs: - number (int): Pull request number to look up. - org (str): GitHub organization (or user) owning the repository. - repo (str): Repository name. Outputs: Returns a G...
python
MIT
diff --git a/git_machete/client.py b/git_machete/client.py index 146e994..7cdabcf 100644 --- a/git_machete/client.py +++ b/git_machete/client.py @@ -16,10 +16,10 @@ from git_machete.constants import ( from git_machete.exceptions import MacheteException, StopInteraction from git_machete.git_operations import GitContex...
Allow to checkout closed pull requests Closes #227 Unfortunately Github API does not provide `merged` state, there is only `open` or `closed`.
Check first if given pull request is closed in `github checkout-pr` Github Api returns all opened pull requests after `GET` on [pulls endpoint](https://docs.github.com/en/rest/reference/pulls). During `github checkout-pr` on pull request which is already closed, git-machete ends up with message: ``` $ git machete ...
VirtusLab/git-machete
diff --git a/git_machete/tests/functional/test_machete.py b/git_machete/tests/functional/test_machete.py index afd239b..dd0d6e8 100644 --- a/git_machete/tests/functional/test_machete.py +++ b/git_machete/tests/functional/test_machete.py @@ -8,11 +8,12 @@ import textwrap import time import unittest import subprocess ...
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_checkout_prs", "git_machete/tests/functional/test_machete.py::MacheteTester::test_checkout_prs_freshly_cloned" ]
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_few_possible_downstream_branches_and_yes_option", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_no_downstream_branches", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_wi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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.github.com/en/rest/reference/pulls" ]...
fdf2f2d1b80531143f622e730b3b25efddaaf381
2023-06-11 11:11:03
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:184-fdf2f2d
py-cov-action__python-coverage-comment-action-184
Method: subprocess.run(*args, path: pathlib.Path, **kwargs) -> str Location: coverage_comment/subprocess.py Inputs: arbitrary command arguments; path – pathlib.Path indicating working directory for the subprocess; optional kwargs such as env, cwd (now unused), text, capture_output, check. Outputs: stdout string of the ...
python
MIT
diff --git a/.gitignore b/.gitignore index 1c6ff85..d1b1e7f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .DS_Store .coverage dev-env-vars +.coverage* diff --git a/README.md b/README.md index a12b468..cedaad4 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ See [an example](https://github.com/py-c...
Run coverage in subdirectory Closes #167 (and linked to #16) I'm not 100% sure it works, because I've mostly make tests pass, but I'd like to try that for real (and wondering about changing the e2e tests to use a subdir)
No coverage comment Hello, I have tried to debug this problem but run out of ideas. Base on exception message I see what line is raising the error its referring to missing GITHUB_TOKEN but its included ``` #.github/workflows/pr-review.yml name: Pull request auto review on: pull_request: branches: ...
py-cov-action/python-coverage-comment-action
diff --git a/tests/README.md b/tests/README.md index add59ec..5e47042 100644 --- a/tests/README.md +++ b/tests/README.md @@ -31,7 +31,7 @@ in the test suite would probably be much harder. We currently have 100% coverage, in 3 categories: - Low-level functions that have a lot of complex logic are unit-tested -- Glue...
[ "tests/unit/test_coverage.py::test_compute_coverage[0-10-0]", "tests/unit/test_coverage.py::test_compute_coverage[0-0-1]", "tests/unit/test_coverage.py::test_compute_coverage[5-0-1]", "tests/unit/test_coverage.py::test_compute_coverage[5-10-0.5]", "tests/unit/test_coverage.py::test_compute_coverage[1-100-0....
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/py-cov-action/python-coverage-comme...
fb9cac66e94f5acb68828aae0b1cd5bbfedf191f
2021-09-18 16:00:02
docker.io/swerebenchv2/pallets-jinja:1495-fb9cac6
pallets__jinja-1495
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 074dd1f8..eb51581d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Version 3.0.2 names. :issue:`1452, 1453` - Revert an unintended change that caused ``Undefined`` to act like ``StrictUndefined`` for the ``in`` operator. :issue:`1448` +- Imported ma...
Template globals not accessible within imported macros * Pass context to `_get_default_module_async` to provide template globals to imports. * Added tests. * Refactored existing and new import global tests to use existing fixtures. * Copied `CHANGES.rst` entry from #1241 since it best described the fix. Relevant ...
Template globals are not accessible within imports w/ enable_async Template globals are not applied correctly when using the `enable_async` environment flag. When used normally, template globals can be used within imported macros. With `enable_async=True`, template globals can only be accessed in macros within t...
pallets/jinja
diff --git a/tests/test_async.py b/tests/test_async.py index e1c8d234..375a7bac 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -189,6 +189,29 @@ class TestAsyncImports: assert m.variable == 42 assert not hasattr(m, "notthere") + def test_import_with_globals(self, test_env_async): +...
[ "tests/test_async.py::TestAsyncImports::test_import_with_globals", "tests/test_async.py::TestAsyncImports::test_import_with_globals_override", "tests/test_async.py::TestAsyncImports::test_from_import_with_globals" ]
[ "tests/test_async.py::test_basic_async", "tests/test_async.py::test_await_on_calls", "tests/test_async.py::test_await_on_calls_normal_render", "tests/test_async.py::test_await_and_macros", "tests/test_async.py::test_async_blocks", "tests/test_async.py::test_async_generate", "tests/test_async.py::test_as...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
6e0d11a8025007f4295b78733e318bd343710c5a
2023-06-23 14:38:34
docker.io/swerebenchv2/pennylaneai-pennylane:4295-6e0d11a
pennylaneai__pennylane-4295
Method: MPLDrawer.ctrl(self, layer: int, control_wires: Iterable[int], target_wires: Iterable[int]) Location: pennylane/drawer/mpldrawer.py → class MPLDrawer Inputs: - **layer** – integer index of the drawing layer where the operation is placed. - **control_wires** – iterable of wire indices that act as controls for...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 7667e77f5..5c4a4b0d9 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -14,6 +14,11 @@ <h3>Bug fixes 🐛</h3> +* Raise a warning if control indicators are hidden when calling `qml.draw_mpl` + [(#4295)](...
raise warning if control indicators are hidden in drawer **Context:** While working on `MPLDrawer.cond`, I realized that the the drawing of controlled ops will hide control indicators if they are between target wires. **Description of the Change:** Raise a warning if some control indicators are not visible in `dra...
[BUG] draw_mpl misses controls for multi-target-wire ops with interspersed wires ### Expected behavior All control and target wires are indicated in some way, or the draw function fails. ### Actual behavior The control wire sandwiched between target wires is hidden behind a box drawing, For example, the attached ima...
PennyLaneAI/pennylane
diff --git a/tests/drawer/test_mpldrawer.py b/tests/drawer/test_mpldrawer.py index 28cd5a94c..26bb683ff 100644 --- a/tests/drawer/test_mpldrawer.py +++ b/tests/drawer/test_mpldrawer.py @@ -19,6 +19,7 @@ page in the developement guide. """ # pylint: disable=protected-access,wrong-import-position +import warnings im...
[ "tests/drawer/test_mpldrawer.py::TestCTRL::test_ctrl_raises_warning_with_overlap[control_wires0-target_wires0]", "tests/drawer/test_mpldrawer.py::TestCTRL::test_ctrl_raises_warning_with_overlap[control_wires1-target_wires1]", "tests/drawer/test_mpldrawer.py::TestCTRL::test_ctrl_raises_warning_with_overlap[contr...
[ "tests/drawer/test_mpldrawer.py::TestInitialization::test_figsize_wires[2-2]", "tests/drawer/test_mpldrawer.py::TestInitialization::test_figsize_wires[2-3]", "tests/drawer/test_mpldrawer.py::TestInitialization::test_figsize_wires[3-2]", "tests/drawer/test_mpldrawer.py::TestInitialization::test_figsize_wires[3...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/PennyLaneAI/pennylane/assets/23283972...
c2a75c269549f4c2cd5ea3a9f481a4db22167e05
2018-08-20 10:28:15
docker.io/swerebenchv2/mirumee-ariadne:19-c2a75c2
mirumee__ariadne-19
Method: make_executable_schema(type_defs: Union[str, List[str]], resolvers: dict) → GraphQLSchema Location: ariadne/executable_schema.py Inputs: - **type_defs** – a GraphQL SDL definition either as a single string or as a list of SDL strings; when a list is supplied the strings are stripped and concatenated with blank...
python
BSD-3-Clause
diff --git a/.pylintrc b/.pylintrc index 8a605d8..4857df5 100644 --- a/.pylintrc +++ b/.pylintrc @@ -2,7 +2,7 @@ load-plugins=pylint.extensions.bad_builtin, pylint.extensions.mccabe [MESSAGES CONTROL] -disable=C0103, C0111, C0412, C1001, E1004, I0011, R0903, W0232, W0621 +disable=C0103, C0111, C0330, C0412, C1001, ...
Add build_schema_from_type_definitions This PR: - renames `build_schema` to `build_schema_from_type_definitions` (after apollo) - adds support for definitions concatenating - adds some tests and moves code around - cut module names length and drop "function per module" approach Fixes #7 ## TODO * [x] Te...
make_executable_schema type_defs arg should accept str or list of str The `make_executable_schema` utility should take string or list of strings with SDLs for type definitions and dict of dicts with resolvers as second argument, parse each one, merge them, then, if resolvers are given, add them to schema returned by `b...
mirumee/ariadne
diff --git a/tests/test_modularization.py b/tests/test_modularization.py new file mode 100644 index 0000000..f70e36b --- /dev/null +++ b/tests/test_modularization.py @@ -0,0 +1,53 @@ +from graphql import graphql + +from ariadne import make_executable_schema + +root_typedef = """ + type Query { + user: User + ...
[ "tests/test_modularization.py::test_concat_typedefs", "tests/test_modularization.py::test_override_typedef", "tests/test_modularization.py::test_override_typedef_outdated_field" ]
[ "tests/test_queries.py::test_query_default_scalar", "tests/test_queries.py::test_query_custom_scalar", "tests/test_queries.py::test_query_custom_type_default_resolver", "tests/test_queries.py::test_query_custom_type_object_default_resolver", "tests/test_queries.py::test_query_custom_type_custom_resolver", ...
{ "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": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
68673898fa8d7dda62161c7620e2b2ac9dbbc3d8
2024-10-22 22:29:18
docker.io/swerebenchv2/openmdao-aviary:582-6867389
openmdao__aviary-582
No new interfaces are introduced.
python
custom-check-github
diff --git a/aviary/models/large_single_aisle_1/large_single_aisle_1_GwGm.csv b/aviary/models/large_single_aisle_1/large_single_aisle_1_GwGm.csv index 7a0a23fd..0e33160b 100644 --- a/aviary/models/large_single_aisle_1/large_single_aisle_1_GwGm.csv +++ b/aviary/models/large_single_aisle_1/large_single_aisle_1_GwGm.csv @...
Addition of global_throttle flag to variable hierarchy ### Summary Exposes the previously hidden option to toggle if EngineDecks used a global throttle range across the entire data set, or disable it to normalize the throttle per flight condition (the default). GASP-converted input files have global_throttle set ...
Add flag for local/global throttle normalization ### Desired capability or behavior. There is a hidden (i.e. hardcoded) option to toggle which normalization scheme is used by `engine_deck.py` on line 185-186. These should be exposed as an option that can be passed/defined when setting up an Aviary (`Aircraft.Engine.GL...
OpenMDAO/Aviary
diff --git a/aviary/mission/gasp_based/ode/test/test_accel_ode.py b/aviary/mission/gasp_based/ode/test/test_accel_ode.py index 4552ad30..dad78c54 100644 --- a/aviary/mission/gasp_based/ode/test/test_accel_ode.py +++ b/aviary/mission/gasp_based/ode/test/test_accel_ode.py @@ -9,7 +9,7 @@ from aviary.subsystems.propulsion...
[ "aviary/mission/gasp_based/ode/test/test_accel_ode.py::AccelerationODETestCase::test_accel", "aviary/mission/gasp_based/ode/test/test_ascent_ode.py::AscentODETestCase::test_ascent_partials", "aviary/mission/gasp_based/ode/test/test_breguet_cruise_ode.py::CruiseODETestCase::test_cruise", "aviary/mission/gasp_b...
[ "aviary/subsystems/propulsion/test/test_engine_deck.py::EngineDeckTest::test_flight_idle_2", "aviary/subsystems/propulsion/test/test_engine_deck.py::EngineDeckTest::test_load_from_memory", "aviary/subsystems/propulsion/test/test_propulsion_mission.py::PropulsionMissionTest::test_propulsion_sum" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
862cb193c2b13db860d886725fa4235173d0dfcd
2024-10-30 02:25:14
docker.io/swerebenchv2/pallets-werkzeug:2979-862cb19
pallets__werkzeug-2979
Method: MultiDict.__or__(self, other: Mapping[K, V | Collection[V]]) → MultiDict[K, V] Location: werkzeug/datastructures/structures.py – implements dict‑style union for mutable MultiDict. Inputs: - self – a MultiDict instance containing existing key/value(s). - other – a mapping (or dict‑like) where each value is eith...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index c76cce4c..0a0616d5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -25,6 +25,8 @@ Unreleased :issue:`2970` - ``MultiDict.getlist`` catches ``TypeError`` in addition to ``ValueError`` when doing type conversion. :issue:`2976` +- Implement ``|`` and ``|=`` operato...
implement or and ior operators `MultiDict` and `Headers` implement `|` and `|=`. Similar to the `dict` implementation, `|` only works with other mappings, and `|=` works with mappings or iterators. `UpdateDictMixin` implements `|=` for updates. `ImmutableDictMixin` and `ImmutableHeadersMixin` disallow `|=`. `EnvironHea...
dict datastructures could include `|` and `|=` behavior Python 3.9 added two operators to dict: * `a | b` does `{*a, *b}` * `a |= b` does `a.update(b)` Implement this for our various dict datastructures (assuming it makes sense in each case).
pallets/werkzeug
diff --git a/tests/test_datastructures.py b/tests/test_datastructures.py index 9d11d2aa..76a5530f 100644 --- a/tests/test_datastructures.py +++ b/tests/test_datastructures.py @@ -258,6 +258,17 @@ class _MutableMultiDictTests: md.setlist("foo", [1, 2]) assert md.getlist("foo") == [1, 2] + def test...
[ "tests/test_datastructures.py::TestImmutableTypeConversionDict::test_ior", "tests/test_datastructures.py::TestImmutableMultiDict::test_ior", "tests/test_datastructures.py::TestImmutableDict::test_ior", "tests/test_datastructures.py::TestImmutableOrderedMultiDict::test_ior", "tests/test_datastructures.py::Te...
[ "tests/test_datastructures.py::TestNativeItermethods::test_basic", "tests/test_datastructures.py::TestImmutableTypeConversionDict::test_follows_dict_interface", "tests/test_datastructures.py::TestImmutableTypeConversionDict::test_copies_are_mutable", "tests/test_datastructures.py::TestImmutableTypeConversionD...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
8d91e11511590000c54c387aaf967eed4ee94d5f
2023-06-28 05:37:49
docker.io/swerebenchv2/mpmath-mpmath:711-8d91e11
mpmath__mpmath-711
Method: mpf.__new__(cls, val=fzero, *, prec=None, rounding=None, base=0) Location: mpmath/ctx_mp_python.py → class mpf Inputs: - `val`: numeric value, string, or other mpf‑compatible object. - `base` (optional, int): numeric base for interpreting string inputs; `0` means autodetect (hex, octal, binary prefixes ...
python
BSD-3-Clause
diff --git a/mpmath/ctx_mp_python.py b/mpmath/ctx_mp_python.py index 5f72a76..a46cf85 100644 --- a/mpmath/ctx_mp_python.py +++ b/mpmath/ctx_mp_python.py @@ -37,11 +37,13 @@ def __new__(cls, val=fzero, **kwargs): or a decimal string representing a number in floating-point format.""" prec, roun...
Support binary/hexadecimal string output Adapted from #414. Closes #345 Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> * this version doesn't touch argument names (dps->ps) * ~~no support for float.hex()-style binary exponents~~ PS: `from_str()` part was implemented in #703. @asmeurer, I would ...
hex representation It would be nice to be able to convert mpmath floats to and from a string hex representation (like `float.hex` and `float.fromhex`).
mpmath/mpmath
diff --git a/mpmath/tests/test_basic_ops.py b/mpmath/tests/test_basic_ops.py index 13fdc38..5f15fef 100644 --- a/mpmath/tests/test_basic_ops.py +++ b/mpmath/tests/test_basic_ops.py @@ -155,6 +155,9 @@ def _mpf_(self): assert mpf(mympf()) == mpf(3.5) assert mympf() - mpf(0.5) == mpf(3.0) assert mpf(decima...
[ "mpmath/tests/test_basic_ops.py::test_mpf_init", "mpmath/tests/test_convert.py::test_to_str" ]
[ "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": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
e17d9b11ff7a8f416bbabf0b2dbf3352d89ab016
2022-03-26 08:27:29
docker.io/swerebenchv2/reata-sqllineage:239-e17d9b1
reata__sqllineage-239
No new interfaces are introduced.
python
MIT
diff --git a/sqllineage/core/models.py b/sqllineage/core/models.py index 93a0af0..9dd1821 100644 --- a/sqllineage/core/models.py +++ b/sqllineage/core/models.py @@ -304,16 +304,12 @@ class Column: ColumnQualifierTuple(token.get_real_name(), token.get_parent_name()) ] else:...
fix: column lineage using boolean expression Closes #236
column lineages from boolean expression I have problems with some queries which contain boolean expressions (exasol-db). I only use the LineageRunner(sql_statement).get_column_lineage()-function without the gui. The column lineages ignore the second boolean field (IS_CASE_TWO). ``` CREATE VIEW VIEW_A AS SELECT ...
reata/sqllineage
diff --git a/tests/test_columns.py b/tests/test_columns.py index 1885d6f..892034d 100644 --- a/tests/test_columns.py +++ b/tests/test_columns.py @@ -228,6 +228,25 @@ FROM tab2""" ) +def test_select_column_using_boolean_expression_in_parenthesis(): + sql = """INSERT OVERWRITE TABLE tab1 +SELECT (col1 > 0 AND...
[ "tests/test_columns.py::test_select_column_using_window_function", "tests/test_columns.py::test_select_column_using_boolean_expression_in_parenthesis", "tests/test_columns.py::test_window_function_in_subquery" ]
[ "tests/test_columns.py::test_select_column", "tests/test_columns.py::test_select_column_wildcard", "tests/test_columns.py::test_select_column_using_function", "tests/test_columns.py::test_select_column_using_function_with_complex_parameter", "tests/test_columns.py::test_select_column_using_expression", "t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
6cce53fd9acdfea9284dce7e8b9fe7b8242ce403
2016-11-19 11:53:14
docker.io/swerebenchv2/axelrod-python-axelrod:770-6cce53f
axelrod-python__axelrod-770
Method: AshlockFingerprint.plot(self, col_map='seismic', interpolation='none', title=None) Location: axelrod/fingerprint.py Inputs: - col_map (str, optional): Matplotlib colormap name used for the heat‑map. - interpolation (str, optional): Matplotlib interpolation method for the image. - title (str, optional): Title te...
python
custom-check-github
diff --git a/axelrod/fingerprint.py b/axelrod/fingerprint.py index 4972b4af..bd14d5be 100644 --- a/axelrod/fingerprint.py +++ b/axelrod/fingerprint.py @@ -239,7 +239,7 @@ class AshlockFingerprint(): self.data = self.generate_data(self.interactions, self.points, edges) return self.data - def plot(...
Add title option to fingerprint.plot ~~This is branched from #767.~~ EDIT: That's no longer true. Closes #769
Make it possible to pass a title to the fingerprint plot. Simple, pushing this shortly.
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_fingerprint.py b/axelrod/tests/unit/test_fingerprint.py index 663e0693..b03d93c2 100644 --- a/axelrod/tests/unit/test_fingerprint.py +++ b/axelrod/tests/unit/test_fingerprint.py @@ -113,6 +113,8 @@ class TestFingerprint(unittest.TestCase): self.assertIsInstance(q, matplotli...
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_plot" ]
[ "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_construct_tournament_elemets", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_edges", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::test_create_points", "axelrod/tests/unit/test_fingerprint.py::TestFingerprint::t...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8f389997887232500d4aa1a2b0ae0c7320c4c84a
2024-01-19 00:56:19
docker.io/swerebenchv2/celery-celery:8806-8f38999
celery__celery-8806
Method: PersistentScheduler._create_schedule(self) Location: celery/beat.py → class PersistentScheduler (inherits Scheduler) Inputs: None (operates on internal attribute `self._store`, a shelve‑like mapping) Outputs: None (void). Side‑effects: - Tries to read `self._store['entries']`. - If a `KeyError`, `UnicodeDecodeE...
python
custom-check-github
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index e0a8394bc..6159effcc 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -295,4 +295,5 @@ JoonHwan Kim, 2022/08/01 Kaustav Banerjee, 2022/11/10 Austin Snoeyink 2022/12/06 Jeremy Z. Othieno 2023/07/27 -Tomer Nosrati, 2022/17/07 \ No newline at end of file +To...
Catch UnicodeDecodeError when opening corrupt beat-schedule.db There is existing code to detect if celerybeat-schedule.db is corrupted and recreate it, however sometimes a UnicodeDecodeError is thrown in the process of throwing the KeyError. This catches that error and allows Beat to use the existing code to recreate t...
Celery beat UnicodeDecodeError (Python 3.4) issue I am using Python 3.4 with Celery 3.1.19 Running without beat it works properly: ``` celery worker --app worker --config=celeryconfig --loglevel=info ``` But with celery beat: ``` celery worker --app worker -B --config=celeryconfig --loglevel=info ``` I got this ex...
celery/celery
diff --git a/t/unit/app/test_beat.py b/t/unit/app/test_beat.py index fa163bb93..a95e8e414 100644 --- a/t/unit/app/test_beat.py +++ b/t/unit/app/test_beat.py @@ -2,7 +2,7 @@ import errno import sys from datetime import datetime, timedelta, timezone from pickle import dumps, loads -from unittest.mock import Mock, call...
[ "t/unit/app/test_beat.py::test_PersistentScheduler::test_create_schedule_corrupted", "t/unit/app/test_beat.py::test_PersistentScheduler::test_create_schedule_missing_entries" ]
[ "t/unit/app/test_beat.py::test_BeatLazyFunc::test_beat_lazy_func", "t/unit/app/test_beat.py::test_ScheduleEntry::test_next", "t/unit/app/test_beat.py::test_ScheduleEntry::test_is_due", "t/unit/app/test_beat.py::test_ScheduleEntry::test_repr", "t/unit/app/test_beat.py::test_ScheduleEntry::test_reduce", "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": "B4", "confidence": 0.9, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
a55c98ff7f71022690862d3bbaa2c9ab8d32952d
2021-03-01 16:53:54
docker.io/swerebenchv2/alteryx-woodwork:646-a55c98f
alteryx__woodwork-646
Method: WoodworkTableAccessor.rename(self, columns) Location: woodwork/table_accessor.py Inputs: columns (dict[str → str]) – mapping of existing column names to their new names. Must be a dictionary; keys must exist in the DataFrame. Outputs: pandas.DataFrame – a new DataFrame with the columns renamed and Woodwork typi...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index ac2c7f9..8e1ee70 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -35,6 +35,7 @@ Release Notes * Add KoalasColumnAccessor (:pr:`634`) * Add ``pop`` to WoodworkTableAccessor (:pr:`636`) ...
Add rename to WoodworkTableAccessor - Adds `Schema.rename` that handles input validation and updating the schema and `WoodworkTableAccessor.rename` that updates the schema and the dataframe - Closes #616
Add WoodworkTableAccessor.rename - Allows users to rename columns in their DataFrame, returning a new DataFrame with the same Woodwork typing info initialized.
alteryx/woodwork
diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py index f3b1df0..933054a 100644 --- a/woodwork/tests/accessor/test_table_accessor.py +++ b/woodwork/tests/accessor/test_table_accessor.py @@ -825,15 +825,17 @@ def test_accessor_with_falsy_column_names(falsy_names...
[ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
2a8017076e0a4669f2e2e55e2198aadacb13bb83
2024-08-07 09:12:36
docker.io/swerebenchv2/getmoto-moto:7939-2a80170
getmoto__moto-7939
Function: service_whitelisted(service: str) -> bool Location: moto/core/config.py Inputs: - **service**: name of the AWS service (e.g., "s3", "dynamodb"). Outputs: - Returns **True** if the service is allowed by the current `service_whitelist` configuration (or if the whitelist is `None`), otherwise **False**. Descri...
python
Apache-2.0
diff --git a/docs/docs/configuration/index.rst b/docs/docs/configuration/index.rst index 9466d7497..ba0b50358 100644 --- a/docs/docs/configuration/index.rst +++ b/docs/docs/configuration/index.rst @@ -20,6 +20,7 @@ If you are using the decorators, some options are configurable within the decora "servic...
SQS: Improve error handling for unknown queues All relevant tests are now verified against AWS. Fixes #7827
SQS: get_queue_by_name does not raise QueueDoesNotExist exception when queue does not exist With botocore 1.34.17, attempting to load or get a non-existent SQS queue would raise a sqs.meta.client.exceptions.QueueDoesNotExist exception. With newer versions of the boto package, this exception is no longer raised when us...
getmoto/moto
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 000000000..f723cf5f3 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,18 @@ +import boto3 +import pytest + +from moto import mock_aws + + +@pytest.fixture(scope="function") +def account_id(): + """Return the current Account ID. Will reach ...
[ "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", "tests/test_awslambda/test_awslambda_cloudformation.py::test_lambda_with_code_image_can_be_created", "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":...
95fe313ba5ca384041472cd171ea60fad910c207
2021-05-14 17:26:12
docker.io/swerebenchv2/pycqa-pyflakes:632-95fe313
pycqa__pyflakes-632
No new interfaces are introduced.
python
MIT
diff --git a/README.rst b/README.rst index c456d25..47ea7ed 100644 --- a/README.rst +++ b/README.rst @@ -39,8 +39,7 @@ Design Principles Pyflakes makes a simple promise: it will never complain about style, and it will try very, very hard to never emit false positives. -Pyflakes is also faster than Pylint_ -or Pyche...
Detect typing module attributes with 'import typing as <name>' Fixes #561 See https://github.com/pallets/click/pull/1896#discussion_r632645323 for use case.
`typing.Literal` is not detected when renamed at import time I just encountered a false-positive regression reported by PyFlakes 2.2.0, but not 2.1.1: If the *Literal* class from `typing` or `typing_extensions` is renamed at import time, PyFlakes looses track of it and treats any string argument as forward-reference th...
PyCQA/pyflakes
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39ba139..8c078ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy2", "p...
[ "pyflakes/test/test_match.py::TestMatch::test_match_bindings", "pyflakes/test/test_match.py::TestMatch::test_match_double_star", "pyflakes/test/test_match.py::TestMatch::test_match_pattern_matched_class", "pyflakes/test/test_match.py::TestMatch::test_match_star", "pyflakes/test/test_type_annotations.py::Tes...
[ "pyflakes/test/test_api.py::TestIterSourceCode::test_emptyDirectory", "pyflakes/test/test_api.py::TestIterSourceCode::test_explicitFiles", "pyflakes/test/test_api.py::TestIterSourceCode::test_multipleDirectories", "pyflakes/test/test_api.py::TestIterSourceCode::test_onlyPythonSource", "pyflakes/test/test_ap...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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":...
11cf3af55948c9cdb5b28313c6f57403fc1b3a0e
2025-05-02 20:37:21
docker.io/swerebenchv2/jlowin-fastmcp:301-11cf3af
jlowin__fastmcp-301
Method: Client.list_tools_mcp(self) Location: src/fastmcp/client/client.py Inputs: None Outputs: mcp.types.ListToolsResult – the raw MCP “ListToolsResult” object containing a `tools` list and any protocol‑level metadata. Description: Sends a tools/list request to the server and returns the full MCP protocol result ...
python
Apache-2.0
diff --git a/docs/clients/client.mdx b/docs/clients/client.mdx index 21459df..5602887 100644 --- a/docs/clients/client.mdx +++ b/docs/clients/client.mdx @@ -149,6 +149,34 @@ The `Client` provides methods corresponding to standard MCP requests: * **`list_prompts()`**: Retrieves available prompt templates. * **`get...
Add low-level methods to client Supports "friendly" client behavior like `client.call_tool()` or returning the "raw" MCP objects via `client.call_tool_mcp()`. Closes #295
Compatibility with official mcp and running in-memory ### Enhancement Description I do not need to run my MCP as a server as I'm doing everything from Python. So I've been trying to experiment with this approach: ```py from agents.mcp import MCPServer, MCPServerStdio from mcp.types import Tool as MCPTool, CallToolRes...
jlowin/fastmcp
diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 7bc0fe2..c6d671f 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -79,6 +79,19 @@ async def test_list_tools(fastmcp_server): assert set(tool.name for tool in result) == {"greet", "add"} +async def test...
[ "tests/client/test_client.py::test_list_tools_mcp", "tests/client/test_client.py::test_call_tool_mcp", "tests/client/test_client.py::test_list_resources_mcp", "tests/client/test_client.py::test_list_prompts_mcp", "tests/client/test_client.py::test_get_prompt_mcp", "tests/client/test_client.py::test_read_r...
[ "tests/client/test_client.py::test_list_tools", "tests/client/test_client.py::test_call_tool", "tests/client/test_client.py::test_list_resources", "tests/client/test_client.py::test_list_prompts", "tests/client/test_client.py::test_get_prompt", "tests/client/test_client.py::test_read_resource", "tests/c...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
c8d618ed7ad3be3b204a1b64e558c047951e76da
2017-06-02 22:52:00
docker.io/swerebenchv2/brettcannon-gidgethub:38-c8d618e
brettcannon__gidgethub-38
Method: GitHubAPI.__init__(self, requester, *, oauth_token=None, cache=None) Location: gidgethub/abc.py Inputs: - requester (str) – identifier of the client making the request. - oauth_token (Optional[str]) – OAuth token for authenticated requests (default None). - cache (Optional[MutableMapping[str, Tuple[Op...
python
Apache-2.0
diff --git a/README.rst b/README.rst index a75470d..8593aee 100644 --- a/README.rst +++ b/README.rst @@ -70,6 +70,8 @@ Changelog - Add type hints. +- Add a *cache* argument to ``gidgethub.abc.GitHubAPI``. + 2.2.0 ''''''''''''''''''' diff --git a/docs/abc.rst b/docs/abc.rst index 0432521..efdcba6 100644 --- a/d...
Provide a cache for GitHubAPI Closes #20
Provide a caching GitHubAPI mixin Using [`ETag` and `Last-Modified`](https://developer.github.com/v3/#conditional-requests), a mixin which overrides `abc.GitHubAPI._request()` could pass in the appropriate headers and catch a `304` status code to return a cached result. This should only be used on `GET` with no `body`.
brettcannon/gidgethub
diff --git a/gidgethub/test/test_abc.py b/gidgethub/test/test_abc.py index 9110441..a6052be 100644 --- a/gidgethub/test/test_abc.py +++ b/gidgethub/test/test_abc.py @@ -5,6 +5,7 @@ import types import pytest +from .. import RedirectionException from .. import abc as gh_abc from .. import sansio @@ -12,13 +13,1...
[ "gidgethub/test/test_abc.py::test_url_formatted", "gidgethub/test/test_abc.py::test_headers", "gidgethub/test/test_abc.py::test_rate_limit_set", "gidgethub/test/test_abc.py::test_decoding", "gidgethub/test/test_abc.py::test_more", "gidgethub/test/test_abc.py::test_getitem", "gidgethub/test/test_abc.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://developer.github.com/v3/#conditional-requests"...
b74bacfcd2de7fa806d089791c266b56bd95880f
2024-08-01 09:29:47
docker.io/swerebenchv2/mpmath-mpmath:828-b74bacf
mpmath__mpmath-828
Function: mpf(x) Location: mpmath/__init__.py (exposed as the top‑level ``mpf`` factory) Inputs: - **x** – a value convertible to an mpf. Accepted types include ``str`` (numeric literals, fractions, "inf", "nan", etc.), Python ``int``/``float``, ``Fraction`` and other numeric objects. - Optional keyword arguments are ...
python
BSD-3-Clause
diff --git a/.gitignore b/.gitignore index 7698467..b434fda 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,6 @@ htmlcov/ # PyCharm files .idea/ + +# Ignore files cached by Hypothesis (including examples directory so far) +.hypothesis/ diff --git a/docs/basics.rst b/docs/basics.rst index 680257b..3d40bd4 1006...
Misc fixes * fix mp.convert (missing rounding mode for from_rational) * ignore .hypothesis/ * drop sign from nstr(mpf('inf')) output, closes #827
nstr(mpf('inf')) prints '+inf' (should be 'inf') While for finite numbers positive sign - ignored. This also inconsistent across contexts: ```pycon >>> nstr(mp.mpf('inf')) '+inf' >>> nstr(fp.mpf('inf')) 'inf' ```
mpmath/mpmath
diff --git a/mpmath/tests/test_convert.py b/mpmath/tests/test_convert.py index 678af08..73c84ca 100644 --- a/mpmath/tests/test_convert.py +++ b/mpmath/tests/test_convert.py @@ -41,7 +41,7 @@ def test_basic_string(): assert str(mpf("-2163048125l")) == '-2163048125.0' assert str(mpf("-2163048125L/1088391168")) ...
[ "mpmath/tests/test_convert.py::test_basic_string" ]
[ "mpmath/tests/test_convert.py::test_from_str", "mpmath/tests/test_convert.py::test_eps_repr", "mpmath/tests/test_convert.py::test_to_str", "mpmath/tests/test_convert.py::test_pretty", "mpmath/tests/test_convert.py::test_str_whitespace", "mpmath/tests/test_convert.py::test_str_format", "mpmath/tests/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
c68e78fe8dddbe7453f5e14251097f7d0be3beee
2020-01-18 19:14:49
docker.io/swerebenchv2/theskumar-python-dotenv:224-c68e78f
theskumar__python-dotenv-224
Function: Binding(key, value, original, error) Location: src/dotenv/parser.py – defined as a `namedtuple`/`TypedDict` (namedtuple in the source) with fields `key`, `value`, `original`, `error`. Inputs: - **key**: `typing.Optional[typing.Text]` – the variable name extracted from the line; may be `None` for comment‑only ...
python
BSD-3-Clause
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b3a429..78b65cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Latest - Fix handling of malformed lines and lines without a value: - Don't print warning when key has no value. - Reject more malformed lines (e.g. "A: B"). +- Fix handling of lines wit...
Fix handling of lines with just a comment Closes #223.
Warning for consecutive lines that are comments With #211 (v0.10.4), if there are consecutive lines that are comments, there will be a warning for each line after the first. because `key` and `value` will be `None`, passing the check for the warning. The only reason the first line does not have a warning is because it ...
theskumar/python-dotenv
diff --git a/tests/test_parser.py b/tests/test_parser.py index 837717d..dae51d3 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -7,84 +7,119 @@ from dotenv.parser import Binding, Original, parse_stream @pytest.mark.parametrize("test_input,expected", [ (u"", []), - (u"a=b", [Binding(key=u"a", ...
[ "tests/test_parser.py::test_parse_stream[-expected0]", "tests/test_parser.py::test_parse_stream[a=b-expected1]", "tests/test_parser.py::test_parse_stream['a'=b-expected2]", "tests/test_parser.py::test_parse_stream[[=b-expected3]", "tests/test_parser.py::test_parse_stream[", "tests/test_parser.py::test_par...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
04104ada48a173127bdbbd086a57c1cc57b18ebb
2022-05-02 18:31:17
docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1079-04104ad
pyjanitor-devs__pyjanitor-1079
No new interfaces are introduced.
python
MIT
diff --git a/AUTHORS.md b/AUTHORS.md index 2c04fb0..2baa06a 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -105,3 +105,4 @@ Contributors - [@robertmitchellv](https://github.com/robertmitchellv) | [contributions](https://github.com/pyjanitor-devs/pyjanitor/issues?q=is%3Aclosed+mentions%3Arobertmitchellv) - [@ashenafiyb](...
[DOC]: Method-chaining examples for fill.py <!-- 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. - [INF]: I...
[DOC] Adding minimal working examples to docstrings; a checklist ## Background This thread is borne out of the discussion from #968 , in an effort to make documentation more beginner-friendly & more understandable. One of the subtasks mentioned in that thread was to go through the function docstrings and include a ...
pyjanitor-devs/pyjanitor
diff --git a/tests/io/test_read_commandline.py b/tests/io/test_read_commandline.py index 9c9f40c..9885ac0 100644 --- a/tests/io/test_read_commandline.py +++ b/tests/io/test_read_commandline.py @@ -1,10 +1,13 @@ import os +import sys from subprocess import CalledProcessError + import pandas as pd import pytest ...
[ "tests/math/test_logit.py::test_logit" ]
[ "tests/io/test_read_commandline.py::test_read_commandline", "tests/io/test_read_commandline.py::test_read_commandline_bad_cmd" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pyjanitor-devs/pyjanitor/issues/968...
9b46b551cbe60c2291e3e700df33f0b27fe5a556
2021-08-24 08:01:07
docker.io/swerebenchv2/pennylaneai-pennylane:1585-9b46b55
pennylaneai__pennylane-1585
Method: QNode.__init__(self, func, device, interface=None, diff_method='best', **diff_options) Location: pennylane/qnode.py Inputs: - func (callable): Python function that builds the quantum circuit. - device (Device): PennyLane device on which the circuit will be executed. - interface (str | None, optional): Backend i...
python
Apache-2.0
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index d018e6758..1d62a188f 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -384,6 +384,10 @@ and requirements-ci.txt (unpinned). This latter would be used by the CI. * The `qml.ResetError` is now supported for `default.mixed` device. [(#1541)...
[Code Together] Allow QNodes to support `diff_method=None` option (#1274) ------------------------------------------------------------------------------------------------------------ **Context:** Adds `diff_method=None` **Description of the Change:** Now you can specify `diff_method=None`. This works the same as ...
Allow QNodes to support `diff_method=None` option As discussed in #1271 , add the option for `diff_method=None` to QNodes. This would create QNodes that accept NumPy input, return NumPy output, but cannot be differentiated.
PennyLaneAI/pennylane
diff --git a/tests/tape/test_qnode.py b/tests/tape/test_qnode.py index 4504236df..d9fcea9c5 100644 --- a/tests/tape/test_qnode.py +++ b/tests/tape/test_qnode.py @@ -330,6 +330,44 @@ class TestValidation: == "<QNode: wires=1, device='default.qubit.autograd', interface='autograd', diff_method='best'>" ...
[ "tests/tape/test_qnode.py::TestValidation::test_diff_method_none[None]", "tests/tape/test_qnode.py::TestValidation::test_diff_method_none[1]", "tests/tape/test_qnode.py::TestValidation::test_diff_method_none[1.1]", "tests/tape/test_qnode.py::TestValidation::test_diff_method_none[par3]", "tests/tape/test_qno...
[ "tests/tape/test_qnode.py::TestValidation::test_invalid_interface", "tests/tape/test_qnode.py::TestValidation::test_invalid_device", "tests/tape/test_qnode.py::TestValidation::test_validate_device_method", "tests/tape/test_qnode.py::TestValidation::test_validate_backprop_method_invalid_device", "tests/tape/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
52872a5485651d606900cddd720b4a4aa658d690
2019-02-03 21:11:28
docker.io/swerebenchv2/aaugustin-websockets:568-52872a5
aaugustin__websockets-568
Function: ConnectionClosedOK(code: int, reason: str) Location: websockets.exceptions Inputs: - **code** (int): close status code; must be 1000 (OK) or 1001 (going away). - **reason** (str): human‑readable close reason (may be ``None``). Outputs: - Returns an instance of ``ConnectionClosedOK`` (subclass of ``Connect...
python
BSD-3-Clause
diff --git a/docs/changelog.rst b/docs/changelog.rst index 9618c1d..ee407d1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -31,6 +31,11 @@ Also: :meth:`~protocol.WebSocketCommonProtocol.pong` support bytes-like types :class:`bytearray` and :class:`memoryview` in addition to :class:`bytes`. +* Added...
Add ConnectionClosed subclass for normal closure. Thanks @cjerdonek for the suggestion. Fix #285.
ConnectionClosed subclass for normal closure I was thinking it would be a nice touch to add (and use) a `ConnectionClosed` subclass that corresponds to a normal closure (i.e. status code 1000). This would make it easier for users to handle expected (normal) closures differently and more elegantly, namely without hav...
aaugustin/websockets
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 3ccdadb..6dfbeb7 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -90,7 +90,7 @@ class ExceptionsTests(unittest.TestCase): "(OK), no reason", ), ( - ConnectionClosed(10...
[ "tests/test_exceptions.py::ExceptionsTests::test_str" ]
[]
{ "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.94, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/aaugustin/websockets/blob/27549c4b3...
82d35fb93243aa8bdc50bf13be0f4cba472d037d
2023-12-30 11:14:53
docker.io/swerebenchv2/amaranth-lang-amaranth:1009-82d35fb
amaranth-lang__amaranth-1009
Function: Const.cast(obj) Location: amaranth.hdl.ast.Const class method Inputs: - **obj**: a value expression to be interpreted as a constant. Accepted types include `Const`, Python `int`, `Slice` objects (e.g., resulting from `Const(...)[start:stop]`), and `Cat` objects composed exclusively of constant parts. The obj...
python
BSD-2-Clause
diff --git a/amaranth/hdl/ast.py b/amaranth/hdl/ast.py index 2ed8801..70e4763 100644 --- a/amaranth/hdl/ast.py +++ b/amaranth/hdl/ast.py @@ -727,9 +727,13 @@ class Const(Value): width = 0 for part in obj.parts: const = Const.cast(part) - value |= const.value <<...
hdl.ast: make `Slice` const-castable. Fixes #1006.
Slices resulting from `.rotate_{left,right}` are not considered constant-castable Previously, in #911, I noticed that you could not use a Const() as a reset= argument when creating a Signal. The reason why I wanted this was to make a value with a particular shape. This has been fixed, but today I noticed that you ca...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index 625e0e8..b97b2a1 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -799,6 +799,16 @@ class SliceTestCase(FHDLTestCase): s1 = Const(10)[2] self.assertEqual(repr(s1), "(slice (const 4'd10) 2:3)") + def test_const(self)...
[ "tests/test_hdl_ast.py::SliceTestCase::test_const", "tests/test_hdl_ast.py::CatTestCase::test_const" ]
[ "tests/test_hdl_ast.py::ShapeTestCase::test_cast_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_enum_bad", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int", "tests/test_hdl_ast.py::ShapeTestCase::test_cast_int_wrong", "tests/test_hdl_ast...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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/mcclure/analogue-core-template-amar...
92a7535023c9173361340bf6b2db89c6972f4781
2023-12-19 21:58:45
docker.io/swerebenchv2/jazzband-tablib:573-92a7535
jazzband__tablib-573
No new interfaces are introduced.
python
MIT
diff --git a/HISTORY.md b/HISTORY.md index 1755100..71350af 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -7,6 +7,9 @@ - The html format now supports importing from HTML content (#243) - The ODS format now supports importing from .ods files (#567). The support is still a bit experimental. +- When adding rows to a da...
Fixes #572 - Allow appending rows after a dynamic column was inserted
appending rows when there are dynamic columns At the moment we cannot add rows (using append, rpush, lpush) when there is already a dynamic column: a function object can be added at the appropriate place in the row, but unlike a normal dynamic column it will not be executed.
jazzband/tablib
diff --git a/tests/test_tablib.py b/tests/test_tablib.py index 6c61c20..9035c1e 100755 --- a/tests/test_tablib.py +++ b/tests/test_tablib.py @@ -13,7 +13,6 @@ from io import BytesIO, StringIO from pathlib import Path from uuid import uuid4 -import pytest from openpyxl.reader.excel import load_workbook import ta...
[ "tests/test_tablib.py::TablibTestCase::test_add_callable_column" ]
[ "tests/test_tablib.py::TablibTestCase::test_add_column", "tests/test_tablib.py::TablibTestCase::test_add_column_no_data_no_headers", "tests/test_tablib.py::TablibTestCase::test_add_column_with_header_and_data_exists", "tests/test_tablib.py::TablibTestCase::test_add_column_with_header_and_headers_only_exist", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
1bc59b70e1744fcc68a773a03a45f5cfa91f6438
2024-05-09 07:54:08
docker.io/swerebenchv2/marketsquare-robotframework-robocop:1081-1bc59b7
marketsquare__robotframework-robocop-1081
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/releasenotes/fixes.5.rst b/docs/releasenotes/fixes.5.rst new file mode 100644 index 0000000..2eddede --- /dev/null +++ b/docs/releasenotes/fixes.5.rst @@ -0,0 +1,13 @@ +Relative paths in argument files (#1071) +----------------------------------------- + +Relative paths in argument files will be now r...
Fix relative paths not resolved in argument files Fixes #1071
[Bug] --ext-rules path in argument file should be relative to the argument file location ### What happened? Running robocop with `--ext-rules` parameter takes a path relative to the location where the robocop is launched. When using the argument file with `-A` parameter then `--ext-rules` should be relative to the a...
MarketSquare/robotframework-robocop
diff --git a/tests/test_data/relative_path_in_argfile/tests/args.txt b/tests/test_data/relative_path_in_argfile/tests/args.txt new file mode 100644 index 0000000..aa9c310 --- /dev/null +++ b/tests/test_data/relative_path_in_argfile/tests/args.txt @@ -0,0 +1,1 @@ +--ext-rules libraries/test.py \ No newline at end of fil...
[ "tests/utest/test_configuration_file.py::TestConfigurationFile::test_load_config_with_relative_paths_argfile" ]
[ "tests/utest/test_configuration_file.py::TestConfigurationFile::test_find_project_root_same_dir", "tests/utest/test_configuration_file.py::TestConfigurationFile::test_find_project_root_missing_but_git", "tests/utest/test_configuration_file.py::TestConfigurationFile::test_ignore_git_dir", "tests/utest/test_con...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
bd79de2fa20a27832e8678906a57755682b9f0ec
2023-01-26 16:05:43
docker.io/swerebenchv2/stac-utils-pystac:966-bd79de2
stac-utils__pystac-966
Method: STACObject.get_single_link(self, rel: Optional[Union[str, pystac.RelType]]=None, media_type: Optional[Union[str, pystac.MediaType]]=None) -> Optional[pystac.Link] Location: pystac/stac_object.py Inputs: - rel – optional relationship type to filter links (string, RelType, or None). - media_type – optional media...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bd58806..032efdbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - Serializing optional Collection attributes ([#916](https://github.com/stac-utils/pystac/pull/916)) - A couple non-running tests ([#912](https://github.com/stac-utils/pystac/pull/912)) - ...
Filter links with only media_type **Related Issue(s):** - Closes #937 **Description:** Enables filtering with `get_links()` on either `rel`, `media_type`, or both. **PR Checklist:** - [x] Code is formatted (run `pre-commit run --all-files`) - [x] Tests pass (run `scripts/test`) - [ ] Documentation has bee...
Media type argument in `Item.get_links` method is ignored The `media_type` argument is ignored when filtering the returned links with the `Item.get_links` method. It looks like it is short-circuited by the absence of a `rel` argument. https://github.com/stac-utils/pystac/blob/e77cd0aa82b34803539ddaff310beadba9ca01e2...
stac-utils/pystac
diff --git a/tests/test_catalog.py b/tests/test_catalog.py index 222629df..52012df8 100644 --- a/tests/test_catalog.py +++ b/tests/test_catalog.py @@ -1238,14 +1238,24 @@ class TestCatalog: ) ) - html_link = catalog.get_single_link("search") + html_link = catalog.get_single_link(re...
[ "tests/test_catalog.py::TestCatalog::test_get_single_links_media_type", "tests/test_catalog.py::TestCatalog::test_get_links" ]
[ "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_absolute_published", "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_relative_published", "tests/test_catalog.py::CatalogTypeTest::test_determine_type_for_self_contained", "tests/test_catalog.py::CatalogTypeTest::test_determine_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/stac-utils/pystac/blob/e77cd0aa82b3...
953acc43d7a282e1187621eb27497d4025591890
2024-04-13 13:59:25
docker.io/swerebenchv2/mpmath-mpmath:785-953acc4
mpmath__mpmath-785
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/libfp.py b/mpmath/libfp.py index c6d5666..ebd596b 100644 --- a/mpmath/libfp.py +++ b/mpmath/libfp.py @@ -47,6 +47,23 @@ def f(*args, **kwargs): return f +def _tan_complex(z): + if math.isinf(z.real): + if z.imag == 0: + return cmath.nan + 0j + elif math.isfinite(...
Handle infinite arguments in tan/tanh See https://en.cppreference.com/w/c/numeric/complex/ctanh and https://en.cppreference.com/w/c/numeric/complex/ctan Closes #781
mp.tanh and mp.tan return incorrect results at complex infinities As in the title: ```python >>> mpmath.mp.tanh(mpmath.mp.mpc(mpmath.inf, mpmath.inf)) # expected (1+0j) mpc(real='nan', imag='nan') >>> mpmath.mp.tanh(mpmath.mp.mpc(mpmath.inf, -mpmath.inf)) # expected (1+0j) mpc(real='nan', imag='nan') >>> mpmath...
mpmath/mpmath
diff --git a/mpmath/tests/test_fp.py b/mpmath/tests/test_fp.py index 6a21123..b37e32a 100644 --- a/mpmath/tests/test_fp.py +++ b/mpmath/tests/test_fp.py @@ -117,6 +117,34 @@ def test_fp_asinh_acosh_atanh(): assert ae(fp.acosh(1), 0.0) assert ae(fp.atanh(0), 0.0) +def test_fp_tanh(): + assert fp.tanh(fp.m...
[ "mpmath/tests/test_fp.py::test_fp_tanh", "mpmath/tests/test_fp.py::test_fp_tan", "mpmath/tests/test_functions.py::test_tanh", "mpmath/tests/test_functions.py::test_tan" ]
[ "mpmath/tests/test_fp.py::test_conj", "mpmath/tests/test_fp.py::test_fp_number_parts", "mpmath/tests/test_fp.py::test_fp_cospi_sinpi", "mpmath/tests/test_fp.py::test_fp_asinh_acosh_atanh", "mpmath/tests/test_fp.py::test_fp_expj", "mpmath/tests/test_fp.py::test_fp_bernoulli[True]", "mpmath/tests/test_fp....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://en.cppreference.com/w/cpp/numeric/complex/tanh",...
5757f27d432088a0c2ce7c0d55dcb19149681ae7
2023-10-05 18:31:20
docker.io/swerebenchv2/ecmwf-earthkit-data:216-5757f27
ecmwf__earthkit-data-216
Method: Metadata.get(self, key, default=None, *, astype=None, raise_on_missing=False) Location: earthkit/data/core/metadata.py Inputs: - **key** (str): metadata key to retrieve. - **default** (optional): value returned when the key is missing and raise_on_missing=False. - **astype** (optional, type): cast the retu...
python
Apache-2.0
diff --git a/earthkit/data/core/fieldlist.py b/earthkit/data/core/fieldlist.py index 2fd9620..a4e3b8a 100644 --- a/earthkit/data/core/fieldlist.py +++ b/earthkit/data/core/fieldlist.py @@ -431,10 +431,10 @@ class Field(Base): default = kwargs.pop("default", None) r = [ - self....
Feature/numpy fieldlist value related metadata Fixes #215
Hide value related GRIB metadata in NumpyFieldList ### Current situation If we create a new NumpyFieldList with the following code: ```python # f is a GribField vals_new = f.values + 1 md_new = f.metadata().override(shortName="pt") ds_new = FieldList.from_numpy(vals_new, md_new) ``` then the each new Nump...
ecmwf/earthkit-data
diff --git a/tests/grib/test_grib_metadata.py b/tests/grib/test_grib_metadata.py index 5c90786..6edc1f4 100644 --- a/tests/grib/test_grib_metadata.py +++ b/tests/grib/test_grib_metadata.py @@ -129,9 +129,9 @@ def test_grib_metadata_astype_18(mode, key, astype, expected_value): @pytest.mark.parametrize( "key,expec...
[ "tests/numpy_fs/test_numpy_fs_metadata.py::test_numpy_fs_values_metadata", "tests/numpy_fs/test_numpy_fs_metadata.py::test_numpy_fs_values_metadata_internal" ]
[ "tests/grib/test_grib_metadata.py::test_grib_metadata_grib[shortName-2t0-file]", "tests/grib/test_grib_metadata.py::test_grib_metadata_grib[shortName-2t0-numpy_fs]", "tests/grib/test_grib_metadata.py::test_grib_metadata_grib[shortName:s-2t-file]", "tests/grib/test_grib_metadata.py::test_grib_metadata_grib[sho...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/ecmwf/earthkit-data/assets/9033020/...
ee85eb58d092758a32892b8db3c3e3b06bf4e576
2020-06-25 21:09:48
docker.io/swerebenchv2/python-markdown-markdown:990-ee85eb5
python-markdown__markdown-990
Function: recursionlimit(limit) Location: markdown/test_tools.py (class recursionlimit) Inputs: - **limit** (`int`): additional recursion depth to allow; the manager calculates the required new recursion limit by adding this value to the current call‑stack depth obtained via `util._get_stack_depth()`. Outputs: - Retu...
python
BSD-3-Clause
diff --git a/.spell-dict b/.spell-dict index 114e4b2..eed0f67 100644 --- a/.spell-dict +++ b/.spell-dict @@ -132,6 +132,7 @@ Treeprocessors tuple tuples unescape +unescaping unittest unordered untrusted diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index 752564d..c29ddcc 100644 --- ...
Fix unescaping of HTML characters <> in CodeHilite. Previously, we'd unescape both `&amp;gt;` and `&gt;` to the same string because we were running the &amp; => & replacement first. By changing the order of this replacement, we now convert: `&amp;gt; &gt;` => `&gt; >` as expected. Fixes #988.
HiliteTreeprocessor doesn't leave escaped HTML entities intact. I've written a script to reproduce this, which gives the following output. ```bash $ python reproducer.py TEXT ================ Test an indented block: --- &copy; &lt; & &gt; --- > < UPSTREAM ==...
Python-Markdown/markdown
diff --git a/markdown/test_tools.py b/markdown/test_tools.py index be7bbf1..fb407bb 100644 --- a/markdown/test_tools.py +++ b/markdown/test_tools.py @@ -20,9 +20,10 @@ License: BSD (see LICENSE.md for details). """ import os +import sys import unittest import textwrap -from . import markdown +from . import markdo...
[ "tests/test_syntax/blocks/test_blockquotes.py::TestBlockquoteBlocks::test_nesting_limit", "tests/test_syntax/extensions/test_code_hilite.py::TestCodeHiliteExtension::testEntitiesIntact" ]
[ "tests/test_syntax/extensions/test_code_hilite.py::TestCodeHiliteClass::test_codehilite_bad_lang", "tests/test_syntax/extensions/test_code_hilite.py::TestCodeHiliteClass::test_codehilite_guess_lang", "tests/test_syntax/extensions/test_code_hilite.py::TestCodeHiliteClass::test_codehilite_lang_prefix", "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": null, "confidence": null, "detected_issues": null, "difficulty": null, "external_urls": null, "intent_completeness": null, "pr_categories": null, "reasoning": null, "test_alignment_issues": null }, "num_modified_files": 5, "num_modified_lines": 25,...
25b5930c6e6a1a44670ebc77d34f0cd7d441f623
2024-09-19 15:39:22
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3700-25b5930
aws-cloudformation__cfn-lint-3700
No new interfaces are introduced.
python
MIT-0
diff --git a/scripts/update_schemas_manually.py b/scripts/update_schemas_manually.py index daa5b49ce..f0da02b17 100755 --- a/scripts/update_schemas_manually.py +++ b/scripts/update_schemas_manually.py @@ -641,6 +641,14 @@ patches.extend( }, path="/", ), + ...
Move KMS validation for SSESpecification on Tables *Issue #, if available:* fix #3699 *Description of changes:* - Move KMS validation for SSESpecification on Tables By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
[cfn-lint] E3640: {'Fn::If': ['HasKmsKey', 'KMS', {'Ref': 'AWS::NoValue'}]} is not one of ['KMS'] ### CloudFormation Lint Version cfn-lint 1.14.1 ### What operating system are you using? Mac ### Describe the bug SSEType: !If [HasKmsKey, KMS, !Ref "AWS::NoValue"] fails. ### Expected behavior Success ### Reproduc...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/results/integration/aws-dynamodb-table.json b/test/fixtures/results/integration/aws-dynamodb-table.json new file mode 100644 index 000000000..4fb8762a8 --- /dev/null +++ b/test/fixtures/results/integration/aws-dynamodb-table.json @@ -0,0 +1,61 @@ +[ + { + "Filename": "test/fixtures/...
[ "test/integration/test_integration_templates.py::TestQuickStartTemplates::test_templates" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/aws-cloudformation/cfn-lint/blob/ma...
fcb3aa3d9f63962f28c15ab4676c86431d5a3c45
2023-09-01 09:46:46
docker.io/swerebenchv2/ecmwf-earthkit-data:170-fcb3aa3
ecmwf__earthkit-data-170
Method: Field.to_latlon(self, flatten=False, dtype=None) Location: earthkit/data/core/fieldlist.py (Field class) Inputs: - flatten (bool): if True, returned lat/lon arrays are 1‑D; otherwise they keep the field’s native shape. - dtype (str, numpy.dtype or None): desired NumPy data type for the latitude and longitude...
python
Apache-2.0
diff --git a/docs/examples/grib_lat_lon_value.ipynb b/docs/examples/grib_lat_lon_value.ipynb index 560b573..eb79d52 100644 --- a/docs/examples/grib_lat_lon_value.ipynb +++ b/docs/examples/grib_lat_lon_value.ipynb @@ -13,7 +13,7 @@ "id": "c74a86a6-79ae-44bc-a9c9-8cc8a3aaa484", "metadata": {}, "source": [ - ...
Feature/single precision grib values Fixes #140
Provide access to single precision GRIB values, latitudes and longitudes Version 2.30.0 of ecCodes and version 1.6.0 of its Python binding (this latter is yet to be released) support data values array decoded as "floats" (single-precision) to reduce memory consumption. The C function looks like this: ```C int codes...
ecmwf/earthkit-data
diff --git a/tests/grib/test_grib_geography.py b/tests/grib/test_grib_geography.py index 7d735f0..8e6795f 100644 --- a/tests/grib/test_grib_geography.py +++ b/tests/grib/test_grib_geography.py @@ -34,6 +34,8 @@ def test_grib_to_latlon_single(index): assert isinstance(v, dict) assert isinstance(v["lon"], np.nd...
[ "tests/grib/test_grib_geography.py::test_grib_to_latlon_multi[float32]", "tests/grib/test_grib_geography.py::test_grib_to_latlon_multi[float64]", "tests/grib/test_grib_geography.py::test_grib_to_points_multi[float32]", "tests/grib/test_grib_geography.py::test_grib_to_points_multi[float64]", "tests/grib/test...
[ "tests/grib/test_grib_geography.py::test_grib_to_latlon_single[0]", "tests/grib/test_grib_geography.py::test_grib_to_latlon_single[None]", "tests/grib/test_grib_geography.py::test_grib_to_latlon_single_shape[0]", "tests/grib/test_grib_geography.py::test_grib_to_latlon_single_shape[None]", "tests/grib/test_g...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
31a29923b20a5cd2a9f2c6b5b071dbdd8edd428b
2021-07-17 00:26:48
docker.io/swerebenchv2/ucfopen-canvasapi:503-31a2992
ucfopen__canvasapi-503
Method: ContentMigration.get_selective_data(self, **kwargs) Location: canvasapi/content_migration.py – ContentMigration class Inputs: optional keyword arguments forwarded as query parameters (e.g., type="assignments") controlling pagination or filtering of selective data Outputs: PaginatedList of ContentMigrationSel...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f6e30a..6fda3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### New Endpoint Coverage - Delete a Rubric (Thanks, [@kailukaitisBrendan](https://github.com/kailukaitisBrendan)) +- Content Migrations: List items for selective import (Thanks, [@matthewf-u...
Issue #502: Add endpoint to get selective_data for a content migration # Proposed Changes * Add get_selective_data() to canvasapi.content_migration.ContentMIgration to return nodes available for selection when a migration is created with selective_import=true Fixes #502
Add endpoint to get selective_data for a content migration **What resource needs additional coverage?** ContentMigration **What endpoints need to be covered?** Endpoint name: "List items for selective import" URLS: * GET /api/v1/accounts/:account_id/content_migrations/:id/selective_data * GET /api/v1/courses/:c...
ucfopen/canvasapi
diff --git a/tests/fixtures/content_migration.json b/tests/fixtures/content_migration.json index cb3b531..2dab15f 100644 --- a/tests/fixtures/content_migration.json +++ b/tests/fixtures/content_migration.json @@ -141,6 +141,368 @@ }, "status_code": 200 }, + "get_selective_data_account": { + "method": "GET", + ...
[ "tests/test_content_migration.py::TestContentMigration::test__str__", "tests/test_content_migration.py::TestContentMigration::test_get_migration_issue", "tests/test_content_migration.py::TestContentMigration::test_get_migration_issues", "tests/test_content_migration.py::TestContentMigration::test_get_parent_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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://canvas.instructure.com/doc/api/content_migrati...
141470384b9e8a486f3a14255d37e3b608d3383a
2024-08-29 15:36:34
docker.io/swerebenchv2/hhursev-recipe-scrapers:1230-1414703
hhursev__recipe-scrapers-1230
Method: AbstractScraper.__init__(self, html: str, url: str) Location: recipe_scrapers._abstract Inputs: - **html** – raw HTML string of the page to be scraped. - **url** – the absolute URL of the page; used for error reporting and for plugins that need the original address. Outputs: None (initializes the scrap...
python
MIT
diff --git a/recipe_scrapers/__init__.py b/recipe_scrapers/__init__.py index 361c378a..9b67ce5d 100644 --- a/recipe_scrapers/__init__.py +++ b/recipe_scrapers/__init__.py @@ -5,6 +5,7 @@ __all__ = ( "ElementNotFoundInHtml", "FieldNotProvidedByWebsiteException", "NoSchemaFoundInWildMode", + "RecipeSche...
schema.org-fill: raise a `RecipeSchemaNotFound` when no recipe metadata is found Supports / unblocks #1228. Resolves #1229.
Plugins: surprising behaviour from schema.org fill plugin when implementation and metadata are both absent The `lekkerensimpel` scraper includes test coverage where some test webpages contain `schema.org` recipe metadata, and some do not. If we temporarily remove the `category` implementation -- as in the case durin...
hhursev/recipe-scrapers
diff --git a/tests/library/test_exceptions.py b/tests/library/test_exceptions.py index 37372ae5..dd7f1077 100644 --- a/tests/library/test_exceptions.py +++ b/tests/library/test_exceptions.py @@ -1,7 +1,9 @@ import unittest from recipe_scrapers import ( + AbstractScraper, NoSchemaFoundInWildMode, + Recipe...
[ "tests/library/test_exceptions.py::TestExceptions::test_no_schema_found_for_fill_plugin", "tests/library/test_exceptions.py::TestExceptions::test_no_schema_found_in_wild_mode_error", "tests/library/test_exceptions.py::TestExceptions::test_website_not_implemented_error" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/hhursev/recipe-scrapers/blob/14147038...
0eb20944573c074e1814ef9073d146b705f7771d
2023-04-21 13:24:24
docker.io/swerebenchv2/sdv-dev-rdt:634-0eb2094
sdv-dev__rdt-634
No new interfaces are introduced.
python
custom-check-github
diff --git a/rdt/__init__.py b/rdt/__init__.py index 4442073..eae7f0c 100644 --- a/rdt/__init__.py +++ b/rdt/__init__.py @@ -40,15 +40,16 @@ def get_demo(num_rows=5): pd.DataFrame """ # Hard code first five rows - login_dates = ['2021-06-26', '2021-02-10', 'NAT', '2020-09-26', '2020-12-22'] - l...
Remove pandas upper bound Resolves #633
Remove upper bound for pandas ### Problem Description With the newly released [pandas 2.0](https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html) it would nice to support it across the sdv-dev libraries. ### Expected behavior The newly expected version for pandas should be only `>=` than the minimum support...
sdv-dev/RDT
diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py index 9e67821..4a81f6c 100644 --- a/tests/integration/test_hyper_transformer.py +++ b/tests/integration/test_hyper_transformer.py @@ -47,7 +47,7 @@ class DummyTransformerNotMLReady(BaseTransformer): return da...
[ "tests/integration/test_hyper_transformer.py::test_hypertransformer_default_inputs", "tests/unit/transformers/test_null.py::TestNullTransformer::test__get_missing_value_replacement_mean_only_nans", "tests/unit/transformers/test_null.py::TestNullTransformer::test__get_missing_value_replacement_mode_only_nans" ]
[ "tests/integration/test_hyper_transformer.py::test_hypertransformer_field_transformers", "tests/integration/test_hyper_transformer.py::test_single_category", "tests/integration/test_hyper_transformer.py::test_categorical_encoders_with_booleans", "tests/integration/test_hyper_transformer.py::test_dtype_categor...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.htm...
b2a1b8e7ac06c38bbf5917a5dc10baa99c010387
2021-01-17 06:12:17
docker.io/swerebenchv2/jsonpickle-jsonpickle:342-b2a1b8e
jsonpickle__jsonpickle-342
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index f97ac2a..0fe19e6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ v1.5.1 * ``decode()`` documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) + * Dic...
serialization: preserve dictionary identity when un/pickling Register dictionaries as eligible for referencing. Ensure that dictionary identity is preserved across a roundtrip. Resolves #255
Dictionary identity not preserved through roundtrip On jsonpickle 1.1: ``` >>> import jsonpickle >>> x = {}; y = jsonpickle.decode(jsonpickle.encode([x, x])) >>> y[0]['hi'] = 3 >>> y[1] {} ``` I didn't see any warnings about this in the doc and `list`s seem to survive fine. Adding a custom handler to try t...
jsonpickle/jsonpickle
diff --git a/tests/jsonpickle_test.py b/tests/jsonpickle_test.py index d436159..606ceaa 100644 --- a/tests/jsonpickle_test.py +++ b/tests/jsonpickle_test.py @@ -1,22 +1,21 @@ # Copyright (C) 2008 John Paulett (john -at- paulett.org) -# Copyright (C) 2009-2018 David Aguilar (davvid -at- gmail.com) +# Copyright (C) 2009...
[ "tests/jsonpickle_test.py::test_dict_references_are_preserved" ]
[ "tests/jsonpickle_test.py::flake-8::FLAKE8", "tests/jsonpickle_test.py::black", "tests/jsonpickle_test.py::PicklingTestCase::test_base85_override_py3", "tests/jsonpickle_test.py::PicklingTestCase::test_base85_still_handles_base64", "tests/jsonpickle_test.py::PicklingTestCase::test_boolean", "tests/jsonpic...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
70d9e1d9699d24c99926ab6586869a92452991a7
2021-02-01 02:34:16
docker.io/swerebenchv2/joerick-cibuildwheel:570-70d9e1d
joerick__cibuildwheel-570
Function: print_new_wheels(msg, output_dir) Location: cibuildwheel/util.py Inputs: msg: str – a format string that may include {n} (number of new items), {s} (seconds elapsed), and/or {m} (minutes elapsed); output_dir: pathlib.Path – directory whose contents are monitored for newly created files. Outputs: None (used as...
python
custom-check-github
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 71f9e72b..4e4c9a14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,6 @@ repos: hooks: - id: black files: ^bin/update_pythons.py$ - args: ["--line-length=120"] - repo: https://github.com/pre-commit/mirro...
feat: print new files after building This adds a printout after cibuildwheel runs to list exactly what changes. Serves as a good way to check to see exactly what built, and should show if any (un)expected extra files show up. Closes #566
Tiny feat: Add printout of produced wheels at end of logs One thing I have in common for all my uses of cibuildwheel is: ```yaml - uses: joerick/cibuildwheel@v1.8.0 - name: Show files run: ls -lh wheelhouse shell: bash ``` It might be a nice to list the built wheel names at the end of t...
joerick/cibuildwheel
diff --git a/unit_test/main_tests/conftest.py b/unit_test/main_tests/conftest.py index 2a0f9bfd..bf2aa01f 100644 --- a/unit_test/main_tests/conftest.py +++ b/unit_test/main_tests/conftest.py @@ -1,3 +1,4 @@ +import contextlib import platform as platform_module import subprocess import sys @@ -58,6 +59,15 @@ def mock...
[ "unit_test/test_wheel_print.py::test_printout_wheels", "unit_test/test_wheel_print.py::test_no_printout_on_error" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": null, "confidence": null, "detected_issues": null, "difficulty": null, "external_urls": null, "intent_completeness": null, "pr_categories": null, "reasoning": null, "test_alignment_issues": null }, "num_modified_files": 15, "num_modified_lines": 87...
1d554057ba5479fc818d7064a9d9fbb5f9255de8
2020-10-05 19:28:48
docker.io/swerebenchv2/nengo-nengo:1646-1d55405
nengo__nengo-1646
Function: Probe(target, sample_every=None, synapse=None, label=None) Location: nengo/__init__.py (exposed as nengo.Probe) Inputs: - **target**: A signal source to be probed. Can be a Nengo object such as an Ensemble’s .neurons attribute, optionally indexed with a slice (e.g., `ens.neurons[::2]`) or advanced indexing us...
python
custom-check-github
diff --git a/nengo/builder/probe.py b/nengo/builder/probe.py index bd781e81..13dfb267 100644 --- a/nengo/builder/probe.py +++ b/nengo/builder/probe.py @@ -1,4 +1,5 @@ from nengo.builder import Builder, Signal +from nengo.builder.connection import slice_signal from nengo.builder.operator import Copy, Reset from nengo...
Fix bug when probing neurons with adv indexing **Motivation and context:** <!--- Why is this change required? What problem does it solve? --> <!--- If it addresses an open issue, please link to the issue here. --> Fixes #1642 **How has this been tested?** <!--- Please describe in detail how you tested your ch...
Error when probing neurons with advanced indexing **Describe the bug** Probing a subset of some neurons using advanced indexing results in an error. The issue is that we changed neuron probes from "connection probes" to "signal probes", and you can't do advanced indexing directly on a signal. So we need to add a ...
nengo/nengo
diff --git a/nengo/tests/test_probe.py b/nengo/tests/test_probe.py index 4b3cd0b0..fe2d63fd 100644 --- a/nengo/tests/test_probe.py +++ b/nengo/tests/test_probe.py @@ -258,3 +258,17 @@ def test_update_timing(Simulator, allclose): assert allclose(sim.data[sig_p][0], 0) assert allclose(sim.data[sig_p][1:], 2) ...
[ "nengo/tests/test_probe.py::test_neuron_probe" ]
[ "nengo/tests/test_probe.py::test_multirun", "nengo/tests/test_probe.py::test_large", "nengo/tests/test_probe.py::test_defaults", "nengo/tests/test_probe.py::test_simulator_dt", "nengo/tests/test_probe.py::test_multiple_probes", "nengo/tests/test_probe.py::test_input_probe", "nengo/tests/test_probe.py::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
03bcc416b9537254e91054f452696f9f2ec8c5e2
2024-02-26 00:19:45
docker.io/swerebenchv2/djrobstep-sqlakeyset:106-03bcc41
djrobstep__sqlakeyset-106
Method: OC.pair_for_comparison(self, value, dialect, apply_bind_processor: bool = False) Location: sqlakeyset/columns.py – class OC, used when building paging predicates. Inputs: - **value** – the Python value representing the paging marker for this column. - **dialect** – SQLAlchemy Dialect object used for type‐specif...
python
Unlicense
diff --git a/sqlakeyset/columns.py b/sqlakeyset/columns.py index 5491e45..b0ab2b8 100644 --- a/sqlakeyset/columns.py +++ b/sqlakeyset/columns.py @@ -111,7 +111,7 @@ class OC: raise ValueError # pragma: no cover return OC(new_uo) - def pair_for_comparison(self, value, dialect): + def pair_...
Fix double bind processing in certain cases Resolves #104. When order clauses had only a single column OR the database backend did not support native tuples, bind param processing was being applied twice - once by us and once by sqlalchemy.
Using the SQLAlchemy 2 native UUID as the column type breaks cursor pagination Using the sa.UUID as the column type breaks the pagination: ``` sqlalchemy.exc.StatementError: (builtins.AttributeError) 'str' object has no attribute 'hex' ``` The issue happens in the `pair_for_comparison` function when it applies ...
djrobstep/sqlakeyset
diff --git a/sqlakeyset/py.typed b/sqlakeyset/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/tests/conftest.py b/tests/conftest.py index 8136337..9da2320 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,7 @@ import enum from datetime import timedelta from functools import parti...
[ "tests/test_paging.py::test_core_order_by_result_processor[sqlite]", "tests/test_paging_20_style.py::test_uuid[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": [], "intent_completeness": "complete", "pr_categories":...
5b4b7b84cf3fa0cec0384a3115b4d43636834c85
2023-10-16 20:14:43
docker.io/swerebenchv2/aio-libs-aiohttp:7716-5b4b7b8
aio-libs__aiohttp-7716
Function: HttpRequestParserPy.__init__(protocol: Any, loop: Any, max_size: int, *, max_line_size: int = 8190, max_field_size: int = 8190) -> None Location: aiohttp/http_parser.py (class HttpRequestParserPy, which inherits from HttpRequestParser) Inputs: - **protocol** – the low‑level protocol object that will receive p...
python
custom-check-github
diff --git a/CHANGES/7715.bugfix b/CHANGES/7715.bugfix new file mode 100644 index 000000000..863ea25a6 --- /dev/null +++ b/CHANGES/7715.bugfix @@ -0,0 +1,1 @@ +Fix unhandled exception when Python HTTP parser encounters unpaired Unicode surrogates. diff --git a/aiohttp/http_exceptions.py b/aiohttp/http_exceptions.py ind...
Fix unhandled exception for invalid Unicode in Python HTTP parser ## What do these changes do? Fixes an unhandled exception in the Python HTTP parser that causes servers to 500 when they should 400 upon receiving a header with an invalid Unicode sequence. ## Are there changes in behavior for the user? Nope. ...
Server using Python parser responds 500 for invalid Unicode in header ### Describe the bug When an AIOHTTP server receives a request containing an invalid header, it formulates a response that echos the invalid header back to the user. Something like this: ``` printf 'GET / HTTP/1.1\r\nI am invalid!!\r\n\r\n' | n...
aio-libs/aiohttp
diff --git a/tests/test_http_exceptions.py b/tests/test_http_exceptions.py index 28fdcbe0c..ace35062a 100644 --- a/tests/test_http_exceptions.py +++ b/tests/test_http_exceptions.py @@ -103,7 +103,7 @@ class TestInvalidHeader: def test_ctor(self) -> None: err = http_exceptions.InvalidHeader("X-Spam") ...
[ "tests/test_http_exceptions.py::TestInvalidHeader::test_ctor", "tests/test_http_exceptions.py::TestInvalidHeader::test_pickle", "tests/test_http_exceptions.py::TestInvalidHeader::test_str", "tests/test_http_exceptions.py::TestInvalidHeader::test_repr", "tests/test_http_parser.py::test_unpaired_surrogate_in_...
[ "tests/test_http_exceptions.py::TestHttpProcessingError::test_ctor", "tests/test_http_exceptions.py::TestHttpProcessingError::test_pickle", "tests/test_http_exceptions.py::TestHttpProcessingError::test_str", "tests/test_http_exceptions.py::TestHttpProcessingError::test_repr", "tests/test_http_exceptions.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.9, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories": ...
e49b973b3b8109e1855b927ee9980dafa11f9806
2022-12-01 04:14:18
docker.io/swerebenchv2/pyomo-pyomo:2643-e49b973
pyomo__pyomo-2643
Function: flatten_components_along_sets(m, sets, ctype, indices=None, active=None) Location: pyomo.dae.flatten Inputs: - m: Block (or BlockData) – the model/block to be examined. - sets: tuple of Pyomo Set objects – the indexing sets to slice along. - ctype: subclass of Component – type of components to locate (e.g., V...
python
custom-check-github
diff --git a/doc/OnlineDocs/advanced_topics/flattener/index.rst b/doc/OnlineDocs/advanced_topics/flattener/index.rst new file mode 100644 index 000000000..377de5233 --- /dev/null +++ b/doc/OnlineDocs/advanced_topics/flattener/index.rst @@ -0,0 +1,44 @@ +"Flattening" a Pyomo model +========================== + +.. autos...
Add `active` filter to flattener ## Fixes #2529. ## Summary/Motivation: If a block has been deactivated, that usually means you want to ignore it when searching the block hierarchy. ## Changes proposed in this PR: - Add `active` flag to `flatten_dae_components` and `flatten_components_along_sets` that functions...
Pyomo DAE flatten ignores whether blocks are active ## Summary In July, I ran into unexpected behavior when the PETSc interface in IDAES uses `pyomo.dae.flatten` to create the block with variables/equations to be solved. It appears that the flattening process ignores whether the block it's aggregating variables from...
Pyomo/pyomo
diff --git a/pyomo/dae/tests/test_flatten.py b/pyomo/dae/tests/test_flatten.py index 768be9cd5..32a60e761 100644 --- a/pyomo/dae/tests/test_flatten.py +++ b/pyomo/dae/tests/test_flatten.py @@ -31,6 +31,20 @@ from pyomo.dae.flatten import ( slice_component_along_sets, ) + +class _TestFlattenBase(obje...
[ "pyomo/dae/tests/test_flatten.py::TestFlatten::test_constraint_fully_deactivated_slice", "pyomo/dae/tests/test_flatten.py::TestFlatten::test_constraint_partially_deactivated_slice", "pyomo/dae/tests/test_flatten.py::TestFlatten::test_constraint_with_active_arg", "pyomo/dae/tests/test_flatten.py::TestFlatten::...
[ "pyomo/dae/tests/test_flatten.py::TestAssumedBehavior::test_cross", "pyomo/dae/tests/test_flatten.py::TestAssumedBehavior::test_subsets", "pyomo/dae/tests/test_flatten.py::TestCategorize::test_1level_model", "pyomo/dae/tests/test_flatten.py::TestCategorize::test_2dim_set", "pyomo/dae/tests/test_flatten.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": [], "intent_completeness": "complete", "pr_categories":...
a9f44d52d109144a4c3bb93965f831e91d13960b
2023-05-24 14:51:45
docker.io/swerebenchv2/yukinarit-pyserde:354-a9f44d5
yukinarit__pyserde-354
Function: serde.field(*, default: Any = MISSING, alias: List[str] = MISSING, rename: str = MISSING, flatten: Optional[FlattenOpts] = None, **metadata) Location: serde.core.field Inputs: - **default** – value used when the field is missing in the input data. - **alias** – list of alternative names that may appea...
python
MIT
diff --git a/serde/core.py b/serde/core.py index cdb7f08..63420b3 100644 --- a/serde/core.py +++ b/serde/core.py @@ -335,7 +335,7 @@ def field( skip_if_default: Optional[bool] = None, serializer=None, deserializer=None, - flatten: Optional[Union[FlattenOpts, bool]] = None, + flatten: Optional[Flatt...
Fix combination of alias and default Fixes #353
Aliases are not checked when a default value is provided When providing a default value, pyserde doesn't check any aliases. Example: ```python from dataclasses import dataclass from serde import field, serde from serde.json import from_json @serde @dataclass class Foo: a: int = field(default=2, ali...
yukinarit/pyserde
diff --git a/tests/test_basics.py b/tests/test_basics.py index 2902b82..277caca 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -4,7 +4,17 @@ import enum import logging import pathlib import uuid -from typing import ClassVar, DefaultDict, Dict, FrozenSet, List, Optional, Set, Tuple, Union +from typin...
[ "tests/test_basics.py::test_default_and_alias", "tests/test_basics.py::test_default_rename_and_alias" ]
[ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2ec1c4bbd9247f054855abd77acd6d63ed97bab3
2023-06-27 11:53:07
docker.io/swerebenchv2/pyg-team-pytorch-geometric:7654-2ec1c4b
pyg-team__pytorch_geometric-7654
Function: add_random_edge(edge_index, p=0.5, force_undirected=False, num_nodes=None, training=True) Location: torch_geometric.utils.augmentation.add_random_edge Inputs: - edge_index (Tensor): LongTensor of shape [2, E] containing existing edge indices. - p (float, default 0.5): Ratio of new edges to add relative to the...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index be9a97918..f9b973be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed +- Changed `add_random_edge` to only add true negative edges ([#7654](https://github.com/pyg...
Only add true negatives in `add_random_edge` augmentation Fixes #7653
add_random_edge does not check existing edges ### 🐛 Describe the bug Calling add_random_edge may introduce duplicate edges that already existing in the graph. This may have unintended downstream consequences. Minimal code to reproduce. ```python edge_index = torch.IntTensor(([0, 1, 2, 0, 1, 2, 0, 1, 2], [0, ...
pyg-team/pytorch_geometric
diff --git a/test/utils/test_augmentation.py b/test/utils/test_augmentation.py index 2c6ad8f2f..68c4e343c 100644 --- a/test/utils/test_augmentation.py +++ b/test/utils/test_augmentation.py @@ -1,6 +1,7 @@ import pytest import torch +from torch_geometric import seed_everything from torch_geometric.utils import ( ...
[ "test/utils/test_augmentation.py::test_add_random_edge" ]
[ "test/utils/test_augmentation.py::test_shuffle_node", "test/utils/test_augmentation.py::test_mask_feature" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
3d3344d335d936209f65bf521cf24ff68f758302
2023-03-12 14:47:16
docker.io/swerebenchv2/pyqtgraph-pyqtgraph:2648-3d3344d
pyqtgraph__pyqtgraph-2648
No new interfaces are introduced.
python
custom-check-github
diff --git a/.github/workflows/etc/requirements.txt b/.github/workflows/etc/requirements.txt index c1522d3e..0a868edc 100644 --- a/.github/workflows/etc/requirements.txt +++ b/.github/workflows/etc/requirements.txt @@ -19,5 +19,5 @@ h5py==3.8.0 # testing pytest==7.2.2 -pytest-xdist==3.2.0 +pytest-xdist==3.2.1 pyte...
Return float values from QColor in getByIndex Make `ColorMap_getByIndex` return floats for RGB values to fit expectations. Fixes #2627
ColorMap.getByIndex() returns wrong colors <!-- In the following, please describe your issue in detail! --> <!-- If some sections do not apply, just remove them. --> ### Short description <!-- This should summarize the issue. --> ColorMap.getByIndex() returns wrong colors. ### Code to reproduce <!-- Please pr...
pyqtgraph/pyqtgraph
diff --git a/tests/test_colormap.py b/tests/test_colormap.py index 0926302c..16372ca6 100644 --- a/tests/test_colormap.py +++ b/tests/test_colormap.py @@ -74,3 +74,8 @@ def test_ColorMap_getColors(color_list): colors = cm.getColors('qcolor') for actual, good in zip(colors, qcols): assert actual.getRg...
[ "tests/test_colormap.py::test_ColorMap_getByIndex" ]
[ "tests/test_colormap.py::test_ColorMap_getStops[color_list0]", "tests/test_colormap.py::test_ColorMap_getStops[color_list1]", "tests/test_colormap.py::test_ColorMap_getColors[color_list0]", "tests/test_colormap.py::test_ColorMap_getColors[color_list1]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
67b915fea9147bb445e92f99176e095015c35ed5
2025-01-14 22:37:52
docker.io/swerebenchv2/getmoto-moto:8491-67b915f
getmoto__moto-8491
Method: ElasticsearchServiceBackend.list_domain_names(self, engine_type: str | None = None) → List[Dict[str, str]] Location: moto/es/models.py – ElasticsearchServiceBackend class Inputs: - **engine_type** (optional str): When provided, must be either `"Elasticsearch"` or `"OpenSearch"`; filters the returned domains to ...
python
Apache-2.0
diff --git a/moto/es/models.py b/moto/es/models.py index 4cc65d6fb..729a63f72 100644 --- a/moto/es/models.py +++ b/moto/es/models.py @@ -1,155 +1,10 @@ -from typing import Any, Dict, List - from moto.core.base_backend import BackendDict, BaseBackend -from moto.core.common_models import BaseModel -from moto.moto_api._i...
Combine functionality ES/OpenSearch Fixes #8420
Elasticsearch not showing created OpenSearch domains When calling `list_domains` with [boto3: ElasticsearchService ](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/es.html) client, boto3 documentation mentions that the response includes domains of both Elasticsearch or Opensearch. In my t...
getmoto/moto
diff --git a/tests/test_es/test_es.py b/tests/test_es/test_es.py index 259f444da..a696d3e39 100644 --- a/tests/test_es/test_es.py +++ b/tests/test_es/test_es.py @@ -5,6 +5,7 @@ import pytest from botocore.exceptions import ClientError from moto import mock_aws +from tests import DEFAULT_ACCOUNT_ID # See our Deve...
[ "tests/test_es/test_es.py::test_create_elasticsearch_domain_minimal", "tests/test_es/test_es.py::test_describe_elasticsearch_domain", "tests/test_es/test_es.py::test_list_domain_names_enginetype", "tests/test_es/test_es.py::test_list_domain_names_with_multiple_domains", "tests/test_es/test_es.py::test_list_...
[ "tests/test_es/test_es.py::test_create_domain_invalid_name[getmoto.org]", "tests/test_es/test_es.py::test_create_domain_invalid_name[search-is-$$$]", "tests/test_es/test_es.py::test_create_domain_invalid_name[dev_or_test]", "tests/test_es/test_es.py::test_create_domain_invalid_name[dev/test]", "tests/test_e...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest/...
838606a6b9d18871a8ea4815a9e3b95d10026725
2016-08-04 13:41:29
docker.io/swerebenchv2/ipython-traitlets:264-838606a
ipython__traitlets-264
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/traitlets/traitlets.py b/traitlets/traitlets.py index bb24aba..e9a30bb 100644 --- a/traitlets/traitlets.py +++ b/traitlets/traitlets.py @@ -123,7 +123,7 @@ def _deprecated_method(method, cls, method_name, msg): Uses warn_explicit to bind warning to method definition instead of triggering code, wh...
add traitlets version to deprecation warnings closes #232
Please add version to deprecation warnings. At least the version where things are introduced, it's a pain to bisect each time to know whether you can use a feature.
ipython/traitlets
diff --git a/traitlets/config/tests/test_configurable.py b/traitlets/config/tests/test_configurable.py index cd4f24f..cf269c0 100644 --- a/traitlets/config/tests/test_configurable.py +++ b/traitlets/config/tests/test_configurable.py @@ -402,7 +402,7 @@ class TestConfigContainers(TestCase): # reset deprecatio...
[ "traitlets/config/tests/test_configurable.py::TestConfigContainers::test_config_default_deprecated", "traitlets/tests/test_traitlets.py::TestHasTraits::test_trait_metadata_deprecated", "traitlets/tests/test_traitlets.py::TestHasTraits::test_traits_metadata_deprecated" ]
[ "traitlets/config/tests/test_configurable.py::TestConfigurable::test_custom", "traitlets/config/tests/test_configurable.py::TestConfigurable::test_default", "traitlets/config/tests/test_configurable.py::TestConfigurable::test_help", "traitlets/config/tests/test_configurable.py::TestConfigurable::test_help_ins...
{ "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":...
78ae4c1a35303a3713e5f4f4b77535b0b59fc83a
2025-04-19 12:15:52
docker.io/swerebenchv2/litestar-org-litestar:4128-78ae4c1
litestar-org__litestar-4128
Function: handler(q: int) -> str Location: docs.examples.exceptions.implicit_media_type.handler Inputs: q: int – query parameter supplied to the endpoint (required) Outputs: In this example the function always raises a ``ValueError``; Litestar converts the exception into a 500 response whose ``Content‑Type`` header is ...
python
MIT
diff --git a/docs/examples/exceptions/implicit_media_type.py b/docs/examples/exceptions/implicit_media_type.py new file mode 100644 index 000000000..b8a945ade --- /dev/null +++ b/docs/examples/exceptions/implicit_media_type.py @@ -0,0 +1,6 @@ +from litestar import get + + +@get(sync_to_thread=False) +def handler(q: int...
docs: show exceptions raised aren't always JSON <!-- By submitting this pull request, you agree to: - follow [Litestar's Code of Conduct](https://github.com/litestar-org/.github/blob/main/CODE_OF_CONDUCT.md) - follow [Litestar's contribution guidelines](https://github.com/litestar-org/.github/blob/main/CONTRIBUTING....
Docs: Exceptions are not always JSON by default ### Summary The [documentation states](https://docs.litestar.dev/latest/usage/exceptions.html#exception-handling) that > Litestar handles all errors by default by transforming them into JSON responses. Since #2131 this is not *entirely* true as exceptions will retain...
litestar-org/litestar
diff --git a/tests/e2e/test_exception_handlers/test_exception_handlers.py b/tests/e2e/test_exception_handlers/test_exception_handlers.py index b214e0931..0dc0a9312 100644 --- a/tests/e2e/test_exception_handlers/test_exception_handlers.py +++ b/tests/e2e/test_exception_handlers/test_exception_handlers.py @@ -1,6 +1,7 @@...
[ "tests/e2e/test_exception_handlers/test_exception_handlers.py::test_exception_handling[ValidationException-router]", "tests/e2e/test_exception_handlers/test_exception_handlers.py::test_exception_handling[InternalServerException-controller]", "tests/e2e/test_exception_handlers/test_exception_handlers.py::test_ex...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://docs.litestar.dev/latest/usage/exceptions.html#e...
fecab7470cf470b02a0a4ef765974dc4c27957fc
2025-06-02 14:43:21
docker.io/swerebenchv2/jelmer-dulwich:1568-fecab74
jelmer__dulwich-1568
Method: ConfigFile.from_file(cls, f) Location: dulwich/config.py Inputs: - **cls** – the ConfigFile class (implicitly provided for a classmethod). - **f** – a binary file‑like object (e.g., an `io.BytesIO`) containing a Git‑style config file. Outputs: - Returns a new `ConfigFile` instance populated with the par...
python
custom-check-github
diff --git a/NEWS b/NEWS index 0f644be5..56320345 100644 --- a/NEWS +++ b/NEWS @@ -46,6 +46,9 @@ * Use ``dissolve`` to manage deprecations. (Jelmer Vernooij) + * Handle trailing backslashes in config files appropriately. + (Jelmer Vernooij, #1088) + 0.22.8 2025-03-02 * Allow passing in plain strings to ``dul...
Handle trailing backslashes in config files appropriately Fixes #1088
Bug: Incorrect git config parsing (error when cloning local repository with trailing backslash on Windows) I ran into a ValueError ("escape character followed by unknown character 102...") when trying to clone a local repository on Windows. The issue turned out to be because of how trailing backslashes interact with ho...
jelmer/dulwich
diff --git a/tests/test_config.py b/tests/test_config.py index 06e4eb7b..c67cb063 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -266,6 +266,56 @@ who\" c.write_to_file(f) self.assertEqual(b'[xandikos]\n\tcolor = "#665544"\n', f.getvalue()) + def test_windows_path_with_trailing_b...
[ "tests/test_config.py::ConfigFileTests::test_single_backslash_at_line_end_shows_proper_escaping_needed", "tests/test_config.py::ConfigFileTests::test_windows_path_with_trailing_backslash_unquoted" ]
[ "tests/test_config.py::ConfigFileTests::test_closing_bracket_within_section_string", "tests/test_config.py::ConfigFileTests::test_comment_after_section", "tests/test_config.py::ConfigFileTests::test_comment_after_variable", "tests/test_config.py::ConfigFileTests::test_comment_before_section", "tests/test_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/jelmer/dulwich/issues/1088", ...
873f99eb1cce1fadda8fa8ba9808745f14c0a030
2024-08-01 20:31:32
docker.io/swerebenchv2/openmdao-openmdao:3315-873f99e
openmdao__openmdao-3315
No new interfaces are introduced.
python
custom-check-github
diff --git a/openmdao/solvers/nonlinear/nonlinear_block_gs.py b/openmdao/solvers/nonlinear/nonlinear_block_gs.py index f5f7e3eb0..150945d41 100644 --- a/openmdao/solvers/nonlinear/nonlinear_block_gs.py +++ b/openmdao/solvers/nonlinear/nonlinear_block_gs.py @@ -118,15 +118,6 @@ class NonlinearBlockGS(NonlinearSolver): ...
Fix a bug in NLGBS where aitken relaxation was not applied on the first iteration. ### Summary Fix a bug in NLGBS where aitken relaxation was not applied on the first iteration. ### Related Issues - Resolves #3306 ### Backwards incompatibilities None ### New Dependencies None
NonlinearBlockGS Aitken relaxation is still subject to large perturbations before Aitken kicks in. ### Description Aitken relaxation currently [doesn't kick in until the second iteration of NLBGS](https://github.com/OpenMDAO/OpenMDAO/blob/master/openmdao/solvers/nonlinear/nonlinear_block_gs.py#L150). This can cause ...
OpenMDAO/OpenMDAO
diff --git a/openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py b/openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py index 39e2ef9b7..80b676d29 100644 --- a/openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py +++ b/openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py @@ -349,7 +349,7 @@...
[ "openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py::TestNLBGaussSeidel::test_NLBGS_Aitken_initial_factor", "openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py::TestNLBGaussSeidel::test_aitken_bug" ]
[ "openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py::TestNLBGaussSeidel::test_NLBGS_Aitken", "openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py::TestNLBGaussSeidel::test_NLBGS_Aitken_cs", "openmdao/solvers/nonlinear/tests/test_nonlinear_block_gs.py::TestNLBGaussSeidel::test_NLBGS_Aitken_min_m...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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/OpenMDAO/OpenMDAO/blob/master/openm...
69b787dca1cf5969192e17f1d195fc84e528436b
2021-11-29 03:39:26
docker.io/swerebenchv2/neogeny-tatsu:221-69b787d
neogeny__tatsu-221
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1ffced3..c39225e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,8 +14,11 @@ The format of this *Change Log* is inspired by `keeapachangelog.org`_. --------------- .. _`X.Y.Z`: https://github.com/apalala/tatsu/compare/v5.6.1...master +* Drop support for Pytho...
Add Choice->Option node to grammar model with defines * Add a new `Option` node type to the model in `tatsu\grammars` * Add defines within `Optional` elements * Skip `Rule` defines when `exp` is a `Choice` fixes #202
all names in the successful option should be present in the AST related to #199 Given the grammar below, users expect if the first option in the choice for `expr_range` parses, then both `from` and `to` will be present in the resulting AST, and that is not the current behavior in TatSu. Some matching strings are "...
neogeny/TatSu
diff --git a/test/grammar/defines_test.py b/test/grammar/defines_test.py new file mode 100644 index 0000000..f0be7fb --- /dev/null +++ b/test/grammar/defines_test.py @@ -0,0 +1,84 @@ +from __future__ import annotations + +import pytest # noqa + +from tatsu.tool import compile, gencode + + +def test_name_in_option(): +...
[ "test/grammar/defines_test.py::test_name_in_option", "test/grammar/defines_test.py::test_by_option", "test/grammar/defines_test.py::test_inner_options" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
dba37674e6eaa6c2030c8eb35ebf8127cd488062
2023-09-14 12:08:06
docker.io/swerebenchv2/scrapy-scrapy:6050-dba3767
scrapy__scrapy-6050
Method: RetryMiddleware.from_crawler(cls, crawler) Location: classmethod of RetryMiddleware (metaclass BackwardsCompatibilityMetaclass) Inputs: - cls: subclass of RetryMiddleware (e.g., MyRetryMiddleware) - crawler: Scrapy Crawler object providing settings and statistics Outputs: An instantiated middleware object (sel...
python
BSD-3-Clause
diff --git a/scrapy/downloadermiddlewares/retry.py b/scrapy/downloadermiddlewares/retry.py index 205bb48b1..380623cea 100644 --- a/scrapy/downloadermiddlewares/retry.py +++ b/scrapy/downloadermiddlewares/retry.py @@ -24,9 +24,8 @@ from scrapy.utils.response import response_status_message retry_logger = getLogger(__nam...
Improve the backwards compatibility for RetryMiddleware.EXCEPTIONS_TO_RETRY Fixes #6049 (with the code provided by the reporter)
`downloadermiddlewares.retry.BackwardsCompatibilityMetaclass` does not provide backward compatibility for middleware instances # Description Previously, `EXCEPTIONS_TO_RETRY` was an attribute of `RetryMiddleware`. This allows: - `RetryMiddleware` subclasses could access `EXCEPTIONS_TO_RETRY` via `cls.EXCEPTIONS_TO_...
scrapy/scrapy
diff --git a/tests/test_downloadermiddleware_retry.py b/tests/test_downloadermiddleware_retry.py index 97ae1e29a..661175840 100644 --- a/tests/test_downloadermiddleware_retry.py +++ b/tests/test_downloadermiddleware_retry.py @@ -122,7 +122,7 @@ class RetryTest(unittest.TestCase): req = Request(f"http://www.scr...
[ "tests/test_downloadermiddleware_retry.py::RetryTest::test_exception_to_retry_custom_middleware_self" ]
[ "tests/test_downloadermiddleware_retry.py::RetryTest::test_404", "tests/test_downloadermiddleware_retry.py::RetryTest::test_503", "tests/test_downloadermiddleware_retry.py::RetryTest::test_dont_retry", "tests/test_downloadermiddleware_retry.py::RetryTest::test_dont_retry_exc", "tests/test_downloadermiddlewa...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
162472fe896f727ceadc72c4fce11626f7eff7f8
2023-02-10 20:19:13
docker.io/swerebenchv2/pennylaneai-pennylane:3753-162472f
pennylaneai__pennylane-3753
Method: ProbabilityMP.process_state(self, state, wires) Location: pennylane/measurements/probs.py – class ProbabilityMP (inherits from SampleMeasurement, StateMeasurement) Inputs: - **state** – a state‑vector tensor (shape (2**n,) for a single state or (batch, 2**n) for a batch of states) on the active interface ...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 9e8f3e39f..560da79ca 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -718,6 +718,10 @@ * Redirect `qml.math.ndim` to `jnp.ndim` when using it on a jax tensor. [(#3730)](https://github.com/PennyLaneAI/p...
Return expected wire order with qml.probs(), use same logic in QSV **Context:** Bug #3741 explains the background, but essentially qml.probs() does not order wires correctly. The desired wire order was given to an array, essentially saying "rearrange your axes to look like this", but that's not exactly how array index...
[BUG] Confusing behavior with the `wires` argument of `qml.probs` ### Expected behavior Consider a case where where a device's wires are ordered as `[2,0,1]` and we'd like to get the probabilities associated with these wires in the order `[0,1,2]`. That is, if a `qml.PauliX(wires=[0])` operation is applied, I would ex...
PennyLaneAI/pennylane
diff --git a/tests/devices/test_default_qutrit.py b/tests/devices/test_default_qutrit.py index 98361b10a..8de8eaa4d 100644 --- a/tests/devices/test_default_qutrit.py +++ b/tests/devices/test_default_qutrit.py @@ -970,6 +970,20 @@ class TestProbabilityIntegration: assert dev.analytic_probability() is None +...
[ "tests/devices/test_default_qutrit.py::TestProbabilityIntegration::test_marginal_prob_wire_order", "tests/test_qubit_device.py::TestMarginalProb::test_correct_marginals_returned[probs3-marginals3-wires3]", "tests/test_qubit_device.py::TestMarginalProb::test_correct_marginals_returned[probs4-marginals4-wires4]",...
[ "tests/devices/test_default_qutrit.py::test_analytic_deprecation", "tests/devices/test_default_qutrit.py::test_dtype_errors", "tests/devices/test_default_qutrit.py::TestApply::test_apply_operation_single_wire_no_parameters[qutrit_device_1_wire0-TShift-input0-expected_output0-None]", "tests/devices/test_defaul...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
3c1445bec0406fc10808b91fde7d1a7725364beb
2019-01-28 15:31:04
docker.io/swerebenchv2/consensys-mythril-classic:902-3c1445b
consensys__mythril-classic-902
Method: IndependenceSolver.__init__(self) Location: Inputs: None Outputs: None (initializes an empty raw z3.Solver, constraints list, and models list) Description: Creates a new IndependenceSolver instance with internal solver state cleared. Method: IndependenceSolver.set_timeout(self, timeout: int) Location: In...
python
MIT
diff --git a/mythril/laser/smt/__init__.py b/mythril/laser/smt/__init__.py index 9cb81244..98f52d7e 100644 --- a/mythril/laser/smt/__init__.py +++ b/mythril/laser/smt/__init__.py @@ -18,6 +18,7 @@ from mythril.laser.smt.expression import Expression, simplify from mythril.laser.smt.bool import Bool, is_true, is_false, ...
Independence optimization closes #232
Independence optimization ## Description Add independence-optimization for constraint solving. When a state with constraint set C needs to add a new constraint c’, instead of passing C ∧ c’ to the constraint solver to test satisfiability, pass R(C, c’) ∧ c’ where the expression R(C, c’) returns only the constraints i...
ConsenSys/mythril-classic
diff --git a/tests/laser/smt/__init__.py b/tests/laser/smt/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/laser/smt/independece_solver_test.py b/tests/laser/smt/independece_solver_test.py new file mode 100644 index 00000000..829b4707 --- /dev/null +++ b/tests/laser/smt/independece_solver_t...
[ "tests/laser/smt/independece_solver_test.py::test_get_expr_variables", "tests/laser/smt/independece_solver_test.py::test_get_expr_variables_num", "tests/laser/smt/independece_solver_test.py::test_create_bucket", "tests/laser/smt/independece_solver_test.py::test_dependence_map", "tests/laser/smt/independece_...
[]
{ "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":...
2c09a8617476090aa634ac5e28e60c8d89247cb1
2024-03-05 11:46:44
docker.io/swerebenchv2/kozea-weasyprint:2087-2c09a86
kozea__weasyprint-2087
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/weasyprint/layout/preferred.py b/weasyprint/layout/preferred.py index 8c965fe7..10ddc6e3 100644 --- a/weasyprint/layout/preferred.py +++ b/weasyprint/layout/preferred.py @@ -256,13 +256,7 @@ def table_cell_min_content_width(context, box, outer): outer, max(children_widths) if children_wid...
Use CSS Table Module Level 3 to compute widths CSS Table Module Level 3 appears to respect table width over cell width. Thus, the following ~3~ [`test_layout_table_auto_9`](https://github.com/Kozea/WeasyPrint/blob/e73526eda54d5a3e21037f05152aa1759938d3c6/tests/layout/test_table.py#L515-L547) and [`test_layout_table_aut...
Table not printed as shown in browser: weasyprint overrides "table width" with "cell width" If the table (table) has a maximum width and the individual columns (td) have their own width - greater than the table width(!) - weasyprint interprets the width different as browsers will do: A Table with "table width 500px"...
Kozea/WeasyPrint
diff --git a/tests/layout/test_table.py b/tests/layout/test_table.py index bfd097da..afcde2ba 100644 --- a/tests/layout/test_table.py +++ b/tests/layout/test_table.py @@ -515,7 +515,7 @@ def test_layout_table_auto_8(): @assert_no_logs def test_layout_table_auto_9(): page, = render_pages(''' - <table style="...
[ "tests/layout/test_table.py::test_layout_table_auto_32" ]
[ "tests/layout/test_table.py::test_inline_table", "tests/layout/test_table.py::test_implicit_width_table_col_percent", "tests/layout/test_table.py::test_implicit_width_table_td_percent", "tests/layout/test_table.py::test_layout_table_fixed_1", "tests/layout/test_table.py::test_layout_table_fixed_2", "tests...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/Kozea/WeasyPrint/assets/5119643/1b2...
d8763b93021c416549b5f8b4b5497234619410db
2024-11-03 13:31:59
docker.io/swerebenchv2/pallets-click:2800-d8763b9
pallets__click-2800
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 540bbe2..01e8d8b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -59,6 +59,9 @@ Unreleased - If help is shown because ``no_args_is_help`` is enabled (defaults to ``True`` for groups, ``False`` for commands), the exit code is 2 instead of 0. :issue:`1489` :pr:`1489...
Close contexts created during shell completion #2644. Includes a test reproducing #2644. Then continues from the work done by @akhil-vempali in #2767 to fix the issue. There was some confusion in the mess of context objects in the implementation that has been fixed in this version. Resolves #2644.
Click doesn't close file options during shell completion Click doesn't close file options during shell completion, which causes a resource warning if a program uses a file option. For example, I have group like this: ```python @click.group() @click.option('--config_file', default=CONFIG, ...
pallets/click
diff --git a/tests/test_shell_completion.py b/tests/test_shell_completion.py index 3e7a2bd..3511f07 100644 --- a/tests/test_shell_completion.py +++ b/tests/test_shell_completion.py @@ -1,3 +1,5 @@ +import warnings + import pytest import click.shell_completion @@ -414,3 +416,27 @@ def test_add_completion_class_decor...
[ "tests/test_shell_completion.py::test_files_closed" ]
[ "tests/test_shell_completion.py::test_command", "tests/test_shell_completion.py::test_group", "tests/test_shell_completion.py::test_group_command_same_option", "tests/test_shell_completion.py::test_chained", "tests/test_shell_completion.py::test_help_option", "tests/test_shell_completion.py::test_argument...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pallets/click/blob/ca5e1c3d75e95cbc...
e379afe04e126418bdac8949238d4a2d74e2f3b7
2024-01-19 19:55:08
docker.io/swerebenchv2/getmoto-moto:7233-e379afe
getmoto__moto-7233
Method: ACMClient.describe_certificate(CertificateArn) Location: tests/test_acm/test_acm.py Inputs: CertificateArn – string ARN of the ACM certificate to query. Outputs: Dictionary with key "Certificate" containing: • "Status" – string, e.g., "PENDING_VALIDATION". • "DomainValidationOptions" – list of dicts, each d...
python
Apache-2.0
diff --git a/moto/acm/models.py b/moto/acm/models.py index 8d7bcf4c8..95435983c 100644 --- a/moto/acm/models.py +++ b/moto/acm/models.py @@ -343,24 +343,22 @@ class CertBundle(BaseModel): domain_names = set(sans + [self.common_name]) validation_options = [] - if self.status == "PENDING_VALIDA...
ACM: DomainValidationOptions should be the same for validated certificates Followup to #7144 Fixes #7228 This PR also ensures that `route53.list_resource_record_sets()` now returns the `MultiValueAnswer`-attribute, to ensure TF behaves the same for subsequent requests
ACM certificate with domain validation options not idempotent # Problem This is a follow up to https://github.com/getmoto/moto/issues/7138, but is technically a different issue, so I have opened a new one. I noticed when doing some checks for idempotency that the acm cert was being destroyed and recreated each tim...
getmoto/moto
diff --git a/.github/workflows/tests_terraform_examples.yml b/.github/workflows/tests_terraform_examples.yml index b1a5f7054..12790048e 100644 --- a/.github/workflows/tests_terraform_examples.yml +++ b/.github/workflows/tests_terraform_examples.yml @@ -33,4 +33,9 @@ jobs: cd other_langs/terraform/${{ matrix.se...
[ "tests/test_acm/test_acm.py::test_request_certificate_with_optional_arguments", "tests/test_route53/test_route53.py::test_change_resource_record_sets_crud_valid_with_special_xml_chars[True]", "tests/test_route53/test_route53.py::test_change_resource_record_sets_crud_valid_with_special_xml_chars[False]" ]
[ "tests/test_acm/test_acm.py::test_import_certificate", "tests/test_acm/test_acm.py::test_import_certificate_with_tags", "tests/test_acm/test_acm.py::test_import_bad_certificate", "tests/test_acm/test_acm.py::test_list_certificates", "tests/test_acm/test_acm.py::test_get_invalid_certificate", "tests/test_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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/getmoto/moto/issues/7138" ], ...
e51192b71db45d79b68c56d5e6c36af9d8a497b9
2024-04-27 20:50:03
docker.io/swerebenchv2/getmoto-moto:7635-e51192b
getmoto__moto-7635
Method: SNSBackend.create_platform_endpoint(self, PlatformApplicationArn: str, Token: str, Attributes: dict = None) Location: moto/sns/models.py (class SNSBackend, method create_platform_endpoint) Inputs: - **PlatformApplicationArn** – ARN of the platform application (string, required). - **Token** – Device token to as...
python
Apache-2.0
diff --git a/moto/sns/models.py b/moto/sns/models.py index 98c380fb6..a3459de58 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -679,7 +679,7 @@ class SNSBackend(BaseBackend): if token == endpoint.token: same_user_data = custom_user_data == endpoint.custom_user_data ...
SNS: create_platform_endpoint() is idempotent, if without attributes … …supplied Fixes #7609
SNS: `create_platform_endpoint` is not idempotent with default attributes According to [AWS Documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns/client/create_platform_endpoint.html#), `create_platform_endpoint` is idempotent, so if an endpoint is created with the same token and...
getmoto/moto
diff --git a/tests/test_sns/test_application_boto3.py b/tests/test_sns/test_application_boto3.py index d13872d27..8411e4dec 100644 --- a/tests/test_sns/test_application_boto3.py +++ b/tests/test_sns/test_application_boto3.py @@ -139,7 +139,43 @@ def test_create_platform_endpoint(): @pytest.mark.aws_verified @sns_aw...
[ "tests/test_sns/test_application_boto3.py::test_create_duplicate_default_platform_endpoint" ]
[ "tests/test_sns/test_application_boto3.py::test_create_platform_application", "tests/test_sns/test_application_boto3.py::test_get_platform_application_attributes", "tests/test_sns/test_application_boto3.py::test_get_missing_platform_application_attributes", "tests/test_sns/test_application_boto3.py::test_set_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/latest/...