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
6cb4ac1197520a1f91c7e50bdd9fba0c6b83e255
2019-08-21 03:54:37
docker.io/swerebenchv2/pypa-packaging:185-6cb4ac1
pypa__packaging-185
Function: _cpython_abi(py_version) Location: packaging/tags.py Inputs: - **py_version**: a tuple of two ints representing the major and minor version of CPython (e.g., (3, 7)). The function may also read runtime configuration via `sysconfig.get_config_var` for keys `"SOABI"`, `"Py_DEBUG"`, `"WITH_PYMALLOC"`, `"Py_UNIC...
python
custom-check-github
diff --git a/.gitignore b/.gitignore index bd4a65a..498bce1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ .idea .venv* +.pytest_cache/ __pycache__/ _build/ build/ diff --git a/packaging/tags.py b/packaging/tags.py index f0ee315..cd1a83c 100644 --- a/packaging/tags.py +++ b/packaging/tags.py @@ -81,20 ...
Use appropriate fallbacks for CPython ABI tag Closes #181
packaging.tags does not include `m` for abi tag in Python 3.7 (and below) **Environment** **OS**: Windows 10 **Packaging version**: 19.1 **Python version**: `Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]`, from [nuget](https://www.nuget.org/packages/python) **Issue**: ...
pypa/packaging
diff --git a/tests/test_tags.py b/tests/test_tags.py index 4cc8d88..e5662e6 100644 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -193,60 +193,79 @@ def test_macos_arch_detection(arch, monkeypatch): assert tags._mac_platforms((10, 14))[0].endswith(arch) -def test_cpython_abi_py3(monkeypatch): - has_so...
[ "tests/test_tags.py::test_cpython_abi_debug[None-True-True]", "tests/test_tags.py::test_cpython_abi_pymalloc[None-version2-True]", "tests/test_tags.py::test_cpython_abi_pymalloc[1-version3-False]", "tests/test_tags.py::test_cpython_abi_wide_unicode[None-1114111-version2-True]", "tests/test_tags.py::test_cpy...
[ "tests/test_tags.py::test_tag_lowercasing", "tests/test_tags.py::test_tag_equality", "tests/test_tags.py::test_tag_hashing", "tests/test_tags.py::test_tag_hash_equality", "tests/test_tags.py::test_tag_str", "tests/test_tags.py::test_tag_repr", "tests/test_tags.py::test_tag_attribute_access", "tests/te...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pypa/packaging/blob/9bc25964dce3b47...
67f3c1bcb4fad913505d2c34ce7a6835869ff77b
2024-02-29 15:52:59
docker.io/swerebenchv2/zopefoundation-restrictedpython:272-67f3c1b
zopefoundation__restrictedpython-272
Function: compile_restricted_single(source, filename='<string>', mode='single') Location: RestrictedPython.compile_restricted_single Inputs: - **source** (str): Python source to compile. Must be a single interactive statement or a block of statements. - **filename** (str, optional): Name reported in error messages; def...
python
custom-check-github
diff --git a/CHANGES.rst b/CHANGES.rst index 24ed32f..6018a60 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ Changes - Allow to use the package with Python 3.13 -- Caution: No security audit has been done so far. +- Add support for single mode statements / execution. 7.1 (2024-03-14) diff --git a...
enable single mode resolves #271
Unable to compile single expressions ## PROBLEM REPORT Attempted a simple `compile_restricted` using `single`. ```python x = 50 code = compile_restricted('x + 25', '<string>', 'single') ``` ### What I did: Attempted a simple comparison with `compile()`. Also, compared it with `exec`. ```python x = 50...
zopefoundation/RestrictedPython
diff --git a/tests/test_compile.py b/tests/test_compile.py index 3dacd73..603ad84 100644 --- a/tests/test_compile.py +++ b/tests/test_compile.py @@ -160,13 +160,24 @@ def test_compile__compile_restricted_eval__used_names(): assert result.used_names == {'a': True, 'b': True, 'x': True, 'func': True} -def test_c...
[ "tests/test_compile.py::test_compile__compile_restricted_single__1", "tests/test_compile.py::test_compile__compile_restricted__2" ]
[ "tests/test_compile.py::test_compile__compile_restricted_invalid_code_input", "tests/test_compile.py::test_compile__compile_restricted_invalid_policy_input", "tests/test_compile.py::test_compile__compile_restricted_invalid_mode_input", "tests/test_compile.py::test_compile__invalid_syntax", "tests/test_compi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
5c424466176c33f2cfc3e99fca3a785eaa0f7b49
2020-01-29 16:35:23
docker.io/swerebenchv2/scoutapp-scout-apm-python:460-5c42446
scoutapp__scout_apm_python-460
Function: integrate_scout(hug_module_name, config) Location: src/scout_apm/hug.py Inputs: - **hug_module_name** (str): The name of the Python module that contains the Hug API definitions. Used to locate the Hug HTTP interface. - **config** (dict or Scout configuration object): Configuration passed to Scout’s core API; ...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index c6ff089..066c00e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,12 @@ ### Added -- Improved Falcon integration: tracing is automatically disabled if - installation fails, and callable class-based responders are supported. +- Improve Falcon integration: traci...
Add Hug integration Fixes #336. Hug uses Falcon under the hood, so this builds on top of it to provide a Hug integration with a separate interface.
Instrument hug Hug was reported used by 1% of developers in the [Python developers survey 2018](https://www.jetbrains.com/research/python-developers-survey-2018/). We should support it.
scoutapp/scout_apm_python
diff --git a/tests/integration/test_falcon.py b/tests/integration/test_falcon.py index e7e8012..ed96105 100644 --- a/tests/integration/test_falcon.py +++ b/tests/integration/test_falcon.py @@ -125,11 +125,12 @@ def test_home(tracked_requests): tracked_request = tracked_requests[0] assert tracked_request.tags[...
[ "tests/integration/test_falcon.py::test_set_api_wrong_type", "tests/integration/test_falcon.py::test_home", "tests/integration/test_falcon.py::test_home_without_set_api", "tests/integration/test_falcon.py::test_user_ip[headers0-None-None]", "tests/integration/test_falcon.py::test_user_ip[headers1-1.1.1.1-1....
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://www.jetbrains.com/research/python-developers-s...
43b925e66a8105eb6418bdcd88c44d8b69811b7c
2022-06-23 17:10:59
docker.io/swerebenchv2/pyomo-pyomo:2444-43b925e
pyomo__pyomo-2444
Method: value(obj, exception=True) Location: pyomo.core.expr.numvalue.value Inputs: obj – any Python object or Pyomo numeric expression; exception – bool flag (default True) controlling whether to raise on failure. Outputs: Returns the numeric value of the object (as a Python scalar or Pyomo numeric constant). Ra...
python
custom-check-github
diff --git a/pyomo/core/expr/numvalue.py b/pyomo/core/expr/numvalue.py index e12bab05f..88e1423f4 100644 --- a/pyomo/core/expr/numvalue.py +++ b/pyomo/core/expr/numvalue.py @@ -117,7 +117,7 @@ def value(obj, exception=True): # Test if we have a duck types for Pyomo expressions # try: - obj.is_expr...
`as_numeric()` on a non-`is_numeric_type()` Pyomo Object should raise an exception ## Fixes #2436 . ## Summary/Motivation: The current implementation of `as_numeric()` is too generous in the set of types that it considers to be "numeric." In particular, it accepts all objects that define a `is_expression_type` att...
Expression should validate rule result is an expression ## Summary As reported on the [pyomo-forum](https://groups.google.com/g/pyomo-forum/c/x3IEN3ybp9M/m/Wc3msdBTAgAJ), `Expression` components do not validate that the result from the rule is actually a valid numeric expression. In particular, the following does n...
Pyomo/pyomo
diff --git a/pyomo/core/tests/unit/test_numvalue.py b/pyomo/core/tests/unit/test_numvalue.py index 5a205b451..7ff9151db 100644 --- a/pyomo/core/tests/unit/test_numvalue.py +++ b/pyomo/core/tests/unit/test_numvalue.py @@ -12,19 +12,21 @@ # Unit Tests for Python numeric values # -import os -from os.path import abspat...
[ "pyomo/core/tests/unit/test_numvalue.py::Test_as_numeric::test_error1", "pyomo/core/tests/unit/test_numvalue.py::Test_as_numeric::test_non_numeric_component", "pyomo/core/tests/unit/test_numvalue.py::Test_as_numeric::test_none", "pyomo/core/tests/unit/test_numvalue.py::Test_as_numeric::test_string", "pyomo/...
[ "pyomo/core/tests/unit/test_numvalue.py::Test_is_numeric_data::test_NumericValue", "pyomo/core/tests/unit/test_numvalue.py::Test_is_numeric_data::test_error", "pyomo/core/tests/unit/test_numvalue.py::Test_is_numeric_data::test_float", "pyomo/core/tests/unit/test_numvalue.py::Test_is_numeric_data::test_int", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://groups.google.com/g/pyomo-forum/c/x3IEN3ybp9M/...
d2d3d08d0ab7e130deab2beee997965b896f9065
2025-04-02 14:19:05
docker.io/swerebenchv2/rhayes777-pyautofit:1127-d2d3d08
rhayes777__pyautofit-1127
Method: AggregateCSV.add_variable(self, argument: str, name: Optional[str] = None, value_types: list = (ValueType.Median,)) Location: autofit/aggregator/summary/aggregate_csv/__init__.py Inputs: - argument: model path string as used in samples/latent JSON (e.g., "galaxies.lens.bulge.centre.centre_0") - name: option...
python
MIT
diff --git a/autofit/aggregator/summary/aggregate_csv.py b/autofit/aggregator/summary/aggregate_csv.py deleted file mode 100644 index 72c1750cc..000000000 --- a/autofit/aggregator/summary/aggregate_csv.py +++ /dev/null @@ -1,305 +0,0 @@ -from abc import ABC, abstractmethod -from typing import Optional, Callable, List, ...
feature/csv error columns Resolves #1087 New usage: ```python aggregate_csv.add_variable( "galaxies.lens.bulge.centre.centre_0", value_types=[ValueType.Median, ValueType.ValueAt1Sigma], ) ``` Median is included by default
Aggregator for csv building You should first read this issue the `AggregatorPng`, as the general design and idea is the same: https://github.com/rhayes777/PyAutoFit/issues/1086 **Use Case:** Similar to .png splicing, it was common for me to want to view the numerical results of lens modeling in a single .csv ...
rhayes777/PyAutoFit
diff --git a/test_autofit/aggregator/summary_files/aggregate_summary/fit_1/files/latent/latent_summary.json b/test_autofit/aggregator/summary_files/aggregate_summary/fit_1/files/latent/latent_summary.json index dafef9958..4583ec3dd 100644 --- a/test_autofit/aggregator/summary_files/aggregate_summary/fit_1/files/latent/...
[ "test_autofit/aggregator/summary_files/test_aggregate_csv.py::test_writes", "test_autofit/aggregator/summary_files/test_aggregate_csv.py::test_add_label_colum", "test_autofit/aggregator/summary_files/test_aggregate_csv.py::test_add_column", "test_autofit/aggregator/summary_files/test_aggregate_csv.py::test_us...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.78, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/rhayes777/PyAutoFit/issues/1086", ...
275b9982674c3ee79a41184191baa4b1ad323e8e
2023-03-07 01:28:37
docker.io/swerebenchv2/tdameritrade-stumpy:806-275b998
tdameritrade__stumpy-806
Function: _idx_to_mp(I, T, m, normalize=True, p=2.0, T_subseq_isconstant=None) Location: stumpy/core.py Inputs: - **I**: numpy.ndarray of shape (k,) – integer indices of nearest neighbour subsequences (can contain -1 for invalid entries). - **T**: numpy.ndarray of shape (n,) – the original time series (numeric, may con...
python
custom-check-github
diff --git a/stumpy/core.py b/stumpy/core.py index 6c20f4e..287c0cc 100644 --- a/stumpy/core.py +++ b/stumpy/core.py @@ -2371,7 +2371,7 @@ def _get_mask_slices(mask): return slices -def _idx_to_mp(I, T, m, normalize=True, p=2.0): +def _idx_to_mp(I, T, m, normalize=True, p=2.0, T_subseq_isconstant=None): "...
fixed #803 missing param isconstant This PR fixes #803.
Adding `T_subseq_isconstant` to `core._idx_to_mp` Currently, the function `core._idx_to_mp` calculate profile value based on the profie indices. However, this calculation, from index to matrix profile, needs to consider the constant subseqs. Hence, we need to add the parma `T_subseq_isconstant` to `core._idx_to_mp` ...
TDAmeritrade/stumpy
diff --git a/tests/test_core.py b/tests/test_core.py index c1183b9..cb7a807 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -61,9 +61,14 @@ def naive_compute_mean_std_multidimensional(T, m): return M_T, Σ_T -def naive_idx_to_mp(I, T, m, normalize=True, p=2.0): +def naive_idx_to_mp(I, T, m, normaliz...
[ "tests/test_core.py::test_idx_to_mp" ]
[ "tests/test_core.py::test_check_bad_dtype", "tests/test_core.py::test_check_dtype_float64", "tests/test_core.py::test_get_max_window_size", "tests/test_core.py::test_check_window_size", "tests/test_core.py::test_check_max_window_size", "tests/test_core.py::test_njit_sliding_dot_product[Q0-T0]", "tests/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
eefcc70e351e6b36ddd0c722a930b31a0377bb69
2023-09-01 18:24:00
docker.io/swerebenchv2/mirumee-ariadne-codegen:203-eefcc70
mirumee__ariadne-codegen-203
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGELOG.md b/CHANGELOG.md index b2b48dd..4b3e349 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## UNRELEASED + +- Fixed generating operation string for nested inline fragments. + + ## 0.8.0 (2023-08-22) - Added support for `Upload` scalar. Added support for file upload...
Fix generating operation string for nested inline fragments Resolves #202
GQL operation string is missing fragment used in a query For the given GQL schema: ```graphql type ItemA { valueA: String } type ItemB { valueB: String } union Item = ItemA | ItemB type Container { name: String items: [Item] } type Query { container(id: ID!): Container } ``` and fol...
mirumee/ariadne-codegen
diff --git a/tests/client_generators/result_types_generator/schema.py b/tests/client_generators/result_types_generator/schema.py index a0932d0..1e5fa4e 100644 --- a/tests/client_generators/result_types_generator/schema.py +++ b/tests/client_generators/result_types_generator/schema.py @@ -32,6 +32,7 @@ type CustomType {...
[ "tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_fragment_used_within_nested_inline_fragment" ]
[ "tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments", "tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment", "tests/client_gen...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
1a7ad7f5a9ea0f34a67ec05493dbc86beb3c1cbd
2023-10-09 16:51:43
docker.io/swerebenchv2/meltano-sdk:2006-1a7ad7f
meltano__sdk-2006
Method: RecordMessage.from_dict(cls, data: dict[str, Any]) Location: singer_sdk._singerlib.messages.RecordMessage (class method) Inputs: A dictionary representing a RECORD message. Required keys are **"stream"** (str) and **"record"** (any JSON‑serialisable mapping). Optional keys include **"version"** (int) and **"t...
python
Apache-2.0
diff --git a/singer_sdk/_singerlib/messages.py b/singer_sdk/_singerlib/messages.py index 7fc17e57..02c0f30f 100644 --- a/singer_sdk/_singerlib/messages.py +++ b/singer_sdk/_singerlib/messages.py @@ -6,9 +6,10 @@ import enum import sys import typing as t from dataclasses import asdict, dataclass, field +from datetime...
fix: Parse record `time_extracted` into `datetime.datetime` instance Closes #1902 <!-- readthedocs-preview meltano-sdk start --> ---- :books: Documentation preview :books:: https://meltano-sdk--2006.org.readthedocs.build/en/2006/ <!-- readthedocs-preview meltano-sdk end -->
bug: mapper built on SDK errors with `AttributeError: 'str' object has no attribute 'tzinfo` ### Singer SDK Version 0.30.0 ### Is this a regression? - [ ] Yes ### Python Version NA ### Bug scope Mapping (stream maps, flattening, etc.) ### Operating System macOS 12.6, Python 3.11 ### Description I scaffolded ...
meltano/sdk
diff --git a/tests/_singerlib/test_messages.py b/tests/_singerlib/test_messages.py index 47a36aca..b4a33db4 100644 --- a/tests/_singerlib/test_messages.py +++ b/tests/_singerlib/test_messages.py @@ -1,15 +1,17 @@ from __future__ import annotations +import datetime import io from contextlib import redirect_stdout -...
[ "tests/_singerlib/test_messages.py::test_record_message_parse_time_extracted" ]
[ "tests/_singerlib/test_messages.py::test_exclude_null_dict", "tests/_singerlib/test_messages.py::test_format_message", "tests/_singerlib/test_messages.py::test_write_message", "tests/_singerlib/test_messages.py::test_record_message", "tests/_singerlib/test_messages.py::test_record_message_naive_time_extract...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
8ebebc36df35b308f3eade1a21f1f17e5de45ba2
2023-01-10 23:45:58
docker.io/swerebenchv2/softlayer-softlayer-python:1822-8ebebc3
softlayer__softlayer-python-1822
Method: NetworkManager.list_subnets(self, identifier=None, datacenter=None, version=0, subnet_type=None, network_space=None, ipv4=None, ipv6=None) Location: SoftLayer/managers/network.py Inputs: - identifier (optional str): subnet identifier to match. - datacenter (optional str): datacenter name to filter subnets. ...
python
MIT
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85f99f15..5d0d1277 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release Snapcraft and PyPi +name: Release Snapcraft and PyPi (Testing) on: release: @@ -9,7 +9,7 @@ jobs: r...
Fixes firewall cancel so it can properly do multiVlan firewalls Fixes #1768 `slcli firewall cancel` will now default to `vlan` firewalls, and have an option for server firewalls (which I haven't tested at the moment, but I assume works as it used to). Also added output to the help for `click.Choices` ![image](ht...
Improve firewall cancel command I can't seem to cancel this multiVlan firewall. I should be able to cancel it. The help message should also show the available types of firewalls. Also add that information to the detail command ``` $ slcli firewall cancel multiVlan:17438 This action will cancel a firewall from your a...
softlayer/softlayer-python
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index b8932a8f..b02b7303 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -71,9 +71,8 @@ def test_invoice_detail_csv_output_format(self): result_output = result.output.replace('\r', '...
[ "tests/CLI/modules/ticket_tests.py::TicketTests::test_list", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_upgrade_disk", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_upgrade_with_add_disk", "tests/managers/network_tests.py::NetworkTests::test_list_subnets_default" ]
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_bandwidth_pool_detail", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_licenses", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_order", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acco...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.92, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0d92e5aba67d3886172516caa12ce620afcc2404
2023-12-15 08:41:48
docker.io/swerebenchv2/systemd-mkosi:2181-0d92e5a
systemd__mkosi-2181
Method: MkosiConfig.__init__(self, *, build_sources: list[ConfigTree] = ..., build_sources_ephemeral: bool = ..., environment: dict[str, str] = ..., environment_files: list[Path] = [], with_tests: bool = ..., with_network: bool = ..., **other_fields) Location: mkosi/config.py (definition of class MkosiConfig) Input...
python
null
diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 6e714681..b57a014f 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1901,19 +1901,20 @@ def check_systemd_tool(*tools: PathString, version: str, reason: str, hint: Opti hint=f"Use ToolsTree=default to get a newer version of '{tools[0]}'.") ...
Add support for loading environment files Fixes #738 Was poking around the source, felt like a simple fix. Hopefully I haven't missed something 😅
Support environment file(s) Currently mkosi supports specification of environment variables via cli and inside the `mkosi.default` file. Both variants are tedious to use when variables are generated outside of mkosi. I propose a new option `EnvironmentFile` (`mkosi.env` as default) which takes multiple file paths tha...
systemd/mkosi
diff --git a/tests/test_config.py b/tests/test_config.py index 7539347d..b02bbf0b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -753,3 +753,45 @@ def test_specifiers(tmp_path: Path) -> None: def test_deterministic() -> None: assert MkosiConfig.default() == MkosiConfig.default() + + +def test_e...
[ "tests/test_config.py::test_environment", "tests/test_json.py::test_config" ]
[ "tests/test_config.py::test_compression_enum_creation", "tests/test_config.py::test_compression_enum_bool", "tests/test_config.py::test_compression_enum_str", "tests/test_config.py::test_parse_ini", "tests/test_config.py::test_parse_config", "tests/test_config.py::test_profiles", "tests/test_config.py::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
90850bc57314b2c7fa62b4917577b1a24a528f25
2023-12-10 19:42:21
docker.io/swerebenchv2/getmoto-moto:7111-90850bc
getmoto__moto-7111
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index ffac0db24..3f4310744 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -620,7 +620,7 @@ class LambdaFunction(CloudFormationModel, DockerModel): self.description = spec.get("Description", "") self.memory_size...
AWSLambda: PackageType now defaults to Zip Fixes #7108 We now verify this behaviour against AWS, our first Lambda test (hence the ridiculous number of test-changes compared to actual logic changes..)
mock_lambda missing PackageType attribute I'm trying to test against zip based only lambdas, but the return object is missing `PackageType`. test: ```python @mock_lambda def test_list_zipped_lambdas(self): self.setup_mock_iam_role() # with mock_lambda(): client = boto3.client(...
getmoto/moto
diff --git a/tests/test_awslambda/__init__.py b/tests/test_awslambda/__init__.py index 08a1c1568..89d605282 100644 --- a/tests/test_awslambda/__init__.py +++ b/tests/test_awslambda/__init__.py @@ -1,1 +1,108 @@ -# This file is intentionally left blank. +import json +import os +from functools import wraps +from time imp...
[ "tests/test_awslambda/test_lambda.py::test_list_functions", "tests/test_awslambda/test_lambda.py::test_create_function_from_zipfile", "tests/test_awslambda/test_lambda.py::test_list_create_list_get_delete_list" ]
[ "tests/test_awslambda/test_lambda.py::test_lambda_regions[us-west-2]", "tests/test_awslambda/test_lambda.py::test_lambda_regions[cn-northwest-1]", "tests/test_awslambda/test_lambda.py::test_lambda_regions[us-isob-east-1]", "tests/test_awslambda/test_lambda.py::test_create_based_on_s3_with_missing_bucket", "...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
856390cd907b7341762a096da75b03dfa66765de
2025-04-26 14:04:29
docker.io/swerebenchv2/vacanza-holidays:2502-856390c
vacanza__holidays-2502
No new interfaces are introduced.
python
MIT
diff --git a/holidays/calendars/hindu.py b/holidays/calendars/hindu.py index 03a7f9ce..86a4e9df 100644 --- a/holidays/calendars/hindu.py +++ b/holidays/calendars/hindu.py @@ -35,6 +35,7 @@ MAHA_SHIVARATRI = "MAHA_SHIVARATRI" MAHAVIR_JAYANTI = "MAHAVIR_JAYANTI" MAKAR_SANKRANTI = "MAKAR_SANKRANTI" ONAM = "ONAM" +PONGA...
Update India holidays: add missing Tamil Nadu holidays <!-- Thanks for contributing to holidays! --> ## Proposed change <h3>Added missing holidays for the Tamil Nadu subdivision (India).</h3> Notably, Pongal and Marker Sankranti dates differ slightly. To handle this correctly, I introduced a separate add_p...
Missing "Thiruvalluvar Day" and "Uzhavar Thinam" in India (Tamil Nadu) regional holidays <h1>Holidays Missed in Tamil Nadu, India:</h1> <b>The day following Pongal, Thiruvalluvar Day.</b> <b>Two days following Pongal, Uzhavar Thinam.</b> <h1>Problem:</h1> At the moment, Pongal and Makar Sankranti are considered to ...
vacanza/holidays
diff --git a/tests/countries/test_india.py b/tests/countries/test_india.py index 07dc3624..2dd385b4 100644 --- a/tests/countries/test_india.py +++ b/tests/countries/test_india.py @@ -147,6 +147,8 @@ class TestIndia(CommonCountryTests, TestCase): ), "TN": ( "2018-01-14", + ...
[ "tests/countries/test_india.py::TestIndia::test_2018", "tests/countries/test_india.py::TestIndia::test_l10n_default", "tests/countries/test_india.py::TestIndia::test_ranged_subdiv_holidays" ]
[ "tests/countries/test_india.py::TestIndia::test_2018_optional", "tests/countries/test_india.py::TestIndia::test_code", "tests/countries/test_india.py::TestIndia::test_country_aliases", "tests/countries/test_india.py::TestIndia::test_deprecated", "tests/countries/test_india.py::TestIndia::test_easter_sunday"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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.tn.gov.in/sites/default/holidays/public_e_...
ea9f6e28c58d70733c09ca57b13815ba86d8bbb2
2021-08-04 07:55:49
docker.io/swerebenchv2/relekang-python-semantic-release:366-ea9f6e2
relekang__python-semantic-release-366
Method: ChangeType.make_breaking(self) Location: semantic_release/history/parser_scipy.py Inputs: None (operates on the instance) Outputs: None (mutates the instance’s ``bump_level`` attribute to ``3`` indicating a breaking change) Description: Marks the associated change type as breaking, causing the parser to emi...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index d7abe97..a1c7e9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ <!--next-version-placeholder--> +## v7.17.0 (2021-08-07) +### Feature +* **parser:** Add scipy style parser ([#369](https://github.com/relekang/python-semantic-release/issues/369)) ([`51a39...
feat: Add support for non-prefixed tags Should improve/fix #365 Now all following tags will be treated as tags with versions and result in `1.2.3` version: - `v1.2.3` - `1.2.3` - `1.2.3-alpha`
Support parsing tags without "v" prefix ## Description As from https://github.com/relekang/python-semantic-release/blob/master/semantic_release/vcs_helpers.py#L72 it seems the tool expects tags to be named like "v1.2.3". However I use tags like "1.2.3" and I don't see reasons to add "v". I would expect the tool ...
relekang/python-semantic-release
diff --git a/tests/parsers/conftest.py b/tests/parsers/conftest.py new file mode 100644 index 0000000..cd1ef4b --- /dev/null +++ b/tests/parsers/conftest.py @@ -0,0 +1,72 @@ +import pytest + +from semantic_release.history.parser_scipy import COMMIT_TYPES, ChangeType + + +@pytest.fixture(params=COMMIT_TYPES) +def scipy_...
[ "tests/parsers/test_scipy.py::test_valid_scipy_commit[scipy_type0-scipy.stats.qmc:", "tests/parsers/test_scipy.py::test_valid_scipy_commit[scipy_type0-inverse", "tests/parsers/test_scipy.py::test_valid_scipy_commit[scipy_type0-Merge", "tests/parsers/test_scipy.py::test_valid_scipy_commit[scipy_type0-Add", "...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/relekang/python-semantic-release/blob...
ae38c160bb6c48eae4e15df8944c9aa560a37b95
2023-09-18 14:06:52
docker.io/swerebenchv2/cloudtools-troposphere:2182-ae38c16
cloudtools__troposphere-2182
Method: BaseAWSObject.__eq__(self, other: object) -> bool Location: class BaseAWSObject in troposphere/__init__.py Inputs: *other* – any object; equality is defined for instances of the same subclass (compares title and JSON representation) or for a dict (compares against a dict view of the object). Outputs: Boolean i...
python
BSD-2-Clause
diff --git a/scripts/patches/events.py b/scripts/patches/events.py index de37f3a8..4e11fdb2 100644 --- a/scripts/patches/events.py +++ b/scripts/patches/events.py @@ -13,11 +13,7 @@ patches = [ "Required": False, }, }, - # Remove unused Tag and TagEntry (remapped to troposphere Tags) - ...
add support for object comparison # Summary Adds support to compare objects. # Why This Is Needed An advantage to using troposphere is being able to unit test various iterations of a dynamic template. However, the lack of support for being able to compare objects with one another makes these test cumbersome to...
add comparison capability to CloudFormation intrinsic function objects When writing tests for Troposphere templates, I often check that resource properties contain the appropriate value references. Currently, only the `Ref` object has comparison capabilities (`__eq__` only) requiring me to compare attributes/method out...
cloudtools/troposphere
diff --git a/tests/test_basic.py b/tests/test_basic.py index 0b5b13a9..09ad41e1 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -5,6 +5,7 @@ from troposphere import ( AWSObject, AWSProperty, Cidr, + GenericHelperFn, If, Join, NoValue, @@ -24,7 +25,74 @@ from troposphere.s3...
[ "tests/test_basic.py::TestBasic::test___eq__" ]
[ "tests/test_basic.py::TestBasic::test___ne__", "tests/test_basic.py::TestBasic::test_badproperty", "tests/test_basic.py::TestBasic::test_badrequired", "tests/test_basic.py::TestBasic::test_badtype", "tests/test_basic.py::TestBasic::test_depends_on_helper_with_resource", "tests/test_basic.py::TestBasic::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":...
70b1a78bb5bdb6b1ab064a9f727e332d12d1e564
2024-10-04 11:08:06
docker.io/swerebenchv2/fsspec-universal-pathlib:294-70b1a78
fsspec__universal_pathlib-294
Method: UPath.__init__(self, *paths: str) Location: upath/__init__.py (UPath class) Inputs: one or two string arguments – the first is a full URL (e.g., “sftp://user@host”) and the optional second is an additional path component (e.g., “abc” or “/abc”). The constructor parses the URL, extracting storage options suc...
python
MIT
diff --git a/pyproject.toml b/pyproject.toml index 53a427e..d3de7bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,13 +45,12 @@ tests = [ "packaging", ] dev = [ - "adlfs; python_version<='3.12' or (python_version>'3.12' and os_name!='nt') ", + "adlfs", "aiohttp", "requests", "gcsfs"...
Fix sftp join issue for non-root prefixed paths Fixes #289 sftp/ssh UPath's now enforce absolute paths.
0.2.4 Introduced An Error To SFTP Path I have a file "A.zip" on an SFTP server. Before 0.2.4 The full UPath is "sftp://A.zip"; but it becomes "sftp://A.zip/" after it, which is clearly a mistake as it's not a folder. This causes more downstream errors if we use upath.path, which would return "A.zip/".
fsspec/universal_pathlib
diff --git a/upath/tests/conftest.py b/upath/tests/conftest.py index b0907d9..a68dfc5 100644 --- a/upath/tests/conftest.py +++ b/upath/tests/conftest.py @@ -486,7 +486,6 @@ def ssh_container(): ) try: subprocess.run(shlex.split(cmd)) - time.sleep(1) yield { "host": "local...
[ "upath/tests/implementations/test_sftp.py::test_join_produces_correct_parts[args7-parts7]" ]
[ "upath/tests/implementations/test_sftp.py::test_join_produces_correct_parts[args0-parts0]", "upath/tests/implementations/test_sftp.py::test_join_produces_correct_parts[args1-parts1]", "upath/tests/implementations/test_sftp.py::test_join_produces_correct_parts[args2-parts2]", "upath/tests/implementations/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":...
b01032bce85ff8a8ff57434c6ad68ac8e39f5356
2021-03-09 12:17:36
docker.io/swerebenchv2/mie-lab-trackintel:148-b01032b
mie-lab__trackintel-148
Function: read_positionfixes_csv(*args, columns=None, tz=None, index_col=object(), crs=None, **kwargs) Location: trackintel/io/file.py Inputs: - *args, **kwargs: forwarded to pandas.read_csv (e.g., file path, separator, etc.). - columns (dict, optional): mapping of original column names to trackintel‑standard names. - ...
python
MIT
diff --git a/docs/modules/analysis.rst b/docs/modules/analysis.rst index 5b4afb3..87d1a37 100644 --- a/docs/modules/analysis.rst +++ b/docs/modules/analysis.rst @@ -4,6 +4,11 @@ Analysis The analysis module provides a variety of functions to analyze the mobility datasets computed by trackintel. +Tracking Quality +...
CLN: Added explicit parameters for read_csv functions. Closes #111
explicit arguments for read_positionfixes_csv Can [read_positionfixes_csv](https://github.com/mie-lab/trackintel/blob/master/trackintel/io/file.py#L39) have `columns`, `tz` as an explicit argument? Main goal would be to improve readability. I think this applies also to the other read_csv functions
mie-lab/trackintel
diff --git a/tests/analysis/test_tracking_quality.py b/tests/analysis/test_tracking_quality.py new file mode 100644 index 0000000..aa38467 --- /dev/null +++ b/tests/analysis/test_tracking_quality.py @@ -0,0 +1,142 @@ +import os +import pytest + +import trackintel as ti + + +@pytest.fixture +def testdata_stps_tpls_geoli...
[ "tests/visualization/test_util.py::TestTransform_gdf_to_wgs84::test_transformation", "tests/visualization/test_util.py::TestTransform_gdf_to_wgs84::test_crs_warning" ]
[ "tests/io/test_file.py::TestFile::test_positionfixes_from_to_csv", "tests/io/test_file.py::TestFile::test_read_positionfixes_csv_crs_parameter", "tests/io/test_file.py::TestFile::test_positionfixes_csv_index_warning", "tests/io/test_file.py::TestFile::test_positionfixes_csv_index_col", "tests/io/test_file.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://github.com/mie-lab/trackintel/blob/master/trac...
cd5618431964b317d1bfa03c03f2798afd0c5296
2020-07-14 05:17:02
docker.io/swerebenchv2/backblaze-b2-command-line-tool:643-cd56184
backblaze__b2_command_line_tool-643
Method: AuthorizeAccount._get_realm(cls, args) Location: b2/console_tool.py – class **AuthorizeAccount**, classmethod Inputs: - **args** – an argparse.Namespace that may contain the boolean flags `dev` and `staging` and the string attribute `environment`. Outputs: - Returns a **str** representing the realm to...
python
custom-check-github
diff --git a/README.md b/README.md index beaabdc..727ae51 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,10 @@ For advanced users, a hidden option `--logConfig <filename.ini>` can be used to # Release History +## Not released yet + +* Add `--environment` internal parameter for `authorize-account` + ## 2.0....
Add --environment for providing custom realm #642 Fixes #642
Please add an option to authorize_account to let me specify a base url. The goal is to let us run the CLI against other B2 instances without having to change the code to add additional arguments like the "--staging" and "--dev" arguments that currently exist. Here's a potential example: b2 authorize-account --...
Backblaze/B2_Command_Line_Tool
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 8956eec..4e7f652 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -110,6 +110,25 @@ class TestConsoleTool(TestBase): # Auth token should be in account info now assert self.account_info.get_account_auth_to...
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_towards_custom_realm" ]
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_key_without_list_buckets", "test/test_console_tool.py::TestConsoleTool::test_authorize_using_env_variables", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_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.85, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
b45fef20b109607173752f447b8e7ed761620338
2022-10-12 18:47:49
docker.io/swerebenchv2/agnostiqhq-covalent:1332-b45fef2
agnostiqhq__covalent-1332
Method: _dispatch_sync_sublattice(parent_result_object, parent_electron_id, inputs, serialized_callable, workflow_executor) Location: covalent_dispatcher._core.execution Inputs: - parent_result_object: Result object representing the parent workflow result. - parent_electron_id: int identifier of the parent electron...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c806165..ac90a4bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Ability to use terminal on the GUI. +### Fixed + +- Exceptions when instantiating executors are handle...
Handle exceptions when instantiating an executor <!-- ⚠️ Your pull request title should be short detailed and understandable for all. ⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's a new feature,...
Errors when instantiating executors can cause workflows to hang When `_run_task` encounters an error when instantiating an executor, the workflow can hang. This occurs for the following reason. There are [two sources of failure](https://github.com/AgnostiqHQ/covalent/blob/b45fef20b109607173752f447b8e7ed761620338/coval...
AgnostiqHQ/covalent
diff --git a/tests/covalent_dispatcher_tests/_core/execution_test.py b/tests/covalent_dispatcher_tests/_core/execution_test.py index ec07f423..d5a6b051 100644 --- a/tests/covalent_dispatcher_tests/_core/execution_test.py +++ b/tests/covalent_dispatcher_tests/_core/execution_test.py @@ -715,31 +715,23 @@ async def test_...
[ "tests/covalent_dispatcher_tests/_core/execution_test.py::test_dispatch_sync_sublattice", "tests/covalent_dispatcher_tests/_core/execution_test.py::test_run_task_executor_exception_handling" ]
[ "tests/covalent_dispatcher_tests/_core/execution_test.py::test_initialize_result_object", "tests/covalent_dispatcher_tests/_core/execution_test.py::test_plan_workflow", "tests/covalent_dispatcher_tests/_core/execution_test.py::test_post_process", "tests/covalent_dispatcher_tests/_core/execution_test.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://github.com/AgnostiqHQ/covalent/blob/b45fef20b1...
5f94843c4bbfa63fff6f986b6cff1c272d88907c
2024-08-11 10:34:17
docker.io/swerebenchv2/getmoto-moto:7968-5f94843
getmoto__moto-7968
Method: DynamoDB.Client.put_resource_policy(self, ResourceArn: str, Policy: str, ExpectedRevisionId: str = None) Location: DynamoDB client (boto3) Inputs: - **ResourceArn** – ARN of the DynamoDB table (must reference an existing table). - **Policy** – JSON string representing the resource‑based policy. - **Expec...
python
Apache-2.0
diff --git a/moto/cloudformation/models.py b/moto/cloudformation/models.py index 6d5c6bee5..08ce7c7d7 100644 --- a/moto/cloudformation/models.py +++ b/moto/cloudformation/models.py @@ -28,6 +28,7 @@ from .utils import ( generate_stackset_arn, generate_stackset_id, get_stack_from_s3_url, + validate_cre...
DynamoDB: Resource Policies Fixes #7694
DynamoDB: Need methods to put/get/delete policy on table Hello, I need to do testing on policies associated with DynamoDB Tables (recent AWS [feature](https://aws.amazon.com/about-aws/whats-new/2024/03/amazon-dynamodb-resource-based-policies/?nc1=h_ls)). So I create this issue to plan the implementation of: - dy...
getmoto/moto
diff --git a/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py b/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py index d34e6e4d5..c6c5815d1 100644 --- a/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py +++ b/tests/test_cloudformation/test_cloudformation_stack_crud_boto...
[ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_invalid_change_set_name_starting_char", "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_invalid_change_set_name_length", "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_invalid_change_set_n...
[ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_create_stack", "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_create_stack_with_additional_properties", "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_describe_stack_instances", "tests/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://aws.amazon.com/about-aws/whats-new/2024/03/ama...
3c5176f178a4345cb50d5dab83f1dab504ed2682
2022-01-21 21:15:44
docker.io/swerebenchv2/stac-utils-pystac:725-3c5176f
stac-utils__pystac-725
Method: Catalog.save(self, catalog_type: CatalogType = CatalogType.ABSOLUTE_PUBLISHED, dest_href: str | None = None) Location: pystac/catalog.py (class Catalog) Inputs: - catalog_type: CatalogType enum indicating how hrefs should be written (e.g., RELATIVE_PUBLISHED, ABSOLUTE_PUBLISHED). Determines whether items and c...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 68168407..d05ce5df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ ### Fixed +- Self links no longer included in Items for "relative published" catalogs ([#725](https://github.com/stac-utils/pystac/pull/725)) + ### Deprecated ## [v1.3.0] diff --git ...
No self links in relative published items **Related Issue(s):** - Closes #597 **Description:** Fixes issue where self links were included in Items for "relative published" catalogs. **PR Checklist:** - [x] Code is formatted (run `pre-commit run --all-files`) - [x] Tests pass (run `scripts/test`) -...
catalog.save(dest_href) has unexpected results for pystac.CatalogType.RELATIVE_PUBLISHED I really appreciate the recently added functionality to save a catalog to a target location. I was hoping to use this for the case of a static RELATIVE_PUBLISHED catalog in a github repository, but working on it locally via git clo...
stac-utils/pystac
diff --git a/requirements-test.txt b/requirements-test.txt index 85432206..38fe1b32 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -14,4 +14,4 @@ types-orjson==3.6.2 pre-commit==2.17.0 # optional dependencies -orjson==3.6.5 +orjson==3.6.6 diff --git a/tests/test_catalog.py b/tests/test_catalog.py...
[ "tests/test_catalog.py::CatalogTest::test_save_relative_published_no_self_links" ]
[ "tests/test_catalog.py::TestCases::test_case_1", "tests/test_catalog.py::TestCases::test_case_2", "tests/test_catalog.py::TestCases::test_case_3", "tests/test_catalog.py::TestCases::test_case_4", "tests/test_catalog.py::TestCases::test_case_5", "tests/test_catalog.py::TestCases::test_case_6", "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": "easy", "external_urls": [ "https://github.com/stac-utils/pystac/issues/137", ...
fd61e6f51f974de6da10a1d2e72595b4c4bd0d29
2023-07-21 11:48:29
docker.io/swerebenchv2/stfc-psyclone:2230-fd61e6f
stfc__psyclone-2230
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/changelog b/changelog index dab8c8548..060343dfb 100644 --- a/changelog +++ b/changelog @@ -527,6 +527,9 @@ new, associated optimisation scripts. Includes bug fixes for matmul inlining transformation. + 179) PR #2230 for #2228. Improve reporting of errors due to kernel + functors not explicitly inclu...
Improve error message when a kernel functor is not explicitly included in a use statement (closes #2228) Improves the error message provided to the user when a kernel functor has not been explicitly specified in a use statement when using the new PSyIR approach to parsing the algorithm layer.
LFRic alg layer error when using PSyIR: unknown kernel symbol The version of `mixed_schur_preconditioner_alg_mod` on LFRic trunk is causing LFRic PSyIR alg-layer parsing to fail as `dg_inc_matrix_vector_kernel_type` is not imported in subroutine `back_substitute`. This is an error in the LFRic code which I've passed on...
stfc/PSyclone
diff --git a/src/psyclone/tests/generator_test.py b/src/psyclone/tests/generator_test.py index d269c3db6..b21925a3b 100644 --- a/src/psyclone/tests/generator_test.py +++ b/src/psyclone/tests/generator_test.py @@ -45,8 +45,10 @@ functions. import os import re +import shutil import stat from sys import modules + i...
[ "src/psyclone/tests/generator_test.py::test_generate_unknown_container_lfric", "src/psyclone/tests/generator_test.py::test_generate_unknown_container_gocean" ]
[ "src/psyclone/tests/generator_test.py::test_script_file_not_found", "src/psyclone/tests/generator_test.py::test_script_file_no_extension", "src/psyclone/tests/generator_test.py::test_script_file_wrong_extension", "src/psyclone/tests/generator_test.py::test_script_invalid_content", "src/psyclone/tests/genera...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
b45b1a90b5c60f68a2fab71e2d090848173227bd
2022-09-29 08:22:55
docker.io/swerebenchv2/stfc-psyclone:1894-b45b1a9
stfc__psyclone-1894
Method: ArrayMixin.is_lower_bound(self, index) Location: src/psyclone/psyir/nodes/array_mixin.py Inputs: - **self**: an instance of a class that includes the ArrayMixin (e.g. ArrayReference). - **index** (int): the zero‑based dimension to inspect. Outputs: - **bool** – returns **True** when the reference correspond...
python
BSD-3-Clause
diff --git a/changelog b/changelog index 2698fe9a5..4dff2aabb 100644 --- a/changelog +++ b/changelog @@ -134,12 +134,14 @@ to query the resulting datatype of a PSyIR subtree. 49) PR #1869 for #1868. Extend PSyAD to make use of the - Reference2ArrayRangeTrans. + Reference2ArrayRangeTrans. 50) PR #1880 f...
(Closes #1893) allow for references to UnknownType in is_upper/lower_bound Small bug fix (4 lines).
[WW3] sub-string of character string causes crash Asif has reported that the WW3 code uses a character variable: CHARACTER(256) :: LINE, TEST 100 CONTINUE ! read line READ ( NDSI, 900, END=800, ERR=801, IOSTAT=IERR, IOMSG=MSG ) LINE ! leading blanks removed and placed on the ...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyir/nodes/array_mixin_test.py b/src/psyclone/tests/psyir/nodes/array_mixin_test.py index 6896a8046..5460dea35 100644 --- a/src/psyclone/tests/psyir/nodes/array_mixin_test.py +++ b/src/psyclone/tests/psyir/nodes/array_mixin_test.py @@ -40,7 +40,7 @@ import pytest from psyclone.errors ...
[ "src/psyclone/tests/psyir/nodes/array_mixin_test.py::test_is_upper_lower_bound" ]
[ "src/psyclone/tests/psyir/nodes/array_mixin_test.py::test_get_outer_range_index", "src/psyclone/tests/psyir/nodes/array_mixin_test.py::test_get_outer_range_index_error", "src/psyclone/tests/psyir/nodes/array_mixin_test.py::test_get_effective_shape" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
37bb5dd5e11467af36d0364d771ed7be4dbc18cc
2023-11-15 17:47:13
docker.io/swerebenchv2/openmdao-dymos:1018-37bb5dd
openmdao__dymos-1018
Method: BirkhoffGrid.__init__(self, num_segments: int, nodes_per_seg: int, grid_type: str = 'lgl') Location: dymos/birkhoff/birkhoff_grid.py Inputs: - num_segments – number of transcription segments (int, >0) - nodes_per_seg – number of collocation nodes per segment (int, >1) - grid_type – type of grid points, default...
python
Apache-2.0
diff --git a/dymos/utils/introspection.py b/dymos/utils/introspection.py index 73497d24..775fa29b 100644 --- a/dymos/utils/introspection.py +++ b/dymos/utils/introspection.py @@ -227,7 +227,10 @@ def _configure_constraint_introspection(phase): con['shape'] = control_shape con['units'...
Boundary constraints in Birkhoff transcription changed to pull from boundary ODE ### Summary Added additional introspection to birkhoff constraints so that boundary constraints on all variables now pull from the boundary ODE. Previously only states did so. Added a test for controls and ODE outputs ### Related Is...
Overlapping constraints in Birkhoff transcription ### Description Adding a boundary constraint and a path constraint for variables of any type other than state causes the error. The lines of code when added to the brachistochrone problem throw the error `RuntimeError: <model> <class Group>: Indices for aliases [...
OpenMDAO/dymos
diff --git a/dymos/examples/brachistochrone/test/test_brachistochrone_birkhoff_constraints.py b/dymos/examples/brachistochrone/test/test_brachistochrone_birkhoff_constraints.py new file mode 100644 index 00000000..f47c5cfe --- /dev/null +++ b/dymos/examples/brachistochrone/test/test_brachistochrone_birkhoff_constraints...
[ "dymos/examples/brachistochrone/test/test_brachistochrone_birkhoff_constraints.py::TestBrachistochroneBirkhoffConstraints::test_brachistochrone_control_no_prefix", "dymos/examples/brachistochrone/test/test_brachistochrone_birkhoff_constraints.py::TestBrachistochroneBirkhoffConstraints::test_brachistochrone_contro...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
8cccc819ab554d9ec6870b96dba195159c2a16be
2024-08-21 07:46:00
docker.io/swerebenchv2/sdv-dev-rdt:872-8cccc81
sdv-dev__rdt-872
Method: HyperTransformer.create_anonymized_columns(self, num_rows: int, column_names: List[str]) → pandas.DataFrame Location: HyperTransformer class Inputs: - num_rows: int – the number of rows to generate for the anonymized columns. - column_names: List[str] – list of column names to include in the generated DataFram...
python
custom-check-github
diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py index 799a05a..1ff2e8d 100644 --- a/rdt/hyper_transformer.py +++ b/rdt/hyper_transformer.py @@ -871,8 +871,23 @@ class HyperTransformer: 'list of valid column names.' ) + columns_to_generate = set() + for colu...
Make create_anonymized_columns work with multi columns transformer CU-86b1rbe6h Resolve #871
Make create_anonymized_columns work with multi columns transformer ### Problem Description The method `create_anonymized_columns` in `Hypertransformer` allows users to generate anonymized columns by providing the number of rows to generate and a list of columns. However, when one of the listed columns is part of a m...
sdv-dev/RDT
diff --git a/tests/unit/test_hyper_transformer.py b/tests/unit/test_hyper_transformer.py index 6260ecc..dbdc2e8 100644 --- a/tests/unit/test_hyper_transformer.py +++ b/tests/unit/test_hyper_transformer.py @@ -1478,6 +1478,7 @@ class TestHyperTransformer(TestCase): instance._modified_config = False ins...
[ "tests/unit/test_hyper_transformer.py::TestHyperTransformer::test_create_anonymized_columns_multi_column_transformer", "tests/unit/test_hyper_transformer.py::TestHyperTransformer::test_create_anonymized_columns_multi_column_transformer_error" ]
[ "tests/unit/test_hyper_transformer.py::TestHyperTransformer::test___init__", "tests/unit/test_hyper_transformer.py::TestHyperTransformer::test__add_field_to_set_string", "tests/unit/test_hyper_transformer.py::TestHyperTransformer::test__add_field_to_set_tuple", "tests/unit/test_hyper_transformer.py::TestHyper...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
cda4a8b79e63d07474a9caf78ceb970350f0e09b
2024-02-14 13:44:38
docker.io/swerebenchv2/aio-libs-aiohttp:8160-cda4a8b
aio-libs__aiohttp-8160
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/8062.feature.rst b/CHANGES/8062.feature.rst new file mode 100644 index 000000000..6e9814f09 --- /dev/null +++ b/CHANGES/8062.feature.rst @@ -0,0 +1,1 @@ +Added server capability to check for static files with Brotli compression via a ``.br`` extension -- by :user:`steverep`. diff --git a/aiohttp/we...
[3.10] Add server capability to check for Brotli compressed static files Currently server only checks if static routes have a `.gz` extension and serves them with `gzip` encoding. These changes do the same for `.br` files with `br` encoding. Brotli is prioritized over gzip if both exist and are supported by the clien...
Serve static Brotli compressed files ### Is your feature request related to a problem? Currently only the _aiohttp_ client supports Brotli compression, and the _aiohttp_ server is missing such capability for even just serving Brotli files that are statically compressed by the user (i.e. a file with the `.br` extension...
aio-libs/aiohttp
diff --git a/tests/test_web_sendfile.py b/tests/test_web_sendfile.py index d472c407b..ae4434e9f 100644 --- a/tests/test_web_sendfile.py +++ b/tests/test_web_sendfile.py @@ -20,7 +20,7 @@ def test_using_gzip_if_header_present_and_file_available(loop) -> None: filepath = mock.create_autospec(Path, spec_set=True) ...
[ "tests/test_web_sendfile.py::test_using_gzip_if_header_present_and_file_available[pyloop]", "tests/test_web_sendfile.py::test_gzip_if_header_present_and_file_not_available[pyloop]", "tests/test_web_sendfile_functional.py::test_static_file_custom_content_type_compress[sendfile-pyloop-gzip,", "tests/test_web_se...
[ "tests/test_web_sendfile.py::test_gzip_if_header_not_present_and_file_available[pyloop]", "tests/test_web_sendfile.py::test_gzip_if_header_not_present_and_file_not_available[pyloop]", "tests/test_web_sendfile.py::test_status_controlled_by_user[pyloop]", "tests/test_web_sendfile_functional.py::test_static_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": "B3", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": true, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
311ca61ea8efd1ca69fe4e76983c30039af8cc45
2021-05-20 17:46:38
docker.io/swerebenchv2/postlund-pyatv:1098-311ca61
postlund__pyatv-1098
Function: get_metadata_types(properties: Mapping[str, str]) -> MetadataType Location: pyatv/raop/parsers.py Inputs: - **properties** – Mapping of zeroconf service properties (strings) that may contain the key `"md"` with a comma‑separated list of integers. Key constraints: each integer must be 0 (text), 1 (artwork), o...
python
MIT
diff --git a/docs/documentation/protocols.md b/docs/documentation/protocols.md index 42da2c6d..08430c35 100644 --- a/docs/documentation/protocols.md +++ b/docs/documentation/protocols.md @@ -1183,6 +1183,47 @@ CSeq: 3 This section deals with "video part" of AirPlay. TBD +### Commands + +#### /auth-setup + +Devices...
raop: Add support for AirPort Express A few things had to be fixed: * Verify supported metadata as the AirPort Express only supports progress (sending text yields an error) * Trigger auth-setup needed to set up a connection * Handle RTSP responses split over multiple IP packets (not needed for AirPort Expres...
Add RSA encryption to support AirPort Express streaming **What feature would you like?** The AirPort Express requires encryption when streaming. This is well known and reverse engineered, so it shouldn't be that hard to implement. Just need to do it. **Describe the solution you'd like** No particular keys needs to...
postlund/pyatv
diff --git a/tests/raop/test_parsers.py b/tests/raop/test_parsers.py index c58bd541..ef71eb04 100644 --- a/tests/raop/test_parsers.py +++ b/tests/raop/test_parsers.py @@ -5,8 +5,10 @@ import pytest from pyatv.exceptions import ProtocolError from pyatv.raop.parsers import ( EncryptionType, + MetadataType, ...
[ "tests/raop/test_parsers.py::test_parse_audio_properties[properties0-44100-2-2]", "tests/raop/test_parsers.py::test_parse_audio_properties[properties1-22050-2-2]", "tests/raop/test_parsers.py::test_parse_audio_properties[properties2-44100-4-2]", "tests/raop/test_parsers.py::test_parse_audio_properties[propert...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
05abb4f0bff2918862548df9ac4076dd33d22153
2018-12-08 22:35:48
docker.io/swerebenchv2/google-turbinia:321-05abb4f
google__turbinia-321
Method: JobsManager.FilterJobNames(self, job_names, jobs_blacklist=None, jobs_whitelist=None) Location: turbinia/jobs/manager.py, class JobsManager Inputs: - job_names (list[str]): List of job name strings to filter. - jobs_blacklist (Optional[list[str]]): List of job names to exclude; case‑insensitive. Defaults to Non...
python
Apache-2.0
diff --git a/tools/turbinia_job_graph.py b/tools/turbinia_job_graph.py index d7a014f..c2dff8b 100755 --- a/tools/turbinia_job_graph.py +++ b/tools/turbinia_job_graph.py @@ -19,7 +19,7 @@ from __future__ import unicode_literals import argparse import graphviz -from turbinia.jobs import get_jobs as turbinia_jobs +fro...
Migrate job graph generator to use new manager Fixes #273
turbinia_job_graph.py doesn't support new job manager turbinia_job_graph.py needs to be updated to support the new job manager (from #257).
google/turbinia
diff --git a/turbinia/jobs/manager_test.py b/turbinia/jobs/manager_test.py index 3c9896a..52544d6 100644 --- a/turbinia/jobs/manager_test.py +++ b/turbinia/jobs/manager_test.py @@ -6,6 +6,7 @@ from __future__ import unicode_literals import unittest +from turbinia import TurbiniaException from turbinia.jobs import...
[ "turbinia/jobs/manager_test.py::JobsManagerTest::testFilterJobNamesBlackList", "turbinia/jobs/manager_test.py::JobsManagerTest::testFilterJobNamesEmptyLists", "turbinia/jobs/manager_test.py::JobsManagerTest::testFilterJobNamesException", "turbinia/jobs/manager_test.py::JobsManagerTest::testFilterJobNamesMixed...
[ "turbinia/jobs/manager_test.py::JobsManagerTest::testGetJobInstance", "turbinia/jobs/manager_test.py::JobsManagerTest::testGetJobInstances", "turbinia/jobs/manager_test.py::JobsManagerTest::testJobRegistration" ]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
ecb608f4f6628f0272efa7b10c05fc6490d19a6a
2021-09-03 07:26:11
docker.io/swerebenchv2/mondeja-mkdocs-include-markdown-plugin:79-ecb608f
mondeja__mkdocs-include-markdown-plugin-79
No new interfaces are introduced.
python
Apache-2.0
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index dd9f16a..0047463 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.2.1 +current_version = 3.2.2 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
Don't rewrite relative links inside codeblocks Fixes #78
Markdown links inside code blocks are interpreted I seem to have run into a problem when using `{% markdown-include %}` to include a markdown file that contains a code block, which in turn contains something that looks like a valid markdown link (but in fact it's a C++11 lambda definition). Here's an example. I have...
mondeja/mkdocs-include-markdown-plugin
diff --git a/tests/test_process.py b/tests/test_process.py index 01621f3..758db61 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -22,7 +22,7 @@ from mkdocs_include_markdown_plugin.process import ( ''' Here's a [link](../CHANGELOG.md) to the changelog. ''', - id='rela...
[ "tests/test_process.py::test_rewrite_relative_urls[cpp-likelink-fenced-codeblock]", "tests/test_process.py::test_rewrite_relative_urls[cpp-likelink-indented-codeblock]" ]
[ "tests/test_process.py::test_rewrite_relative_urls[relative-link]", "tests/test_process.py::test_rewrite_relative_urls[multiline-link]", "tests/test_process.py::test_rewrite_relative_urls[relative-link-down]", "tests/test_process.py::test_rewrite_relative_urls[link-with-hash]", "tests/test_process.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://github.com/mondeja/mkdocs-include-markdown-plu...
c3ca1c78888002e430bf05146193653b9d5e5b32
2023-01-20 20:08:35
docker.io/swerebenchv2/mandarons-icloud-drive-docker:119-c3ca1c7
mandarons__icloud-drive-docker-119
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/src/sync_drive.py b/src/sync_drive.py index 42d21401..43ce733d 100644 --- a/src/sync_drive.py +++ b/src/sync_drive.py @@ -254,17 +254,21 @@ def sync_directory( ) if not new_folder: continue - files.add(new_folder) - files....
Handle errors raised by icloudpy and continue execution Workaround for #113 and closes #116
[FEATURE] Handling 503, 504 errors **Use case** I’ve noticed a level of instability with the container shutting down , looking in the logs I can see a few 50x errors were the cause.. 1) Service Unavailable (503) 2) Gateway Time-out (504) **Describe the solution you'd like** Is it possible for iCloud-dr...
mandarons/icloud-drive-docker
diff --git a/tests/test_sync_drive.py b/tests/test_sync_drive.py index 94606b77..3592fd37 100644 --- a/tests/test_sync_drive.py +++ b/tests/test_sync_drive.py @@ -6,6 +6,8 @@ import shutil import unittest from unittest.mock import patch +from icloudpy.exceptions import ICloudPyAPIResponseException + import tests ...
[ "tests/test_sync_drive.py::TestSyncDrive::test_execution_continuation_on_icloudpy_exception" ]
[ "tests/test_sync_drive.py::TestSyncDrive::test_download_file", "tests/test_sync_drive.py::TestSyncDrive::test_download_file_key_error_data_token", "tests/test_sync_drive.py::TestSyncDrive::test_download_file_non_existing", "tests/test_sync_drive.py::TestSyncDrive::test_download_file_none_item", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
404f3e6915e3e9e501aea55eee271a41366d5a4f
2024-07-17 10:16:20
docker.io/swerebenchv2/datadog-guarddog:419-404f3e6
datadog__guarddog-419
Method: PackageScanner.scan_local(self, path: str, rules: typing.Optional[typing.Iterable[str]] = None, callback: typing.Callable[[dict], None] = noop) Location: guarddog/scanners/scanner.py → class PackageScanner (subclass of Scanner) Inputs: - path (str): filesystem path to a directory or supported archive to b...
python
Apache-2.0
diff --git a/guarddog/cli.py b/guarddog/cli.py index f957994..e577d05 100644 --- a/guarddog/cli.py +++ b/guarddog/cli.py @@ -4,6 +4,7 @@ CLI command that scans a package version for user-specified malware flags. Includes rules based on package registry metadata and source code analysis. """ +from functools import r...
Simplify local target checks This PR makes three principal changes: 1. It simplifies the conditions under which Guarddog will decide to perform a local scan: whenever the target is a directory or a regular file in the local filesystem. It also eliminates as much as possible duplicate checks related to local targets...
Unused callback function argument in PackageScanner The `PackageScanner.scan_local()` method accepts a `callback` function argument that it does not use. ```python # guarddog/scanners/scanner.py:227 def scan_local( self, path, rules=None, callback: typing.Callable[[dict], None] = noop ) -> dict: i...
DataDog/guarddog
diff --git a/tests/core/test_cli.py b/tests/core/test_cli.py index 404bc75..82f5f4a 100644 --- a/tests/core/test_cli.py +++ b/tests/core/test_cli.py @@ -1,45 +1,139 @@ -import unittest.mock +import unittest +import unittest.mock as mock import guarddog.cli +import guarddog.scanners.scanner as scanner from guarddog....
[ "tests/core/test_cli.py::TestCli::test_local_directory", "tests/core/test_cli.py::TestCli::test_local_file" ]
[ "tests/core/test_cli.py::TestCli::test_get_rule_param_empty", "tests/core/test_cli.py::TestCli::test_get_rule_param_exclude", "tests/core/test_cli.py::TestCli::test_get_rule_param_include" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
6f5434d874d6045a668bd6ca7f3891c088b43638
2021-11-29 10:23:49
docker.io/swerebenchv2/pennylaneai-pennylane:1946-6f5434d
pennylaneai__pennylane-1946
Method: Interferometer.__init__(self, theta, phi, varphi, wires, mesh='rectangular', beamsplitter='pennylane', do_queue=True, id=None) Location: pennylane/templates/subroutines/interferometer.py (class Interferometer) Inputs: - theta (array‑like, shape (n_if,)) – rotation angles for the beamsplitters. - phi (ar...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index a190138a4..3f4fd8e8c 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -6,6 +6,9 @@ <h3>Improvements</h3> +* Interferometer is now a class with `shape` method. + [(#1946)](https://github.com/PennyLaneA...
Adds shape method to Interferometer template **Context:** Interferometer did not have a shape method **Description of the Change:** Defines Interferometer as a class and adds a shape method **Benefits:** Interferometer is now a class with shape method **Possible Drawbacks:** possibly none **Related GitHub Issue...
shape method for Interferometer ### Feature details The Interferometer template does not have a `shape` method to give out the required parameters' shapes. It would be helpful to have this method as three parameters are required that have two different shapes. ### Implementation The interferometer template is not d...
PennyLaneAI/pennylane
diff --git a/tests/templates/test_layers/test_cv_neural_net.py b/tests/templates/test_layers/test_cv_neural_net.py index c285c5b2e..f34ff2c86 100644 --- a/tests/templates/test_layers/test_cv_neural_net.py +++ b/tests/templates/test_layers/test_cv_neural_net.py @@ -75,9 +75,17 @@ class TestDecomposition: op = q...
[ "tests/templates/test_subroutines/test_interferometer.py::TestInterferometer::test_clements_beamsplitter_convention", "tests/templates/test_subroutines/test_interferometer.py::TestInterferometer::test_one_mode", "tests/templates/test_subroutines/test_interferometer.py::TestInterferometer::test_two_mode_rect", ...
[ "tests/templates/test_layers/test_cv_neural_net.py::TestDecomposition::test_expansion[1-expected_names0-expected_wires0]", "tests/templates/test_layers/test_cv_neural_net.py::TestDecomposition::test_expansion[2-expected_names1-expected_wires1]", "tests/templates/test_layers/test_cv_neural_net.py::TestDecomposit...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
7ffb847b9ff69c113cc077f6cb6ec50e3dfc62d8
2024-07-31 02:21:00
docker.io/swerebenchv2/aio-libs-aiohttp:8558-7ffb847
aio-libs__aiohttp-8558
Method: ClientWebSocketResponse.receive(self, timeout: float | None = None) -> WSMessage Location: aiohttp/client_ws.py Inputs: optional *timeout* (seconds) to limit how long to wait for the next WebSocket message; relies on a previously configured *heartbeat* interval on the connection. Outputs: a **WSMessage**. If th...
python
custom-check-github
diff --git a/CHANGES/8540.bugfix.rst b/CHANGES/8540.bugfix.rst new file mode 100644 index 000000000..ab7c47676 --- /dev/null +++ b/CHANGES/8540.bugfix.rst @@ -0,0 +1,7 @@ +Fixed WebSocket server heartbeat timeout logic to terminate `receive` and return :py:class:`~aiohttp.ServerTimeoutError` -- by :user:`arcivanov`. + ...
Add followup changelog message for #5278 closes #8555 ## What do these changes do? Improve the changelog documentation for #5278 #5278 removed the deprecation warning about having a running event loop and replaced it with `asyncio.get_running_loop()` which will raise `RuntimeError` if there is no running l...
RuntimeError: no running event loop ### Describe the bug It looks like a breaking change in the latest version. In version 3.9.5 it works: ``` import aiohttp connector = aiohttp.TCPConnector() ``` (in a more complex example I get a warning (DeprecationWarning: The object should be created within an async ...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index bad79cb47..caf00cc93 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,7 +6,7 @@ # aiodns==3.2.0 ; sys_platform == "linux" or sys_platform == "darwin" # via -r requirements/runtime-deps.in -aiohappyeyeballs==2.3.2 +aiohappyeyebal...
[ "tests/test_client_ws_functional.py::test_heartbeat_no_pong_concurrent_receive[pyloop]" ]
[ "tests/test_client_ws_functional.py::test_send_recv_text[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes_bad_type[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_text_bad_type[pyloop]", "tests/test_client_w...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
009f4e7c21890cefafe5858aa682a7e7f17d6a80
2019-01-01 06:32:55
docker.io/swerebenchv2/pycqa-pyflakes:400-009f4e7
pycqa__pyflakes-400
Function: make_tokens(code) Location: pyflakes/checker.py Inputs: - **code**: `str` or `bytes` containing Python source code (UTF‑8 text). Outputs: - Returns a **tuple** of token tuples as produced by ``tokenize.generate_tokens``/``tokenize.tokenize``. Each token tuple has the form ``(type, text, start, end, line)`...
python
MIT
diff --git a/.appveyor.yml b/.appveyor.yml index 5739e3b..f7d7aa2 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -44,5 +44,5 @@ build: off test_script: - python -m tox -# - C:\pypy3-v5.10.0-win32\pypy3 setup.py test -q - - C:\pypy-2.6.1-win32\pypy setup.py test -q +# - C:\pypy3-v5.10.0-win32\pypy3 -m unitte...
Parse PEP 484 type comments Resolves #247
Detect type hint comments: PEP484 *Original report by [w-thomas-q](https://launchpad.net/~w-thomas-q) on [Launchpad](https://bugs.launchpad.net/bugs/1587170):* ------------------------------------ Hi, thanks for this really great tool! One issues I stumbled upon was that type hints seem to be ignored / not detected...
PyCQA/pyflakes
diff --git a/pyflakes/test/harness.py b/pyflakes/test/harness.py index 0a58bd5..d375ea3 100644 --- a/pyflakes/test/harness.py +++ b/pyflakes/test/harness.py @@ -1,4 +1,4 @@ - +import ast import textwrap import unittest @@ -8,7 +8,6 @@ __all__ = ['TestCase', 'skip', 'skipIf'] skip = unittest.skip skipIf = unitte...
[ "pyflakes/test/test_checker.py::TypeableVisitorTests::test_last_node_wins", "pyflakes/test/test_checker.py::TypeableVisitorTests::test_node_types", "pyflakes/test/test_checker.py::TypeableVisitorTests::test_py35_node_types", "pyflakes/test/test_checker.py::TypeableVisitorTests::test_visitor_recurses", "pyfl...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://launchpad.net/~w-thomas-q", "https://bugs....
b504f1e0316ab6f1413d87477efe53b84d332cad
2019-02-14 22:10:48
docker.io/swerebenchv2/robotframework-seleniumlibrary:1310-b504f1e
robotframework__seleniumlibrary-1310
Method: CookieInformation.__init__(self, name, value, path=None, domain=None, secure=False, httpOnly=False, expiry=None, **extra) Location: SeleniumLibrary.keywords.cookie.CookieInformation Inputs: - name (str): mandatory cookie name. - value (str): mandatory cookie value. - path (str, optional): URL path scope. - dom...
python
Apache-2.0
diff --git a/src/SeleniumLibrary/keywords/cookie.py b/src/SeleniumLibrary/keywords/cookie.py index 1f85948f..493b83b0 100644 --- a/src/SeleniumLibrary/keywords/cookie.py +++ b/src/SeleniumLibrary/keywords/cookie.py @@ -90,14 +90,22 @@ class CookieKeywords(LibraryComponent): | secure | When true, cookie ...
Allow extra arguments for CookieInformation Fixes #1307
Get Cookies keyword will fail if the Selenium get_cookie method return value contains more keys than: name, value, path, domain, secure, httpOnly and expiry Selenium [get_cookie](https://seleniumhq.github.io/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html?highlight=get_cookie#selenium.web...
robotframework/SeleniumLibrary
diff --git a/utest/test/keywords/test_cookie.py b/utest/test/keywords/test_cookie.py index c85caaf9..3e951135 100644 --- a/utest/test/keywords/test_cookie.py +++ b/utest/test/keywords/test_cookie.py @@ -1,8 +1,10 @@ +from datetime import datetime import unittest from mockito import mock, unstub, verify from Sele...
[ "utest/test/keywords/test_cookie.py::CookieObjecttest::test_all_args", "utest/test/keywords/test_cookie.py::CookieObjecttest::test_extra_args" ]
[ "utest/test/keywords/test_cookie.py::KeywordArgumentsCookieTest::test_add_cookie_default", "utest/test/keywords/test_cookie.py::KeywordArgumentsCookieTest::test_add_cookie_domain_false", "utest/test/keywords/test_cookie.py::KeywordArgumentsCookieTest::test_add_cookie_domain_true", "utest/test/keywords/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": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://seleniumhq.github.io/selenium/docs/api/py/webd...
6d37febd3928c92cd89c94a2cd45ea4b435c1a3c
2023-06-02 13:30:12
docker.io/swerebenchv2/tomwhite-cubed:200-6d37feb
tomwhite__cubed-200
Function: measure_reserved_mem(executor, work_dir=None, **kwargs) Location: cubed.core.array (module level function) Inputs: - **executor**: an `Executor` instance that supports peak‑memory reporting (e.g., `LithopsDagExecutor`). - **work_dir** *(optional)*: a string (fsspec URL) indicating where intermediate data sh...
python
Apache-2.0
diff --git a/cubed/__init__.py b/cubed/__init__.py index 7c82da4a..63580391 100644 --- a/cubed/__init__.py +++ b/cubed/__init__.py @@ -18,6 +18,7 @@ from .core.array import ( Spec, TaskEndEvent, compute, + measure_reserved_mem, measure_reserved_memory, visualize, ) @@ -35,6 +36,7 @@ __all__...
Fix measure reserved Fixes #184. Also renames the function to `measure_reserved_mem` to be in line with `reserved_mem` and all of the `*_mem` settings.
Error when trying to measure reserved memory with lithops I tried to measure the reserved memory with lithops (set up to run on Google Cloud Functions) and this happened: ```python IPython 8.13.2 -- An enhanced Interactive Python. Type '?' for help. In [1]: from cubed import measure_reserved_memory In [2]: fr...
tomwhite/cubed
diff --git a/cubed/tests/test_core.py b/cubed/tests/test_core.py index 7a8a14ce..a524c073 100644 --- a/cubed/tests/test_core.py +++ b/cubed/tests/test_core.py @@ -484,13 +484,13 @@ def test_already_computed(spec): @pytest.mark.skipif(platform.system() == "Windows", reason="does not run on windows") -def test_measu...
[ "cubed/tests/test_core.py::test_measure_reserved_mem[executor3]" ]
[ "cubed/tests/test_core.py::test_regular_chunks", "cubed/tests/test_core.py::test_from_array[x0-chunks0-None]", "cubed/tests/test_core.py::test_from_array[x1-chunks1-True]", "cubed/tests/test_core.py::test_from_array[x2--1-True]", "cubed/tests/test_core.py::test_from_array[x3-1-None]", "cubed/tests/test_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
893ec30ca017a19382f332b36cf36f497032ba14
2020-02-12 16:22:21
docker.io/swerebenchv2/ntnu-ihb-pythonfmu:40-893ec30
ntnu-ihb__pythonfmu-40
Method: Fmi2Slave.to_xml(self) Location: pythonfmu/fmi2slave.py – defined in the abstract class Fmi2Slave Inputs: - **self**: instance of a concrete subclass of Fmi2Slave (e.g., the test‑defined Slave) Outputs: - **xml**: an ``xml.etree.ElementTree.Element`` representing the ``fmiModelDescription``. The element’s att...
python
MIT
diff --git a/pythonfmu/builder.py b/pythonfmu/builder.py index 90a6b49..feb8fcf 100644 --- a/pythonfmu/builder.py +++ b/pythonfmu/builder.py @@ -53,7 +53,7 @@ class ModelDescriptionFetcher: instance = getattr(fmu_interface, class_name)("dummyInstance") finally: sys.path.remove(str(fil...
Add version to modelDescription.xml Closes #39
Add PythonFMU version to modelDescription.xml Version should be read from _version.py
NTNU-IHB/PythonFMU
diff --git a/pythonfmu/tests/test_fmi2slave.py b/pythonfmu/tests/test_fmi2slave.py index 10c727d..814499a 100644 --- a/pythonfmu/tests/test_fmi2slave.py +++ b/pythonfmu/tests/test_fmi2slave.py @@ -1,6 +1,7 @@ import pytest from pythonfmu import Fmi2Slave, Boolean, Integer, Real, String +from pythonfmu import __vers...
[ "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_generation_tool" ]
[ "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_getters[False-Boolean]", "pythonfmu/tests/test_fmi2slave.py::test_Fmi2Slave_getters[False-Integer]", "pytho...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
b108a208536f94da786211a28ea3bda4f55a04a4
2022-08-10 02:57:16
docker.io/swerebenchv2/pycqa-docformatter:104-b108a20
pycqa__docformatter-104
Function: format_docstring(indentation: str, contents: str, *, summary_wrap_length: int = 0, close_quotes_on_newline: bool = False, pre_summary_newline: bool = False, pre_summary_space: bool = False, make_summary_multi_line: bool = False, post_description_blank: bool = False, force_wrap: bool = False, strict: bool = Tr...
python
MIT
diff --git a/README.rst b/README.rst index b79178a..a18c91d 100644 --- a/README.rst +++ b/README.rst @@ -201,6 +201,10 @@ Below is the help output:: --make-summary-multi-line add a newline before and after a one-line docstring (default: False) + --cl...
feat: add option to place closing quotes on newline A new argument `--close-quotes-on-newline` was added to allow the closing triple quotes to be placed on a newline when a one-line docstring is wrapped and takes two or more lines. The default value is false to avoid breaking current use-cases. Closes #9
""" getting placed at end of comment line instead of its own line docformatter is resulting in this diff: ``` - """ - return a map mapping appliance_ids for a house back to themselves - except for multiphase appliances - """ + """return a map mapping appliance_ids for a house back to themselves except +...
PyCQA/docformatter
diff --git a/tests/test_format_docstring.py b/tests/test_format_docstring.py index fc51f76..b63e51a 100644 --- a/tests/test_format_docstring.py +++ b/tests/test_format_docstring.py @@ -285,7 +285,6 @@ class TestFormatWrap: ), summary_wrap_length=max_length, ) - ...
[ "tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_for_multi_line_summary_alone", "tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_for_one_line_summary_alone_but_too_long" ]
[ "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring", "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_summary_that_ends_in_quote", "tests/test_format_docstring.py::TestFormatDocstring::test_format_docstring_with_bad_indentation", "tests/test_format_docs...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
641fbbf95c4cf72e48e2a58d563e41b2a1787bbf
2021-06-07 12:49:03
docker.io/swerebenchv2/googleapis-python-api-core:200-641fbbf
googleapis__python-api-core-200
Method: PageIteratorImpl.__next__(self) Location: google/api_core/page_iterator.py → class PageIteratorImpl (inherits Iterator) Inputs: None (uses internal iterator state) Outputs: Returns the next item value from the paged results; raises StopIteration when no more items are available. Description: Provides the st...
python
Apache-2.0
diff --git a/google/api_core/page_iterator.py b/google/api_core/page_iterator.py index fff3b55..49879bc 100644 --- a/google/api_core/page_iterator.py +++ b/google/api_core/page_iterator.py @@ -170,6 +170,8 @@ class Iterator(object): max_results=None, ): self._started = False + self.__activ...
feat: add iterator capability to paged iterators Closes #175. This PR transforms *Iterator classes to actual iterators (before they were just _iterables_). **PR checklist:** - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-api-core/issues/new/choose) before writing your code...
paged iterators are not iterators **Is your feature request related to a problem? Please describe.** The naming of the "iterator" classes & modules is misleading. **Describe the solution you'd like** Add a `__next__` method so that a paged iterator can be used as an iterator. **Describe alternatives you'...
googleapis/python-api-core
diff --git a/tests/asyncio/test_page_iterator_async.py b/tests/asyncio/test_page_iterator_async.py index 42fac2a..4abacc6 100644 --- a/tests/asyncio/test_page_iterator_async.py +++ b/tests/asyncio/test_page_iterator_async.py @@ -47,6 +47,33 @@ class TestAsyncIterator: assert iterator.next_page_token == token ...
[ "tests/unit/test_page_iterator.py::TestIterator::test_next" ]
[ "tests/asyncio/test_page_iterator_async.py::TestAsyncIterator::test_constructor", "tests/asyncio/test_page_iterator_async.py::TestAsyncIterator::test_pages_property_starts", "tests/asyncio/test_page_iterator_async.py::TestAsyncIterator::test_pages_property_restart", "tests/asyncio/test_page_iterator_async.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/googleapis/google-cloud-python/issu...
a7e62870858a68a07b4043c4f31ac491e503eb37
2022-07-09 14:28:50
docker.io/swerebenchv2/neogeny-tatsu:275-a7e6287
neogeny__tatsu-275
Method: NodeWalkerMeta.__new__(cls, name, bases, dct) Location: tatsu/walkers.py (metaclass definition) Inputs: - cls: the metaclass (NodeWalkerMeta) - name: str – name of the class being created - bases: tuple – base classes for the new class - dct: dict – attribute dictionary for the new class Outputs: newly creat...
python
custom-check-github
diff --git a/tatsu/walkers.py b/tatsu/walkers.py index e236501..12ccc63 100644 --- a/tatsu/walkers.py +++ b/tatsu/walkers.py @@ -8,10 +8,18 @@ from tatsu.objectmodel import Node from tatsu.util import is_list -class NodeWalker: - def __new__(cls, *args, **kwargs): - cls._walker_cache = {} - return...
[walkers] ensure one cache per walker class fixes #266
Unusual use of `__new__()` in `NodeWalker` Hunting for old-style `super()` calls I bumped into the `__new__()` method of the `NodeWalker` class: ```python class NodeWalker: def __new__(cls, *args, **kwargs): cls._walker_cache = {} return super(NodeWalker, cls).__new__(cls) ``` As the class do...
neogeny/TatSu
diff --git a/test/walker_test.py b/test/walker_test.py index cdcc022..6461f25 100644 --- a/test/walker_test.py +++ b/test/walker_test.py @@ -2,7 +2,7 @@ import json from collections import defaultdict import tatsu -from tatsu.walkers import DepthFirstWalker +from tatsu.walkers import NodeWalker, DepthFirstWalker f...
[ "test/walker_test.py::test_cache_per_class" ]
[ "test/walker_test.py::test_walk_node_ast", "test/zzz_bootstrap/bootstrap_test.py::BootstrapTests::test_bootstrap" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
46a05a4185cf5b27554f04d72f312a5f8cabfe4d
2020-03-13 15:11:07
docker.io/swerebenchv2/rmarkello-abagen:140-46a05a4
rmarkello__abagen-140
Function: fetch_rnaseq(data_dir=None, donors=None, resume=True, verbose=1) Location: abagen.datasets.fetchers Inputs: - data_dir (str, optional): target directory for download/unpacking; defaults to current working directory. - donors (list‑like or str or None, optional): donor identifiers (subject numbers or UIDs). Ac...
python
BSD-3-Clause
diff --git a/.circleci/config.yml b/.circleci/config.yml index e38c490..716b8af 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,7 +89,7 @@ jobs: - persist_to_workspace: root: /tmp paths: - - src/data/allenbrain + - src/data/microarray style_c...
[ENH] Adds fetchers / loaders for RNAseq data Closes #98 Adds new functions for fetching and loading RNAseq data. Modifies other related functions / updates some doc-strings as necessary (e.g., `io.read_annotation` doc-string). The changes to `abagen.get_expression_data()` (i.e., the call to `fetch_rnaseq`) shou...
Include RNAseq data fetchers + loaders? ## The issue For two of the AHBA donors RNA sequencing was run for a number of tissue samples. These data are, generally, higher quality than the microarray data that are used throughout most of ``abagen``. It might be nice to include an automated way to fetch and load this da...
rmarkello/abagen
diff --git a/abagen/tests/conftest.py b/abagen/tests/conftest.py index ba35d48..20733d0 100644 --- a/abagen/tests/conftest.py +++ b/abagen/tests/conftest.py @@ -6,7 +6,9 @@ Fixtures for all abagen tests import os import pytest -from abagen.datasets import fetch_desikan_killiany, fetch_microarray +from abagen.datase...
[ "abagen/tests/datasets/test_fetchers.py::test_fetch_microarray", "abagen/tests/datasets/test_fetchers.py::test_fetch_raw_mri", "abagen/tests/datasets/test_fetchers.py::test_fetch_rnaseq", "abagen/tests/datasets/test_fetchers.py::test_get_gene_group[brain-2413]", "abagen/tests/datasets/test_fetchers.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
349353edaa261a252aa9b8aa45ed2989634a3bee
2024-03-07 20:48:30
docker.io/swerebenchv2/getmoto-moto:7439-349353e
getmoto__moto-7439
Method: update_secret_version_stage(self, SecretId: str, VersionStage: str, MoveToVersionId: str = None, RemoveFromVersionId: str = None) Location: moto/secretsmanager/models.py (SecretsManagerBackend class) Inputs: - **SecretId** – ARN or name of the secret (string, required). - **VersionStage** – Staging lab...
python
Apache-2.0
diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py index 3414efa2a..819fcea2f 100644 --- a/moto/secretsmanager/models.py +++ b/moto/secretsmanager/models.py @@ -1011,6 +1011,14 @@ class SecretsManagerBackend(BaseBackend): ) stages.remove(version_stage) + el...
SecretsManager: Ensure AWSPREVIOUS is only ever tied to one version Fixes #7425
secretsmanager update_secret_version_stage does not remove AWSPREVIOUS correctly moto3 5.0.2 installed via pip and requrirements.txt using python mocks with boto3 1.34.41 Here is failing test case. ``` import io import boto3 import os import pytest from moto import mock_aws @pytest.fixture(scope="funct...
getmoto/moto
diff --git a/tests/test_secretsmanager/__init__.py b/tests/test_secretsmanager/__init__.py index 08a1c1568..cc6729aa9 100644 --- a/tests/test_secretsmanager/__init__.py +++ b/tests/test_secretsmanager/__init__.py @@ -1,1 +1,43 @@ -# This file is intentionally left blank. +import os +from functools import wraps +from uu...
[ "tests/test_secretsmanager/test_secretsmanager.py::test_update_secret_version_stage_manually", "tests/test_secretsmanager/test_secretsmanager.py::test_update_secret_version_stage_dont_specify_current_stage" ]
[ "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_value", "tests/test_secretsmanager/test_secretsmanager.py::test_secret_arn", "tests/test_secretsmanager/test_secretsmanager.py::test_create_secret_with_client_request_token", "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_v...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/getmoto/moto/blob/8178cbde1a3310aa5...
eec07dd6064215596ec92883c0eefab686c9d49d
2020-05-27 18:39:23
docker.io/swerebenchv2/bimmerconnected-bimmer-connected:183-eec07dd
bimmerconnected__bimmer_connected-183
Method: RemoteServices.trigger_remote_vehicle_finder(self) Location: bimmer_connected/remote_services.py Inputs: None (uses the RemoteServices instance bound to a specific vehicle) Outputs: RemoteServiceStatus – the result of the remote VEHICLE_FINDER execution; raises RemoteServiceError on failure. Description: Se...
python
Apache-2.0
diff --git a/bimmer_connected/cli.py b/bimmer_connected/cli.py index 47cf3c4..202feba 100644 --- a/bimmer_connected/cli.py +++ b/bimmer_connected/cli.py @@ -40,6 +40,11 @@ def main_parser() -> argparse.ArgumentParser: flash_parser.add_argument('vin', help=TEXT_VIN) flash_parser.set_defaults(func=light_flash) ...
Add VEHICLE_FINDER remote service Fixes #182. Many thanks to @droneando for doing inital testing and development! Adds `VEHICLE_FINDER` remote service to trigger an update of the vehicle position. Can be called from anywhere, no GPS coordinates required for vehicles pre 7/2014. Usage from HA requires an update t...
Add VEHICLE_FINDER service Hi: Many thanks for your project! I have missed in your project the VEHICLE_FINDER service, that forces the vehicle to update its gps position on the BMW servers. At least in my vehicle (2015 F31), if you don't force the vehicle finder in the BMW app, this data is not updated automaticall...
bimmerconnected/bimmer_connected
diff --git a/test/test_remote_services.py b/test/test_remote_services.py index 47062fd..c68fb95 100644 --- a/test/test_remote_services.py +++ b/test/test_remote_services.py @@ -51,6 +51,7 @@ class TestRemoteServices(unittest.TestCase): ('DOOR_LOCK', 'trigger_remote_door_lock', True), ('DOOR_UN...
[ "test/test_remote_services.py::TestRemoteServices::test_trigger_remote_services" ]
[ "test/test_remote_services.py::TestRemoteServices::test_get_remote_service_status", "test/test_remote_services.py::TestRemoteServices::test_parse_timestamp", "test/test_remote_services.py::TestRemoteServices::test_parsing_of_message_all_attributes", "test/test_remote_services.py::TestRemoteServices::test_pars...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
114bcad22cd234809c05a48c310be17d3c2d5a23
2022-05-02 20:51:02
docker.io/swerebenchv2/hypothesisworks-hypothesis:3334-114bcad
hypothesisworks__hypothesis-3334
Function: example(*args, **kwargs) Location: hypothesis.core.example Inputs: - *args: any positional arguments representing the values of the example (e.g., literals or strategies). - **kwargs: keyword arguments representing named example values. Outputs: - Returns a decorator (Callable[[TestFunc], TestFunc]) that, whe...
python
custom-check-github
diff --git a/AUTHORS.rst b/AUTHORS.rst index 4144f9c1a..414c813e7 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -82,6 +82,7 @@ their individual contributions. * `Katelyn Gigante <https://github.com/silasary>`_ * `Katrina Durance <https://github.com/kdurance>`_ * `kbara <https://www.github.com/kbara>`_ +* Keeri Tramm...
Hypothesis 3319 first ever commit for open source Fixes #3319.
Stop silently dropping examples when the `@example()` decorator is applied to itself Suppose you wanted to write a function which added explicit `@hypothesis.example()`s to a function for the cross-product of a few sequences. A correct implementation would look something like: ```python import itertools from hypo...
HypothesisWorks/hypothesis
diff --git a/hypothesis-python/tests/cover/test_explicit_examples.py b/hypothesis-python/tests/cover/test_explicit_examples.py index bed47e777..fa8afd863 100644 --- a/hypothesis-python/tests/cover/test_explicit_examples.py +++ b/hypothesis-python/tests/cover/test_explicit_examples.py @@ -282,3 +282,11 @@ def test_helpf...
[ "hypothesis-python/tests/cover/test_explicit_examples.py::test_stop_silently_dropping_examples_when_decorator_is_applied_to_itself" ]
[ "hypothesis-python/tests/cover/test_explicit_examples.py::TestInstanceMethods::test_hi_1", "hypothesis-python/tests/cover/test_explicit_examples.py::TestInstanceMethods::test_hi_2", "hypothesis-python/tests/cover/test_explicit_examples.py::TestInstanceMethods::test_hi_3", "hypothesis-python/tests/cover/test_e...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/HypothesisWorks/hypothesis/blob/7f1fa...
8eab329b27faad0836bcff7f2c7a40c679340cc7
2021-11-26 18:42:21
docker.io/swerebenchv2/researchobject-ro-crate-py:100-8eab329
researchobject__ro-crate-py-100
Function: get_norm_value(json_entity, prop) Location: rocrate/utils.py Inputs: - **json_entity** (dict): a JSON‑LD entity dictionary that may contain the target property. - **prop** (str): name of the property to retrieve; the property's value can be missing, a string, a list of strings, a list/dict with an “@id” fiel...
python
Apache-2.0
diff --git a/rocrate/model/computerlanguage.py b/rocrate/model/computerlanguage.py index 171d864..6571cd9 100644 --- a/rocrate/model/computerlanguage.py +++ b/rocrate/model/computerlanguage.py @@ -75,7 +75,6 @@ CWL_DEFAULT_VERSION = "1.2" # https://github.com/galaxyproject/gxformat2 has some info on gxformat2 versions...
Support for latest Workflow RO-Crate profile Fixes #99.
Can't read recent WorkflowHub crates Reported by @lrodrin and @jmfernandez at yesterday's community meeting. One such example is https://workflowhub.eu/workflows/244. ```pycon >>> from rocrate.rocrate import ROCrate >>> crate = ROCrate("/tmp/workflow-244-3") Traceback (most recent call last): File "<stdin>", l...
ResearchObject/ro-crate-py
diff --git a/test/test_read.py b/test/test_read.py index ac173f1..b2fffe1 100644 --- a/test/test_read.py +++ b/test/test_read.py @@ -368,3 +368,65 @@ def test_generic_data_entity(tmpdir): crate = ROCrate(out_crate_dir) check_rc() + + +def test_root_conformsto(tmpdir): + # actually not a valid workflow ro...
[ "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://workflowhub.eu/workflows/244" ], "inte...
8fb3140382d6bd21c939c26d6a0a63758ac8ff48
2020-10-22 23:07:44
docker.io/swerebenchv2/stac-utils-pystac:208-8fb3140
stac-utils__pystac-208
No new interfaces are introduced.
python
custom-check-github
diff --git a/pystac/__init__.py b/pystac/__init__.py index 616dfbd6..3925acb5 100644 --- a/pystac/__init__.py +++ b/pystac/__init__.py @@ -71,7 +71,7 @@ def write_file(obj, include_self_link=True, dest_href=None): """Writes a STACObject to a file. This will write only the Catalog, Collection or Item ``obj``...
Allow for unnormalized path prefixes like /vsitar/ The logic in make_absolute_href uses os.path.abspath, which normalizes paths. This lets us translate joined paths like /home/user/../catalog.json into proper paths. However, normalizing the path will also modify the root path being joined to in ways that may not be des...
PyStac Sometimes Removes Characters from URIs Hello, I have noticed that when getting absolute hrefs from PyStac (via `catalog.make_all_asset_hrefs_absolute()` or similar) PyStac sometimes loses key parts of non-local-fileystem paths. In particular, I noticed this when using a catalog root of `/vsitar//tmp/catalo...
stac-utils/pystac
diff --git a/tests/extensions/test_version.py b/tests/extensions/test_version.py index c4ccb59e..f99d3bae 100644 --- a/tests/extensions/test_version.py +++ b/tests/extensions/test_version.py @@ -1,16 +1,16 @@ """Tests for pystac.extensions.version.""" import datetime +from tests.utils import TestCases import unitt...
[ "tests/test_utils.py::UtilsTest::test_make_absolute_href_on_vsitar" ]
[ "tests/extensions/test_version.py::TestCases::test_case_1", "tests/extensions/test_version.py::TestCases::test_case_2", "tests/extensions/test_version.py::TestCases::test_case_3", "tests/extensions/test_version.py::TestCases::test_case_4", "tests/extensions/test_version.py::TestCases::test_case_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": [ "https://github.com/stac-utils/pystac/blob/cf804c370b79b4...
f09e09a7bdb1b37ff5f1f9197ea6e8bbe135ead9
2022-09-13 20:36:38
docker.io/swerebenchv2/pennylaneai-pennylane:3057-f09e09a
pennylaneai__pennylane-3057
Method: Exp.matrix(self, wire_order=None) Location: pennylane/ops/op_math/exp.py, class Exp Inputs: - self: Exp operator instance containing a base observable (self.base) and a coefficient (self.coeff). - wire_order (optional): sequence of wire identifiers specifying the order in which the resulting matrix should be ex...
python
Apache-2.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bcb981d48..2cfedfce7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,4 +18,3 @@ repos: hooks: - id: black exclude: ^doc/ - language_version: python3.8 diff --git a/doc/releases/changelog-0.26.0.md b/doc/...
`Exp` matrix computation bugfix Fixes #3036 In the case of trainable autograd coefficients, `qml.ops.Exp` uses the eigenvalues and diagonalizing gates to compute the matrix in a differentiable manner. But diagonalizing gates don't always have operators that act on all the wires. In that case, `ValueError` were ra...
[BUG] Matrix method of `qml.exp` doesn't utilize `wire_order` ### Expected behavior Matrix method of `qml.exp` should utilize `wire_order` in calculating both `diagonalizing_mat` and `eigenval_mat`. ### Actual behavior Since `qml.eigvals` doesn't support `wire_order` currently, the matrix method of `qml.exp` skips...
PennyLaneAI/pennylane
diff --git a/tests/ops/op_math/test_exp.py b/tests/ops/op_math/test_exp.py index bd54d4c3d..e6be0ec20 100644 --- a/tests/ops/op_math/test_exp.py +++ b/tests/ops/op_math/test_exp.py @@ -139,14 +139,38 @@ class TestMatrix: assert qml.math.allclose(op.matrix(), isingxx.matrix()) @pytest.mark.autograd - ...
[ "tests/ops/op_math/test_exp.py::TestMatrix::test_matrix_autograd_rz[True]", "tests/ops/op_math/test_exp.py::TestMatrix::test_matrix_autograd_rz[False]", "tests/ops/op_math/test_exp.py::TestMatrix::test_tensor_with_pauliz_autograd[True]", "tests/ops/op_math/test_exp.py::TestMatrix::test_tensor_with_pauliz_auto...
[ "tests/ops/op_math/test_exp.py::TestInitialization::test_pauli_base[exp]", "tests/ops/op_math/test_exp.py::TestInitialization::test_pauli_base[Exp]", "tests/ops/op_math/test_exp.py::TestInitialization::test_provided_coeff[exp]", "tests/ops/op_math/test_exp.py::TestInitialization::test_provided_coeff[Exp]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
120385f5795257f729c1bc31ccf440451766744c
2023-06-24 13:39:26
docker.io/swerebenchv2/yukinarit-pyserde:389-120385f
yukinarit__pyserde-389
No new interfaces are introduced.
python
MIT
diff --git a/serde/de.py b/serde/de.py index b66e24c..633c879 100644 --- a/serde/de.py +++ b/serde/de.py @@ -362,8 +362,6 @@ def from_obj(c: Type[T], o: Any, named: bool, reuse_instances: bool) -> T: maybe_generic = c try: thisfunc = functools.partial(from_obj, named=named, reuse_instances=reuse_...
Fix deserializing from incompatible value e.g. None Closes #369
from_yaml will return None with empty string I assume this is a bug and not by design: ```py from dataclasses import dataclass from serde.yaml import from_yaml @dataclass class Foo: bar: str good = ''' bar: hello ''' bad = ''' no: hello ''' from_yaml(Foo, good) # Foo(bar='hello') ✅ from_ya...
yukinarit/pyserde
diff --git a/tests/test_basics.py b/tests/test_basics.py index 971a7e2..30e7196 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -1233,3 +1233,17 @@ def test_nested_dataclass_ignore_wrapper_options() -> None: serialized = serde.to_dict(a) assert {"foo": {"myLongName": 1}} == serialized ass...
[ "tests/test_basics.py::test_deserialize_from_incompatible_value" ]
[ "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests/test_basics...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
db0cf656fc2af97867c16971c8c96a5a77adb8bc
2025-02-27 02:30:11
docker.io/swerebenchv2/tortoise-aerich:427-db0cf65
tortoise__aerich-427
Method: Command.__aenter__(self) Location: aerich/__init__.py, class Command Inputs: None (instance method) Outputs: Returns the Command instance after awaiting its asynchronous initialization (`await self.init()`). Used when entering an `async with Command(...)` block. Description: Asynchronously prepares the ...
python
Apache-2.0
diff --git a/README.md b/README.md index a8254b4..10bc2c7 100644 --- a/README.md +++ b/README.md @@ -226,14 +226,14 @@ from tortoise import Model, fields class Test(Model): - date = fields.DateField(null=True, ) - datetime = fields.DatetimeField(auto_now=True, ) - decimal = fields.DecimalField(max_digits=...
feat: `aerich.Command` support `async with` syntax Fixes #212
Aerich Command class never closes Tortoise connections This one had me tearing out my hair for a few hours since I'm still new to Tortoise. If you are using Aerich through the Command class ([as mentioned here in the Readme](https://github.com/tortoise/aerich#use-aerich-in-application)), it doesn't close the Tortoise c...
tortoise/aerich
diff --git a/tests/test_command.py b/tests/test_command.py new file mode 100644 index 0000000..f7a5ff9 --- /dev/null +++ b/tests/test_command.py @@ -0,0 +1,11 @@ +from aerich import Command +from conftest import tortoise_orm + + +async def test_command(mocker): + mocker.patch("os.listdir", return_value=[]) + asyn...
[ "tests/test_command.py::test_command" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/tortoise/aerich#use-aerich-in-appli...
346b1c064e4e9f0a63c08fda669ac07fefb29fd6
2025-06-12 07:53:21
docker.io/swerebenchv2/iterative-dvc:10778-346b1c0
iterative__dvc-10778
Function: site_cache_dir(config_site_cache_dir: Optional[str] = None) Location: dvc.dirs.site_cache_dir Inputs: - config_site_cache_dir (optional str): value from DVC config `core.site_cache_dir` that callers can pass to override the default. - Environment variable `DVC_SITE_CACHE_DIR` is implicitly read; if set it ta...
python
Apache-2.0
diff --git a/dvc/dirs.py b/dvc/dirs.py index 881a30840..eef78f856 100644 --- a/dvc/dirs.py +++ b/dvc/dirs.py @@ -1,4 +1,5 @@ import os +from typing import Optional import platformdirs @@ -20,13 +21,16 @@ def global_config_dir(): ) -def site_cache_dir(): +def site_cache_dir(config_site_cache_dir: Optional...
(fix) `DVC_SITE_CACHE_DIR` environment variable should override `core.site_cache_dir` Fixes #10777 Currently: `Repo.site_cache_dir()` in `dvc/repo/__init__.py` selects first the configuration read in the config file, and if it does not exist it relies on `dirs.site_cache_dir()` to pick a value. The documentation ...
`DVC_SITE_CACHE_DIR` environment variable does not override `.dvc/config` settings # Bug Report ## Description The documentation on [environment variables](https://dvc.org/doc/user-guide/env#environment-variables) says: > DVC_SITE_CACHE_DIR: Directory for the [site cache dir](https://dvc.org/doc/user-guide/project-...
iterative/dvc
diff --git a/tests/unit/test_dirs.py b/tests/unit/test_dirs.py index 259a330af..7ef79e364 100644 --- a/tests/unit/test_dirs.py +++ b/tests/unit/test_dirs.py @@ -21,3 +21,13 @@ def test_site_cache_dir_on_unix(monkeypatch): def test_site_cache_dir_env_var(monkeypatch): monkeypatch.setenv(DVC_SITE_CACHE_DIR, "foo_ba...
[ "tests/unit/test_dirs.py::test_site_cache_dir_with_config_parameter", "tests/unit/test_dirs.py::test_site_cache_dir_env_var_precedence" ]
[ "tests/unit/test_dirs.py::test_global_config_dir_respects_env_var", "tests/unit/test_dirs.py::test_site_cache_dir_on_unix", "tests/unit/test_dirs.py::test_site_cache_dir_env_var" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.93, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://dvc.org/doc/user-guide/env#environment-variables...
bee273e9a5b825ff410e3405eb41a339814813d1
2022-11-16 08:04:34
docker.io/swerebenchv2/python-semver-python-semver:368-bee273e
python-semver__python-semver-368
Method: Version.is_valid(cls, version: str) -> bool Location: src/semver/version.py Inputs: - **cls** – the Version class (implicit) - **version** – a string containing a semantic version candidate; must be non‑empty Outputs: - Returns **True** if *version* conforms to the SemVer specification, otherwise **False**. -...
python
BSD-3-Clause
diff --git a/.gitignore b/.gitignore index c0859cd..dead335 100644 --- a/.gitignore +++ b/.gitignore @@ -268,3 +268,6 @@ fabric.properties docs/_api !docs/_api/semver.__about__.rst + +# For node +node_modules/ diff --git a/changelog.d/284.deprecation.rst b/changelog.d/284.deprecation.rst new file mode 100644 index ...
Fix #284: implement "is compatible with" method This is a first implementation of `Version.is_compatible`. The algorithm checks: * if the two majors are different, it's incompatible * if the two majors are equal, but the minor of the callee is lower than the caller, it's incompatible * if both prereleases are p...
Feature request: concise "compatibility" matching I'd really like a concise expression for "is version x compatible with version y?" Specifically, suppose I write code against one version of an API, and the API exposes a semver-compliant version. Is `v_caller` compatible with `v_api`? The most concise expression ...
python-semver/python-semver
diff --git a/tests/test_semver.py b/tests/test_semver.py index b15bfea..782d5c7 100644 --- a/tests/test_semver.py +++ b/tests/test_semver.py @@ -73,10 +73,65 @@ def test_should_be_able_to_use_integers_as_prerelease_build(): def test_should_versioninfo_isvalid(): - assert Version.isvalid("1.0.0") is True - as...
[ "tests/test_semver.py::test_should_versioninfo_isvalid", "tests/test_semver.py::test_should_succeed_compatible_match[old0-new0]", "tests/test_semver.py::test_should_succeed_compatible_match[old1-new1]", "tests/test_semver.py::test_should_succeed_compatible_match[old2-new2]", "tests/test_semver.py::test_shou...
[ "tests/test_semver.py::test_should_private_increment_string[rc-rc]", "tests/test_semver.py::test_should_private_increment_string[rc.1-rc.2]", "tests/test_semver.py::test_should_private_increment_string[2x-3x]", "tests/test_semver.py::test_should_not_allow_negative_numbers[ver0]", "tests/test_semver.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": "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": ...
98080d23eb9c77857f4114780b7b43e32e475039
2021-01-06 19:00:08
docker.io/swerebenchv2/niconoe-pyinaturalist:91-98080d2
niconoe__pyinaturalist-91
Function: request(method: str, url: str, ids: Union[str, List] = None, params: Dict = None, headers: Dict = None, session: requests.Session = None, **kwargs) -> requests.Response Location: pyinaturalist/api_requests.py Inputs: HTTP method string, target URL, optional resource IDs to append to the URL, optional query pa...
python
MIT
diff --git a/pyinaturalist/api_requests.py b/pyinaturalist/api_requests.py index 7e406a5..45c239f 100644 --- a/pyinaturalist/api_requests.py +++ b/pyinaturalist/api_requests.py @@ -1,4 +1,5 @@ """ Some common functions for HTTP requests used by both the Node and REST API modules """ +import threading from logging imp...
Improved pagination Closes #82
Improve performance for auto-paginated functions Functions that perform pagination like `get_all_observations()` could be improved. They should use `requests.Session` to take advantage of its connection pooling, and also request the largest possible page size.
niconoe/pyinaturalist
diff --git a/test/test_api_requests.py b/test/test_api_requests.py index f2f4db5..31dac1d 100644 --- a/test/test_api_requests.py +++ b/test/test_api_requests.py @@ -7,13 +7,18 @@ from pyinaturalist.api_requests import MOCK_RESPONSE, delete, get, post, put, re # Just test that the wrapper methods call requests.reques...
[ "test/test_api_requests.py::test_http_methods[delete-DELETE]", "test/test_api_requests.py::test_http_methods[get-GET]", "test/test_api_requests.py::test_http_methods[post-POST]", "test/test_api_requests.py::test_http_methods[put-PUT]" ]
[ "test/test_api_requests.py::test_request_headers[input_kwargs0-expected_headers0]", "test/test_api_requests.py::test_request_headers[input_kwargs1-expected_headers1]", "test/test_api_requests.py::test_request_headers[input_kwargs2-expected_headers2]", "test/test_api_requests.py::test_request_dry_run[False-Fal...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
77382e75dc0574419d97ace4c9f8941c2b036e2c
2021-06-30 15:11:57
docker.io/swerebenchv2/zalando-patroni:1991-77382e7
zalando__patroni-1991
No new interfaces are introduced.
python
MIT
diff --git a/patroni/ha.py b/patroni/ha.py index 7d08dcae..ee1c78e8 100644 --- a/patroni/ha.py +++ b/patroni/ha.py @@ -1002,7 +1002,7 @@ class Ha(object): else: return self.enforce_master_role( 'no action. I am ({0}) the leader with the lock'.format(self.st...
fix minor typo fixes #1990
minor typo in logging message `promoted self to leader because i had the session lock` instead of `promoted self to leader because I had the session lock` (note the capitalization of `I`) in `patroni/patroni/ha.py` and `patroni/tests/test_ha.py`.
zalando/patroni
diff --git a/tests/test_ha.py b/tests/test_ha.py index 85f1cfc8..68a9a4ea 100644 --- a/tests/test_ha.py +++ b/tests/test_ha.py @@ -300,7 +300,7 @@ class TestHa(PostgresInit): self.p.is_healthy = true self.ha.has_lock = true self.p.controldata = lambda: {'Database cluster state': 'in productio...
[ "tests/test_ha.py::TestHa::test_promote_because_have_lock", "tests/test_ha.py::TestHa::test_start_as_readonly" ]
[ "tests/test_ha.py::TestHa::test__is_healthiest_node", "tests/test_ha.py::TestHa::test_abort_join", "tests/test_ha.py::TestHa::test_acquire_lock_as_master", "tests/test_ha.py::TestHa::test_after_pause", "tests/test_ha.py::TestHa::test_bootstrap_as_standby_leader", "tests/test_ha.py::TestHa::test_bootstrap_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
e1d4ff52716dc52d926f68884977a3a4026ecc01
2017-12-04 18:58:36
docker.io/swerebenchv2/moggers87-salmon:63-e1d4ff5
moggers87__salmon-63
Method: MailBase.keys(self) Location: salmon/encoding.py → class MailBase Inputs: None Outputs: List[str] – a list of header names returned in normalized (canonical) form (e.g., “Subject”, “From”). The list reflects the keys stored in the underlying `mime_part` but each entry is passed through `normalize_header`. Descr...
python
custom-check-github
diff --git a/salmon/encoding.py b/salmon/encoding.py index b6a6554..efded87 100644 --- a/salmon/encoding.py +++ b/salmon/encoding.py @@ -214,7 +214,7 @@ class MailBase(object): def keys(self): """Returns header keys.""" - return self.mime_part.keys() + return [normalize_header(key) for key...
Normalise header names when returning them from MailBase.keys() Fixes #62
`salmon.encoding.MailBase.keys` doesn't return normalised header names `MailBase.keys` should return the normalised header names. The raw header names will still be available from `MailBase.mime_part.keys`. When we refactored how `MailBase` parsed data from the initial email object, we missed the `keys` method - pre...
moggers87/salmon
diff --git a/tests/salmon_tests/encoding_tests.py b/tests/salmon_tests/encoding_tests.py index 08b5eef..2ecaec2 100644 --- a/tests/salmon_tests/encoding_tests.py +++ b/tests/salmon_tests/encoding_tests.py @@ -65,6 +65,25 @@ def test_MailBase(): assert k not in m +def test_normalized_headers(): + base = ...
[ "tests/salmon_tests/encoding_tests.py::test_normalized_headers" ]
[ "tests/salmon_tests/encoding_tests.py::test_MailBase", "tests/salmon_tests/encoding_tests.py::test_header_to_mime_encoding", "tests/salmon_tests/encoding_tests.py::test_dumb_shit", "tests/salmon_tests/encoding_tests.py::test_header_from_mime_encoding", "tests/salmon_tests/encoding_tests.py::test_to_message_...
{ "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": [...
b4b28ec01c60b8753ab53fe60b10d7dbaa55842b
2022-05-02 12:47:03
docker.io/swerebenchv2/pallets-jinja:1663-b4b28ec
pallets__jinja-1663
Method: TemplateNotFound.__init__(self, name: str, description: str | None = None) Location: src/jinja2/exceptions.py (class TemplateNotFound) Inputs: - **name** – the name of the missing template (required). - **description** – an optional string that will be used as the exception’s message; if omitted the def...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 384c6122..cd2a4ef0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -35,6 +35,8 @@ Unreleased - Fix `copy`/`pickle` support for the internal ``missing`` object. :issue:`2027` - ``Environment.overlay(enable_async)`` is applied correctly. :pr:`2061` +- The error mess...
`FileSystemLoader` include paths in error <!-- Before opening a PR, open a ticket describing the issue or feature the PR will address. Follow the steps in CONTRIBUTING.rst. Replace this comment with a description of the change. Describe how it addresses the linked ticket. --> <!-- Link to relevant issues or pr...
Add searchpath to TemplateNotFound exception message This was from https://github.com/apache/airflow/issues/23333 where trying to load a template that doesn't exist in the searchpath raises `TemplateNotFound` exception. In this case an absolute path is used which causes issue over concatenation but including `searchpat...
pallets/jinja
diff --git a/tests/test_loader.py b/tests/test_loader.py index e0cff672..5a4e1a9d 100644 --- a/tests/test_loader.py +++ b/tests/test_loader.py @@ -179,6 +179,24 @@ class TestFileSystemLoader: t = e.get_template("foo/test.html") assert t.filename == str(self.searchpath / "foo" / "test.html") + def...
[ "tests/test_loader.py::TestFileSystemLoader::test_error_includes_paths" ]
[ "tests/test_loader.py::TestLoaders::test_dict_loader", "tests/test_loader.py::TestLoaders::test_package_loader", "tests/test_loader.py::TestLoaders::test_filesystem_loader_overlapping_names", "tests/test_loader.py::TestLoaders::test_choice_loader", "tests/test_loader.py::TestLoaders::test_function_loader", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/apache/airflow/issues/23333", "...
fc8ee07dd1adc372f7c60705cf8d157d7d2635d6
2023-08-01 20:38:20
docker.io/swerebenchv2/tomwhite-cubed:289-fc8ee07
tomwhite__cubed-289
Function: convert_to_bytes(size) Location: cubed.utils.convert_to_bytes Inputs: size – int ≥ 0, float (must represent a whole‑byte count), or str (e.g., "500B", "1.2MB", "1 MB", "100_000"); strings may contain optional spaces or underscores, an optional unit suffix (B, kB, MB, GB, TB, PB), and the numeric part may be i...
python
Apache-2.0
diff --git a/cubed/runtime/executors/dask.py b/cubed/runtime/executors/dask.py deleted file mode 100644 index 0de8f99d..00000000 --- a/cubed/runtime/executors/dask.py +++ /dev/null @@ -1,34 +0,0 @@ -import dask - -from cubed.core.plan import visit_nodes -from cubed.runtime.types import DagExecutor - - -def exec_stage_f...
Fixes for converting strings to bytes Closes #285
Bugs with passing allowed_mem as a string There are some bugs with #188 ```python In [2]: cubed.Spec(allowed_mem='0.8MB') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[2], line 1 ----> 1 cubed.Spec(...
tomwhite/cubed
diff --git a/cubed/tests/test_core.py b/cubed/tests/test_core.py index 5588167c..bd750146 100644 --- a/cubed/tests/test_core.py +++ b/cubed/tests/test_core.py @@ -283,12 +283,17 @@ class TestSpecMemArgTypes: [ (500, 500), (100_000, 100_000), + (50.0, 50), ("500...
[ "cubed/tests/test_core.py::TestSpecMemArgTypes::test_convert_to_bytes[50.0-50]", "cubed/tests/test_core.py::TestSpecMemArgTypes::test_convert_to_bytes[100_000-100000]", "cubed/tests/test_core.py::TestSpecMemArgTypes::test_convert_to_bytes[1.2MB-1200000.0]", "cubed/tests/test_core.py::TestSpecMemArgTypes::test...
[ "cubed/tests/test_core.py::test_regular_chunks", "cubed/tests/test_core.py::test_from_array[x0-chunks0-None]", "cubed/tests/test_core.py::test_from_array[x1-chunks1-True]", "cubed/tests/test_core.py::test_from_array[x2--1-True]", "cubed/tests/test_core.py::test_from_array[x3-1-None]", "cubed/tests/test_co...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
9a834e069fd04cffadbb2d2e3ccc70342a872252
2025-02-08 19:01:32
docker.io/swerebenchv2/dynaconf-dynaconf:1238-9a834e0
dynaconf__dynaconf-1238
Method: Settings.populate_obj(self, obj, keys=None, ignore=None, merge=False, merge_unique=False, internal=False, convert_to_dict=False) Location: dynaconf/base.py Inputs: - **obj**: any Python object (typically a class instance) that will receive attributes. - **keys** (optional, list of str): specific setting names t...
python
MIT
diff --git a/docs/advanced.md b/docs/advanced.md index e90e132..8192f8e 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -593,6 +593,15 @@ assert obj.VALUE == 42.1 # AttributeError ``` +**new in 3.2.7** +- `populate_obj` will take `internals` boolean to enable or disable populating internal settings. + + +...
feat: populate_obj takes convert_to_dict [port from 3.2.8] Defaults to false, when set to true makes the populated keys to not be Box values but Python types. port of #1237 closes #1227
feat: populate_obj must convert to dict before setting. This must be implemented on master and backported to 3.2.8 Current behavior ```py settings = Dynaconf() class Anything: ... obj = Anything() settings.set("data", {"key: "value"}) settings.populate_obj(obj) # now when accessing the type of data wil be Box prin...
dynaconf/dynaconf
diff --git a/tests/test_base.py b/tests/test_base.py index 7fa263b..726ae8a 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -11,6 +11,7 @@ from dynaconf import Validator from dynaconf.loaders import toml_loader from dynaconf.loaders import yaml_loader from dynaconf.strategies.filtering import PrefixFilte...
[ "tests/test_base.py::test_populate_obj_convert_to_dict" ]
[ "tests/test_base.py::test_deleted_raise", "tests/test_base.py::test_delete_and_set_again", "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::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
da68002685b0a7d0027e189129d6bde35303a58b
2021-01-28 01:15:19
docker.io/swerebenchv2/pypa-packaging:390-da68002
pypa__packaging-390
Function: parse_wheel_filename(filename: str) -> Tuple[NormalizedName, Version, BuildTag, FrozenSet[Tag]] Location: packaging.utils Inputs: - filename (str): the wheel file name. Must end with “.whl” and conform to PEP 427 naming (name-version[-build]-python‑tags‑abi‑platform.whl). The build part, if present, must star...
python
custom-check-github
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index de2e2a9..b9969fe 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,7 +4,10 @@ Changelog *unreleased* ~~~~~~~~~~~~ -No unreleased changes. +* Run [isort](https://pypi.org/project/isort/) over the code base (:issue:`377`) +* Add support for the ``macosx_10_*_univers...
Change the return type for the build number portion of utils.parse_wheel_filename() Switching to `()` or `(int, str)` aligns with what PEP 427 expects and allows for easier sorting by build number. Closes #389
(Potentially) tweak build tag return values for utils.parse_wheel_filename() Right now, `packaging.utils.parse_wheel_filename()` returns `None` for a build tag if it isn't defined, `str` if it is. There are two potential ways of tweaking this. (See https://github.com/pypa/packaging/pull/387 for background.) # Ret...
pypa/packaging
diff --git a/tests/test_utils.py b/tests/test_utils.py index a5e0d09..d2a7c91 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -64,14 +64,21 @@ def test_canonicalize_version(version, expected): "foo-1.0-py3-none-any.whl", "foo", Version("1.0"), - None, + ...
[ "tests/test_utils.py::test_parse_wheel_filename[foo-1.0-py3-none-any.whl-foo-version0-build0-tags0]", "tests/test_utils.py::test_parse_wheel_filename[foo-1.0-1000-py3-none-any.whl-foo-version1-build1-tags1]", "tests/test_utils.py::test_parse_wheel_filename[foo-1.0-1000abc-py3-none-any.whl-foo-version2-build2-ta...
[ "tests/test_utils.py::test_canonicalize_name[foo-foo]", "tests/test_utils.py::test_canonicalize_name[Foo-foo]", "tests/test_utils.py::test_canonicalize_name[fOo-foo]", "tests/test_utils.py::test_canonicalize_name[foo.bar-foo-bar]", "tests/test_utils.py::test_canonicalize_name[Foo.Bar-foo-bar]", "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": "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/pypa/packaging/pull/387", "ht...
67ea5109ddcdb19d77de882960d5eb791c1368ae
2022-07-23 07:09:25
docker.io/swerebenchv2/systemd-mkosi:1080-67ea510
systemd__mkosi-1080
Method: MkosiConfig._append_list(self, ref_entry: str, new_args: Any, job_name: str = DEFAULT_JOB_NAME, separator: str = ",", with_duplicates: bool = False) -> None Location: Defined in tests/test_config_parser.py inside class MkosiConfig. Inputs: - **ref_entry** (str): Name of the configuration entry to update (e.g.,...
python
null
diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 30269740..432a9e7f 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -125,7 +125,7 @@ SomeIO = Union[BinaryIO, TextIO] PathString = Union[Path, str] MKOSI_COMMANDS_NEED_BUILD = (Verb.shell, Verb.boot, Verb.qemu, Verb.serve) -MKOSI_COMMANDS_SUDO = (Ver...
Allow running qemu as an unprivileged user When testing on my system (Wayland/Sway on Arch Linux), I was able to successfully boot an image as an unprivileged user when running `mkosi qemu` with default arguments. I'd appreciate a sanity check on my changes to the `unlink_output()` handling. On reading through the ...
Allow running qemu as an unprivileged user The man page suggests that `mkosi qemu` can be run as an unprivileged user under some circumstances: > This command must be executed as root unless the image already exists and -f is not specified. but in practice mkosi's [sudo check](https://github.com/systemd/mkosi/blo...
systemd/mkosi
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 743bc8ae..5b99ba6f 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -174,7 +174,7 @@ class MkosiConfig: is_eq = False return is_eq - def _append_list(self, ref_entry: str, new_args: A...
[ "tests/test_config_parser.py::test_def[MkosiConfigManyParams]", "tests/test_config_parser.py::test_def_1[MkosiConfigManyParams]", "tests/test_config_parser.py::test_def_2[MkosiConfigManyParams]", "tests/test_config_parser.py::test_def_1_2[MkosiConfigManyParams]", "tests/test_config_parser.py::test_def_1_arg...
[ "tests/test_config_parser.py::test_verb_none", "tests/test_config_parser.py::test_verb_build", "tests/test_config_parser.py::test_verb_boot_no_cli_args1", "tests/test_config_parser.py::test_verb_boot_no_cli_args2", "tests/test_config_parser.py::test_verb_boot_no_cli_args3", "tests/test_config_parser.py::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/systemd/mkosi/blob/e2681d2adbaabe10...
fca24e39be84311d9ee794813586e312ce360a60
2024-10-31 18:38:33
docker.io/swerebenchv2/corteva-rioxarray:817-fca24e3
corteva__rioxarray-817
Function: open_rasterio(path: str, *, mask_and_scale: bool = False, parse_coordinates: bool = True, **kwargs) Location: rioxarray/_io.py (new/updated) Inputs: - **path** – file path to a raster (string or pathlib.Path). - **mask_and_scale** – when True, the returned object will have its data masked according to...
python
custom-check-github
diff --git a/docs/history.rst b/docs/history.rst index 7c458ab7..5aa1959b 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,6 +3,7 @@ History Latest ------ +- BUG:merge: Fix merging masked and scaled data (issue #814) 0.17.0 ------ diff --git a/rioxarray/_io.py b/rioxarray/_io.py index 9e628828..3de289...
BUG:merge: Fix merging masked & scaled data <!-- Feel free to remove check-list items aren't relevant to your change --> Reverts #781 - [x] Closes #814 - [x] Tests added - [x] Fully documented, including `docs/history.rst` for all changes and `docs/rioxarray.rst` for new API
merge_arrays: ignores CF conventions all versions >0.15.5 are affected <!-- Please search existing issues to avoid creating duplicates. --> #### Code Sample, a copy-pastable example if possible This example uses MODIS in HDF4 data, available on request. ```python import numpy as np import xarray as xr f...
corteva/rioxarray
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ea2e41c6..76d0c0a4 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -40,7 +40,7 @@ jobs: gdal-version: ['3.8.2'] include: - python-version: '3.10' - rasterio-version: '' ...
[ "test/integration/test_integration_merge.py::test_merge_arrays[True]", "test/integration/test_integration_merge.py::test_merge_arrays[False]", "test/integration/test_integration_merge.py::test_merge_arrays__res", "test/integration/test_integration_merge.py::test_merge_datasets__mask_and_scale[True]" ]
[ "test/integration/test_integration_merge.py::test_merge_datasets__mask_and_scale[False]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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/corteva/rioxarray/compare/0.15.5......
ffe938667e03b02ab8c1dfad98d30998e7d712ec
2019-10-24 22:54:11
docker.io/swerebenchv2/pycqa-pyflakes:484-ffe9386
pycqa__pyflakes-484
No new interfaces are introduced.
python
MIT
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index eca2002..351ab12 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -78,6 +78,51 @@ else: LOOP_TYPES = (ast.While, ast.For) FUNCTION_TYPES = (ast.FunctionDef,) + +if PY38_PLUS: + def _is_singleton(node): # type: (ast.AST) -> bool + ...
Warn about is comparison to tuple Resolves #483
python 3.8 SyntaxWarning: "is" with a literal. Did you mean "=="? Hi there - I searched a bit for this but couldn't find it. This is a warning generated by Python 3.8 and I think it's new. It's very hard to get pytest to raise for this, so it would be better if it were in pyflakes / flake8. demo: ``` """te...
PyCQA/pyflakes
diff --git a/pyflakes/test/test_is_literal.py b/pyflakes/test/test_is_literal.py index 9280cda..fbbb205 100644 --- a/pyflakes/test/test_is_literal.py +++ b/pyflakes/test/test_is_literal.py @@ -198,3 +198,25 @@ class Test(TestCase): if 4 < x is 'foo': pass """, IsLiteral) + + def test_i...
[ "pyflakes/test/test_is_literal.py::Test::test_is_tuple_constant", "pyflakes/test/test_is_literal.py::Test::test_is_tuple_constant_containing_constants", "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::test_deferred_twice_annotation", "pyflakes/test/test_type_annotations.py::TestTypeAnnotations::...
[ "pyflakes/test/test_is_literal.py::Test::test_chained_operators_is_str", "pyflakes/test/test_is_literal.py::Test::test_chained_operators_is_str_end", "pyflakes/test/test_is_literal.py::Test::test_chained_operators_is_true", "pyflakes/test/test_is_literal.py::Test::test_chained_operators_is_true_end", "pyfla...
{ "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":...
2107490ba0ea196b62656d89bff7bc5b8a4205a0
2021-05-17 17:50:41
docker.io/swerebenchv2/pennylaneai-pennylane:1329-2107490
pennylaneai__pennylane-1329
Method: SWAP.decomposition(wires) Location: pennylane.ops.qubit.SWAP (static method) Inputs: **wires** – list or sequence of two integer wire indices specifying the two qubits to be swapped. Outputs: List of three ``qml.CNOT`` operation instances that together implement the SWAP gate. The returned list is ordered such ...
python
Apache-2.0
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 8e0e26687..912f61439 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,6 +2,8 @@ <h3>New features since last release</h3> +* The `qml.SWAP` operation now has a decomposition over elementary gates. [(#1329)](https://github.com/PennyLan...
[unitaryHACK] Added SWAP gate decomposition and related tests **Context:** Added SWAP decomposition and wrote tests to it **Description of the Change:** added the the function ``` @staticmethod def decomposition(wires): ``` to ` pennylane/ops/qubit.py ` and tests for it at ` tests/ops/test_qubit_op...
[unitaryhack] Define decomposition for `qml.SWAP` *This issue has been tagged for contributions during [unitaryHACK](https://unitaryfund.github.io/unitaryhack/participating-projects.html)* Each PennyLane operation defines a decomposition. The decomposition of an operation is an ordered list of other operations. Appl...
PennyLaneAI/pennylane
diff --git a/tests/ops/test_qubit_ops.py b/tests/ops/test_qubit_ops.py index 83d1181a1..57a967032 100644 --- a/tests/ops/test_qubit_ops.py +++ b/tests/ops/test_qubit_ops.py @@ -923,6 +923,22 @@ class TestOperations: res = op.eigvals assert np.allclose(res, exp) + def test_swap_decomposition(self)...
[ "tests/ops/test_qubit_ops.py::TestOperations::test_swap_decomposition" ]
[ "tests/ops/test_qubit_ops.py::TestObservables::test_diagonalization[PauliX-mat0-eigs0]", "tests/ops/test_qubit_ops.py::TestObservables::test_diagonalization[PauliY-mat1-eigs1]", "tests/ops/test_qubit_ops.py::TestObservables::test_diagonalization[PauliZ-mat2-eigs2]", "tests/ops/test_qubit_ops.py::TestObservabl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://unitaryfund.github.io/unitaryhack/participating-...
88d5e7bfd48059c32ea37fff3af91234eedf9524
2022-01-17 23:22:23
docker.io/swerebenchv2/pylons-waitress:363-88d5e7b
pylons__waitress-363
Method: ReadOnlyFileBasedBuffer.seek(self, offset, whence=0) Location: src/waitress/buffers.py (assignment inside __init__) Inputs: offset – integer byte offset; whence – optional integer (0=SEEK_SET, 1=SEEK_CUR, 2=SEEK_END). Present only when the underlying file object is seekable. Outputs: Returns the new absolute fi...
python
custom-check-github
diff --git a/CHANGES.txt b/CHANGES.txt index 5ccaa64..888c31b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,13 @@ Python Version Support Bugfix ~~~~~~ +- ``wsgi.file_wrapper`` now sets the ``seekable``, ``seek``, and ``tell`` attributes from + the underlying file if the underlying file is seekable. This ...
Bugfix: wsgi.file_wrapper should pass-through seek/tell attrs When the application author uses `wsgi.file_wrapper` we want to allow downstream WSGI middleware to seek that file if the underlying file supports it, rather than needing to iterate over the full file to get to the part that the WSGI middleware wants to star...
Super slow 206 range requests After some debugging of slow 206 responses from Flask's `send_file`, I narrowed the issue down to an interface mismatch between Waitress and werkzeug. Deep down, werkzeug expects `wsgi.file_wrapper` to implement `seekable()` (and `seek()` and `tell()`) for efficient 206: https://gith...
Pylons/waitress
diff --git a/tests/test_buffers.py b/tests/test_buffers.py index 01cdc2d..b37949b 100644 --- a/tests/test_buffers.py +++ b/tests/test_buffers.py @@ -185,6 +185,8 @@ class TestReadOnlyFileBasedBuffer(unittest.TestCase): def test_prepare_not_seekable(self): f = KindaFilelike(b"abc") inst = self._ma...
[ "tests/test_buffers.py::TestReadOnlyFileBasedBuffer::test_prepare_seekable_closeable" ]
[ "tests/test_buffers.py::TestFileBasedBuffer::test___len__", "tests/test_buffers.py::TestFileBasedBuffer::test___nonzero__", "tests/test_buffers.py::TestFileBasedBuffer::test_append", "tests/test_buffers.py::TestFileBasedBuffer::test_close", "tests/test_buffers.py::TestFileBasedBuffer::test_ctor_from_buffer"...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/pallets/werkzeug/blob/347291802fcf89b...
30d14a4cd236cc7329a7c311bb7a3882a8eee8fc
2020-11-13 08:24:08
docker.io/swerebenchv2/hynek-structlog:283-30d14a4
hynek__structlog-283
Method: LevelFilter.__init__(self, min_level: Union[str, int], pass_unknown: bool) Location: structlog.processors Inputs: - min_level – either a numeric log level (e.g., 20) or a string name of the level (case‑insensitive, e.g., "info"). - pass_unknown – boolean flag indicating whether records with an unrecognised lev...
python
custom-check-github
diff --git a/.gitignore b/.gitignore index 3389b0b..e2dfc7b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ +*.egg-info +*.pyc +.cache .coverage* +.mypy_cache +.pytest_cache .tox -structlog.egg-info -htmlcov dist docs/_build -*.pyc -.cache -.pytest_cache/ -pip-wheel-metadata/ +htmlcov +pip-wheel-metadata...
Add LevelFilter Fixes #273
setting log level and redirecting output to file I am trying to create a pretty basic setup where logging would go to a file and I would be able to set log level. It doesn't seem to be possible because structlog.stdlib.filter_by_level doesn't work with structlog.PrintLoggerFactory and stdlib.LoggerFactory doesn't kno...
hynek/structlog
diff --git a/conftest.py b/conftest.py index e4767b2..ca862f9 100644 --- a/conftest.py +++ b/conftest.py @@ -9,7 +9,7 @@ from io import StringIO import pytest -from structlog.stdlib import _NAME_TO_LEVEL +from structlog._log_levels import _NAME_TO_LEVEL try: diff --git a/tests/test_processors.py b/tests/test_...
[ "tests/test_processors.py::TestUnicodeEncoder::test_bytes_nop", "tests/test_processors.py::TestUnicodeEncoder::test_passes_arguments", "tests/test_processors.py::TestUnicodeEncoder::test_encodes", "tests/test_processors.py::TestJSONRenderer::test_FallbackEncoder_falls_back", "tests/test_processors.py::TestJ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
5183073aba6f4f3cfa011fbd241afff6c4cab4d0
2021-12-02 12:35:11
docker.io/swerebenchv2/trailofbits-pip-audit:162-5183073
trailofbits__pip-audit-162
Method: ResolveLibResolver.resolve(self, req: Requirement) -> List[Dependency] Location: pip_audit._dependency_source.resolvelib.resolvelib Inputs: - **self** – instance of `ResolveLibResolver`. - **req** – a `packaging.requirements.Requirement` object representing the package to resolve. Outputs: - Returns a list of...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fd18b5..f9f0aa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,12 @@ All versions prior to 0.0.9 are untracked. as a bare option, `--desc` is equivalent to `--desc on` ([#153](https://github.com/trailofbits/pip-audit/pull/153)) +* Dependency resolution:...
_dependency_source: Return a `SkippedDependency` when the resolver can't find a project on PyPI Closes #157
does not work when one of many dependencíes is not present on PyPI ## Bug description Running this tool on a requirements.txt where one of the many entries e.g. points to github causes an error. ## Reproduction steps A step-by-step list of actions to reproduce the behavior. ``` git clone https://git.launc...
trailofbits/pip-audit
diff --git a/test/dependency_source/test_resolvelib.py b/test/dependency_source/test_resolvelib.py index 47188a9..7d81c1c 100644 --- a/test/dependency_source/test_resolvelib.py +++ b/test/dependency_source/test_resolvelib.py @@ -10,13 +10,14 @@ from resolvelib.resolvers import InconsistentCandidate, ResolutionImpossibl...
[ "test/dependency_source/test_resolvelib.py::test_resolvelib_http_notfound" ]
[ "test/dependency_source/test_resolvelib.py::test_resolvelib", "test/dependency_source/test_resolvelib.py::test_resolvelib_extras", "test/dependency_source/test_resolvelib.py::test_resolvelib_wheel_patched", "test/dependency_source/test_resolvelib.py::test_resolvelib_sdist_patched[tar.gz]", "test/dependency_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/trailofbits/pip-audit/pull/162" ...
37b9423dfdb53df8cb94b94964064965efcf9e76
2024-10-29 23:59:42
docker.io/swerebenchv2/pallets-werkzeug:2975-37b9423
pallets__werkzeug-2975
Method: _OrderedMultiDict.__init__(self, mapping: t.Optional[t.Mapping[t.Any, t.Any]] = None, **kwargs) Location: werkzeug.datastructures.structures._OrderedMultiDict Inputs: optional *mapping* (any mapping of keys to values) to pre‑populate the dict; optional keyword arguments representing initial key/value pairs....
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 2976f889..c73bcaa8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,8 @@ Unreleased - ``Request.max_form_memory_size`` defaults to 500kB instead of unlimited. Non-file form fields over this size will cause a ``RequestEntityTooLarge`` error. :issue:`2964` ...
deprecate OrderedMultiDict closes #2968
deprecate `OrderedMultiDict` `OrderedMultiDict` is not used by Werkzeug. It has a complex implementation, and is documented to be slow. `dict` maintains key insertion order in all supported versions of Python. `MultiDict` already maintains the insertion order of values within a key. `OrderedMultiDict` maintains the ins...
pallets/werkzeug
diff --git a/tests/test_datastructures.py b/tests/test_datastructures.py index 76de1d84..9d11d2aa 100644 --- a/tests/test_datastructures.py +++ b/tests/test_datastructures.py @@ -9,6 +9,8 @@ import pytest from werkzeug import datastructures as ds from werkzeug import http +from werkzeug.datastructures.structures im...
[ "tests/test_datastructures.py::TestNativeItermethods::test_basic", "tests/test_datastructures.py::TestImmutableTypeConversionDict::test_follows_dict_interface", "tests/test_datastructures.py::TestImmutableTypeConversionDict::test_copies_are_mutable", "tests/test_datastructures.py::TestImmutableTypeConversionD...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": ...
74accea5c7da413f69ea051edec5beacb591c4bc
2022-02-11 21:50:51
docker.io/swerebenchv2/laspy-laspy:200-74accea
laspy__laspy-200
Method: LasData.update_header(self) Location: laspy/lasdata.py – updates the LAS header after point data modifications. Inputs: None (operates on the instance’s current points, header.scales, and header.offsets). Outputs: None; side‑effects – recomputes and writes the header’s `mins`, `maxs`, and related scale/of...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7626c98..c98655e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Fixed - Fixed `LasHeader.update` (thus fixing `LasData.update_header`) computation of x,y,z mins and maxs +- Fixed regression introduced in 2.1.0 where changing the `header.scales` and/or...
Fix desync between LasData.header.scales and LasData.points.scales Fixes #199
Scaling issue when moving from pylas to laspy2 Using the same example as my previous issue when we were porting from pylas to laspy2, I am seeing a change in behavior in how scaling is happening. Our min and max values are usually on the order of +/- 2 meters and our resolutions is usually around 1mm (though sometim...
laspy/laspy
diff --git a/tests/test_creation.py b/tests/test_creation.py index 5ce9756..d70b9f6 100644 --- a/tests/test_creation.py +++ b/tests/test_creation.py @@ -151,3 +151,29 @@ def test_writing_empty_file(laz_backend): las.write(out) else: las.write(out, laz_backend=laz_backend) + +def test_...
[ "tests/test_creation.py::test_changing_scales_offset_after_create" ]
[ "tests/test_creation.py::test_wrong_version", "tests/test_creation.py::test_good_version_is_used", "tests/test_creation.py::test_create_fmt_0", "tests/test_creation.py::test_create_fmt_1", "tests/test_creation.py::test_create_fmt_2", "tests/test_creation.py::test_create_fmt_3", "tests/test_creation.py::...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
2df8a4ca1f7ff60fa6c40dc4a4337136b27697c1
2022-08-11 11:42:57
docker.io/swerebenchv2/py-pdf-pypdf2:1223-2df8a4c
py-pdf__pypdf2-1223
No new interfaces are introduced.
python
custom-check-github
diff --git a/PyPDF2/generic.py b/PyPDF2/generic.py index 23b01fce..0b92ccba 100644 --- a/PyPDF2/generic.py +++ b/PyPDF2/generic.py @@ -492,6 +492,7 @@ def read_string_from_stream( if ntok.isdigit(): tok += ntok else: + ...
BUG : fix stream truncated prematurly fixes #454 at least
Stream has ended unexpectedly [out.pdf](https://github.com/mstamy2/PyPDF2/files/2379430/out.pdf) ``` "PyPDF2/generic.py", line 334, in readStringFromStream raise PdfStreamError("Stream has ended unexpectedly") PyPDF2.utils.PdfStreamError: Stream has ended unexpectedly ``` with this code: ```python imp...
py-pdf/PyPDF2
diff --git a/tests/test_generic.py b/tests/test_generic.py index 9044eb52..c7ff2ca4 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -157,7 +157,12 @@ def test_readStringFromStream_multichar_eol2(): def test_readStringFromStream_excape_digit(): stream = BytesIO(b"x\\1a )") - assert read_stri...
[ "tests/test_generic.py::test_readStringFromStream_excape_digit", "tests/test_generic.py::test_readStringFromStream_excape_digit2" ]
[ "tests/test_generic.py::test_float_object_exception", "tests/test_generic.py::test_number_object_exception", "tests/test_generic.py::test_create_string_object_exception", "tests/test_generic.py::test_boolean_object[true-true-4]", "tests/test_generic.py::test_boolean_object[false-false-5]", "tests/test_gen...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/mstamy2/PyPDF2/files/2379430/out.pdf"...
c1e7163052e8fd8e653122b83f8e224366aefd55
2024-11-19 10:36:51
docker.io/swerebenchv2/cta-observatory-ctapipe:2655-c1e7163
cta-observatory__ctapipe-2655
Function: process(input: str, output: str, max_events: int = None, write_showers: bool = False, **kwargs) Location: ctapipe/tools/process.py – click command entry point used by the `ctapipe-process` CLI. Inputs: - **input**: path or URL to the input DL2 HDF5 file (string). - **output**: path to the output HDF5 file (st...
python
BSD-3-Clause
diff --git a/src/ctapipe/io/hdf5eventsource.py b/src/ctapipe/io/hdf5eventsource.py index 24d45def..d18f7db4 100644 --- a/src/ctapipe/io/hdf5eventsource.py +++ b/src/ctapipe/io/hdf5eventsource.py @@ -49,6 +49,7 @@ from ..core.traits import UseEnum from ..instrument import SubarrayDescription from ..instrument.optics i...
Restore reading of pointing for files written with ctapipe<0.21 Fixes #2651
Pointing information is not read anymore from files produced with ctapipe versions older than 0.21: Due to the changes in the HDF5EventSource here: https://github.com/cta-observatory/ctapipe/pull/2438 telescope pointing information is not read anymore from files produced with older versions of ctapipe than 0.21 ...
cta-observatory/ctapipe
diff --git a/src/ctapipe/io/tests/test_hdf5eventsource.py b/src/ctapipe/io/tests/test_hdf5eventsource.py index d1ebf8c3..fc8fe6bf 100644 --- a/src/ctapipe/io/tests/test_hdf5eventsource.py +++ b/src/ctapipe/io/tests/test_hdf5eventsource.py @@ -285,3 +285,17 @@ def test_provenance(dl1_file, provenance): assert input...
[ "src/ctapipe/io/tests/test_hdf5eventsource.py::test_pointing_old_file", "src/ctapipe/tools/tests/test_process.py::test_on_old_file[0.17]" ]
[ "src/ctapipe/io/tests/test_hdf5eventsource.py::test_is_not_compatible", "src/ctapipe/tools/tests/test_process.py::test_stage1_datalevels", "src/ctapipe/tools/tests/test_process.py::test_quickstart_templates[base_config.yaml]", "src/ctapipe/tools/tests/test_process.py::test_quickstart_templates[stage1_config.j...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/cta-observatory/ctapipe/pull/2438" ...
bd5662abb1297ebd457ace2918c26e5d611271e9
2025-03-17 16:28:56
docker.io/swerebenchv2/microsoft-botbuilder-python:2216-bd5662a
microsoft__botbuilder-python-2216
No new interfaces are introduced.
python
MIT
diff --git a/libraries/botbuilder-core/botbuilder/core/turn_context.py b/libraries/botbuilder-core/botbuilder/core/turn_context.py index 852fd1f3..72e25726 100644 --- a/libraries/botbuilder-core/botbuilder/core/turn_context.py +++ b/libraries/botbuilder-core/botbuilder/core/turn_context.py @@ -396,9 +396,13 @@ class Tu...
MentionRemoved fix Fixes #2210 This pull request includes changes to the `remove_mention_text` method in `turn_context.py` and adds a new test case in `test_turn_context.py` to ensure the method works correctly with custom mentions. Improvements to `remove_mention_text` method: * [`libraries/botbuilder-core/bot...
[Bug] on_turn_error: unhandled error: 'text' ### [Github issues](https://github.com/Microsoft/botbuilder-python) should be used for bugs and feature requests. Use [Stack Overflow](https://stackoverflow.com/questions/tagged/botframework) for general "how-to" questions. ## Version latest ## Describe the bug Using botb...
microsoft/botbuilder-python
diff --git a/libraries/botbuilder-core/tests/test_turn_context.py b/libraries/botbuilder-core/tests/test_turn_context.py index 473580ef..7247caab 100644 --- a/libraries/botbuilder-core/tests/test_turn_context.py +++ b/libraries/botbuilder-core/tests/test_turn_context.py @@ -350,6 +350,48 @@ class TestBotContext(aiounit...
[ "libraries/botbuilder-core/tests/test_turn_context.py::TestBotContext::test_should_remove_custom_mention_from_activity" ]
[ "libraries/botbuilder-core/tests/test_turn_context.py::TestBotContext::test_apply_conversation_reference_should_return_prepare_reply_when_is_incoming_is_false", "libraries/botbuilder-core/tests/test_turn_context.py::TestBotContext::test_apply_conversation_reference_when_is_incoming_is_true_should_not_prepare_a_re...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/Microsoft/botbuilder-python", "...
cf1210a8104270b49652ec5e6cd4b6220c109bba
2024-09-08 04:38:36
docker.io/swerebenchv2/apiflask-apiflask:605-cf1210a
apiflask__apiflask-605
Function: app.input(schema, location='json_or_form', *, example=None, examples=None, **kwargs) Location: APIFlask (in src/apiflask/app.py) – decorator method used to declare request body validation. Inputs: - **schema**: a schema class (e.g., a marshmallow Schema subclass) defining the request body fields. - **location...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index eaab7aa..011aeaa 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,10 @@ Released: - +- Fix OpenAPI spec for multiple content types with `json_or_form` location ([issue #600][issue_600]). + +[issue_600]: https://github.com/apiflask/apiflask/issues/600 + ## Version 2....
Fix OpenAPI spec for multiple content types (json_for_form) The `json_or_form` location will generate the following spec: ```yaml requestBody: content: application/json: schema: type: object properties: ... application/x-www-form-urlencoded: schema: t...
Invalid spec and missing requestBody when using json_or_form When using `json_or_form` in `location`, the produced request spec is invalid and misses the `requestBody`. e.g.: `@app.input(SomeRequest, location='json_or_form')` Produces this invalid spec: ```json { "/some-request": { "post": { ...
apiflask/apiflask
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4742f83..3d19ba8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,9 +22,9 @@ jobs: fail-fast: false matrix: include: - - {name: Linux, python: '3.12', os: ubuntu-latest, tox: py3...
[ "tests/test_decorator_input.py::test_input_with_json_or_form_location" ]
[ "tests/test_decorator_input.py::test_input", "tests/test_decorator_input.py::test_input_with_query_location", "tests/test_decorator_input.py::test_input_with_form_location", "tests/test_decorator_input.py::test_input_with_files_location", "tests/test_decorator_input.py::test_input_with_form_and_files_locati...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://swagger.io/specification/#parameter-locations"...
7748b6cde69880101a5cfb5dcc653ad7cf23402d
2025-02-18 12:05:51
docker.io/swerebenchv2/delgan-loguru:1304-7748b6c
delgan__loguru-1304
Method: Logger.catch(self, *args, **kwargs) Location: loguru/_logger.py – method of the **Logger** class. Inputs: Optional parameters controlling exception handling (e.g., `exception`, `level`, `default`, `reraise`, `onerror`, `backtrace`, `diagnose`). In the test the method is invoked without arguments. Outputs: Retur...
python
MIT
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1f575b8..1d48efc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,7 @@ - Update the default log format to include the timezone offset since it produces less ambiguous logs (`#856 <https://github.com/Delgan/loguru/pull/856>`_, thanks `@tim-x-y-z <https://github....
Make "logger.catch()" usable as an async context manager Fix #1084.
Make `.catch()` context manager async compatible Hi, First, thanks for a lot for loguru :) I have a piece of code like this: ```python import httpx from loguru import logger as loguru_logger @app.get("/") # some fastapi route async def my_route(foo, bar): logger = loguru_logger.bind(foo=foo, bar=ba...
Delgan/loguru
diff --git a/tests/test_exceptions_catch.py b/tests/test_exceptions_catch.py index 71ebc29..f06b831 100644 --- a/tests/test_exceptions_catch.py +++ b/tests/test_exceptions_catch.py @@ -439,6 +439,15 @@ def test_default_with_coroutine(): assert asyncio.run(foo()) == 42 +def test_async_context_manager(): + as...
[ "tests/test_exceptions_catch.py::test_async_context_manager" ]
[ "tests/test_exceptions_catch.py::test_caret_not_masked[False]", "tests/test_exceptions_catch.py::test_caret_not_masked[True]", "tests/test_exceptions_catch.py::test_no_caret_if_no_backtrace[False]", "tests/test_exceptions_catch.py::test_no_caret_if_no_backtrace[True]", "tests/test_exceptions_catch.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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
47bf8a5ee8218c6fc42ddfaac0a690fdaff63b96
2018-10-18 12:33:02
docker.io/swerebenchv2/consensys-mythril-classic:596-47bf8a5
consensys__mythril-classic-596
Function: load_from_bytecode(code, bin_runtime=False) Location: mythril/mythril.py (method of class Mythril) Inputs: - **code** (str): Hex‑encoded bytecode supplied by the user. - **bin_runtime** (bool, optional, default False): When True, the supplied bytecode is interpreted as already‑compiled runtime bytecode; wh...
python
MIT
diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py index 539fbb24..5bd88896 100644 --- a/mythril/analysis/symbolic.py +++ b/mythril/analysis/symbolic.py @@ -1,6 +1,6 @@ from mythril.laser.ethereum import svm from mythril.laser.ethereum.state import Account -from mythril.ether.soliditycontract im...
Fix #576: Add a new CLI option to load contract creation bytecode from the command line Fix #576: Add a new CLI option to load contract creation bytecode from the command line
Pass creation bytecode to mythril Currently laser does model the creation of a contract, when dealing with SolidityContracts. When using the command line option -c, mythril will still consider this to be runtime bytecode. An option needs to be added to support creation bytecode ### Requirements - Add cli option f...
ConsenSys/mythril-classic
diff --git a/tests/cmd_line_test.py b/tests/cmd_line_test.py index 394c5d42..9de57a5f 100644 --- a/tests/cmd_line_test.py +++ b/tests/cmd_line_test.py @@ -10,7 +10,7 @@ def output_of(command): class CommandLineToolTestCase(BaseTestCase): def test_disassemble_code_correctly(self): - command = "python3 {} ...
[ "tests/cmd_line_test.py::CommandLineToolTestCase::test_disassemble_code_correctly" ]
[ "tests/cmd_line_test.py::CommandLineToolTestCase::test_hash_a_function_correctly" ]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.94, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
df81d5d44a4389111b7d1b717ba1fe3aec8522ca
2024-01-11 16:49:19
docker.io/swerebenchv2/eventlet-eventlet:877-df81d5d
eventlet__eventlet-877
Function: spawn_for_awaitable(coroutine) Location: eventlet/asyncio.py Inputs: - **coroutine**: Any awaitable object – a coroutine object, an ``asyncio.Future`` or an ``asyncio.Task`` – that can be scheduled on the current asyncio event loop. Outputs: Returns a ``GreenThread`` (the ``GreenThread`` object created by ``...
python
custom-check-github
diff --git a/README.rst b/README.rst index e6b111c2..0d62ebf8 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,54 @@ +Warning +======= + +**New usages of eventlet are now heavily discouraged! Please read the +following.** + +Eventlet was created almost 18 years ago, at a time where async +features were absent from t...
Support using asyncio coroutines from inside greenlets Fixes #873
Support calling asyncio-using `async def` functions from inside greenlets This will allow eventlet-based code to use asyncio-based libraries, which gives a migration path off of eventlet for eventlet-only libraries. This will only work if the asyncio hub is being used.
eventlet/eventlet
diff --git a/tests/asyncio_test.py b/tests/asyncio_test.py new file mode 100644 index 00000000..53bf4b38 --- /dev/null +++ b/tests/asyncio_test.py @@ -0,0 +1,136 @@ +"""Tests for asyncio integration.""" + +import asyncio +from time import time + +import pytest + +from greenlet import GreenletExit + +import eventlet +fr...
[ "tests/not_asyncio_test.py::test_spawn_from_coroutine_errors" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5570e2e6583b61ca8bc0793dce0c56be12b85de9
2017-03-29 12:28:01
docker.io/swerebenchv2/sciunto-org-python-bibtexparser:158-5570e2e
sciunto-org__python-bibtexparser-158
Function: add_plaintext_fields(record) Location: bibtexparser.customization Inputs: - record (dict): a BibTeX entry mapping field names to values. Values may be: * str – plain text possibly containing braces `{}` that should be removed. * list of str – each element may contain braces to be stripped. * dict of st...
python
MIT
diff --git a/bibtexparser/customization.py b/bibtexparser/customization.py index c1b19b2..be97639 100644 --- a/bibtexparser/customization.py +++ b/bibtexparser/customization.py @@ -10,13 +10,15 @@ Each of them takes a record and return the modified record. import re import logging +from builtins import str + from ...
Customization to strip fields of `{`, `}` etc Add a `add_plaintext_fields` customization to strip fields of braces and similar characters, getting only the plaintext. It processes every available fields and for each field, it adds a `plain_*` field containing the plaintext version. Should close #116.
Strip title of "{", "}" and similar I've just tried bibtexparser for https://github.com/MartinThoma/algorithms/tree/master/bib2html and I noticed that `entry.title` can be something like `On-line {Recognition} of {Handwritten} {Mathematical} {Symbols}.`. Is it possible to strip those / to make the title similar to wha...
sciunto-org/python-bibtexparser
diff --git a/bibtexparser/tests/test_customization.py b/bibtexparser/tests/test_customization.py index c6b168b..e38c078 100644 --- a/bibtexparser/tests/test_customization.py +++ b/bibtexparser/tests/test_customization.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals import unittest -from bibtexparser.cust...
[ "bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_add_plaintext_fields", "bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_convert_to_unicode", "bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_getnames", "bibtexparser/tests/test_customization....
[]
{ "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.86, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/MartinThoma/algorithms/tree/master/...
e293398b99801ea591e84a2be88e206e853e853e
2025-03-21 18:41:36
docker.io/swerebenchv2/openmdao-openmdao:3488-e293398
openmdao__openmdao-3488
Function: Problem.set_val(self, name, value, units=None, indices=None, flat=False, force=False) Location: openmdao.core.problem.Problem Inputs: - **name** (str): promoted pathname of the variable to set. Must exist in the model; if not, a KeyError (or ValueError) is raised with a suggestion list of close matches. - ...
python
custom-check-github
diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py index c9fc2d268..6cceb746e 100644 --- a/openmdao/core/problem.py +++ b/openmdao/core/problem.py @@ -540,15 +540,12 @@ class Problem(object, metaclass=ProblemMetaclass): """ if self._metadata['setup_status'] <= _SetupStatus.POST_SETUP2: ...
Modified name2abs_names so that set_val and get_val make suggestions … …if a promoted name is not found. ### Summary If promoted name for set_val or get_val is not found, particularly in the case of using absolute paths, an error is thrown and potential names are suggested. ### Related Issues - Resolves #34...
Suggest pathnames when set_val or get_val are called without a valid promoted pathname. ### Desired capability or behavior. OpenMDAO expects users to set or get variable values using the promoted pathname of those variables. We should implement the same string matching/suggestion technique used in connect to help the...
OpenMDAO/OpenMDAO
diff --git a/openmdao/components/tests/test_submodel_comp.py b/openmdao/components/tests/test_submodel_comp.py index 9d57b6106..cc6ea750a 100644 --- a/openmdao/components/tests/test_submodel_comp.py +++ b/openmdao/components/tests/test_submodel_comp.py @@ -94,7 +94,7 @@ class TestSubmodelComp(unittest.TestCase): ...
[ "openmdao/components/tests/test_submodel_comp.py::TestSubmodelComp::test_no_io", "openmdao/core/tests/test_getset_vars.py::TestGetSetVariables::test_no_promotion_errors", "openmdao/core/tests/test_group.py::TestGroupPromotes::test_multiple_promotes", "openmdao/core/tests/test_group.py::TestGroupPromotes::test...
[ "openmdao/components/tests/test_submodel_comp.py::TestSubmodelComp::test_add_io_after_setup", "openmdao/components/tests/test_submodel_comp.py::TestSubmodelComp::test_add_io_before_setup", "openmdao/components/tests/test_submodel_comp.py::TestSubmodelComp::test_add_io_meta_override", "openmdao/components/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.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
406aeb0c3a7a0dad63aececb15eb816f3721676a
2024-04-25 17:22:40
docker.io/swerebenchv2/callowayproject-bump-my-version:183-406aeb0
callowayproject__bump-my-version-183
No new interfaces are introduced.
python
MIT
diff --git a/bumpversion/files.py b/bumpversion/files.py index a39a234c..4376cf77 100644 --- a/bumpversion/files.py +++ b/bumpversion/files.py @@ -183,15 +183,9 @@ class ConfiguredFile: logger.dedent() return raise FileNotFoundError(f"File not found: '{self.file_change.fil...
Fixed the indentation problem - Added a dedent when a file does not match the change pattern. - Fixes #181
Glob pattern with dry-run on permitted mismatch causes indented output * bump-my-version version: 0.20.2 * Python version: 3.10.13 * Operating System: Ubuntu 20.04 LTS ### Description When a glob pattern is used to match multiple files, and that files without any matched version search pattern are permitted, t...
callowayproject/bump-my-version
diff --git a/tests/test_files.py b/tests/test_files.py index f6bf33fd..ec0576b1 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -1,5 +1,6 @@ """File processing tests.""" +import logging import os import shutil from datetime import datetime, timezone @@ -15,10 +16,139 @@ from bumpversion import excep...
[ "tests/test_files.py::TestConfiguredFile::TestMakeFileChange::test_dedents_properly_when_file_does_not_contain_pattern" ]
[ "tests/test_files.py::TestConfiguredFile::TestGetFileContents::test_returns_contents_of_existing_file", "tests/test_files.py::TestConfiguredFile::TestGetFileContents::test_raises_exception_if_file_not_found", "tests/test_files.py::TestConfiguredFile::TestMakeFileChange::test_raises_exception_if_file_not_found",...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://crim-ca.github.io/mlm-extension/v{current_versio...
07c137967709b3c8bbd4b7db9abd66602319fbb7
2023-11-17 10:52:05
docker.io/swerebenchv2/rhayes777-pyautofit:875-07c1379
rhayes777__pyautofit-875
Method: Info.__init__(self, session: Session) Location: autofit/database/aggregator/info.py Inputs: session – a SQLAlchemy Session bound to a SQLite (or other) database file. Outputs: None (initialises the Info instance with the provided session). Description: Creates an Info helper tied to a database session f...
python
MIT
diff --git a/autofit/database/aggregator/aggregator.py b/autofit/database/aggregator/aggregator.py index 37fd75cdd..a61cf58df 100644 --- a/autofit/database/aggregator/aggregator.py +++ b/autofit/database/aggregator/aggregator.py @@ -5,6 +5,7 @@ from typing import Optional, List, Union, cast from ..sqlalchemy_ import s...
feature/database info Resolves #770 Whenever database session is committed info is also written describing each fit in the database
Add database.info file Once we have a database.sqlite file, we have no understanding of its contents. Investigating its contents requires us to probe it via .sqlite. A `database.sqlite` file should have an associated `database.info` file, which lists the contents of the dataabse in an concise and informative way....
rhayes777/PyAutoFit
diff --git a/test_autofit/aggregator/test_reference.py b/test_autofit/aggregator/test_reference.py index 17f4397a4..0ff155d24 100644 --- a/test_autofit/aggregator/test_reference.py +++ b/test_autofit/aggregator/test_reference.py @@ -1,9 +1,12 @@ +import os + import pytest from autoconf.class_path import get_class_p...
[ "test_autofit/aggregator/test_reference.py::test_without", "test_autofit/aggregator/test_reference.py::test_with", "test_autofit/aggregator/test_reference.py::test_database", "test_autofit/aggregator/test_reference.py::test_query_fits", "test_autofit/aggregator/test_reference.py::test_headers_and_rows", "...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.88, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
dcdafdf7db10d59342377a05c8083f2ddb9de664
2023-03-13 23:55:58
docker.io/swerebenchv2/jelmer-dulwich:1160-dcdafdf
jelmer__dulwich-1160
Method: MemoryObjectStore.add_pack_data(self, count: int, unpacked_objects: Iterator[UnpackedObject], progress=None) Location: dulwich/object_store.py, class MemoryObjectStore Inputs: - count (int): number of objects that will be added from the pack data. - unpacked_objects (Iterator[UnpackedObject]): iterator yiel...
python
custom-check-github
diff --git a/NEWS b/NEWS index 5be49526..43ced4d6 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ * Deprecate ``dulwich.objects.parse_commit``. + * Fix fetching into MemoryRepo. (Jelmer Vernooij, #1157) + 0.21.3 2023-02-17 * Add support for ``worktreeconfig`` extension. diff --git a/dulwich/client.py b/dulwich/c...
Fix fetching into MemoryRepo Fix fetching into MemoryRepo Fixes #1157
AttributeError: 'MemoryObjectStore' object has no attribute 'add_pack_data' Hi, I just updated from `0.20.50` to `0.21.3` and I'm getting this error now: ``` Traceback (most recent call last): # # START my code # File "/Users/xyz/Projects/fs-code/src/codefs/_core.py", line 108, in _delegate self...
jelmer/dulwich
diff --git a/dulwich/tests/test_client.py b/dulwich/tests/test_client.py index fdb54b9a..af0b04c8 100644 --- a/dulwich/tests/test_client.py +++ b/dulwich/tests/test_client.py @@ -1042,7 +1042,6 @@ class HttpGitClientTests(TestCase): test_data = { "https://gitlab.com/inkscape/inkscape/": { - ...
[ "dulwich/tests/test_repository.py::MemoryRepoTests::test_pull_into" ]
[ "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": "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":...
a0f79a3c69b5ca415f9963edc2279d32d1f6d5ce
2021-07-02 01:43:10
docker.io/swerebenchv2/stac-utils-pystac:511-a0f79a3
stac-utils__pystac-511
Method: Catalog.get_collections(self) Location: pystac.catalog.Catalog class Inputs: **self** – the Catalog instance whose child objects are inspected. No additional arguments. Outputs: **Iterable[pystac.Collection]** – a lazy iterable yielding each direct child of the catalog that is a `pystac.Collection`. The i...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9304b18e..9fd53a82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ - Define equality and `__repr__` of `RangeSummary` instances based on `to_dict` representation ([#513](https://github.com/stac-utils/pystac/pull/513)) - Sat Extension summaries ([#509](h...
Add get_collections + get_all_collections methods to Catalog **Related Issue(s):** * Closes #169 **Description:** - Adds `Catalog.get_collections` method to return all child `Collection` instances from a `Catalog` - Adds `Catalog.get_all_children` method to recursively return all child `Collection` instances form a...
Add "get_collections" and "get_all_collections" to Catalog. Feature request from @matthewhanson - add a `get_collections` that is like`get_children` but subsets to collections only, as well as a `get_all_collections` that is like `get_all_items` but for collections.
stac-utils/pystac
diff --git a/tests/test_catalog.py b/tests/test_catalog.py index e536a546..e7a83609 100644 --- a/tests/test_catalog.py +++ b/tests/test_catalog.py @@ -996,6 +996,20 @@ class CatalogTest(unittest.TestCase): with self.assertRaises(pystac.STACTypeError): _ = pystac.Catalog.from_dict(collection_dict) ...
[ "tests/test_catalog.py::CatalogTest::test_get_all_collections", "tests/test_catalog.py::CatalogTest::test_get_collections" ]
[ "tests/test_catalog.py::TestCases::test_case_1", "tests/test_catalog.py::TestCases::test_case_2", "tests/test_catalog.py::TestCases::test_case_3", "tests/test_catalog.py::TestCases::test_case_4", "tests/test_catalog.py::TestCases::test_case_5", "tests/test_catalog.py::TestCases::test_case_6", "tests/tes...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
740e7799c554387888afad655a10f4f3ace7f9dd
2024-08-28 17:27:16
docker.io/swerebenchv2/spikeinterface-spikeinterface:3347-740e779
spikeinterface__spikeinterface-3347
Method: AnalyzerExtension.load(cls, sorting_analyzer) Location: src/spikeinterface/core/sortinganalyzer.py → class `AnalyzerExtension` Inputs: `cls` (subclass of `AnalyzerExtension`), `sorting_analyzer` (instance of `SortingAnalyzer`) Outputs: Returns an instance of the extension if the extension’s `run_info` ind...
python
MIT
diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py index 13b64664a..57c9e5f37 100644 --- a/src/spikeinterface/core/sortinganalyzer.py +++ b/src/spikeinterface/core/sortinganalyzer.py @@ -11,6 +11,7 @@ import weakref import shutil import warnings import importlib +fro...
Analyzer extension exit status Fixes #3329 Here's a first pass at adding information about an extension's completion (or not) to its metadata. This PR adds a `run_info.json` file to each extension's folder. This contains keys: * `run_completed` (whether or not the call to `AnalyzerExtension._run()` finished), *...
Sorting analyzer extensions don't know if they've been interrupted Hi all — sometimes a sorting analyzer's computation of an extension is interrupted, either accidentally (i.e. a SLURM job times out), or manually (I want to change a parameter). Normally, the way one would deal with this, in a script, is to check if the...
SpikeInterface/spikeinterface
diff --git a/src/spikeinterface/core/tests/test_sortinganalyzer.py b/src/spikeinterface/core/tests/test_sortinganalyzer.py index 689073d6b..3f45487f4 100644 --- a/src/spikeinterface/core/tests/test_sortinganalyzer.py +++ b/src/spikeinterface/core/tests/test_sortinganalyzer.py @@ -125,6 +125,39 @@ def test_SortingAnalyz...
[ "src/spikeinterface/core/tests/test_sortinganalyzer.py::test_load_without_runtime_info" ]
[ "src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_memory", "src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_binary_folder", "src/spikeinterface/core/tests/test_sortinganalyzer.py::test_SortingAnalyzer_zarr", "src/spikeinterface/core/tests/test_sortinganal...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/SpikeInterface/spikeinterface/blob/...
c6256875f074e66d4a2c88678b40fe219fd4bda3
2024-04-19 14:58:05
docker.io/swerebenchv2/theupdateframework-python-tuf:2612-c625687
theupdateframework__python-tuf-2612
Function: UpdaterConfig(app_user_agent: Optional[str] = None) Location: tuf.ngclient.config.UpdaterConfig Inputs: - app_user_agent: Optional string supplied by the application, e.g. "MyApp/1.2.3". When None the default TUF user‑agent is used. Outputs: - An immutable dataclass instance containing the supplied app_user_a...
python
Apache-2.0
diff --git a/tuf/ngclient/_internal/requests_fetcher.py b/tuf/ngclient/_internal/requests_fetcher.py index 1994729f..c931b85a 100644 --- a/tuf/ngclient/_internal/requests_fetcher.py +++ b/tuf/ngclient/_internal/requests_fetcher.py @@ -10,7 +10,7 @@ # can be moved out of _internal once sigstore-python 1.0 is not releva...
Support app-specific user-agents * application user-agent can be set with UpdaterConfig object * Setting will affect the default fetcher only * the application user-agent will be prefixed to the ngclient default user-agent Fixes #2611
provide user-agent customization? At some point we decided to not offer the ability to customize `RequestsFetcher`. The idea was that if someone wants to to customize, they can provide their own fetcher (possibly forking RequestsFetcher). In general this still seems reasonable. There is one small customization I wis...
theupdateframework/python-tuf
diff --git a/tests/test_updater_ng.py b/tests/test_updater_ng.py index 3b183cfb..b853d40d 100644 --- a/tests/test_updater_ng.py +++ b/tests/test_updater_ng.py @@ -18,7 +18,6 @@ from securesystemslib.signer import SSlibSigner from tests import utils -from tuf import ngclient from tuf.api import exceptions from tuf...
[ "tests/test_updater_ng.py::TestUpdater::test_user_agent" ]
[ "tests/test_updater_ng.py::TestUpdater::test_both_target_urls_not_set", "tests/test_updater_ng.py::TestUpdater::test_external_targets_url", "tests/test_updater_ng.py::TestUpdater::test_implicit_refresh_with_only_local_root", "tests/test_updater_ng.py::TestUpdater::test_invalid_target_base_url", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.93, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
e0234d3e7193aea4b4e8f487cab0f1228f4386d2
2024-04-04 15:29:35
docker.io/swerebenchv2/kubernetes-client-python:2216-e0234d3
kubernetes-client__python-2216
Function: parse_quantity(quantity) Location: kubernetes.utils.quantity.parse_quantity Inputs: - **quantity**: `Decimal`, `int`, `float`, or `str`. If a string, it may contain a numeric part and an optional SI suffix (e.g., `"1Ki"`, `"1000k"`). Supported suffixes are the base‑1024 set (`Ki`, `Mi`, `Gi`, `Ti`, `Pi`, `Ei...
python
Apache-2.0
diff --git a/kubernetes/utils/quantity.py b/kubernetes/utils/quantity.py index 68e57d980..484f34719 100644 --- a/kubernetes/utils/quantity.py +++ b/kubernetes/utils/quantity.py @@ -13,6 +13,19 @@ # limitations under the License. from decimal import Decimal, InvalidOperation +_EXPONENTS = { + "n": -3, + "u": -...
Adding utils.format_quantity <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://git.k8s.io/community/cont...
`format_quantity` function missing to convert Decimal values in to K8s quantity string **What is the feature and why do you need it**: There is [`parse_quantity`](https://github.com/kubernetes-client/python/blob/master/kubernetes/utils/quantity.py) to convert a canonical K8s quantity into a `Decimal` value. However,...
kubernetes-client/python
diff --git a/kubernetes/e2e_test/test_utils.py b/kubernetes/e2e_test/test_utils.py index cc80e6f20..8405e7422 100644 --- a/kubernetes/e2e_test/test_utils.py +++ b/kubernetes/e2e_test/test_utils.py @@ -13,13 +13,15 @@ # under the License. import unittest +from decimal import Decimal from os import path import ya...
[ "kubernetes/e2e_test/test_utils.py::TestUtilsUnitTests::test_format_quantity" ]
[ "kubernetes/e2e_test/test_utils.py::TestUtilsUnitTests::test_parse_quantity" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/kubernetes-client/python/blob/maste...
fecde6c001b92f15bd20eb9834da42502a083a04
2023-09-27 00:31:13
docker.io/swerebenchv2/getmoto-moto:6857-fecde6c
getmoto__moto-6857
Method: create_peering_attachment(ec2, gateway_id1, gateway_id2, peer_account=ACCOUNT_ID, peer_region="us-east-1") Location: tests/test_ec2/test_transit_gateway_peering_attachments.py – called in test_create_and_accept_transit_gateway_peering_attachment and test_transit_gateway_peering_attachments_cross_region. Inputs:...
python
Apache-2.0
diff --git a/docs/docs/configuration/state_transition/models.rst b/docs/docs/configuration/state_transition/models.rst index b3f3e8dbf..1cfb4e902 100644 --- a/docs/docs/configuration/state_transition/models.rst +++ b/docs/docs/configuration/state_transition/models.rst @@ -134,3 +134,16 @@ Transition type: Manual - desc...
Implement state transitions for ECS tasks Closes #6856
Implement state transitions for ECS tasks ![task-lifecycle](https://github.com/getmoto/moto/assets/16805946/4ae02338-375e-4a82-99bd-77ebe48f3e4e) * https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html * https://boto3.amazonaws.com/v1/documentation/api/1.28.1/reference/services/ecs/waiter/...
getmoto/moto
diff --git a/.github/workflows/tests_real_aws.yml b/.github/workflows/tests_real_aws.yml new file mode 100644 index 000000000..b3fa3303a --- /dev/null +++ b/.github/workflows/tests_real_aws.yml @@ -0,0 +1,45 @@ +name: Execute tests against AWS +on: + schedule: + - cron: '00 6 * * 0' + workflow_dispatch: + +jobs: +...
[ "tests/test_ec2/test_transit_gateway_peering_attachments.py::test_describe_transit_gateway_peering_attachment_by_filters", "tests/test_ec2/test_transit_gateway_peering_attachments.py::test_transit_gateway_peering_attachments_cross_region[within", "tests/test_ec2/test_transit_gateway_peering_attachments.py::test...
[ "tests/test_ec2/test_transit_gateway_peering_attachments.py::test_describe_transit_gateway_peering_attachment_empty", "tests/test_ec2/test_transit_gateway_peering_attachments.py::test_create_and_describe_transit_gateway_peering_attachment", "tests/test_ec2/test_transit_gateway_peering_attachments.py::test_creat...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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.86, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.aws.amazon.com/AmazonECS/latest/developer...
79228b9f57e7aeb7b3ac5cf9727737a46a71effd
2022-11-25 22:47:49
docker.io/swerebenchv2/joke2k-faker:1758-79228b9
joke2k__faker-1758
Method: Provider.ssn(self) -> str Location: faker.providers.ssn.it_IT.Provider Inputs: No parameters; uses the generator's first_name and last_name (which may be mocked) to build a 16‑character Italian fiscal code. Outputs: A 16‑character string representing the SSN; when names contain Latin‑1 characters they are trans...
python
MIT
diff --git a/faker/providers/ssn/it_IT/__init__.py b/faker/providers/ssn/it_IT/__init__.py index 1b41b54c..98aedebb 100644 --- a/faker/providers/ssn/it_IT/__init__.py +++ b/faker/providers/ssn/it_IT/__init__.py @@ -1,5 +1,7 @@ """it_IT ssn provider (yields italian fiscal codes)""" +import unicodedata + from string ...
Fix IT SSN generation with latin chars in name or surname ### What does this change Fix IT SSN generation when Person provider returns first or last name with latin chars ### What was wrong Latin chars was considered neither vowel nor consonant. They just got ignored, and the resulting SSN was wrong, or even s...
ssn.it_IT.Provider generates SSNs shorter than 16 chars * Faker version: tested with 13.14.0, 15.3.3 * OS: Ubuntu 22.04 Generating an Italian SSN, when the last (or first) name returned by `person.it_IT.Provider` is 3 characters long and contains latin chars, the resulting string is shorter than expected (16 char...
joke2k/faker
diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py index 4bdbf3d0..996d9b2e 100644 --- a/tests/providers/test_ssn.py +++ b/tests/providers/test_ssn.py @@ -14,7 +14,7 @@ from validators.i18n.es import es_cif as is_cif from validators.i18n.es import es_nie as is_nie from validators.i18n.es import es...
[ "tests/providers/test_ssn.py::TestItIT::test_ssn_with_latin_chars" ]
[ "tests/providers/test_ssn.py::TestSvSE::test_org_and_vat_id", "tests/providers/test_ssn.py::TestSvSE::test_org_id_long_no_dash", "tests/providers/test_ssn.py::TestSvSE::test_org_id_long_with_dash", "tests/providers/test_ssn.py::TestSvSE::test_org_id_short_no_dash", "tests/providers/test_ssn.py::TestSvSE::te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d4c0affce11bf4515855a6f70f9793a3e7e38497
2023-03-16 15:52:08
docker.io/swerebenchv2/sdv-dev-rdt:622-d4c0aff
sdv-dev__rdt-622
No new interfaces are introduced.
python
custom-check-github
diff --git a/rdt/transformers/categorical.py b/rdt/transformers/categorical.py index ec6e7e5..5b3c638 100644 --- a/rdt/transformers/categorical.py +++ b/rdt/transformers/categorical.py @@ -147,7 +147,7 @@ class FrequencyEncoder(BaseTransformer): if category is np.nan: mask = data.isna() ...
Issue 619 faker seed Resolve #619.
Choose a different seed for each transformer ### Problem Description If I have two columns that are both assigned to `AnonymizedFaker` (eg. for `uuid4`), then the reverse transform always produces the same exact values for both columns. This is unexpected, as I'd want each uuid column to have different values. <img...
sdv-dev/RDT
diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py index 593e0da..9e67821 100644 --- a/tests/integration/test_hyper_transformer.py +++ b/tests/integration/test_hyper_transformer.py @@ -12,6 +12,7 @@ from rdt.transformers import ( AnonymizedFaker, BaseTransformer,...
[ "tests/integration/test_hyper_transformer.py::test_hyper_transformer_reset_randomization", "tests/integration/test_hyper_transformer.py::test_hypertransformer_anonymized_faker", "tests/integration/test_hyper_transformer.py::test_hypertransformer_pseudo_anonymized_faker", "tests/integration/test_hyper_transfor...
[ "tests/integration/test_hyper_transformer.py::test_hypertransformer_default_inputs", "tests/integration/test_hyper_transformer.py::test_hypertransformer_field_transformers", "tests/integration/test_hyper_transformer.py::test_single_category", "tests/integration/test_hyper_transformer.py::test_categorical_enco...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/sdv-dev/SDV/issues/1303" ], ...
f54db944ef167dc11300d4baaf9c3bfdd113684f
2023-09-12 14:37:37
docker.io/swerebenchv2/stfc-psyclone:2309-f54db94
stfc__psyclone-2309
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/changelog b/changelog index f52c414c2..61d166cab 100644 --- a/changelog +++ b/changelog @@ -592,6 +592,8 @@ 199) PR #2293 for #2301. Add 'is_independent' property/query to Loop. + 200) PR #2309 for #1558. Add support for out-of-order parameter statements. + release 2.3.1 17th of June 2022 1) PR ...
(Closes #1558) support out-of-order parameter statements This PR simply moves the existing functionality for processing PARAMETER statements into a separate routine which can then be called once all the variable declarations have been processed.
[fparser2-FE] Add support for Fortran PARAMETER statement. A Fortran parameter statement (R538) allows the specification of the parameter attribute and initial value, independently of the declaration of a type of a symbol, e.g. PARAMETER (MODULUS = MOD (28, 3), NUMBER_OF_SENATORS = 100) Currently Simon report...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py b/src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py index a1cd5f7a2..4685639b0 100644 --- a/src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py +++ b/src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts...
[ "src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py::test_parameter_before_decln" ]
[ "src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py::test_parameter_statements_work", "src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py::test_parameter_statements_complex_case_work", "src/psyclone/tests/psyir/frontend/fparser2_parameter_stmts_test.py::test_parameter_statements_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
4a807d45f9dd47266c82035bf6e04508a77f0258
2019-04-04 05:13:39
docker.io/swerebenchv2/pycqa-pyflakes:443-4a807d4
pycqa__pyflakes-443
Method: FStringMissingPlaceholders.__init__(self, filename: str, loc: tuple[int, int]) Location: pyflakes/messages.py → class FStringMissingPlaceholders(Message) Inputs: filename (path of source file), loc (line/column tuple where the problem occurs) Outputs: a Message instance whose `message` is “f-string is missing p...
python
MIT
diff --git a/NEWS.rst b/NEWS.rst index 8bf9023..993a545 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,3 +1,7 @@ +2.1.1 (2019-02-28) +- Fix reported line number for type comment errors +- Fix typing.overload check to only check imported names + 2.1.0 (2019-01-23) - Allow intentional assignment to variables named ``_`` ...
String formatting linting There's three classes of lint messages added here -- I'm happy to split out / reorder / etc. these commits as fit. Also please suggest better names / messages -- these were my first-pass attempt at the messages 😆 Resolves #148 Supersedes #370 (CC @fperrin) ### f-strings - f-st...
Detect broken string templates that will raise ValueError when interpolated *Original report by [jkakar](https://launchpad.net/~jkakar) (@jkakar?) on [Launchpad](https://bugs.launchpad.net/bugs/950369):* ------------------------------------ For example, code like this will break: >>> "%(foo)" % {"foo": "bar"} T...
PyCQA/pyflakes
diff --git a/pyflakes/test/test_doctests.py b/pyflakes/test/test_doctests.py index 0825ffe..5565226 100644 --- a/pyflakes/test/test_doctests.py +++ b/pyflakes/test/test_doctests.py @@ -433,6 +433,16 @@ class Test(TestCase): return 1 ''') + def test_globalUnderscoreInDoctest(self): + se...
[ "pyflakes/test/test_doctests.py::Test::test_globalUnderscoreInDoctest", "pyflakes/test/test_other.py::TestStringFormatting::test_f_string_without_placeholders", "pyflakes/test/test_other.py::TestStringFormatting::test_invalid_dot_format_calls", "pyflakes/test/test_other.py::TestStringFormatting::test_invalid_...
[ "pyflakes/test/test_doctests.py::TestOther::test_attrAugmentedAssignment", "pyflakes/test/test_doctests.py::TestOther::test_breakInsideLoop", "pyflakes/test/test_doctests.py::TestOther::test_breakOutsideLoop", "pyflakes/test/test_doctests.py::TestOther::test_classFunctionDecorator", "pyflakes/test/test_doct...
{ "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": [ "https://launchpad.net/~jkakar", "https://bugs.la...
33a4d4882cc14c1a4a24ec24a5ebb7a1065bcbae
2024-10-19 16:16:42
docker.io/swerebenchv2/pymc-devs-pytensor:1041-33a4d48
pymc-devs__pytensor-1041
Method: SLogDet.__call__(self, x) Location: pytensor.tensor.nlinalg.SLogDet Inputs: x – square matrix (TensorLike); must have shape (..., M, M) and be broadcast‑compatible. Outputs: sign – TensorVariable with values in {‑1, 0, 1} indicating the sign of the determinant; logabsdet – TensorVariable containing the natural...
python
custom-check-github
diff --git a/pytensor/tensor/nlinalg.py b/pytensor/tensor/nlinalg.py index e7093a82b..47c6699cc 100644 --- a/pytensor/tensor/nlinalg.py +++ b/pytensor/tensor/nlinalg.py @@ -11,6 +11,7 @@ from pytensor.compile.builders import OpFromGraph from pytensor.gradient import DisconnectedType from pytensor.graph.basic import A...
Added alternative slogdet to return sign and logdet of det op <!-- !! 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...
Optimizations for Det should also apply to SlogDet ### Description ```python import pytensor import pytensor.tensor as pt x_diag = pt.vector("x_diag") x = pt.diag(x_diag) y = pt.log(pt.linalg.det(x)) pytensor.function([x_diag], y).dprint() # Log [id A] 1 # └─ Prod{axes=None} [id B] 0 # └─ x_diag [id ...
pymc-devs/pytensor
diff --git a/tests/link/pytorch/test_nlinalg.py b/tests/link/pytorch/test_nlinalg.py index 7d69ac050..55e7c447e 100644 --- a/tests/link/pytorch/test_nlinalg.py +++ b/tests/link/pytorch/test_nlinalg.py @@ -1,3 +1,5 @@ +from collections.abc import Sequence + import numpy as np import pytest @@ -22,13 +24,13 @@ def ma...
[ "tests/tensor/rewriting/test_linalg.py::test_det_kronecker_rewrite", "tests/tensor/rewriting/test_linalg.py::test_slogdet_specialization" ]
[ "tests/tensor/rewriting/test_linalg.py::test_rop_lop", "tests/tensor/rewriting/test_linalg.py::test_transinv_to_invtrans", "tests/tensor/rewriting/test_linalg.py::test_generic_solve_to_solve_triangular", "tests/tensor/rewriting/test_linalg.py::test_matrix_inverse_solve", "tests/tensor/rewriting/test_linalg....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.85, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
4c309554bd1c97d52ed74206d6604d3d72dabf7e
2024-05-20 10:20:50
docker.io/swerebenchv2/reata-sqllineage:617-4c30955
reata__sqllineage-617
No new interfaces are introduced.
python
MIT
diff --git a/sqllineage/core/parser/sqlfluff/utils.py b/sqllineage/core/parser/sqlfluff/utils.py index 56c1689..6d841c4 100644 --- a/sqllineage/core/parser/sqlfluff/utils.py +++ b/sqllineage/core/parser/sqlfluff/utils.py @@ -138,6 +138,10 @@ def list_subqueries(segment: BaseSegment) -> List[SubQueryTuple]: ...
fix: handling scalar subquery in function Closes #614
False negative for Scalar Subquery used in Function **Describe the bug** Great package, thanks for your work! I've found that for this specific case which our users sometimes write, the lineage does not detect the table reference. I've check that the parsing via sqlfluff works well. **SQL** Paste the SQL text here....
reata/sqllineage
diff --git a/tests/sql/table/test_select.py b/tests/sql/table/test_select.py index fe143dc..f659f72 100644 --- a/tests/sql/table/test_select.py +++ b/tests/sql/table/test_select.py @@ -193,6 +193,31 @@ WHERE col1 IN (SELECT max(col1) FROM tab2)""", ) +def test_select_subquery_in_function(): + assert_table_l...
[ "tests/sql/table/test_select.py::test_select_subquery_in_function", "tests/sql/table/test_select.py::test_select_multiple_subquery_in_function", "tests/sql/table/test_select.py::test_select_subquery_in_function_nested" ]
[ "tests/sql/table/test_select.py::test_select", "tests/sql/table/test_select.py::test_select_with_schema", "tests/sql/table/test_select.py::test_select_with_schema_and_database", "tests/sql/table/test_select.py::test_select_multi_line", "tests/sql/table/test_select.py::test_select_asterisk", "tests/sql/tab...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
54e0055255ad4761515abefedd6715bc48daa5d5
2025-06-01 16:21:00
docker.io/swerebenchv2/agronholm-anyio:929-54e0055
agronholm__anyio-929
Method: SocketStream.from_socket(self, sock_or_fd: socket.socket | int) → SocketStream Location: anyio.abc._sockets.SocketStream Inputs: • sock_or_fd – an existing socket.socket object **or** a file‑descriptor int that refers to a socket. The socket must be of type SOCK_STREAM and already be connected. Outputs: Returns...
python
MIT
diff --git a/docs/networking.rst b/docs/networking.rst index 795cd9c..d39d3fb 100644 --- a/docs/networking.rst +++ b/docs/networking.rst @@ -241,6 +241,20 @@ having to pass the path every time you send data to the peer:: run(main) +Wrapping existing sockets as streams or listeners +----------------------------...
Added class methods for wrapping sockets <!-- Thank you for your contribution! --> ## Changes Allows wrapping existing sockets as AnyIO streams or listeners. Fixes #845. <!-- Provide issue number if exists --> <!-- Please give a short brief about these changes. --> ## Checklist If this is a user-facing ...
add the ability to wrap stdlib sockets ### Things to check first - [X] I have searched the existing issues and didn't find my feature already requested there ### Feature description I'd like the ability to wrap a stdlib socket in a SocketStream/UNIXSocketStream/SocketListener/UDPSocket/ConnectedUDPSocket ...
agronholm/anyio
diff --git a/tests/test_sockets.py b/tests/test_sockets.py index 01236e8..eacccec 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -18,7 +18,7 @@ from pathlib import Path from socket import AddressFamily from ssl import SSLContext, SSLError from threading import Thread -from typing import TYPE_CHECK...
[ "tests/test_sockets.py::TestTCPStream::test_from_socket[asyncio-ipv4-sock]", "tests/test_sockets.py::TestTCPStream::test_from_socket[asyncio-ipv4-fileno]", "tests/test_sockets.py::TestTCPStream::test_from_socket[asyncio-ipv6-sock]", "tests/test_sockets.py::TestTCPStream::test_from_socket[asyncio-ipv6-fileno]"...
[ "tests/test_sockets.py::TestTCPStream::test_extra_attributes[asyncio-ipv4]", "tests/test_sockets.py::TestTCPStream::test_extra_attributes[asyncio-ipv6]", "tests/test_sockets.py::TestTCPStream::test_extra_attributes[asyncio+uvloop-ipv4]", "tests/test_sockets.py::TestTCPStream::test_extra_attributes[asyncio+uvl...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
4a6dcd64ff1a6151d7e5fec022b3905265791fcd
2025-03-14 18:14:13
docker.io/swerebenchv2/berriai-litellm:9261-4a6dcd6
berriai__litellm-9261
Function: ollama_pt(model: str, messages: List[Dict[str, Any]]) -> Union[str, OllamaVisionModelObject] Location: litellm.litellm_core_utils.prompt_templates.factory Inputs: - **model** (str): Identifier of the Ollama model (e.g., `"ollama/llama3.1"`). Determines whether the special “instruct” handling path is taken. - ...
python
custom-check-github
diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index df7aa2cbd..182f3618b 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -219,6 +219,31 @@ def ollama_pt( ...
Fix "system" role has become unacceptable in ollama ## Title Fix "system" role has become unacceptable in ollama ## Relevant issues Fixes #9224 ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the `tests/litel...
[Bug]: ollama with litellm, "system" role has become unacceptable. ### What happened? I use ollama with litellm. If I pass `"system"` role message to `acompletion` function, then litellm raises `litellm.BadRequestError` sample code: ``` messages = [ {"role": "system", "content": "You are an awesome assistant."}, ...
BerriAI/litellm
diff --git a/tests/llm_translation/test_prompt_factory.py b/tests/llm_translation/test_prompt_factory.py index 514b5f68f..314aceac7 100644 --- a/tests/llm_translation/test_prompt_factory.py +++ b/tests/llm_translation/test_prompt_factory.py @@ -743,3 +743,14 @@ def test_hf_chat_template(): chat_template.rstrip...
[ "tests/llm_translation/test_prompt_factory.py::test_ollama_pt" ]
[ "tests/llm_translation/test_prompt_factory.py::test_anthropic_cache_controls_pt", "tests/llm_translation/test_prompt_factory.py::test_anthropic_messages_nested_pt", "tests/llm_translation/test_prompt_factory.py::test_anthropic_messages_tool_call", "tests/llm_translation/test_prompt_factory.py::test_anthropic_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/ollama/ollama/blob/af4cf55884ac54b9...
98ad497eb4de25943ceadabe7c2c5c73cc810e27
2024-04-30 18:49:24
docker.io/swerebenchv2/getmoto-moto:7646-98ad497
getmoto__moto-7646
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/dynamodb/parsing/executors.py b/moto/dynamodb/parsing/executors.py index 35bd7d9ee..b6a7c6eef 100644 --- a/moto/dynamodb/parsing/executors.py +++ b/moto/dynamodb/parsing/executors.py @@ -155,7 +155,11 @@ class DeleteExecutor(NodeExecutor): DDBTypeConversion.get_human_type(string_set_t...
DynamoDB: Deleting items from a set should be idempotent Fixes #7585
DynamoDB: Using DELETE fails if attribute does not exist I believe there is a mismatch in behavior between moto and the real DynamoDB: - On the real DynamoDB, when using the DELETE operator in `update_item` to remove an item from an attribute that does not exist, it will just be ignored. - In moto, a cryptic error...
getmoto/moto
diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py index 2ed10537d..d891f75d8 100644 --- a/tests/test_dynamodb/test_dynamodb_update_expressions.py +++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py @@ -89,3 +89,54 @@ def test_update_...
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_delete_non_existing_item" ]
[ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request", "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/getmoto/moto/issues/3296" ], ...
82ca854f587af919789a9baae9a732fe0ce0052c
2020-06-29 12:36:41
docker.io/swerebenchv2/pallets-click:1609-82ca854
pallets__click-1609
Function: _detect_program_name(path=None, _main=sys.modules["__main__"]) Location: Inputs: - **path** (optional str): file path that Python reports as `sys.argv[0]`. If omitted the function falls back to `sys.argv[0]`. - **_main** (module): the `__main__` module object. Its `__package__` attribute is inspected to deci...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index d7a780d..79ae5d8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -33,6 +33,8 @@ Unreleased its result callback. :issue:`1178` - ``nargs == -1`` and ``nargs > 1`` is parsed and validated for values from environment variables and defaults. :issue:`729` +- Detect t...
detect program name with python -m Fixes #1603
detection of program name when run with `python -m` The program name (referred to as `prog_name` or `info_name`) is the name Click uses in usage help text. If it's not specified, Click tries to detect it by looking at `sys.argv[0]`. https://github.com/pallets/click/blob/dfb842d95a7c146d8fe8140c8100065410d95c4d/src/c...
pallets/click
diff --git a/tests/test_utils.py b/tests/test_utils.py index 0abd949..8b1277b 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,5 @@ import os +import pathlib import stat import sys from io import StringIO @@ -382,3 +383,32 @@ def test_iter_lazyfile(tmpdir): with click.utils.LazyFile(f....
[ "tests/test_utils.py::test_detect_program_name[example.py-None-example.py]", "tests/test_utils.py::test_detect_program_name[/foo/bar/example.py-None-example.py]", "tests/test_utils.py::test_detect_program_name[example-None-example]", "tests/test_utils.py::test_detect_program_name[example/__main__.py-main3-pyt...
[ "tests/test_utils.py::test_echo", "tests/test_utils.py::test_echo_custom_file", "tests/test_utils.py::test_styling[styles0-\\x1b[30mx", "tests/test_utils.py::test_styling[styles1-\\x1b[31mx", "tests/test_utils.py::test_styling[styles2-\\x1b[32mx", "tests/test_utils.py::test_styling[styles3-\\x1b[33mx", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.92, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/pallets/click/blob/dfb842d95a7c146d...
cf5fdba0307533b69ae9a1774f14ea28f06fcc45
2022-12-07 21:57:31
docker.io/swerebenchv2/ncar-geocat-comp:315-cf5fdba
ncar__geocat-comp-315
Method: climatology(dset, freq, time_coord_name=None, keep_attrs=None) Location: geocat.comp.climatologies Inputs: - dset: xr.Dataset or xr.DataArray containing a time coordinate. - freq: str – one of ``"day"``, ``"month"``, ``"season"``, ``"year"``. - time_coord_name: optional str to specify the name of the ...
python
Apache-2.0
diff --git a/src/geocat/comp/climatologies.py b/src/geocat/comp/climatologies.py index 264351b..db7a6d8 100644 --- a/src/geocat/comp/climatologies.py +++ b/src/geocat/comp/climatologies.py @@ -60,12 +60,13 @@ def _setup_clim_anom_input(dset, freq, time_coord_name): def _calculate_center_of_time_bounds( - dset: ...
Add `keep_attrs` to functions Closes #314 I cannot test these functions with `np.ndarray` inputs since they don't yet explicitly support that data structure. As far as I can tell, the aggregation functions for `xarray.core.groupby` and `xarray.core.resample` objects are the only ones used in this file that have `kee...
Add `keep_attrs` kwarg to all `climatology.py` functions Changes in xarray have resulted in an error when passing numpy objects into some `meteorology.py` functions. It has been determined in https://github.com/NCAR/geocat-comp/pull/312 that this arose from the global xarray option `keep_attrs` being set to `True` at t...
NCAR/geocat-comp
diff --git a/test/test_climatologies.py b/test/test_climatologies.py index 421787e..0d25dd1 100644 --- a/test/test_climatologies.py +++ b/test/test_climatologies.py @@ -37,16 +37,15 @@ def get_fake_dataset(start_month, nmonths, nlats, nlons): axis=(1, 2)) var_values = np.tile(mon...
[ "test/test_climatologies.py::test_climatology_keep_attrs[None-day-dataset1]", "test/test_climatologies.py::test_climatology_keep_attrs[None-month-dataset1]", "test/test_climatologies.py::test_climatology_keep_attrs[None-year-dataset1]", "test/test_climatologies.py::test_climatology_keep_attrs[None-season-data...
[ "test/test_climatologies.py::test_climatology_invalid_freq", "test/test_climatologies.py::test_climatology_encoded_time", "test/test_climatologies.py::test_climatology_setup[day-dataset1]", "test/test_climatologies.py::test_climatology_setup[month-dataset1]", "test/test_climatologies.py::test_climatology_se...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/NCAR/geocat-comp/pull/312", "...
e29de4e75314daf9267f30f47fd7a091ef5f1deb
2025-04-20 16:24:02
docker.io/swerebenchv2/matthewwithanm-python-markdownify:214-e29de4e
matthewwithanm__python-markdownify-214
Method: MarkdownConverter.convert_q(self, el, text, parent_tags) Location: markdownify/__init__.py Inputs: - el: the BeautifulSoup element representing a <q> tag. - text: the rendered inner text of the <q> element. - parent_tags: list of ancestor tag names (unused for this conversion). Outputs: str – a string consisti...
python
MIT
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 780761c..c732711 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -363,16 +363,20 @@ class MarkdownConverter(object): if not self.should_convert_tag(tag_name): return None - # Handle headings with co...
Ensure that explicitly provided heading conversion functions are used (#212) Fixes #212. The precedence of conversion function lookup is modified so that explicitly defined heading conversion functions (such as `convert_h3()`) take precedence over general heading conversion functions (processed by `convert_hN()`). ...
Custom converter functions are not recognized for heading tags When creating custom converters with MarkdownConverter for specific tags, all converters for `h1`-`h6` headings are ignored, and headings are processed according to the standard converter options. ```html <h1>This is a heading</h1> <p>This is a paragraph</...
matthewwithanm/python-markdownify
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 27951ee..6145411 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -305,6 +305,11 @@ def test_pre(): assert md("<p>foo</p>\n<pre>bar</pre>\n</p>baz</p>", sub_symbol="^") == "\n\nfoo\n\n```\nbar\n```\n\nbaz" +def te...
[ "tests/test_conversions.py::test_q", "tests/test_custom_converter.py::test_custom_conversion_functions" ]
[ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
9025116ff3bd2a8fa3a7a73336c1bcf6a92a18b9
2023-03-01 18:57:16
docker.io/swerebenchv2/opencybersecurityalliance-stix-shifter:1355-9025116
opencybersecurityalliance__stix-shifter-1355
No new interfaces are introduced.
python
custom-check-github
diff --git a/stix_shifter_modules/azure_log_analytics/stix_translation/query_constructor.py b/stix_shifter_modules/azure_log_analytics/stix_translation/query_constructor.py index 1c2c3eeb..33c49525 100644 --- a/stix_shifter_modules/azure_log_analytics/stix_translation/query_constructor.py +++ b/stix_shifter_modules/azu...
azure_log_analytics: fix translation of IN operator Fixes #1354
azure_log_analytics translates `IN` operator incorrectly **Describe the bug** The STIX `IN` operator gets translated to a weird KQL `where` expression, possibly causing this error: ``` azure_log_analytics connector error => No value for given attribute ``` **To Reproduce** Steps to reproduce the behavior: ``` ...
opencybersecurityalliance/stix-shifter
diff --git a/stix_shifter_modules/azure_log_analytics/tests/stix_translation/test_azure_sentinel_log_analytics_stix_to_query.py b/stix_shifter_modules/azure_log_analytics/tests/stix_translation/test_azure_sentinel_log_analytics_stix_to_query.py index 6726cfc9..8bc96334 100644 --- a/stix_shifter_modules/azure_log_analyt...
[ "stix_shifter_modules/azure_log_analytics/tests/stix_translation/test_azure_sentinel_log_analytics_stix_to_query.py::TestStixtoQuery::test_in_operator" ]
[ "stix_shifter_modules/azure_log_analytics/tests/stix_translation/test_azure_sentinel_log_analytics_stix_to_query.py::TestStixtoQuery::test_computer_query", "stix_shifter_modules/azure_log_analytics/tests/stix_translation/test_azure_sentinel_log_analytics_stix_to_query.py::TestStixtoQuery::test_domain_params_query...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
ce9c4eb0f895f356e775ca268d7ccef908f4c936
2024-08-29 15:30:21
docker.io/swerebenchv2/aio-libs-aiohttp:8929-ce9c4eb
aio-libs__aiohttp-8929
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGES/8929.bugfix.rst b/CHANGES/8929.bugfix.rst new file mode 100644 index 000000000..229d5abd0 --- /dev/null +++ b/CHANGES/8929.bugfix.rst @@ -0,0 +1,1 @@ +Fixed ``Site.name`` when host is an empty string -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/web_runner.py b/aiohttp/web_runner.py index 0ce73...
Fix Site.name with empty host Fixes #6585.
TCPSite.name raises ValueError if host is empty string ### Describe the bug `aiohttp` creates a TCP server by calling `loop.create_server()` in `TCPSite.start()`. The `loop.create_server()` function allows for empty string to be passed as `host` parameter, effectively binding the server socket to `INADDR_ANY`. Here's ...
aio-libs/aiohttp
diff --git a/tests/test_web_runner.py b/tests/test_web_runner.py index 7ad9ed6d8..302afbb95 100644 --- a/tests/test_web_runner.py +++ b/tests/test_web_runner.py @@ -243,6 +243,13 @@ async def test_tcpsite_default_host(make_runner: Any) -> None: assert port == 8080 +async def test_tcpsite_empty_str_host(make_ru...
[ "tests/test_web_runner.py::test_tcpsite_empty_str_host[pyloop]" ]
[ "tests/test_web_runner.py::test_site_for_nonfrozen_app[pyloop]", "tests/test_web_runner.py::test_runner_setup_handle_signals[pyloop]", "tests/test_web_runner.py::test_runner_setup_without_signal_handling[pyloop]", "tests/test_web_runner.py::test_site_double_added[pyloop]", "tests/test_web_runner.py::test_si...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://docs.python.org/3/library/asyncio-eventloop.html...
01ae5a5d0f95879db7e6264ee7567b38880448f6
2021-03-31 18:35:29
docker.io/swerebenchv2/scoutapp-scout-apm-python:639-01ae5a5
scoutapp__scout_apm_python-639
Function: filter_frames(frames) Location: src/scout_apm/core/backtrace.py Inputs: An iterable of frame dictionaries, each containing at least the keys `"file"` (str), `"line"` (int), and `"function"` (str). The function inspects the `"file"` path. Outputs: A generator yielding the subset of input frame dictionaries who...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 526a2b9..b2bd468 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,13 @@ ## Pending ### Added - - Tested with Django 3.2. Only define ``default_app_config`` when using a version of Django earlier than 3.2. +### Fixed +- Exclude python library paths from ba...
Exclude python library paths from the backtrace. Closes #514
Clean library/frameworks from backtraces We should clean all non-user code from backtraces as much as possible. Here's a heroku app running 2.13.0: <img width="890" alt="Screenshot 2020-04-13 14 39 56" src="https://user-images.githubusercontent.com/102774/79160522-26a36e80-7d97-11ea-8376-f8dfcfd6ece0.png">
scoutapp/scout_apm_python
diff --git a/tests/unit/core/test_backtrace.py b/tests/unit/core/test_backtrace.py index 6d3dfd7..c59e5b5 100644 --- a/tests/unit/core/test_backtrace.py +++ b/tests/unit/core/test_backtrace.py @@ -1,7 +1,9 @@ # coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals +import o...
[ "tests/unit/core/test_backtrace.py::test_filter_frames" ]
[ "tests/unit/core/test_backtrace.py::test_capture_limit" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.9, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": [...
f6a81cc2f524bf3d2e9cb1923d101f1308e4711b
2024-07-24 14:55:31
docker.io/swerebenchv2/keras-team-keras:20041-f6a81cc
keras-team__keras-20041
Method: KerasVariable.assign(self, value) Location: keras/src/backend/common/variables.py Inputs: `value` – a tensor‑compatible object (e.g., NumPy array, backend tensor) to assign to the variable. Outputs: Returns the assigned `value` (same type as input). Previously returned `None`. Description: Assigns a new value t...
python
Apache-2.0
diff --git a/keras/src/backend/common/variables.py b/keras/src/backend/common/variables.py index 34b69958f..e76930f0a 100644 --- a/keras/src/backend/common/variables.py +++ b/keras/src/backend/common/variables.py @@ -237,12 +237,13 @@ class KerasVariable: scope.add_update((self, value)) else: ...
Zero pad 1D data format parameter Add `data_format` parameter to `ZeroPadding1D`. Parameter is available for 2D and 3D layers. Fix #19984
Support for channels first data format with zeropadding1D Hi Keras team, It appears that the 1D ZeroPadding layer always assumes a channels-last data format. It would be beneficial to add support for cases where the data format is channels-first. Currently, the 1D ZeroPadding layer does not accept an input variable ...
keras-team/keras
diff --git a/keras/src/backend/common/variables_test.py b/keras/src/backend/common/variables_test.py index ab40c905c..2b36fbda5 100644 --- a/keras/src/backend/common/variables_test.py +++ b/keras/src/backend/common/variables_test.py @@ -297,18 +297,36 @@ class VariableNumpyValueAndAssignmentTest(test_case.TestCase): ...
[ "keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::test_variable_assign_add_return", "keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::test_variable_assign_return", "keras/src/backend/common/variables_test.py::VariableNumpyValueAndAssignmentTest::te...
[ "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialization", "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_deferred_initialize_already_initialized", "keras/src/backend/common/variables_test.py::VariableInitializationTest::test_variable_i...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/keras-team/keras/blob/v3.3.3/keras/...
efec51ac92059fc5b72f08832b481919a3ded6f3
2022-02-25 12:39:26
docker.io/swerebenchv2/python-markdown-markdown:1225-efec51a
python-markdown__markdown-1225
Function: TocExtension(toc_class: str = "toc", **options) Location: markdown.extensions.toc.TocExtension Inputs: - **toc_class** – CSS class name(s) applied to the `<div>` that wraps the generated Table of Contents. Accepts a single class or multiple classes separated by whitespace (e.g., `"custom"` or `"custom1 custom...
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.4.md b/docs/change_log/release-3.4.md index 71f9a20..025d443 100644 --- a/docs/change_log/release-3.4.md +++ b/docs/change_log/release-3.4.md @@ -51,6 +51,10 @@ The following new features have been included in the 3.3 release: Ex: `[{}]` will give <sup>[1]</sup>, `({})` wil...
Support custom CSS class on TOC element Closes #1224
Allow TOC element to use a custom CSS class ```markdown [TOC] # Header 1 ``` will currently generate the following HTML: ```html <div class="toc"> <ul> <li><a href="#header-1">Header 1</a></li> </ul> </div> <h1 id="header-1">Header 1</h1> ``` The `class="toc"` cannot be changed, although usin...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_toc.py b/tests/test_syntax/extensions/test_toc.py index 6871340..d879f6e 100644 --- a/tests/test_syntax/extensions/test_toc.py +++ b/tests/test_syntax/extensions/test_toc.py @@ -569,3 +569,46 @@ class TestTOC(TestCase): '<p>[TOC]<br />\ntext</p>', ...
[ "tests/test_syntax/extensions/test_toc.py::TestTOC::testTOCWithCustomClass", "tests/test_syntax/extensions/test_toc.py::TestTOC::testTOCWithCustomClasses" ]
[ "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": [], "intent_completeness": "complete", "pr_categories": [...