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
dc3f75b0d0390dedbf9a830b6325b76dba468f1f
2023-09-22 08:39:16
docker.io/swerebenchv2/researchobject-ro-crate-py:161-dc3f75b
researchobject__ro-crate-py-161
No new interfaces are introduced.
python
Apache-2.0
diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py index d6b12a6..57bcd39 100644 --- a/rocrate/rocrate.py +++ b/rocrate/rocrate.py @@ -147,10 +147,16 @@ class ROCrate(): preview_entity = entities.pop(Preview.BASENAME, None) if preview_entity and not gen_preview: self.add(Preview(self, s...
Add indirectly linked data entities Fixes #141.
Support indirect data entity linking from root Currently we detect data entities only if they are *directly* linked to from the root data entity: ```json { "@id": "./", "@type": "Dataset", "hasPart": [ {"@id": "spam"}, {"@id": "spam/foo.txt"} ] }, { "@id": "spam", "...
ResearchObject/ro-crate-py
diff --git a/test/test_read.py b/test/test_read.py index c7843f7..9aa3e96 100644 --- a/test/test_read.py +++ b/test/test_read.py @@ -484,3 +484,53 @@ def test_multi_type_context_entity(tmpdir): entity = crate.dereference(id_) assert entity in crate.contextual_entities assert set(entity.type) == set(type_...
[ "test/test_read.py::test_indirect_data_entity" ]
[ "test/test_read.py::test_crate_dir_loading[False-False]", "test/test_read.py::test_crate_dir_loading[True-False]", "test/test_read.py::test_crate_dir_loading[True-True]", "test/test_read.py::test_legacy_crate", "test/test_read.py::test_bad_crate", "test/test_read.py::test_init[False]", "test/test_read.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.researchobject.org/ro-crate/1.1/data-entit...
a61d9143ae631a9f7e8b0a7717508eee4e7f6c61
2016-10-29 19:02:54
docker.io/swerebenchv2/frictionlessdata-tabulator-py:125-a61d914
frictionlessdata__tabulator-py-125
Method: Stream.open(self) Location: tabulator/stream.py – class Stream Inputs: No explicit parameters (uses the Stream instance’s internal source configuration). May be invoked after constructing a Stream with any source. Outputs: Raises <code>exceptions.FormatError</code> when the detected source format is unsupported...
python
MIT
diff --git a/tabulator/loaders/file.py b/tabulator/loaders/file.py index 7d5ecaf..f085b2d 100644 --- a/tabulator/loaders/file.py +++ b/tabulator/loaders/file.py @@ -36,8 +36,8 @@ class FileLoader(api.Loader): except IOError as exception: raise exceptions.IOError(str(exception)) if helpers...
Added csv dialect guessing - fixes #79
CSV dialect guessing? # Overview For csv options not passed explicitly `tabulator` should use python default csv sniffer.
frictionlessdata/tabulator-py
diff --git a/tests/test_stream.py b/tests/test_stream.py index 3b0fe62..79f66bd 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -8,10 +8,30 @@ import pytest from tabulator import Stream, exceptions +# Tests [formats] + +def test_stream_csv_excel(): + source = 'value1,value2\nvalue3,value4' + ...
[ "tests/test_stream.py::test_stream_csv_excel_tab", "tests/test_stream.py::test_stream_format_error_zip", "tests/test_stream.py::test_stream_format_error_html", "tests/test_topen.py::test_html_content" ]
[ "tests/test_stream.py::test_stream_csv_excel", "tests/test_stream.py::test_stream_csv_unix", "tests/test_stream.py::test_stream_csv_delimiter", "tests/test_stream.py::test_stream_csv_escapechar", "tests/test_stream.py::test_stream_csv_quotechar", "tests/test_stream.py::test_stream_excel_sheet", "tests/t...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
551e265f8bc47b1b952eac5a3bee388930a958bf
2022-05-10 08:34:32
docker.io/swerebenchv2/zulko-moviepy:1768-551e265
zulko__moviepy-1768
Method: FFmpegInfosParser.parse(self) Location: moviepy/video/io/ffmpeg_reader.py (class FFmpegInfosParser) Inputs: None (uses the instance state populated by __init__) Outputs: dict – a nested dictionary containing parsed FFmpeg information (e.g., “inputs”, each with “streams”, metadata, etc.). May raise a parsing err...
python
MIT
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py index 3e24557..e961017 100644 --- a/moviepy/video/io/ffmpeg_reader.py +++ b/moviepy/video/io/ffmpeg_reader.py @@ -415,14 +415,14 @@ class FFmpegInfosParser: else: self._last_metadata_field_added = fi...
Fix libavformat compatiblity break https://github.com/FFmpeg/FFmpeg/commit/b7251aed46f5ac96fe65c1c68ddac44b07429467 Close #1714 <!-- Please tick when you have done these. They don't need to all be completed before the PR is submitted. Delete them if they are not appropriate for this pull request. --> - [x] I ...
Changes in FFmpeg libavformat break FFmpegInfosParser #### Expected Behavior `FFmpegInfosParser.parse` can parse FFmpeg output. #### Actual Behavior `FFmpegInfosParser.parse` fails to parse FFmpeg output starting with commit [b7251ae](https://github.com/FFmpeg/FFmpeg/commit/b7251aed46f5ac96fe65c1c68ddac44b07429467...
Zulko/moviepy
diff --git a/tests/test_ffmpeg_reader.py b/tests/test_ffmpeg_reader.py index da40ef5..a1a5cce 100644 --- a/tests/test_ffmpeg_reader.py +++ b/tests/test_ffmpeg_reader.py @@ -487,6 +487,30 @@ def test_not_default_audio_stream_audio_bitrate(): assert d["audio_bitrate"] == 139 +def test_stream_deidentation_not_rai...
[ "tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_decode_file[decode_file=False]", "tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_metadata", "tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_metadata_with_attached_pic", "tests/test_ffmpeg_reader.py::test_stream_deidentation_not_raises_error", ...
[ "tests/test_ffmpeg_reader.py::test_ffmpeg_parse_infos_multiline_metadata", "tests/test_ffmpeg_reader.py::test_not_default_audio_stream_audio_bitrate", "tests/test_ffmpeg_reader.py::test_failure_to_release_file" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/FFmpeg/FFmpeg/commit/b7251aed46f5ac96...
974ab77bfdb488ad11c2a4241b6940b7d4bf53c4
2024-01-04 18:56:24
docker.io/swerebenchv2/pennylaneai-pennylane:4993-974ab77
pennylaneai__pennylane-4993
Function: Projector(state, wires) Location: pennylane.ops.qubit.observables.Projector Inputs: - **state**: Sequence[int] or array‑like specifying the basis state to project onto. Can now be provided as a broadcasted parameter (e.g., an array of values) when used with devices that support batching. - **wires**: int or I...
python
Apache-2.0
diff --git a/doc/releases/changelog-0.34.0.md b/doc/releases/changelog-0.34.0.md index 21d33279a..2d64b8c32 100644 --- a/doc/releases/changelog-0.34.0.md +++ b/doc/releases/changelog-0.34.0.md @@ -708,7 +708,10 @@ [(#4951)](https://github.com/PennyLaneAI/pennylane/pull/4951) * `MPLDrawer` does not add the bonus s...
Measuring projectors on a state with parameter broadcasting. This PR supercedes #4971 and fixes #4975 . [sc-52681] As this is a high priority bug and we have an upcoming release, I am fixing this here. Nicely this bug can be fixed by removing the specialized logic and just always just the default logic. This wil...
[BUG] qubit device expval method doesn't work with batch and BasisStateProjector ### Expected behavior When utilizing a qubit device with batch processing, expval output, and BasisStateProjector, the probabilities need to be correctly indexed in the good dimension. ### Actual behavior When utilizing a qubit device w...
PennyLaneAI/pennylane
diff --git a/tests/ops/qubit/test_observables.py b/tests/ops/qubit/test_observables.py index 525567a91..6b5d2a6f9 100644 --- a/tests/ops/qubit/test_observables.py +++ b/tests/ops/qubit/test_observables.py @@ -637,6 +637,19 @@ class TestBasisStateProjector: assert np.allclose(res_dynamic, expected, atol=tol) ...
[ "tests/ops/qubit/test_observables.py::TestBasisStateProjector::test_integration_batched_state[dev0]", "tests/ops/qubit/test_observables.py::TestBasisStateProjector::test_integration_batched_state[dev1]" ]
[ "tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliX-_0-eigs0]", "tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliY-_1-eigs1]", "tests/ops/qubit/test_observables.py::TestSimpleObservables::test_diagonalization[PauliZ-_2-eigs2]", "tests/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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/PennyLaneAI/pennylane/pull/4971" ...
5122c973c1a0d4351e64f02e2782912afbada9ef
2025-03-02 14:41:03
docker.io/swerebenchv2/matthewwithanm-python-markdownify:202-5122c97
matthewwithanm__python-markdownify-202
No new interfaces are introduced.
python
MIT
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 69ec328..ac34ee5 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -443,7 +443,7 @@ class MarkdownConverter(object): def convert_br(self, el, text, parent_tags): if '_inline' in parent_tags: - return "" +...
in inline contexts, resolve <br/> to a space instead of an empty string Fixes #201. In inline contexts, `<br />` now resolves to a space instead of an empty string. Unit tests were added to include this case.
`<br/>` in inline contexts does not evaluate to a separating space Currently, `<br/>` in inline contexts (such as headings and table cells) evaluates to an empty string instead of a separating space: ```python from markdownify import MarkdownConverter def md(html, **options): return MarkdownConverter(heading_styl...
matthewwithanm/python-markdownify
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 6939329..0df8f57 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -79,6 +79,8 @@ def test_blockquote_nested(): def test_br(): assert md('a<br />b<br />c') == 'a \nb \nc' assert md('a<br />b<br />c', newline_st...
[ "tests/test_conversions.py::test_br" ]
[ "tests/test_conversions.py::test_a", "tests/test_conversions.py::test_a_spaces", "tests/test_conversions.py::test_a_with_title", "tests/test_conversions.py::test_a_shortcut", "tests/test_conversions.py::test_a_no_autolinks", "tests/test_conversions.py::test_a_in_code", "tests/test_conversions.py::test_b...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
b95bfe95cc0fec17a3ca13dd8c420211826cb380
2024-09-19 01:27:28
docker.io/swerebenchv2/getmoto-moto:8131-b95bfe9
getmoto__moto-8131
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/networkmanager/models.py b/moto/networkmanager/models.py index 238b29c8a..a60a3886d 100644 --- a/moto/networkmanager/models.py +++ b/moto/networkmanager/models.py @@ -270,6 +270,11 @@ class NetworkManagerBackend(BaseBackend): except (KeyError, ValueError, AttributeError): raise R...
[BUG FIX] route53 list_tags_for_resources no results & hostedzone ids not decoding properly Resolves #8130 Adds additional test scenarios
[BUG] route53 tagging for hostedzones & list_tags_for_resources does not work properly There are two bugs for route53. To recreate, add `assert len(response["ResourceTagSets"]) == 2` in test_route53.py -> test_list_tags_for_resources() above `for set in response["ResourceTagSets"]:` on line 588. list_tags_for_res...
getmoto/moto
diff --git a/tests/test_events/test_events_integration.py b/tests/test_events/test_events_integration.py index 074c5b76b..7e03c74e3 100644 --- a/tests/test_events/test_events_integration.py +++ b/tests/test_events/test_events_integration.py @@ -1,9 +1,11 @@ +import contextlib import json import os from datetime impo...
[ "tests/test_networkmanager/test_networkmanager.py::test_create_global_network", "tests/test_route53/test_route53.py::test_list_tags_for_resources" ]
[ "tests/test_events/test_events_integration.py::test_send_to_cw_log_group", "tests/test_events/test_events_integration.py::test_send_to_sqs_fifo_queue", "tests/test_events/test_events_integration.py::test_send_to_sqs_queue", "tests/test_events/test_events_integration.py::test_send_to_sqs_queue_with_custom_even...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
8771b548e75a003e552febb74f4bf87b450fd2f5
2020-03-04 14:09:08
docker.io/swerebenchv2/ntnu-ihb-pythonfmu:86-8771b54
ntnu-ihb__pythonfmu-86
Method: Fmi2Slave.log(self, msg: str, status: Fmi2Status = Fmi2Status.ok, category: str = "", debug: bool = False) Location: pythonfmu/fmi2slave.py Inputs: - **msg** (str): the log message to forward. - **status** (Fmi2Status, optional): severity/status code, defaults to Fmi2Status.ok. - **category** (str, optional): ...
python
MIT
diff --git a/pythonfmu/builder.py b/pythonfmu/builder.py index 822bfcd..bd4a219 100644 --- a/pythonfmu/builder.py +++ b/pythonfmu/builder.py @@ -3,7 +3,6 @@ import argparse import importlib import itertools import logging -import platform import re import shutil import sys @@ -13,7 +12,7 @@ from pathlib import Pa...
Support logging `self.log("")` will always print `self.log("", debug=True)` will print if FMI `debugLogging` is set Closes #35 Closes #85
Enhance logging FMI defines a logger mechanism. Python itself has a standard logging library. A good enhancement would be to redirect the Python logger to the FMI one. In addition, the support for the debug log flag at FMU instantiation should be added.
NTNU-IHB/PythonFMU
diff --git a/pythonfmu/tests/test_fmi2slave.py b/pythonfmu/tests/test_fmi2slave.py index 940d550..71de8e2 100644 --- a/pythonfmu/tests/test_fmi2slave.py +++ b/pythonfmu/tests/test_fmi2slave.py @@ -3,15 +3,9 @@ import pytest from pythonfmu import Fmi2Slave, Boolean, Integer, Real, String from pythonfmu import __versio...
[ "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_constructor[theModelName]", "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_constructor[None]", "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_generation_tool", "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_getters[False-Boolean]", "pythonfmu/te...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5db20b224ec4e36fbd8dfc74ea6a97488596a7d9
2016-07-29 18:35:46
docker.io/swerebenchv2/audreyr-cookiecutter:788-5db20b2
audreyr__cookiecutter-788
Function: main(prog_name=None, *args, **kwargs) Location: cookiecutter/__main__.py (re‑exports the Click command defined in cookiecutter.cli) Inputs: - prog_name (str, optional): overrides the program name shown in help/usage text; defaults to the value Click derives from the entry point. - *args, **kwargs: passed thro...
python
BSD-3-Clause
diff --git a/__main__.py b/__main__.py new file mode 100644 index 0000000..b1c06ff --- /dev/null +++ b/__main__.py @@ -0,0 +1,6 @@ +"""Allow cookiecutter to be executable from a checkout or zip file.""" +import runpy + + +if __name__ == "__main__": + runpy.run_module("cookiecutter", run_name="__main__") diff --git a...
Add support for executing cookiecutter using -m or from a checkout/zip file With this change you gain at least three ways to execute cookiecutter: 1. `python -m cookiecutter` 2. From a checkout: `python .` 3. From a zip file (that includes all necessary dependencies): `python cookiecutter.zip` Closes #787
Provide a __main__.py for the package By providing a `__main__.py` file in the `cookiecutter` package it allows for `python.exe -m cookiecutter` to work (and the entry point can then simply point at the `__main__` module). I would be happy to provide a PR for this if you're amenable to the addition.
audreyr/cookiecutter
diff --git a/tests/test_cli.py b/tests/test_cli.py index 2c4dd6d..ca75e52 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -6,7 +6,7 @@ import pytest from click.testing import CliRunner -from cookiecutter.cli import main +from cookiecutter.__main__ import main from cookiecutter.main import cookiecutter ...
[ "tests/test_cli.py::test_cli_version[-V]", "tests/test_cli.py::test_cli_version[--version]", "tests/test_cli.py::test_cli_error_on_existing_output_directory", "tests/test_cli.py::test_cli", "tests/test_cli.py::test_cli_verbose", "tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exi...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": [...
622734ce2524533e10160f28d5476efb23b227a9
2021-09-17 07:35:19
docker.io/swerebenchv2/liampauling-flumine:503-622734c
liampauling__flumine-503
Method: BaseFlumine._process(self, event) Location: flumine/baseflumine.py (around line 272, inside the `_process` method) Inputs: - **market** – a callable (typically a Market object) that is expected to accept a single argument. - **market_book** – an instance of `flumine.market.book.MarketBook` (or compatible objec...
python
MIT
diff --git a/HISTORY.rst b/HISTORY.rst index b1f5f8f..bf3b6ab 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,10 @@ Release History - Update to use `listener_kwargs` in `_process` rather than `snap` +**Bug Fixes** + +- #499 missing market call on closure + **Libraries** - betfairlightweight upgraded to...
close #499 add missingmarket call on closure
backtesting: market_book not updating on market.closed = True ```python for market in framework.markets: results = {r.selection_id: r.status for r in market.market_book.runners} print(results) {38432986: 'ACTIVE', 28095515: 'REMOVED', 38235043: 'ACTIVE', 26817710: 'ACTIVE', 36775362: 'ACTIVE', 37487570: '...
liampauling/flumine
diff --git a/tests/test_baseflumine.py b/tests/test_baseflumine.py index a803088..f77b701 100644 --- a/tests/test_baseflumine.py +++ b/tests/test_baseflumine.py @@ -234,6 +234,7 @@ class BaseFlumineTest(unittest.TestCase): mock_market, mock_market_book ) mock_log_control.assert_called_wit...
[ "tests/test_baseflumine.py::BaseFlumineTest::test__process_close_market" ]
[ "tests/test_baseflumine.py::BaseFlumineTest::test__add_default_workers", "tests/test_baseflumine.py::BaseFlumineTest::test__add_market", "tests/test_baseflumine.py::BaseFlumineTest::test__process_cleared_markets", "tests/test_baseflumine.py::BaseFlumineTest::test__process_cleared_orders", "tests/test_basefl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/liampauling/flumine/blob/ec060b7d98a9...
6c4d86fa1330abb6525ca97d47e58bd97da6967e
2025-04-13 01:58:51
docker.io/swerebenchv2/jlowin-fastmcp:129-6c4d86f
jlowin__fastmcp-129
Method: FastMCP.__init__(self, name: str, *, lifespan: Callable[[FastMCP], AbstractAsyncContextManager[Any]] | None = None, instructions: str | None = None, tags: set[str] | None = None, settings: dict | None = None, **kwargs) Location: fastmcp.server.server.FastMCP.__init__ Inputs: - **name** – the application name (...
python
Apache-2.0
diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.py index 3c30145..875fc3d 100644 --- a/src/fastmcp/server/server.py +++ b/src/fastmcp/server/server.py @@ -6,6 +6,7 @@ import re from collections.abc import AsyncIterator, Callable from contextlib import ( AbstractAsyncContextManager, + Asy...
Enter mounted app lifespans Ensures that mounted app (i.e. sub-MCPs) lifespans are properly entered and exited. Closes #127
Composed MCP Servers don't initialize lifespans When an MCP Server is composed, the current code imports the tools but does not start-up the lifespan This means you still need one giant lifespan function at the top level that initializes the lifespans of all the child servers. It would be nice if the composing FastMC...
jlowin/fastmcp
diff --git a/tests/server/test_mount.py b/tests/server/test_mount.py index 74a94f3..b48f157 100644 --- a/tests/server/test_mount.py +++ b/tests/server/test_mount.py @@ -1,3 +1,7 @@ +import contextlib + +import pytest + from fastmcp.server.server import FastMCP @@ -182,3 +186,47 @@ async def test_mount_multiple_pro...
[ "tests/server/test_mount.py::test_mount_lifespan[asyncio]" ]
[ "tests/server/test_mount.py::test_mount_basic_functionality", "tests/server/test_mount.py::test_mount_multiple_apps", "tests/server/test_mount.py::test_mount_combines_tools", "tests/server/test_mount.py::test_mount_with_resources", "tests/server/test_mount.py::test_mount_with_resource_templates", "tests/s...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
93f9cc51a7a5c98518eab72a674891dd914059ab
2024-03-21 08:12:51
docker.io/swerebenchv2/spikeinterface-spikeinterface:2610-93f9cc5
spikeinterface__spikeinterface-2610
Method: BaseExtractor.get_parent(self) Location: src/spikeinterface/core/base.py Inputs: None (no parameters besides self). The method accesses an internal attribute "_parent" that may have been set by child classes. Outputs: Optional[BaseExtractor] – returns the parent extractor object if it exists, otherwise None. D...
python
MIT
diff --git a/src/spikeinterface/core/base.py b/src/spikeinterface/core/base.py index 80341811b..f234d77da 100644 --- a/src/spikeinterface/core/base.py +++ b/src/spikeinterface/core/base.py @@ -82,6 +82,10 @@ class BaseExtractor: # This is implemented in BaseRecording or BaseSorting raise NotImplemente...
Implement `get_parent()` function Fixes #2596 This is super useful for example to plot different processing layers!
Is it possible to access original data through preprocesed `BaseRecording` instance The pipeline ``` Binary File -> Preprocessing -(1)-> Sorting -(2)-> Wave Extractor -(3)-> Neuron feature assessment. ``` The last class gets `BaseRecording` after (1) and uses `get_traces` to compute a spike "fingerprint". Unfortun...
SpikeInterface/spikeinterface
diff --git a/src/spikeinterface/core/tests/test_channelslicerecording.py b/src/spikeinterface/core/tests/test_channelslicerecording.py index 87481a2a7..e2e4dfdb2 100644 --- a/src/spikeinterface/core/tests/test_channelslicerecording.py +++ b/src/spikeinterface/core/tests/test_channelslicerecording.py @@ -42,6 +42,7 @@ d...
[ "src/spikeinterface/core/tests/test_frameslicerecording.py::test_FrameSliceRecording", "src/spikeinterface/core/tests/test_frameslicesorting.py::test_FrameSliceSorting", "src/spikeinterface/core/tests/test_unitsselectionsorting.py::test_basic_functions" ]
[ "src/spikeinterface/core/tests/test_channelslicerecording.py::test_failure_with_non_unique_channel_ids", "src/spikeinterface/core/tests/test_unitsselectionsorting.py::test_failure_with_non_unique_unit_ids", "src/spikeinterface/core/tests/test_unitsselectionsorting.py::test_custom_cache_spike_vector" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.94, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
9af685574aa465456bca01f245b830b324db2c5c
2022-12-01 17:01:11
docker.io/swerebenchv2/cs-si-eodag:566-9af6855
cs-si__eodag-566
Method: HTTPDownload.download(self, product, outputs_prefix=None, **kwargs) Location: eodag/plugins/download/http.py Inputs: - **product** (eodag.api.product.Product): object containing `location`, `remote_location`, and an `assets` dict where each asset has at least an `href` and optional `size`/`filename`. - **outpu...
python
Apache-2.0
diff --git a/eodag/plugins/download/http.py b/eodag/plugins/download/http.py index 58fe8a89..9b9b66ba 100644 --- a/eodag/plugins/download/http.py +++ b/eodag/plugins/download/http.py @@ -252,6 +252,9 @@ class HTTPDownload(Download): assets_urls = [ a["href"] for a in getattr(product, "assets", {})...
feat: http asset size from get method fixes #564 With descending priority, http asset size is now obtained from: - HEAD header / Content-length - HEAD header / content-disposition / size - GET header / Content-length - GET header / content-disposition / size
http asset filesize using GET method Following #542, in `HTTPDownload` try getting asset filesize from header while downloading with GET method if the filesize could not be obtained with HEAD method (`total_size == 0`). Implement something like: ```py if total_size == 0: asset_size = parse_header(asset_content_d...
CS-SI/eodag
diff --git a/tests/units/test_download_plugins.py b/tests/units/test_download_plugins.py index d31a976b..f37a1b01 100644 --- a/tests/units/test_download_plugins.py +++ b/tests/units/test_download_plugins.py @@ -239,6 +239,73 @@ class TestDownloadPluginHttp(BaseDownloadPluginTest): ) ) + @mock...
[ "tests/units/test_download_plugins.py::TestDownloadPluginHttp::test_plugins_download_http_assets_size" ]
[ "tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_collision_avoidance", "tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_existing", "tests/units/test_download_plugins.py::TestDownloadPluginBase::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":...
9a4fe6b3137ea35c0dd99452b997f9a3e23e5e14
2024-10-30 23:03:58
docker.io/swerebenchv2/laspy-laspy:327-9a4fe6b
laspy__laspy-327
Method: LasWriter.__init__(self, file: BinaryIO, header: LasHeader, closefd: bool = True) Location: laspy.laswriter Inputs: - **file**: an opened binary file‑like object (or BytesIO) to which LAS data will be written. - **header**: a LasHeader instance defining point format, scales, offsets and other global metadata...
python
custom-check-github
diff --git a/laspy/laswriter.py b/laspy/laswriter.py index 0194c5a..e73b3d4 100644 --- a/laspy/laswriter.py +++ b/laspy/laswriter.py @@ -2,12 +2,14 @@ import logging from copy import deepcopy from typing import BinaryIO, Iterable, Optional, Union +import numpy as np + from ._pointwriter import IPointWriter from ....
Automatically rescale points in writer When the points given to the LasWriter.write_points are of type ScaleAwarePointRecord we now automatically rescale the points. This is not possible for PackedPointRecord because they do not know the scales and offsets they originate from. The goal is to make points coming from...
Writing ScaleAwarePointRecord ignores scaling and offsets Hello, I was creating a small script to merge las files: ```python import laspy las_paths = ["path/to/file1.las", "path/to/file2.las"] save_path = R"where/to/save/file3.las" with laspy.open(las_paths[0]) as las_reader: header = las_reader.header...
laspy/laspy
diff --git a/tests/test_common.py b/tests/test_common.py index b55842c..8e40f33 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -346,6 +346,81 @@ def test_change_scaling(): assert np.all(las.Z == [-2900, -2800, -2700, -2600]) +def test_automatic_scale_change_on_write(): + """ + Test that ...
[ "tests/test_common.py::test_automatic_scale_change_on_write" ]
[ "tests/test_common.py::test_change_format[las0]", "tests/test_common.py::test_change_format[las1]", "tests/test_common.py::test_change_format[las2]", "tests/test_common.py::test_change_format[las3]", "tests/test_common.py::test_rw_all_set_one[las0]", "tests/test_common.py::test_rw_all_set_one[las1]", "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":...
60a09787d4cc0e538a90c7b4beb5617470d9e9a7
2025-03-18 23:41:07
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4028-60a0978
aws-cloudformation__cfn-lint-4028
Function: loads(yaml_string: str) → Mapping Location: cfnlint.decode.cfn_yaml Inputs: A string containing a CloudFormation template in YAML format. The string may include YAML merge keys (`<<:`) and anchors/aliases. Outputs: A dictionary‑like object representing the parsed template. Nodes that originated from a merge o...
python
MIT-0
diff --git a/src/cfnlint/decode/cfn_yaml.py b/src/cfnlint/decode/cfn_yaml.py index 1bc7e5c2c..aadde54a4 100644 --- a/src/cfnlint/decode/cfn_yaml.py +++ b/src/cfnlint/decode/cfn_yaml.py @@ -74,9 +74,15 @@ class NodeConstructor(SafeConstructor): def __init__(self, filename): # Call the base class constructo...
Fix merge for yaml parsing *Issue #, if available:* fix #2993 *Description of changes:* - Allow YAML merging and don't error on duplicate keys - Add rule W1100 that will alert that you are using YAML merge which is only supported on aws cli By submitting this pull request, I confirm that you can use, modify, co...
YAML anchors & key overrides ### Is this feature request related to a new rule or cfn-lint capabilities? rules ### Describe the feature you'd like to request I'm using YAML anchors like this: ```yaml Resources: Common: Type: AWS::CloudFormation::Stack Properties: TemplateURL: ./stack.yaml ...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/cfn_yaml/test_yaml.py b/test/unit/module/cfn_yaml/test_yaml.py index 4e5b5afc8..492573242 100644 --- a/test/unit/module/cfn_yaml/test_yaml.py +++ b/test/unit/module/cfn_yaml/test_yaml.py @@ -75,3 +75,47 @@ class TestYamlParse(BaseTestCase): cfnlint.decode.cfn_yaml.load, ...
[ "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_map_failure", "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse", "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse_stdin", "test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_yaml_merge", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
af9478f45dc6c64475027e8010e024be40a07b41
2015-09-29 12:44:58
docker.io/swerebenchv2/audreyr-cookiecutter:542-af9478f
audreyr__cookiecutter-542
Function: generate_context(context_file, default_context=None, extra_context=None) Location: cookiecutter/generate.py Inputs: - **context_file** (str): Path to a JSON file that defines the template variables. - **default_context** (dict or None): Mapping of variable names to default values taken from the user’s global ...
python
BSD-3-Clause
diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py index 536aa1e..91e97ef 100755 --- a/cookiecutter/generate.py +++ b/cookiecutter/generate.py @@ -50,6 +50,28 @@ def copy_without_render(path, context): return False +def apply_overwrites_to_context(context, overwrite_context): + """Modify the g...
Choice with default in user config This PR makes sure to factor in choice variables in templates when using a user config or extra context. Instead of replacing the list, it will set the *overwrite* value as the new default for the choice variable. Please note that 8f08298 slightly changes the current behavior as...
Choice prompts are disabled if there's a ~/.cookiecutterrc Seems I don't get the nice prompts from https://github.com/audreyr/cookiecutter/pull/455 if I have a `~/.cookiecutterrc`
audreyr/cookiecutter
diff --git a/tests/test-generate-context/choices_template.json b/tests/test-generate-context/choices_template.json new file mode 100644 index 0000000..7862aff --- /dev/null +++ b/tests/test-generate-context/choices_template.json @@ -0,0 +1,7 @@ +{ + "full_name": "Raphael Pierzina", + "github_username": "hackebrot...
[ "tests/test_generate_context.py::test_choices", "tests/test_generate_context.py::test_apply_overwrites_does_include_unused_variables", "tests/test_generate_context.py::test_apply_overwrites_sets_non_list_value", "tests/test_generate_context.py::test_apply_overwrites_does_not_modify_choices_for_invalid_overwri...
[ "tests/test_generate_context.py::test_generate_context[input_params0-expected_context0]", "tests/test_generate_context.py::test_generate_context[input_params1-expected_context1]", "tests/test_generate_context.py::test_generate_context[input_params2-expected_context2]", "tests/test_generate_context.py::test_ge...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/audreyr/cookiecutter/pull/455" ...
ad316dd8371ccce7d09134b8bd59b452a87d8aed
2023-12-01 20:56:27
docker.io/swerebenchv2/getmoto-moto:7085-ad316dd
getmoto__moto-7085
Function: scan(TableName, IndexName=None, Limit=None, ExclusiveStartKey=None, **kwargs) Location: moto.dynamodb.models.table.Table.scan (exposed via the boto3 client `dynamodb.scan`) Inputs: - **TableName** (str): name of the DynamoDB table to scan (required). - **IndexName** (str, optional): name of a secondary index ...
python
Apache-2.0
diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py index 7de01b400..b183cbdc7 100644 --- a/moto/dynamodb/models/table.py +++ b/moto/dynamodb/models/table.py @@ -20,6 +20,8 @@ from moto.dynamodb.models.dynamo_type import DynamoType, Item from moto.dynamodb.models.utilities import dynamo_json_dum...
DynamoDB: Fix ScannedCount calculation for Limit-ed calls Fixes #7080 Our `scan()` implementation would iterate through the entire dataset, and only trim the results at the end. This approach has multiple downsides: - We're needlessly filtering/copying all items in the table - The ScannedCount is wrong - bec...
mock_dynamodb: response from boto3 and moto is inconsistent when scanning a table with a limit Hi, I recently implemented a new function that gets distinct primary keys in a DynamoDB table. I used the script (_Scan with a modified exclusive start key_) from this [tutorial](https://aws.amazon.com/blogs/database/generat...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb_table_with_range_key.py b/tests/test_dynamodb/test_dynamodb_table_with_range_key.py index 48cd2b8a1..ccfa1fddf 100644 --- a/tests/test_dynamodb/test_dynamodb_table_with_range_key.py +++ b/tests/test_dynamodb/test_dynamodb_table_with_range_key.py @@ -1170,24 +1170,42 @@ def...
[ "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_scan_by_index" ]
[ "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_get_item_without_range_key_boto3", "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_query_filter_boto3", "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_boto3_conditions", "tests/test_dynamodb/test_dynamodb_table...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://aws.amazon.com/blogs/database/generate-a-disti...
9cb7a77dc13aa96dceb88a60c7ac0d06280552d3
2020-08-17 19:26:41
docker.io/swerebenchv2/hypothesisworks-hypothesis:2550-9cb7a77
hypothesisworks__hypothesis-2550
Function: _try_import_forward_ref(thing, bound) Location: hypothesis.strategies._internal.types Inputs: - thing: typically a typing.TypeVar instance (or any object whose __module__ attribute is inspected) - bound: a typing.ForwardRef object representing the bound of the TypeVar Outputs: - Returns the concrete type ...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..469188efa --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,8 @@ +RELEASE_TYPE: minor + +:func:`~hypothesis.strategies.from_type` can now resolve :class:`~python:typing.TypeVar` +instances when th...
Adds TypeVar with ForwardRef support Closes #2536 There's a lot of thing to test before actually merging this thing 😄
Incorrect `TypeVar` + `ForwardRef` resolution Here's a source code that produces an error: ```python from hypothesis import strategies as st from typing import TypeVar _T = TypeVar('_T', bound='Test') def example(t: _T) -> None: return t.arg class Test(object): def __init__(self, arg: int) -> No...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_type_lookup_forward_ref.py b/hypothesis-python/tests/cover/test_type_lookup_forward_ref.py new file mode 100644 index 000000000..40260630a --- /dev/null +++ b/hypothesis-python/tests/cover/test_type_lookup_forward_ref.py @@ -0,0 +1,174 @@ +# This file is part of Hypothesi...
[ "hypothesis-python/tests/cover/test_type_lookup_forward_ref.py::test_bound_correct_forward_ref", "hypothesis-python/tests/cover/test_type_lookup_forward_ref.py::test_bound_alias_forward_ref", "hypothesis-python/tests/cover/test_type_lookup_forward_ref.py::test_bound_correct_dot_access_forward_ref" ]
[ "hypothesis-python/tests/cover/test_type_lookup_forward_ref.py::test_bound_missing_dot_access_forward_ref[wrong_dot_access_fun]", "hypothesis-python/tests/cover/test_type_lookup_forward_ref.py::test_bound_missing_dot_access_forward_ref[missing_dot_access_fun]", "hypothesis-python/tests/cover/test_type_lookup_fo...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
f9ea1a013c29e24001dc6cb7b10d9f740545fe58
2024-11-03 10:05:13
docker.io/swerebenchv2/keras-team-keras:20443-f9ea1a0
keras-team__keras-20443
No new interfaces are introduced.
python
Apache-2.0
diff --git a/keras/src/utils/io_utils.py b/keras/src/utils/io_utils.py index 32322f405..f087ab6dd 100644 --- a/keras/src/utils/io_utils.py +++ b/keras/src/utils/io_utils.py @@ -91,10 +91,18 @@ def set_logging_verbosity(level): def print_msg(message, line_break=True): """Print the message to absl logging or stdo...
Fix encoding issue Fixes #19386 The root cause is that `━` is not supported by CP125* encoding. We can replace it with `=` which aligns with Keras2 behavior. Additionally, `print_msg` has been modified to encode and decode to the target encoding, providing a more robust approach.
UnicodeEncodeError when running keras.model.predict The following problem occurs in keras version 3.1.1 (tensorflow version 2.16.1) UnicodeEncodeError: 'charmap' codec can't encode characters in position 19-38: character maps to <undefined> prediction = trained_nn_model.predict(last_sequence) A bit more details: ...
keras-team/keras
diff --git a/keras/src/utils/io_utils_test.py b/keras/src/utils/io_utils_test.py index 235314de3..2fe1fbbea 100644 --- a/keras/src/utils/io_utils_test.py +++ b/keras/src/utils/io_utils_test.py @@ -1,3 +1,5 @@ +import sys +import tempfile from unittest.mock import patch from keras.src.testing import test_case @@ -55...
[ "keras/src/utils/io_utils_test.py::TestIoUtils::test_print_msg_with_different_encoding" ]
[ "keras/src/utils/io_utils_test.py::TestIoUtils::test_ask_to_proceed_with_overwrite_invalid_then_no", "keras/src/utils/io_utils_test.py::TestIoUtils::test_ask_to_proceed_with_overwrite_invalid_then_yes", "keras/src/utils/io_utils_test.py::TestIoUtils::test_ask_to_proceed_with_overwrite_no", "keras/src/utils/io...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/keras-team/keras/issues/19386" ],...
52846c9555a3077b11a391fbfcd619d0d6e776f6
2023-05-10 03:14:10
docker.io/swerebenchv2/getmoto-moto:6306-52846c9
getmoto__moto-6306
Method: client.start_export_task(ExportTaskIdentifier: str, SourceArn: str, S3BucketName: str, S3Prefix: str = None, IamRoleArn: str, KmsKeyId: str, ExportOnly: list = None, …) Location: RDS client API (implemented in moto.rds.models.ExportTask). Inputs: - **ExportTaskIdentifier** – unique name for the export tas...
python
Apache-2.0
diff --git a/moto/rds/models.py b/moto/rds/models.py index bdc823243..ea79565e3 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -1136,6 +1136,9 @@ class ExportTask(BaseModel): self.status = "complete" self.created_at = iso_8601_datetime_with_milliseconds(datetime.datetime.now()) + ...
RDS: Add `SourceType` field for the response of `start_export_task` - Add new field `SouceType`. - Add unittest for both `SourceType (CLUSTER | SNAPSHOT)`. closes #6277
RDS: No field of `SourceType` for the response of `start_export_task` ### Example code. ```python @mock_rds @mock_s3 def example(): rds = boto3.client("rds") rds.create_db_instance( DBName="test-db", DBInstanceIdentifier="test_identifier" DBInstanceClass="db.t2.micro", Engine="...
getmoto/moto
diff --git a/tests/test_rds/test_rds_export_tasks.py b/tests/test_rds/test_rds_export_tasks.py index 2f614ef26..3ef0a3b0c 100644 --- a/tests/test_rds/test_rds_export_tasks.py +++ b/tests/test_rds/test_rds_export_tasks.py @@ -25,6 +25,30 @@ def _prepare_db_snapshot(client, snapshot_name="snapshot-1"): return resp["...
[ "tests/test_rds/test_rds_export_tasks.py::test_start_export_task_db", "tests/test_rds/test_rds_export_tasks.py::test_start_export_task_db_cluster", "tests/test_s3/test_s3_copyobject.py::test_copy_object_in_place_with_bucket_encryption", "tests/test_s3/test_s3_encryption.py::test_encryption_bucket_key_for_aes_...
[ "tests/test_rds/test_rds_export_tasks.py::test_start_export_task_fails_unknown_snapshot", "tests/test_rds/test_rds_export_tasks.py::test_start_export_task_fail_already_exists", "tests/test_rds/test_rds_export_tasks.py::test_cancel_export_task_fails_unknown_task", "tests/test_rds/test_rds_export_tasks.py::test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://boto3.amazonaws.com/v1/documentation/api/lates...
53c3c7b4f980ed8103a62b821a5fed159e561b33
2023-05-13 13:13:25
docker.io/swerebenchv2/pytask-dev-pytask:381-53c3c7b
pytask-dev__pytask-381
No new interfaces are introduced.
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index 5a79980..77a3cbb 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -20,6 +20,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and documentation. - {pull}`368` fixes an error in `update_plugin_list.py` introduc...
Deprecate `@pytask.mark.parametrize`. Closes #233.
ENH: Deprecate `@pytask.mark.parametrize`. Closes #224. #### Is your feature request related to a problem? #229 implements a more intuitive approach to parametrizations for v0.2 which is based on loops. It will likely render the pytest approach obsolete which allows us to simplify the interface and get rid of a l...
pytask-dev/pytask
diff --git a/tests/test_parametrize.py b/tests/test_parametrize.py index 763f08f..37994a8 100644 --- a/tests/test_parametrize.py +++ b/tests/test_parametrize.py @@ -492,3 +492,40 @@ def test_parametrize_with_single_dict(tmp_path): session = main({"paths": tmp_path}) assert session.exit_code == ExitCode.OK +...
[ "tests/test_parametrize.py::test_deprecation_warning_for_parametrizing_tasks" ]
[ "tests/test_parametrize.py::test_pytask_generate_tasks_0", "tests/test_parametrize.py::test_parse_arg_names[i-expected0]", "tests/test_parametrize.py::test_parse_arg_names[i,j-expected1]", "tests/test_parametrize.py::test_parse_arg_names[i,", "tests/test_parametrize.py::test_parse_arg_names[arg_names3-expec...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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://tinyurl.com/pytask-loops" ], "intent_c...
9a94641aab70fd95e529f553b3815498859facc3
2024-07-01 10:15:51
docker.io/swerebenchv2/stfc-psyclone:2637-9a94641
stfc__psyclone-2637
Method: Fparser2Reader._parse_dimensions(self, dimensions, symbol_table) Location: src/psyclone/psyir/frontend/fparser2.py Inputs: - **dimensions**: a `fparser.two.Fortran2003.Dimension_Attr_Spec` node representing the Fortran dimension attribute. - **symbol_table**: a `psyclone.psyir.symbols.SymbolTable` instance tha...
python
BSD-3-Clause
diff --git a/changelog b/changelog index 2f24ee883..ee36b4868 100644 --- a/changelog +++ b/changelog @@ -160,8 +160,11 @@ PSyData API (e.g. when profiling). 57) PR #2647 for #1992. Adds MPI support to PSyKE. Each rank will write - its own output file(s). The generated driver has been extended so that - ...
(Closes #2138) add support for expressions in array bound definitions
Add support to parse Fortran array bounds with expressions For example: `real :: a(start - 1: stop + 1)` Currently it is a UnknownFortranType, but it should be an ArrayType with an ArrayBound with 2 psyir expressions.
stfc/PSyclone
diff --git a/src/psyclone/tests/psyir/frontend/fparser2_test.py b/src/psyclone/tests/psyir/frontend/fparser2_test.py index f1b4f0394..9780181c5 100644 --- a/src/psyclone/tests/psyir/frontend/fparser2_test.py +++ b/src/psyclone/tests/psyir/frontend/fparser2_test.py @@ -61,8 +61,8 @@ from psyclone.psyir.nodes import ( ...
[ "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_process_array_declarations_bound_expressions", "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_structures_duplicate_name", "src/psyclone/tests/psyir/frontend/fparser2_where_handler_test.py::test_where_mask_starting_value", "src/psyclone/tests...
[ "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_first_type_match", "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_check_args", "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_is_bound_full_extent", "src/psyclone/tests/psyir/frontend/fparser2_test.py::test_is_array_range_literal"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2ce9b8281511ffaa4110ee33e4a2b49216b1c9a0
2023-08-04 02:37:56
docker.io/swerebenchv2/privacy-scaling-explorations-zkevm-specs:481-2ce9b82
privacy-scaling-explorations__zkevm-specs-481
Function: ExecutionState.ErrorOutOfGasCREATE Location: src/zkevm_specs/evm_circuit/execution_state.py – added as a new member of the ExecutionState IntEnum. Inputs: None (enum constant, no parameters). Outputs: Represents the execution state for out‑of‑gas errors occurring during CREATE (and CREATE2) opcodes; used by t...
python
null
diff --git a/specs/error_state/ErrorGasUintOverflow.md b/specs/error_state/ErrorGasUintOverflow.md index d793ac5..9a1a36f 100644 --- a/specs/error_state/ErrorGasUintOverflow.md +++ b/specs/error_state/ErrorGasUintOverflow.md @@ -26,7 +26,7 @@ The `ErrGasUintOverflow` happens in but when the `ErrGasUintOverflow` happ...
Feat/#454 implement ErrorOutOfGasCreate error state closed #454 and #459 --- [EIP-3860](https://eips.ethereum.org/EIPS/eip-3860#rules) includes - limit the max size of init code to `49152` - add extra gas required for init code, `2 * len(ceil(init_code/32))` This PR includes 1. move `CREATE/2` oog from `er...
Implement `ErrorOutOfGasCREATE2` error state For `CREATE2` opcodes which may run out of gas. Scroll team implementation: https://github.com/scroll-tech/zkevm-circuits/pull/507
privacy-scaling-explorations/zkevm-specs
diff --git a/tests/evm/test_begin_tx.py b/tests/evm/test_begin_tx.py index 6352988..b88ec1c 100644 --- a/tests/evm/test_begin_tx.py +++ b/tests/evm/test_begin_tx.py @@ -186,7 +186,7 @@ TESTING_DATA = ( Transaction( caller_address=0xFE, callee_address=None, - gas=100000, # ...
[ "tests/evm/test_begin_tx.py::test_begin_tx[tx0-callee0-True]", "tests/evm/test_begin_tx.py::test_begin_tx[tx1-callee1-True]", "tests/evm/test_begin_tx.py::test_begin_tx[tx2-callee2-False]", "tests/evm/test_begin_tx.py::test_begin_tx[tx3-callee3-True]", "tests/evm/test_begin_tx.py::test_begin_tx[tx4-callee4-...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": true, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/scroll-tech/zkevm-circuits/pull/507" ...
9d7a102464ca4ce5e0aa8e27cd53866e8c4aa10d
2024-08-23 08:15:53
docker.io/swerebenchv2/getmoto-moto:8031-9d7a102
getmoto__moto-8031
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py index dd2e3c36e..b0141dfba 100644 --- a/moto/dynamodb/responses.py +++ b/moto/dynamodb/responses.py @@ -122,23 +122,24 @@ def validate_put_has_empty_keys( raise MockValidationException(msg.format(empty_key)) -def put_has_empty_attrs(f...
DynamoDB: update_item() now validates empty string sets Fixes #8022
DynamoDB should return a ValidationError if you try to put an item with an empty string set ## Summary I recently discovered a difference between moto and DynamoDB behavior - moto will accept an item with an empty String Set, while DynamoDB will return a ValidationError. Here's a quick TestCase to reproduce: ```pyt...
getmoto/moto
diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py index 64cca0b23..93385c708 100644 --- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py +++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py @@ -694,19 +694,15 @@ d...
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_put_item_empty_set" ]
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_table_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.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":...
3a44d3ec7593358778a2336a5ec2faf5afe49da9
2021-09-05 04:39:53
docker.io/swerebenchv2/networkx-networkx:5065-3a44d3e
networkx__networkx-5065
Method: _HeapElement.__lt__(self, other) Location: networkx.utils.mapped_queue._HeapElement Inputs: *self* – a _HeapElement instance; *other* – either another _HeapElement or a numeric priority. Comparison uses the element’s priority (float) and falls back to element value for tie‑breaks. Outputs: Returns *True* ...
python
custom-check-github
diff --git a/networkx/algorithms/community/modularity_max.py b/networkx/algorithms/community/modularity_max.py index 10c5d01ce..10d42e7f5 100644 --- a/networkx/algorithms/community/modularity_max.py +++ b/networkx/algorithms/community/modularity_max.py @@ -1,6 +1,6 @@ """Functions for detecting communities based on mo...
Allow greedy_modularity_communities to use floating point weights or resolution This builds on discussion in #4992 and #5000. - adds a test for that breaks with a KeyError caused by round-off error when resolution is 0.99 - updates MappedQueue to split priority from the element in the heap. Add appropriate tests ...
KeyError in greedy_modularity_communities() when dQ approaches zero <!-- If you have a general question about NetworkX, please use the discussions tab to create a new discussion --> <!--- Provide a general summary of the issue in the Title above --> ### Current Behavior <!--- Tell us what happens instead of the...
networkx/networkx
diff --git a/networkx/algorithms/community/tests/test_modularity_max.py b/networkx/algorithms/community/tests/test_modularity_max.py index 3bae85285..433ca7464 100644 --- a/networkx/algorithms/community/tests/test_modularity_max.py +++ b/networkx/algorithms/community/tests/test_modularity_max.py @@ -91,6 +91,23 @@ def ...
[ "networkx/algorithms/community/tests/test_modularity_max.py::test_modularity_communities[greedy_modularity_communities]", "networkx/algorithms/community/tests/test_modularity_max.py::test_modularity_communities[naive_greedy_modularity_communities]", "networkx/algorithms/community/tests/test_modularity_max.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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://alphafold.ebi.ac.uk/files/AF-P06213-F1-predict...
21df661e02279fa54ac6d92d20f086e961621594
2025-01-15 16:04:05
docker.io/swerebenchv2/narwhals-dev-narwhals:1814-21df661
narwhals-dev__narwhals-1814
Function: ShapeError(message: str) Location: narwhals.exceptions Inputs: *message* – a string describing the shape mismatch (e.g., "filter's length: 2 differs from that of the series: 3"). Outputs: An exception instance that can be raised to signal a length‑mismatch error in DataFrame operations such as ``filter`` (and...
python
MIT
diff --git a/narwhals/_arrow/dataframe.py b/narwhals/_arrow/dataframe.py index 96a8ef71..e44ba29a 100644 --- a/narwhals/_arrow/dataframe.py +++ b/narwhals/_arrow/dataframe.py @@ -312,7 +312,11 @@ class ArrowDataFrame(CompliantDataFrame, CompliantLazyFrame): col_name = col_value.name column =...
fix: raise on shape mismatch in filter ## What type of PR is this? (check all applicable) - [ ] 💾 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] 🔧 Optimization - [ ] 📝 Documentation - [ ] ✅ Test - [ ] 🐳 Other ## Related issues - Closes #1786 ## Checklist - [x] Code follows style guide (ruff) ...
qst - why does `filter(nw.col('temp').max() > 60)` sometimes raise and sometimes not? from discord: ```python import pyarrow as pa import narwhals as nw t = pa.Table.from_pydict({ "date": ["2025-01-01", "2025-02-01", "2025-03-01", "2025-04-01"], "temperature": [50, 60, 70, 80], }) nw_f = nw.from_native(...
narwhals-dev/narwhals
diff --git a/tests/frame/filter_test.py b/tests/frame/filter_test.py index 759d175c..922af0e6 100644 --- a/tests/frame/filter_test.py +++ b/tests/frame/filter_test.py @@ -3,8 +3,10 @@ from __future__ import annotations from contextlib import nullcontext as does_not_raise import pytest +from polars.exceptions import...
[ "tests/frame/filter_test.py::test_filter_raise_on_shape_mismatch[pyarrow]", "tests/frame/filter_test.py::test_filter_raise_on_shape_mismatch[pandas]", "tests/frame/filter_test.py::test_filter_raise_on_agg_predicate[pandas[pyarrow]]", "tests/frame/filter_test.py::test_filter_raise_on_agg_predicate[pandas]", ...
[ "tests/frame/filter_test.py::test_filter_raise_on_shape_mismatch[polars[eager]]", "tests/frame/filter_test.py::test_filter[pandas]", "tests/frame/filter_test.py::test_filter_with_boolean_list[polars[lazy]]", "tests/frame/filter_test.py::test_filter[pyarrow]", "tests/frame/filter_test.py::test_filter[pandas[...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
cebd49096013bdbe2b6e062f350db4d4cb7ea3e2
2020-12-29 05:26:50
docker.io/swerebenchv2/hypothesisworks-hypothesis:2723-cebd490
hypothesisworks__hypothesis-2723
Method: _valid_syntax_repr(strategy) Location: hypothesis.extra.ghostwriter._valid_syntax_repr Inputs: - **strategy** – any Hypothesis search strategy object (e.g., `st.text()`, `st.builds(Foo)`, or a lazy `LazyStrategy`). Outputs: - **Tuple[Set[Tuple[str, str]], str]** – a pair where the first element is a set of...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..f7e28cd09 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,5 @@ +RELEASE_TYPE: minor + +This release upgrades the import logic for :doc:`ghostwritten tests <ghostwriter>`, +handling many cases wh...
Improve results from `hypothesis write hypothesis` This patch fixes #2703, along with some smaller isssues I noticed while working on [a draft paper about the ghostwriter](https://zhd.dev/phd/ghostwriter.html). The main point is to improve the importing logic: if we ghostwrite tests for functions in `foo.__all__`, w...
Ghostwriter: try to import required parts for custom strategies As noted in @rsokl's [`ghosty` demo project](https://github.com/rsokl/ghosty), ghostwritten tests sometimes fail with a `NameError`, ultimately due to a missing import `Foo` in `builds(Foo)`, or `f` in methods like `.filter(f)`, `.map(f)`, or `.flatmap(f)`...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/ghostwriter/recorded/hypothesis_module_magic.txt b/hypothesis-python/tests/ghostwriter/recorded/hypothesis_module_magic.txt new file mode 100644 index 000000000..043a0d844 --- /dev/null +++ b/hypothesis-python/tests/ghostwriter/recorded/hypothesis_module_magic.txt @@ -0,0 +1,100 @@ ...
[ "hypothesis-python/tests/ghostwriter/test_ghostwriter.py::test_strategies_with_invalid_syntax_repr_as_nothing", "hypothesis-python/tests/ghostwriter/test_ghostwriter.py::test_flattens_one_of_repr", "hypothesis-python/tests/ghostwriter/test_ghostwriter.py::test_get_imports_for_strategy[strategy0-imports0]", "h...
[ "hypothesis-python/tests/ghostwriter/test_expected_output.py::test_ghostwriter_example_outputs[fuzz_sorted]", "hypothesis-python/tests/ghostwriter/test_expected_output.py::test_ghostwriter_example_outputs[fuzz_classmethod]", "hypothesis-python/tests/ghostwriter/test_expected_output.py::test_ghostwriter_example_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [ "https://github.com/rsokl/ghosty" ], "intent_comp...
1966d78e0cc88a1023eb7207a044ace8816b7ab4
2023-07-25 16:36:07
docker.io/swerebenchv2/fsspec-gcsfs:571-1966d78
fsspec__gcsfs-571
Method: HttpError.__init__(self, error_response=None) Location: gcsfs/retry.py Inputs: *error_response* – optional dict with keys “code” (int) and “message” (str). If provided, the exception stores ``self.code`` and ``self.message`` and also saves the original dict in ``self._error_response`` for later pickling. ...
python
BSD-3-Clause
diff --git a/gcsfs/retry.py b/gcsfs/retry.py index 967ad69..9ae823b 100644 --- a/gcsfs/retry.py +++ b/gcsfs/retry.py @@ -15,6 +15,8 @@ class HttpError(Exception): """Holds the message and code from cloud errors.""" def __init__(self, error_response=None): + # Save error_response for potential pickle....
Add pickling support to `HttpError` class The `HttpError` class was updated to include support for pickling. A new private attribute `_error_response` was added for potential pickle use, and the `__reduce__` method was added to deconstruct the HttpError when pickled. This update allows HttpErrors to be serialized and d...
Strange behavior with `HTTPError` and multiprocessing Hello! We use `gcsfs` in a cloud workflow via Kubernetes VMs. Our workflow uses `concurrent.futures` (multiprocessing). We are aware of the `fork` issues and we make sure to use the `spawn` context when we create our process pool when using `gcsfs`. When a ...
fsspec/gcsfs
diff --git a/gcsfs/tests/test_retry.py b/gcsfs/tests/test_retry.py index 306c99a..79058f5 100644 --- a/gcsfs/tests/test_retry.py +++ b/gcsfs/tests/test_retry.py @@ -1,4 +1,7 @@ +import multiprocessing import os +import pickle +from concurrent.futures import ProcessPoolExecutor import pytest import requests @@ -39,...
[ "gcsfs/tests/test_retry.py::test_pickle_serialization", "gcsfs/tests/test_retry.py::test_multiprocessing_error_handling" ]
[ "gcsfs/tests/test_retry.py::test_tempfile", "gcsfs/tests/test_retry.py::test_retriable_exception", "gcsfs/tests/test_retry.py::test_validate_response" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/fsspec/gcsfs/blob/1966d78e0cc88a1023e...
b600dbcabf4b7406a61e82b9e607f754a9f12ff9
2024-12-05 05:46:34
docker.io/swerebenchv2/mpmath-mpmath:889-b600dbc
mpmath__mpmath-889
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/functions/bessel.py b/mpmath/functions/bessel.py index 4bda960..6b7dbb7 100644 --- a/mpmath/functions/bessel.py +++ b/mpmath/functions/bessel.py @@ -82,6 +82,8 @@ def h(n): def besseli(ctx, n, z, derivative=0, **kwargs): n = ctx.convert(n) z = ctx.convert(z) + if ctx.nint(n) and n < 0:...
Use parity formula for besseli See https://functions.wolfram.com/Bessel-TypeFunctions/BesselI/04/02/01/0002/ Closes #877
Negative integer order of the BesselI function mpmath version: 1.3.0 I am using mpmath to generate values for verification of my own complex Bessel function calculation routine. https://github.com/tk-yoshimura/ComplexBessel I have discovered that mpmath cannot compute for large negative integers in Bessel I func...
mpmath/mpmath
diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py index d971e24..c57ec95 100644 --- a/mpmath/tests/test_functions2.py +++ b/mpmath/tests/test_functions2.py @@ -91,6 +91,12 @@ def test_bessel(): mp.dps = n assert besseli(91.5,24.7708).ae("4.008306321386739636196561406535370...
[ "mpmath/tests/test_functions2.py::test_issue_877" ]
[ "mpmath/tests/test_functions2.py::test_bessel", "mpmath/tests/test_functions2.py::test_bessel_zeros", "mpmath/tests/test_functions2.py::test_hankel", "mpmath/tests/test_functions2.py::test_struve", "mpmath/tests/test_functions2.py::test_whittaker", "mpmath/tests/test_functions2.py::test_kelvin", "mpmath...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/tk-yoshimura/ComplexBessel", "h...
496c1cd5594831bb8dcc55d5e11de7167cbf3c6f
2024-01-29 18:33:33
docker.io/swerebenchv2/getmoto-moto:7270-496c1cd
getmoto__moto-7270
Function: create_secret(name, secret_string, secret_binary, description, tags, kms_key_id, client_request_token, replica_regions, force_overwrite) Location: moto/secretsmanager/models.py → SecretsManagerBackend.create_secret Inputs: - **name** (str) – unique secret name. - **secret_string** (Optional[str]) – plain‑t...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 04faa5101..7b96cdf80 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -7016,7 +7016,7 @@ ## secretsmanager <details> -<summary>78% implemented</summary> +<summary>86% implemented</summary> - [ ] batch_get_secret...
SecretsManager: Replica Secrets are now supported Fixes #7247 New Methods: SecretsManager: remove_regions_from_replication() SecretsManager: replicate_secret_to_regions() Miscellaneous: SecretsManager: create_secrets() now supports the parameters `AddReplicaRegions` and `ForceOverwriteReplicaSecret` SecretsM...
Fix: Moto Doesn't Support Boto3 ListSecrets Key Filters for: 'primary-region', 'owning-service' etc. Via this section in Moto: https://github.com/getmoto/moto/blob/master/moto/secretsmanager/models.py#L29 It's clear that Moto is not currently supporting the same criteria that Boto supports for Key Filter values. Th...
getmoto/moto
diff --git a/tests/test_secretsmanager/test_list_secrets.py b/tests/test_secretsmanager/test_list_secrets.py index 3efcfe53e..32dadb7dc 100644 --- a/tests/test_secretsmanager/test_list_secrets.py +++ b/tests/test_secretsmanager/test_list_secrets.py @@ -269,3 +269,13 @@ def test_with_filter_with_negation(): secre...
[ "tests/test_secretsmanager/test_list_secrets.py::test_filter_with_owning_service", "tests/test_secretsmanager/test_secrets_duplication.py::test_filter_with_primary_region", "tests/test_secretsmanager/test_secrets_duplication.py::test_create_secret_that_duplicates", "tests/test_secretsmanager/test_secrets_dupl...
[ "tests/test_secretsmanager/test_list_secrets.py::test_empty", "tests/test_secretsmanager/test_list_secrets.py::test_list_secrets", "tests/test_secretsmanager/test_list_secrets.py::test_with_name_filter", "tests/test_secretsmanager/test_list_secrets.py::test_with_tag_key_filter", "tests/test_secretsmanager/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": "B3", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://docs.aws.amazon.com/secretsmanager/latest/apiref...
0f88211b75c8a16b59999ce6d7344f32d16d7b06
2022-10-01 20:36:40
docker.io/swerebenchv2/jmcgeheeiv-pyfakefs:724-0f88211
jmcgeheeiv__pyfakefs-724
Method: os.scandir(self, path) Location: pyfakefs.fake_scandir.ScanDirIter.__init__(self, path, *args, **kwargs) Inputs: - **path** – a string‑like pathname **or** an integer file descriptor referring to an already‑opened directory (obtained via ``os.open(..., os.O_DIRECTORY)``). - If *path* is an int and the underl...
python
Apache-2.0
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index eba1499..3885cd6 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -50,7 +50,7 @@ jobs: os: [ubuntu-latest, macOS-latest, windows-latest] python-version: [3.7, 3.8, ...
Fix handling of O_TMPFILE flag in os.open - the check for the flag was incorrect - change PyPy version in CI to 3.7 - fixes #723
os.scandir does not work with filedescriptor **Describe the bug** I'm using a code that is reading directory content in such a way: ``` os.chdir('/test-volume') fd = os.open(''/test-volume'', flags=os.O_DIRECTORY) content = list(os.scandir(fd)) ``` This code should return content of `/test-volume` directory. I g...
jmcgeheeiv/pyfakefs
diff --git a/pyfakefs/tests/fake_os_test.py b/pyfakefs/tests/fake_os_test.py index 18269c7..6a34038 100644 --- a/pyfakefs/tests/fake_os_test.py +++ b/pyfakefs/tests/fake_os_test.py @@ -5045,6 +5045,22 @@ class FakeScandirTest(FakeOsModuleTestBase): self.assertEqual(1, scandir_stat_nlink) ...
[ "pyfakefs/tests/fake_os_test.py::FakeScandirTest::test_scandir_with_fd", "pyfakefs/tests/fake_os_test.py::FakeScandirRelTest::test_scandir_with_fd" ]
[ "pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_access400", "pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_access600", "pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_access700", "pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_access_non_existent_file", "pyfakefs/tests/fake_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
34ac151daa2a6be6910f7c97d368cb391a35eb7c
2024-09-22 16:24:31
docker.io/swerebenchv2/aio-libs-aiohttp:9237-34ac151
aio-libs__aiohttp-9237
Method: HttpRequestParser.feed_data(self, data: bytes) Location: aiohttp/http_parser.py → class HttpRequestParser (inherits HttpParser) Inputs: `data` – raw HTTP message bytes to be parsed; parser must have been instantiated with appropriate request‑line handling settings. Outputs: Returns ``None``. May raise ``http...
python
custom-check-github
diff --git a/CHANGES/9018.bugfix.rst b/CHANGES/9018.bugfix.rst new file mode 100644 index 000000000..2de6d1429 --- /dev/null +++ b/CHANGES/9018.bugfix.rst @@ -0,0 +1,1 @@ +Updated Python parser to reject messages after a close message, matching C parser behaviour -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/9063.b...
[PR #9063/3c1ca455 backport][3.10] Fix If-None-Match not using weak comparison **This is a backport of PR #9063 as merged into master (3c1ca45515b766ceb8bbbd8d710096c03106dd38).** Fixes #8462.
Weak Etag can not trigger negotiation caching ### Describe the bug ![image](https://github.com/aio-libs/aiohttp/assets/62173522/d1cb7997-1f18-490b-a440-6338e06406c1) If the above code is a weak Etag, the judgment logic in the any function will not be executed, and finally return False, resulting in the failure of the...
aio-libs/aiohttp
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py index 78abe528c..09f4f0746 100644 --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -17,6 +17,7 @@ from aiohttp.http_parser import ( NO_EXTENSIONS, DeflateBuffer, HttpPayloadParser, + HttpRequestParser, HttpReques...
[ "tests/test_http_parser.py::test_http_request_message_after_close[py-parser-pyloop]", "tests/test_web_sendfile_functional.py::test_static_file_if_none_match_weak[sendfile-pyloop-]", "tests/test_web_sendfile_functional.py::test_static_file_if_none_match_weak[sendfile-pyloop-Fri,", "tests/test_web_sendfile_func...
[ "tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]", "tests/test_http_parser.py::test_reject_obsolete_line_folding[py-parser-pyloop]", "tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]", "tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-\"]", "tests/test_http_pa...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.85, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
89ebc88def4d8daba8571e6873c89e89578be696
2025-05-21 02:59:08
docker.io/swerebenchv2/tatuylonen-wiktextract:1215-89ebc88
tatuylonen__wiktextract-1215
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/wiktextract/extractor/de/inflection.py b/src/wiktextract/extractor/de/inflection.py index 0074dd82..651bba7c 100644 --- a/src/wiktextract/extractor/de/inflection.py +++ b/src/wiktextract/extractor/de/inflection.py @@ -42,6 +42,8 @@ def extract_inf_table_template( or t_node.template_name == "Ka...
[de] extract pronoun forms table used by 5 pages, fix #1214
Problems with some German pronoun forms So far, we have detected only one case: the pronoun “sein” in its various forms is incorrectly formed. However, in Wiktionary it does appear correctly conjugated as a pronoun. I have attached some evidence for this below. ![Image](https://github.com/user-attachments/assets/db892...
tatuylonen/wiktextract
diff --git a/tests/test_de_forms.py b/tests/test_de_forms.py index 5c03b53b..84005153 100644 --- a/tests/test_de_forms.py +++ b/tests/test_de_forms.py @@ -429,3 +429,114 @@ class TestDeForms(TestCase): }, ], ) + + def test_pron_table(self): + self.wxr.wtp.add_page( + ...
[ "tests/test_de_forms.py::TestDeForms::test_pron_table" ]
[ "tests/test_de_forms.py::TestDeForms::test_adj_flexion_page", "tests/test_de_forms.py::TestDeForms::test_form_section_italic_tag", "tests/test_de_forms.py::TestDeForms::test_noun_table", "tests/test_de_forms.py::TestDeForms::test_transcription_section", "tests/test_de_forms.py::TestDeForms::test_verb_table"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
ab15af1fe6f9acf3315106becf1e41cc75fa5e49
2016-09-30 06:53:22
docker.io/swerebenchv2/axelrod-python-axelrod:733-ab15af1
axelrod-python__axelrod-733
No new interfaces are introduced.
python
custom-check-github
diff --git a/appveyor.yml b/appveyor.yml index 738812fc..52b4c535 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,3 +7,4 @@ build: off test_script: - "%PYTHON%\\python.exe -m unittest discover" - "%PYTHON%\\python.exe doctests.py" + - "%PYTHON%\\python.exe setup.py install" diff --git a/axelrod/__init__.py b...
Add version number to library Closes #731. We cannot import __version__ from __init__.py in setup.py. This would load all of axelrod which at that point does not have any dependencies installed. The approach here is suggested in the later answers here: http://stackoverflow.com/questions/458550/standard-way-to-emb...
Add version number to library So that we can run `axelrod.__version__` or something like that. This should be trivial, nice to not duplicate what is in `setup.py` obviously.
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_version.py b/axelrod/tests/unit/test_version.py new file mode 100644 index 00000000..ebaa766d --- /dev/null +++ b/axelrod/tests/unit/test_version.py @@ -0,0 +1,9 @@ +""" +Tests the version number +""" +from axelrod import __version__ +import unittest + +class TestVersion(unittest.Te...
[ "axelrod/tests/unit/test_version.py::TestVersion::test_version" ]
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
222df9e954e86832567257e85a26bc8edce1c752
2021-12-16 22:26:21
docker.io/swerebenchv2/xknx-xknx:822-222df9e
xknx__xknx-822
Method: Tunnel.send_telegram(self, telegram: Telegram) -> bool Location: xknx/io/tunnel.py Inputs: - **telegram** (Telegram): the telegram to be transmitted via the KNX/IP tunnel; its payload is encoded into a CEMI L_DATA frame and the direction is set to OUTGOING. Outputs: - **bool** – `True` if the tunnelling reque...
python
MIT
diff --git a/changelog.md b/changelog.md index 2c7802de..575b7045 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased changes + +### Internals + +- Tunnel: Implement flow control according to KNX spec recommendations: wait for L_DATA.con frame before sending next L_DATA.req with ...
Await L_DATA_CON confirmation frame before sending new L_DATA_REQ <!-- 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 ...
Tunneling: L_Data.con Frames are not awaited properly before sending next L_Data.req I have noticed that, for tunnelling connections, every sent frame is processed twice. Once as OUTGOING and once as INCOMING frame. When we send a TunnelingRequest the frame is sent as L_Data.req. Transmission shall be confirmed in L_...
XKNX/xknx
diff --git a/test/io_tests/tunnel_test.py b/test/io_tests/tunnel_test.py index d958169b..bce28aeb 100644 --- a/test/io_tests/tunnel_test.py +++ b/test/io_tests/tunnel_test.py @@ -1,14 +1,20 @@ """Unit test for KNX/IP Tunnelling Request/Response.""" +import asyncio from unittest.mock import Mock, patch +import pytes...
[ "test/io_tests/tunnel_test.py::TestTunnel::test_tunnel_wait_for_l2_confirmation" ]
[ "test/io_tests/tunnel_test.py::TestTunnel::test_tunnel_request_received", "test/io_tests/tunnel_test.py::TestTunnel::test_tunnel_request_received_cemi_too_small", "test/io_tests/tunnel_test.py::TestTunnel::test_tunnel_request_received_apci_unsupported" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2f1d25a96e100380e87aebcf5f2ea7b678493ebd
2024-12-12 11:50:53
docker.io/swerebenchv2/pymc-devs-pytensor:1119-2f1d25a
pymc-devs__pytensor-1119
Method: RewriteDatabase.register(self, name: str, rewriter: GraphRewriter, *tags: str, use_db_name_as_tag: bool = True, overwrite_existing: bool = False) Location: pytensor.graph.rewriting.db.RewriteDatabase Inputs: - **name** – tag under which the rewriter will be stored (must be a unique string unless `overwrite_exis...
python
custom-check-github
diff --git a/pytensor/graph/rewriting/db.py b/pytensor/graph/rewriting/db.py index f6cfac3a7..fb8162245 100644 --- a/pytensor/graph/rewriting/db.py +++ b/pytensor/graph/rewriting/db.py @@ -35,6 +35,7 @@ class RewriteDatabase: rewriter: Union["RewriteDatabase", RewritesType], *tags: str, use_d...
Add overwrite_existing flag <!-- !! 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 your changes in d...
Allow overwriting registered rewrite ### Description PyTensor raises if you try to register the same rewrite twice. This is annoying when developing rewrites in an interactive environment, forcing constant restart of the interpreter. Would be nice to add an `overwrite_existing` flag to allow replacing the pre-existing...
pymc-devs/pytensor
diff --git a/tests/graph/rewriting/test_db.py b/tests/graph/rewriting/test_db.py index ec790dbfe..5d0c98a6b 100644 --- a/tests/graph/rewriting/test_db.py +++ b/tests/graph/rewriting/test_db.py @@ -1,5 +1,6 @@ import pytest +from pytensor.graph.fg import FunctionGraph from pytensor.graph.rewriting.basic import Graph...
[ "tests/graph/rewriting/test_db.py::TestDB::test_overwrite_existing", "tests/tensor/rewriting/test_math.py::test_pow_1_rewrite[scalar]", "tests/tensor/rewriting/test_math.py::test_pow_1_rewrite[tensor]" ]
[ "tests/graph/rewriting/test_db.py::TestDB::test_register", "tests/graph/rewriting/test_db.py::TestDB::test_EquilibriumDB", "tests/graph/rewriting/test_db.py::TestDB::test_SequenceDB", "tests/graph/rewriting/test_db.py::TestDB::test_LocalGroupDB", "tests/graph/rewriting/test_db.py::TestDB::test_ProxyDB", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
ccfdc334f97cc871804125453a25c3d42a874b05
2019-11-05 04:08:14
docker.io/swerebenchv2/facebookresearch-hydra:269-ccfdc33
facebookresearch__hydra-269
No new interfaces are introduced.
python
MIT
diff --git a/hydra/_internal/config_loader.py b/hydra/_internal/config_loader.py index a8ce163f92..e3448f289a 100644 --- a/hydra/_internal/config_loader.py +++ b/hydra/_internal/config_loader.py @@ -187,9 +187,6 @@ class ConfigLoader: idx = key_to_idx[key] primary[idx] = d ...
fixed out of order composition in some cases When defaults block contains both config groups and non-config groups defaults, the composition order was wrong. This PR fixes it. closes #261
[Bug] merging if individual files (not in group) happens in wrong order something like: ``` defaults: - group: opt1 - file ``` caused the file to be merged in before the group.
facebookresearch/hydra
diff --git a/hydra/test_utils/configs/mixed_compose.yaml b/hydra/test_utils/configs/mixed_compose.yaml new file mode 100644 index 0000000000..25380aa17f --- /dev/null +++ b/hydra/test_utils/configs/mixed_compose.yaml @@ -0,0 +1,4 @@ +defaults: + - some_config + - group1: file1 + - config \ No newline at end of file ...
[ "tests/test_conf_loader.py::test_mixed_composition_order" ]
[ "tests/test_conf_loader.py::TestConfigLoader::test_load_configuration[hydra/test_utils/configs]", "tests/test_conf_loader.py::TestConfigLoader::test_load_configuration[pkg://hydra.test_utils.configs]", "tests/test_conf_loader.py::TestConfigLoader::test_load_with_missing_default[hydra/test_utils/configs]", "te...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": [...
fd650c35b00e986ef52c3b2058fe7c3b7804d3d1
2023-05-12 14:02:06
docker.io/swerebenchv2/aeye-lab-pymovements:408-fd650c3
aeye-lab__pymovements-408
Method: idt(positions, minimum_duration: int = 100, dispersion_threshold: float = 1.0, include_nan: bool = False, name: str = 'fixation') → EventDataFrame Location: src/pymovements/events/detection/idt.py Inputs: - **positions**: sequence‑like gaze positions (e.g., ndarray, list of (x, y) tuples) sampled at regular tim...
python
MIT
diff --git a/docs/source/tutorials/detecting-events.ipynb b/docs/source/tutorials/detecting-events.ipynb index 5c727f1..f092337 100644 --- a/docs/source/tutorials/detecting-events.ipynb +++ b/docs/source/tutorials/detecting-events.ipynb @@ -154,13 +154,23 @@ "To be able to differentiate between the detected events...
feat(events): Add support for custom event names ## Description This makes it possible to specify custom event names for your detected events like this: ```python dataset.detect_events('idt', name='fixation.idt') dataset.detect_events('ivt', name='fixation.ivt') ``` fixes #321 ## Implemented changes -...
Add name argument to event detection functions ## Description of the problem Currently all event detection functions simply use `fixation` or `saccade` as the name of an event. But imagine we want to run both `idt()` and `ivt()` and compare the results. It's not obvious how to do that easily. ## Description of a ...
aeye-lab/pymovements
diff --git a/tests/events/detection/idt_test.py b/tests/events/detection/idt_test.py index 1c63d78..b3e9901 100644 --- a/tests/events/detection/idt_test.py +++ b/tests/events/detection/idt_test.py @@ -151,6 +151,20 @@ def test_idt_raises_error(kwargs, expected_error): ), id='constant_position_...
[ "tests/events/detection/idt_test.py::test_idt_detects_fixations[constant_position_single_fixation_custom_name]", "tests/events/detection/ivt_test.py::test_ivt_detects_fixations[constant_position_single_fixation_custom_name]", "tests/events/detection/microsaccades_test.py::test_microsaccades_detects_saccades[two...
[ "tests/events/detection/idt_test.py::test_idt_raises_error[positions_none_raises_value_error]", "tests/events/detection/idt_test.py::test_idt_raises_error[dispersion_threshold_none_raises_type_error]", "tests/events/detection/idt_test.py::test_idt_raises_error[duration_threshold_none_raises_type_error]", "tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
746cad8dd88ae0ca38bdc45008759b26d2128bac
2024-08-21 22:05:25
docker.io/swerebenchv2/getmoto-moto:8020-746cad8
getmoto__moto-8020
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/sagemaker/models.py b/moto/sagemaker/models.py index 57a09c537..c354010d3 100644 --- a/moto/sagemaker/models.py +++ b/moto/sagemaker/models.py @@ -11,6 +11,7 @@ from dateutil.tz import tzutc from moto.core.base_backend import BackendDict, BaseBackend from moto.core.common_models import BaseModel, ...
SageMaker: search() now supports the CONTAINS filter Fixes #8010
SageMaker Search method for Model Groups not working with `Contains` filter # Environment Information Python Version: 3.8.12 - boto3 == 1.24.4 - pytest == 8.3.2 - moto == 5.0.13 # Documentation Reference According to the [latest moto documentation](https://docs.getmoto.org/en/latest/docs/services/sagemaker....
getmoto/moto
diff --git a/tests/test_sagemaker/test_sagemaker_search.py b/tests/test_sagemaker/test_sagemaker_search.py index 6a4fef741..615227a20 100644 --- a/tests/test_sagemaker/test_sagemaker_search.py +++ b/tests/test_sagemaker/test_sagemaker_search.py @@ -100,6 +100,61 @@ def test_search_trial_component_with_experiment_name(s...
[ "tests/test_sagemaker/test_sagemaker_search.py::test_search_experiments_with_filter", "tests/test_sagemaker/test_sagemaker_search.py::test_search_model_package_groups_with_filter" ]
[ "tests/test_sagemaker/test_sagemaker_search.py::test_search", "tests/test_sagemaker/test_sagemaker_search.py::test_search_trial_component_with_experiment_name" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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.getmoto.org/en/latest/docs/services/sagem...
604052a2bffcb804a41423b1a354d8f75b983647
2025-04-07 12:05:16
docker.io/swerebenchv2/tatuylonen-wiktextract:1107-604052a
tatuylonen__wiktextract-1107
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/wiktextract/extractor/en/inflection.py b/src/wiktextract/extractor/en/inflection.py index 472495d9..14a04eac 100644 --- a/src/wiktextract/extractor/en/inflection.py +++ b/src/wiktextract/extractor/en/inflection.py @@ -1691,6 +1691,7 @@ def parse_simple_table( for k, v in repls.item...
[en] Add functionality to incomplete `form_transformation` data... Fixes #1104 Apparently, three years ago I started on a project that would add regex strings into lang_specific entries for each language that would allow them to make substitutions and add tags, similarly to how `form_replacements` in lang_specific w...
ancient greek articles treated as separate forms Ancient greek forms with comma-separated articles (e.g. [ἰχθυοκένταυρος](https://en.wiktionary.org/wiki/%E1%BC%B0%CF%87%CE%B8%CF%85%CE%BF%CE%BA%CE%AD%CE%BD%CF%84%CE%B1%CF%85%CF%81%CE%BF%CF%82#Ancient%20Greek)), result in the first article being treated as a separate form...
tatuylonen/wiktextract
diff --git a/tests/test_en_inflection_en.py b/tests/test_en_inflection_en.py index b490acf6..4fb3d689 100644 --- a/tests/test_en_inflection_en.py +++ b/tests/test_en_inflection_en.py @@ -865,7 +865,7 @@ class InflTests(unittest.TestCase): { "form": "affect", "s...
[ "tests/test_en_inflection_en.py::InflTests::test_English_verb2", "tests/test_en_inflection_en.py::InflTests::test_English_verb3" ]
[ "tests/test_en_inflection_en.py::InflTests::test_English_verb1", "tests/test_en_inflection_en.py::InflTests::test_English_verb4" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://en.wiktionary.org/wiki/%E1%BC%B0%CF%87%CF%84%C...
51622eeccae7c18c759a295390e3744b2206d1e7
2020-09-13 07:13:21
docker.io/swerebenchv2/hypothesisworks-hypothesis:2619-51622ee
hypothesisworks__hypothesis-2619
Function: from_dtype(dtype: np.dtype, *, alphabet: Optional[st.SearchStrategy[str]] = None, min_size: int = 0, max_size: Optional[int] = None, min_value: Union[int, float, None] = None, max_value: Union[int, float, None] = None, allow_nan: Optional[bool] = None, allow_infinity: Optional[bool] = None, exclude_min: Optio...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..edf221b4f --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,11 @@ +RELEASE_TYPE: minor + +This release upgrades the :func:`~hypothesis.extra.numpy.from_dtype` strategy +to pass optional ``**kwargs...
Customise `nps.from_dtype()` with keyword argument passthrough When this can also be hooked up to `arrays(..., elements=kwargs)`, it's almost surprising that it took us so long to think of - it's reasonably easy to implement, conceptually obvious, and very useful to generate arrays of all-finite or bounded elements wit...
Pass `**kwargs` through `npst.from_dtype()` to the inferred strategy Consider the following pattern: ```python arrays(floating_dtypes(), shape, elements=floats(-10, 10, width=...)) ``` If `width=None`, when the generated dtype is float32 we will trigger the warning for inexact representation of element values ...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/numpy/test_argument_validation.py b/hypothesis-python/tests/numpy/test_argument_validation.py index dd1eadcfe..2440a13e5 100644 --- a/hypothesis-python/tests/numpy/test_argument_validation.py +++ b/hypothesis-python/tests/numpy/test_argument_validation.py @@ -65,6 +65,12 @@ def e(a,...
[ "hypothesis-python/tests/numpy/test_argument_validation.py::test_raise_invalid_argument[array_dtypes(min_size=2,", "hypothesis-python/tests/numpy/test_argument_validation.py::test_raise_invalid_argument[array_dtypes(min_size=-1)]", "hypothesis-python/tests/numpy/test_argument_validation.py::test_raise_invalid_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": [], "intent_completeness": "complete", "pr_categories":...
74416ac0403189511c4521479a3d1bdb9e3d7d5d
2024-04-11 10:39:24
docker.io/swerebenchv2/myremylar-pygame-gui:570-74416ac
myremylar__pygame_gui-570
Function: UIDropDownMenu.__init__(options_list: Union[List[str], List[Tuple[str, str]]], starting_option: Union[str, Tuple[str, str]], relative_rect: pygame.Rect, manager: Optional[IUIManagerInterface]=None, container: Optional[IContainerLikeInterface]=None, *, element_id: Optional[Union[str, List[str]]]=None, anchors:...
python
MIT
diff --git a/docs/source/events.rst b/docs/source/events.rst index 6fe8b0b..0d04c95 100644 --- a/docs/source/events.rst +++ b/docs/source/events.rst @@ -190,6 +190,7 @@ Fired when a user selects an option in a drop down menu. - **'type'** : pygame_gui.UI_DROP_DOWN_MENU_CHANGED, - **'text'** : The text of the sele...
Add optional ids to dropdown menu items fixes #474
A question on UIDropDownMenu/separating entry strings from entry IDs I'm coming with issue/question heavily inspired by [this SO question I made a while ago for another lib](https://stackoverflow.com/questions/74288080/pysimplegui-listboxes-and-double-key-problem) but for which I don't see as straightforward solution a...
MyreMylar/pygame_gui
diff --git a/tests/test_elements/test_ui_drop_down_menu.py b/tests/test_elements/test_ui_drop_down_menu.py index c21d25b..3c7aa4d 100644 --- a/tests/test_elements/test_ui_drop_down_menu.py +++ b/tests/test_elements/test_ui_drop_down_menu.py @@ -55,7 +55,7 @@ class TestUIDropDownMenu: menu.add_options(['spam'...
[ "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_addition", "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_removal", "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_select_option_from_drop_down", "tests/test_elements/test_ui_drop_down_...
[ "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_creation", "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_focus", "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMenu::test_kill", "tests/test_elements/test_ui_drop_down_menu.py::TestUIDropDownMen...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [ "https://stackoverflow.com/questions/74288080/pysimplegui...
0c869c2158090b6e2eb5703ec030cf7c53e02077
2024-08-09 09:20:46
docker.io/swerebenchv2/getmoto-moto:7954-0c869c2
getmoto__moto-7954
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/ec2/exceptions.py b/moto/ec2/exceptions.py index 06e923974..290842b5a 100644 --- a/moto/ec2/exceptions.py +++ b/moto/ec2/exceptions.py @@ -170,7 +170,7 @@ class InvalidNetworkInterfaceIdError(EC2ClientError): def __init__(self, eni_id: str): super().__init__( "InvalidNetwork...
EC2: Terminating an instance now also terminates any NIC's Fixes #7896 The `DeleteOnTermination` attribute is now also returned properly - before it would always come back as False, regardless of what was configured.
EC2 instance with predefined IP and SubnetId: network interface stays around after instance termination Hello, and many thanks for Moto! I ran Moto against some use cases and found a few discrepancies between AWS and Moto. This is my first issue. I hope to have found a real bug, and not to have made a mistake. Wh...
getmoto/moto
diff --git a/tests/test_ec2/test_elastic_network_interfaces.py b/tests/test_ec2/test_elastic_network_interfaces.py index 2bd53e327..cd68efca3 100644 --- a/tests/test_ec2/test_elastic_network_interfaces.py +++ b/tests/test_ec2/test_elastic_network_interfaces.py @@ -8,7 +8,7 @@ from botocore.exceptions import ClientError...
[ "tests/test_ec2/test_elastic_network_interfaces.py::test_create_instance__termination_deletes_eni[DeleteOnTermination]", "tests/test_sagemaker/test_sagemaker_model_package_groups.py::test_search_model_package_groups" ]
[ "tests/test_ec2/test_elastic_network_interfaces.py::test_elastic_network_interfaces", "tests/test_ec2/test_elastic_network_interfaces.py::test_elastic_network_interfaces_subnet_validation", "tests/test_ec2/test_elastic_network_interfaces.py::test_elastic_network_interfaces_with_private_ip", "tests/test_ec2/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.82, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
931fd2c58aaebdc325e1fd2c9ceacecee80f72e7
2021-11-16 14:09:49
docker.io/swerebenchv2/virtuslab-git-machete:348-931fd2c
virtuslab__git-machete-348
No new interfaces are introduced.
python
MIT
diff --git a/git_machete/client.py b/git_machete/client.py index 556fa3d..d1d9146 100644 --- a/git_machete/client.py +++ b/git_machete/client.py @@ -1631,6 +1631,7 @@ class MacheteClient: *, branch: LocalBranchShortName, is_called_from_traverse: bool, + is_called_from_c...
Issue #335: Check if base branch for PR exists on remote closes #335
`github create-pr`: check if base branch for PR exists in remote Attempt to create a pull request with base branch being already deleted from remote ends up with `Unprocessable Entity` error. (example in #332). Proposed solution: Perform `git fetch <remote>` at the beginning of `create-pr`. if base branch is not pr...
VirtusLab/git-machete
diff --git a/git_machete/tests/functional/test_machete.py b/git_machete/tests/functional/test_machete.py index 36165d7..55749e7 100644 --- a/git_machete/tests/functional/test_machete.py +++ b/git_machete/tests/functional/test_machete.py @@ -1927,6 +1927,8 @@ class MacheteTester(unittest.TestCase): git_api_state_fo...
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_github_create_pr_missing_base_branch_on_remote" ]
[ "git_machete/tests/functional/test_machete.py::MacheteTester::test_add", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_few_possible_downstream_branches_and_yes_option", "git_machete/tests/functional/test_machete.py::MacheteTester::test_advance_with_no_downstream_branches", "g...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0bf11821383308bd259aae93ea4cb081b479ef32
2025-03-05 15:59:36
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3989-0bf1182
aws-cloudformation__cfn-lint-3989
Method: RestApiMixingDefinitions.validate(self, validator, keywords, instance, schema) Location: src/cfnlint/rules/resources/apigateway/RestApiMixingDefinitions.py Inputs: - **validator** (cfnlint.jsonschema.Validator): the template validator containing the parsed CloudFormation graph and context. - **keywords**...
python
MIT-0
diff --git a/src/cfnlint/rules/resources/apigateway/RestApiMixingDefinitions.py b/src/cfnlint/rules/resources/apigateway/RestApiMixingDefinitions.py new file mode 100644 index 000000000..86c5fa34f --- /dev/null +++ b/src/cfnlint/rules/resources/apigateway/RestApiMixingDefinitions.py @@ -0,0 +1,68 @@ +""" +Copyright Ama...
Add rule to validate mixing API body definitions *Issue #, if available:* fix #3919 *Description of changes:* - Add rule W3660 to validate mixing API body definitions By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
New rule for mixing/matching API Gateway resource types ### Is this feature request related to a new rule or cfn-lint capabilities? rules ### Describe the feature you'd like to request When using `AWS::ApiGateway::RestApi/Body` with `AWS::ApiGateway::Method`, `AWS::ApiGateway::Resource` and maybe more will result in...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py b/test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py new file mode 100644 index 000000000..8a96664bb --- /dev/null +++ b/test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py @@ -0,0 +1,169 @@ +""...
[ "test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py::test_validate[template0-path0-expected0]", "test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py::test_validate[template1-path1-expected1]", "test/unit/rules/resources/apigateway/test_rest_api_mixing_definition.py::test...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
70b2d8a8394613653c94ab9638cbf39d81d35099
2023-10-11 16:32:05
docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:286-70b2d8a
py-cov-action__python-coverage-comment-action-286
Method: coverage_comment.main.action(config, github_session, http_session, git) Location: coverage_comment/main.py → `action` (public entry‑point for the GitHub Action) Inputs: - **config** – a configuration object (e.g., result of `push_config(...)`) containing environment variables like `GITHUB_REF`, `GITHUB_PR...
python
MIT
diff --git a/coverage_comment/main.py b/coverage_comment/main.py index 39d4c84..60dfae1 100644 --- a/coverage_comment/main.py +++ b/coverage_comment/main.py @@ -112,6 +112,14 @@ def process_pr( ) -> int: log.info("Generating comment for PR") + if not config.GITHUB_PR_NUMBER and not config.GITHUB_BRANCH_NAME:...
Don't crash on pushing when pushing on something else than a branch Closes #285 . Need to add a test, but otherwise, yeah.
Running coverage action in tag push events produce misleading error message This [change](https://github.com/py-cov-action/python-coverage-comment-action/pull/248/files#diff-aa416c9a98a0fd16ca04ed4a3606bf634663109cd1562c05467181ad9b0a8a08R174) makes the coverage action produce a misleading error message about permissio...
py-cov-action/python-coverage-comment-action
diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 20811c8..a653d9d 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -400,6 +400,25 @@ def test_action__push__non_default_branch( assert output_file.read_text() == expected_output +def test_action...
[ "tests/integration/test_main.py::test_action__push__no_branch" ]
[ "tests/integration/test_main.py::test_action__invalid_event_name", "tests/integration/test_main.py::test_action__pull_request__store_comment", "tests/integration/test_main.py::test_action__pull_request__store_comment_not_targeting_default", "tests/integration/test_main.py::test_action__pull_request__post_comm...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/py-cov-action/python-coverage-comment...
3018f577cc1d5e7682fd091845df999b86007a6c
2021-03-04 02:32:57
docker.io/swerebenchv2/pallets-click:1803-3018f57
pallets__click-1803
Method: ProgressBar.update(self, step=1, pos=None) Location: src/click/_termui_impl.py → class ProgressBar Inputs: - step (int): number of items to advance the bar by (default 1). - pos (int | None): optional explicit position to set; if supplied overrides internal position. Outputs: None (updates internal progres...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index f2adc66..6d596b5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -176,6 +176,8 @@ Unreleased - Multiline marker is removed from short help text. :issue:`1597` - Restore progress bar behavior of echoing only the label if the file is not a TTY. :issue:`1138` +- Prog...
don't hide fast progress bars Progress bar output is shown even if execution time is less than 0.5 seconds. The intention of #487 seemed to be to hide output if the final time was short, but ended up hiding initial updates for longer bars. <!-- Link to relevant issues or previous PRs, one per line. Use "fixes" to ...
Progress bar does not display until after the first item is complete Take this example: ```python with click.progressbar(length=6, label="Doing something") as bar: for thing in [3, 2, 1]: time.sleep(thing) bar.update(thing) ``` This shows nothing until three seconds, at whic...
pallets/click
diff --git a/tests/test_termui.py b/tests/test_termui.py index a4ae76f..da586af 100644 --- a/tests/test_termui.py +++ b/tests/test_termui.py @@ -27,16 +27,14 @@ def _create_progress(length=10, length_known=True, **kwargs): def test_progressbar_strip_regression(runner, monkeypatch): - fake_clock = FakeClock() ...
[ "tests/test_termui.py::test_progressbar_strip_regression", "tests/test_termui.py::test_progressbar_update", "tests/test_termui.py::test_progressbar_item_show_func", "tests/test_termui.py::test_progressbar_update_with_item_show_func" ]
[ "tests/test_termui.py::test_progressbar_length_hint", "tests/test_termui.py::test_progressbar_hidden", "tests/test_termui.py::test_progressbar_time_per_iteration[avg0-0.0]", "tests/test_termui.py::test_progressbar_time_per_iteration[avg1-2.5]", "tests/test_termui.py::test_progressbar_eta[False-5]", "tests...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
08e9bb0a1c30fe6698bc5eb6e15a90bc1f29fc3a
2020-06-04 21:27:57
docker.io/swerebenchv2/scoutapp-scout-apm-python:526-08e9bb0
scoutapp__scout_apm_python-526
Method: Register.message(self) Location: src/scout_apm/core/commands.py → class Register Inputs: - `self`: instance of Register containing attributes `app` (str), `key` (str), `hostname` (str). Behavioral inputs derived from `self.key`: * `key_prefix` – first three characters of the key (`self.key[:3]`). * `key_...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f5e8a6..24d9239 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Pending Release + +### Fixed + +- Don't log the Scout key during startup. + ([Issue #297](https://github.com/scoutapp/scout_apm_python/issues/297)) + ## [2.14.2] 2020-05-22 ...
Don't log Scout key during startup Fixes #297.
Don't log scout key Currently we log the scout key from configuration and in the register method at startup. Security conscious companies don't want license keys in their log files. We should avoid logging the key, though perhaps a hash or a substring could be useful.
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_commands.py b/tests/unit/core/test_commands.py index c3e8f63..ad95c8c 100644 --- a/tests/unit/core/test_commands.py +++ b/tests/unit/core/test_commands.py @@ -2,6 +2,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import datetime as dt +impor...
[ "tests/unit/core/test_commands.py::test_register_message_good_key", "tests/unit/core/test_commands.py::test_register_message_bad_key", "tests/unit/core/test_config.py::test_log_config" ]
[ "tests/unit/core/test_commands.py::test_command_message[command0-message0]", "tests/unit/core/test_commands.py::test_command_message[command1-message1]", "tests/unit/core/test_commands.py::test_command_message[command2-message2]", "tests/unit/core/test_commands.py::test_command_message[command3-message3]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/scoutapp/scout_apm_python/issues/29...
3d11837fa6a5991b09691b55c6cb0f081ec1fa64
2022-07-01 15:57:51
docker.io/swerebenchv2/pytask-dev-pytask:289-3d11837
pytask-dev__pytask-289
Function: ExitCode Location: pytask (module level Enum) Inputs: No parameters when accessed; members represent integer exit codes (e.g., OK = 0) Outputs: Enum members used to compare CLI result exit codes (e.g., ExitCode.OK) Description: Enum defining standardized exit codes for the pytask CLI; the OK member indicates ...
python
custom-check-github
diff --git a/docs/source/changes.md b/docs/source/changes.md index b3f2b6a..38d719f 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -8,6 +8,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and ## 0.2.5 - 2022-xx-xx - {pull}`288` fixes pinning pybaum to v0.1.1 or a version t...
`pytask collect` displays shortened task names. #### Changes Closes #268.
ENH: Reduce amount of output for `pytask collect`. #### Is your feature request related to a problem? - `pytask collect` display the whole task id starting from the root directory although the short id is sufficient. Maybe even short since the module name is given, but the the id is also not unique. #### Describe...
pytask-dev/pytask
diff --git a/tests/test_collect_command.py b/tests/test_collect_command.py index 65a0bce..672fb23 100644 --- a/tests/test_collect_command.py +++ b/tests/test_collect_command.py @@ -8,6 +8,7 @@ import pytest from _pytask.collect_command import _find_common_ancestor_of_all_nodes from _pytask.collect_command import _pri...
[ "tests/test_collect_command.py::test_task_name_is_shortened" ]
[ "tests/test_collect_command.py::test_collect_task", "tests/test_collect_command.py::test_collect_parametrized_tasks", "tests/test_collect_command.py::test_collect_task_with_expressions", "tests/test_collect_command.py::test_collect_task_with_marker[pytask.ini]", "tests/test_collect_command.py::test_collect_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
eb6e150f92d4a050fc17e6a27877319447459534
2025-07-15 16:56:03
docker.io/swerebenchv2/sdv-dev-rdt:1020-eb6e150
sdv-dev__rdt-1020
Method: GaussianNormalizer.learned_distribution(self) Location: rdt.transformers.numerical – property of the **GaussianNormalizer** class Inputs: *self* – an instance that has been fitted; no other arguments Outputs: **dict** with keys   • `distribution` (str) – the name of the distribution finally used (original or ...
python
custom-check-github
diff --git a/rdt/transformers/numerical.py b/rdt/transformers/numerical.py index 8890489..8d23354 100644 --- a/rdt/transformers/numerical.py +++ b/rdt/transformers/numerical.py @@ -1,6 +1,7 @@ """Transformers for numerical data.""" import copy +import logging import warnings from importlib import import_module ...
Add a fallback distribution in GaussianNormalizer in case the given distribution fails CU-86b42udxb, Resolve #945.
Add a fallback distribution in `GaussianNormalizer` in case the given distribution fails ### Problem Description The [GaussianNormalizer RDT](https://docs.sdv.dev/rdt/transformers-glossary/numerical/gaussiannormalizer) estimates the shape of a marginal distribution using scipy, and then performs an inverse CDF transfor...
sdv-dev/RDT
diff --git a/tests/unit/transformers/test_numerical.py b/tests/unit/transformers/test_numerical.py index 505406f..96c4e57 100644 --- a/tests/unit/transformers/test_numerical.py +++ b/tests/unit/transformers/test_numerical.py @@ -1185,6 +1185,299 @@ class TestGaussianNormalizer: captured = capsys.readouterr() ...
[ "tests/unit/transformers/test_numerical.py::TestGaussianNormalizer::test_fallback_distribution_attribute", "tests/unit/transformers/test_numerical.py::TestGaussianNormalizer::test_normal_fit_no_fallback", "tests/unit/transformers/test_numerical.py::TestGaussianNormalizer::test_fallback_triggered_on_exception", ...
[ "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test___init__super_attrs", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit", "tests/unit/transformers/test_numerical.py::TestFloatFormatter::test__fit_enforce_min_max_values_false", "tests/unit/transformers/test_numerica...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.sdv.dev/rdt/transformers-glossary/numeric...
6cdd01733fdbdbea34cf1f42b73d0f754e34e0ab
2025-04-13 03:52:41
docker.io/swerebenchv2/pydap-pydap:481-6cdd017
pydap__pydap-481
Method: BaseType.__init__(self, name="nameless", data=None, dims=None, attributes=None, **kwargs) Location: src/pydap/model.py Inputs: - **name** (str, default "nameless"): identifier of the variable. - **data** (optional array‑like, default None): the payload of the variable. - **dims** (optional sequence of str,...
python
MIT
diff --git a/src/pydap/model.py b/src/pydap/model.py index f5764c5..f2ad384 100644 --- a/src/pydap/model.py +++ b/src/pydap/model.py @@ -50,9 +50,9 @@ arbitrary attributes:: >>> foo.units 'm/s' - >>> foo.dimensions - () - >>> foo.dimensions = ('time',) + >>> foo.dims + [] + >>> foo.dims = ...
update BaseType`s reference to dimensions in DAP2 <!-- Thank you very much for your hard work and contribution! --> The following Pull Request: - [x] Closes #480 - [x] Tests are updated
make dap2 and dap4 datasets consistent in the way they reference dimensions for BaseType In pydap, the dimensions of the container-like object like Grids, Groups, Dataset, etc are defined as follows: ```python pyds['Group'].dimensions >>> {'dim1': size, 'dim2': size, ..., } ``` Where `dim1`, `dim2`, ... are not fully ...
pydap/pydap
diff --git a/src/pydap/tests/datasets.py b/src/pydap/tests/datasets.py index 463be9c..77dded4 100644 --- a/src/pydap/tests/datasets.py +++ b/src/pydap/tests/datasets.py @@ -133,9 +133,7 @@ SimpleStructure.createVariable(name="/types.U", data=np.array("test unicode", st # test grid rain = DatasetType("test") rain["ra...
[ "src/pydap/tests/test_model.py::test_BaseType_no_data", "src/pydap/tests/test_model.py::test_BaseType_data_and_dimensions", "src/pydap/tests/test_model.py::test_BaseType_copy" ]
[ "src/pydap/tests/test_model.py::test_DapType_quote", "src/pydap/tests/test_model.py::test_DapType_attributes", "src/pydap/tests/test_model.py::test_DapType_id", "src/pydap/tests/test_model.py::test_DapType_repr", "src/pydap/tests/test_model.py::test_DapType_id_property", "src/pydap/tests/test_model.py::te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
d47a1e1c44617bb49cf91cc57ac3f7722a4d5c6f
2018-11-14 16:31:55
docker.io/swerebenchv2/kayak-pypika:185-d47a1e1
kayak__pypika-185
Method: Query.select(*terms) Location: pypika/queries.py – class method on Query (via QueryBuilder) Inputs: variable number of selection terms; each term may be a literal (int, float, etc.) or a field name (string). If any term is a non‑literal field and the query has no FROM clause (i.e., internal `_from` list is empt...
python
Apache-2.0
diff --git a/pypika/__init__.py b/pypika/__init__.py index 74cb897..f58677f 100644 --- a/pypika/__init__.py +++ b/pypika/__init__.py @@ -68,6 +68,7 @@ from .utils import ( CaseException, GroupingException, JoinException, + QueryException, RollupException, UnionException, ) diff --git a/pypi...
Fixed Query.select('field') with no from table. Fixes #140 Added a check when selecting from a field using a string argument for the field name when there are no tables currently being selected from in the query
Descriptive error when .from_() call is omitted I just spent some time figuring out what happened when I transcribed a slightly comples query from raw SQL to pypika (this is a great library, BTW!). The error I was getting was quite cryptic: ``` Traceback (most recent call last): File "<stdin>", line 1, in <modul...
kayak/pypika
diff --git a/pypika/tests/test_selects.py b/pypika/tests/test_selects.py index bd395ba..02b7bb9 100644 --- a/pypika/tests/test_selects.py +++ b/pypika/tests/test_selects.py @@ -11,6 +11,7 @@ from pypika import ( Order, PostgreSQLQuery, Query, + QueryException, RedshiftQuery, Table, Tabl...
[ "pypika/tests/test_selects.py::SelectTests::test_empty_query", "pypika/tests/test_selects.py::SelectTests::test_mssql_query_uses_double_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_mysql_query_uses_backtick_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_oracle_query_uses_doub...
[]
{ "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":...
7bf6ee1719e8b98d4aa9c7578ed016123ee888d9
2024-06-07 20:55:34
docker.io/swerebenchv2/aio-libs-aiohttp:8445-7bf6ee1
aio-libs__aiohttp-8445
Method: ClientSession.ws_connect(self, url: str, *, protocols: Tuple[str, ...] | None = None, timeout: ClientWSTimeout | None = None, **kwargs) Location: aiohttp.client.ClientSession (client.py) Inputs: - **url** – target URL for the WebSocket connection. - **protocols** – optional iterable of sub‑protocol stri...
python
custom-check-github
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f331f3a4b..16f38981d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -428,7 +428,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 - name: Sign the dists with Sigstore - uses: sigstore/gh-...
Fixes read_timeout on WS connection not respecting ws_connect's timeouts Added `read_timeout` property to `ResponseHandler` to allow override After WS(S) connection is established, adjust `conn.proto.read_timeout` to be the largest of the `read_timeout` and the `ws_connect`'s `timeout.ws_receive` with `None` treat...
Broken timeout system with ws_connect ### Describe the bug # Context We have very specific requirements with our HTTP connections: we expect extremely responsive API and reconnect rapidly if we don't receive responses because we consider it a potential failure. To facilitate that we use `ClientTimeout(connect=...
aio-libs/aiohttp
diff --git a/tests/test_client_ws.py b/tests/test_client_ws.py index 06cf2a120..9ee15ac71 100644 --- a/tests/test_client_ws.py +++ b/tests/test_client_ws.py @@ -10,6 +10,7 @@ import pytest import aiohttp from aiohttp import client, hdrs +from aiohttp.client_ws import ClientWSTimeout from aiohttp.http import WS_KEY...
[ "tests/test_client_ws.py::test_ws_connect_read_timeout_is_reset_to_inf[pyloop]", "tests/test_client_ws.py::test_ws_connect_read_timeout_reset_to_max[pyloop]" ]
[ "tests/test_client_ws.py::test_ws_connect[pyloop]", "tests/test_client_ws.py::test_ws_connect_read_timeout_stays_inf[pyloop]", "tests/test_client_ws.py::test_ws_connect_with_origin[pyloop]", "tests/test_client_ws.py::test_ws_connect_with_params[pyloop]", "tests/test_client_ws.py::test_ws_connect_custom_resp...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/aio-libs/aiohttp/assets/5355666/61c...
b4b64194fc944676b76373fc3ac1c89b00f25f4f
2023-12-27 16:54:18
docker.io/swerebenchv2/marketsquare-robotframework-robocop:1027-b4b6419
marketsquare__robotframework-robocop-1027
Method: Config.is_rule_enabled(self, rule) Location: robocop/config.py → class Config Inputs: `rule` – an instance of `robocop.rules.Rule`. The method checks the rule’s enabled flag, its version compatibility, severity threshold and, after the recent change, also whether the rule is marked as deprecated. Outputs:...
python
Apache-2.0
diff --git a/docs/conf.py b/docs/conf.py index 3aa3222..2d40fee 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -87,6 +87,7 @@ def get_checker_docs(): "robocop_version": robocop_version, "msg": rule.msg, "docs": rule.docs, + "deprecated": rule.deprecated...
Add mechanism for rule deprecation Closes #1025 Documentation visuals for deprecated rule could be improved but it can be done in the future updates - especially that we don't have any deprecated rule right now.
Do not remove rules, only deprecate them We had already removed some rules in the past (with some sort of deprecation period). In the future it will be better to 'move' rule to deprecation forever instead removing it. Our documentation will be more consistent (the rules will not 'dissapear' suddenly when switching betw...
MarketSquare/robotframework-robocop
diff --git a/tests/test_data/ext_rules/deprecated/deprecated_rules.py b/tests/test_data/ext_rules/deprecated/deprecated_rules.py new file mode 100644 index 0000000..a2297ca --- /dev/null +++ b/tests/test_data/ext_rules/deprecated/deprecated_rules.py @@ -0,0 +1,24 @@ +from robocop.checkers import VisitorChecker +from ro...
[ "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule", "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule_from_module", "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule_from_module_simple_import", "tests/utest/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":...
e904c5f1628afd31f553ddad1f8f808d4d254828
2020-01-02 12:02:34
docker.io/swerebenchv2/scoutapp-scout-apm-python:438-e904c5f
scoutapp__scout_apm_python-438
Function: CLIENT_METHODS Location: scout_apm.instruments.elasticsearch Inputs: None (module‑level constant) Outputs: List of ``ClientMethod`` namedtuple objects, each with fields: &nbsp;&nbsp;• ``name`` (str) – the Elasticsearch client method name to be instrumented. &nbsp;&nbsp;• ``takes_index_argument`` (bool) – ``...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index a175271..5f34fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ([PR #431](https://github.com/scoutapp/scout_apm_python/pull/431)). - Added tracking for missing PyMongo Collection methods ([PR #436](https://github.com/scoutapp/scout_apm_python/pull/4...
Add tracking for missing Elasticsearch client methods Fixes #435. Copying what #436 did for PyMongo.
Instrument non-index Elasticsearch client methods There are many methods on the `elasticsearch-py` client class that we aren't instrumenting, for example `ping()`, because they don't operate on an index. We should capture all these calls too - I'm sure many applications have such calls that would be good to show on ...
scoutapp/scout_apm_python
diff --git a/tests/integration/instruments/test_elasticsearch.py b/tests/integration/instruments/test_elasticsearch.py index 602f6cb..241a801 100644 --- a/tests/integration/instruments/test_elasticsearch.py +++ b/tests/integration/instruments/test_elasticsearch.py @@ -1,6 +1,7 @@ # coding=utf-8 from __future__ import...
[ "tests/integration/instruments/test_elasticsearch.py::test_all_client_methods_exist[bulk]", "tests/integration/instruments/test_elasticsearch.py::test_all_client_methods_exist[clear_scroll]", "tests/integration/instruments/test_elasticsearch.py::test_all_client_methods_exist[count]", "tests/integration/instru...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/elastic/elasticsearch-py/blob/maste...
6e5cd0e67213e77f6a1f9dd5262a3222c78702b6
2021-08-16 01:11:40
docker.io/swerebenchv2/pennylaneai-pennylane:1532-6e5cd0e
pennylaneai__pennylane-1532
Method: ControlledOperation.adjoint(self) Location: pennylane.transforms.control.ControlledOperation Inputs: *self* – the ControlledOperation instance whose controlled sub‑operations are to be adjointed. No additional arguments. Outputs: A new ControlledOperation instance whose ``subtape`` contains the adjoint of each ...
python
Apache-2.0
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 64e14a9bf..d80d1ad66 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -547,6 +547,11 @@ <h3>Bug fixes</h3> +* Fixes a bug in `qml.adjoint` and `qml.ctrl` + where the adjoint of operations outside of a `QNode` or a `QuantumTape` could + ...
Fix `qml.adjoint` with no queuing context **Context:** The logic for the `qml.adjoint` top-level function was created by assuming that a queuing context (e.g., a QNode, tape, etc.) is active. The logic includes stopping the recoding of that queuing context such that the operations passed to `qml.adjoint` can be reco...
[BUG] Error when applying `qml.adjoint` outside a tape context * *Expected behavior:* (What you expect to happen) The documentation for `qml.adjoint` includes the example ```python qml.adjoint(qml.RX)(0.123, wires=0) ``` I expect this to produce the gate that is the adjoint. * *Actual behavior:* (What actua...
PennyLaneAI/pennylane
diff --git a/tests/transforms/test_adjoint.py b/tests/transforms/test_adjoint.py index a111df0ba..9144fa289 100644 --- a/tests/transforms/test_adjoint.py +++ b/tests/transforms/test_adjoint.py @@ -87,6 +87,67 @@ def test_nested_adjoint_on_function(): ) +class TestOutsideOfQueuing: + """Test that operati...
[ "tests/transforms/test_adjoint.py::TestOutsideOfQueuing::test_single_op_non_param_adjoint[S-0]", "tests/transforms/test_adjoint.py::TestOutsideOfQueuing::test_single_op_non_param_adjoint[PauliZ-3]", "tests/transforms/test_adjoint.py::TestOutsideOfQueuing::test_single_op_non_param_adjoint[CNOT-wires2]", "tests...
[ "tests/transforms/test_adjoint.py::test_adjoint_on_function", "tests/transforms/test_adjoint.py::test_adjoint_directly_on_op", "tests/transforms/test_adjoint.py::test_nested_adjoint", "tests/transforms/test_adjoint.py::test_nested_adjoint_on_function", "tests/transforms/test_adjoint.py::TestTemplateIntegrat...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/PennyLaneAI/pennylane/pull/1532" ...
bdec8890372ed4af29075dee22e4dfc8a9f0807f
2025-03-20 19:08:04
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4045-bdec889
aws-cloudformation__cfn-lint-4045
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py b/src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py index 34616fe6d..8e69686b6 100644 --- a/src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py +++ b/src/cfnlint/rules/resources/stepfunctions/StateMachineD...
Change state machine schema based on query language *Issue #, if available:* fix #4044 *Description of changes:* - Change state machine schema based on query language By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
[Step Functions] Top-level QueryLanguage field not recognised ### CloudFormation Lint Version 1.32.0 ### What operating system are you using? Mac ### Describe the bug Hi, Related somewhat to #3907, the [top-level ](https://states-language.net/#toplevelfields) `QueryLanguage` field in State Machines appears as tho...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/stepfunctions/test_state_machine_definition.py b/test/unit/rules/resources/stepfunctions/test_state_machine_definition.py index 49f5dc412..c9eea19f3 100644 --- a/test/unit/rules/resources/stepfunctions/test_state_machine_definition.py +++ b/test/unit/rules/resources/stepfunctions/...
[ "test/unit/rules/resources/stepfunctions/test_state_machine_definition.py::test_validate[JSONAta" ]
[ "test/unit/rules/resources/stepfunctions/test_state_machine_definition.py::test_validate[Valid", "test/unit/rules/resources/stepfunctions/test_state_machine_definition.py::test_validate[Fan", "test/unit/rules/resources/stepfunctions/test_state_machine_definition.py::test_validate[Error", "test/unit/rules/reso...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://states-language.net/#toplevelfields", "h...
bdeb44bcf68e2ea38fc67426b0a9bedd0b30ab69
2024-08-21 10:53:46
docker.io/swerebenchv2/getmoto-moto:8015-bdeb44b
getmoto__moto-8015
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py index 7ff98b502..4880b0a4e 100644 --- a/moto/autoscaling/models.py +++ b/moto/autoscaling/models.py @@ -720,6 +720,13 @@ class FakeAutoScalingGroup(CloudFormationModel): return self.launch_config.security_groups # type: ignore[union-attr] ...
ECS: Tasks can now be created with unknown security groups Fixes #8011
EC2 subnet references str variable instead of self moto/ec2/models/elastic_network_interfaces.py Under the class NetworkInterface on line 135 and 137, the code references "subnet.vpc_id" but subnet is a str. Changing code to "self.subnet.vpc_id" fixes the issue. moto version "5.0.10.dev12"
getmoto/moto
diff --git a/tests/test_autoscaling/test_autoscaling_groups.py b/tests/test_autoscaling/test_autoscaling_groups.py index 680c959a7..70fa2504b 100644 --- a/tests/test_autoscaling/test_autoscaling_groups.py +++ b/tests/test_autoscaling/test_autoscaling_groups.py @@ -255,3 +255,45 @@ class TestAutoScalingGroup(TestCase): ...
[ "tests/test_autoscaling/test_autoscaling_groups.py::test_launch_template_with_tags", "tests/test_ecs/test_ecs_boto3.py::test_run_task_awsvpc_network__unknown_sec_group" ]
[ "tests/test_autoscaling/test_autoscaling_groups.py::TestAutoScalingGroup::test_autoscaling_group_delete", "tests/test_autoscaling/test_autoscaling_groups.py::TestAutoScalingGroup::test_create_autoscaling_group__additional_params", "tests/test_autoscaling/test_autoscaling_groups.py::TestAutoScalingGroup::test_cr...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.86, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
c76e29d47bf6e98b52f18858f6d91675f13eac74
2016-12-09 18:19:30
docker.io/swerebenchv2/backblaze-b2-command-line-tool:295-c76e29d
backblaze__b2_command_line_tool-295
Method: B2Api.create_bucket(self, name, bucket_type, bucket_info=None, lifecycle_rules=None) Location: b2/api.py Inputs: - **name** (str): Name of the bucket to create. - **bucket_type** (str): Either “allPublic” or “allPrivate”. - **bucket_info** (dict, optional): Arbitrary JSON‑serialisable key‑value pairs to st...
python
custom-check-github
diff --git a/README.md b/README.md index 74bdb06..e642d09 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ this: b2 cancel_all_unfinished_large_files <bucketName> b2 cancel_large_file <fileId> b2 clear_account - b2 create_bucket <bucketName> [allPublic | allPrivate] + b2 create_bucket [--bu...
New bucket fields Fix #294
support for bucket info and lifecycle rules The B2 service now supports storing bucket info with a bucket, and will soon support setting lifecycle rules to automatically delete old versions of files. Any thoughts on what the interface to the command-line tool should be? The obvious thing to do is to add `--bucket...
Backblaze/B2_Command_Line_Tool
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 63a80d3..686e915 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -8,6 +8,7 @@ # ###################################################################### +import json import os import six @@ -67,13 +68,15 @@ class Te...
[ "test/test_console_tool.py::TestConsoleTool::test_bucket_info_from_json", "test/test_console_tool.py::TestConsoleTool::test_buckets" ]
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key", "test/test_console_tool.py::TestConsoleTool::test_cancel_all_large_file", "test/test_console_tool.py::TestConsoleTool::test_cancel_large_file", "test/test_co...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
071c4f1420ac3c80ad621522b9996bcc1cd94bcf
2020-06-25 19:41:09
docker.io/swerebenchv2/python-markdown-markdown:989-071c4f1
python-markdown__markdown-989
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index c29ddcc..0e0bb89 100644 --- a/docs/change_log/release-3.3.md +++ b/docs/change_log/release-3.3.md @@ -31,6 +31,23 @@ markdown.markdown(src, extensions=[FencedCodeExtension(lang_prefix='')]) provide an option to include the language ...
Tune attr list regex Ignore empty braces. Braces must contain at least one non-whitepsace character to be recognized as an attr list. Attr lists for table cells must be at the end of the cell content and must be seperated from the content by at least one space. This appears to be a breaking change. However, it is...
attr_list ext strips curly braces from table cells Curly braces in the elements of a table get stripped away when the 'extra' extension is loaded ```python #! /usr/bin/env python3 import markdown from markdown.extensions.extra import ExtraExtension from markdown.extensions.tables import TableExtension text = ...
Python-Markdown/markdown
diff --git a/tests/extensions/extra/tables_and_attr_list.html b/tests/extensions/extra/tables_and_attr_list.html deleted file mode 100644 index 1924389..0000000 --- a/tests/extensions/extra/tables_and_attr_list.html +++ /dev/null @@ -1,18 +0,0 @@ -<table> -<thead> -<tr> -<th>First Header</th> -<th>Second Header</th> -<...
[ "tests/test_syntax/extensions/test_attr_list.py::TestAttrList::test_empty_list", "tests/test_syntax/extensions/test_attr_list.py::TestAttrList::test_table_td" ]
[ "tests/test_legacy.py::TestBasic::test_amps_and_angle_encoding", "tests/test_legacy.py::TestBasic::test_angle_links_and_img", "tests/test_legacy.py::TestBasic::test_auto_links", "tests/test_legacy.py::TestBasic::test_backlash_escapes", "tests/test_legacy.py::TestBasic::test_blockquotes_with_code_blocks", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": 4, "num_modified_lines": 67,...
624de34d82a1b2c521727b14a2173380e196f1d8
2024-01-13 14:11:15
docker.io/swerebenchv2/getmoto-moto:7208-624de34
getmoto__moto-7208
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py index 441f66f3d..c675a7bec 100644 --- a/moto/dynamodb/models/table.py +++ b/moto/dynamodb/models/table.py @@ -656,8 +656,8 @@ class Table(CloudFormationModel): filter_expression: Any = None, **filter_kwargs: Any, ) -> Tupl...
DynamoDB: query() now returns the correct ScannedCount Fixes #7206 Followup to #7085, where we fixed this calculation for the `scan()` method
DynamoDB Table.query() returns the wrong ScannedCount value ## Description The `Table.query()` method returns the total number of items in the stable instead of the total number of items with the specified partition key. ## Steps to reproduce ```python import boto3 from boto3.dynamodb.conditions import Key ...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py index 1ec5f8a1a..d029e0f00 100644 --- a/tests/test_dynamodb/test_dynamodb.py +++ b/tests/test_dynamodb/test_dynamodb.py @@ -689,18 +689,21 @@ def test_nested_projection_expression_using_query(): } ) - # Test a qu...
[ "tests/test_dynamodb/test_dynamodb.py::test_nested_projection_expression_using_query", "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_boto3_query_gsi_range_comparison", "tests/test_dynamodb/test_dynamodb_table_with_range_key.py::test_query_pagination" ]
[ "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[no-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[one-table]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_boto3[multiple-tables]", "tests/test_dynamodb/test_dynamodb.py::test_list_tables_paginated", "tests/tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9f37fb4db6d16e5d72e42cc7fa1ba100f3878e0a
2024-01-17 16:42:56
docker.io/swerebenchv2/sdv-dev-rdt:755-9f37fb4
sdv-dev__rdt-755
Method: UniformEncoder._reverse_transform(self, transformed: pandas.Series) → pandas.Series Location: rdt.transformers.categorical.UniformEncoder Inputs: - transformed: Series of float values in [0,1] representing bin assignments; may contain NaNs. - Uses internal attribute self.dtype to know original data type. Outpu...
python
custom-check-github
diff --git a/rdt/transformers/categorical.py b/rdt/transformers/categorical.py index fef1242..13d4e03 100644 --- a/rdt/transformers/categorical.py +++ b/rdt/transformers/categorical.py @@ -9,7 +9,7 @@ from scipy.stats import norm from rdt.errors import TransformerInputError from rdt.transformers.base import BaseTra...
Categorical reverse transform may crash with `ValueError` for certain dtypes (int64) CU-86ayz7xvf Resolve #747
Categorical reverse transform may crash with `ValueError` for certain dtypes (int64) ### Environment Details * RDT version: 1.9.0 (latest) * Python version: Any * Operating System: Any ### Error Description Due to certain bugs in SDV (see [SDV issue 1691](https://github.com/sdv-dev/SDV/issues/1691)), the data th...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_base.py b/tests/integration/transformers/test_base.py index cff4869..02a4ef7 100644 --- a/tests/integration/transformers/test_base.py +++ b/tests/integration/transformers/test_base.py @@ -136,6 +136,7 @@ def test_multi_column_transformer_same_number_of_columns_input_outp...
[ "tests/integration/transformers/test_base.py::test_dummy_transformer_series_output", "tests/integration/transformers/test_base.py::test_dummy_transformer_dataframe_output", "tests/integration/transformers/test_base.py::test_multi_column_transformer_same_number_of_columns_input_output", "tests/integration/tran...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/sdv-dev/SDV/issues/1691", "ht...
1f14e81696ed0810276f7568d1674ab2880fec7f
2021-04-16 00:29:49
docker.io/swerebenchv2/pypa-build:274-1f14e81
pypa__build-274
Function: _fs_supports_symlink() Location: src/build/env.py (module‑level, decorated with @functools.lru_cache) Inputs: None (no parameters) Outputs: bool – True if the current filesystem supports creating symlinks, False otherwise. On non‑Windows platforms it always returns True; on Windows it attempts to create and r...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8d9cae0..23244e6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,11 +8,14 @@ Unreleased - Validate that the supplied source directory is valid (`PR #260`_, Fixes `#259`_) - Set and test minimum versions of build's runtime dependencies (`PR #267`_, Fixes `#263`_)...
env: use symlinks except on Windows Matching the `python -m venv` default, see https://github.com/python/cpython/blob/2e789a1f1d84b343a996e8654590703b5fbdd441/Lib/venv/__init__.py#L403-L406. Closes #271.
Cannot create venv _without_ symlinks using Command Line Tools build of Python on macOS See https://bugs.python.org/issue38705. This seems to have bitten some users lately: * https://github.com/pypa/packaging-problems/issues/493 * https://github.com/pypa/packaging-problems/issues/488 Note that the venv CLI defa...
pypa/build
diff --git a/tests/test_env.py b/tests/test_env.py index b461ca5..9efedea 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -153,3 +153,22 @@ def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch): else: (uninstall_call,) = check_call.call_args_list assert uninstall_c...
[ "tests/test_env.py::test_venv_symlink[True]" ]
[ "tests/test_env.py::test_isolation", "tests/test_env.py::test_isolated_environment_install", "tests/test_env.py::test_fail_to_get_script_path", "tests/test_env.py::test_fail_to_get_purepath", "tests/test_env.py::test_executable_missing_post_creation", "tests/test_env.py::test_isolated_env_abstract", "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": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://bugs.python.org/issue38705", "https://gi...
76e93a82880b2a2c6490e20e90104358598e48ce
2023-12-30 14:14:52
docker.io/swerebenchv2/marketsquare-robotframework-robocop:1036-76e93a8
marketsquare__robotframework-robocop-1036
Method: Rule.supported_in_rf_version(version: str) -> bool Location: robocop.rules.Rule Inputs: - **version** (str): A version specifier string that may contain one or more conditions separated by semicolons (e.g., "`>=5;<8`" or "`>5;<=6`"). Each condition follows the standard comparison operators (`<`, `<=`, `>`, `>=...
python
Apache-2.0
diff --git a/docs/external_rules.rst b/docs/external_rules.rst index 1a62b25..c62d624 100644 --- a/docs/external_rules.rst +++ b/docs/external_rules.rst @@ -206,6 +206,18 @@ You can enable (or disable) your rule for particular Robot Framework version. Ad In this case rule "external-rule" will be enabled only for Rob...
Allow for multiple RF versions in rule rf version specifier Closes #1026
Rule version specifier should allow for multiple versions If the rule is only valid for set of versions, ie rule was introduced in RF 5 but will not make sense after RF 8: ``` version=">=5;<8" ``` We can use ";" in version specifier to separate different versions. Rule will be only enabled if it matches all con...
MarketSquare/robotframework-robocop
diff --git a/tests/test_data/ext_rules/version_matching/rules_with_version_limits.py b/tests/test_data/ext_rules/version_matching/rules_with_version_limits.py new file mode 100644 index 0000000..0a9bd1e --- /dev/null +++ b/tests/test_data/ext_rules/version_matching/rules_with_version_limits.py @@ -0,0 +1,23 @@ +from ro...
[ "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule", "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule_from_module", "tests/utest/test_external_rules.py::TestExternalRules::test_loading_external_rule_from_module_simple_import", "tests/utest/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":...
10762a191c6f16a0ca385752bd48c867c7043fe7
2016-08-26 12:33:19
docker.io/swerebenchv2/axelrod-python-axelrod:699-10762a1
axelrod-python__axelrod-699
Method: passes_operator_filter(strategy, classifier_key, value, operator) Location: axelrod.strategies._filters Inputs: - strategy: a subclass of axelrod.Player (the class, not an instance) whose ``classifier`` attribute will be inspected. - classifier_key: ``str`` name of the key in the strategy’s ``classifier`` d...
python
custom-check-github
diff --git a/axelrod/strategies/__init__.py b/axelrod/strategies/__init__.py index c86195be..83169217 100644 --- a/axelrod/strategies/__init__.py +++ b/axelrod/strategies/__init__.py @@ -1,5 +1,6 @@ from ..player import is_basic, obey_axelrod from ._strategies import * +from ._filters import passes_filterset # `fr...
Filtering Strategies This code fixes #696 I've not written the documentation yet, which is why this PR is not ready to merge. I'd appreciate thoughts and comments on the code and the tests. Once we're happy with those, I'll finish off the PR by completing the documentation.
Strategy Filtering by Dictionary Within the api, there are a set of functions to filter strategies from their classifier entries using a dictionary. (This is because parameters within a url are passed as dictionary). For example, the url https://axelrod-api.herokuapp.com/strategies/?stochastic=false&inspects_source=...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/integration/test_filtering.py b/axelrod/tests/integration/test_filtering.py new file mode 100644 index 00000000..8bfc2873 --- /dev/null +++ b/axelrod/tests/integration/test_filtering.py @@ -0,0 +1,86 @@ +import unittest +from hypothesis import given, example +from hypothesis.strategies import...
[ "axelrod/tests/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_boolean_filtering", "axelrod/tests/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_makes_use_of_filtering", "axelrod/tests/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_memory_depth...
[]
{ "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":...
217f09238c903a6fdc18e9d793d73953a68fdecf
2019-10-11 21:36:29
docker.io/swerebenchv2/keon-algorithms:551-217f092
keon__algorithms-551
Function: cholesky_decomposition(A) Location: algorithms/matrix/cholesky_matrix_decomposition.py Inputs: A – a square matrix (list of list of real numbers); must be Hermitian (symmetric) and positive‑definite. If any row length differs from the number of rows, the function treats the input as invalid. Outputs: Returns ...
python
MIT
diff --git a/.travis.yml b/.travis.yml index 37013bd..94607d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,6 @@ cache: - $HOME/.cache/pip matrix: include: - - python: 3.5 - env: TOX_ENV=py35 - python: 3.6 env: TOX_ENV=py36 - python: 3.7 @@ -15,6 +13,8 @@ ...
Black in travis ci (Put an `X` inside the `[ ]` to denote check mark `[X]`.) - [ ] **If creating a new file :** - [ ] added links to it in the README files ? - [ ] included tests with it ? - [ ] added description (overview of algorithm, time and space complexity, and possible edge case) in docstrings ? ...
Consider using black as an automatic code formatter [Black](https://github.com/ambv/black) is a Python code-formatter that advertises itself as being "uncompromising". Containing few configuration options, it deals with the hassle of different developers having different styles of their code. I recommend asking new ...
keon/algorithms
diff --git a/test_requirements.txt b/test_requirements.txt index 7a3e47c..f0afad0 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -4,3 +4,4 @@ coverage nose pytest tox +black diff --git a/tests/test_matrix.py b/tests/test_matrix.py index 4d7e129..3522d7d 100644 --- a/tests/test_matrix.py +++ b/test...
[ "tests/test_matrix.py::TestBombEnemy::test_3x4", "tests/test_matrix.py::TestCopyTransform::test_copy_transform", "tests/test_matrix.py::TestCroutMatrixDecomposition::test_crout_matrix_decomposition", "tests/test_matrix.py::TestCholeskyMatrixDecomposition::test_cholesky_matrix_decomposition", "tests/test_mat...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/ambv/black", "https://ece.uwa...
1ba86b30ded9c9fb6b867adcefec20d50b992318
2023-05-05 16:02:30
docker.io/swerebenchv2/meltano-sdk:1672-1ba86b3
meltano__sdk-1672
Method: Stream.selected_by_default Location: singer_sdk/streams/core.py – defined as a class attribute of `Stream`. Inputs: Optional class‑level override (`True` by default). Subclasses may set `selected_by_default = False` to indicate the stream should not be selected when no input catalog is provided. Outputs: Influe...
python
Apache-2.0
diff --git a/singer_sdk/_singerlib/catalog.py b/singer_sdk/_singerlib/catalog.py index 5932bb3f..a7284705 100644 --- a/singer_sdk/_singerlib/catalog.py +++ b/singer_sdk/_singerlib/catalog.py @@ -166,6 +166,7 @@ class MetadataMapping(t.Dict[Breadcrumb, AnyMetadata]): key_properties: list[str] | None = None, ...
feat: Support deselecting streams by default * Closes #1203 TODO: - [x] Tests - [x] Docs
[Feature]: Support de-selecting a stream by default ### Feature scope Taps (catalog, state, stream maps, etc.) ### Description Tap developers may want to disable certain streams in their taps for a few reasons: - The stream requires higher access credentials than the rest - The stream requires a different ...
meltano/sdk
diff --git a/tests/_singerlib/test_catalog.py b/tests/_singerlib/test_catalog.py index c589d183..69f37713 100644 --- a/tests/_singerlib/test_catalog.py +++ b/tests/_singerlib/test_catalog.py @@ -241,7 +241,7 @@ def test_catalog_parsing(): ) def test_standard_metadata( schema: dict, - key_properties: list[str]...
[ "tests/core/test_streams.py::test_stream_class_selection[no_catalog]" ]
[ "tests/_singerlib/test_catalog.py::test_selection_mask", "tests/_singerlib/test_catalog.py::test_metadata_mapping", "tests/_singerlib/test_catalog.py::test_empty_metadata_mapping", "tests/_singerlib/test_catalog.py::test_catalog_parsing", "tests/_singerlib/test_catalog.py::test_standard_metadata[schema0-key...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/meltano/sdk/discussions/1652" ]...
9a9673546e373769f73b449c27c5110159eff50e
2018-03-08 15:04:06
docker.io/swerebenchv2/maniacallabs-bibliopixel:648-9a96735
maniacallabs__bibliopixel-648
Method: QueuedReceiver.start(self) Location: bibliopixel.util.udp.QueuedReceiver – inherits from threads.Loop; starts the receiver thread. Inputs: None. Outputs: Begins the internal thread; after start the instance has a .queue attribute (a queue.Queue) populated with received UDP messages. Description: Launches a back...
python
MIT
diff --git a/bibliopixel/drivers/SimPixel/driver.py b/bibliopixel/drivers/SimPixel/driver.py index 37464f3..807538d 100644 --- a/bibliopixel/drivers/SimPixel/driver.py +++ b/bibliopixel/drivers/SimPixel/driver.py @@ -1,10 +1,9 @@ import struct from . import websocket -from .. driver_base import DriverBase -from ... u...
Fix flags to `bp command` (and fix #637) Oops! I didn't have to touch update.py to fix this!
bp upgrade doesn't work... Traceback (most recent call last): File "/development/env/bp-clean/bin/bp", line 15, in <module> main.main() File "/development/env/bp-clean/lib/python3.4/site-packages/bibliopixel/main/main.py", line 70, in main return run(args) or 0 File "/development/env/bp-clean/lib/pyt...
ManiacalLabs/BiblioPixel
diff --git a/test/bibliopixel/util/udp_test.py b/test/bibliopixel/util/udp_test.py new file mode 100644 index 0000000..a59f749 --- /dev/null +++ b/test/bibliopixel/util/udp_test.py @@ -0,0 +1,36 @@ +import contextlib, queue, time, unittest + +from bibliopixel.util import udp + +TEST_ADDRESS = '127.0.0.1', 5678 +TIMEOUT...
[ "test/bibliopixel/util/udp_test.py::UDPTest::test_full" ]
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.78, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
55f151dd04897f8d20a8c7e3a5a4ff89d6f1cfc4
2022-06-24 14:17:06
docker.io/swerebenchv2/jelmer-dulwich:982-55f151d
jelmer__dulwich-982
Function: apply_instead_of(config: Config, orig_url: str, push: bool = False) -> str Location: dulwich/client.py Inputs: - **config** – a Dulwich `Config` (e.g., `ConfigDict`) that may contain `url.<base>.insteadOf` and `url.<base>.pushInsteadOf` entries. - **orig_url** – the original URL string that should be exami...
python
custom-check-github
diff --git a/NEWS b/NEWS index ffb09bf2..db78a5d8 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ * Fix reading of chunks in server. (Jelmer Vernooij, #977) + * Support applying of URL rewriting using ``insteadOf`` / ``pushInsteadOf``. + (Jelmer Vernooij, #706) + 0.20.43 2022-06-07 * Lazily import url2pathname....
Support applying of URL rewriting using insteadOf/pushInsteadOf. Fixes #706
support for rewriting URLs Handling for e.g. pushInsteadof and insteadOf in ~/.gitconfig See https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf
jelmer/dulwich
diff --git a/dulwich/tests/test_client.py b/dulwich/tests/test_client.py index 767fe94a..d8c00b55 100644 --- a/dulwich/tests/test_client.py +++ b/dulwich/tests/test_client.py @@ -52,6 +52,7 @@ from dulwich.client import ( PLinkSSHVendor, HangupException, GitProtocolError, + apply_instead_of, chec...
[ "dulwich/tests/test_client.py::GitClientTests::test_archive_ack", "dulwich/tests/test_client.py::GitClientTests::test_caps", "dulwich/tests/test_client.py::GitClientTests::test_fetch_empty", "dulwich/tests/test_client.py::GitClientTests::test_fetch_pack_ignores_magic_ref", "dulwich/tests/test_client.py::Git...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://git-scm.com/docs/git-config#Documentation/git-...
4138384f9d6d4d97abf22ed1adffc4cce842e12a
2019-09-25 08:28:34
docker.io/swerebenchv2/vmware-tern:460-4138384
vmware__tern-460
Method: ImageLayer.analyzed_output(self) Location: tern/classes/image_layer.py Inputs: None (getter) Outputs: ``str`` – returns the current value of the private ``__analyzed_output`` attribute, defaulting to an empty string. Description: Getter for the ``analyzed_output`` property that provides the result string of the...
python
BSD-2-Clause
diff --git a/tern/classes/image_layer.py b/tern/classes/image_layer.py index e859152..77e759e 100644 --- a/tern/classes/image_layer.py +++ b/tern/classes/image_layer.py @@ -29,6 +29,7 @@ class ImageLayer: import_str: The string from a build tool (like a Dockerfile) that created this layer by importing...
Add analyzed_output property Create a property called analyzed_output in the ImageLayer class located in tern/classes/image_layer.py Resolves #445 Signed-off-by: Manaswini Das <dasmanaswini10@gmail.com>
Create an analyzed_output property for each layer with appropriate tests ***Description*** Create a property called `analyzed_output` in the ImageLayer class located in `tern/classes/image_layer.py`. ***Implementation*** In `tern/classes/image_layer.py`: 1. Add `analyzed_output` to class docstring under class I...
vmware/tern
diff --git a/tests/test_class_image_layer.py b/tests/test_class_image_layer.py index 259ffdd..8946259 100644 --- a/tests/test_class_image_layer.py +++ b/tests/test_class_image_layer.py @@ -39,6 +39,11 @@ class TestClassImageLayer(unittest.TestCase): self.assertTrue(self.layer.files_analyzed) self.asse...
[ "tests/test_class_image_layer.py::TestClassImageLayer::testInstance" ]
[ "tests/test_class_image_layer.py::TestClassImageLayer::testAddPackage", "tests/test_class_image_layer.py::TestClassImageLayer::testGetPackageNames", "tests/test_class_image_layer.py::TestClassImageLayer::testRemovePackage", "tests/test_class_image_layer.py::TestClassImageLayer::testToDict", "tests/test_clas...
{ "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": [...
68df27d2a66959b469bdca5ebb87988b3457e619
2020-08-06 17:32:38
docker.io/swerebenchv2/rochacbruno-dynaconf:385-68df27d
rochacbruno__dynaconf-385
Method: Settings.__iter__(self) Location: dynaconf/base.py, class Settings Inputs: self – the Settings instance Outputs: iterator yielding each key stored in the internal `_store` mapping Description: Makes a Settings object iterable like a dict, yielding stored keys for “for key in settings” loops. Function: Settings...
python
MIT
diff --git a/docs/index.md b/docs/index.md index fa7c80e..88486be 100644 --- a/docs/index.md +++ b/docs/index.md @@ -562,7 +562,7 @@ settings['databases.schema'] == "main" # Nested items traversing settings.get("nonexisting", "default value") # Default values just like a dict settings("number", cast=int) ...
Fix #379 dict like iteration Fix #379
[bug] dict-like iteration seems broken (when using example from Home page) **Describe the bug** When I try to run the example from section https://www.dynaconf.com/#initialize-dynaconf-on-your-project ("Using Python only") and try to use the dict-like iteration from section https://www.dynaconf.com/#reading-settings...
rochacbruno/dynaconf
diff --git a/tests/test_base.py b/tests/test_base.py index a803c7a..ea233bb 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -820,3 +820,23 @@ def test_lowercase_read_mode(tmpdir): results = dir(settings.databases) assert "default" in results assert "DEFAULT" in results + + +def test_settings_...
[ "tests/test_base.py::test_settings_dict_like_iteration" ]
[ "tests/test_base.py::test_deleted_raise", "tests/test_base.py::test_accepts_only_upper", "tests/test_base.py::test_populate_obj", "tests/test_base.py::test_populate_obj_with_keys", "tests/test_base.py::test_populate_obj_with_ignore", "tests/test_base.py::test_call_works_as_get", "tests/test_base.py::tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://www.dynaconf.com/#initialize-dynaconf-on-your-pr...
95d2be1dbdb2a6cd95db5cb9528a103bbebcaf3f
2024-12-02 03:48:35
docker.io/swerebenchv2/tatuylonen-wiktextract:931-95d2be1
tatuylonen__wiktextract-931
Function: parse_page(wxr, page_title, wikitext) Location: wiktextract.extractor.de.page Inputs: - wxr: WiktextractContext – the extraction context that holds a Wtp parser and configuration. - page_title: str – the title of the Wiktionary page being parsed (e.g., “Hund”). - wikitext: str – the raw wikitext source of the...
python
custom-check-github
diff --git a/src/wiktextract/extractor/de/models.py b/src/wiktextract/extractor/de/models.py index a2ec3d27..ded7a29f 100644 --- a/src/wiktextract/extractor/de/models.py +++ b/src/wiktextract/extractor/de/models.py @@ -105,28 +105,16 @@ class Sense(BaseModelWrap): class Sound(BaseModelWrap): ipa: str = Field(de...
[de] extract nested sound lists Fix #930
Missing IPA transcriptions on de-de "Garage" The wiktionary entry has multiple IPA transcriptions but there are none on https://kaikki.org/dewiktionary/All%20languages%20combined/meaning/G/Ga/Garage.html.
tatuylonen/wiktextract
diff --git a/tests/test_de_example.py b/tests/test_de_example.py index bcab8f26..5e3d124b 100644 --- a/tests/test_de_example.py +++ b/tests/test_de_example.py @@ -260,7 +260,7 @@ class TestDEExample(unittest.TestCase): { "examples": [ { - ...
[ "tests/test_de_example.py::TestDEExample::test_tag_list", "tests/test_de_gloss.py::TestDEGloss::test_italit_node_multiple_raw_tags", "tests/test_de_pronunciation.py::TestDEPronunciation::test_nested_lists", "tests/test_de_pronunciation.py::TestDEPronunciation::test_normal_page" ]
[ "tests/test_de_example.py::TestDEExample::test_de_extract_example_with_reference", "tests/test_de_example.py::TestDEExample::test_de_extract_examples", "tests/test_de_example.py::TestDEExample::test_de_extract_reference_from_literatur_template", "tests/test_de_example.py::TestDEExample::test_de_extract_refere...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
a35cde90af9caaa4d1670508255a38b6e361228a
2021-03-19 16:35:44
docker.io/swerebenchv2/samuelcolvin-pydantic:2549-a35cde9
samuelcolvin__pydantic-2549
No new interfaces are introduced.
python
MIT
diff --git a/changes/2007-diabolo-dan.md b/changes/2007-diabolo-dan.md new file mode 100644 index 000000000..d79c056b0 --- /dev/null +++ b/changes/2007-diabolo-dan.md @@ -0,0 +1,1 @@ +Add parameterised subclasses to `__bases__` when constructing new parameterised classes, so that `A <: B => A[int] <: B[int]`. diff --gi...
Improve generic subclass support <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Change Summary <!-- Please give a short ...
GenericModel - Recursive abstract class fails validation ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug #...
samuelcolvin/pydantic
diff --git a/tests/test_generics.py b/tests/test_generics.py index 7e0cd731c..fb071b0cf 100644 --- a/tests/test_generics.py +++ b/tests/test_generics.py @@ -1160,6 +1160,92 @@ def test_generic_annotated(): SomeGenericModel[str](the_alias='qwe') +@skip_36 +def test_generic_subclass(): + T = TypeVar('T') + + ...
[ "tests/test_generics.py::test_generic_subclass", "tests/test_generics.py::test_generic_subclass_with_partial_application", "tests/test_generics.py::test_multilevel_generic_binding", "tests/test_generics.py::test_generic_subclass_with_extra_type" ]
[ "tests/test_generics.py::test_generic_name", "tests/test_generics.py::test_double_parameterize_error", "tests/test_generics.py::test_value_validation", "tests/test_generics.py::test_methods_are_inherited", "tests/test_generics.py::test_config_is_inherited", "tests/test_generics.py::test_default_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": "B2|B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "inte...
c8d4f36a718b088115491a3972424d9ac48f2410
2023-10-18 09:44:45
docker.io/swerebenchv2/aeye-lab-pymovements:614-c8d4f36
aeye-lab__pymovements-614
No new interfaces are introduced.
python
MIT
diff --git a/src/pymovements/dataset/dataset_files.py b/src/pymovements/dataset/dataset_files.py index 0bdd4e5..e61f411 100644 --- a/src/pymovements/dataset/dataset_files.py +++ b/src/pymovements/dataset/dataset_files.py @@ -213,7 +213,8 @@ def load_gaze_files( custom_read_kwargs=definition.custom_read_kwa...
fix: SchemaFieldNotFoundError When Loading Preprocessed Data Fixes #607 Changes: - Only rename input columns by `column_map` when loading raw data - Test for loading preprocessed dataset. Working with the example files currently present in `tests/files` I had to adjust some attributes of the pupil datasets `...
SchemaFieldNotFoundError When Loading Preprocessed Data ## Current Behavior When loading preprocessed data using the `Dataset.load()` method with the `preprocessed=True` flag, I encounter a `SchemaFieldNotFoundError` related to the `trialId` column. The preprocessed data already has renamed columns, and the error oc...
aeye-lab/pymovements
diff --git a/tests/functional/dataset_processing_test.py b/tests/functional/dataset_processing_test.py new file mode 100644 index 0000000..da25f0f --- /dev/null +++ b/tests/functional/dataset_processing_test.py @@ -0,0 +1,117 @@ +# Copyright (c) 2023 The pymovements Project Authors +# +# Permission is hereby granted, f...
[ "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[gazebase]", "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[gazebase_vr]", "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[judo1000]" ]
[ "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[csv_monocular]", "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[csv_binocular]", "tests/functional/dataset_processing_test.py::test_dataset_save_load_preprocessed[ipc_monocular]", "tests/functi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
754de24ae801783bdcd24d723866570eda490cb5
2024-03-02 18:40:34
docker.io/swerebenchv2/leshchenko1979-fast-bitrix24:217-754de24
leshchenko1979__fast_bitrix24-217
Method: fast_bitrix24.leaky_bucket.LeakyBucketLimiter.__init__(self, max_request_running_time: float, measurement_period: float) Location: fast_bitrix24/leaky_bucket.py Inputs: max_request_running_time – maximum total request running time (seconds) allowed within the measurement period; measurement_period – length of t...
python
MIT
diff --git a/fast_bitrix24/__version__.py b/fast_bitrix24/__version__.py index 35ddfd4..5bb6d59 100644 --- a/fast_bitrix24/__version__.py +++ b/fast_bitrix24/__version__.py @@ -1,1 +1,1 @@ -__version__ = "1.5.16" +__version__ = "1.6a1" diff --git a/fast_bitrix24/leaky_bucket.py b/fast_bitrix24/leaky_bucket.py new file ...
Соблюдение новых ограничений на длительность запросов Fixes #187
Соблюдение новых ограничений на длительность запросов Совсем недавно в облачной версии Б24 добавили новые лимиты запросов: https://helpdesk.bitrix24.ru/open/15959788 Сейчас это никак не отслеживается библиотекой, даже если установить respect_velocity_policy на True
leshchenko1979/fast_bitrix24
diff --git a/tests/test_async.py b/tests/test_async.py index 4088adf..8cce052 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -6,7 +6,7 @@ from time import monotonic import pytest from fast_bitrix24 import BitrixAsync -from fast_bitrix24.srh import BITRIX_POOL_SIZE, BITRIX_RPS, ServerRequestHandler +f...
[ "tests/test_exceptions.py::test_retries[ServerConnectionError]", "tests/test_exceptions.py::test_retries[TimeoutError]", "tests/test_leaky_bucket.py::test_needed_sleep_time[2-10-requests0-measurements0]", "tests/test_leaky_bucket.py::test_needed_sleep_time[2-10-requests1-measurements1]", "tests/test_leaky_b...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://helpdesk.bitrix24.ru/open/15959788" ], ...
4551364a1e69b1513f7a4f1c9dd1bb3026bc3d34
2022-08-31 14:12:30
docker.io/swerebenchv2/qiskit-qiskit-ibm-runtime:514-4551364
qiskit__qiskit-ibm-runtime-514
Method: Session.__init__(self, service: Optional[QiskitRuntimeService]=None, backend: Optional[Union[str, IBMBackend]]=None, max_time: Optional[Union[int, str]]=None) Location: qiskit_ibm_runtime.session Inputs: - service – optional QiskitRuntimeService; if omitted a default service is created. - backend – optional...
python
Apache-2.0
diff --git a/docs/tutorials/how-to-getting-started-with-estimator.ipynb b/docs/tutorials/how-to-getting-started-with-estimator.ipynb index 3efb2c5d..335f9909 100644 --- a/docs/tutorials/how-to-getting-started-with-estimator.ipynb +++ b/docs/tutorials/how-to-getting-started-with-estimator.ipynb @@ -61,9 +61,9 @@ "f...
Make backend a session parameter <!-- ⚠️ The pull request title should be short detailed and understandable for all. ⚠️ Also, please add a release note file using reno if the change needs to be documented in the release notes. ⚠️ If your pull request fixes an open issue, please link to the issue. ✅ I have adde...
Backend option should be at session level, not job level **Describe the bug** The new `Options` class added `backend` as an option that one can specify when initializing a primitive class or running a primitive job. This implies that one can switch to using a different backend in the middle of a session, which is no...
Qiskit/qiskit-ibm-runtime
diff --git a/test/integration/test_estimator.py b/test/integration/test_estimator.py index 1d8db322..67b90efa 100644 --- a/test/integration/test_estimator.py +++ b/test/integration/test_estimator.py @@ -28,7 +28,7 @@ class TestIntegrationEstimator(IBMIntegrationTestCase): def test_estimator_session(self, service):...
[ "test/unit/test_ibm_primitives.py::TestPrimitives::test_backend_as_session", "test/unit/test_ibm_primitives.py::TestPrimitives::test_backend_in_options", "test/unit/test_ibm_primitives.py::TestPrimitives::test_backend_str_as_session", "test/unit/test_ibm_primitives.py::TestPrimitives::test_default_session", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
acdbdc19959f5c02c13f741413d76e23366b4aa5
2022-09-11 18:55:34
docker.io/swerebenchv2/python-markdown-markdown:1294-acdbdc1
python-markdown__markdown-1294
Method: TocExtension.__init__(self, title='', title_class='toctitle', toc_class='toc', **other_options) Location: markdown/extensions/toc.py Inputs: - title (str, optional): Text placed inside the TOC title element; default is an empty string. - title_class (str, optional): CSS class applied to the TOC title `<span>...
python
BSD-3-Clause
diff --git a/.spell-dict b/.spell-dict index 8719883..91cd7bd 100644 --- a/.spell-dict +++ b/.spell-dict @@ -28,6 +28,7 @@ Cogumbreiro CommonMark convertFile CSS +customizable dedent deliminators deregister diff --git a/docs/changelog.md b/docs/changelog.md index 5d4e800..d233abf 100644 --- a/docs/changelog.md ++...
Fix #1293 Add customizable TOC title class
Allow TOC element to be fully customizable ``` [TOC] # Header 1 ``` will currently generate the following HTML: ``` <div class="toc"> <ul> <li><a href="#header-1">Header 1</a></li> </ul> </div> <h1 id="header-1">Header 1</h1> ``` The `div` element cannot be changed and so it is for the title ...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_toc.py b/tests/test_syntax/extensions/test_toc.py index d64c6d3..7976436 100644 --- a/tests/test_syntax/extensions/test_toc.py +++ b/tests/test_syntax/extensions/test_toc.py @@ -629,3 +629,45 @@ class TestTOC(TestCase): ), extensions=[TocExtension...
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testTOCWithCustomTitleClass", "tests/test_syntax/extensions/test_toc.py::TestTOC::testTOCWithEmptyTitleClass" ]
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLink", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClass", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithCustomClasses", "tests/test_syntax/extensions/test_toc.py::TestTOC::testAnchorLinkWithD...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://developer.mozilla.org/en-US/docs/Web/HTML/Elemen...
1502ebdf74def3ff6909a3cf1856068b5b9ce586
2023-10-17 14:56:52
docker.io/swerebenchv2/sdv-dev-rdt:722-1502ebd
sdv-dev__rdt-722
Function: GaussianNormalizer.__init__(distribution: str = 'truncnorm', missing_value_generation: str | None = None, missing_value_replacement: Any = None, random_state: int | None = None, **kwargs) Location: rdt/transformers/numerical.py Inputs: - distribution: name of the univariate distribution to use. Accepted curre...
python
custom-check-github
diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py index e6b94f7..214714e 100644 --- a/rdt/hyper_transformer.py +++ b/rdt/hyper_transformer.py @@ -593,6 +593,12 @@ class HyperTransformer: if not self._fitted or self._modified_config: raise NotFittedError(self._NOT_FIT_MESSAGE) + ...
Make `GaussianNormalizer` distribution names consistent with `scipy` Resolve #656.
The `GaussianNormalizer` should accept distribution names that are consistent with `scipy` ### Problem Description The [GaussianNormalizer](https://docs.sdv.dev/rdt/transformers-glossary/numerical/gaussiannormalizer) accepts a distribution parameter, where you can provide a string name of the univariate distribution. ...
sdv-dev/RDT
diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py index f773eb0..03768b6 100644 --- a/tests/integration/test_hyper_transformer.py +++ b/tests/integration/test_hyper_transformer.py @@ -87,23 +87,41 @@ def get_transformed_data(): 1.262304e+18, 1.26498...
[ "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_default_inputs", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_field_transformers", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_multiple_detects", "tests/integration/test_hyper_tran...
[ "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_single_category", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_categorical_encoders_with_booleans", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_dtype_category", "tests/integration/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.sdv.dev/rdt/transformers-glossary/numeric...
12e3cdc83bb46a2384b2821e28833b0fdb15c799
2022-11-16 10:38:04
docker.io/swerebenchv2/cs-si-eodag:554-12e3cdc
cs-si__eodag-554
Function: RequestError() Location: eodag.utils.exceptions Inputs: No required parameters (optional message string may be provided) Outputs: Raises an exception instance used to signal HTTP request failures within EODAG search plugins Description: Custom exception raised when a low‑level HTTP request (e.g., via ``reques...
python
Apache-2.0
diff --git a/eodag/plugins/search/qssearch.py b/eodag/plugins/search/qssearch.py index f349b760..a9625b53 100644 --- a/eodag/plugins/search/qssearch.py +++ b/eodag/plugins/search/qssearch.py @@ -597,8 +597,7 @@ class QueryStringSearch(Search): "instance:".format(self.provider, self.__class__.__name...
fix: request error handling during search_all fixes #550
Connection timeout bug in search API **Describe the bug** No result from provider 'creodias' due to an error during the search. `urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f0614fa07f0>, 'Connection to finder.creodias.eu timed out. (connect timeout=5)')` Timeout er...
CS-SI/eodag
diff --git a/tests/context.py b/tests/context.py index f23c149a..47f4b0f7 100644 --- a/tests/context.py +++ b/tests/context.py @@ -82,6 +82,7 @@ from eodag.utils.exceptions import ( NoMatchingProductType, NotAvailableError, PluginImplementationError, + RequestError, UnsupportedDatasetAddressSchem...
[ "tests/units/test_core.py::TestCoreSearch::test_search_all_request_error" ]
[ "tests/units/test_core.py::TestCore::test_build_index_ko", "tests/units/test_core.py::TestCore::test_core_object_locations_file_not_found", "tests/units/test_core.py::TestCore::test_core_object_open_index_if_exists", "tests/units/test_core.py::TestCore::test_core_object_set_default_locations_config", "tests...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
fcbc8bd46fe291365f628a9993149c9eb8352e4f
2023-06-07 12:30:28
docker.io/swerebenchv2/amaranth-lang-amaranth:814-fcbc8bd
amaranth-lang__amaranth-814
Method: Shape.cast(obj) Location: amaranth/hdl/ast.py – static method of class Shape Inputs: obj – any object that can be interpreted as a shape description; the implementation now expects that when *obj* is a range it may be non‑empty and uses the first and last elements (obj[0] and obj[-1]) to determine sign and widt...
python
BSD-2-Clause
diff --git a/amaranth/hdl/ast.py b/amaranth/hdl/ast.py index cbf2e60..da55380 100644 --- a/amaranth/hdl/ast.py +++ b/amaranth/hdl/ast.py @@ -117,9 +117,9 @@ class Shape: elif isinstance(obj, range): if len(obj) == 0: return Shape(0, obj.start < 0) - sign...
hdl.ast: fix shape for subtraction. Fixes #813.
Subtract of unsigned `Value`s should have signed shape ``` >>> a = Const(1) - Const(2) >>> a.shape() unsigned(3) ``` The correct result here (`-1`) ...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index 65f2404..af4b175 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -117,6 +117,9 @@ class ShapeTestCase(FHDLTestCase): s7 = Shape.cast(range(-1, -1)) self.assertEqual(s7.width, 0) self.assertEqual(s7.signed, True...
[ "tests/test_hdl_ast.py::ShapeTestCase::test_cast_range", "tests/test_hdl_ast.py::OperatorTestCase::test_sub", "tests/test_hdl_ast.py::SliceTestCase::test_start_end_out_of_range" ]
[ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0a93ade96549e1a9c55a0384a4e2c03254720bd4
2024-08-30 08:27:11
docker.io/swerebenchv2/mpmath-mpmath:854-0a93ade
mpmath__mpmath-854
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/functions/functions.py b/mpmath/functions/functions.py index 593ac30..1cf05ef 100644 --- a/mpmath/functions/functions.py +++ b/mpmath/functions/functions.py @@ -238,7 +238,7 @@ def log1p(ctx, x): b2 = ctx.fmul(b, b, prec=2*wp) diff = ctx.fsub(b2, a2, prec=3*wp) ...
Use correct constructor in series branch of log1p This amends 7596816 Closes #853
log1p(x) with real x returns a complex value when x is sufficiently small. When the real input `x` is small enough, `log1p(x)` returns a complex number, with imaginary part 0: ``` In [1]: import mpmath In [2]: mpmath.__version__ Out[2]: '1.4.0a2.dev93+g9b99f41' In [3]: from mpmath import mp In [4]: mp.dps...
mpmath/mpmath
diff --git a/mpmath/tests/test_functions.py b/mpmath/tests/test_functions.py index 01914f7..9be9101 100644 --- a/mpmath/tests/test_functions.py +++ b/mpmath/tests/test_functions.py @@ -974,6 +974,16 @@ def test_log1p(): assert log1p(-1.430796815051627e-72+1.691624553529315e-36j).ae(4.6709293580298264e-91+1.6916245...
[ "mpmath/tests/test_functions.py::test_log1p" ]
[ "mpmath/tests/test_functions.py::test_constants", "mpmath/tests/test_functions.py::test_exact_sqrts", "mpmath/tests/test_functions.py::test_sqrt_rounding", "mpmath/tests/test_functions.py::test_float_sqrt", "mpmath/tests/test_functions.py::test_sqrt_special", "mpmath/tests/test_functions.py::test_hypot", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
7d6d4eed64670630df7a6ee9a3c41286be2f8f17
2024-03-08 17:46:47
docker.io/swerebenchv2/ecmwf-earthkit-data:339-7d6d4ee
ecmwf__earthkit-data-339
No new interfaces are introduced.
python
Apache-2.0
diff --git a/earthkit/data/readers/netcdf.py b/earthkit/data/readers/netcdf.py index d847d68..64f18be 100644 --- a/earthkit/data/readers/netcdf.py +++ b/earthkit/data/readers/netcdf.py @@ -162,11 +162,16 @@ def get_fields_from_ds( skip = set() + def _skip_attr(v, attr_name): + attr_val = getattr(v, a...
Avoid crash in netcdf field parsing when bounds is not a str Fixes #337
Crash when trying to parse netcdf file for fields ### What happened? When we get the following data from cds: ```python import earthkit.data lc_data = earthkit.data.from_source( "cds", 'satellite-land-cover', { 'year': '2022', 'version': 'v2.1.1', 'variable': 'all', 'format'...
ecmwf/earthkit-data
diff --git a/tests/netcdf/test_netcdf_fieldlist.py b/tests/netcdf/test_netcdf_fieldlist.py index fe15119..f26e1a0 100644 --- a/tests/netcdf/test_netcdf_fieldlist.py +++ b/tests/netcdf/test_netcdf_fieldlist.py @@ -38,6 +38,25 @@ def test_netcdf_fieldlist_string_coord(): assert np.allclose(ds[0].to_points()["y"], y_...
[ "tests/netcdf/test_netcdf_fieldlist.py::test_netcdf_fieldlist_bounds" ]
[ "tests/netcdf/test_netcdf_fieldlist.py::test_netcdf_fieldlist_string_coord" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
b1cce87630e917dfe09546cd78c73c7a310c6b97
2023-06-22 01:52:14
docker.io/swerebenchv2/amaranth-lang-amaranth:825-b1cce87
amaranth-lang__amaranth-825
Method: Value.replicate(self, count) Location: amaranth.hdl.ast.Value.replicate Inputs: - **self** – a :class:`Value` instance. - **count** – ``int`` ≥ 0; replication count. A :class:`TypeError` is raised if *count* is not an integer or is negative. Outputs: - Returns a new :class:`Value` (a :class:`Cat`...
python
BSD-2-Clause
diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index c605f3c..a9f0269 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -632,9 +632,6 @@ class _RHSValueCompiler(_ValueCompiler): }, src=_src(value.src_loc)) return res - def on_Repl(self, value): - return "{{ ...
Implement RFC 10: Move `Repl` to `Value.replicate` Implements [RFC 10](https://amaranth-lang.org/rfcs/0010-move-repl-to-value.html); fixes #770. * I've marked `Repl` as for removal in 0.5 with a comment, per the changelog text: > While code that uses the features listed as deprecated below will work in Amaranth...
Implement RFC 10: Move `Repl` to `Value.replicate` [RFC text](https://amaranth-lang.org/rfcs/0010-move-repl-to-value.html) - [x] Add `Value.replicate` - [x] Update documentation - [x] Deprecate `Repl` in 0.4 - [ ] Remove `Repl` in a later version
amaranth-lang/amaranth
diff --git a/tests/test_hdl_ast.py b/tests/test_hdl_ast.py index 5878a6c..3177807 100644 --- a/tests/test_hdl_ast.py +++ b/tests/test_hdl_ast.py @@ -353,6 +353,23 @@ class ValueTestCase(FHDLTestCase): r"^Rotate amount must be an integer, not 'str'$"): Const(31).rotate_right("str") + d...
[ "tests/test_hdl_ast.py::ValueTestCase::test_replicate_count_wrong", "tests/test_hdl_ast.py::ValueTestCase::test_replicate_repr", "tests/test_hdl_ast.py::ValueTestCase::test_replicate_shape", "tests/test_hdl_ast.py::ReplTestCase::test_cast", "tests/test_hdl_xfrm.py::EnableInserterTestCase::test_enable_write_...
[ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://amaranth-lang.org/rfcs/0010-move-repl-to-value...
4395da09ff8352bb9ced44b9e4fc232cb1ac2fa1
2022-01-18 21:33:16
docker.io/swerebenchv2/pypa-packaging:499-4395da0
pypa__packaging-499
Method: Marker.__eq__(self, other: Any) -> bool Location: class Marker in packaging/markers.py Inputs: other – any object; equality is defined only when other is an instance of Marker; otherwise NotImplemented is returned. Outputs: Returns True if the string representation of both markers is identical, otherwise False....
python
custom-check-github
diff --git a/docs/markers.rst b/docs/markers.rst index ad25361..478b76e 100644 --- a/docs/markers.rst +++ b/docs/markers.rst @@ -45,6 +45,14 @@ Usage >>> extra_environment['extra'] = 'bar' >>> extra.evaluate(environment=extra_environment) True + >>> # You can do simple comparisons between marker objec...
Add `__hash__`/`__eq__` to requirements Hello, this PR is a feature request that started as a conversation in https://github.com/pypa/packaging/pull/498#discussion_r786691387. I also believe it might close #453. The idea here is to be able to compare requirement objects as well as be able to compare sets containing ...
Add `__eq__` to `Requirement` and `Marker` It would be useful to declare `__eq__` in `packaging.requirements.Requirement` and `packaging.markers.Marker` so that we can compare them. Currently: ```python >>> from packaging.requirements import Requirement >>> Requirement('package') == Requirement('package') False ...
pypa/packaging
diff --git a/tests/test_markers.py b/tests/test_markers.py index c2640af..7a7663b 100644 --- a/tests/test_markers.py +++ b/tests/test_markers.py @@ -202,10 +202,51 @@ class TestMarker: ), ], ) - def test_str_and_repr(self, marker_string, expected): + def test_str_repr_eq_hash(self, mark...
[ "tests/test_markers.py::TestMarker::test_str_repr_eq_hash[python_version", "tests/test_markers.py::TestMarker::test_str_repr_eq_hash[(python_version", "tests/test_requirements.py::TestRequirements::test_equal_reqs_equal_hashes[packaging>20.1-packaging>20.1]", "tests/test_requirements.py::TestRequirements::tes...
[ "tests/test_markers.py::TestNode::test_accepts_value[one]", "tests/test_markers.py::TestNode::test_accepts_value[two]", "tests/test_markers.py::TestNode::test_accepts_value[None]", "tests/test_markers.py::TestNode::test_accepts_value[3]", "tests/test_markers.py::TestNode::test_accepts_value[5]", "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": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
33bae1272d5a2201c8e43c82b27e4425140e70d7
2020-09-16 17:36:51
docker.io/swerebenchv2/getslash-slash:1035-33bae12
getslash__slash-1035
No new interfaces are introduced.
python
custom-check-github
diff --git a/doc/changelog.rst b/doc/changelog.rst index 9c0f3bd..f380390 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,5 +1,6 @@ Changelog ========= +* :bug:`1034` Added filtering during session resume * :bug:`_` Fix to filter class based test based on the tagging in parameter * :release:`1.11.0 <06...
Fix #1034 Apply filtering during session resume
Filter is ignored on session resume In cases we resume session and specify a filter, this filter is ignored during resume execution ``` def test_afail(): raise ValueError def test_bla1(): pass def test_bla2(): pass ``` execution: ``` slash run -vv tests/test_bla.py -S -x 3 tests collected ...
getslash/slash
diff --git a/tests/test_slash_resume.py b/tests/test_slash_resume.py index 4cde1fb..b9a5c00 100644 --- a/tests/test_slash_resume.py +++ b/tests/test_slash_resume.py @@ -1,5 +1,6 @@ # pylint: disable=redefined-outer-name import pytest +import slash from slash.resuming import (CannotResume, get_last_resumeable_session...
[ "tests/test_slash_resume.py::test_resume_with_filter" ]
[ "tests/test_slash_resume.py::test_resume_no_session", "tests/test_slash_resume.py::test_get_last_resumeable_session", "tests/test_slash_resume.py::test_resume", "tests/test_slash_resume.py::test_resume_with_parametrization[method-True]", "tests/test_slash_resume.py::test_resume_with_parametrization[method-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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
3d049d508f0f31bf003795f58848cc9d54d5e354
2019-08-16 23:16:37
docker.io/swerebenchv2/robotframework-seleniumlibrary:1428-3d049d5
robotframework__seleniumlibrary-1428
Method: SeleniumLibrary.__init__(self, plugins=None, event_firing_webdriver=None, **other_kwargs) Location: src/SeleniumLibrary/__init__.py (class SeleniumLibrary, __init__ method) Inputs: - **plugins** (str or list‑str, optional): Path(s) to Python files that define plugin classes extending ``LibraryComponent``. The p...
python
Apache-2.0
diff --git a/docs/extending/extending.rst b/docs/extending/extending.rst index 9960ab02..d143e884 100644 --- a/docs/extending/extending.rst +++ b/docs/extending/extending.rst @@ -89,6 +89,15 @@ of the attributes are explained in the library `keyword documentation`_. please plugins may alter the functionality of the me...
Fixed initialisation order Fixes #1424
Plugins should be last thing loaded in the SeleniumLibrary __init__ In the library init, plugins are loaded after the Event Firing WebDriver. There was discussion in the slack that user wants to plugin to also add a Event Firing WebDriver class to the library. But this is not currently possible because plugins are load...
robotframework/SeleniumLibrary
diff --git a/utest/test/api/plugin_tester.py b/utest/test/api/plugin_tester.py new file mode 100644 index 00000000..af90e679 --- /dev/null +++ b/utest/test/api/plugin_tester.py @@ -0,0 +1,16 @@ +from SeleniumLibrary.base import LibraryComponent, keyword + + +class plugin_tester(LibraryComponent): + + def __init__(se...
[ "utest/test/api/test_plugins.py::ExtendingSeleniumLibrary::test_plugin_as_last_in_init" ]
[ "utest/test/api/test_plugins.py::ExtendingSeleniumLibrary::test_comma_and_space", "utest/test/api/test_plugins.py::ExtendingSeleniumLibrary::test_comma_and_space_with_arg", "utest/test/api/test_plugins.py::ExtendingSeleniumLibrary::test_no_libraries", "utest/test/api/test_plugins.py::ExtendingSeleniumLibrary:...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/robotframework/SeleniumLibrary/blob...
75059fd4cf4894bb5c8b1e59e352753dd7d150a6
2023-02-01 21:46:18
docker.io/swerebenchv2/getmoto-moto:5895-75059fd
getmoto__moto-5895
Method: GlueBackend.batch_get_crawlers(self, crawler_names) Location: moto/glue/models.py Inputs: crawler_names – list of str crawler identifiers to look up. Outputs: list of dict objects, each representing a crawler whose name appears in crawler_names. Names not present are simply omitted. Description: Retrieves the s...
python
Apache-2.0
diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index b96d3ba7a..a28096568 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -765,9 +765,27 @@ class LambdaFunction(CloudFormationModel, DockerModel): "host.docker.internal": "host-gateway" ...
AWSLambda: Try to pull images from multiple repositories Closes #5886 When invoking an AWSLambda function, the requested image can be found in one of these repos: - `mlupin/docker-lambda` (the repo with up-to-date AWSLambda images - `lambci/lambda` (the repo with older/outdated AWSLambda images This PR ensu...
lambci/lambda docker images are deprecated lambci/lambda docker images are deprecated and only support nodejs images until version 12. https://github.com/lambci/docker-lambda Those base images should be replaced with aws lambda base image. https://github.com/aws/aws-lambda-base-images
getmoto/moto
diff --git a/tests/test_awslambda/test_lambda_invoke.py b/tests/test_awslambda/test_lambda_invoke.py index b7294ec7b..7741f679a 100644 --- a/tests/test_awslambda/test_lambda_invoke.py +++ b/tests/test_awslambda/test_lambda_invoke.py @@ -123,7 +123,7 @@ def test_invoke_event_function(): function_name = str(uuid4())...
[ "tests/test_glue/test_glue.py::test_batch_get_crawlers" ]
[ "tests/test_awslambda/test_lambda_invoke.py::test_invoke_dryrun_function", "tests/test_awslambda/test_lambda_invoke.py::test_invoke_lambda_error", "tests/test_glue/test_glue.py::test_create_job", "tests/test_glue/test_glue.py::test_create_job_default_argument_not_provided", "tests/test_glue/test_glue.py::te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/lambci/docker-lambda", "https...
4f4217c164eb99df5c09a3882b8c7222d7c74d6c
2024-08-20 17:36:56
docker.io/swerebenchv2/more-itertools-more-itertools:903-4f4217c
more-itertools__more-itertools-903
Function: all_equal(iterable, key=None) Location: more_itertools.recipes.all_equal Inputs: - iterable: any iterable of elements to be compared. - key (optional): a callable that extracts a comparison key from each element; if None, elements themselves are compared. Outputs: bool – returns **True** if the iterable is ...
python
MIT
diff --git a/more_itertools/recipes.py b/more_itertools/recipes.py index f7db03b..67f76fa 100644 --- a/more_itertools/recipes.py +++ b/more_itertools/recipes.py @@ -222,6 +222,7 @@ def all_equal(iterable, key=None): for first in iterator: for second in iterator: return False + return T...
Reduce groupby.__next__ calls in all_equal This PR implements @rhettinger's suggestion in issue 902. Closes #902
One more nit on all_equal() I missed something during the code review. There is an extra unnecessary `next` call in the first for-loop. This is easily solved by adding another `return True`. ``` def all_equal(iterable, key=None): iterator = groupby(iterable, key) for first in iterator: for seco...
more-itertools/more-itertools
diff --git a/tests/test_recipes.py b/tests/test_recipes.py index d3762d4..684a6fc 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -2,11 +2,12 @@ from decimal import Decimal from doctest import DocTestSuite from fractions import Fraction from functools import reduce -from itertools import combinatio...
[ "tests/test_recipes.py::AllEqualTests::test_groupby_calls" ]
[ "tests/test_recipes.py::TakeTests::test_negative_take", "tests/test_recipes.py::TakeTests::test_null_take", "tests/test_recipes.py::TakeTests::test_simple_take", "tests/test_recipes.py::TakeTests::test_take_too_much", "tests/test_recipes.py::TabulateTests::test_count", "tests/test_recipes.py::TabulateTest...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
8a47580a00f3404e7071b9ecfec3692a1e18309f
2024-11-02 17:15:44
docker.io/swerebenchv2/pallets-click:2796-8a47580
pallets__click-2796
Method: ParamType.get_metavar(self, param: click.Parameter, ctx: click.Context) → str | None Location: src/click/types.py → class ParamType Inputs: - param: the Parameter object (Option or Argument) for which the metavar is being generated. - ctx: the current Click Context, used for token normalization or other cont...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 057d700..8746924 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -88,13 +88,16 @@ Unreleased - Parameters cannot be required nor prompted or an error is raised. - A warning will be printed when something deprecated is used. -- Add a ``catch_exceptions`` param...
Expand `Choice` token normalization + make generic When looking into #2210, I wasn't sure it was a good idea to show an enum's name to the user. For example: ```python class MyEnum(enum.Enum): ONE = 1 TWO = 2 THREE = 3 ALSO_ONE = 1 ``` Would result the following if an invalid value is shown: ``` Err...
Python Enum support for click.Choice I can work around it as [described here](https://pythonpath.wordpress.com/2012/01/26/python-enum-with-namedtuple/) it would be great if `Choice` supported Python Enum. Unless of course I have missed something completely fundamental :-)
pallets/click
diff --git a/tests/test_basic.py b/tests/test_basic.py index d68b962..b84ae73 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1,3 +1,6 @@ +from __future__ import annotations + +import enum import os from itertools import chain @@ -403,6 +406,82 @@ def test_choice_argument(runner): assert "{foo|b...
[ "tests/test_basic.py::test_choice_argument_enum", "tests/test_basic.py::test_choice_argument_custom_type", "tests/test_basic.py::test_choice_argument_none", "tests/test_formatting.py::test_formatting_custom_type_metavar", "tests/test_normalization.py::test_choice_normalization", "tests/test_types.py::test...
[ "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_string_option[ar...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://pythonpath.wordpress.com/2012/01/26/python-enum-...
433726339475dddb341cceb234c9b6bf185baefd
2021-05-31 15:40:34
docker.io/swerebenchv2/wtforms-wtforms:694-4337263
wtforms__wtforms-694
Method: FieldList.__init__(self, unbound_field, validators=None, min_entries=0, max_entries=None, separator='-', default=(), **kwargs) Location: wtforms/fields/core.py – class FieldList(Field) Inputs: - **unbound_field**: an UnboundField instance that will be bound for each entry. - **validators** *(optional)*: list of...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 6723a9a..79ce1bb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,7 @@ Unreleased - Support for optgroups in :class:`~fields.SelectField` and :class:`~fields.SelectMultipleField`. :issue:`656` :pr:`667` - Minor documentation fix. :issue:`701` +- Custom se...
Add `separator` to FieldList As of right now there is no way of creating fully custom names and ids for nested forms that contain a field list since the `FieldList` contains a hardcoded separator. This PR adds the ability to set a custom separator for a `FieldList` similar to `FormField`. This PR also fixes #681 an...
Changing FormField seperator parameter to non-default breaks iteration over enclosing FieldList I have a use case for generating a FieldList of a variable number of simple forms each enclosed in a FormField. I have attempted setting the separator parameter of the FormField. Changing FormField separator parameter to non...
wtforms/wtforms
diff --git a/tests/fields/test_list.py b/tests/fields/test_list.py index 4df373e..d04a5d8 100644 --- a/tests/fields/test_list.py +++ b/tests/fields/test_list.py @@ -103,6 +103,68 @@ def test_enclosed_subform_custom_name(): assert o.subforms[0].foo.data == "default" +def test_custom_separator(): + F = make_f...
[ "tests/fields/test_list.py::test_custom_separator", "tests/fields/test_list.py::test_enclosed_subform_list_separator", "tests/fields/test_list.py::test_enclosed_subform_uniform_separators", "tests/fields/test_list.py::test_enclosed_subform_mixed_separators" ]
[ "tests/fields/test_list.py::test_form", "tests/fields/test_list.py::test_enclosed_subform", "tests/fields/test_list.py::test_enclosed_subform_custom_name", "tests/fields/test_list.py::test_entry_management", "tests/fields/test_list.py::test_min_max_entries", "tests/fields/test_list.py::test_validators", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
836518a390464a6a7eab8353f17091fc8e0a6fa5
2023-05-02 20:37:56
docker.io/swerebenchv2/pytask-dev-pytask:373-836518a
pytask-dev__pytask-373
Function: import_path(path: Path, root: Path) -> ModuleType Location: _pytask.path Inputs: - **path** – Path object pointing to the Python file that should be imported. - **root** – Path object that defines the project root; used to compute the module’s dotted name. Outputs: - Returns the imported module object. The ...
python
custom-check-github
diff --git a/src/_pytask/collect.py b/src/_pytask/collect.py index f71cf80..7fd1dff 100644 --- a/src/_pytask/collect.py +++ b/src/_pytask/collect.py @@ -7,7 +7,6 @@ import os import sys import time import warnings -from importlib import util as importlib_util from pathlib import Path from typing import Any from t...
Fix import mechanism for task modules. Closes #374. Corresponding issue in pytest: `https://github.com/pytest-dev/pytest/issues/7856` I get this obscure error from within dataclasses: ``` ────────────────────────── Failures during collection ────────────────────────── ───────── Could not collect test_collect...
BUG: module.__name__ not set set correctly during exec in test collection - [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pytask. - [x] (optional) I have confirmed this bug exists on the `main` branch of pytask. --- #### Problem...
pytask-dev/pytask
diff --git a/tests/test_collect.py b/tests/test_collect.py index 7f11492..9a10831 100644 --- a/tests/test_collect.py +++ b/tests/test_collect.py @@ -37,6 +37,46 @@ def test_collect_filepathnode_with_relative_path(tmp_path): assert tmp_path.joinpath("out.txt").read_text() == "Relative paths work." +@pytest.mark...
[ "tests/test_collect.py::test_collect_nodes_with_the_same_name", "tests/test_collect.py::test_pytask_collect_node[test", "tests/test_collect.py::test_pytask_collect_node_does_not_raise_error_if_path_is_not_normalized[True]", "tests/test_collect.py::test_pytask_collect_node_does_not_raise_error_if_path_is_not_n...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pytask-dev/pytask/blob/9b2d93ee1037...
34f4a47a466ca3bd50c040a6f4e089c4f1ecfcd1
2025-06-22 13:14:57
docker.io/swerebenchv2/quantecon-quantecon.py:769-34f4a47
quantecon__quantecon.py-769
No new interfaces are introduced.
python
MIT
diff --git a/quantecon/optimize/lcp_lemke.py b/quantecon/optimize/lcp_lemke.py index 2ee54f9..b0464ec 100644 --- a/quantecon/optimize/lcp_lemke.py +++ b/quantecon/optimize/lcp_lemke.py @@ -150,7 +150,7 @@ def lcp_lemke(M, q, d=None, max_iter=10**6, piv_options=PivOptions(), ratio = q[i] / d[i] if rati...
FIX: lcp_lemke: Fix bug in first iteration Fix #768 Bug spotted by Deep Research by ChatGPT o4-mini-high. (Given the failure reported in #768, I prompted ChatGPT to read the relevant files and identify the bug; it successfully did.)
BUG: lcp_lemke Bug found by an instance in some benchmark script generated by ChatGPT: ```python import numpy as np from quantecon.optimize import lcp_lemke n = 10 seed = 0 rng = np.random.RandomState(seed) A = rng.standard_normal((n, n)) M = A.T @ A + np.eye(n) q = rng.standard_normal(n) res = lcp_lemke(M, q) res.z ...
QuantEcon/QuantEcon.py
diff --git a/quantecon/optimize/tests/test_lcp_lemke.py b/quantecon/optimize/tests/test_lcp_lemke.py index 15d2707..457b252 100644 --- a/quantecon/optimize/tests/test_lcp_lemke.py +++ b/quantecon/optimize/tests/test_lcp_lemke.py @@ -107,3 +107,13 @@ class TestLCPLemke: res = lcp_lemke(M, q) _assert_...
[ "quantecon/optimize/tests/test_lcp_lemke.py::TestLCPLemke::test_bug_768" ]
[ "quantecon/optimize/tests/test_lcp_lemke.py::TestLCPLemke::test_Murty_Ex_2_8", "quantecon/optimize/tests/test_lcp_lemke.py::TestLCPLemke::test_Murty_Ex_2_9", "quantecon/optimize/tests/test_lcp_lemke.py::TestLCPLemke::test_Kostreva_Ex_1", "quantecon/optimize/tests/test_lcp_lemke.py::TestLCPLemke::test_Kostreva...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
cedb00b335cfbacfa370c6c907d12cc05da7ed39
2016-04-20 18:36:52
docker.io/swerebenchv2/boto-botocore:887-cedb00b
boto__botocore-887
Method: S3SigV4Auth.add_auth(self, request) Location: botocore/auth.py Inputs: request – an AWSRequest instance whose .headers dict may contain arbitrary HTTP headers (e.g., “expect”, “user-agent”, etc.). Outputs: The request.headers dictionary is updated with an “Authorization” entry that contains a SigV4 signature **...
python
Apache-2.0
diff --git a/botocore/auth.py b/botocore/auth.py index 3621016fd..c9a660935 100644 --- a/botocore/auth.py +++ b/botocore/auth.py @@ -44,7 +44,8 @@ PAYLOAD_BUFFER = 1024 * 1024 ISO8601 = '%Y-%m-%dT%H:%M:%SZ' SIGV4_TIMESTAMP = '%Y%m%dT%H%M%SZ' SIGNED_HEADERS_BLACKLIST = [ - 'expect' + 'expect', + 'user-agent'...
Do not sign user-agent The user agent may be changed somewhere along the line, so we should not be signing it. #846 cc @kyleknap @jamesls
SignatureDoesNotMatch on first request i'm having a weird issue where the first request via boto results in a 403 Forbidden, while subsequent requests succeed. this is the result of the first request: ``` <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signat...
boto/botocore
diff --git a/tests/unit/auth/test_signers.py b/tests/unit/auth/test_signers.py index 6ce0e5259..54c7cd574 100644 --- a/tests/unit/auth/test_signers.py +++ b/tests/unit/auth/test_signers.py @@ -319,16 +319,22 @@ class TestS3SigV4Auth(BaseTestWithFixedDate): cqs = self.auth.canonical_query_string(request) ...
[ "tests/unit/auth/test_signers.py::TestS3SigV4Auth::test_blacklist_headers" ]
[ "tests/unit/auth/test_signers.py::TestHMACV1::test_bucket_operations", "tests/unit/auth/test_signers.py::TestHMACV1::test_duplicate_headers", "tests/unit/auth/test_signers.py::TestHMACV1::test_put", "tests/unit/auth/test_signers.py::TestHMACV1::test_query_string", "tests/unit/auth/test_signers.py::TestHMACV...
{ "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": [...
81cc5b8bf1ad2a44b0a042d059caab3ed802ed33
2020-11-19 19:47:10
docker.io/swerebenchv2/python-markdown-markdown:1071-81cc5b8
python-markdown__markdown-1071
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/change_log/index.md b/docs/change_log/index.md index bce97da..7edb2b9 100644 --- a/docs/change_log/index.md +++ b/docs/change_log/index.md @@ -5,6 +5,7 @@ Python-Markdown Change Log Under development: version 3.3.4 (a bug-fix release). +* Properly parse processing instructions in md_in_html (#107...
Properly parse processing instructions in md_in_html Empty tags do not have a `mardkown` attribute set on them. Therefore, there is no need to check the mdstack to determine behavior. If we are in any md_in_html state (regardless of block, span, etc) the behavior is the same. Fixes #1070.
PI (<? ?>) is escaped in error with md_in_html In any of the following source documents: ``` <div markdown=1> <?php print("foo"); > </div> ``` ``` <div markdown=1> <?php print("foo"); > </div> ``` ``` <div markdown=1><?php print("foo"); ></div> ``` We get the same output: ```html <div> <p...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_md_in_html.py b/tests/test_syntax/extensions/test_md_in_html.py index 7786b80..8655607 100644 --- a/tests/test_syntax/extensions/test_md_in_html.py +++ b/tests/test_syntax/extensions/test_md_in_html.py @@ -634,6 +634,56 @@ class TestMdInHTML(TestCase): ) ...
[ "tests/test_syntax/extensions/test_md_in_html.py::TestMdInHTML::test_md1_PI_oneliner" ]
[ "tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_adjacent_raw_blocks", "tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_adjacent_raw_blocks_with_blank_lines", "tests/test_syntax/extensions/test_md_in_html.py::TestHTMLBlocks::test_amperstand", "tests/test_syntax/exte...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.python.org/3/library/xml.etree.elementtre...
b7e9f60a4b3f5c8bd348fb66614199e19ef2cbf5
2022-04-06 06:37:19
docker.io/swerebenchv2/hypothesisworks-hypothesis:3284-b7e9f60
hypothesisworks__hypothesis-3284
Function: repr_call(f, args, kwargs, reorder=True) Location: hypothesis.internal.reflection.repr_call Inputs: - **f**: callable – the function whose call is being represented. - **args**: tuple – positional arguments to be displayed. - **kwargs**: dict – keyword arguments to be displayed. - **reorder** (optional, bool,...
python
custom-check-github
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 000000000..af51f5ce9 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: minor + +This release makes ``st.functions(pure=True)`` less noisy (:issue:`3253`), +and generally improves pretty-p...
Quieter and prettier `functions()` strategy Fixes #3253. This includes some other function-related cleanup related to helper functions - mostly replacing the `arg_string` helper with a `repr_call` helper, since that's what we always use it for. The new helper also knows to wrap lambdas in parens to make the call sy...
`st.functions(..., pure=True)` very noisy The generated function output its printed at every invocation, when once per distinct input is sufficient with pure functions. Settings can be used to quiet it down but then a lot of desirable output (including `h.note()`s) is also lost. minimal example: ```python import h...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_functions.py b/hypothesis-python/tests/cover/test_functions.py index 369aeebb4..ffdd42aee 100644 --- a/hypothesis-python/tests/cover/test_functions.py +++ b/hypothesis-python/tests/cover/test_functions.py @@ -12,8 +12,9 @@ from inspect import getfullargspec import pyte...
[ "hypothesis-python/tests/cover/test_functions.py::test_functions_no_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_with_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_kw_args", "hypothesis-python/tests/cover/test_functions.py::test_functions_argless_lambda", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
bc03e6fece6f86ce2fe998aee82e13a08eed4890
2019-01-21 09:25:18
docker.io/swerebenchv2/kayak-pypika:206-bc03e6f
kayak__pypika-206
Function: ClickHouseQuery() Location: pypika/dialects.py → class ClickHouseQuery(Query) Inputs: None (default constructor, no parameters) Outputs: Returns an instance of a Query subclass configured for the ClickHouse dialect. The object supports the standard Query API (select, from_, where, groupby, etc.) and its strin...
python
Apache-2.0
diff --git a/pypika/__init__.py b/pypika/__init__.py index 2e3ec18..2610501 100644 --- a/pypika/__init__.py +++ b/pypika/__init__.py @@ -32,12 +32,14 @@ This contains all of the utility classes such as exceptions and decorators. """ # noinspection PyUnresolvedReferences from .dialects import ( + ClickHouseQuery, ...
Disable group by alias functionality for Oracle and SQL Server builders I just realised functionality to support this was added in https://github.com/kayak/pypika/pull/193, so this issue was a quick fix. Fixes #89
Disable group by alias for Oracle and SQL Server dialects as it is not supported MySQL, PostgreSQL (and Redshift I believe, as it is based on PostgreSQL) and Vertica support grouping by an alias defined in a select due to the order that certain parts of the query are executed: https://stackoverflow.com/a/3841804/12243...
kayak/pypika
diff --git a/pypika/tests/test_selects.py b/pypika/tests/test_selects.py index bdbad97..0c68bd3 100644 --- a/pypika/tests/test_selects.py +++ b/pypika/tests/test_selects.py @@ -17,6 +17,8 @@ from pypika import ( Table, Tables, VerticaQuery, + ClickHouseQuery, + SQLLiteQuery, functions as fn, ...
[ "pypika/tests/test_selects.py::SelectTests::test_empty_query", "pypika/tests/test_selects.py::SelectTests::test_mssql_query_uses_double_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_mysql_query_uses_backtick_quote_chars", "pypika/tests/test_selects.py::SelectTests::test_oracle_query_uses_doub...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://stackoverflow.com/a/3841804/1224372" ], ...
1502ebdf74def3ff6909a3cf1856068b5b9ce586
2023-10-17 15:39:57
docker.io/swerebenchv2/sdv-dev-rdt:725-1502ebd
sdv-dev__rdt-725
Method: GaussianNormalizer.__init__(self, distribution: str = 'truncnorm', missing_value_generation: str | None = None, **kwargs) Location: rdt/transformers/numerical.py Inputs: - **distribution**: string identifier of the univariate distribution. Accepts legacy names ('gaussian', 'student_t', 'truncated_gaussian') wh...
python
custom-check-github
diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py index e6b94f7..214714e 100644 --- a/rdt/hyper_transformer.py +++ b/rdt/hyper_transformer.py @@ -593,6 +593,12 @@ class HyperTransformer: if not self._fitted or self._modified_config: raise NotFittedError(self._NOT_FIT_MESSAGE) + ...
Remove unnecessary `OneHotEncoder` when there are nan values Resolve #616.
Unnecessary warning in `OneHotEncoder` when there are `nan` values ### Environment Details * RDT version: 1.3.0 * Python version: 3.8 * Operating System: Linux (Colab Notebook) ### Error Description When I use a `OneHotEncoder` that includes `nan` values, the transformer correctly works. If I save/reload the o...
sdv-dev/RDT
diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py index f773eb0..03768b6 100644 --- a/tests/integration/test_hyper_transformer.py +++ b/tests/integration/test_hyper_transformer.py @@ -87,23 +87,41 @@ def get_transformed_data(): 1.262304e+18, 1.26498...
[ "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_default_inputs", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_field_transformers", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_multiple_detects", "tests/integration/test_hyper_tran...
[ "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_single_category", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_categorical_encoders_with_booleans", "tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_dtype_category", "tests/integration/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/RDT/blob/master/rdt/transfo...
364a6256c0c57abae825a0c070fa4c19d6430d82
2025-01-26 17:01:54
docker.io/swerebenchv2/narwhals-dev-narwhals:1869-364a625
narwhals-dev__narwhals-1869
Method: PolarsSelectors.by_dtype(self, dtypes: Iterable[DType]) -> PolarsExpr Location: narwhals/_polars/namespace.py, class PolarsSelectors Inputs: - **self** – the PolarsSelectors namespace instance. - **dtypes** – an iterable of Narwhals ``DType`` objects **or** ``DType`` subclasses (e.g. ``nw.Datetime`` or ``nw....
python
MIT
diff --git a/narwhals/_polars/namespace.py b/narwhals/_polars/namespace.py index 32e53b37..005af360 100644 --- a/narwhals/_polars/namespace.py +++ b/narwhals/_polars/namespace.py @@ -13,6 +13,7 @@ import polars as pl from narwhals._expression_parsing import parse_into_exprs from narwhals._polars.utils import extract_...
fix: `nw.selectors.by_dtype(nw.Datetime)` was excluding tz-aware for Polars <!-- # Thanks for contributing a pull request! ## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md --> closes #1313 ## What type of PR is this? (check all applic...
selectors.by_dtype doesn't select tz-aware columns ```python import polars as pl import pandas as pd import narwhals as nw import pyarrow as pa import numpy as np from datetime import datetime data = {'a': [datetime(2020, 1, 1), datetime(2020, 1, 2)], 'c': [4,5]} df = nw.from_native(pd.DataFrame(data)).with...
narwhals-dev/narwhals
diff --git a/tests/selectors_test.py b/tests/selectors_test.py index 99740d22..9e16da5a 100644 --- a/tests/selectors_test.py +++ b/tests/selectors_test.py @@ -1,6 +1,7 @@ from __future__ import annotations import re +from datetime import datetime import pytest @@ -15,6 +16,7 @@ from tests.utils import POLARS_V...
[ "tests/selectors_test.py::test_tz_aware[polars[lazy]]", "tests/selectors_test.py::test_tz_aware[polars[eager]]" ]
[ "tests/selectors_test.py::test_set_ops[polars[eager]-selector6-expected6]", "tests/selectors_test.py::test_categorical[pandas[nullable]]", "tests/selectors_test.py::test_boolean[polars[lazy]]", "tests/selectors_test.py::test_string[pyarrow]", "tests/selectors_test.py::test_set_ops[pandas[nullable]-selector2...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
f0e8e14ae1019cacaecf7c5f20fee879640f55e9
2018-07-27 18:29:43
docker.io/swerebenchv2/pydicom-pydicom:690-f0e8e14
pydicom__pydicom-690
Method: Dataset.ensure_file_meta(self) Location: pydicom.dataset.Dataset.ensure_file_meta Inputs: None (operates on the Dataset instance). Outputs: Creates a ``file_meta`` attribute on the Dataset if it does not exist and initializes it to an empty ``Dataset``. No return value. Description: Guarantees that a Datase...
python
custom-check-github
diff --git a/doc/whatsnew/v1.2.0.rst b/doc/whatsnew/v1.2.0.rst index ee9b21c3f..042a27f1b 100644 --- a/doc/whatsnew/v1.2.0.rst +++ b/doc/whatsnew/v1.2.0.rst @@ -14,6 +14,8 @@ Enhancements * ``DeferredDataElement`` class deprecated and will be removed in v1.3 (:issue:`291`) +* Added ``Dataset.fix_meta_info()`` (:i...
[MRG+1] Do not handle private tags in repeater range as repeater tags - happened for Implicit Little Endian transfer syntax: incorrect VR was taken from the repeater tags - fixes #689 <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github...
Private tags -- Exception: unhashable type 'list' #### Description While reading a dicom get problems with private tags, error: TypeError: With tag (50f1, 100a) got exception: unhashable type: 'list' #### Steps/Code to Reproduce Simply read file with dicomio.read_file and print. #### Expected Results Print...
pydicom/pydicom
diff --git a/pydicom/tests/test_charset.py b/pydicom/tests/test_charset.py index dbd5f1b88..22f8f70f8 100644 --- a/pydicom/tests/test_charset.py +++ b/pydicom/tests/test_charset.py @@ -3,12 +3,13 @@ import unittest +import pytest + from pydicom.data import get_charset_files from pydicom.data import get_testdata_...
[ "pydicom/tests/test_charset.py::CharsetTests::test_bad_charset", "pydicom/tests/test_charset.py::CharsetTests::test_encoding_with_specific_tags", "pydicom/tests/test_charset.py::CharsetTests::test_encodings", "pydicom/tests/test_charset.py::CharsetTests::test_explicit_iso2022_ir6", "pydicom/tests/test_chars...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.85, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
e10cb029580f94bb9a1e07d6e49d6036afe02e27
2020-11-24 20:53:05
docker.io/swerebenchv2/alteryx-evalml:1467-e10cb02
alteryx__evalml-1467
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index cfc121f8..b4fb0ea6 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -25,6 +25,7 @@ Release Notes * Updated enum classes to show possible enum values as attributes :pr:`1391` * Updated call...
When baseline score is close to 0, set percent improved to nan Fixes #1458 **Problem** In #1458 @rpeck found a dataset where, for the baseline model (which predicts the mean) `ExpVariance` came out to 0 on 2 of the 3 CV folds, but came out to ~1e-16 on the other CV fold. This resulted in the percent improvement sc...
For some datasets, percent_better_than_baseline_all_objectives is huge because baseline values are infinitesimal I tested the `percent_better_than_baseline_all_objectives` values on a few datasets and found that `ExpVariance` on two of them was enormous. On `retail_data.csv` it's `1.4857769515459812e+18`. Turns out ...
alteryx/evalml
diff --git a/evalml/tests/objective_tests/test_standard_metrics.py b/evalml/tests/objective_tests/test_standard_metrics.py index de36568e..c5b65577 100644 --- a/evalml/tests/objective_tests/test_standard_metrics.py +++ b/evalml/tests/objective_tests/test_standard_metrics.py @@ -14,6 +14,7 @@ from evalml.objectives impo...
[ "evalml/tests/objective_tests/test_standard_metrics.py::test_calculate_percent_difference_small" ]
[ "evalml/tests/objective_tests/test_standard_metrics.py::test_calculate_percent_difference[ExpVariance]", "evalml/tests/objective_tests/test_standard_metrics.py::test_calculate_percent_difference[MaxError]", "evalml/tests/objective_tests/test_standard_metrics.py::test_calculate_percent_difference[MedianAE]", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
3432392d35757fdcebd00154288171977ed10d38
2024-05-02 16:28:42
docker.io/swerebenchv2/stac-utils-pystac:1337-3432392
stac-utils__pystac-1337
Method: Link.get_href(self, transform_href: bool = True) Location: pystac/link.py Inputs: `self` – the Link instance; `transform_href` – optional bool controlling whether relative hrefs are resolved against the object's root (default True). Outputs: Returns the hyperlink (str) if present, otherwise `None`. When `...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e866f36..45b38441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,10 @@ ## [Unreleased] -- Allow object ID as input for getting APILayoutStrategy hrefs and add `items`, `collections`, `search`, `conformance`, `service_desc` and `service_doc` href methods. ([#...
fix: don't transform_href in __getstate__ **Related Issue(s):** - Closes #1336 - Relates to #960 **Description:** `__getstate__` was doing too much work by trying to resolve the root. @jsignell we'll want to release a PATCH once this merges, as this will be a good fix to get out in the wild. **PR Checklis...
New pickling methods loads all absolute links Since the PR https://github.com/stac-utils/pystac/pull/1285 and more specifically this [change](https://github.com/stac-utils/pystac/pull/1285/files#diff-c235f14269d2641c490a6ec16abb7ab96c1f7d4e2ca4514b0ade666b2094469eR179), it seems that a deepcopy of an item will load all...
stac-utils/pystac
diff --git a/tests/test_item.py b/tests/test_item.py index 3eab3476..db907db7 100644 --- a/tests/test_item.py +++ b/tests/test_item.py @@ -1,5 +1,6 @@ from __future__ import annotations +import copy import json import os import pickle @@ -682,3 +683,12 @@ def test_pickle_with_only_href_links(item: Item) -> None: ...
[ "tests/test_item.py::test_copy_with_unresolveable_root" ]
[ "tests/test_item.py::ItemTest::test_0_9_item_with_no_extensions_does_not_read_collection_data", "tests/test_item.py::ItemTest::test_asset_absolute_href", "tests/test_item.py::ItemTest::test_asset_absolute_href_no_item_self", "tests/test_item.py::ItemTest::test_clearing_collection", "tests/test_item.py::Item...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/stac-utils/pystac/pull/1285", "...