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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6560982f1f2474824e758bd2df0070280befece3 | 2025-01-20 07:02:35 | docker.io/swerebenchv2/mpmath-mpmath:904-6560982 | mpmath__mpmath-904 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/functions/zeta.py b/mpmath/functions/zeta.py
index 3e3b542..40db1d2 100644
--- a/mpmath/functions/zeta.py
+++ b/mpmath/functions/zeta.py
@@ -402,6 +402,8 @@ def polylog_series(ctx, s, z):
def polylog_continuation(ctx, n, z):
if n < 0:
return z*0
+ if ctx._is_real_type(z) and ctx.is... | Add special case for ±inf in polylog_continuation()
Closes #473 | polylog at negative floating point infinity
```
>>> mpmath.polylog(2, -1e10)
mpf('-266.73983959066811')
>>> mpmath.polylog(3, -1e10)
mpf('-2072.554598906404')
>>> mpmath.polylog(4, -1e10) ... | mpmath/mpmath | diff --git a/mpmath/tests/test_functions2.py b/mpmath/tests/test_functions2.py
index 1176fb4..6d860f8 100644
--- a/mpmath/tests/test_functions2.py
+++ b/mpmath/tests/test_functions2.py
@@ -2420,3 +2420,10 @@ def test_issue_511():
assert mp.laguerre(1, 2, mp.inf) == -mp.inf
assert mp.laguerre(1, 7.2, mp.inf) =... | [
"mpmath/tests/test_functions2.py::test_issue_473"
] | [
"mpmath/tests/test_functions2.py::test_bessel",
"mpmath/tests/test_functions2.py::test_issue_877",
"mpmath/tests/test_functions2.py::test_bessel_zeros",
"mpmath/tests/test_functions2.py::test_hankel",
"mpmath/tests/test_functions2.py::test_struve",
"mpmath/tests/test_functions2.py::test_whittaker",
"mpm... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
2855b6b9041263c9d01f944216954347d00085a1 | 2023-10-08 14:05:58 | docker.io/swerebenchv2/yukinarit-pyserde:430-2855b6b | yukinarit__pyserde-430 | Method: Foo.__init__(self, a: Optional[int] = None)
Location: <generated by @serde.serde on class Foo>
Inputs: a – optional integer value; if omitted the field defaults to None or the default defined by the field descriptor.
Outputs: Returns a new Foo instance with attribute a set to the provided value (or None).
Descr... | python | MIT | diff --git a/serde/de.py b/serde/de.py
index be905d8..7752fd5 100644
--- a/serde/de.py
+++ b/serde/de.py
@@ -123,13 +123,18 @@ def default_deserializer(_cls: Type[Any], obj: Any) -> Any:
"""
-def _get_by_aliases(d: Dict[str, str], aliases: List[str]) -> str:
+def _get_by_aliases(
+ d: Dict[str, str], aliase... | Fix alias of optional type
Closes #429 | `alias` on `Optional` field breaks deserialization
Hi there,
Using the latest version (0.12.2), this example consistently deserializes `Foo.a` to `None`:
```py
@serde
@dataclass
class Foo:
a: Optional[int] = field(alias=["b"])
x = from_json(Foo, '{"b": 1}')
assert x.a == 1 💥
``` | yukinarit/pyserde | diff --git a/tests/test_basics.py b/tests/test_basics.py
index 41b6769..d3efd01 100644
--- a/tests/test_basics.py
+++ b/tests/test_basics.py
@@ -573,6 +573,15 @@ def test_default_and_alias():
assert ff.a == 2
+def test_optional_and_alias():
+ @serde.serde
+ class Foo:
+ a: Optional[int] = serde.fi... | [
"tests/test_basics.py::test_optional_and_alias"
] | [
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]",
"tests/test_basics.py::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]",
"tests/test_basics... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ea36c806630904aa5b5c18042207a62ca9045d12 | 2023-07-18 14:03:46 | docker.io/swerebenchv2/amaranth-lang-amaranth:841-ea36c80 | amaranth-lang__amaranth-841 | Method: View.__getitem__(self, key)
Location: amaranth.lib.data.View
Inputs:
- **key** – index used to access a View; may be an ``int``, an Amaranth ``Value`` or any ``ValueCastable`` object. For Views whose layout is an ``ArrayLayout``, any other type (e.g., ``str``) is considered invalid.
Outputs:
- Returns a sub‑V... | python | BSD-2-Clause | diff --git a/amaranth/lib/data.py b/amaranth/lib/data.py
index 24bbde4..1013863 100644
--- a/amaranth/lib/data.py
+++ b/amaranth/lib/data.py
@@ -662,6 +662,10 @@ class View(ValueCastable):
If ``ShapeCastable.__call__`` does not return a value or a value-castable object.
"""
if isinstance(... | lib.data: improve diagnostics for field access on array layout view
Fixes #837. | TypeError when accessing reset attribute from a Signal created with an ArrayLayout
Repro:
```python3
from amaranth import *
from amaranth.lib import data
layout = data.ArrayLayout(unsigned(1), 4)
a = Signal(layout, reset=[0,0,0,0])
a.reset
```
Output:
```
Traceback (most recent call last):
File "/tmp/r... | amaranth-lang/amaranth | diff --git a/tests/test_lib_data.py b/tests/test_lib_data.py
index 5ce1120..e368095 100644
--- a/tests/test_lib_data.py
+++ b/tests/test_lib_data.py
@@ -611,6 +611,17 @@ class ViewTestCase(FHDLTestCase):
r"and may only be accessed by indexing$"):
Signal(StructLayout({"_c": signed(1)}))._c
... | [
"tests/test_lib_data.py::ViewTestCase::test_bug_837_array_layout_getattr",
"tests/test_lib_data.py::ViewTestCase::test_bug_837_array_layout_getitem_str"
] | [
"tests/test_lib_data.py::FieldTestCase::test_construct",
"tests/test_lib_data.py::FieldTestCase::test_equal",
"tests/test_lib_data.py::FieldTestCase::test_immutable",
"tests/test_lib_data.py::FieldTestCase::test_offset_wrong",
"tests/test_lib_data.py::FieldTestCase::test_preserve_shape",
"tests/test_lib_d... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
60966eaeca137cf2e08826a2b3e08fe6f5af7b36 | 2024-11-04 21:34:55 | docker.io/swerebenchv2/vacanza-holidays:2106-60966ea | vacanza__holidays-2106 | Method: CommonCountryTests.assertNoHolidayName(self, name: str, dates: Optional[Iterable[Union[str, date, range]]] = None)
Location: tests/countries/common.py (inherited by TestUnitedStates)
Inputs:
- **name** – the holiday name to check (e.g., “Columbus Day”).
- **dates** – optional collection of dates or rang... | python | MIT | diff --git a/holidays/countries/united_states.py b/holidays/countries/united_states.py
index 51bde89a..b19eefdf 100644
--- a/holidays/countries/united_states.py
+++ b/holidays/countries/united_states.py
@@ -213,29 +213,25 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
... | Update Unites States holidays: remove Columbus Day from countrywide holidays
<!--
Thanks for contributing to holidays!
-->
## Proposed change
<!--
Describe the big picture of your changes.
Don't forget to link your PR to an existing issue if any.
-->
Update Unites States holidays: remove Columbus Da... | Columbus Day is not observed in all states
## Bug Report
### Expected Behavior
**Columbus Day** is a federal holiday that's not observed in many US states (e.g. California).
```python
>>> holidays.US(years=2024, subdiv="CA").get(date(2024, 10, 14))
>>>
```
So I believe it shouldn't be returned if `subdiv... | vacanza/holidays | diff --git a/tests/countries/test_united_states.py b/tests/countries/test_united_states.py
index 4cd8e361..6f32cf2c 100644
--- a/tests/countries/test_united_states.py
+++ b/tests/countries/test_united_states.py
@@ -432,9 +432,7 @@ class TestUnitedStates(CommonCountryTests, TestCase):
def test_columbus_day(self):... | [
"tests/countries/test_united_states.py::TestUnitedStates::test_columbus_day"
] | [
"tests/countries/test_united_states.py::TestUnitedStates::test_alaska_day",
"tests/countries/test_united_states.py::TestUnitedStates::test_all_souls_day",
"tests/countries/test_united_states.py::TestUnitedStates::test_american_samoa_flag_day",
"tests/countries/test_united_states.py::TestUnitedStates::test_arb... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
e49dfa53cffc1116e25d58d727ff4eea34fafb64 | 2023-08-31 12:52:57 | docker.io/swerebenchv2/delgan-loguru:960-e49dfa5 | delgan__loguru-960 | Function: logger.add(sink, *, format="{message}", rotation=None, level="DEBUG", filter=None, enqueue=False, catch=True, backtrace=False, diagnose=False, **kwargs)
Location: loguru/_logger.py
Inputs:
- **sink** – a file path (str or pathlib.Path) where logs are written.
- **format** – message format string (default “{m... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 47ca76e..8286a31 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,10 +2,11 @@
=============
- Add a new ``context`` optional argument to ``logger.add()`` specifying ``multiprocessing`` context (like ``"spawn"`` or ``"fork"``) to be used internally instead of the ... | Fix incorrect rotation when re-starting around midnight
Fix #894. | The log file is abnormal when the log is rotating
Hi, thank you so much for your project, it's really great. However, some problems have been found in the process of using it recently. Can you help to have a look?
I created a new file `logger.py`
```python
from loguru import logger
logger.remove()
logger.add(
... | Delgan/loguru | diff --git a/tests/test_filesink_rotation.py b/tests/test_filesink_rotation.py
index ef211ed..1bd09cf 100644
--- a/tests/test_filesink_rotation.py
+++ b/tests/test_filesink_rotation.py
@@ -605,6 +605,98 @@ def test_time_rotation_when_timezone_changes_backward_rename_file(freeze_time, t
)
+@pytest.mark.parametr... | [
"tests/test_filesink_rotation.py::test_dont_rotate_earlier_when_utc_is_one_day_before[00:15]",
"tests/test_filesink_rotation.py::test_dont_rotate_earlier_when_utc_is_one_day_before[rotation1]",
"tests/test_filesink_rotation.py::test_dont_rotate_earlier_when_utc_is_one_day_before[rotation3]",
"tests/test_files... | [
"tests/test_filesink_rotation.py::test_renaming",
"tests/test_filesink_rotation.py::test_no_renaming",
"tests/test_filesink_rotation.py::test_size_rotation[8]",
"tests/test_filesink_rotation.py::test_size_rotation[8.0]",
"tests/test_filesink_rotation.py::test_size_rotation[7.99]",
"tests/test_filesink_rot... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Delgan/loguru/assets/23091750/c4cd1... |
e5f962193cb12e696bd6ec641844c4d09b5fb87c | 2023-12-29 05:54:36 | docker.io/swerebenchv2/getmoto-moto:7167-e5f9621 | getmoto__moto-7167 | Method: client.create_resource_server(UserPoolId: str, Identifier: str, Name: str, Scopes: Optional[List[Dict[str, str]]] = None) → dict
Location: boto3 Cognito‑IDP client (Moto implementation in `moto/cognitoidp/models.py` as part of the `CognitoResourceServer` handling)
Inputs:
- **UserPoolId** – identifier of the us... | python | Apache-2.0 | diff --git a/docs/docs/faq.rst b/docs/docs/faq.rst
index 5380569e3..cc6271b05 100644
--- a/docs/docs/faq.rst
+++ b/docs/docs/faq.rst
@@ -19,6 +19,14 @@ Is Moto concurrency safe?
No. Moto is not designed for multithreaded access/multiprocessing.
+Moto's internal state, encompassing resource creations and modificati... | fix CognitoIDP: create_resource_server will crash when `scopes` not specified
this PR will fix #7163 | Cognito IDP/ create-resource-server: TypeError if no scopes are provided
If I try to create a ressource servers without scope Moto is crashing with the following error :
```python
self = <moto.cognitoidp.models.CognitoResourceServer object at 0x1096a4750>
def to_json(self) -> Dict[str, Any]:
res: D... | getmoto/moto | diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py
index 9b5b1db1f..ed2851096 100644
--- a/tests/test_cognitoidp/test_cognitoidp.py
+++ b/tests/test_cognitoidp/test_cognitoidp.py
@@ -3578,6 +3578,26 @@ def test_create_resource_server():
assert ex.value.response["Respon... | [
"tests/test_cognitoidp/test_cognitoidp.py::test_create_resource_server_with_no_scopes"
] | [
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool",
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool__overwrite_template_messages",
"tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_should_have_all_default_attributes_in_schema",
"tests/test_cognitoidp/test_cognito... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://boto3.amazonaws.com/v1/documentation/api/latest/... |
0a8532e9717bb294a5116e5756beab0dbf51557b | 2021-11-22 19:47:04 | docker.io/swerebenchv2/pyomo-pyomo:2209-0a8532e | pyomo__pyomo-2209 | Method: PrefixVisitor.__init__(self, include_named_exprs=True) Location: pyomo.core.expr.compare
Inputs: include_named_exprs – optional bool (default True) indicating whether named expressions are included during traversal.
Outputs: None (initializes the visitor with the flag stored in self._include_named_exprs).
Desc... | python | custom-check-github | diff --git a/pyomo/core/expr/compare.py b/pyomo/core/expr/compare.py
index 5ddbda492..f75a5490e 100644
--- a/pyomo/core/expr/compare.py
+++ b/pyomo/core/expr/compare.py
@@ -25,7 +25,7 @@ from pyomo.common.errors import PyomoException
def handle_linear_expression(node: LinearExpression, pn: List):
- pn.append((L... | NPV_SumExpression needs to inherit from NPV_Mixin
## Fixes #2208 .
## Changes proposed in this PR:
- `NPV_SumExpression` inherits from `NPV_Mixin`
- Unfortunately, the implementation of `create_node_with_local_data` in `NPV_Mixin` does not work for `NPV_SumExpression`. You end up with an instance of `SumExpression... | NPV_SumExpression does not inherit from NPV_Mixin
## Summary
`NPV_SumExpression` does not inherit form `NPV_Mixin`. As a result replacing mutable parameters in an `NPV_SumExpression` with variables does not work correctly.
### Steps to reproduce the issue
```
import pyomo.environ as pe
from pyomo.core.expr.v... | Pyomo/pyomo | diff --git a/pyomo/core/tests/unit/test_compare.py b/pyomo/core/tests/unit/test_compare.py
index 20131e4d1..3e53fcf5f 100644
--- a/pyomo/core/tests/unit/test_compare.py
+++ b/pyomo/core/tests/unit/test_compare.py
@@ -13,7 +13,7 @@ from pyomo.core.expr.numeric_expr import (
LinearExpression, MonomialTermExpression,... | [
"pyomo/core/tests/unit/test_compare.py::TestConvertToPrefixNotation::test_abs",
"pyomo/core/tests/unit/test_visitor.py::WalkerTests3::test_replacement_walker7",
"pyomo/core/tests/unit/test_visitor.py::TestReplacementWithNPV::test_npv_abs",
"pyomo/core/tests/unit/test_visitor.py::TestReplacementWithNPV::test_n... | [
"pyomo/core/tests/unit/test_compare.py::TestConvertToPrefixNotation::test_expr_if",
"pyomo/core/tests/unit/test_compare.py::TestConvertToPrefixNotation::test_float",
"pyomo/core/tests/unit/test_compare.py::TestConvertToPrefixNotation::test_linear_expression",
"pyomo/core/tests/unit/test_compare.py::TestConver... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
966fa1787c7be8c136dfeff75316656c435f0ab3 | 2021-03-05 11:19:45 | docker.io/swerebenchv2/googlefonts-ufo2ft:480-966fa17 | googlefonts__ufo2ft-480 | Method: GdefFeatureWriter.setContext(self, font, feaFile, compiler=None)
Location: Lib/ufo2ft/featureWriters/gdefFeatureWriter.py
Inputs: ‑ font – UFO Font object providing glyph set and lib data.
‑ feaFile – fontTools.feaLib FeatureFile representing the current .fea source.
‑ compiler – optional feature compiler i... | python | MIT | diff --git a/Lib/ufo2ft/constants.py b/Lib/ufo2ft/constants.py
index 1bf3161..6d84ff7 100644
--- a/Lib/ufo2ft/constants.py
+++ b/Lib/ufo2ft/constants.py
@@ -19,3 +19,5 @@ KEEP_GLYPH_NAMES = UFO2FT_PREFIX + "keepGlyphNames"
COLOR_LAYERS_KEY = UFO2FT_PREFIX + "colorLayers"
COLOR_PALETTES_KEY = UFO2FT_PREFIX + "colorPal... | Add GDEF feature writer
Fixes #456.
This adds a GDEF feature writer to the default feature writers (kern feature writer, mark feature writer).
The GdefFeatureWriter first compiles the GDEF from the feature code (feaLib uses the GDEF table definition or builds it from lookups) and uses it to get Glyph Class Defini... | Write GDEF feature writer
Storing GDEF information in features.fea is possible and done today but is also very much annoying. One, it needs separate maintenance and two, it instance interpolation is not made to interpolate feature files, so ligature caret positions are taken from the default source.
The UFO spec now... | googlefonts/ufo2ft | diff --git a/tests/featureWriters/gdefFeatureWriter_test.py b/tests/featureWriters/gdefFeatureWriter_test.py
new file mode 100644
index 0000000..e793c2d
--- /dev/null
+++ b/tests/featureWriters/gdefFeatureWriter_test.py
@@ -0,0 +1,224 @@
+import logging
+from textwrap import dedent
+
+import pytest
+
+from ufo2ft.featu... | [
"tests/featureWriters/markFeatureWriter_test.py::test_parseAnchorName[input_expected0]",
"tests/featureWriters/markFeatureWriter_test.py::test_parseAnchorName[input_expected1]",
"tests/featureWriters/markFeatureWriter_test.py::test_parseAnchorName[input_expected2]",
"tests/featureWriters/markFeatureWriter_tes... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/unified-font-object/ufo-spec/blob/g... |
f3f3fd0c19843f5e4359738ce298932e93ce2758 | 2018-04-28 15:43:15 | docker.io/swerebenchv2/aaugustin-websockets:374-f3f3fd0 | aaugustin__websockets-374 | Method: get_server_uri(server, secure=False, resource_name='/', user_info=None)
Location: websockets/test_client_server.py (test helper)
Inputs:
- **server**: a running `Server` object returned by `serve()`.
- **secure**: ``bool`` indicating whether to use ``wss`` (True) or ``ws`` (False). Default ``False``.
- **resour... | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index a961f31..745174f 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -3,11 +3,24 @@ Changelog
.. currentmodule:: websockets
-4.1
+5.0
...
*In development*
+.. warning::
+
+ **Version 5.0 adds a ``user_info`` field to the return value of
+ ... | Add support for HTTP Basic Auth in the client side.
Fix #373. | Support basic auth in client
It does not seem possible to connect to a server using basic auth?
For example:
```
websockets.connect('wss://myuser:mypass@myserver.com')
``` | aaugustin/websockets | diff --git a/websockets/test_client_server.py b/websockets/test_client_server.py
index e397558..7ee8b78 100644
--- a/websockets/test_client_server.py
+++ b/websockets/test_client_server.py
@@ -109,13 +109,15 @@ def with_client(*args, **kwds):
return with_manager(temp_test_client, *args, **kwds)
-def get_server... | [
"websockets/test_client_server.py::ClientServerTests::test_compression_unsupported_server",
"websockets/test_http.py::HTTPAsyncTests::test_header_name",
"websockets/test_http.py::HTTPAsyncTests::test_header_value",
"websockets/test_http.py::HTTPAsyncTests::test_headers_limit",
"websockets/test_http.py::HTTP... | [] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
5dbbc84e16f71d84b888f5d16531a00a360a2284 | 2016-07-27 17:24:12 | docker.io/swerebenchv2/boto-botocore:985-5dbbc84 | boto__botocore-985 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/.changes/next-release/bugfix-s3-36114.json b/.changes/next-release/bugfix-s3-36114.json
new file mode 100644
index 000000000..c15f29889
--- /dev/null
+++ b/.changes/next-release/bugfix-s3-36114.json
@@ -0,0 +1,5 @@
+{
+ "description": "S3 region redirector will now honor the orginial url scheme.",
+ "cat... | Honor old scheme when redirecting S3 requests
If the old URL was using http over https, we will no continue to
use http.
Fixes #976
Closes #984
cc @kyleknap @jamesls | Region redirect does not honor scheme
Bucket in us-west-2
```
$ aws s3api get-bucket-location --bucket jamesls-test-sync
{
"LocationConstraint": "us-west-2"
}
```
Specifying an http endpoint to us standard instead of us-west-2:
```
aws s3 cp /tmp/foo.txt s3://jamesls-test-sync/ --endpoint-url http://... | boto/botocore | diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py
index 2757ca5e2..68c878726 100644
--- a/tests/unit/test_utils.py
+++ b/tests/unit/test_utils.py
@@ -1000,6 +1000,15 @@ class TestS3RegionRedirector(unittest.TestCase):
self.assertEqual(
params['url'], 'https://us-west-2.amazonaws.com... | [
"tests/unit/test_utils.py::TestS3RegionRedirector::test_set_request_url_keeps_old_scheme"
] | [
"tests/unit/test_utils.py::TestURINormalization::test_empty_url_normalization",
"tests/unit/test_utils.py::TestURINormalization::test_remove_dot_segments",
"tests/unit/test_utils.py::TestTransformName::test_already_snake_cased",
"tests/unit/test_utils.py::TestTransformName::test_consecutive_upper_case",
"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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
82eba2f1b10d75464c8c1a0971b719abb234b33f | 2021-06-04 19:52:18 | docker.io/swerebenchv2/networkx-networkx:4872-82eba2f | networkx__networkx-4872 | No new interfaces are introduced. | python | custom-check-github | diff --git a/doc/release/release_dev.rst b/doc/release/release_dev.rst
index 6ebb3e1c3..d11c0da39 100644
--- a/doc/release/release_dev.rst
+++ b/doc/release/release_dev.rst
@@ -185,6 +185,8 @@ API Changes
from ``communicability_betweeness_centrality``
- [`#4850 <https://github.com/networkx/networkx/pull/4850>`_]
... | Deserializing custom default properties graph ml
Added a simple test (analogous to existing tests)
And tried to fix the issue with minimal changes.
Hopefully fixes #4778
| Deserializing custom default properties from yEd graphML files
When importing a yEd created graphml file with custom properties on the
nodes I found that the default values for boolean properties was always True.
After some browsing through the code of GraphMLReader I found that while
the properties of the nodes ... | networkx/networkx | diff --git a/networkx/readwrite/tests/test_graphml.py b/networkx/readwrite/tests/test_graphml.py
index fbbc19531..beb622659 100644
--- a/networkx/readwrite/tests/test_graphml.py
+++ b/networkx/readwrite/tests/test_graphml.py
@@ -119,6 +119,40 @@ class BaseGraphML:
cls.attribute_graph.add_edge("n5", "n4", id="e... | [
"networkx/readwrite/tests/test_graphml.py::TestReadGraphML::test_node_default_attribute_graphml"
] | [
"networkx/readwrite/tests/test_graphml.py::TestReadGraphML::test_read_simple_directed_graphml",
"networkx/readwrite/tests/test_graphml.py::TestReadGraphML::test_read_simple_undirected_graphml",
"networkx/readwrite/tests/test_graphml.py::TestReadGraphML::test_read_undirected_multigraph_graphml",
"networkx/read... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://groups.google.com/g/networkx-discuss/c/XbFTyx-PK... |
e0166d30d9258d6db644a9c6c5e1cdcef65b8b60 | 2022-06-03 17:42:56 | docker.io/swerebenchv2/stac-utils-pystac-client:222-e0166d3 | stac-utils__pystac-client-222 | Method: Client.from_dict(cls, d: Dict[str, Any], href: Optional[str] = None, root: Optional[pystac.Catalog] = None, migrate: bool = False, preserve_dict: bool = True) -> "Client"
Location: pystac_client.client.Client
Inputs:
- **d** – Raw STAC JSON dictionary representing the object to open.
- **href** – Optional so... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2cc89a5..9bf16f4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Search `filter-lang` defaults to `cql2-json` instead of `cql-json` [#169](https://github.com/stac-utils/pysta... | Better error message when trying to open a Collection with Client.open
**Related Issue(s):**
- Closes #103
**Description:** After digging a bit, I think it does _not_ make sense to allow `Client.open` to work for collections, since we have `ClientCollection` to handle that case. This PR improves the error message ... | Client.open and collections
Client currently inherits from Catalog, so cannot be used with a Collection object ("..does not represent a Client instance").
We currently have hierarchy of collections, and would like to be able to search at different levels. It may be that this is a weird use case, but from glancing at... | stac-utils/pystac-client | diff --git a/tests/test_client.py b/tests/test_client.py
index b06b0f6..64172b3 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -11,6 +11,7 @@ from pystac import MediaType
from pystac_client import Client
from pystac_client.conformance import ConformanceClasses
+from pystac_client.errors import Clie... | [
"tests/test_client.py::TestAPI::test_spec_conformance",
"tests/test_client.py::TestAPI::test_no_conformance",
"tests/test_client.py::TestAPI::test_no_stac_core_conformance",
"tests/test_client.py::TestAPI::test_invalid_url",
"tests/test_client.py::TestAPI::test_get_collections_with_conformance",
"tests/te... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/stac-utils/pystac-client/pull/222",... |
bcc4d0a2916dcdc6fcc775c40c2f04d28381c18f | 2018-04-03 09:41:02 | docker.io/swerebenchv2/opensistemas-hub-osbrain:281-bcc4d0a | opensistemas-hub__osbrain-281 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/osbrain/agent.py b/osbrain/agent.py
index 82fa0a3..afe1bbd 100644
--- a/osbrain/agent.py
+++ b/osbrain/agent.py
@@ -1602,6 +1602,8 @@ class Agent():
"""
if uuid not in self._pending_requests:
return
+
+ del self._pending_requests[uuid]
if not on_error:
... | Ignore async replies after maximum wait
Fixes #280 | Agents receive async replies even after maximum `wait`
After the maximum wait time expires, the `on_error` handler is executed correctly, but agents still receive the reply and will process it as usual, which is not the expected behavior.
The request should be removed from `_pending_requests` after the timeout has e... | opensistemas-hub/osbrain | diff --git a/osbrain/tests/test_agent_async_requests.py b/osbrain/tests/test_agent_async_requests.py
index 259ce65..f959290 100644
--- a/osbrain/tests/test_agent_async_requests.py
+++ b/osbrain/tests/test_agent_async_requests.py
@@ -165,10 +165,17 @@ def test_wait(nsproxy, server_client_late_reply_delay):
# Resp... | [
"osbrain/tests/test_agent_async_requests.py::test_wait"
] | [
"osbrain/tests/test_agent_async_requests.py::test_return",
"osbrain/tests/test_agent_async_requests.py::test_yield",
"osbrain/tests/test_agent_async_requests.py::test_unknown",
"osbrain/tests/test_agent_async_requests.py::test_wait_on_error"
] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
58e87a759d90d691c0fa97150d6d133df1420d34 | 2019-04-06 11:39:05 | docker.io/swerebenchv2/kayak-pypika:242-58e87a7 | kayak__pypika-242 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/README.rst b/README.rst
index 91ef64f..b5af7e1 100644
--- a/README.rst
+++ b/README.rst
@@ -414,6 +414,31 @@ Example of a join using `USING`
SELECT "history".* FROM "history" JOIN "customers" USING "customer_id" WHERE "customers"."id"=5
+Example of a correlated subquery in the `SELECT`
+~~~~~~~~~~... | Removes exception raising validate_term
Fixes #227 to allow correlated subqueries.
Removing table validation was not enough. Because most subqueries which reference a parent table would result in an ambiguous query and need the full namespace when referring to the fields. (e.g. imaging joining on "id" without the fu... | Allow filtering by non existant table
When creating a subquery, often I'd like to reference the parent table id.
However this validation code https://github.com/kayak/pypika/blob/master/pypika/queries.py#L718 prevents that.
For a contrived example
```
Teacher, School = Tables("teacher", "school")
Query.from_(S... | kayak/pypika | diff --git a/pypika/tests/test_joins.py b/pypika/tests/test_joins.py
index 4b4ff1a..466c016 100644
--- a/pypika/tests/test_joins.py
+++ b/pypika/tests/test_joins.py
@@ -276,23 +276,34 @@ class JoinBehaviorTests(unittest.TestCase):
self.assertEqual('SELECT "foo" FROM "abc"', str(query1))
def test_select_... | [
"pypika/tests/test_joins.py::JoinBehaviorTests::test_select_field_from_missing_table"
] | [
"pypika/tests/test_joins.py::SelectQueryJoinTests::test_cross_join_on_subquery",
"pypika/tests/test_joins.py::SelectQueryJoinTests::test_cross_join_on_table",
"pypika/tests/test_joins.py::SelectQueryJoinTests::test_full_outer_join",
"pypika/tests/test_joins.py::SelectQueryJoinTests::test_inner_join",
"pypik... | {
"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": "B3",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/kayak/pypika/blob/master/pypika/que... |
e70f6f0914d308d307c18e034161683accbee8f1 | 2022-01-19 20:27:38 | docker.io/swerebenchv2/pytask-dev-pytask:198-e70f6f0 | pytask-dev__pytask-198 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/source/changes.rst b/docs/source/changes.rst
index f2d79a7..979e234 100644
--- a/docs/source/changes.rst
+++ b/docs/source/changes.rst
@@ -14,6 +14,7 @@ all releases are available on `PyPI <https://pypi.org/project/pytask>`_ and
- :gh:`193` adds more figures to the documentation.
- :gh:`194` updates... | Fix skipif marker in the documentation.
Closes #195. | DOC: skipif requires `reason` to be keyword argument
#### Location of the documentation
https://pytask-dev.readthedocs.io/en/latest/tutorials/how_to_skip_tasks.html#how-to-skip-tasks
#### Documentation problem
Provide a description of what documentation you believe needs to be fixed/improved.
`@pytask.mark.... | pytask-dev/pytask | diff --git a/tests/test_capture.py b/tests/test_capture.py
index 8914a45..b771f0a 100644
--- a/tests/test_capture.py
+++ b/tests/test_capture.py
@@ -270,7 +270,8 @@ def test_capturing_outerr(tmp_path, runner):
"2 Collected tasks",
"1 Succeeded",
"1 Failed",
- "─────────── Failed in ... | [
"tests/test_logging.py::test_humanize_time[0.999-seconds-False-expectation6-expected6]",
"tests/test_logging.py::test_humanize_time[1.254-seconds-False-expectation7-expected7]"
] | [
"tests/test_capture.py::test_capture_callback[None-None-expectation0]",
"tests/test_capture.py::test_capture_callback[None-None-expectation1]",
"tests/test_capture.py::test_capture_callback[none-None-expectation2]",
"tests/test_capture.py::test_capture_callback[fd-fd-expectation3]",
"tests/test_capture.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pytask-dev.readthedocs.io/en/latest/tutorials/... |
ecd60d01c3fee6811db40b3a5f9a8eb5977d75ba | 2025-03-02 16:12:33 | docker.io/swerebenchv2/huggingface-transformers:36497-ecd60d0 | huggingface__transformers-36497 | Method: DataCollatorForLanguageModeling.__call__(self, features)
Location: src/transformers/data/data_collator.py → class DataCollatorForLanguageModeling → torch_call / tf_call / numpy_call (selected based on `return_tensors`)
Inputs:
- `features` – list of mappings, each containing at least the key `"input_ids"`... | python | Apache-2.0 | diff --git a/src/transformers/data/data_collator.py b/src/transformers/data/data_collator.py
index 61f4e88f22..dce6991365 100644
--- a/src/transformers/data/data_collator.py
+++ b/src/transformers/data/data_collator.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitatio... | Add support for seed in `DataCollatorForLanguageModeling`
# What does this PR do?
This PR adds support for setting a seed in the class `DataCollatorForLanguageModeling`. This helps with reproducibility in generating masks for masked language modeling (MLM). This issue was approved by @Rocketknight1 (https://github.com... | Allow setting a seed for DataCollatorForLanguageModeling
### Feature request
The `DataCollatorForLanguageModeling` class allows training for an MLM (masked language model) task, which randomly masks or replaces certain tokens. Models such as BERT and RoBERTa are trained in such a manner. It would be great if the user ... | huggingface/transformers | diff --git a/tests/trainer/test_data_collator.py b/tests/trainer/test_data_collator.py
index d631299c01..ca88b3c79c 100644
--- a/tests/trainer/test_data_collator.py
+++ b/tests/trainer/test_data_collator.py
@@ -350,6 +350,86 @@ class DataCollatorIntegrationTest(unittest.TestCase):
pad_features = [list(range(5)... | [
"tests/trainer/test_data_collator.py::NumpyDataCollatorIntegrationTest::test_data_collator_for_language_modeling_with_seed"
] | [
"tests/trainer/test_data_collator.py::NumpyDataCollatorIntegrationTest::test_data_collator_for_language_modeling",
"tests/trainer/test_data_collator.py::NumpyDataCollatorIntegrationTest::test_data_collator_for_seq2seq",
"tests/trainer/test_data_collator.py::NumpyDataCollatorIntegrationTest::test_data_collator_f... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://pytorch.org/docs/stable/generated/torch.Genera... |
2eaf2c56fed2b8af3f45ebed3a1d01fccd348cc1 | 2024-03-27 19:21:23 | docker.io/swerebenchv2/sdv-dev-rdt:776-2eaf2c5 | sdv-dev__rdt-776 | Method: AnonymizedFaker.__init__(self, provider_name: str | None = None, function_name: str | None = None, locales: list[str] | None = None, **kwargs)
Location: rdt.transformers.pii.anonymizer.AnonymizedFaker
Inputs:
- provider_name – optional name of a Faker provider to use; if ``None`` the default Faker provider is ... | python | custom-check-github | diff --git a/rdt/transformers/pii/anonymizer.py b/rdt/transformers/pii/anonymizer.py
index 0e2eced..177bd71 100644
--- a/rdt/transformers/pii/anonymizer.py
+++ b/rdt/transformers/pii/anonymizer.py
@@ -138,7 +138,7 @@ class AnonymizedFaker(BaseTransformer):
self._faker_random_seed = None
self.locales =... | Providing locales to AnonymizedFaker with a function that uses the BaseProvider crashes
CU-86azv4pqf
Resolve #774 | Providing locales to AnonymizedFaker with a function that uses the BaseProvider crashes
### Environment Details
Please indicate the following details about the environment in which you found the bug:
* RDT version: 1.9.2, 1.10.0, 1.10.1 and probably many version before these
* Python version: Any
* Operating Sy... | sdv-dev/RDT | diff --git a/tests/integration/transformers/pii/test_anonymizer.py b/tests/integration/transformers/pii/test_anonymizer.py
index c9b5107..66244f6 100644
--- a/tests/integration/transformers/pii/test_anonymizer.py
+++ b/tests/integration/transformers/pii/test_anonymizer.py
@@ -27,6 +27,24 @@ class TestAnonymizedFaker:
... | [
"tests/integration/transformers/pii/test_anonymizer.py::TestAnonymizedFaker::test_default_settings_with_locales"
] | [
"tests/integration/transformers/pii/test_anonymizer.py::TestAnonymizedFaker::test_default_settings",
"tests/integration/transformers/pii/test_anonymizer.py::TestAnonymizedFaker::test_get_supported_sdtypes",
"tests/integration/transformers/pii/test_anonymizer.py::TestAnonymizedFaker::test_custom_provider",
"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": [... |
137d17d9934705d01c50cf767f7f76415b970d44 | 2024-11-09 10:41:48 | docker.io/swerebenchv2/stingraysoftware-stingray:858-137d17d | stingraysoftware__stingray-858 | No new interfaces are introduced. | python | MIT | diff --git a/docs/changes/858.bugfix.rst b/docs/changes/858.bugfix.rst
new file mode 100644
index 00000000..9aa6ffde
--- /dev/null
+++ b/docs/changes/858.bugfix.rst
@@ -0,0 +1,1 @@
+Fix issue when passing a single GTI to FitsTimeseriesReader.apply_gti_lists()
diff --git a/stingray/io.py b/stingray/io.py
index 6d92f17c.... | Fix split at gtis
Resolve #857 | apply_gti_lists returns same result multiple times if input is a single GTI
### Description of the Bug
As follows
### Steps/Code to Replicate the Bug
The following unit test fails:
```
reader = FITSTimeseriesReader(fname, output_class=EventList)
evs = list(reader.apply_gti_lists([
[[800000... | StingraySoftware/stingray | diff --git a/stingray/tests/test_io.py b/stingray/tests/test_io.py
index 8c22ab14..f81928d0 100644
--- a/stingray/tests/test_io.py
+++ b/stingray/tests/test_io.py
@@ -236,6 +236,40 @@ class TestFITSTimeseriesReader(object):
all_ev = reader[:]
assert np.all((all_ev.time > 80000000) & (all_ev.time < 800... | [
"stingray/tests/test_io.py::TestFITSTimeseriesReader::test_read_apply_gti_lists[same-None]",
"stingray/tests/test_io.py::TestFITSTimeseriesReader::test_read_apply_gti_lists[same-test]",
"stingray/tests/test_io.py::TestFITSTimeseriesReader::test_read_apply_gti_lists[one-None]",
"stingray/tests/test_io.py::Test... | [
"stingray/tests/test_io.py::TestIO::test_common_name",
"stingray/tests/test_io.py::TestIO::test_high_precision_keyword",
"stingray/tests/test_io.py::TestIO::test_xselect_mdb_is_found_headas",
"stingray/tests/test_io.py::TestIO::test_read_whole_mission_info",
"stingray/tests/test_io.py::TestIO::test_event_fi... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
efb11427a47db5f9ec0ff8f2e0d04484c2629780 | 2022-12-19 18:33:07 | docker.io/swerebenchv2/meltano-sdk:1283-efb1142 | meltano__sdk-1283 | Method: MetadataMapping.__init__(self, schema: dict, key_properties: list[str] | None = None, valid_replication_keys: list[str] | None = None)
Location: singer_sdk/_singerlib/catalog.py
Inputs:
- **schema** – JSON‑style dictionary describing the stream’s fields.
- **key_properties** – Optional list of field names that... | python | Apache-2.0 | diff --git a/singer_sdk/_singerlib/catalog.py b/singer_sdk/_singerlib/catalog.py
index 89dd789c..51954e0e 100644
--- a/singer_sdk/_singerlib/catalog.py
+++ b/singer_sdk/_singerlib/catalog.py
@@ -194,6 +194,8 @@ class MetadataMapping(t.Dict[Breadcrumb, AnyMetadata]):
for field_name in schema.get("properties... | feat: Automatic catalog selection of replication keys
Closes #1217
<!-- readthedocs-preview meltano-sdk start -->
----
:books: Documentation preview :books:: https://meltano-sdk--1283.org.readthedocs.build/en/1283/
<!-- readthedocs-preview meltano-sdk end --> | [Feature]: Automatic catalog inclusion of replication keys
### Feature scope
Taps (catalog, state, stream maps, etc.)
### Description
The standard metadata generated for streams with known schemas marks primary keys with `automatic` selection:
https://github.com/meltano/sdk/blob/eab95fca545c55b06f48e3264271197d12... | meltano/sdk | diff --git a/tests/_singerlib/test_catalog.py b/tests/_singerlib/test_catalog.py
index 7c1fc04d..c589d183 100644
--- a/tests/_singerlib/test_catalog.py
+++ b/tests/_singerlib/test_catalog.py
@@ -207,6 +207,7 @@ def test_catalog_parsing():
"properties": {
"first_name": {"type": "str... | [
"tests/_singerlib/test_catalog.py::test_standard_metadata[schema1-key_properties1-INCREMENTAL-valid_replication_keys1-users]"
] | [
"tests/_singerlib/test_catalog.py::test_selection_mask",
"tests/_singerlib/test_catalog.py::test_metadata_mapping",
"tests/_singerlib/test_catalog.py::test_empty_metadata_mapping",
"tests/_singerlib/test_catalog.py::test_catalog_parsing",
"tests/_singerlib/test_catalog.py::test_standard_metadata[schema0-key... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/meltano/sdk/blob/eab95fca545c55b06f48... |
c747baea8e0861e6e0808ae1ac2be566444198f5 | 2023-09-20 02:22:15 | docker.io/swerebenchv2/djrobstep-sqlakeyset:98-c747bae | djrobstep__sqlakeyset-98 | No new interfaces are introduced. | python | Unlicense | diff --git a/sqlakeyset/columns.py b/sqlakeyset/columns.py
index 4d1d1ac..e7ca7d7 100644
--- a/sqlakeyset/columns.py
+++ b/sqlakeyset/columns.py
@@ -367,7 +367,7 @@ def derive_order_key(ocol, desc, index):
else:
return None
- entity = desc["entity"]
+ entity = desc.get("entity")
expr ... | Fix errors handling nondeclarative tables (#95)
Fixes #95 | SQLAlchemy 2 wrong type for column desc
Using Postgres and getting this error when I call `select_page` against core (not ORM):
```
File "/Users/csantero/projects/example/.venv/lib/python3.10/site-packages/sqlakeyset/asyncio.py", line 84, in select_page
return await core_get_page(s, selectable, per_page, pla... | djrobstep/sqlakeyset | diff --git a/tests/conftest.py b/tests/conftest.py
index 2d5699d..8136337 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -6,7 +6,17 @@ from random import randrange
import arrow
import pytest
from packaging import version
-from sqlalchemy import Column, Enum, ForeignKey, Integer, String, func, inspect
+fro... | [
"tests/test_paging.py::test_core_non_declarative[sqlite]"
] | [
"tests/test_paging.py::test_orm_query1[sqlite]",
"tests/test_paging.py::test_orm_query2[sqlite]",
"tests/test_paging.py::test_orm_query3[sqlite]",
"tests/test_paging.py::test_orm_query4[sqlite]",
"tests/test_paging.py::test_orm_bad_page[sqlite]",
"tests/test_paging.py::test_orm_order_by_arrowtype[sqlite]"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
6e704050f1149b00f3b3e7576e25b1e28c76ccf3 | 2022-08-02 16:25:33 | docker.io/swerebenchv2/pallets-click:2333-6e70405 | pallets__click-2333 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 9cf54ad..66808a8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,7 @@ Unreleased
- Completion works if there is a dot (``.``) in the program name. :issue:`2166`
- Improve type annotations for pyright type checker. :issue:`2268`
- Improve responsiveness of ``... | Fix help output for Shiv and PEX
This change ensures that "Usage" help output is correctly displayed when Click scripts are run inside Shiv or PEX zipapps, where `__package__` is set to the empty string rather than `None`.
- fixes #2332
- Problem introduced by #1609
Checklist:
- [x] Add tests that demonstrate... | Invalid info_name with shiv and pex
## Summary
When Click is used inside zipapps produced by Shiv or PEX, it displays an invalid "Usage" string. Instead of "Usage: program" it says "Usage: python -m program".
I did some digging and found that this is due to *info_name* being guessed incorrectly in the code introd... | pallets/click | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 5dfeb02..02a6101 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -446,6 +446,7 @@ class MockMain:
("example", None, "example"),
(str(pathlib.Path("example/__main__.py")), "example", "python -m example"),
(str(pathlib.P... | [
"tests/test_utils.py::test_detect_program_name[example--example]"
] | [
"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": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://shiv.readthedocs.io/en/latest/#hello-world"
... |
b0ec41b3dfd0a246dec6cc566601f73a7aa0f305 | 2023-12-04 10:00:09 | docker.io/swerebenchv2/rhayes777-pyautofit:888-b0ec41b | rhayes777__pyautofit-888 | Method: Sensitivity.step_size(self)
Location: autofit/non_linear/grid/sensitivity/__init__.py – property of the Sensitivity class.
Inputs: None (relies on self.number_of_steps which may be an int or a Tuple[int, …]).
Outputs: Union[float, Tuple[float, …]>. Returns a single float when number_of_steps is an int; returns ... | python | MIT | diff --git a/autofit/non_linear/grid/sensitivity/__init__.py b/autofit/non_linear/grid/sensitivity/__init__.py
index fa19768c0..d59fedc54 100644
--- a/autofit/non_linear/grid/sensitivity/__init__.py
+++ b/autofit/non_linear/grid/sensitivity/__init__.py
@@ -15,6 +15,7 @@ from autofit.non_linear.grid.sensitivity.result i... | feature/sensitivity tuples
Resolve #883
| Bug where sensitivity mapping no longer supports tuple step_size
In a previous issue, we made it so that the `number_of_steps` in the `Sensitivity` class could be a tuple so that different dimensions had
different steps:
```
sensitivity = af.Sensitivity(
paths=paths,
simulation_instance=simulation_instan... | rhayes777/PyAutoFit | diff --git a/test_autofit/non_linear/grid/test_sensitivity/test_functionality.py b/test_autofit/non_linear/grid/test_sensitivity/test_functionality.py
index 5fb46770d..4d1330d1c 100644
--- a/test_autofit/non_linear/grid/test_sensitivity/test_functionality.py
+++ b/test_autofit/non_linear/grid/test_sensitivity/test_func... | [
"test_autofit/non_linear/grid/test_sensitivity/test_functionality.py::test_models_with_tuple_steps",
"test_autofit/non_linear/grid/test_sensitivity/test_functionality.py::test_jobs_with_tuple_steps"
] | [
"test_autofit/non_linear/grid/test_sensitivity/test_functionality.py::test_lists",
"test_autofit/non_linear/grid/test_sensitivity/test_functionality.py::test_tuple_step_size",
"test_autofit/non_linear/grid/test_sensitivity/test_functionality.py::test_labels",
"test_autofit/non_linear/grid/test_sensitivity/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
41a1225a0f8ad6027505c065411c067f4ee8a1c5 | 2024-01-12 14:19:43 | docker.io/swerebenchv2/tomwhite-cubed:346-41a1225 | tomwhite__cubed-346 | Method: fuse_predecessors(dag, name)
Location: cubed.core.optimization
Inputs:
- dag (networkx.MultiDiGraph): the computation DAG to be optimized.
- name (str): the name of the node whose immediate predecessor ops should be fused into it.
Outputs:
- dag (networkx.MultiDiGraph): a new DAG (or the original one) with... | python | Apache-2.0 | diff --git a/cubed/core/optimization.py b/cubed/core/optimization.py
index 7f5346ff..d8932005 100644
--- a/cubed/core/optimization.py
+++ b/cubed/core/optimization.py
@@ -1,4 +1,11 @@
-from cubed.primitive.blockwise import can_fuse_pipelines, fuse
+import networkx as nx
+
+from cubed.primitive.blockwise import (
+ c... | Fuse multiple inputs
Fixes #136
This provides the logic for fusing operations that have multiple inputs, but doesn't enable it (it can be used by specifying `optimize_function=multiple_inputs_optimize_dag` to `visualize` or `compute`). | Fuse connected blockwise subgraphs
It should be possible to fuse any connected subgraph of blockwise operations into a single blockwise operation.
For the single output case, it is possible to trace each block of the output to its (transitive) input blocks. The blockwise functions would be composed appropriately.
... | tomwhite/cubed | diff --git a/cubed/tests/test_optimization.py b/cubed/tests/test_optimization.py
index e406064a..d97588b1 100644
--- a/cubed/tests/test_optimization.py
+++ b/cubed/tests/test_optimization.py
@@ -1,9 +1,16 @@
+from functools import partial
+
+import networkx as nx
import numpy as np
import pytest
from numpy.testing i... | [
"cubed/tests/test_optimization.py::test_fusion",
"cubed/tests/test_optimization.py::test_fusion_transpose",
"cubed/tests/test_optimization.py::test_no_fusion",
"cubed/tests/test_optimization.py::test_no_fusion_multiple_edges",
"cubed/tests/test_optimization.py::test_custom_optimize_function",
"cubed/tests... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
42aeed481d1c14dab3eaef00c90db7a9a30caf9e | 2024-01-09 09:30:42 | docker.io/swerebenchv2/researchobject-ro-crate-py:171-42aeed4 | researchobject__ro-crate-py-171 | Method: file(crate_dir, path)
Location: rocrate/cli.py
Inputs:
- **crate_dir** (str or Path): filesystem path to the root of the ro‑crate; must be an existing directory. Provided via the `-c/--crate` option of the CLI.
- **path** (str or Path): filesystem path to a file that exists **inside** the crate directory (rela... | python | Apache-2.0 | diff --git a/rocrate/cli.py b/rocrate/cli.py
index 9e63e54..8ff4e88 100644
--- a/rocrate/cli.py
+++ b/rocrate/cli.py
@@ -69,6 +69,36 @@ def add():
pass
+@add.command()
+@click.argument('path', type=click.Path(exists=True, dir_okay=False))
+@OPTION_CRATE_PATH
+def file(crate_dir, path):
+ crate = ROCrate(cra... | CLI: add file and dataset
Closes #63.
| CLI subcommands to add files and directories
Add subcommands to allow this:
```bash
mkdir crate
cd crate
rocrate init # generates minimal metadata file and nothing else
cp /some/other/path/file1 .
cp -rf /some/path/dir1 .
rocrate add file file1
rocrate add dataset dir1
```
| ResearchObject/ro-crate-py | diff --git a/test/test_cli.py b/test/test_cli.py
index 12e97ba..b6b8b69 100644
--- a/test/test_cli.py
+++ b/test/test_cli.py
@@ -20,6 +20,7 @@ import json
import click
from click.testing import CliRunner
import pytest
+import shutil
from rocrate.cli import cli
from rocrate.model import File
@@ -132,6 +133,58 @@ ... | [
"test/test_cli.py::test_cli_help[command_path6]",
"test/test_cli.py::test_cli_help[command_path7]",
"test/test_cli.py::test_cli_add_file[False]",
"test/test_cli.py::test_cli_add_file[True]",
"test/test_cli.py::test_cli_add_dataset[False]",
"test/test_cli.py::test_cli_add_dataset[True]"
] | [
"test/test_cli.py::test_cli_help[command_path0]",
"test/test_cli.py::test_cli_help[command_path1]",
"test/test_cli.py::test_cli_help[command_path2]",
"test/test_cli.py::test_cli_help[command_path3]",
"test/test_cli.py::test_cli_help[command_path4]",
"test/test_cli.py::test_cli_help[command_path5]",
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
ee9bd1ed3a4baa83166e18c9006799c1d13ea671 | 2017-07-04 06:17:53 | docker.io/swerebenchv2/jupyter-jupyter-client:274-ee9bd1e | jupyter__jupyter_client-274 | Method: KernelSpec.metadata (property)
Location: jupyter_client/kernelspec.py, class KernelSpec attribute
Inputs: None
Outputs: dict – a dictionary containing additional kernel‑specific metadata (defaults to an empty dict if not provided)
Description: Exposes arbitrary metadata from a kernel’s `kernel.json` file; clien... | python | BSD-3-Clause | diff --git a/docs/api/kernelspec.rst b/docs/api/kernelspec.rst
index c2164ea..942a694 100644
--- a/docs/api/kernelspec.rst
+++ b/docs/api/kernelspec.rst
@@ -25,6 +25,11 @@ kernelspec - discovering kernels
The name of the language the kernel implements, to help with picking
appropriate kernels when loading... | Add a `metadata` field to kernelspecs.
Currently, the only way for a kernel to offer additional information about its
capabilities is to encode information into the kernel name or display name;
this information can be useful to clients, especially for things like
filtering a list of kernels.
This adds support for... | Support metadata in kernel specs
Currently, there's no easy way to track metadata about a kernel beyond what language it supports. Having a display name is helpful, but it'd be nice to allow for programmatic access for more information about the kernel.
For example, internally we use Jupyter in a context where diffe... | jupyter/jupyter_client | diff --git a/jupyter_client/tests/test_kernelspec.py b/jupyter_client/tests/test_kernelspec.py
index b02dd75..b2ec419 100644
--- a/jupyter_client/tests/test_kernelspec.py
+++ b/jupyter_client/tests/test_kernelspec.py
@@ -67,6 +67,7 @@ class KernelSpecTests(unittest.TestCase):
self.assertEqual(ks.argv, sample_k... | [
"jupyter_client/tests/test_kernelspec.py::KernelSpecTests::test_get_kernel_spec"
] | [
"jupyter_client/tests/test_kernelspec.py::KernelSpecTests::test_find_all_specs",
"jupyter_client/tests/test_kernelspec.py::KernelSpecTests::test_find_kernel_specs",
"jupyter_client/tests/test_kernelspec.py::KernelSpecTests::test_install_kernel_spec",
"jupyter_client/tests/test_kernelspec.py::KernelSpecTests::... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
fb12b09683cc01007bc4df3fc0cb5a9718d297d5 | 2024-05-19 09:34:38 | docker.io/swerebenchv2/cubed-dev-cubed:465-fb12b09 | cubed-dev__cubed-465 | Function: roll(x, shift, *, axis=None)
Location: cubed/array_api/manipulation_functions.py
Inputs:
- **x** – an array object implementing the array‑API.
- **shift** – an `int` (when `axis` is `None`) or a tuple of ints specifying the number of places to shift each axis.
- **axis** – optional; an `int` or a tuple of in... | python | Apache-2.0 | diff --git a/api_status.md b/api_status.md
index cf0ba4fd..80174a25 100644
--- a/api_status.md
+++ b/api_status.md
@@ -30,10 +30,10 @@ This table shows which parts of the the [Array API](https://data-apis.org/array-
| | `zeros` | :white_check_mark: | | ... | Implement roll
Fixes #115 | Implement `roll`
Can be implemented using `concat` and `reshape`.
See https://data-apis.org/array-api/latest/API_specification/generated/signatures.manipulation_functions.roll.html | cubed-dev/cubed | diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml
index 7aaf9fb1..813e667f 100644
--- a/.github/workflows/array-api-tests.yml
+++ b/.github/workflows/array-api-tests.yml
@@ -97,7 +97,6 @@ jobs:
array_api_tests/test_array_object.py::test_setitem
array_api_te... | [
"cubed/tests/test_array_api.py::test_roll[single-threaded-chunks0-3-None]",
"cubed/tests/test_array_api.py::test_roll[single-threaded-chunks1-3-0]",
"cubed/tests/test_array_api.py::test_roll[single-threaded-chunks2-shift2-axis2]",
"cubed/tests/test_array_api.py::test_roll[single-threaded-chunks3-shift3-None]"... | [
"cubed/tests/test_array_api.py::test_object_bool[single-threaded]",
"cubed/tests/test_array_api.py::test_arange[single-threaded]",
"cubed/tests/test_array_api.py::test_asarray[single-threaded]",
"cubed/tests/test_array_api.py::test_ones[single-threaded]",
"cubed/tests/test_array_api.py::test_ones_like[singl... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://data-apis.org/array-api/latest/API_specificati... |
72d0bac0e8f7c7a224c8d778318d3131c769c08a | 2023-07-23 16:23:03 | docker.io/swerebenchv2/py-cov-action-python-coverage-comment-action:213-72d0bac | py-cov-action__python-coverage-comment-action-213 | Method: communication.get_readme_and_log(readme_url: str, html_report_url: str, markdown_report: str, is_public: bool, subproject_id: str | None = None) → tuple[files.WriteFile, str]
Location: coverage_comment/communication.py
Inputs:
- **readme_url** – URL of the README file to embed in the log (str).
- **html_repo... | python | MIT | diff --git a/README.md b/README.md
index 9766c4d..9d7ce41 100644
--- a/README.md
+++ b/README.md
@@ -166,7 +166,7 @@ jobs:
### Basic usage without external contributors
If you don't expect external contributors, you don't need all the shenanigans
-with the artifacts and the 2nd workflow. This is likely to be the mo... | Add SUBPROJECT_ID setting
Fixes #16
Needs #184 :heavy_check_mark:
Renders #180 obsolete (sorry)
I've finally taken the time to redo my PR for allowing monorepo settings.
I'm introducing a single setting (`SUBPROJECT_ID`) that does multiple things:
- changes the marker in the comment to allow multiple comment... | Multi-module monorepo support?
Soo, I spent quite some time trying to make the action work with our private monorepo setup and looks like I failed :-(
The problem is that when in monorepo, you most probably are running the pytest/coverage inside some sub-module. And thus even with relative files, the paths are relat... | py-cov-action/python-coverage-comment-action | diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py
index 07e2f79..3f9e83b 100644
--- a/tests/end_to_end/conftest.py
+++ b/tests/end_to_end/conftest.py
@@ -191,7 +191,7 @@ def gh_other_username(gh_other):
@pytest.fixture
-def git_repo(cd, git, action_ref, code_path):
+def git_repo(cd, git, act... | [
"tests/unit/test_communication.py::test_get_readme_and_log__subproject",
"tests/unit/test_settings.py::test_config__from_environ__ok",
"tests/unit/test_settings.py::test_final_comment_filename",
"tests/unit/test_settings.py::test_final_coverage_data_branch",
"tests/unit/test_template.py::test_get_comment_ma... | [
"tests/unit/test_communication.py::test_get_readme_and_log__public",
"tests/unit/test_communication.py::test_get_readme_and_log__private",
"tests/unit/test_settings.py::test_path_below__ok[a]",
"tests/unit/test_settings.py::test_path_below__ok[a/b/..]",
"tests/unit/test_settings.py::test_path_below__error[/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a6d9856f610ab90e82f84e4c6d6ef7d40eb8c556 | 2024-04-14 23:42:58 | docker.io/swerebenchv2/openmdao-openmdao:3191-a6d9856 | openmdao__openmdao-3191 | Method: SubmodelComp.__init__(self, problem=None, **kwargs)
Location: openmdao/components/submodel_comp.py
Inputs: problem – optional om.Problem instance to be used as the sub‑problem; additional keyword arguments forwarded to the ExplicitComponent base class.
Outputs: a new SubmodelComp instance with the provided prob... | python | custom-check-github | diff --git a/openmdao/components/submodel_comp.py b/openmdao/components/submodel_comp.py
index ddb43b21c..bcb2e8589 100644
--- a/openmdao/components/submodel_comp.py
+++ b/openmdao/components/submodel_comp.py
@@ -157,6 +157,18 @@ class SubmodelComp(ExplicitComponent):
"""
return name.replace('.', ':')... | Gave user explicit access to the subproblem in SubModelComp
### Summary
Created a new `problem` property which gives the user read-only access to the sub-problem. Added tests within the test suite that makes sure that the problem cannot be reassigned, and that the problem is indeed the sub-problem within the Submode... | Give the user explicit access to the subproblem in SubmodelComp.
### Desired capability or behavior.
Currently the sub-problem of the SubModelComp is underscored, implying that it is "private."
Certain actions by the user require access to the sub-problem: debugging, adjusting driver/solver attributes, etc.
To ena... | OpenMDAO/OpenMDAO | diff --git a/openmdao/components/tests/test_submodel_comp.py b/openmdao/components/tests/test_submodel_comp.py
index a0216c47c..cf874e820 100644
--- a/openmdao/components/tests/test_submodel_comp.py
+++ b/openmdao/components/tests/test_submodel_comp.py
@@ -422,6 +422,18 @@ class TestSubmodelComp(unittest.TestCase):
... | [
"openmdao/components/tests/test_submodel_comp.py::TestSubmodelComp::test_problem_property"
] | [
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
066f69c0994d2a87b7b0a54d7de6e2d296d04575 | 2022-07-26 13:35:37 | docker.io/swerebenchv2/dask-dask-jobqueue:563-066f69c | dask__dask-jobqueue-563 | Method: HTCondorCluster.__init__(self, *, cores=None, memory=None, disk=None, processes=None, **kwargs, env_extra=None, job_extra=None, submit_command_extra=None, cancel_command_extra=None)
Location: dask_jobqueue/htcondor.py – class HTCondorCluster (inherits from JobQueueCluster)
Inputs:
- **env_extra** – optional li... | python | BSD-3-Clause | diff --git a/dask_jobqueue/htcondor.py b/dask_jobqueue/htcondor.py
index fb7b0be..18fc74e 100644
--- a/dask_jobqueue/htcondor.py
+++ b/dask_jobqueue/htcondor.py
@@ -16,7 +16,6 @@ class HTCondorJob(Job):
%(job_header)s
-Environment = "%(quoted_environment)s"
Arguments = "%(quoted_arguments)s"
Executable = %(execu... | Fix behaviour of `env_extra` for HTCondor
Before only environment variables were considered using HTCondor's `Environment =` feature, whereas the parameter description generally says "Other commands to add".
If the `Environment =` feature is needed for some reason, one can still use the generic `job_extra` parameter... | Incorrect description for env_extra for HTCondorCluster
Hi,
The description for env_extra in [HTCondorCluster](https://jobqueue.dask.org/en/latest/generated/dask_jobqueue.HTCondorCluster.html#dask_jobqueue.HTCondorCluster) is not correct: the job that HTCondorCluster creates calls dask-worker directly instead of thr... | dask/dask-jobqueue | diff --git a/dask_jobqueue/tests/test_htcondor.py b/dask_jobqueue/tests/test_htcondor.py
index 99a5573..1664da8 100644
--- a/dask_jobqueue/tests/test_htcondor.py
+++ b/dask_jobqueue/tests/test_htcondor.py
@@ -27,7 +27,12 @@ def test_job_script():
processes=2,
memory="100MB",
disk="100MB",
- ... | [
"dask_jobqueue/tests/test_htcondor.py::test_job_script"
] | [
"dask_jobqueue/tests/test_htcondor.py::test_header",
"dask_jobqueue/tests/test_htcondor.py::test_config_name_htcondor_takes_custom_config"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://jobqueue.dask.org/en/latest/generated/dask_job... |
531fa9880bd82895ac1535b0219fb928e2f9eaae | 2022-02-23 10:41:39 | docker.io/swerebenchv2/pyjanitor-devs-pyjanitor:1027-531fa98 | pyjanitor-devs__pyjanitor-1027 | Function: patterns(regex_pattern)
Location: janitor.functions.utils
Inputs: regex_pattern – a string or a compiled regular‑expression pattern (type str or re.Pattern) to be compiled.
Outputs: returns a compiled re.Pattern; emits a DeprecationWarning indicating the function is deprecated and suggesting the use of re.com... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 84ea52b..5dcbd00 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
- [BUG] `sort_column_value_order` no longer mutates original dataframe.
- [BUG] Extend `fill_empty`'s `column_names` type range. Issue #998. @Zeroto521
- [BUG] Removed/updated error-in... | Deprecate `patterns`
# PR Description
Please describe the changes proposed in the pull request:
- Deprecate `patterns` function
- Minor refactor to `select_columns`
**This PR resolves #1007 .**
<!-- As you go down the PR template, please feel free to delete sections that are irrelevant. -->
# PR Che... | Deprecate janitor.patterns
janitor.patterns is not really useful (beauty of hindsight :grin: ) , as it is simply a wrapper around `re.compile`, which a user can import and wrap
```py
from re import compile as patterns # or whatever name user prefers
import janitor
import pandas as pd
df.select_columns(patterns... | pyjanitor-devs/pyjanitor | diff --git a/tests/functions/test_pivot_longer.py b/tests/functions/test_pivot_longer.py
index 8250c1e..d4ba9c7 100644
--- a/tests/functions/test_pivot_longer.py
+++ b/tests/functions/test_pivot_longer.py
@@ -3,7 +3,7 @@ import pandas as pd
import pytest
from pandas.testing import assert_frame_equal
-from janitor i... | [
"tests/utils/test__select_column.py::test_patterns_warning"
] | [
"tests/functions/test_pivot_longer.py::test_names_to_in_index",
"tests/functions/test_pivot_longer.py::test_type_index",
"tests/functions/test_pivot_longer.py::test_type_column_names",
"tests/functions/test_pivot_longer.py::test_type_names_to",
"tests/functions/test_pivot_longer.py::test_subtype_names_to",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
5e44ba465c2168c6e1842df441828ec5759093e1 | 2023-12-17 21:07:29 | docker.io/swerebenchv2/aio-libs-aiohttp:7978-5e44ba4 | aio-libs__aiohttp-7978 | Method: WebSocketResponse.__init__(self, *, heartbeat: float, timeout: float)
Location: aiohttp/web_ws.py
Inputs:
- **heartbeat** (float): Minimum interval between ping frames; if the client does not send a ping within this period the connection is considered dead.
- **timeout** (float): Overall inactivity timeout for... | python | custom-check-github | diff --git a/CHANGES/7978.bugfix b/CHANGES/7978.bugfix
new file mode 100644
index 000000000..3c7dc096c
--- /dev/null
+++ b/CHANGES/7978.bugfix
@@ -0,0 +1,1 @@
+Fix websocket connection leak
diff --git a/aiohttp/web_ws.py b/aiohttp/web_ws.py
index a21443dff..3ffecc2c0 100644
--- a/aiohttp/web_ws.py
+++ b/aiohttp/web_ws.... | Fix websocket connection leak
fixes #6325
The existing implementation never closed the transport unless `heartbeat` was enabled (not default), the pong was not received, and `.close()` had not been called before the pong was not received since it cancelled the timer.
We now always close the transport after we ge... | Too many websocket client disconnect, memory not release
### Describe the bug
I have a aiohttp server, it supply a router for websoccket, when I use 10000 client to connect the server. and disconnect after 5 seconds, the server will not release the memory.
server handler
```python
async def websocket_handler(re... | aio-libs/aiohttp | diff --git a/tests/test_web_websocket.py b/tests/test_web_websocket.py
index 90e798813..9a0ea6e8c 100644
--- a/tests/test_web_websocket.py
+++ b/tests/test_web_websocket.py
@@ -1,5 +1,6 @@
# type: ignore
import asyncio
+import time
from typing import Any
from unittest import mock
@@ -139,6 +140,20 @@ async def te... | [
"tests/test_web_websocket.py::test_send_str_closed[pyloop]",
"tests/test_web_websocket.py::test_close_idempotent[pyloop]",
"tests/test_web_websocket.py::test_write_eof_idempotent[pyloop]",
"tests/test_web_websocket.py::test_receive_timeouterror[pyloop]",
"tests/test_web_websocket.py::test_close_exc[pyloop]"... | [
"tests/test_web_websocket.py::test_nonstarted_ping",
"tests/test_web_websocket.py::test_nonstarted_pong",
"tests/test_web_websocket.py::test_nonstarted_send_str",
"tests/test_web_websocket.py::test_nonstarted_send_bytes",
"tests/test_web_websocket.py::test_nonstarted_send_json",
"tests/test_web_websocket.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://user-images.githubusercontent.com/42373706/142... |
096adcc54aa54dbe9130ebe5d380d1eae4452004 | 2025-04-28 22:23:35 | docker.io/swerebenchv2/zauberzeug-nicegui:4678-096adcc | zauberzeug__nicegui-4678 | Method: User.__enter__(self)
Location: nicegui/testing/user.py -> class User
Inputs: None
Outputs: Client – returns the underlying ``Client`` instance used by the ``User`` object, enabling the ``with user:`` context manager to expose the client.
Description: Enters the context manager for ``User`` by delegating to the... | python | MIT | diff --git a/nicegui/elements/codemirror.py b/nicegui/elements/codemirror.py
index 03daeffd..368d871f 100644
--- a/nicegui/elements/codemirror.py
+++ b/nicegui/elements/codemirror.py
@@ -1,4 +1,4 @@
-from itertools import accumulate, zip_longest
+from itertools import accumulate, chain, repeat
from pathlib import Path... | fix `ui.codemirror` on JS UTF-16-based indexing (memoize JS length per char + bisect)
This PR is in response to #4676 being merged, implementing the approach at https://github.com/zauberzeug/nicegui/pull/4578#issuecomment-2816803235 to fix #4575
Recap of the technique:
> Maintain a list `self._cumulative_js_le... | `ui.codemirror` does not apply changes with special characters like 🔄
### First Check
- [x] I added a very descriptive title here.
- [x] This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
- [x] I used the GitHub search to find a similar [issue](https://github.com/zauberzeug/nicegui/iss... | zauberzeug/nicegui | diff --git a/nicegui/testing/user.py b/nicegui/testing/user.py
index e046e042..74575157 100644
--- a/nicegui/testing/user.py
+++ b/nicegui/testing/user.py
@@ -46,6 +46,12 @@ class User:
raise ValueError('This user has not opened a page yet. Did you forgot to call .open()?')
return self.client
+ ... | [
"tests/test_codemirror.py::test_change_set[-sections0-inserted0-A]",
"tests/test_codemirror.py::test_change_set[-sections1-inserted1-AB]",
"tests/test_codemirror.py::test_change_set[X-sections2-inserted2-AB]",
"tests/test_codemirror.py::test_change_set[X-sections3-inserted3-X]",
"tests/test_codemirror.py::t... | [
"tests/test_codemirror.py::test_codemirror",
"tests/test_codemirror.py::test_supported_values",
"tests/test_user_simulation.py::test_auto_index_page",
"tests/test_user_simulation.py::test_multiple_pages",
"tests/test_user_simulation.py::test_source_element",
"tests/test_user_simulation.py::test_button_cli... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/gbrault/ngcmbug",
"https://gi... |
bbe71972b4452cd45ed94f5546722a31860a5dda | 2024-08-11 12:15:02 | docker.io/swerebenchv2/aio-libs-aiohttp:8680-bbe7197 | aio-libs__aiohttp-8680 | Method: web.WebSocketResponse.close(self, code: int, message: str)
Location: aiohttp/web_ws.py
Inputs:
- code: integer (typically a member of aiohttp.WSCloseCode) specifying the WebSocket close status.
- message: optional UTF‑8 string providing a human‑readable reason for closure.
Outputs:
- Returns ``True`` i... | python | custom-check-github | diff --git a/CHANGES/8680.bugfix.rst b/CHANGES/8680.bugfix.rst
new file mode 100644
index 000000000..2149f12aa
--- /dev/null
+++ b/CHANGES/8680.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed a race closing the server-side WebSocket where the close code would not reach the client. -- by :user:`bdraco`.
diff --git a/aiohttp/web_ws.py... | Fix close race that prevented the close code from reaching the client
Fix close race that prevented the close code from reaching the client
fixes #3448
| WebSocketResponse.close code/message don't reach the client
## Long story short
Following this example from the docs
https://docs.aiohttp.org/en/stable/web_advanced.html?highlight=going_away#graceful-shutdown
The code and message passed to `ws.close` don't reach the client side and instead, a default code and me... | aio-libs/aiohttp | diff --git a/requirements/test.txt b/requirements/test.txt
index ccf235d27..e7ee93bc8 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -40,7 +40,7 @@ frozenlist==1.4.1
# via
# -r requirements/runtime-deps.in
# aiosignal
-gunicorn==22.0.0
+gunicorn==23.0.0
# via -r requirements/b... | [
"tests/test_web_websocket_functional.py::test_websocket_shutdown[pyloop]"
] | [
"tests/test_web_websocket_functional.py::test_websocket_can_prepare[pyloop]",
"tests/test_web_websocket_functional.py::test_websocket_json[pyloop]",
"tests/test_web_websocket_functional.py::test_websocket_json_invalid_message[pyloop]",
"tests/test_web_websocket_functional.py::test_websocket_send_json[pyloop]"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aiohttp.org/en/stable/web_advanced.html?h... |
ba5ba8c78e97f5dc7fb4e16c588d7be037e6e5e7 | 2017-06-28 15:21:42 | docker.io/swerebenchv2/audreyr-cookiecutter:964-ba5ba8c | audreyr__cookiecutter-964 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py
index e42be0f..3bdd1e0 100644
--- a/cookiecutter/generate.py
+++ b/cookiecutter/generate.py
@@ -2,19 +2,20 @@
"""Functions for generating a project from a project template."""
from __future__ import unicode_literals
-from collections import OrderedDic... | Preserve existing output directory on failure
If a generated output directory already exists, we don't delete it on project generation failure.
Supersedes #684.
Fixes #629. | _run_hook_from_repo_dir should not remove files if they already existed before
The current behavior makes `--overwrite-if-exists` remove all the files (undesirable) if some hook fails.
| audreyr/cookiecutter | diff --git a/tests/test_generate_files.py b/tests/test_generate_files.py
index f71192f..65b582f 100644
--- a/tests/test_generate_files.py
+++ b/tests/test_generate_files.py
@@ -239,6 +239,26 @@ def test_raise_undefined_variable_file_name(tmpdir, undefined_context):
assert not output_dir.join('testproject').exists(... | [
"tests/test_generate_files.py::test_raise_undefined_variable_file_name_existing_project",
"tests/test_generate_files.py::test_raise_undefined_variable_dir_name_existing_project",
"tests/test_generate_hooks.py::test_run_failing_hook_preserves_existing_output_directory"
] | [
"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[]",
"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{foo}]",
"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{{foo]",
"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[bar}}]",
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
83cb348eb609d1766a82bbb99e8c3e5c1a2b1e25 | 2022-08-16 14:31:04 | docker.io/swerebenchv2/corteva-rioxarray:559-83cb348 | corteva__rioxarray-559 | No new interfaces are introduced. | python | custom-check-github | diff --git a/docs/history.rst b/docs/history.rst
index 94fa691a..7563f87e 100644
--- a/docs/history.rst
+++ b/docs/history.rst
@@ -4,6 +4,7 @@ History
Latest
------
- BUG: Fix reading file handle with dask (issue #550)
+- BUG: Fix reading cint16 files with dask (issue #542)
0.11.1
------
diff --git a/rioxarray/_... | BUG: Fix reading cint16 files with dask
<!-- Feel free to remove check-list items aren't relevant to your change -->
- [x] Closes #542
- [x] Tests added
- [x] Fully documented, including `docs/history.rst` for all changes and `docs/rioxarray.rst` for new API
| rasterio DatasetReader complex_int16 incompatible with auto chunking of dask (rioxarray.open_rasterio)
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np
import rasterio
import rioxarray
filename = "complex_int16.tiff"
with rasterio.open(filename, mode='w', width=16, height=1... | corteva/rioxarray | diff --git a/test/integration/test_integration__io.py b/test/integration/test_integration__io.py
index 03ec7674..52846fb0 100644
--- a/test/integration/test_integration__io.py
+++ b/test/integration/test_integration__io.py
@@ -1314,3 +1314,9 @@ def test_read_file_handle_with_dask():
os.path.join(TEST_COMPARE_D... | [
"test/integration/test_integration__io.py::test_read_cint16_with_dask"
] | [
"test/integration/test_integration__io.py::test_build_subdataset_filter[netcdf:../../test/test_data/input/PLANET_SCOPE_3D.nc:blue-green-None-False]",
"test/integration/test_integration__io.py::test_build_subdataset_filter[netcdf:../../test/test_data/input/PLANET_SCOPE_3D.nc:blue-blue-None-True]",
"test/integrat... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
ef3dd1e90ca1be49ca4877496617704afff1d414 | 2024-12-13 14:01:23 | docker.io/swerebenchv2/galileo-galilei-kedro-mlflow:615-ef3dd1e | galileo-galilei__kedro-mlflow-615 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0c559d1..239594d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,7 +1,7 @@
exclude: ^kedro_mlflow/template/project/run.py$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.5.6
+ rev: v0.8.3
... | Make artifacts be logged in the same run as parameters when using mlflow>=0.18 and ThreadRunner
## Description
> Why was this PR created?
Close #613. There are details in the issue, but in short :
- Mlflow made the fluent API thread safe in this PR: https://github.com/mlflow/mlflow/pull/13456/files
- This causes... | Using MLFlow>=2.18.0 with ThreadRunner creates several runs
<!-- **_If you like the repo, please give it a :star:_** -->
## Description
Updating to MLFlow 2.18.0 makes kedro-mlflow's datasets create and log to different runs (new run per artifact). It also breaks kedro-mlflow's test suite.
## Context
Cannot use... | Galileo-Galilei/kedro-mlflow | diff --git a/tests/conftest.py b/tests/conftest.py
index 460c095..10a9d3f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -29,22 +29,24 @@ def mlflow_client(tracking_uri):
@pytest.fixture(autouse=True)
def cleanup_mlflow_after_runs():
- # A test function will be run at this point
- yield
+ yield ... | [
"tests/framework/hooks/test_hook_log_artifact.py::test_mlflow_hook_automatically_update_artifact_run_id",
"tests/framework/hooks/test_hook_log_artifact.py::test_mlflow_hook_log_artifacts_within_same_run_with_thread_runner"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Galileo-Galilei/kedro-mlflow/issues... |
71c821ae59494b455d95f6df2e0f85c086652c23 | 2022-08-30 23:42:05 | docker.io/swerebenchv2/apiflask-apiflask:352-71c821a | apiflask__apiflask-352 | Method: APIFlask.__init__(self, *, spec_plugins: Optional[List[apispec.BasePlugin]] = None, **kwargs)
Location: src/apiflask/app.py
Inputs:
- **spec_plugins** – optional list of plugin instances subclassing `apispec.BasePlugin`; defaults to `None` (treated as empty list).
- Additional Flask and APIFlask keyword... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index 49d11cc..79cff87 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -7,8 +7,10 @@ Released: -
- Add `Enum` field from marshmallow 3.18.
- Fix OpenAPI spec generating for path parameters when path schema is provided ([issue #350][issue_350]).
+- Add `spec_plugins` param to `APIFla... | Support to use custom apispec plugins with `spec_plugins` param
<!--
For features and bug fixes, before opening a PR, please open an issue describing
the bug or feature the PR will address. You can skip this step if it's a typo fix.
Replace this comment with a description of the change. Describe how it
addresses ... | Allow custom APISpec plugins
APIFlask currently doesn't allow including a custom APISpec plugin.
The suggestion is to add such feature to APIFlask. It would look like this (param name is negotiable):
```py
app = APIFlask(
...,
apispec_plugins=[SomeCustomPlugin()],
)
```
And the code change accordi... | apiflask/apiflask | diff --git a/tests/test_app.py b/tests/test_app.py
index afe4f15..aa84af7 100644
--- a/tests/test_app.py
+++ b/tests/test_app.py
@@ -1,4 +1,5 @@
import pytest
+from apispec import BasePlugin
from flask import Blueprint
from flask.views import MethodView
from openapi_spec_validator import validate_spec
@@ -296,3 +29... | [
"tests/test_app.py::test_apispec_plugins"
] | [
"tests/test_app.py::test_app_init",
"tests/test_app.py::test_json_errors",
"tests/test_app.py::test_json_errors_reuse_werkzeug_headers",
"tests/test_app.py::test_view_function_arguments_order",
"tests/test_app.py::test_error_callback",
"tests/test_app.py::test_apply_custom_error_callback_for_generic_error... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
b33c1f28f77f1f72d8d3e2f48bab6597b559a8b1 | 2022-11-21 07:39:19 | docker.io/swerebenchv2/huggingface-huggingface-hub:1214-b33c1f2 | huggingface__huggingface_hub-1214 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/src/huggingface_hub/repocard.py b/src/huggingface_hub/repocard.py
index f88c932a..74c3deba 100644
--- a/src/huggingface_hub/repocard.py
+++ b/src/huggingface_hub/repocard.py
@@ -807,6 +807,8 @@ def metadata_update(
)
result_found = True
... | Fix metadata_update for verified evaluations
Fixes #1210 and #1208
## TODO
- [x] Add regression tests | `metadata_update()` duplicates metrics when updating a single field from `None`
### Describe the bug
When updating evaluation metadata with the `metadata_update()` function, it seems that updating a field value from `None` to some other value results in the metrics being duplicated.
See [this Hub PR](https://huggi... | huggingface/huggingface_hub | diff --git a/tests/fixtures/cards/sample_simple_model_index.md b/tests/fixtures/cards/sample_simple_model_index.md
index 15d26c70..c0e6ff9b 100644
--- a/tests/fixtures/cards/sample_simple_model_index.md
+++ b/tests/fixtures/cards/sample_simple_model_index.md
@@ -8,7 +8,7 @@ tags:
datasets:
- beans
metrics:
-- acc
+-... | [
"tests/test_repocard.py::ModelCardTest::test_model_card_with_model_index"
] | [
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_eval_result",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_load",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_save",
"tests/test_repocard.py::RepocardMetadataTest::test_metadata_save_from_file_no_yaml",
"tests/test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://huggingface.co/autoevaluate/binary-classificat... |
379ed3a096b05476622a4006ecf1cdade60d52e5 | 2024-04-23 13:41:57 | docker.io/swerebenchv2/stingraysoftware-stingray:822-379ed3a | stingraysoftware__stingray-822 | Method: StingrayTimeseries.analyze_segments(self, func, segment_size, fraction_step=1, **kwargs)
Location: class StingrayTimeseries (stingray/base.py)
Inputs:
- func: callable that receives a StingrayTimeseries segment (filtered by GTI) and returns either a single scalar/array or an iterable of results.
- segment_size... | python | MIT | diff --git a/docs/changes/822.bugfix.rst b/docs/changes/822.bugfix.rst
new file mode 100644
index 00000000..06f526c5
--- /dev/null
+++ b/docs/changes/822.bugfix.rst
@@ -0,0 +1,1 @@
+Fix case when analyze_segments has an invalid segment
diff --git a/docs/notebooks b/docs/notebooks
index 0e34107a..2db8e50b 160000
--- a/d... | Fix operation on segment when result is NaN
This is a quick fix to #821
Resolve #821
| analyze_segments fails when some interval gives invalid data
### Description of the Bug
Inside `StingrayTimeseries.analyze_segments`, there is a `results = np.array(results)` operation that fails whenever the rows of results have different shapes. In particular, it fails when the segment has not enough data and the ro... | StingraySoftware/stingray | diff --git a/stingray/tests/test_base.py b/stingray/tests/test_base.py
index 145d194a..d43f7911 100644
--- a/stingray/tests/test_base.py
+++ b/stingray/tests/test_base.py
@@ -1497,17 +1497,18 @@ class TestAnalyzeChunks(object):
assert ts.estimate_segment_size(100, min_samples=40) == 8.0
- def test_analy... | [
"stingray/tests/test_base.py::TestAnalyzeChunks::test_analyze_segments_bad_intv[1]",
"stingray/tests/test_base.py::TestAnalyzeChunks::test_analyze_segments_bad_intv[2]",
"stingray/tests/test_base.py::TestAnalyzeChunks::test_analyze_segments_bad_intv[3]",
"stingray/tests/test_events.py::TestColors::test_colors... | [
"stingray/tests/test_base.py::TestStingrayObject::test_print",
"stingray/tests/test_base.py::TestStingrayObject::test_preliminary",
"stingray/tests/test_base.py::TestStingrayObject::test_instantiate_without_main_array_attr",
"stingray/tests/test_base.py::TestStingrayObject::test_equality",
"stingray/tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
96b75fa7cbf43f185642cf7d5e5b6b57ecf231bc | 2022-05-18 12:38:03 | docker.io/swerebenchv2/zalando-patroni:2304-96b75fa | zalando__patroni-2304 | Method: Rewind.should_remove_data_directory_on_diverged_timelines(self)
Location: patroni/postgresql/rewind.py → class Rewind
Inputs: **self** – the Rewind instance; no additional arguments.
Outputs: Returns the value of the PostgreSQL configuration key ``remove_data_directory_on_diverged_timelines`` (typically `... | python | MIT | diff --git a/patroni/ha.py b/patroni/ha.py
index 0bd2747a..9f84613f 100644
--- a/patroni/ha.py
+++ b/patroni/ha.py
@@ -307,7 +307,8 @@ class Ha(object):
if self._rewind.can_rewind:
# rewind is required, but postgres wasn't shut down cleanly.
- if self.state_handler.controldata().get('... | Better handling of failed pg_rewind attempt
Close #2302 | Removed data directory
**Describe the bug**
We had networking issues and Patroni switched the primary sql server multiple times (40+).
The timelines diverged and the following was in the log files:
2022-05-15 14:13:05,019 INFO: reinitializing due to diverged timelines
2022-05-15 14:13:08,613 INFO: Removing data d... | zalando/patroni | diff --git a/tests/test_ha.py b/tests/test_ha.py
index 56277f97..5ed4503d 100644
--- a/tests/test_ha.py
+++ b/tests/test_ha.py
@@ -314,6 +314,7 @@ class TestHa(PostgresInit):
self.assertEqual(self.ha.run_cycle(), 'fake')
@patch.object(Rewind, 'rewind_or_reinitialize_needed_and_possible', Mock(return... | [
"tests/test_ha.py::TestHa::test_recover_with_reinitialize"
] | [
"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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://patroni.readthedocs.io/en/latest/SETTINGS.html... |
47e74e16d0fb27aedc5ffab69aefaf5188115038 | 2023-11-13 19:35:20 | docker.io/swerebenchv2/pennylaneai-pennylane:4831-47e74e1 | pennylaneai__pennylane-4831 | Function: merge_amplitude_embedding(func)
Location: pennylane.transforms.optimization.merge_amplitude_embedding.merge_amplitude_embedding
Inputs:
- **func** – a quantum‑function (e.g., a QNode‑decorated function) that returns a QuantumTape when evaluated. The function may contain one or more `qml.AmplitudeEmbedding` o... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 331b59add..e1f25e613 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -124,6 +124,10 @@
[(#4811)](https://github.com/PennyLaneAI/pennylane/pull/4811)
[(#4817)](https://github.com/PennyLaneAI/pennylane... | fix merge_amplitude_embedding queuing bug
**Context:**
`merge_amplitude_embedding` was not following transform conventions, so it didn't work as expected with QNodes.
**Description of the Change:**
- stop the transform from depending on the new AmplitudeEmbedding on being queued, and actually add it to the transfo... | [BUG] Unexpected behavior with merge_amplitude_embedding and batched input
### Expected behavior
When using merge_amplitude_embedding to combine two separate embeddings, the output should be the same as two separate MottonenStatePreparations.
### Actual behavior
Instead, what I observe is that the output not only do... | PennyLaneAI/pennylane | diff --git a/tests/transforms/test_optimization/test_merge_amplitude_embedding.py b/tests/transforms/test_optimization/test_merge_amplitude_embedding.py
index b871eaab2..e3669cf4d 100644
--- a/tests/transforms/test_optimization/test_merge_amplitude_embedding.py
+++ b/tests/transforms/test_optimization/test_merge_amplit... | [
"tests/transforms/test_optimization/test_merge_amplitude_embedding.py::TestMergeAmplitudeEmbedding::test_multi_amplitude_embedding_qnode",
"tests/transforms/test_optimization/test_merge_amplitude_embedding.py::TestMergeAmplitudeEmbedding::test_broadcasting"
] | [
"tests/transforms/test_optimization/test_merge_amplitude_embedding.py::TestMergeAmplitudeEmbedding::test_multi_amplitude_embedding",
"tests/transforms/test_optimization/test_merge_amplitude_embedding.py::TestMergeAmplitudeEmbedding::test_repeated_qubit",
"tests/transforms/test_optimization/test_merge_amplitude_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
8482c3fb852198a5bcb2cb81ecc38525c366c1c2 | 2021-02-07 08:30:41 | docker.io/swerebenchv2/ucfopen-canvasapi:467-8482c3f | ucfopen__canvasapi-467 | Function: RateLimitExceeded(message=None)
Location: canvasapi.exceptions
Inputs: *message* – optional string describing the error; if not provided a default message is used. The caller (Requester) supplies a formatted message that includes the value of the ``X-Rate-Limit-Remaining`` header or “Unknown” when the header ... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5fc59c7..b865df3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+### General
+
+- Added `RateLimitExceeded` exception to distinguish between being rate limited and being otherwise forbidden from accesing a resource. It is a subclass of t... | Issue #466 Add RateLimitExceeded Exception
# Proposed Changes
* Add a new exception `RateLimitExceeded` to handle 403 responses with content `403 Forbidden (Rate Limit Exceeded)`
Fixes #466
| Handle Rate Limit
When a developer gets a little overzealous and implements multiprocessing, or has many applications/instances of an application using the same access token, It's possible to hit a rate limit. When that happens, Canvas returns a 403 status code. It appears that the only way to distinguish between being... | ucfopen/canvasapi | diff --git a/tests/fixtures/requests.json b/tests/fixtures/requests.json
index ca123fc..1e0c7a5 100644
--- a/tests/fixtures/requests.json
+++ b/tests/fixtures/requests.json
@@ -20,6 +20,31 @@
"data": {},
"status_code": 401
},
+ "403": {
+ "method": "ANY",
+ "endpoint": "403",
+ "data": {},
+ "status_code": ... | [
"tests/test_requester.py::TestRequester::test_request_400",
"tests/test_requester.py::TestRequester::test_request_401_InvalidAccessToken",
"tests/test_requester.py::TestRequester::test_request_401_Unauthorized",
"tests/test_requester.py::TestRequester::test_request_403",
"tests/test_requester.py::TestReques... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://canvas.instructure.com/doc/api/file.throttling... |
f72017c79ccaa84231c7374ed8173f16c1981799 | 2021-03-14 01:02:42 | docker.io/swerebenchv2/niconoe-pyinaturalist:120-f72017c | niconoe__pyinaturalist-120 | Function: get_user_by_id(user_id: int, user_agent: str = None)
Location: pyinaturalist/node_api.py
Inputs:
- **user_id** (int): the numeric ID of the user to retrieve (exactly one ID per call).
- **user_agent** (str, optional): custom User‑Agent header value.
Outputs:
- Returns a JSON‑serialisable dict repr... | python | MIT | diff --git a/HISTORY.md b/HISTORY.md
index b42b1e7..72a5a50 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -4,6 +4,7 @@
### New Endpoints
* Added new functions for **Identifications** endpoints: `get_identifications()` and `get_identifications_by_id()`
+* Added new functions for **Users** endpoints: `get_user_by_id()`... | Add Users endpoints
Closes #80 | Add GET /users endpoints
Add the two basic GET [Users endpoints](https://api.inaturalist.org/v1/docs/#/Users) from the Node (v1) API.
- [x] ` /users/{id}`
- [x] `/users/autocomplete`
- [x] Doctrings + type annotations
- [x] Usage examples
- [x] Sample response data
- [x] Unit tests | niconoe/pyinaturalist | diff --git a/test/sample_data/get_user_by_id.json b/test/sample_data/get_user_by_id.json
new file mode 100644
index 0000000..9aa1472
--- /dev/null
+++ b/test/sample_data/get_user_by_id.json
@@ -0,0 +1,32 @@
+{
+ "total_results": 1,
+ "page": 1,
+ "per_page": 1,
+ "results": [
+ {
+ "id": 1,
+ "login": ... | [
"test/test_node_api.py::test_get_controlled_terms",
"test/test_node_api.py::test_get_controlled_terms_for_taxon",
"test/test_node_api.py::test_get_identifications",
"test/test_node_api.py::test_get_identifications_by_id",
"test/test_node_api.py::test_get_observation",
"test/test_node_api.py::test_get_obse... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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://api.inaturalist.org/v1/docs/#/Users"
],
... |
950562de50fb3b5b15fcb77024d17895b8c620dc | 2021-06-21 16:30:55 | docker.io/swerebenchv2/alteryx-woodwork:1001-950562d | alteryx__woodwork-1001 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 47a731e..095cd66 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -9,6 +9,7 @@ Future Release
* Pass additional progress information in callback functions (:pr:`979`)
* Add the ability to ... | Raise type conversion error in datetime
Closes #991 by raising a type conversion error when a Datetime logical type cannot parse data to a datetime dtype. | Datetime logical type transform does not throw TypeConversionError
When transforming data for a specific logical type with `LogicalType.transform`, if the transformation to the correct dtype is not possible, a `TypeConversionError` should be thrown. This is not currently the case with the Datetime logical type.
The ... | alteryx/woodwork | diff --git a/woodwork/tests/logical_types/test_logical_types.py b/woodwork/tests/logical_types/test_logical_types.py
index d4f1deb..d4f8a99 100644
--- a/woodwork/tests/logical_types/test_logical_types.py
+++ b/woodwork/tests/logical_types/test_logical_types.py
@@ -3,6 +3,7 @@ import re
import pandas as pd
import pyte... | [
"woodwork/tests/logical_types/test_logical_types.py::test_datetime_conversion_error[sample_series_pandas]"
] | [
"woodwork/tests/logical_types/test_logical_types.py::test_logical_eq",
"woodwork/tests/logical_types/test_logical_types.py::test_logical_repr",
"woodwork/tests/logical_types/test_logical_types.py::test_instantiated_type_str",
"woodwork/tests/logical_types/test_logical_types.py::test_ordinal_order_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":... |
69d1cf205aba68f2e20f0d321d740db5ddce36a1 | 2020-06-09 03:08:44 | docker.io/swerebenchv2/python-semver-python-semver:261-69d1cf2 | python-semver__python-semver-261 | Method: VersionInfo.__getitem__(self, index)
Location: semver.py (class VersionInfo)
Inputs:
- **index** (`int` or `slice`): Position(s) of the version component(s) to retrieve.
- Positive integers return the corresponding part (major, minor, patch, prerelease, or build).
- Positive slice objects return a tuple... | python | BSD-3-Clause | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index c28880e..2671ef2 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,6 +7,34 @@ All notable changes to this code base will be documented in this file,
in every released version.
+Version 2.10.2 (WIP)
+====================
+
+:Released: 2020-xx-yy
+:Maintainer:
+
+F... | Fix #260 __getitem__ returning `None` on falsy parts
For reference [here](https://stackoverflow.com/questions/38339496/python-filternone-list-of-bools-behavior) is the behavior that caused the problem in the first.
I also found that the IndexError wasn't being raised every time it should because it was reliant on th... | __getitem__ returns `None` for version parts that are falsy
For example, VersionInfo(0, 1, 0, 'r.1')[2] returns None when it should return 0. | python-semver/python-semver | diff --git a/test_semver.py b/test_semver.py
index 8ecc81f..1fd87ee 100644
--- a/test_semver.py
+++ b/test_semver.py
@@ -774,6 +774,8 @@ def test_should_be_able_to_use_integers_as_prerelease_build():
("1.2.3", 0, 1),
("1.2.3", 1, 2),
("1.2.3", 2, 3),
+ # Special cases
+ ("1.0.2"... | [
"test_semver.py::test_version_info_should_be_accessed_with_index[1.0.2-1-0]",
"test_semver.py::test_version_info_should_be_accessed_with_slice_object[1.2.0-rc.0+build.0-slice_object15-expected15]",
"test_semver.py::test_version_info_should_throw_index_error_when_negative_index[1.2.3--1]",
"test_semver.py::tes... | [
"test_semver.py::test_should_private_increment_string[rc-rc]",
"test_semver.py::test_should_private_increment_string[rc.1-rc.2]",
"test_semver.py::test_should_private_increment_string[2x-3x]",
"test_semver.py::test_fordocstrings[compare]",
"test_semver.py::test_fordocstrings[createparser]",
"test_semver.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": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
f22eadbbdede9cc65f0202319f2cf89f7b1ba0fe | 2025-07-09 10:06:17 | docker.io/swerebenchv2/googlefonts-ufo2ft:930-f22eadb | googlefonts__ufo2ft-930 | Function: tokenizeLayoutFeatures(font, includeDir=None)
Location: ufo2ft.featureCompiler
Inputs:
- **font**: a UFO object whose `features.text` contains the feature source; may also have a `path` attribute used to resolve relative includes.
- **includeDir** (optional): directory to resolve `include` statements when `f... | python | MIT | diff --git a/Lib/ufo2ft/_compilers/baseCompiler.py b/Lib/ufo2ft/_compilers/baseCompiler.py
index c2adfec..fbc74a0 100644
--- a/Lib/ufo2ft/_compilers/baseCompiler.py
+++ b/Lib/ufo2ft/_compilers/baseCompiler.py
@@ -327,7 +327,7 @@ class BaseInterpolatableCompiler(BaseCompiler):
# If the feature files are compati... | featureCompiler: use IncludingLexer to check if _featuresCompatible
Fixes #928 #915
This seems to work with the test font provided in #915. I probably need to add more unit tests. | _featuresCompatible() check in featureCompiler.py is insufficient
_featuresCompatible() attempts to compare feature files after stripping comments and extraneous whitespace, returning true if only the master has content or if all files are the same.
However, none of the steps that process the feature files expands an... | googlefonts/ufo2ft | diff --git a/tests/featureCompiler_test.py b/tests/featureCompiler_test.py
index aaf3fb1..1d36043 100644
--- a/tests/featureCompiler_test.py
+++ b/tests/featureCompiler_test.py
@@ -7,7 +7,12 @@ import pytest
from fontTools import ttLib
from fontTools.feaLib.error import FeatureLibError, IncludedFeaNotFound
-from uf... | [
"tests/featureCompiler_test.py::ParseLayoutFeaturesTest::test_include[defcon]",
"tests/featureCompiler_test.py::ParseLayoutFeaturesTest::test_include_no_ufo_path[defcon]",
"tests/featureCompiler_test.py::ParseLayoutFeaturesTest::test_include_not_found[defcon]",
"tests/featureCompiler_test.py::ParseLayoutFeatu... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
6d41ad72e09b49f61e54d47880f8a65026e7c0e4 | 2023-01-24 23:37:57 | docker.io/swerebenchv2/getmoto-moto:5876-6d41ad7 | getmoto__moto-5876 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/cognitoidp/exceptions.py b/moto/cognitoidp/exceptions.py
index b234a5238..8271af59e 100644
--- a/moto/cognitoidp/exceptions.py
+++ b/moto/cognitoidp/exceptions.py
@@ -2,6 +2,13 @@ from moto.core.exceptions import JsonRESTError
from typing import Optional
+class AliasExistsException(JsonRESTError)... | CognitoIDP: Error when detecting a duplicate email
Fixes #5271
Supercedes #5760 | Cognito - No validation that there isn't already an existing user with the same username in admin_update_user_attributes
Hi,
Sorry for the spam, just raising another issue for a potential enhancement. There is currently no validation on the `admin_update_user_attributes` function to check that the email address we a... | getmoto/moto | diff --git a/tests/test_cognitoidp/test_cognitoidp_exceptions.py b/tests/test_cognitoidp/test_cognitoidp_exceptions.py
index ec19de0a0..0cd827bdc 100644
--- a/tests/test_cognitoidp/test_cognitoidp_exceptions.py
+++ b/tests/test_cognitoidp/test_cognitoidp_exceptions.py
@@ -1,6 +1,8 @@
from unittest import TestCase
i... | [
"tests/test_cognitoidp/test_cognitoidp_exceptions.py::TestCognitoUserPoolDuplidateEmails::test_use_existing_email__when_email_is_login"
] | [
"tests/test_cognitoidp/test_cognitoidp_exceptions.py::TestCognitoUserDeleter::test_authenticate_with_signed_out_user",
"tests/test_cognitoidp/test_cognitoidp_exceptions.py::TestCognitoUserPoolDuplidateEmails::test_use_existing_email__when_username_is_login"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
2628256c0a4bea74b9fec9169c7fbefe622fcac1 | 2022-03-09 09:05:42 | docker.io/swerebenchv2/aio-libs-aiohttp:6653-2628256 | aio-libs__aiohttp-6653 | Method: Fingerprint.check(self, transport: asyncio.Transport) → None
Location: aiohttp/client_reqrep.py (class Fingerprint)
Inputs: a TLS/SSL transport object (instance of asyncio.Transport) whose underlying SSL socket’s peer certificate will be inspected.
Outputs: Raises aiohttp.ServerFingerprintMismatch if the ... | python | custom-check-github | diff --git a/CHANGES/6652.bugfix b/CHANGES/6652.bugfix
new file mode 100644
index 000000000..4ce1f6787
--- /dev/null
+++ b/CHANGES/6652.bugfix
@@ -0,0 +1,1 @@
+Raise `aiohttp.ServerFingerprintMismatch` exception on client-side if request through http proxy with mismatching server fingerprint digest: `aiohttp.ClientSess... | Fix issue 6652: Raise `aiohttp.ServerFingerprintMismatch` exception o…
Fix issue 6652: Raise `aiohttp.ServerFingerprintMismatch` exception on client-side if request through http proxy with mismatching server fingerprint digest
<!-- Thank you for your contribution! -->
## What do these changes do?
Fix issue 6652:... | Server certificate fingerprint is not verified when request through http proxy
### Describe the bug
When making request as below to try to verify server certificate fingerprint 'digest' during http request:
```
tcp_connector = TCPConnector(ssl=aiohttp.Fingerprint(digest))
async with aiohttp.ClientSession(header... | aio-libs/aiohttp | diff --git a/requirements/test.txt b/requirements/test.txt
index bb1e680f2..19b8da5b3 100644
--- a/requirements/test.txt
+++ b/requirements/test.txt
@@ -131,5 +131,5 @@ uvloop==0.21.0b1 ; platform_system != "Windows" and implementation_name == "cpyt
# via -r requirements/base.in
wait-for-it==2.2.2
# via -r r... | [
"tests/test_proxy.py::TestProxy::test_https_connect_fingerprint_mismatch"
] | [
"tests/test_proxy.py::TestProxy::test_connect",
"tests/test_proxy.py::TestProxy::test_https_auth",
"tests/test_proxy.py::TestProxy::test_https_connect",
"tests/test_proxy.py::TestProxy::test_https_connect_certificate_error",
"tests/test_proxy.py::TestProxy::test_https_connect_http_proxy_error",
"tests/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
deb0f7457fa395854aac89ec5e3224f461392e62 | 2024-02-01 13:42:35 | docker.io/swerebenchv2/sdv-dev-rdt:758-deb0f74 | sdv-dev__rdt-758 | Method: HyperTransformer._update_multi_column_transformer(self)
Location: rdt.hyper_transformer.HyperTransformer
Inputs: *self* – the HyperTransformer instance whose ``field_transformers`` and ``field_sdtypes`` mappings are examined. No external parameters.
Outputs: Returns ``None``; updates internal state:
- Rem... | python | custom-check-github | diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py
index 8ac743e..e048b26 100644
--- a/rdt/hyper_transformer.py
+++ b/rdt/hyper_transformer.py
@@ -357,6 +357,32 @@ class HyperTransformer:
self.field_transformers[new_tuple] = self.field_transformers.pop(old_tuple)
+ def _update_multi_column... | Add a _update_multi_column_transformer method
CU-86az7g4wc
Resolve #757 | Add a _update_multi_column_transformer method
### Problem Description
Currently, when a user calls `update_transformers`, he can modify any column to transformer mapping, including multi-column transformer. In this case, these changes can cause some multi-column transformers not to work (for instance, when they no l... | sdv-dev/RDT | diff --git a/tests/integration/test_hyper_transformer.py b/tests/integration/test_hyper_transformer.py
index ad5337f..7fee69c 100644
--- a/tests/integration/test_hyper_transformer.py
+++ b/tests/integration/test_hyper_transformer.py
@@ -7,7 +7,8 @@ import pandas as pd
import pytest
from rdt import get_demo
-from rd... | [
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_invalid_multi_column[update_transformers-method_input0-expected_result0]",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_invalid_multi_column[update_transformers_by_sdtype-method_input1-expected_result1]",
"tests... | [
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_default_inputs",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_field_transformers",
"tests/integration/test_hyper_transformer.py::TestHyperTransformer::test_single_category",
"tests/integration/test_hyper_trans... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
4aa52c33d3ee51c632e0e1e10cafb7745fd1028c | 2017-11-20 07:18:05 | docker.io/swerebenchv2/pyca-pyopenssl:708-4aa52c3 | pyca__pyopenssl-708 | Function: add(buffer: bytes, entropy: int)
Location: OpenSSL.rand.add
Inputs:
- **buffer** – a byte string containing random data to mix into the PRNG state (must be of type `bytes`).
- **entropy** – an integer estimating the amount of entropy (in bytes) contained in *buffer* (must be of type `int`).
Outputs: Returns ... | python | Apache-2.0 | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 0eb7f81..0f7e890 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -24,6 +24,9 @@ Changes:
^^^^^^^^
+- Re-added a subset of the ``OpenSSL.rand`` module.
+ This subset allows conscientious users to reseed the OpenSSL CSPRNG after fork.
+ `#708 <https://github.com/p... | restore a subset of the rand module
fixes #706
We should bikeshed on the changelog language probably. | Security Implications of #675 (Delete rand.py)
In #675, the rand module was removed from the codebase, and users of the module were instructed to use os.urandom instead. However, using os.urandom is not an alternative for the whole rand module, just for some functions like rand.bytes.
There are other functions in th... | pyca/pyopenssl | diff --git a/tests/test_rand.py b/tests/test_rand.py
new file mode 100644
index 0000000..e04a24c
--- /dev/null
+++ b/tests/test_rand.py
@@ -0,0 +1,38 @@
+# Copyright (c) Frederick Dean
+# See LICENSE for details.
+
+"""
+Unit tests for `OpenSSL.rand`.
+"""
+
+import pytest
+
+from OpenSSL import rand
+
+
+class TestRan... | [
"tests/test_rand.py::TestRand::test_add_wrong_args[args0]",
"tests/test_rand.py::TestRand::test_add_wrong_args[args1]",
"tests/test_rand.py::TestRand::test_add",
"tests/test_rand.py::TestRand::test_status"
] | [] | {
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://wiki.openssl.org/index.php/Random_fork-safety"... |
549d4e2c5c565dadfdcf86d435aecf451c253cf9 | 2024-12-05 09:33:28 | docker.io/swerebenchv2/getmoto-moto:8365-549d4e2 | getmoto__moto-8365 | Method: RDSBackend.copy_db_snapshot(self, source_snapshot_identifier: str, target_snapshot_identifier: str, tags: Optional[List[Dict[str, str]]] = None, copy_tags: bool = False) -> DBSnapshot
Location: moto/rds/models.py, class RDSBackend
Inputs:
- source_snapshot_identifier (str): identifier of the existing DB snapsh... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index 1ed94cd6e..650962035 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -1956,7 +1956,7 @@
## directconnect
<details>
-<summary>6% implemented</summary>
+<summary>12% implemented</summary>
- [ ] accept_direct_conn... | fix(kms): get_public_key now works with alias (name and arn)
Fixes #8364
The error provided was coming from the function `_validate_cmk_id()` which obviously raises an error when used with an alias, and if I understood correctly especially since `describe_key()` is using ` any_id_to_key_id()`.
Tests are passing ... | KMS get_public_key fails with alias
Hi,
The following test, trying to use `get_public_key` with an alias is failing:
```python
import boto3
from moto import mock_aws
@mock_aws
def test():
kms = boto3.client("kms", region_name="eu-west-1")
key = kms.create_key(
KeyUsage="SIGN_VERIFY",
... | getmoto/moto | diff --git a/tests/test_kms/test_kms_boto3.py b/tests/test_kms/test_kms_boto3.py
index d1ccaf402..bafccb20f 100644
--- a/tests/test_kms/test_kms_boto3.py
+++ b/tests/test_kms/test_kms_boto3.py
@@ -1692,6 +1692,34 @@ def test_get_public_key():
assert "EncryptionAlgorithms" not in public_key_response
+@mock_aws
... | [
"tests/test_kms/test_kms_boto3.py::test_get_public_key_with_alias",
"tests/test_rds/test_rds.py::test_copy_db_snapshots_copytags_and_tags[no_parameters]",
"tests/test_rds/test_rds.py::test_copy_db_snapshots_copytags_and_tags[only_tags]",
"tests/test_rds/test_rds.py::test_copy_db_snapshots_copytags_and_tags[co... | [
"tests/test_kms/test_kms_boto3.py::test_create_key_without_description",
"tests/test_kms/test_kms_boto3.py::test_create_key_with_invalid_key_spec",
"tests/test_kms/test_kms_boto3.py::test_create_key",
"tests/test_kms/test_kms_boto3.py::test_create_multi_region_key",
"tests/test_kms/test_kms_boto3.py::test_c... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
eb700a164c69b17efa2698f14e1592ae5a615b9d | 2021-01-21 17:57:16 | docker.io/swerebenchv2/joerick-cibuildwheel:553-eb700a1 | joerick__cibuildwheel-553 | Function: main()
Location: cibuildwheel/__main__.py
Inputs: No direct parameters (relies on environment variables such as CIBW_ARCHS and command‑line arguments parsed from sys.argv). Notably, the test sets the environment variable CIBW_ARCHS to values like "auto64" or "auto32" before invoking.
Outputs: Executes the cib... | python | custom-check-github | diff --git a/README.md b/README.md
index 841b4f3a..6b46c70e 100644
--- a/README.md
+++ b/README.md
@@ -102,7 +102,7 @@
|---|--------|-------------|
| **Build selection** | [`CIBW_PLATFORM`](https://cibuildwheel.readthedocs.io/en/stable/options/#platform) | Override the auto-detected target platform |
| | [`CIBW_B... | feat: auto32/auto64
Add `auto32`/`auto64`.
Closes #551. | Idea: Arch 32/64 shortcut
When looking at the build matrix here:
https://github.com/deepcharles/ruptures/blob/404957563c0391f073200899b9b041caa9277cc6/.github/workflows/upload-to-pypi.yml#L40-L80
It seems we could have shortcut values for `ARCHS`, "32" and "64", that would select 32 bit and 64 bit native architec... | joerick/cibuildwheel | diff --git a/unit_test/main_tests/main_platform_test.py b/unit_test/main_tests/main_platform_test.py
index 98bcfcdd..1b37663e 100644
--- a/unit_test/main_tests/main_platform_test.py
+++ b/unit_test/main_tests/main_platform_test.py
@@ -131,6 +131,39 @@ def test_archs_platform_native(platform, intercepted_build_args, mon... | [
"unit_test/main_tests/main_platform_test.py::test_archs_platform_auto64[linux]",
"unit_test/main_tests/main_platform_test.py::test_archs_platform_auto64[macos]",
"unit_test/main_tests/main_platform_test.py::test_archs_platform_auto64[windows]",
"unit_test/main_tests/main_platform_test.py::test_archs_platform_... | [
"unit_test/main_tests/main_platform_test.py::test_unknown_platform_non_ci",
"unit_test/main_tests/main_platform_test.py::test_unknown_platform_on_ci",
"unit_test/main_tests/main_platform_test.py::test_unknown_platform",
"unit_test/main_tests/main_platform_test.py::test_platform_argument[linux]",
"unit_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/deepcharles/ruptures/blob/404957563... |
73e95cb6407329faf860cb775e1dd61838e6a2c4 | 2022-12-09 16:26:20 | docker.io/swerebenchv2/cs-si-eodag:576-73e95cb | cs-si__eodag-576 | Function: flatten_top_directories(nested_dir_root, common_subdirs_path=None)
Location:
Inputs:
- **nested_dir_root** (str or pathlib.Path): absolute path of the directory tree to be flattened.
- **common_subdirs_path** (str or pathlib.Path, optional): absolute path of the sub‑directory whose common prefix should be rem... | python | Apache-2.0 | diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py
index e5d9d2a9..8c28dcce 100644
--- a/eodag/plugins/download/aws.py
+++ b/eodag/plugins/download/aws.py
@@ -19,7 +19,6 @@
import logging
import os
import re
-import shutil
from pathlib import Path
import boto3
@@ -36,6 +35,7 @@ from eodag... | fix: fixed flatten top dirs mechanism
fixes #573
Before this fix, some files could be deleted after download, during the product directory structure modification | NITF files are not downloaded
**Describe the bug**
I don't know if its intended, but some STAC catalog have.... .ntf files 🙄, and eodag doesn't download them
For example, all [SICD Capella products](https://www.stacindex.org/catalogs/capella-space-open-data#/item/2fCZzY4MUXqhFCKQyCHq5xs9yKEtav6SUMVtn8XotXoG3UL99iGK... | CS-SI/eodag | diff --git a/tests/context.py b/tests/context.py
index dd8a54a7..dec2c197 100644
--- a/tests/context.py
+++ b/tests/context.py
@@ -73,6 +73,7 @@ from eodag.utils import (
parse_qsl,
urlsplit,
GENERIC_PRODUCT_TYPE,
+ flatten_top_directories,
)
from eodag.utils.exceptions import (
AddressNotFound... | [
"tests/units/test_utils.py::TestUtils::test_downloaded_callback",
"tests/units/test_utils.py::TestUtils::test_flatten_top_dirs",
"tests/units/test_utils.py::TestUtils::test_flatten_top_dirs_given_subdir",
"tests/units/test_utils.py::TestUtils::test_get_bucket_name_and_prefix",
"tests/units/test_utils.py::Te... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://capella-open-data.s3.us-west-2.amazonaws.com/s... |
7f8d0cf8f90129b464566bd352fb15cf7708048a | 2015-02-02 14:18:24 | docker.io/swerebenchv2/timothycrosley-isort:232-7f8d0cf | timothycrosley__isort-232 | Method: SortImports.__init__(self, file_contents: str, multi_line_output: WrapModes, line_length: int, include_trailing_comma: bool = False, **kwargs)
Location: isort/isort.py (class SortImports)
Inputs:
- **file_contents** – the source code string to be processed.
- **multi_line_output** – a member of the ``WrapModes... | python | MIT | diff --git a/README.md b/README.md
index e32d334e..b86ab19c 100644
--- a/README.md
+++ b/README.md
@@ -257,6 +257,10 @@ Note: to change the how constant indents appear - simply change the indent prope
* Tab
* A verbatim string with quotes around it. For example: " " is equivalent to 4
+For the import styles ... | Fix #221 -- Add include_trailing_comma setting. | Trailing commas
It would be nice to have a config setting to support trailing commas at the end of a group of imports - especially in the vertical modes where each import occupies its own line.
This would help reduce errors introduced while adding in new imports manually, and also allow the output code to conform to... | timothycrosley/isort | diff --git a/test_isort.py b/test_isort.py
index 37fd6dc3..180c506f 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -27,6 +27,7 @@ from pies.overrides import *
from isort.isort import SortImports
from isort.settings import WrapModes
+SHORT_IMPORT = "from third_party import lib1, lib2, lib3, lib4"
REALLY_LONG_IMP... | [
"test_isort.py::test_include_trailing_comma"
] | [
"test_isort.py::test_happy_path",
"test_isort.py::test_code_intermixed",
"test_isort.py::test_correct_space_between_imports",
"test_isort.py::test_sort_on_number",
"test_isort.py::test_line_length",
"test_isort.py::test_output_modes",
"test_isort.py::test_length_sort",
"test_isort.py::test_convert_han... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
b4804976ffc032c9eccc6ac360c857eb1edeb9d2 | 2024-08-08 12:52:49 | docker.io/swerebenchv2/pyomo-pyomo:3337-b480497 | pyomo__pyomo-3337 | No new interfaces are introduced. | python | custom-check-github | diff --git a/pyomo/opt/base/solvers.py b/pyomo/opt/base/solvers.py
index c06981656..4ffef7e7c 100644
--- a/pyomo/opt/base/solvers.py
+++ b/pyomo/opt/base/solvers.py
@@ -470,8 +470,8 @@ class OptSolver(object):
Set the current results format (if it's valid for the current
problem format).
"""
... | Bug fix: Issue 3336 - Inconsistent use of `result` and `results`
## Fixes #3336
## Summary/Motivation:
This PR fixes the bug pointed out by @sstroemer (and I am astounded that it was never hit before).
## Changes proposed in this PR:
- Correct the misuse of `_valid_results_formats` to `_valid_result_formats`... | Mismatch: `OptSolver` versus `set_results_format`
## Summary
The `set_results_format` function checks against `_valid_results_formats`, while the attribute in `OptSolver` is called `_valid_result_formats`. Not sure if singular/plural is better since I assume it could be both _results_ as well as (a) _result_, but th... | Pyomo/pyomo | diff --git a/pyomo/opt/tests/base/test_solver.py b/pyomo/opt/tests/base/test_solver.py
index 8ffc64780..919e9375f 100644
--- a/pyomo/opt/tests/base/test_solver.py
+++ b/pyomo/opt/tests/base/test_solver.py
@@ -109,7 +109,7 @@ class OptSolverDebug(unittest.TestCase):
def test_set_results_format(self):
opt =... | [
"pyomo/opt/tests/base/test_solver.py::OptSolverDebug::test_set_results_format"
] | [
"pyomo/opt/tests/base/test_solver.py::OptSolverDebug::test_avail",
"pyomo/opt/tests/base/test_solver.py::OptSolverDebug::test_problem_format",
"pyomo/opt/tests/base/test_solver.py::OptSolverDebug::test_results_format",
"pyomo/opt/tests/base/test_solver.py::OptSolverDebug::test_set_problem_format",
"pyomo/op... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/Pyomo/pyomo/blob/b4804976ffc032c9eccc... |
df742c2fe33a801a080f00a910e99434e4d75fb1 | 2021-11-03 04:55:35 | docker.io/swerebenchv2/pyomo-pyomo:2177-df742c2 | pyomo__pyomo-2177 | Function: calculate_variable_from_constraint(variable, constraint, linesearch=False, alpha_min=0.1, max_iter=30, residual_tol=1e-8, derivative_eps=1e-6)
Location: pyomo.util.calc_var_value
Inputs:
- **variable**: a :py:class:`pyomo.core.base.var._VarData` instance whose value will be updated.
- **constraint**: a :py:cl... | python | custom-check-github | diff --git a/pyomo/util/calc_var_value.py b/pyomo/util/calc_var_value.py
index 2012e16d0..b2d4c6ab6 100644
--- a/pyomo/util/calc_var_value.py
+++ b/pyomo/util/calc_var_value.py
@@ -28,6 +28,12 @@ def calculate_variable_from_constraint(variable, constraint,
residual, it falls back on Newton's method using exact (sy... | `calculate_variable_from_constraint()` should ignore bounds/domain when updating variable value
## Fixes #2176 .
## Summary/Motivation:
@andrewlee94 noted that `calculate_variable_from_constraint()` would raise exceptions if the intermediate values encountered by the solver fell outside the variable bounds (or wer... | calculate_variable_from_constraint can fail for simple constraints due to domain violation
## Summary
Using the `calculate_variable_from_constraint` method can result in unexpected failures due to trying to set the value of a `Var` outside of its domain, as shown in the example below. In this case, a simple constrai... | Pyomo/pyomo | diff --git a/pyomo/util/tests/test_calc_var_value.py b/pyomo/util/tests/test_calc_var_value.py
index 45c546658..7f68dcec5 100644
--- a/pyomo/util/tests/test_calc_var_value.py
+++ b/pyomo/util/tests/test_calc_var_value.py
@@ -14,7 +14,9 @@ from io import StringIO
import pyomo.common.unittest as unittest
from pyomo.c... | [
"pyomo/util/tests/test_calc_var_value.py::Test_calc_var::test_bound_violation"
] | [
"pyomo/util/tests/test_calc_var_value.py::Test_calc_var::test_constraint_as_tuple",
"pyomo/util/tests/test_calc_var_value.py::Test_calc_var::test_initialize_value",
"pyomo/util/tests/test_calc_var_value.py::Test_calc_var::test_linear"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
5f8f0e83c10018bdb161c6affc3f63eadc53bb08 | 2022-02-04 16:28:44 | docker.io/swerebenchv2/researchobject-ro-crate-py:109-5f8f0e8 | researchobject__ro-crate-py-109 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/rocrate/cli.py b/rocrate/cli.py
index 250a448..7d8dad7 100644
--- a/rocrate/cli.py
+++ b/rocrate/cli.py
@@ -120,7 +120,7 @@ def definition(state, suite, path, engine, engine_version):
@click.argument('dst', type=click.Path(writable=True))
@click.pass_obj
def write_zip(state, dst):
- crate = ROCrate(s... | Fix write-zip CLI command
Fixes #108. | write-zip CLI command reinitializes the crate
The `write-zip` CLI command reinitializes the crate, so any changes like adding a workflow or test suite are lost. | ResearchObject/ro-crate-py | diff --git a/test/test_cli.py b/test/test_cli.py
index 31b701d..bcfe14f 100644
--- a/test/test_cli.py
+++ b/test/test_cli.py
@@ -21,6 +21,7 @@ from click.testing import CliRunner
from rocrate.cli import cli
from rocrate.model.metadata import TESTING_EXTRA_TERMS
+from rocrate.rocrate import ROCrate
@pytest.mark... | [
"test/test_cli.py::test_cli_write_zip[False]",
"test/test_cli.py::test_cli_write_zip[True]"
] | [
"test/test_cli.py::test_cli_init[False-False]",
"test/test_cli.py::test_cli_init[False-True]",
"test/test_cli.py::test_cli_init[True-False]",
"test/test_cli.py::test_cli_init[True-True]",
"test/test_cli.py::test_cli_add_workflow[False]",
"test/test_cli.py::test_cli_add_workflow[True]",
"test/test_cli.py... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1cb54bd1830d74ca479d3535fcc901298ca86046 | 2024-09-23 11:52:09 | docker.io/swerebenchv2/pyfar-pyfar:707-1cb54bd | pyfar__pyfar-707 | Function: write(filename, compress=False, **objs)
Location: pyfar/io/io.py
Inputs:
- **filename** (str or pathlib.Path): Target file name; the function ensures a “.far” suffix.
- **compress** (bool, optional): If True, data are written using ZIP_DEFLATED compression; if False, ZIP_STORED (no compression). Default False... | python | MIT | diff --git a/pyfar/io/io.py b/pyfar/io/io.py
index e8fcb944..a52faf1c 100644
--- a/pyfar/io/io.py
+++ b/pyfar/io/io.py
@@ -316,7 +316,7 @@ def write(filename, compress=False, **objs):
"""
# Check for .far file extension
filename = pathlib.Path(filename).with_suffix('.far')
- compression = zipfile.ZIP_... | hot: fix compress flag in pyfar.io.write
### Which issue(s) are closed by this pull request?
Closes #706
### Changes proposed in this pull request:
- fix usage of compress parameter in ``pyfar.io.write``
- add test whether the compressed file is smaller then the uncompressed one.
| io.write(..., compress=True) increases file size
## General
* pyfar version: 0.6.9
* Python version: 3.11.9
* Operating System: Ubuntu 23.10
* Did you install pyfar via pip: yes
## Description
Hi guys,
I noticed that instead of compressing the data, `pf.io.write()` produces much bigger files when using `c... | pyfar/pyfar | diff --git a/tests/test_io.py b/tests/test_io.py
index f57a871f..7eff393e 100644
--- a/tests/test_io.py
+++ b/tests/test_io.py
@@ -451,6 +451,16 @@ def test_write_read_multiplePyfarObjects(
assert dict_of_builtins.items() <= actual.items()
+def test_write_read_compression(sine, tmpdir):
+ """Test whether co... | [
"tests/test_io.py::test_write_read_compression"
] | [
"tests/test_io.py::test_read_sofa_filename_and_path_object[filename]",
"tests/test_io.py::test_read_sofa_filename_and_path_object[path_object]",
"tests/test_io.py::test_read_sofa_GeneralFIR",
"tests/test_io.py::test_read_sofa_GeneralTF",
"tests/test_io.py::test_read_sofa_GeneralFIR_E",
"tests/test_io.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
53ac0a5de3abf03adf9c71ef70b43a975fc44705 | 2025-02-10 18:21:38 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3952-53ac0a5 | aws-cloudformation__cfn-lint-3952 | Method: QueueDLQ.validate(self, validator: Validator, _: Any, instance: Any, schema: dict[str, Any])
Location: src/cfnlint/rules/resources/sqs/QueueDLQ.py
Inputs:
- validator – a cfnlint.jsonschema.Validator instance representing the current validation context.
- _: any placeholder for the keyword argument (unused... | python | MIT-0 | diff --git a/src/cfnlint/data/schemas/extensions/aws_sqs_queue/__init__.py b/src/cfnlint/data/schemas/extensions/aws_sqs_queue/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/cfnlint/data/schemas/extensions/aws_sqs_queue/properties.json b/src/cfnlint/data/schemas/extensions/aws_sqs_queue/pr... | Add new rules for SQS queue
*Issue #, if available:*
fix #3950
*Description of changes:*
- Add new rules for SQS queue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| SQS Queue and attached DLQ should have same type
### CloudFormation Lint Version
0.79.7
### What operating system are you using?
MacOS
### Describe the bug
When creating an SQS queue of FIFO type, the attached DLQ to this should also be a FIFO one, the linter does not flag this as an error
### Expected behavior
... | aws-cloudformation/cfn-lint | diff --git a/src/cfnlint/rules/resources/sqs/__init__.py b/src/cfnlint/rules/resources/sqs/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/unit/rules/resources/sqs/__init__.py b/test/unit/rules/resources/sqs/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/unit... | [
"test/unit/rules/resources/sqs/test_queue_dlq.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/sqs/test_queue_dlq.py::test_validate[instance1-expected1]",
"test/unit/rules/resources/sqs/test_queue_dlq.py::test_validate[instance2-expected2]",
"test/unit/rules/resources/sqs/test_queue_dlq.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":... |
54aa95ea8d79c95ffc4447749da2f5d9cc21c3e3 | 2020-04-13 13:53:18 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2393-54aa95e | hypothesisworks__hypothesis-2393 | Function: target(observation, *, label=None)
Location: hypothesis (imported via `from hypothesis import target`)
Inputs:
- observation: any value (typically numeric) that the test wishes to record as a target metric.
- label (optional, str): a human‑readable identifier for the target; if omitted a default label is used... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..f8ee83dfc
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,11 @@
+RELEASE_TYPE: minor
+
+Failing tests which use :func:`~hypothesis.target` now report the highest
+score observed for each target ... | Report targets with falsifying example(s)
Here's an idea that closes #2180 (cc @aarchiba): consider a test which asserts that the largest integer is `100`. Obviously this will fail, but shrinking will make it look like an off-by-one error!
```python
@given(st.integers(min_value=0))
def test_threshold_problem(x):... | hypothesis should provide assert_almost_equal()
The `numpy` testing infrastructure provides [`assert_almost_equal`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.testing.assert_almost_equal.html), which is useful for floating-point tests; its `atol` and `rtol` arguments are (or can be) carefully enough def... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/nocover/test_targeting.py b/hypothesis-python/tests/nocover/test_targeting.py
index fee62adaf..df87b0afb 100644
--- a/hypothesis-python/tests/nocover/test_targeting.py
+++ b/hypothesis-python/tests/nocover/test_targeting.py
@@ -17,6 +17,31 @@ import pytest
from hypothesis import ... | [
"hypothesis-python/tests/nocover/test_targeting.py::test_reports_target_results[False]",
"hypothesis-python/tests/nocover/test_targeting.py::test_reports_target_results[True]"
] | [
"hypothesis-python/tests/nocover/test_targeting.py::test_targeting_increases_max_length"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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://docs.scipy.org/doc/numpy/reference/generated/n... |
f68cf817840b0cf2e21b08a98324af59348c92f4 | 2022-01-06 02:10:15 | docker.io/swerebenchv2/stac-utils-pystac:700-f68cf81 | stac-utils__pystac-700 | Method: MappingObject.from_dict(cls, d: Dict[str, Any]) -> MappingObject
Location: pystac/extensions/file.py (class MappingObject)
Inputs:
- **d** – a dictionary containing the fields of a MappingObject (e.g., `{"values": [...], "summary": "..."}`); must be JSON‑serialisable.
Outputs:
- A new `MappingObject` instance... | python | custom-check-github | diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index c55b771b..627397ea 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -10,7 +10,7 @@ formats:
- epub
python:
- version: "3.7"
+ version: "3.8"
install:
- requirements: requirements-docs.txt
- method: pip
diff --git a/CHANGELOG.md b/CHA... | Store file:values as list of dicts in Item properties
**Related Issue(s):**
- Closes #605
**Description:**
Converts `List[MappingObject]` to `List[Dict[str, Any]]` in the `FileExtension.values` setter. Also adds `from_dict` and `to_dict` methods to the `MappingObject` class.
**PR Checklist:**
- [x] Code... | pystac.extensions.file.MappingObject doesn't work
`pystac.extensions.file.MappingObject` is broken and/or the docs should not specify to use it. An example:
```python
from pystac.extensions.file import FileExtension, MappingObject
FILE_SIZE = 100
VALUES = {
1: "Temperate or sub-polar needleleaf forest",
... | stac-utils/pystac | diff --git a/requirements-test.txt b/requirements-test.txt
index bf1d73e5..f752e82e 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,15 +1,15 @@
-mypy==0.930
+mypy==0.931
flake8==4.0.1
black==21.12b0
codespell==2.1.0
-jsonschema==4.3.3
+jsonschema==4.4.0
coverage==6.2
doc8==0.10.1
-types-... | [
"tests/extensions/test_file.py::FileTest::test_item_asset_apply",
"tests/extensions/test_file.py::FileTest::test_item_asset_values"
] | [
"tests/extensions/test_file.py::TestCases::test_case_1",
"tests/extensions/test_file.py::TestCases::test_case_2",
"tests/extensions/test_file.py::TestCases::test_case_3",
"tests/extensions/test_file.py::TestCases::test_case_4",
"tests/extensions/test_file.py::TestCases::test_case_5",
"tests/extensions/tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.85,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
01150e882a76c3c398d14561e81325d950ea9e68 | 2024-07-17 05:06:40 | docker.io/swerebenchv2/cogent3-cogent3:1951-01150e8 | cogent3__cogent3-1951 | Method: MolType.make_seq(self, *, seq: str, name: OptStr = None, check_seq: bool = True, **kwargs)
Location: src/cogint3/core/new_moltype.py (class MolType)
Inputs:
- **seq** (str, required, keyword‑only): raw sequence characters.
- **name** (optional str): identifier for the created Sequence.
- **check_seq**... | python | BSD-3-Clause | diff --git a/src/cogent3/core/alignment.py b/src/cogent3/core/alignment.py
index 05f498508..083a1d5b3 100644
--- a/src/cogent3/core/alignment.py
+++ b/src/cogent3/core/alignment.py
@@ -2633,11 +2633,6 @@ class AlignmentI(object):
"""Returns new Alignment containing cols where f(col) is True."""
return... | DEV: new moltype method and some documentation
in this PR:
NEW:
- added new `MolType.degenerate_from_seq()`, fixes #1948
DOC:
- docstrings for view and slice record classes
- docstrings for make_seq
DEP:
- removed deprecation warnings and deprecated arguments marked for this release
@GavinHuttley I no... | ENH: implement `new_moltype.MolType.degenerate_from_seq`
this will be necessary for integration of new style modules with code performing alignment | cogent3/cogent3 | diff --git a/tests/test_core/test_maps.py b/tests/test_core/test_maps.py
index 5eca67498..d384f868e 100644
--- a/tests/test_core/test_maps.py
+++ b/tests/test_core/test_maps.py
@@ -26,7 +26,7 @@ class MapTest(unittest.TestCase):
self.fail(repr((r, expected)))
def test_get_by_annotation(self):
- ... | [
"tests/test_core/test_new_moltype.py::test_degenerate_from_seq"
] | [
"tests/test_core/test_maps.py::MapTest::test_get_by_annotation",
"tests/test_core/test_maps.py::MapTest::test_spans",
"tests/test_core/test_maps.py::test_get_by_seq_annotation_allow_gaps",
"tests/test_core/test_new_alignment.py::test_seqs_data_default_attributes",
"tests/test_core/test_new_alignment.py::tes... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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": ... |
97ced4bcedbde71ae14396564908b3f47acc8de9 | 2022-03-19 00:36:31 | docker.io/swerebenchv2/nerdvegas-rez:1252-97ced4b | nerdvegas__rez-1252 | Function: get_package_family_from_repository(name, path)
Location: src/rez/packages.py
Inputs:
- name (str): package family name, e.g. “maya”.
- path (str): filesystem path to a package repository.
Outputs:
- PackageFamily object representing the family, or **None** if the family does not exist in the given repository.... | python | Apache-2.0 | diff --git a/src/rez/cli/rm.py b/src/rez/cli/rm.py
index c4997d49..31512e2d 100644
--- a/src/rez/cli/rm.py
+++ b/src/rez/cli/rm.py
@@ -15,6 +15,13 @@ def setup_parser(parser, completions=False):
"-p", "--package",
help="remove the specified package (eg 'foo-1.2.3'). This will work "
"even if ... | added package fam removal func, and tests
fixes #1248 | add ability to delete package family
Currently we have the support to delete package versions. Once an entire family is empty, itshould be possible to delete the family.
**Motivation**
My studio is working on package archival and we have a number of packages that are no longer in use at all. In these cases it makes... | nerdvegas/rez | diff --git a/src/rez/data/tests/packages/py_packages/empty/README.md b/src/rez/data/tests/packages/py_packages/empty/README.md
new file mode 100644
index 00000000..11706b47
--- /dev/null
+++ b/src/rez/data/tests/packages/py_packages/empty/README.md
@@ -0,0 +1,1 @@
+A deliberately empty package family.
diff --git a/src/... | [
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_after",
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_before",
"src/rez/tests/test_packages.py::TestPackages::test_developer_dynamic_global_preprocess_func",
"src/rez/tests/test_packages.py::TestPackages::test_develo... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
3dc9b32fb22c4deae8931149db1222170b9224dc | 2023-01-26 12:27:52 | docker.io/swerebenchv2/ably-ably-python:421-3dc9b32 | ably__ably-python-421 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/ably/http/http.py b/ably/http/http.py
index d53b540..e2607ca 100644
--- a/ably/http/http.py
+++ b/ably/http/http.py
@@ -145,7 +145,7 @@ class Http:
def get_rest_hosts(self):
hosts = self.options.get_rest_hosts()
- host = self.__host or self.options.fallback_realtime_host
+ hos... | Propagate connection interruption to realtime channels
Resolves #417 | Propagate connection interruptions to realtime channels
If a `RealtimeChannel` is in an active state (ie `ATTACHING`, `ATTACHED`, `DETACHING`, or `SUSPENDED`) the channel state should change upon the following connection states:
- If the connection becomes `CLOSING` the channel should become `DETACHED`
- If the conne... | ably/ably-python | diff --git a/test/ably/realtimechannel_test.py b/test/ably/realtimechannel_test.py
index e171e87..cbe16d4 100644
--- a/test/ably/realtimechannel_test.py
+++ b/test/ably/realtimechannel_test.py
@@ -3,7 +3,7 @@ import pytest
from ably.realtime.realtime_channel import ChannelState
from ably.types.message import Message
... | [
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channel_detached_once_connection_closed",
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channel_failed_once_connection_failed",
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channel_suspended_once_connection_suspended"... | [
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channel_attach",
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channel_detach",
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channels_get",
"test/ably/realtimechannel_test.py::TestRealtimeChannel::test_channels_rele... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
c5d275eb825c1fe53844d26fe6275e198fc5a006 | 2021-11-29 16:57:48 | docker.io/swerebenchv2/pennylaneai-pennylane:1948-c5d275e | pennylaneai__pennylane-1948 | Function: classical_jacobian(qnode, argnum=None, expand_fn=None, trainable_only=True)
Location: pennylane/transforms/classical_jacobian.py
Inputs:
- **qnode**: a ``qml.QNode`` object whose classical preprocessing Jacobian is to be computed.
- **argnum** (optional): ``int`` or ``Sequence[int]`` specifying which argument... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 66dbe6f71..b1101e8a4 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -396,6 +396,15 @@
<h3>Bug fixes</h3>
+* Fixes a bug where the classical preprocessing Jacobian
+ computed by `qml.transforms.class... | Fix `classical_jacobian` with JAX and operation access order in `qnode_spectrum`
**Context:**
Here we fix 2 things:
1. In JAX, the `trainable_only` argument of `get_parameters` was fixed to `False` in order to make JAX output the classical Jacobian entries belonging to gates that depend on a QNode argument but are no... | [BUG] `qnode_spectrum` does not return the spectra for the correct operation
### Expected behavior
Consider the following QNode:
```python
import pennylane as qml
from pennylane import numpy as np
dev = qml.device("default.qubit", wires=2)
@qml.qnode(dev)
def circuit(x):
qml.RY(0.1, wires=0)
qml.... | PennyLaneAI/pennylane | diff --git a/tests/fourier/test_qnode_spectrum.py b/tests/fourier/test_qnode_spectrum.py
index 40ebd3fcc..edb0d1ddb 100644
--- a/tests/fourier/test_qnode_spectrum.py
+++ b/tests/fourier/test_qnode_spectrum.py
@@ -32,6 +32,7 @@ def circuit_0(a):
def circuit_1(a, b):
qml.RZ(-a / 3, wires=0)
qml.RX(a / 5, wires... | [
"tests/transforms/test_classical_jacobian.py::test_autograd_not_trainable_only[backprop]",
"tests/transforms/test_classical_jacobian.py::test_autograd_not_trainable_only[parameter-shift]"
] | [
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circuit_0-enc_args0-None-enc_args_exp0-argnum_exp0]",
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circuit_0-None-0-enc_args_exp1-argnum_exp1]",
"tests/fourier/test_qnode_spectrum.py::TestHelpers::test_process_ids[circu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e2caad256ad057dee69ff615bfa75b0584b05691 | 2025-02-27 03:47:54 | docker.io/swerebenchv2/azure-walinuxagent:3324-e2caad2 | azure__walinuxagent-3324 | Method: LogEvent.error(self, op, fmt, *args)
Location: azurelinuxagent/common/event.py
Inputs:
- **op** (str): operation name to associate with the log entry (e.g., "GoalStateCertificates").
- **fmt** (str): format string for the message.
- ***args**: optional arguments to be formatted into *fmt*.
Outputs: ... | python | Apache-2.0 | diff --git a/azurelinuxagent/common/event.py b/azurelinuxagent/common/event.py
index 6b9521ca..9b8a926e 100644
--- a/azurelinuxagent/common/event.py
+++ b/azurelinuxagent/common/event.py
@@ -93,6 +93,7 @@ class WALAEventOperation:
FetchGoalState = "FetchGoalState"
Firewall = "Firewall"
GoalState = "GoalS... | Support for FIPS 140-3
When fetching certificates from WireServer, the Agent uses DES_EDE3_CBC. The PFX it receives has a MAC computed using PKCS12KDF. Both are deprecated on FIPS 140-3.
This PR switches to AES128_CBC for communication with the WireServer (a subsequent PR will change it to AES256_CBC) and skips MAC... | [BUG][RHEL-9] Failed to decrypt certificate if FIPS is enabled
**Describe the bug: A clear and concise description of what the bug is.**
In RHEL-9, if use WALA as provision agent(no cloud-init) and FIPS is enabled in the image, the VM provision failed because `Failed to decrypt /var/lib/waagent/Certificates.p7m`.
```... | Azure/WALinuxAgent | diff --git a/tests/common/protocol/test_goal_state.py b/tests/common/protocol/test_goal_state.py
index a5f89587..9b70ce05 100644
--- a/tests/common/protocol/test_goal_state.py
+++ b/tests/common/protocol/test_goal_state.py
@@ -6,6 +6,7 @@ import datetime
import glob
import os
import re
+import subprocess
import shu... | [
"tests/common/protocol/test_goal_state.py::GoalStateTestCase::test_goal_state_should_contain_empty_certs_when_it_is_fails_to_decrypt_certs",
"tests/common/protocol/test_goal_state.py::GoalStateTestCase::test_goal_state_should_try_legacy_cypher_and_then_fail_when_no_cyphers_are_supported_by_openssl",
"tests/comm... | [
"tests/common/protocol/test_goal_state.py::GoalStateTestCase::test_fetch_goal_state_should_raise_on_incomplete_goal_state",
"tests/common/protocol/test_goal_state.py::GoalStateTestCase::test_fetching_the_goal_state_should_save_the_goal_state_to_the_history_directory",
"tests/common/protocol/test_goal_state.py::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/Azure/WALinuxAgent/files/8803950/waag... |
e454a805f3025a08feb0df6e09e7eaffdbca6c5a | 2016-12-04 14:13:15 | docker.io/swerebenchv2/axelrod-python-axelrod:783-e454a80 | axelrod-python__axelrod-783 | Method: Random.__init__(self, p)
Location: axelrod/strategies/rand.py
Inputs:
- **p** (float): probability of cooperating, expected in the range [0, 1].
When **p** is exactly 0 or 1 the strategy is deterministic.
Outputs:
- Returns an instance of **Random**.
The instance’s **classifier['stochastic']** attribu... | python | custom-check-github | diff --git a/axelrod/strategies/rand.py b/axelrod/strategies/rand.py
index 0a759303..077b5a04 100644
--- a/axelrod/strategies/rand.py
+++ b/axelrod/strategies/rand.py
@@ -36,6 +36,8 @@ class Random(Player):
"""
Player.__init__(self)
self.p = p
+ if p in [0, 1]:
+ self.classi... | Reclassify Random player if p is 0 or 1
- Add a test for stochastic classification of Random
Closes #781 | Random strategy does not change it's classification
We need to include something similar to the setup in memory one strategies that overwrite the stochastic classifier upon initialisation:
```
>>> p1 = axl.Random(0)
>>> p2 = axl.Random(1)
>>> p1.classifier['stochastic'], p2.classifier['stochastic']
(True, True)
... | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/unit/test_rand.py b/axelrod/tests/unit/test_rand.py
index 38983bd3..3b7829f4 100644
--- a/axelrod/tests/unit/test_rand.py
+++ b/axelrod/tests/unit/test_rand.py
@@ -28,3 +28,9 @@ class TestRandom(TestPlayer):
self.first_play_test(C, random_seed=1)
self.first_play_test(D, rand... | [
"axelrod/tests/unit/test_rand.py::TestRandom::test_deterministic_classification"
] | [
"axelrod/tests/unit/test_rand.py::TestPlayer::test_clone",
"axelrod/tests/unit/test_rand.py::TestPlayer::test_initialisation",
"axelrod/tests/unit/test_rand.py::TestPlayer::test_match_attributes",
"axelrod/tests/unit/test_rand.py::TestPlayer::test_repr",
"axelrod/tests/unit/test_rand.py::TestPlayer::test_re... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
de8164b20ecf7184c1b5cde054a5d65ed130812d | 2020-08-05 13:41:44 | docker.io/swerebenchv2/seung-lab-cloud-volume:375-de8164b | seung-lab__cloud-volume-375 | Method: CloudVolume.__init__(self, cloudpath, mip=0, parallel=1, progress=False, green=False, compress=False, compress_level=None, cache=False, bounded=False, fill_missing=False, non_aligned_writes=False, delete_black_uploads=False, background_color=0, green_threads=False, use_https=False, max_redirects=10, mesh_dir=No... | python | BSD-3-Clause | diff --git a/README.md b/README.md
index 97e5672..ad97280 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,13 @@ pip install -e .[all_viewers] # with e.g. the all_viewers optional dependency
You'll need credentials only for the services you'll use. If you plan to use the local filesystem, you won't need any. Fo... | feat: create secrets argument
Enables using CloudVolume like so:
```python
cv = CloudVolume(..., secrets={ ... })
```
Resolves #311 | Auth tokens should be passable to Graphene
The auth tokens that we are converging on for pychunkgraph and other endpoints are not limited to cloudvolume, and it's even conceivable that someone might need them to programmatically access data even without cloudvolume installed. I can also see cases where, for testing, we... | seung-lab/cloud-volume | diff --git a/test/test_chunks.py b/test/test_chunks.py
index 059edfa..260b31c 100644
--- a/test/test_chunks.py
+++ b/test/test_chunks.py
@@ -78,14 +78,14 @@ def test_fpzip():
for N in range(0,100):
flts = np.array(range(N), dtype=np.float32).reshape( (N,1,1,1) )
compressed = encode(flts, 'fpzip')
- asse... | [
"test/test_graphene.py::test_graphene_auth_token",
"test/test_graphene.py::test_gcv",
"test/test_graphene.py::test_decode_segid",
"test/test_graphene.py::test_graphene_mesh_get_precomputed"
] | [
"test/test_chunks.py::test_kempression",
"test/test_chunks.py::test_fpzip",
"test/test_chunks.py::test_raw",
"test/test_chunks.py::test_npz",
"test/test_chunks.py::test_jpeg[1-shape0]",
"test/test_chunks.py::test_jpeg[1-shape1]",
"test/test_chunks.py::test_jpeg[3-shape0]",
"test/test_chunks.py::test_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.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://www.dynamicannotationframework.com/"
],
... |
b09af642e6a345c021860148fd9946e1698ad545 | 2024-02-05 09:59:54 | docker.io/swerebenchv2/zalando-patroni:3018-b09af64 | zalando__patroni-3018 | Function: _read_postgres_gucs_validators_file(file: PathLikeObj)
Location: patroni/postgresql/validator.py
Inputs: *file* – a path‑like object (e.g. ``pathlib.Path`` or any object exposing ``open``) pointing to a UTF‑8 encoded YAML file that defines GUC validators.
Outputs: ``Dict[str, Any]`` – the YAML document ... | python | MIT | diff --git a/features/environment.py b/features/environment.py
index db10c93d..4ed28c57 100644
--- a/features/environment.py
+++ b/features/environment.py
@@ -256,10 +256,18 @@ class PatroniController(AbstractController):
'parameters': {
'wal_keep_segments': 100,
... | Use importlib_resources to read validators file
resolve #3017 | load available_parameters/0_postgres.yml failed silently when package using zipapp
### What happened?
In some cases I use `zipapp` to distribute patroni package. After upgrading to the new version, I found that pg10/11 cannot properly init standby servers.
After some research, I found validator rule files under `pos... | zalando/patroni | diff --git a/tests/test_ha.py b/tests/test_ha.py
index 43844c5d..abfb4691 100644
--- a/tests/test_ha.py
+++ b/tests/test_ha.py
@@ -256,8 +256,6 @@ class TestHa(PostgresInit):
self.p.data_directory_empty = true
self.ha.cluster = get_cluster_not_initialized_without_leader(
cluster_config=Cl... | [
"tests/test_postgresql.py::TestPostgresql::test__load_postgres_gucs_validators"
] | [
"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",
"tests/test_ha.py::TestHa::test_acquire_lock_as_primary",
"tests/test_ha.py::TestHa::test_after_pause",
"tests/test_ha.py::TestHa::test_bootstrap_as_standby_lea... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
743feb1fa83d68424ca3b2a0e16ed8684a2cff79 | 2020-07-27 08:08:25 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2515-743feb1 | hypothesisworks__hypothesis-2515 | Function: sampled_from(elements)
Location: hypothesis.strategies._internal.core.sampled_from
Inputs:
- **elements**: a collection supporting len() and iteration (e.g., list, tuple, range) **or** an Enum/Flag subclass. Must be non‑empty; raises InvalidArgument otherwise.
Outputs:
- Returns a SearchStrategy (typically ... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..365a465d6
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,6 @@
+RELEASE_TYPE: patch
+
+This release fixes :issue:`2507`, where lazy evaluation meant that the
+values drawn from a :func:`~hypothe... | Make `sampled_from()` non-lazy
Closes #2507. This is kinda fiddly, but not as bad as I expected... all we really lose is the "repr preserves sequence type" thing and there's no good way to do that without storing a shallow copy of whatever we're sampling just for the repr. | Mutable arguments and lazy definition of sampled_from interact poorly
I discovered an unpleasant surprise when debugging #2505
Consider the following two tests:
```python
from hypothesis import given, strategies as st
@given(st.data())
def test_mutability_1(data):
x = [1]
s = st.sampled_from(x)
... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_custom_reprs.py b/hypothesis-python/tests/cover/test_custom_reprs.py
index 1a05fd3e8..74b75fd7e 100644
--- a/hypothesis-python/tests/cover/test_custom_reprs.py
+++ b/hypothesis-python/tests/cover/test_custom_reprs.py
@@ -23,6 +23,11 @@ def test_includes_non_default_args_i... | [
"hypothesis-python/tests/cover/test_sampled_from.py::test_mutability_1",
"hypothesis-python/tests/nocover/test_sampled_from.py::test_enum_repr_uses_class_not_a_list",
"hypothesis-python/tests/nocover/test_sampled_from.py::test_flag_enum_repr_uses_class_not_a_list"
] | [
"hypothesis-python/tests/cover/test_custom_reprs.py::test_includes_non_default_args_in_repr",
"hypothesis-python/tests/cover/test_custom_reprs.py::test_sampled_repr_leaves_range_as_range",
"hypothesis-python/tests/cover/test_custom_reprs.py::test_supports_positional_and_keyword_args_in_builds",
"hypothesis-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": [
"https://github.com/HypothesisWorks/hypothesis/issues/2... |
d76b28402d3e96ab3f224864ca2a05d40c3fda38 | 2021-03-01 05:02:44 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2883-d76b284 | hypothesisworks__hypothesis-2883 | No new interfaces are introduced. | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..6c658832b
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: minor
+
+This release fixes :doc:`stateful testing methods <stateful>` with multiple
+:func:`~hypothesis.stateful.pr... | Check multiple preconditions
Fixes #2861. | Multiple stateful @preconditions cause all but one to be silently ignored
While investigating an initialize/invariant fix for #2860, I noticed that unlike most of the other decorators, `@precondition` has no check preventing multiple preconditions for the same method.
Unfortunately, this doesn't result in the intuit... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_stateful.py b/hypothesis-python/tests/cover/test_stateful.py
index c9605158b..2e2aad21b 100644
--- a/hypothesis-python/tests/cover/test_stateful.py
+++ b/hypothesis-python/tests/cover/test_stateful.py
@@ -1132,3 +1132,61 @@ def test_arguments_do_not_use_names_of_return_va... | [
"hypothesis-python/tests/cover/test_stateful.py::test_multiple_precondition_bug"
] | [
"hypothesis-python/tests/cover/test_stateful.py::TestPrecondition::runTest",
"hypothesis-python/tests/cover/test_stateful.py::test_picks_up_settings_at_first_use_of_testcase",
"hypothesis-python/tests/cover/test_stateful.py::test_bad_machines_fail[BalancedTrees]",
"hypothesis-python/tests/cover/test_stateful.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/HypothesisWorks/hypothesis/issues/2... |
fc4371546195f7d1e5213f42f3fbe3e36cf47fbc | 2023-02-16 09:42:10 | docker.io/swerebenchv2/xknx-xknx:1199-fc43715 | xknx__xknx-1199 | ConnectResponse(communication_channel: int = 0, status_code: ErrorCode = ErrorCode.E_NO_ERROR, data_endpoint: HPAI | None = None, crd: ConnectResponseData | None = None)
Location: xknx.knxip.ConnectResponse
Inputs:
- **communication_channel** – channel number assigned by the KNX/IP server (int).
- **status_code** – ... | python | MIT | diff --git a/xknx/io/request_response/connect.py b/xknx/io/request_response/connect.py
index 355d41d1..bbe1a4e8 100644
--- a/xknx/io/request_response/connect.py
+++ b/xknx/io/request_response/connect.py
@@ -8,9 +8,9 @@ from xknx.knxip import (
ConnectRequest,
ConnectRequestInformation,
ConnectResponse,
+... | Support different connection types in `ConnectRequest` and `ConnectResponse` frames
<!--
You are awesome! Thanks for contributing to our project!
Please, DO NOT DELETE ANY TEXT from this template!.
-->
## Description
<!--
Please include a summary of the change and which issue is fixed.
Please also include re... | Support for KNXnet/IP Device Management Connection
Currently `ConnectRequest` only supports tunnelling (basic or extended tunnel CRI), would it be possible to add support for opening device management connections? | XKNX/xknx | diff --git a/test/io_tests/request_response_tests/connect_test.py b/test/io_tests/request_response_tests/connect_test.py
index 6c77b373..7bda3eaa 100644
--- a/test/io_tests/request_response_tests/connect_test.py
+++ b/test/io_tests/request_response_tests/connect_test.py
@@ -8,9 +8,11 @@ from xknx.knxip import (
Co... | [
"test/io_tests/request_response_tests/connect_test.py::TestConnect::test_connect",
"test/io_tests/request_response_tests/connect_test.py::TestConnect::test_connect_route_back_true",
"test/io_tests/tunnel_test.py::TestUDPTunnel::test_tunnel_request_received[\\x06\\x10\\x04",
"test/io_tests/tunnel_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": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
17c0b8b7f156b3f04875c547f026ec4d87f4388e | 2023-01-06 04:53:36 | docker.io/swerebenchv2/agnostiqhq-covalent:1460-17c0b8b | agnostiqhq__covalent-1460 | Function: _get_result_from_dispatcher(dispatch_id: str, wait: bool = False, dispatcher_addr: str = None, status_only: bool = False) -> Dict
Location: covalent._results_manager.results_manager
Inputs:
- dispatch_id: unique identifier of the dispatched workflow (string).
- wait: if True the call will retry until the resu... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ae0ee802..f5485551 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED]
+### Fixed
+
+- The range of `networkx` versions in requirements.txt weren't compatible wi... | Improving `get_result` for remote servers
<!--
⚠️ 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, increm... | `get_result` not working in self hosted scenario
### Environment
- **Covalent version**: 0.209.1rc0
- **Python version**: 3.8.15
- **Operating system**: Ubuntu 20.04.5 LTS
### What is happening?
When hosting covalent server on a remote machine, the `get_result` function throws an `AttributeError` exceptio... | AgnostiqHQ/covalent | diff --git a/tests/covalent_tests/results_manager_tests/results_manager_test.py b/tests/covalent_tests/results_manager_tests/results_manager_test.py
index 11b3431e..e94c5469 100644
--- a/tests/covalent_tests/results_manager_tests/results_manager_test.py
+++ b/tests/covalent_tests/results_manager_tests/results_manager_t... | [
"tests/covalent_tests/results_manager_tests/results_manager_test.py::test_get_result_from_dispatcher[localhost:480080]",
"tests/covalent_tests/results_manager_tests/results_manager_test.py::test_get_result_from_dispatcher[localhost:480081]"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
f44de3ca86a8bc1cc1af19add4ac220fd0300365 | 2022-08-27 11:38:44 | docker.io/swerebenchv2/stac-utils-pystac:885-f44de3c | stac-utils__pystac-885 | Method: Item.__geo_interface__(self)
Location: pystac/item.py
Inputs:
- self (Item instance)
Outputs: Optional[Dict[str, Any]] – a deep‑copied representation of the Item’s ``geometry`` attribute (or ``None`` if geometry is not set). This satisfies the ``__geo_interface__`` protocol used by geospatial libraries.
Descri... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 86f1ea15..02c1236d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@
- Ability to only update resolved links when using `Catalog.normalize_hrefs` and `Catalog.normalize_and_save`, via a new `skip_unresolved` argument ([#900](https://github.com/stac-utils/pyst... | Add __geo_interface__ for items
**Related Issue(s):**
- Closes #786
**Description:**
Adds `__geo_interface__` for items, collections, and spatial extent. Includes a `pystac.utils.box` function that cribs from shapely, with a couple of tweaks. Collection and spatial extent geo interfaces are impelemented per @duck... | Implement `__geo_interface__`
[`__geo_interface__`](https://gist.github.com/sgillies/2217756) is a way for Python objects to return geojson (-like) representations of themselves. Should pystac objects implement this?
This might be helpful for cases like https://github.com/stac-utils/pystac-client/issues/146, where l... | stac-utils/pystac | diff --git a/tests/test_item.py b/tests/test_item.py
index ba6f7094..107f2bc4 100644
--- a/tests/test_item.py
+++ b/tests/test_item.py
@@ -276,6 +276,12 @@ class ItemTest(unittest.TestCase):
with self.assertRaises(pystac.STACTypeError):
_ = pystac.Item.from_dict(catalog_dict)
+ def test_geo_i... | [
"tests/test_item.py::ItemTest::test_geo_interface"
] | [
"tests/test_item.py::ItemTest::test_0_9_item_with_no_extensions_does_not_read_collection_data",
"tests/test_item.py::ItemTest::test_asset_absolute_href",
"tests/test_item.py::ItemTest::test_asset_absolute_href_no_item_self",
"tests/test_item.py::ItemTest::test_clearing_collection",
"tests/test_item.py::Item... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://gist.github.com/sgillies/2217756",
"https:... |
6f22139e42a1f12c9ddcec2a4b50adb724f75dcf | 2024-05-07 23:00:02 | docker.io/swerebenchv2/mozilla-mozdownload:678-6f22139 | mozilla__mozdownload-678 | Method: DailyScraper.__init__(self, branch=None, build_id=None, date=None, build_number=None, revision=None, *args, **kwargs)
Location: mozdownload/scraper.py (class DailyScraper)
Inputs:
- branch (optional str): if omitted, the method selects a default based on the targeted application using APPLICATIONS_TO_BRANCH or... | python | custom-check-github | diff --git a/mozdownload/cli.py b/mozdownload/cli.py
index 83c62c8..477d859 100644
--- a/mozdownload/cli.py
+++ b/mozdownload/cli.py
@@ -128,9 +128,8 @@ def parse_arguments(argv):
group = parser.add_argument_group('Daily builds', 'Extra options for daily builds.')
group.add_argument('--branch',
... | Auto-select available port for localhost (#179)
Fix #179 - Auto-select available port for localhost @whimboo
Not sure how to write test cases for this. From local debugging, it indeed auto-selects available port | Don't run local http server for tests on port 8080
I'm colliding with this issue once in a while, majorly when I also work on Jenkins stuff beside. It's also using port 8080 for the webserver part. So our tests cannot be run because the port is in use.
Can we please get a free port instead of specifying a hard-coded o... | mozilla/mozdownload | diff --git a/tests/conftest.py b/tests/conftest.py
index 3215002..fad373f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -43,7 +43,7 @@ def httpd():
routes.extend(default_routes.routes)
httpd = server.WebTestHttpd(
host="127.0.0.1",
- port=8080,
+ port=0,
doc_root=os... | [
"tests/daily_scraper/test_daily_scraper.py::test_scraper[args17-2013-10-01-03-02-04-comm-central-thunderbird-27.0a1.en-US.linux-i686.tar.bz2-thunderbird/nightly/2013/10/2013-10-01-03-02-04-comm-central/thunderbird-27.0a1.en-US.linux-i686.tar.bz2]",
"tests/daily_scraper/test_daily_scraper.py::test_scraper[args18-2... | [
"tests/daily_scraper/test_daily_scraper.py::test_scraper[args0-2013-10-01-03-02-04-mozilla-central-firefox-27.0a1.en-US.win32.installer.exe-firefox/nightly/2013/10/2013-10-01-03-02-04-mozilla-central/firefox-27.0a1.en-US.win32.installer.exe]",
"tests/daily_scraper/test_daily_scraper.py::test_scraper[args1-2013-10... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": ... |
145aa801cd3d3ca29eea77d019ab15b37214be83 | 2016-06-10 00:52:35 | docker.io/swerebenchv2/rpi-distro-python-gpiozero:372-145aa80 | rpi-distro__python-gpiozero-372 | Method: TrafficLights.__init__(self, red=None, amber=None, green=None, pwm=False, initial_value=False, yellow=None)
Location: gpiozero/boards.py (class TrafficLights)
Inputs:
- red (int or Pin): GPIO pin for the red LED (required)
- amber (int or Pin): GPIO pin for the amber LED (optional, mutually exclusive with yell... | python | custom-check-github | diff --git a/gpiozero/boards.py b/gpiozero/boards.py
index 788c05b..5d4c3f3 100644
--- a/gpiozero/boards.py
+++ b/gpiozero/boards.py
@@ -12,6 +12,7 @@ except ImportError:
from time import sleep
from itertools import repeat, cycle, chain
from threading import Lock
+from collections import OrderedDict
from .exc imp... | Add 'yellow' as an alias of 'amber' for TrafficLights
Fixes #345
Not sure if this was the best way of doing this, but as the unit-test shows, it seems to work ;-) | Alias "amber" to "yellow" for American users
When teaching with gpiozero at Picademy USA, I discovered that they commonly refer to the middle light as "yellow", rather than "amber".
I suggest we add an alias for this.
@mrichardson23 | RPi-Distro/python-gpiozero | diff --git a/tests/test_boards.py b/tests/test_boards.py
index 7562a5d..d1accde 100644
--- a/tests/test_boards.py
+++ b/tests/test_boards.py
@@ -548,13 +548,32 @@ def test_traffic_lights():
green_pin = MockPin(4)
with TrafficLights(red_pin, amber_pin, green_pin) as board:
board.red.on()
+ asse... | [
"tests/test_boards.py::test_traffic_lights",
"tests/test_boards.py::test_traffic_lights_bad_init"
] | [
"tests/test_boards.py::test_composite_output_on_off",
"tests/test_boards.py::test_composite_output_toggle",
"tests/test_boards.py::test_composite_output_value",
"tests/test_boards.py::test_led_board_on_off",
"tests/test_boards.py::test_led_board_active_low",
"tests/test_boards.py::test_led_board_value",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "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": ... |
19be092b6db4e4300e31906498e354ec0adf870c | 2022-03-19 18:28:51 | docker.io/swerebenchv2/pallets-click:2219-19be092 | pallets__click-2219 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 0a9661a..91b9ec1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -48,6 +48,8 @@ Version 8.1.0
- A ``Group`` with ``invoke_without_command=True`` and ``chain=False``
will invoke its result callback with the group function's return
value. :issue:`2124`
+- ``to_inf... | fix ParamType.to_info_dict() with no name
fixes #2168 | `ParamType` missing `name` errors on `to_info_dict`
When calling `to_info_dict` on a `ParamType` instance which doesn't have a `name` attribute, an exception is raised. While this is a bug in the downstream code, only `to_info_dict` is affected, so the bug often goes unnoticed.
```py3
class TestType(click.ParamType... | pallets/click | diff --git a/tests/test_info_dict.py b/tests/test_info_dict.py
index b58ad6e..79d39ee 100644
--- a/tests/test_info_dict.py
+++ b/tests/test_info_dict.py
@@ -266,3 +266,10 @@ def test_context():
"ignore_unknown_options": False,
"auto_envvar_prefix": None,
}
+
+
+def test_paramtype_no_name():
+ ... | [
"tests/test_info_dict.py::test_paramtype_no_name"
] | [
"tests/test_info_dict.py::test_parameter[Func",
"tests/test_info_dict.py::test_parameter[UNPROCESSED",
"tests/test_info_dict.py::test_parameter[STRING",
"tests/test_info_dict.py::test_parameter[Choice",
"tests/test_info_dict.py::test_parameter[DateTime",
"tests/test_info_dict.py::test_parameter[INT",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/pallets/click/compare/main...phy1729:... |
026e8d9872ab4511c38578a8c784cd2e740f0448 | 2024-01-26 20:26:08 | docker.io/swerebenchv2/aio-libs-aiohttp:8063-026e8d9 | aio-libs__aiohttp-8063 | Method: FileResponse._get_file_path_stat_encoding(self, accept_encoding: str) -> Tuple[pathlib.Path, os.stat_result, Optional[str]]
Location: aiohttp/web_fileresponse.py
Inputs:
- **accept_encoding** (str): The value of the request's “Accept‑Encoding” header, lower‑cased. Determines which pre‑compressed extensions (".... | 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... | Add server capability to check for Brotli compressed static files
<!-- Thank you for your contribution! -->
## What do these changes do?
<!-- Please give a short brief about these changes. -->
Currently server only checks if static routes have a `.gz` extension and serves them with `gzip` encoding. These change... | 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 33b4ea074..c7a92e522 100644
--- a/tests/test_web_sendfile.py
+++ b/tests/test_web_sendfile.py
@@ -21,7 +21,7 @@ def test_using_gzip_if_header_present_and_file_available(loop: Any) -> None:
filepath = mock.create_autospec(Path, spec_set=Tr... | [
"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": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
f7eb3e1c843f7d2506fe7ffa378584d7602a3bb9 | 2021-05-14 18:34:11 | docker.io/swerebenchv2/core-gatech-group-serpent-tools:447-f7eb3e1 | core-gatech-group__serpent-tools-447 | Function: serpentTools.data.getFile(name)
Location: serpentTools/data/__init__.py
Inputs:
- **name** (str): Logical name of a bundled data file (e.g., ``"InnerAssembly_res.m"``). Must correspond to an entry in the package’s data manifest.
Outputs:
- **filepath** (str): Absolute path to the extracted data file on the ... | python | MIT | diff --git a/docs/variableGroups.rst b/docs/variableGroups.rst
index 8b2fd56..723a8a5 100644
--- a/docs/variableGroups.rst
+++ b/docs/variableGroups.rst
@@ -30,19 +30,227 @@ variable names converted to ``mixedCaseNames``. This conversion is done
to fit the style of the project and reduce a few keystrokes for accessing... | API Support Serpent 2.1.32; Default still 2.1.31
Can be toggled with
```python
serpentTools.settings.rc["serpentVersion"] = "2.1.32"
```
or in a context manager to unset after reading
```python
with serpentTools.settings.rc as temprc:
temprc["serpentVersion"] = "2.1.32"
r = serpentTools.read("InnerAssem... | ENH Support Serpent 2.1.32
**Is your feature request related to a problem? Please describe.**
Warning messages like
```
WARN SERPENT Serpent 2.1.32 found in godiva_res.m, but version 2.1.31 is defined in settings
Attemping to read anyway. Please report strange behaviors/failures to developers.
```
(also a typo)... | CORE-GATECH-GROUP/serpent-tools | diff --git a/tests/test_results.py b/tests/test_results.py
index 057debd..e562cc3 100644
--- a/tests/test_results.py
+++ b/tests/test_results.py
@@ -1,6 +1,9 @@
import re
import os
+from os.path import join as pjoin
+from tempfile import TemporaryDirectory
+import numpy
import pytest
import serpentTools
@@ -38,... | [
"tests/test_results.py::test_2132_nofilter",
"tests/test_results.py::test_2132_filterburnup"
] | [
"tests/test_results.py::test_multipleGcuNoBu"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/CORE-GATECH-GROUP/serpent-tools/blo... |
c3d89a3ec6a0d03c4696ad652ea2e8c734e7ebfc | 2024-04-23 14:29:38 | docker.io/swerebenchv2/callowayproject-bump-my-version:180-c3d89a3 | callowayproject__bump-my-version-180 | No new interfaces are introduced. | python | MIT | diff --git a/bumpversion/versioning/models.py b/bumpversion/versioning/models.py
index ac0069ee..9c7d9cb7 100644
--- a/bumpversion/versioning/models.py
+++ b/bumpversion/versioning/models.py
@@ -216,9 +216,9 @@ class Version:
self.components = components
self.original = original
- def values(self... | Fixed the rendering of numeric version components.
- Numeric version components now will attempt to render its value as an integer and fall back to the parsed value.
- Fixes #179 | Zero-padded version parts are not working
It seems that this fix was removed with some refactoring happened in #112. Tried with version 0.20.1 and the following config parameters:
```
current_version = "5.06.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor:... | callowayproject/bump-my-version | diff --git a/tests/test_versioning/test_serialization.py b/tests/test_versioning/test_serialization.py
index 3cb9e56c..0bf99315 100644
--- a/tests/test_versioning/test_serialization.py
+++ b/tests/test_versioning/test_serialization.py
@@ -68,6 +68,11 @@ class TestParseVersion:
pattern = r"MAJOR=(?P<major>\d+)\... | [
"tests/test_versioning/test_serialization.py::TestSerialize::TestRendersFormat::test_zero_padding"
] | [
"tests/test_versioning/test_serialization.py::TestParseVersion::test_empty_version_returns_empty_dict",
"tests/test_versioning/test_serialization.py::TestParseVersion::test_empty_parse_pattern_returns_empty_dict",
"tests/test_versioning/test_serialization.py::TestParseVersion::test_parses_version_and_returns_fu... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/callowayproject/bump-my-version/issue... |
e23b9854e419a66f5b1cba645372cb35be8d6053 | 2022-09-13 06:49:30 | docker.io/swerebenchv2/py-pdf-pypdf2:1345-e23b985 | py-pdf__pypdf2-1345 | No new interfaces are introduced. | python | custom-check-github | diff --git a/PyPDF2/_cmap.py b/PyPDF2/_cmap.py
index 1165f7d0..4fce54cf 100644
--- a/PyPDF2/_cmap.py
+++ b/PyPDF2/_cmap.py
@@ -5,7 +5,7 @@ from typing import Any, Dict, List, Tuple, Union, cast
from ._codecs import adobe_glyphs, charset_encoding
from ._utils import logger_warning
from .errors import PdfReadWarning
-... | ROB : improve nameobject reading/writing
closes #1344 | PDF Read/Merge generates broken documents since update 2.10.6
Hello,
Since update 2.10.6, some PDF documents are not merged correctly. Same with version 2.10.7.
Previous versions (2.10.5 and below) behave correctly.
## Environment
Which environment were you using when you encountered the problem?
```bash
... | py-pdf/PyPDF2 | diff --git a/tests/test_generic.py b/tests/test_generic.py
index deff2dda..5abd1a6e 100644
--- a/tests/test_generic.py
+++ b/tests/test_generic.py
@@ -170,7 +170,7 @@ def test_readStringFromStream_excape_digit2():
assert read_string_from_stream(stream) == "hello \x01\x02\x03\x04"
-def test_NameObject():
+def t... | [
"tests/test_generic.py::test_NameObject",
"tests/test_merger.py::test_iss1344"
] | [
"tests/test_generic.py::test_float_object_exception",
"tests/test_generic.py::test_number_object_exception",
"tests/test_generic.py::test_number_object_no_exception",
"tests/test_generic.py::test_create_string_object_exception",
"tests/test_generic.py::test_boolean_object[true-true-4]",
"tests/test_generi... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/py-pdf/PyPDF2/files/9549001/input.p... |
d51acae87f0dcc714379ae567485a2a257f5ebfc | 2023-02-28 17:13:31 | docker.io/swerebenchv2/stac-utils-pystac:1016-d51acae | stac-utils__pystac-1016 | Method: ItemCollection.__init__(self, items: Iterable[ItemLike], extra_fields: Optional[Dict[str, Any]] = None, clone_items: bool = True)
Location: pystac/item_collection.py
Inputs:
- **items** – an iterable of :class:`~pystac.Item` objects or dictionaries that can be converted to Items.
- **extra_fields** – optiona... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6aebd8d2..58ca4ad4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,7 @@
- Use `from __future__ import annotations` for type signatures ([#962](https://github.com/stac-utils/pystac/pull/962))
- Use `TypeVar` for alternate constructors ([#983](https://github.com/... | When instantiating ItemCollections clone items by default
**Related Issue(s):**
- closes #859
**Description:**
NOTE this PR changes the behavior when adding item collections. After this PR adding item collections will no longer dedupe items.
**PR Checklist:**
- [x] Code is formatted (run `pre-commit ru... | ItemCollection constructor should clone items in iterator by default
Currently, if an ItemCollection is constructed with an iterator of Item objects, those objects may be mangled and become unusable by operation in ItemCollection. This can be avoided by setting the clone parameter to True. This change would make the cl... | stac-utils/pystac | diff --git a/requirements-test.txt b/requirements-test.txt
index 8a9e232a..69285f41 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,7 +1,7 @@
black==23.1.0
codespell==2.2.2
coverage==7.2.1
-doc8==0.11.2
+doc8==1.0.0
flake8==6.0.0
html5lib==1.1
isort==5.12.0
diff --git a/tests/test_item_collec... | [
"tests/test_item_collection.py::TestItemCollection::test_add_item_collections"
] | [
"tests/test_item_collection.py::TestItemCollection::test_add_other_raises_error",
"tests/test_item_collection.py::TestItemCollection::test_clone_item_collection",
"tests/test_item_collection.py::TestItemCollection::test_from_dict_preserves_dict",
"tests/test_item_collection.py::TestItemCollection::test_from_d... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3c3e0748c08bc59d8531b6c9a038949179711d67 | 2025-05-28 14:51:44 | docker.io/swerebenchv2/aristanetworks-anta:1227-3c3e074 | aristanetworks__anta-1227 | Method: AntaRunner._log_run_information(self, ctx: AntaRunContext) -> None
Location: anta/_runner.py, inside class AntaRunner
Inputs:
- **self** – the AntaRunner instance.
- **ctx** – an AntaRunContext object containing the run‐time state (inventory sizes, filtered/unreachable device lists, selected devices, total test... | python | Apache-2.0 | diff --git a/anta/_runner.py b/anta/_runner.py
index 109108be..eaa1cf9a 100644
--- a/anta/_runner.py
+++ b/anta/_runner.py
@@ -16,7 +16,6 @@ from typing import TYPE_CHECKING, Any
from pydantic import BaseModel, ConfigDict
from anta import GITHUB_SUGGESTION
-from anta.cli.console import console
from anta.inventory ... | fix(anta): Remove anta.cli import from anta._runner
# Description
Remove the use of `anta.cli.console` in the runner to avoid being dependant of `anta.cli` when using ANTA as a library.
Fixes #1226
# Checklist:
<!-- Delete not relevant items !-->
- [X] My code follows the style guidelines of this projec... | bug(anta): anta._runner module should not depend on anta.cli when used outside of ANTA CLI
```
File "/home/ansible/.ansible/collections/ansible_collections/arista/avd/plugins/plugin_utils/eos_validate_state_utils/get_anta_results.py", line 47, in <module>
from anta.runner import main as anta_runner
File "/home/... | aristanetworks/anta | diff --git a/tests/units/test__runner.py b/tests/units/test__runner.py
index 46c63ed0..efb5f454 100644
--- a/tests/units/test__runner.py
+++ b/tests/units/test__runner.py
@@ -310,11 +310,28 @@ class TestAntaRunner:
await runner.run(inventory, catalog, dry_run=True)
expected_output = [
- "... | [
"tests/units/test__runner.py::TestAntaRunner::test_log_run_information_default",
"tests/units/test__runner.py::TestAntaRunner::test_log_run_information_filters",
"tests/units/test__runner.py::TestAntaRunner::test_log_run_information_from_context"
] | [
"tests/units/test__runner.py::TestAntaRunner::test_init_with_default_settings",
"tests/units/test__runner.py::TestAntaRunner::test_init_with_custom_env_settings",
"tests/units/test__runner.py::TestAntaRunner::test_init_with_provided_settings",
"tests/units/test__runner.py::TestAntaRunner::test_dry_run",
"te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.86,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://anta.arista.com/stable/requirements-and-instal... |
6c6f05a8df7169e9017ca2f0abb9ac4aa9b59161 | 2018-09-21 15:57:13 | docker.io/swerebenchv2/takluyver-flit:210-6c6f05a | takluyver__flit-210 | Function: NoDocstringError(message: str)
Location: flit.common
Inputs: A single string `message` that describes the docstring‑related error (e.g., “Flit cannot package module without docstring … (no_docstring.py)”). The message is typically constructed inside `get_info_from_module`.
Outputs: An exception object (subcla... | python | BSD-3-Clause | diff --git a/flit/common.py b/flit/common.py
index e15c190..9af9f61 100644
--- a/flit/common.py
+++ b/flit/common.py
@@ -97,7 +97,7 @@ def get_docstring_and_version_via_import(target):
version = m.__dict__.get('__version__', None)
return docstring, version
-def get_info_from_module(target):
+def get_info_fr... | Fix #175 and add type annotation to arg. of `get_module_info`
- Add module name to error about missing docstring.
- Add type annotation to function common.get_module_info signature
- Adapt tests to the new error message. | Mention filename when suggesting that user add a docstring
This one's more of a nicety.
Instead of the current message, when a docstring is missing, it would be nicer to have the path to the file suggested as well.
---
Suggesting changing:
> Cannot package module without docstring, or empty docstring. Pleas... | takluyver/flit | diff --git a/tests/test_build.py b/tests/test_build.py
index 80ef1ce..82c05d1 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -5,7 +5,7 @@ import sys
from tempfile import TemporaryDirectory
from testpath import assert_isdir, MockCommand
-from flit import build
+from flit import build, common
sample... | [
"tests/test_build.py::test_build_module_no_docstring"
] | [
"tests/test_build.py::test_build_main"
] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
3465afe00a492e73bfd517f19c409ba21196f85f | 2022-12-20 10:39:22 | docker.io/swerebenchv2/cs-si-eodag:586-3465afe | cs-si__eodag-586 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/eodag/api/product/_product.py b/eodag/api/product/_product.py
index 777b3026..a0a3d78c 100644
--- a/eodag/api/product/_product.py
+++ b/eodag/api/product/_product.py
@@ -221,15 +221,30 @@ class EOProduct(object):
"""
self.downloader = downloader
self.downloader_auth = authenticat... | fix: ignore percent vars resolve errors in register_downloader
fixes #585 | percent variables parsing error in product location
If product location contains some percent variables, it may conflict with `register_downloader()` internal parsing mechanism and raise:
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/eodag/api/core.py", line 1474, in _do_searc... | CS-SI/eodag | diff --git a/tests/units/test_eoproduct.py b/tests/units/test_eoproduct.py
index ed716125..81bdd00f 100644
--- a/tests/units/test_eoproduct.py
+++ b/tests/units/test_eoproduct.py
@@ -453,3 +453,84 @@ class TestEOProduct(EODagTestCase):
# progress bar finished
self.assertEqual(progress_callback.n, prog... | [
"tests/units/test_eoproduct.py::TestEOProduct::test_eoproduct_register_downloader_resolve_ignored"
] | [
"tests/units/test_eoproduct.py::TestEOProduct::test_eoproduct_default_driver_unsupported_product_type",
"tests/units/test_eoproduct.py::TestEOProduct::test_eoproduct_download_http_default",
"tests/units/test_eoproduct.py::TestEOProduct::test_eoproduct_download_http_delete_archive",
"tests/units/test_eoproduct... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
3c30a5cc796fdb3c76a4e7e546af0849a54e51df | 2022-11-17 22:53:28 | docker.io/swerebenchv2/openmdao-openmdao:2718-3c30a5c | openmdao__openmdao-2718 | No new interfaces are introduced. | python | custom-check-github | diff --git a/openmdao/core/driver.py b/openmdao/core/driver.py
index 57f017910..b5fc90ac9 100644
--- a/openmdao/core/driver.py
+++ b/openmdao/core/driver.py
@@ -149,7 +149,6 @@ class Driver(object):
# What the driver supports.
self.supports = OptionsDictionary(parent_name=type(self).__name__)
- ... | Add pyoptsparse to windows build on GitHub Actions
### Summary
Add pyoptsparse to windows build on GitHub Actions
### Related Issues
- Resolves #2717
### Backwards incompatibilities
None
### New Dependencies
None
| Test with pyoptsparse on Windows
### Task Description
There are 64 bit windows builds of pyoptsparse on conda-forge:
https://anaconda.org/conda-forge/pyoptsparse/files
We should test with this on our Windows build in the GitHub test workflow. | OpenMDAO/OpenMDAO | diff --git a/.github/workflows/openmdao_test_workflow.yml b/.github/workflows/openmdao_test_workflow.yml
index 87457e464..d739db283 100644
--- a/.github/workflows/openmdao_test_workflow.yml
+++ b/.github/workflows/openmdao_test_workflow.yml
@@ -404,6 +404,7 @@ jobs:
PY: 3
NUMPY: 1
... | [
"openmdao/visualization/opt_report/tests/test_opt_report.py::TestOptimizationReport::test_opt_report_run_once_driver"
] | [
"openmdao/visualization/opt_report/tests/test_opt_report.py::TestOptimizationReport::test_opt_report_DOE",
"openmdao/visualization/opt_report/tests/test_opt_report.py::TestOptimizationReport::test_opt_report_array_constraint",
"openmdao/visualization/opt_report/tests/test_opt_report.py::TestOptimizationReport::... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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.84,
"detected_issues": {
"B1": true,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://anaconda.org/conda-forge/pyoptsparse/files"
... |
60328d54ee14c390f00d83167da94bf273a58a6b | 2024-11-22 21:22:13 | docker.io/swerebenchv2/getmoto-moto:8342-60328d5 | getmoto__moto-8342 | Method: FakeShadow.parse_payload(cls, desired: Any, reported: Any)
Location: moto/iotdata/models.py – class FakeShadow, @classmethod parse_payload
Inputs:
- **desired** – JSON‑serialisable structure (dict, list, etc.) representing the desired state of the device shadow; may be None.
- **reported** – JSON‑serialisabl... | python | Apache-2.0 | diff --git a/moto/ec2/utils.py b/moto/ec2/utils.py
index 03341a69d..c50516152 100644
--- a/moto/ec2/utils.py
+++ b/moto/ec2/utils.py
@@ -90,7 +90,7 @@ def random_resource_id(size: int = 8) -> str:
return "".join(random.choice(HEX_CHARS) for _ in range(size))
-def random_id(prefix: str = "", size: int = 8) -> s... | IOTData: update_thing_shadow() now properly handles complex nested deltas
Fixes #8331
If there are other scenarios that I've missed, and the diff computation becomes even more complex, it might make sense to move away from `jsondiff` altogether, and add our own implementation. The whole point of `jsondiff` is to no... | IoT Data Shadow Delta with complex datastructure exposes jsondiff symbol and raises TypeError
I'm using Moto 5.0.21, and jsondiff 2.2.1.
When deleting items from a second-level list in an IoT data shadow, there's a `jsondiff.deleted` symbol exposed, and breaking the subsequent JSON parsing. I suppose this is because... | getmoto/moto | diff --git a/tests/test_iotdata/test_iotdata.py b/tests/test_iotdata/test_iotdata.py
index b2185859e..234c2cc36 100644
--- a/tests/test_iotdata/test_iotdata.py
+++ b/tests/test_iotdata/test_iotdata.py
@@ -223,6 +223,61 @@ def test_delete_field_from_device_shadow(name: Optional[str] = None) -> None:
{"repor... | [
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired5-initial_delta5-reported5-delta_after_report5]",
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired6-initial_delta6-reported6-delta_after_report6]",
"tests/test_iotdata/test_iotdata.py::test_delta_calculation[desired7-initial_d... | [
"tests/test_iotdata/test_iotdata.py::test_basic",
"tests/test_iotdata/test_iotdata.py::test_update",
"tests/test_iotdata/test_iotdata.py::test_create_named_shadows",
"tests/test_iotdata/test_iotdata.py::test_publish",
"tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow",
"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": "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/bblommers/moto/blob/4f521ba49182be9... |
a92868581ccb05e93b26f6168bbe87d09c056988 | 2015-09-03 07:47:41 | docker.io/swerebenchv2/nephila-djangocms-installer:202-a928685 | nephila__djangocms-installer-202 | Function: parse(args)
Location: djangocms_installer/config/__init__.py
Inputs: *args* – a list of command‑line arguments (e.g., “--db=sqlite://…”, “--pip-options='--no-index'”). The parser now defines a new optional flag `--pip-options` (default empty string) that is accepted alongside the existing options.
Outputs: Re... | python | BSD-3-Clause | diff --git a/.gitignore b/.gitignore
index 3b69057..355ecd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,7 +17,6 @@ develop-eggs
.installed.cfg
lib
lib64
-.eggs
# Installer logs
pip-log.txt
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index c9ed0a3..0000000
--- a/.gitlab-ci.yml
+++ /d... | fixes #201: allow passing custom pip options | allow passing custom `pip install` options like `--no-index --find-links=~/wheels/`
I usually pass `--find-links=~/wheels/` to `pip install` to cache all downloaded packages. please add `--pip-options` so I can type something like this
```
djangocms-installer --pip-options="--no-index --find-links=~/wheels/" -p my... | nephila/djangocms-installer | diff --git a/tests/base.py b/tests/base.py
index f87f51d..b6a4c6f 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -14,13 +14,6 @@ if sys.version_info[:2] < (2, 7):
else:
import unittest
-if sys.version_info < (2, 7):
- dj_ver = '1.6'
-elif sys.version_info < (3, 5):
- dj_ver = '1.7'
-else:
- dj_ver =... | [
"tests/config.py::TestConfig::test_supported_versions"
] | [
"tests/config.py::TestConfig::test_boostrap",
"tests/config.py::TestConfig::test_latest_version",
"tests/config.py::TestConfig::test_show_plugins",
"tests/config.py::TestConfig::test_show_requirements",
"tests/config.py::TestConfig::test_starting_page",
"tests/config.py::TestConfig::test_templates",
"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": "B5",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": true,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
b8e6775a5ab6109cec514b43df838c71c7b0c9c7 | 2019-01-09 05:26:50 | docker.io/swerebenchv2/timothycrosley-isort:802-b8e6775 | timothycrosley__isort-802 | No new interfaces are introduced. | python | MIT | diff --git a/isort/__main__.py b/isort/__main__.py
index 060f7331..186c98e8 100644
--- a/isort/__main__.py
+++ b/isort/__main__.py
@@ -1,8 +1,5 @@
from __future__ import absolute_import
-from .pie_slice import apply_changes_to_python_environment
-apply_changes_to_python_environment()
-
-from isort.main import main ... | Remove all unused code from pie_slice.py
Some of the unused code previously monkey patched stdlib modules which
caused unexpected results in other projects.
Fixes #801 | Monkey patching urllib not ideal
We recently had some (python 3 only) code that was erroneously doing
```
from urllib import quote
```
which was working in tests but not in production. The reason being that isort was being loaded in tests and monkey patches urllib at https://github.com/timothycrosley/isort/blob/dev... | timothycrosley/isort | diff --git a/test_isort.py b/test_isort.py
index d7d770af..25ad87e7 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2584,3 +2584,11 @@ def test_pipfile_finder(tmpdir):
assert finder._normalize_name('Flask-RESTful') == 'flask_restful' # conver `-`to `_`
pipfile.remove()
+
+
+@pytest.mark.skipif(sys.versi... | [
"test_isort.py::test_monkey_patched_urllib"
] | [
"test_isort.py::test_happy_path",
"test_isort.py::test_code_intermixed",
"test_isort.py::test_correct_space_between_imports",
"test_isort.py::test_sort_on_number",
"test_isort.py::test_line_length",
"test_isort.py::test_output_modes",
"test_isort.py::test_qa_comment_case",
"test_isort.py::test_length_... | {
"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.9,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/timothycrosley/isort/blob/develop/is... |
b20d2d343655bb5f141ac39d92ae3e6c4c5fdf94 | 2024-05-28 17:40:24 | docker.io/swerebenchv2/openmdao-openmdao:3248-b20d2d3 | openmdao__openmdao-3248 | Method: Group.set_input_defaults(self, name, val=None, units=None, shape=None, desc=None, tags=None, distributed=False)
Location: openmdao.core.group.Group
Inputs:
- **name** (str): promoted input name to which the defaults apply.
- **val** (any, optional): default value to use when the variable is not otherwise set... | python | custom-check-github | diff --git a/openmdao/core/system.py b/openmdao/core/system.py
index 2905e85f6..72e43759f 100644
--- a/openmdao/core/system.py
+++ b/openmdao/core/system.py
@@ -5367,9 +5367,9 @@ class System(object):
n_proms = 0 # if nonzero, name given was promoted input name w/o a matching prom output
try:
- ... | fix for group set_val when using set_input_defaults
### Summary
When calling set_val on a group, it was accessing the group input defaults for the model instead of the specified group.
### Related Issues
- Resolves #3246
### Backwards incompatibilities
None
### New Dependencies
None
| Unit ambiguity issue when using set_val
### Description
Using `set_val()` at the subsystem level doesn't register `set_input_defaults()` being called. If two subsystems promote a variable to the same variable name but have different units at the subsystems, this can cause an issue depending on what level `set_val()`... | OpenMDAO/OpenMDAO | diff --git a/openmdao/core/tests/test_group.py b/openmdao/core/tests/test_group.py
index a496e92fa..a999643c2 100644
--- a/openmdao/core/tests/test_group.py
+++ b/openmdao/core/tests/test_group.py
@@ -1615,6 +1615,20 @@ class TestGroup(unittest.TestCase):
np.testing.assert_array_equal(p['x'], np.ones(5))
+... | [
"openmdao/core/tests/test_group.py::TestGroup::test_set_input_defaults_set_val"
] | [
"openmdao/core/tests/test_group.py::TestSubsystemConfigError::test_add_subsystem_error_on_config",
"openmdao/core/tests/test_group.py::TestGroup::test_add_subsystem_class",
"openmdao/core/tests/test_group.py::TestGroup::test_auto_order",
"openmdao/core/tests/test_group.py::TestGroup::test_auto_order2",
"ope... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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":... |
1e0db58c6d96b162b16800cdbfa2f63d604543bf | 2023-02-03 11:52:00 | docker.io/swerebenchv2/conan-io-conan:13041-1e0db58 | conan-io__conan-13041 | Function: msvs_toolset(conanfile)
Location: conan.tools.microsoft.visual
Inputs:
- **conanfile**: a ConanFile instance (or mock) exposing a ``settings`` attribute.
Required settings keys: ``compiler`` and optionally ``compiler.version``, ``compiler.toolset`` and ``compiler.mode``.
Supported ``compiler`` values... | python | MIT | diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py
index 9c0bb920d..c060c64b8 100644
--- a/conan/tools/microsoft/__init__.py
+++ b/conan/tools/microsoft/__init__.py
@@ -6,4 +6,4 @@ from conan.tools.microsoft.toolchain import MSBuildToolchain
from conan.tools.microsoft.nmaketoolchain imp... | Export msvs_toolset to conan.tools.microsoft.visual
It's useful in few recipes in CCI, the build system is not well planned by the project and we need from the scratch, like, passing all env vars and compiler arguments.
Changelog: Feature: Add msvs_toolset method to conan.tools.microsoft.visual to identify which too... | [feature] Provide conan.tools.microsoft.msvs_toolset equivalent of conans.tools.msvs_toolset
Would it be possible to provide the [msvs_toolset](https://docs.conan.io/en/latest/reference/tools.html#tools-msvs-toolset) function in the `conan` namespace and add support for the `msvc` compiler in it?
I had to workaround t... | conan-io/conan | diff --git a/conans/test/unittests/tools/microsoft/test_msvs_toolset.py b/conans/test/unittests/tools/microsoft/test_msvs_toolset.py
new file mode 100644
index 000000000..de1ec93b0
--- /dev/null
+++ b/conans/test/unittests/tools/microsoft/test_msvs_toolset.py
@@ -0,0 +1,141 @@
+import pytest
+from conan.tools.microsoft... | [
"conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[17-v143]",
"conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[16-v142]",
"conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[15-v141]",
"conans/test/... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.conan.io/en/latest/reference/tools.html#t... |
bf9da4838986af3bc09a1b16974d154c61dcbe3f | 2022-03-19 18:03:57 | docker.io/swerebenchv2/pallets-click:2217-bf9da48 | pallets__click-2217 | Function: result_callback(result)
Location: Registered on a `click.Group` (or `click.command`) via the `@cli.result_callback()` decorator; invoked after `click.Group.invoke` when `invoke_without_command=True` and `chain=False`.
Inputs: **result** – any type; for regular (non‑chained) groups this is the value returned b... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 8662316..0a9661a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -45,6 +45,9 @@ Version 8.1.0
:issue:`2131`.
- ``@command`` decorator is annotated as returning the correct type if
a ``cls`` argument is used. :issue:`2211`
+- A ``Group`` with ``invoke_without_com... | group without command passes return value to result callback
A non-chained group invoked without a subcommand will pass its return value to its result callback, instead of `None`.
fixes #2124 | group return value is ignored
Calling a command defined as `@click.group()` with `standalone_mode=False` does not propagate the return value as expected.
For instance:
```python
import click
import sys
@click.group(invoke_without_command=True)
@click.option("-l", "--local-configuration", type=str)
def main(l... | pallets/click | diff --git a/tests/test_chain.py b/tests/test_chain.py
index 3431009..6b2eae3 100644
--- a/tests/test_chain.py
+++ b/tests/test_chain.py
@@ -85,20 +85,20 @@ def test_chaining_with_options(runner):
assert result.output.splitlines() == ["bdist called 1", "sdist called 2"]
-@pytest.mark.parametrize(("chain", "exp... | [
"tests/test_chain.py::test_no_command_result_callback[False-1]"
] | [
"tests/test_chain.py::test_basic_chaining",
"tests/test_chain.py::test_chaining_help[args0-COMMAND1",
"tests/test_chain.py::test_chaining_help[args1-ROOT",
"tests/test_chain.py::test_chaining_help[args2-SDIST",
"tests/test_chain.py::test_chaining_help[args3-BDIST",
"tests/test_chain.py::test_chaining_help... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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": [... |
a75e30faae06c4e8b9073b28a2cf0b8e6c4c5715 | 2023-09-08 21:11:12 | docker.io/swerebenchv2/getmoto-moto:6795-a75e30f | getmoto__moto-6795 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/kms/models.py b/moto/kms/models.py
index 34a24ff91..16abc0cf2 100644
--- a/moto/kms/models.py
+++ b/moto/kms/models.py
@@ -629,9 +629,8 @@ class KmsBackend(BaseBackend):
def sign(
self, key_id: str, message: bytes, signing_algorithm: str
) -> Tuple[str, bytes, str]:
- """Sign... | KMS: sign/verify should use the original message, not the base64-version
Fixes #6791 | Moto doesn't base64 decode messages before signing them
Hello, we've been testing some of our KMS interactions with Moto and have run across a weird inconsistency. I've found that Moto is not base64 decoding the messages before signing them--AWS does. Its hard to notice it when you're using moto for both the sign and v... | getmoto/moto | diff --git a/tests/test_kms/test_kms_boto3.py b/tests/test_kms/test_kms_boto3.py
index bd2a9f7f3..3754815e8 100644
--- a/tests/test_kms/test_kms_boto3.py
+++ b/tests/test_kms/test_kms_boto3.py
@@ -1,7 +1,7 @@
import json
from datetime import datetime
-from cryptography.hazmat.primitives import hashes
-from cryptograp... | [
"tests/test_kms/test_kms_boto3.py::test_ensure_key_can_be_verified_manually"
] | [
"tests/test_kms/test_kms_boto3.py::test_create_key_without_description",
"tests/test_kms/test_kms_boto3.py::test_create_key_with_invalid_key_spec",
"tests/test_kms/test_kms_boto3.py::test_create_key",
"tests/test_kms/test_kms_boto3.py::test_create_multi_region_key",
"tests/test_kms/test_kms_boto3.py::test_n... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
42fd6025284625410d6f44336375714c7eb2200c | 2020-08-26 23:31:56 | docker.io/swerebenchv2/yelp-mrjob:2197-42fd602 | yelp__mrjob-2197 | Method: EMRJobRunner.__init__(self, **options, min_available_mb=0, min_available_virtual_cores=0, **other_opts)
Location: mrjob/emr.py
Inputs:
- **min_available_mb** (int, default 0) – minimum YARN `availableMB` a pooled cluster must report.
- **min_available_virtual_cores** (int, default 0) – minimum YARN `ava... | python | custom-check-github | diff --git a/docs/guides/emr-opts.rst b/docs/guides/emr-opts.rst
index 870ad05b..b9ef32db 100644
--- a/docs/guides/emr-opts.rst
+++ b/docs/guides/emr-opts.rst
@@ -376,6 +376,40 @@ Cluster pooling
.. versionadded:: 0.7.4
+.. mrjob-opt::
+ :config: min_available_mb
+ :switch: --min-available-mb
+ :type:... | pooling: query YARN resource manager for available memory and CPU
This change allows you to replace looking at a cluster's number and type of instances with connecting directly to the YARN resource manager and querying it for available memory and CPU. Fixes #2191. | join pooled clusters based on yarn cluster metrics
Currently, pooling will check if a cluster is "big enough" in terms of memory, CPU and a few other aspects (e.g. EBS volume size).
We can instead compare memory and CPU needs by SSHing to the cluster's YARN resource manager and querying its [metrics API](https://had... | Yelp/mrjob | diff --git a/tests/test_emr.py b/tests/test_emr.py
index 33b0f9ae..15f4199b 100644
--- a/tests/test_emr.py
+++ b/tests/test_emr.py
@@ -6223,3 +6223,66 @@ class AddStepsInBatchTestCase(MockBoto3TestCase):
self._assert_adds_steps_one_at_a_time(
'--image-version', '4.0.0',
'--no-add-step... | [
"tests/test_emr.py::MinAvailableOptsTestCase::test_with_ssh_opts",
"tests/test_emr_pooling.py::MinAvailableOptsPoolMatchingTestCase::test_available_mb_only",
"tests/test_emr_pooling.py::MinAvailableOptsPoolMatchingTestCase::test_available_virtual_cores_only",
"tests/test_emr_pooling.py::MinAvailableOptsPoolMa... | [
"tests/test_emr.py::HadoopExtraArgsTestCase::test_hadoop_extra_args",
"tests/test_emr.py::HadoopExtraArgsTestCase::test_hadoop_extra_args_comes_after_jobconf",
"tests/test_emr.py::InlineInputManifestTestCase::test_input_manifest",
"tests/test_emr.py::EMRJobRunnerEndToEndTestCase::test_cleanup_all",
"tests/t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://hadoop.apache.org/docs/current/hadoop-yarn/had... |
c21bbb948008673727cf26d5c48c8b007b0ccfc0 | 2022-09-13 20:43:21 | docker.io/swerebenchv2/xknx-xknx:1031-c21bbb9 | xknx__xknx-1031 | Method: _RoutingFlowControl.throttle(self) → AsyncIterator[None]
Location: xknx/io/routing.py
Inputs: No parameters besides the implicit `self`. Must be used within an `async with` block to serialize access to outgoing RoutingIndication frames.
Outputs: Yields control once the flow‑control conditions are satisfied (rat... | python | MIT | diff --git a/docs/changelog.md b/docs/changelog.md
index f33b8928..02f03e95 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -12,6 +12,14 @@ nav_order: 2
- Convenience functions for KNX group communication (`xknx.tools`)
+### Routing
+
+- Support flow control for routing
+
+### Protocol
+
+- Add RoutingBu... | Routing flow control
<!--
You are awesome! Thanks for contributing to our project!
Please, DO NOT DELETE ANY TEXT from this template!.
-->
## Description
<!--
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
List any dependencies that are ... | Routing flow control: Implement RoutingBusy KNXnet service and act on reception.
We should wait a while before sending next RoutingIndication frames after a RoutingBusy frame was received.
See KNX Standard 3/8/5 Routing §2.3.5 Flow control handling.
As #323 this would benefit from incoming and outgoing telegram que... | XKNX/xknx | diff --git a/requirements/testing.txt b/requirements/testing.txt
index 778a8411..f96c1619 100644
--- a/requirements/testing.txt
+++ b/requirements/testing.txt
@@ -4,10 +4,10 @@ isort==5.10.1
flake8==5.0.4
flake8-isort==4.2.0
pydocstyle==6.1.1
-pylint==2.15.2
+pylint==2.15.3
pytest==7.1.3
pytest-asyncio==0.19.0
py... | [
"test/io_tests/routing_test.py::TestRouting::test_request_received_callback",
"test/io_tests/routing_test.py::TestFlowControl::test_basic_throttling",
"test/io_tests/routing_test.py::TestFlowControl::test_routing_busy",
"test/knxip_tests/routing_busy_test.py::TestKNXIPRoutingBusy::test_routing_busy",
"test/... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2|B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
07aa6b00459e2cfb74791a074b9d9ca477901726 | 2023-10-02 10:02:05 | docker.io/swerebenchv2/owkin-pydeseq2:175-07aa6b0 | owkin__pydeseq2-175 | No new interfaces are introduced. | python | MIT | diff --git a/pydeseq2/utils.py b/pydeseq2/utils.py
index f456316..5b18559 100644
--- a/pydeseq2/utils.py
+++ b/pydeseq2/utils.py
@@ -1003,6 +1003,15 @@ def fit_rough_dispersions(
"""
num_samples, num_vars = design_matrix.shape
+ # This method is only possible when num_samples > num_vars.
+ # If this i... | BUG division by zero when ``num_samples == num_vars``
#### Reference Issue or PRs
Related to #174
#### What does your PR implement? Be specific.
Throws an error when the design matrix has the same number of rows and columns, as it is not possible to fit rough dispersions in this case. This reproduces the behav... | ValueError: The first guess on the deviance function returned a nan. This could be a boundary problem and should be reported.
Hello, thank you for the great tool!
**Describe the bug**
When trying to run the deseq2 method, the following error arises:
`
ValueError: The first guess on the deviance function return... | owkin/PyDESeq2 | diff --git a/tests/test_edge_cases.py b/tests/test_edge_cases.py
index 1d6a036..5a2b8a7 100644
--- a/tests/test_edge_cases.py
+++ b/tests/test_edge_cases.py
@@ -163,8 +163,8 @@ def test_one_factor():
def test_rank_deficient_design():
- """Test that a ValueError is thrown when the design matrix does not have ful... | [
"tests/test_edge_cases.py::test_equal_num_vars_num_samples_design"
] | [
"tests/test_edge_cases.py::test_nan_counts",
"tests/test_edge_cases.py::test_numeric_counts",
"tests/test_edge_cases.py::test_integer_counts",
"tests/test_edge_cases.py::test_non_negative_counts",
"tests/test_edge_cases.py::test_one_factor",
"tests/test_edge_cases.py::test_rank_deficient_design",
"tests... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7176201b8f7adbf7362fd993b9f830ac801d15b7 | 2023-02-23 02:40:55 | docker.io/swerebenchv2/vitalik-django-ninja:687-7176201 | vitalik__django-ninja-687 | Method: method_new_union_payload(request, data: "TypeA | TypeB")
Location: Defined in *tests/test_openapi_schema.py* under a conditional `if sys.version_info >= (3, 10):` and registered with `@api.post("/test-new-union-type", response=Response)`.
Inputs:
- **request** – the incoming HTTP request object (type is opaque... | python | MIT | diff --git a/ninja/signature/details.py b/ninja/signature/details.py
index a740684..534b45e 100644
--- a/ninja/signature/details.py
+++ b/ninja/signature/details.py
@@ -24,6 +24,13 @@ FuncParam = namedtuple(
"FuncParam", ["name", "alias", "source", "annotation", "is_collection"]
)
+try:
+ from types import U... | Support both new and old style Union/Optional
The Python 3.10+ syntax of creating a union or optional type (with `str | int`), results in a different type than using the pre-Python 3.10 syntax (`Union[str, int]`).
```pycon
>>> from typing import Optional, Union, get_origin
>>> get_origin(Union[int, str])
typing.U... | [BUG] Python 3.10: union compatibility (for payload)
**Describe the bug**
The behaviour introduced in #301 to handle `Union`-types, is no longer working on the new style union-type syntax (`|`).
```pycon
>>> from typing import Optional, Union, get_origin
>>> get_origin(Union[int, str])
typing.Union
>>> get_orig... | vitalik/django-ninja | diff --git a/tests/test_openapi_schema.py b/tests/test_openapi_schema.py
index f0e6ab7..66ca33c 100644
--- a/tests/test_openapi_schema.py
+++ b/tests/test_openapi_schema.py
@@ -1,3 +1,4 @@
+import sys
from typing import List, Union
from unittest.mock import Mock
@@ -107,6 +108,14 @@ def method_union_payload_and_sim... | [
"tests/test_openapi_schema.py::test_new_union_payload_type"
] | [
"tests/test_openapi_schema.py::test_schema_views",
"tests/test_openapi_schema.py::test_schema_views_no_INSTALLED_APPS",
"tests/test_openapi_schema.py::test_schema",
"tests/test_openapi_schema.py::test_schema_alias",
"tests/test_openapi_schema.py::test_schema_list",
"tests/test_openapi_schema.py::test_sche... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"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/vitalik/django-ninja/blob/432ab5313be... |
9a9d11f7eeb77d3c31a0470d703b2f6ab11a5494 | 2025-01-10 15:02:17 | docker.io/swerebenchv2/pythainlp-pythainlp:1062-9a9d11f | pythainlp__pythainlp-1062 | Method: LongestMatchTokenizer.segment(self, text: str)
Location: pythainlp/tokenize/longest.py
Inputs:
- **text** (str): Thai text to be tokenized. May contain any amount of whitespace; consecutive whitespace characters are treated as a single token.
Outputs:
- **List[str]** – a list of token strings. Thai words are ... | python | Apache-2.0 | diff --git a/pythainlp/tokenize/longest.py b/pythainlp/tokenize/longest.py
index 8bd21bf4..1b0bf718 100644
--- a/pythainlp/tokenize/longest.py
+++ b/pythainlp/tokenize/longest.py
@@ -38,6 +38,7 @@ _REAR_DEP_CHAR = ["ั", "ื", "เ", "แ", "โ", "ใ", "ไ", "ํ"]
_TRAILING_CHAR = ["ๆ", "ฯ"]
_RE_NONTHAI = re.compile(r"[A-Za-... | Fix bug in Longest Matching tokenizer to preprocess spaces consistently
Fixes #1061
Update the Longest Matching tokenizer to preprocess spaces consistently with the Multi-Cut tokenizer.
* Modify `pythainlp/tokenize/longest.py` to group consecutive spaces into one token using regex.
* Add test cases in `tests/core/tes... | bug: Why isn’t space preprocessing consistent between Longest Matching and Multi-Cut?
### Description
Hi,
I noticed that Multi-Cut preprocesses spaces (e.g., grouping consecutive spaces into one token), while Longest Matching does not. Why not preprocess spaces the same way for both tokenizers to ensure consistency... | PyThaiNLP/pythainlp | diff --git a/tests/core/test_tokenize.py b/tests/core/test_tokenize.py
index 054a2ab7..c1fd7ba0 100644
--- a/tests/core/test_tokenize.py
+++ b/tests/core/test_tokenize.py
@@ -390,6 +390,18 @@ class TokenizeTestCase(unittest.TestCase):
longest_tokenizer.word_tokenize("เฉียบพลัน"),
["เฉียบพลัน"]... | [
"tests/core/test_tokenize.py::TokenizeTestCase::test_longest"
] | [
"tests/core/test_tokenize.py::DetokenizeTestCase::test_numeric_data_format",
"tests/core/test_tokenize.py::DetokenizeTestCase::test_word_detokenize",
"tests/core/test_tokenize.py::TokenizeTestCase::test_Tokenizer",
"tests/core/test_tokenize.py::TokenizeTestCase::test_etcc",
"tests/core/test_tokenize.py::Tok... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
0203273a68f202e3b0a1c616f01c247827671765 | 2020-01-16 09:35:09 | docker.io/swerebenchv2/codezonediitj-pydatastructs:85-0203273 | codezonediitj__pydatastructs-85 | Method: Queue.__new__(implementation='array', **kwargs)
Location: pydatastructs.miscellaneous_data_structures.queue.Queue
Inputs: implementation (str, default 'array') – selects underlying implementation; optional keyword arguments such as items (list/tuple) and dtype (type) forwarded to the concrete queue class.
Ou... | python | custom-check-github | diff --git a/AUTHORS b/AUTHORS
index 8af2532..d8aba09 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,6 +1,7 @@
-Gagandeep Singh<singh.23@iitj.ac.in>
-Kartikei Mittal<kartikeimittal@gmail.com>
-Umesh<23umesh.here@gmail.com>
-Rohan Singh<singh.77@iitj.ac.in>
-Tarun Singh Tomar<tomartarun2001@gmail.com>
-Saptashrungi Birajdar<s... | Added Queue data structure
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs or Relevant literature
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234"... | Add Queue
#### Description of the problem
<!--Please provide a clear and details information of the bug/data structure to be added.-->
Currently we use `Queue` from `collections` module. We want that this should be implemented in `pydatastructs` itself, however, without breaking the current code, i.e., the API should... | codezonediitj/pydatastructs | diff --git a/pydatastructs/miscellaneous_data_structures/tests/test_queue.py b/pydatastructs/miscellaneous_data_structures/tests/test_queue.py
new file mode 100644
index 0000000..18f8030
--- /dev/null
+++ b/pydatastructs/miscellaneous_data_structures/tests/test_queue.py
@@ -0,0 +1,20 @@
+from pydatastructs.miscellaneou... | [
"pydatastructs/miscellaneous_data_structures/tests/test_queue.py::test_Queue"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"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": ... |
491106e65a96910f5a652594cc9aa5eb8457e311 | 2024-08-08 20:37:24 | docker.io/swerebenchv2/aio-libs-aiohttp:8658-491106e | aio-libs__aiohttp-8658 | Method: aiohttp.MultipartReader.__init__(self, headers: Mapping[str, str], stream: Any)
Location: aiohttp/multipart.py – class `MultipartReader` constructor
Inputs:
- **headers** – mapping containing at least a `Content-Type` header with a `boundary` parameter (e.g., `'multipart/related;boundary="foobar"'`).
- ... | python | custom-check-github | diff --git a/CHANGES/8653.bugfix.rst b/CHANGES/8653.bugfix.rst
new file mode 100644
index 000000000..5c4d66c18
--- /dev/null
+++ b/CHANGES/8653.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed multipart reading when stream buffer splits the boundary over several read() calls -- by :user:`Dreamsorcerer`.
diff --git a/aiohttp/multipart... | [PR #8657/6c6ecfaf backport][3.10] Fix multipart reading with split boundary
**This is a backport of PR #8657 as merged into master (6c6ecfaf320b27eb9f86066c4bfb1f3947c3362d).**
Fixes #8643. | Multipart reader fails on Transfer-Encoding: chunked
### Describe the bug
The multipart reader will not parse if `Transfer-Encoding` is `chunked`.
The reader merges two different parts into one larger multipart.
This request-dump is also required (125 MB; github limits to 25 MB)
http://doppelbauer.name/request-... | aio-libs/aiohttp | diff --git a/tests/test_multipart.py b/tests/test_multipart.py
index 436b70957..6fc9fe573 100644
--- a/tests/test_multipart.py
+++ b/tests/test_multipart.py
@@ -2,6 +2,7 @@ import asyncio
import io
import json
import pathlib
+import sys
import zlib
from unittest import mock
@@ -754,6 +755,66 @@ class TestMultipa... | [
"tests/test_multipart.py::TestMultipartReader::test_read_boundary_across_chunks",
"tests/test_multipart.py::TestMultipartReader::test_release"
] | [
"tests/test_multipart.py::TestMultipartResponseWrapper::test_at_eof",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_next",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_release",
"tests/test_multipart.py::TestMultipartResponseWrapper::test_release_when_stream_at_eof",
"tests/te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"http://doppelbauer.name/request-data.txt"
],
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.