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
df38225598b204b041af3a6def9bc06d6495636a
2025-03-14 16:05:02
docker.io/swerebenchv2/narwhals-dev-narwhals:2211-df38225
narwhals-dev__narwhals-2211
Function: from_native(native_object: IntoLazyFrameT, *, eager_only: bool = False, strict: bool | None = None, pass_through: bool | None = None, series_only: bool = False, allow_series: bool | None = None) → LazyFrame[IntoLazyFrameT] Location: narwhals/translate.py (overload for lazy‑frame native objects) Inputs: - nati...
python
MIT
diff --git a/docs/api-reference/lazyframe.md b/docs/api-reference/lazyframe.md index 07667ab0..9ab5f128 100644 --- a/docs/api-reference/lazyframe.md +++ b/docs/api-reference/lazyframe.md @@ -4,7 +4,6 @@ handler: python options: members: - - clone - collect - collect_schema ...
fix(typing): Match lazy `@overload` in `nw.from_native(...)` ## What type of PR is this? (check all applicable) - [ ] 💾 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] 🔧 Optimization - [ ] 📝 Documentation - [ ] ✅ Test - [ ] 🐳 Other ## Related issues - Closes #2194 ## Checklist - [x] Code follows style guide (ru...
[Bug]: type-checking `from_native(spark_dataframe)` broke between v1.22 and v1.23 If we have ``` # ruff: noqa from __future__ import annotations import narwhals as nw import pandas as pd import polars as pl from sqlframe.duckdb import DuckDBSession from sqlframe.duckdb.dataframe import DuckDBDataFrame import sqlframe...
narwhals-dev/narwhals
diff --git a/tests/expr_and_series/len_test.py b/tests/expr_and_series/len_test.py index 021abf15..22179471 100644 --- a/tests/expr_and_series/len_test.py +++ b/tests/expr_and_series/len_test.py @@ -36,7 +36,7 @@ def test_namespace_len(constructor: Constructor) -> None: assert_equal_data(df, expected) df = ( ...
[ "tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[pandas]", "tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[polars[eager]]", "tests/frame/with_columns_test.py::test_select_with_columns_empty_lazy[pyarrow]", "tests/frame/with_columns_test.py::test_select_with_columns...
[ "tests/frame/invalid_test.py::test_all_vs_all[pandas]", "tests/frame/invalid_test.py::test_native_vs_non_native", "tests/frame/invalid_test.py::test_all_vs_all[pandas[pyarrow]]", "tests/frame/invalid_test.py::test_all_vs_all[pyarrow]", "tests/frame/invalid_test.py::test_validate_laziness", "tests/frame/in...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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|B4", "confidence": 0.78, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories...
42832f70e2e8b18006b51594a59d165edca7b21a
2021-01-10 13:17:21
docker.io/swerebenchv2/codezonediitj-pydatastructs:312-42832f7
codezonediitj__pydatastructs-312
Function: cocktail_shaker_sort(array: Array, **kwargs) -> Array Location: pydatastructs.linear_data_structures.algorithms.cocktail_shaker_sort Inputs: - **array** (Array): The array to be sorted; can be any concrete array type from pydatastructs (e.g., OneDimensionalArray, DynamicOneDimensionalArray). - Optional **st...
python
custom-check-github
diff --git a/pydatastructs/linear_data_structures/__init__.py b/pydatastructs/linear_data_structures/__init__.py index b4ad704..dcf4816 100644 --- a/pydatastructs/linear_data_structures/__init__.py +++ b/pydatastructs/linear_data_structures/__init__.py @@ -28,6 +28,7 @@ from .algorithms import ( heapsort, mat...
Added cocktail shaker sort <!-- 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 Closes #198. #### Brief description of what is fixed or changed Implementation of the Cocktail Shak...
Cocktail Sort #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> The code added sorts the array of numbers with minimum complexity as compared to bubble sort. #### Example of the problem <!--Provide a reproducible example code which is cau...
codezonediitj/pydatastructs
diff --git a/pydatastructs/linear_data_structures/tests/test_algorithms.py b/pydatastructs/linear_data_structures/tests/test_algorithms.py index b220dee..22eccbb 100644 --- a/pydatastructs/linear_data_structures/tests/test_algorithms.py +++ b/pydatastructs/linear_data_structures/tests/test_algorithms.py @@ -1,7 +1,7 @@...
[ "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_merge_sort_parallel", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort", "pydatastructs/linear_data_structures/tests/test_algorithms.py::test_brick_sort_parallel", "pydatastructs/linear_data_structures/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": "B4", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://en.wikipedia.org/wiki/Cocktail_shaker_sort" ...
a0bb975f690e12ff3dfa42b94028163fb9119027
2022-11-09 22:46:00
docker.io/swerebenchv2/rare-technologies-smart-open:737-a0bb975
rare-technologies__smart_open-737
Function: compression_wrapper(file_obj, mode, compression=INFER_FROM_EXTENSION, filename=None) Location: smart_open/compression.py Inputs: - **file_obj**: a binary file‑like object (e.g., BytesIO, opened file). Must support read/write as appropriate for *mode*. - **mode**: string, either `'rb'` for read or `'wb'` for w...
python
MIT
diff --git a/smart_open/compression.py b/smart_open/compression.py index fe02246..08469e7 100644 --- a/smart_open/compression.py +++ b/smart_open/compression.py @@ -62,6 +62,7 @@ def register_compressor(ext, callback): """ if not (ext and ext[0] == '.'): raise ValueError('ext must be a string startin...
Bring back compression_wrapper(filename) + use case-insensitive extension matching Fixes #736. - [x] Add test(s), both for the "case-insensitive extension" and for `filename=X` itself.
Make compression_wrapper accept filename again The `smart_open.compression.compression_wrapper()` used to accept a `filename` parameter. This is necessary in cases where the input `file_obj` cannot be modified = monkey-patchong a `.name` attribute into it is undesirable. This feature was removed in 930c897aab96821bd...
RaRe-Technologies/smart_open
diff --git a/smart_open/tests/test_compression.py b/smart_open/tests/test_compression.py new file mode 100644 index 0000000..4b93f63 --- /dev/null +++ b/smart_open/tests/test_compression.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2020 Radim Rehurek <me@radimrehurek.com> +# +# This code is distribu...
[ "smart_open/tests/test_compression.py::test_compression_wrapper_read[fileobj0-disable-None]", "smart_open/tests/test_compression.py::test_compression_wrapper_read[fileobj1-disable-]", "smart_open/tests/test_compression.py::test_compression_wrapper_read[fileobj2-infer_from_extension-file.txt]", "smart_open/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":...
74940ed6a87e5177f0d732839b7562e8a4c662de
2022-11-16 18:20:43
docker.io/swerebenchv2/openmdao-openmdao:2715-74940ed
openmdao__openmdao-2715
Function: opt_report(prob) Location: openmdao.visualization.opt_report.opt_report Inputs: prob – an OpenMDAO Problem instance whose driver is expected to have `supports['optimization'] == True`. If the driver does not support optimization, a `DriverWarning` is emitted. Outputs: None (side‑effect: writes an optimizer re...
python
custom-check-github
diff --git a/openmdao/core/driver.py b/openmdao/core/driver.py index b5fc90ac9..57f017910 100644 --- a/openmdao/core/driver.py +++ b/openmdao/core/driver.py @@ -149,6 +149,7 @@ class Driver(object): # What the driver supports. self.supports = OptionsDictionary(parent_name=type(self).__name__) + ...
change default for Driver supports['optimization'] to False ### Summary The `supports['optimization']` option previously [defaulted](https://github.com/OpenMDAO/OpenMDAO/blob/master/openmdao/core/driver.py#L163) to True in the Driver base class. Since the base Driver class does not in fact support optimization, t...
Change default for Driver option supports['optimization'] to False ### Desired capability or behavior. The `supports['optimization']` option currently [defaults](https://github.com/OpenMDAO/OpenMDAO/blob/master/openmdao/core/driver.py#L163) to `True` in the Driver base class. This is actually incorrect, as the b...
OpenMDAO/OpenMDAO
diff --git a/openmdao/visualization/opt_report/tests/test_opt_report.py b/openmdao/visualization/opt_report/tests/test_opt_report.py index 1b93a3fd1..eccb265eb 100644 --- a/openmdao/visualization/opt_report/tests/test_opt_report.py +++ b/openmdao/visualization/opt_report/tests/test_opt_report.py @@ -163,8 +163,14 @@ cl...
[ "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": "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/OpenMDAO/OpenMDAO/blob/master/openm...
ef63e743d09cdad66f99637cfc982dd9b3dc68e5
2020-01-26 05:36:54
docker.io/swerebenchv2/d0c-s4vage-pfp:128-ef63e74
d0c-s4vage__pfp-128
No new interfaces are introduced.
python
MIT
diff --git a/pfp/interp.py b/pfp/interp.py index 73aafa6..f502497 100644 --- a/pfp/interp.py +++ b/pfp/interp.py @@ -1283,6 +1283,8 @@ class PfpInterp(object): # char a: 8, b:8; # char c: 8, d:8; if ( + isinstance(prev, fields.NumberBase) + ...
Added better short circuiting to logical or operators fixes #127
Boolean logic short circuiting should lazily resolve variable references ## Describe the bug Short circuiting in 010 editor does not resolve variables until the actual comparison is made. E.g., consider the 010 template below: ```c local int a = 1; if (a || DOES_NOT_EXIST) { Printf("Short circuit power!\n"...
d0c-s4vage/pfp
diff --git a/tests/test_basic.py b/tests/test_basic.py index 1739846..352ba33 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -335,6 +335,20 @@ class TestBasic(utils.PfpTestCase): stdout="0,1,1,1", ) + def test_logical_or_operator_lazy_resolve(self): + """Test that logic ...
[ "tests/test_basic.py::TestBasic::test_logical_or_operator_lazy_resolve", "tests/test_basic.py::TestBasic::test_logical_or_operator_lazy_resolve_with_string_data" ]
[ "tests/test_basic.py::TestBasic::test_add", "tests/test_basic.py::TestBasic::test_add_operator", "tests/test_basic.py::TestBasic::test_add_operator_with_string_data", "tests/test_basic.py::TestBasic::test_add_with_string_data", "tests/test_basic.py::TestBasic::test_and_operator", "tests/test_basic.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": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
7a95708b949c673b9d6d7140e9330b94a76f53f1
2022-09-01 22:07:43
docker.io/swerebenchv2/py-pdf-pypdf2:1316-7a95708
py-pdf__pypdf2-1316
No new interfaces are introduced.
python
custom-check-github
diff --git a/PyPDF2/_codecs/adobe_glyphs.py b/PyPDF2/_codecs/adobe_glyphs.py index 746af0de..6d8f7fbd 100644 --- a/PyPDF2/_codecs/adobe_glyphs.py +++ b/PyPDF2/_codecs/adobe_glyphs.py @@ -13425,3 +13425,13 @@ adobe_glyphs = { "/zukatakana": "\u30BA", "/zwarakay": "\u0659", } + + +def _complete() -> None: + ...
ROB: Accept '/annn' charset as ASCII code fixes #1312
Invalid Text_extraction ## Environment Which environment were you using when you encountered the problem? ```Python 3.10 - Windows ; PyPDF 2.10.4``` ## Code + PDF ```python import PyPDF2;p=PyPDF2.PdfReader("c:/main.pdf");p.pages[0].extract_text() ``` [main.pdf](https://github.com/py-pdf/PyPDF2/files/94...
py-pdf/PyPDF2
diff --git a/tests/test_cmap.py b/tests/test_cmap.py index 8aa15143..9218a45d 100644 --- a/tests/test_cmap.py +++ b/tests/test_cmap.py @@ -46,3 +46,11 @@ def test_get_font_width_from_default(): # L40 reader = PdfReader(BytesIO(get_pdf_from_url(url, name=name))) for page in reader.pages: page.extract...
[ "tests/test_cmap.py::test_ascii_charset", "tests/test_generic.py::test_number_object_exception" ]
[ "tests/test_generic.py::test_float_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_generic.py::test_boolean_object[false-false-5]", "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.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/py-pdf/PyPDF2/files/9472500/main.pd...
b1be8f7290c1816c851fa4506d4613be719cc0a8
2017-10-25 19:50:05
docker.io/swerebenchv2/kennethreitz-pipenv:976-b1be8f7
kennethreitz__pipenv-976
Method: Project.parsed_pipfile(self) Location: Accessed via the `proj.parsed_pipfile` attribute on a `pipenv.project.Project` instance. Inputs: None (uses the internal `_pipfile_location` to locate and read the Pipfile). Outputs: Returns a dictionary representing the parsed Pipfile; raises **RuntimeError** if the Pipfi...
python
MIT
diff --git a/pipenv/project.py b/pipenv/project.py index 027da542..36a2bd42 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -227,6 +227,14 @@ class Project(object): with open(self.pipfile_location) as f: contents = f.read() + sections = re.findall("\[[a-zA-Z-]+\]", contents) + ...
Fix #973 Fails if two conflicting "requires" sections are present. Add a more explicit error message if a section of the Pipfile is duplicated
Fails if two conflicting "requires" sections are present. I stumbled upon this since, at some point, an extra `requires` section was added to my `Pipifile`. I'm not able to reproduce the circumstances that lead to such a malformed configuration file, but still the reaction of `pipenv` is quite baffling. ##### Descr...
kennethreitz/pipenv
diff --git a/tests/test_project.py b/tests/test_project.py index 3375415c..6436f58f 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -1,4 +1,5 @@ import pipenv.project +import pytest from pipenv.vendor import delegator @@ -153,3 +154,22 @@ class TestProject(): assert lockfile['_meta']['h...
[ "tests/test_project.py::TestProject::test_duplicate_sections" ]
[ "tests/test_project.py::TestProject::test_proper_names", "tests/test_project.py::TestProject::test_download_location", "tests/test_project.py::TestProject::test_parsed_pipfile", "tests/test_project.py::TestProject::test_internal_pipfile", "tests/test_project.py::TestProject::test_internal_lockfile" ]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
510d7281fff6c739b360800d0294accb9b545c17
2023-05-01 18:10:12
docker.io/swerebenchv2/pallets-werkzeug:2686-510d728
pallets__werkzeug-2686
Method: Authorization.from_header(cls, header) Location: src/werkzeug/datastructures/auth.py Inputs: - **header** (str | None): The raw ``Authorization`` header value. May be ``None``. When present, the method expects a scheme (e.g., ``Token``) followed by either a token string or a ``key=value`` list. The implementat...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 402d3bba..0a37fd89 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ Version 2.3.4 Unreleased +- ``Authorization.from_header`` detects tokens that end with base64 padding (``=``). + :issue:`2685` + Version 2.3.3 ------------- diff --git a/src/werkzeug/...
Make werkzeug.http.parse_dict_header avoid base64 padding Strip off trailing `=` characters before parsing to avoid chopping up tokens. Fixes #2685 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or update relevant docs, in the ...
Authorization.from_header with "Token" scheme cannot handle base64 padding on tokens # Steps to reproduce ``` import base64 from werkzeug.datastructures.auth import Authorization token = base64.encodebytes(b"This has base64 padding").decode("utf-8").strip() a = Authorization.from_header(f"Token {token}") a.toke...
pallets/werkzeug
diff --git a/tests/test_http.py b/tests/test_http.py index 5ceb7ef5..8f21c12a 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -203,6 +203,19 @@ class TestHTTPUtility: assert Authorization.from_header(None) is None assert Authorization.from_header("foo").type == "foo" + def test_author...
[ "tests/test_http.py::TestHTTPUtility::test_authorization_token_padding" ]
[ "tests/test_http.py::TestHTTPUtility::test_accept", "tests/test_http.py::TestHTTPUtility::test_accept_parameter_with_space", "tests/test_http.py::TestHTTPUtility::test_mime_accept", "tests/test_http.py::TestHTTPUtility::test_accept_matches", "tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
abfd66784d19423317b672dcd912fd704730d534
2024-08-28 19:30:46
docker.io/swerebenchv2/getmoto-moto:8049-abfd667
getmoto__moto-8049
Method: CognitoIdpBackend._finalize_auth_success(self, client, user_pool, username) Location: moto/cognitoidp/models.py (within the auth‑flow handling, the return dict that builds the final successful response) Inputs: - `client`: the boto3 CognitoIdp client used for the request. - `user_pool`: the UserPool obj...
python
Apache-2.0
diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py index 25c8450b3..81a639d8d 100644 --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -1389,13 +1389,14 @@ class CognitoIdpBackend(BaseBackend): ) return { + "ChallengeParameters": {}, "Authenti...
CognitoIDP - improve MFA flows Fixes #8029 - Forces MFA setup when MFA_CONFIG is ON, not when it's optional - Respond with SOFTWARE_TOKEN_MFA when it's the user preference, or when MFA_CONFIG is ON and user already had a token verified - Verifies an auth flow after MFA has been configured
If MfaConfiguration is "ON", then software_token_mfa_enabled should be set in verify_software_token Presently, software_token_mfa_enabled is only set to True in admin_set_user_mfa_preference. (When MfaConfiguration is "ON", I don't know it it should be set even earlier than verify_software_token, but it should be se...
getmoto/moto
diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py index 26b0cec20..0e5077a78 100644 --- a/tests/test_cognitoidp/test_cognitoidp.py +++ b/tests/test_cognitoidp/test_cognitoidp.py @@ -3071,14 +3071,219 @@ def user_authentication_flow( } +@cognitoidp_aws_verified(gen...
[ "tests/test_cognitoidp/test_cognitoidp.py::test_user_authentication_flow_mfa_on", "tests/test_cognitoidp/test_cognitoidp.py::test_initiate_mfa_auth_USER_PASSWORD_AUTH_with_FORCE_CHANGE_PASSWORD_status" ]
[ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
8426c680402b8bf1cb1bff1a86c958aac40807bc
2016-04-15 23:33:05
docker.io/swerebenchv2/rpi-distro-python-gpiozero:283-8426c68
rpi-distro__python-gpiozero-283
Function: pin_factory(number) Location: gpiozero.devices module Inputs: - **number** (int): The GPIO pin identifier that should be instantiated. Outputs: - Returns an instance of a subclass of `gpiozero.pins.Pin` (e.g., `RPiGPIOPin`, `NativePin`, etc.). The callable may raise the same exceptions that device construct...
python
custom-check-github
diff --git a/docs/api_pins.rst b/docs/api_pins.rst index 83a9dae..5ad818c 100644 --- a/docs/api_pins.rst +++ b/docs/api_pins.rst @@ -25,34 +25,45 @@ integer number instead, it uses one of the following classes to provide the 4. :class:`gpiozero.pins.native.NativePin` You can change the default pin implementation by...
Fix #278 Allow the creation of remote pins easily with PiGPIOPin. Also changes DefaultPin to a pin_factory callable which accepts the input pin number.
Remote pin issue caused by pi_info I think the pigpio remote pin access is a really interesting prospect. Trying the brilliant demo in the docs of creating an instance of a pin object remotely on a Pi from another machine currently fails when run on a computer that's not a Pi due to the exception raised in `pi_info()`....
RPi-Distro/python-gpiozero
diff --git a/tests/test_boards.py b/tests/test_boards.py index 304e128..627325e 100644 --- a/tests/test_boards.py +++ b/tests/test_boards.py @@ -19,9 +19,9 @@ def setup_function(function): import gpiozero.devices # dirty, but it does the job if function.__name__ in ('test_robot', 'test_ryanteck_robot', '...
[ "tests/test_boards.py::test_pi_liter", "tests/test_boards.py::test_pi_liter_graph", "tests/test_boards.py::test_pi_traffic", "tests/test_boards.py::test_snow_pi", "tests/test_boards.py::test_fish_dish", "tests/test_boards.py::test_traffic_hat", "tests/test_boards.py::test_robot", "tests/test_boards.py...
[ "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_nested", "tests/test_boards.py::test_led_board_bad_blink", ...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
5c3adc402caa941ab162d0d25d54217a1ff82a88
2023-10-16 14:50:09
docker.io/swerebenchv2/aio-libs-aiohttp:7713-5c3adc4
aio-libs__aiohttp-7713
Exception: InvalidURLError Location: aiohttp/http_exceptions.py (added to the public exception hierarchy) Inputs: line – the raw request‑line bytes that failed URI validation (e.g., b"GET ! HTTP/1.1\r\n") Outputs: raises the exception; no return value. The exception signals that the request URI does not conform to any ...
python
custom-check-github
diff --git a/CHANGES/7712.bugfix b/CHANGES/7712.bugfix new file mode 100644 index 000000000..b5304c34a --- /dev/null +++ b/CHANGES/7712.bugfix @@ -0,0 +1,1 @@ +Add check to validate that absolute URIs have schemes. diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py index 4dd615ad3..3eef05020 100644 --- a/aioh...
Add check to validate absolute URIs ## What do these changes do? This PR adds URI validation to the Python HTTP parser so that it matches llhttp. ## Are there changes in behavior for the user? No changes should be observable, unless the user's HTTP client is sending malformed requests. ## Related issue numb...
absolute-form URIs are not validated ### Describe the bug AIOHTTP parses request URIs like this: (from `aiohttp/http_parser.py:561-584`) ```python3 if method == "CONNECT": # authority-form, # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.3 url = URL.build(...
aio-libs/aiohttp
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py index 4ed27e67e..a234a895f 100644 --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -740,6 +740,11 @@ def test_http_request_parser_bad_version_number(parser: Any) -> None: parser.feed_data(b"GET /test HTTP/1.32\r\n\r\n") +d...
[ "tests/test_http_parser.py::test_http_request_parser_bad_uri[py-parser-pyloop]" ]
[ "tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]", "tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]", "tests/test_http_parser.py::test_bad_headers[py-parser-pyloop-Content-Length:", "tests/test_http_parser.py::test_bad_headers[py-parser-pyloop-Foo:", "tests/test_http_parser....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://datatracker.ietf.org/doc/html/rfc7230#section-5....
893ae6eb800851b1c17c437982608bb59d3bc6be
2024-08-05 21:20:37
docker.io/swerebenchv2/google-jax:22879-893ae6e
google__jax-22879
Function: logsumexp(a, axis=None, b=None, keepdims=False, return_sign=False, where=None) Location: jax.scipy.special.logsumexp Inputs: - **a**: ArrayLike – input array over which the reduction is performed. - **axis**: optional Axis – axes to reduce; defaults to all axes. - **b**: optional ArrayLike – element‑wise weig...
python
Apache-2.0
diff --git a/jax/_src/ops/special.py b/jax/_src/ops/special.py index 59ad594ef..45b26b0de 100644 --- a/jax/_src/ops/special.py +++ b/jax/_src/ops/special.py @@ -14,12 +14,12 @@ from __future__ import annotations -from typing import overload, Literal +from typing import Literal, overload import jax from jax imp...
Rolling forward #22836 Rolling forward #22836 This version, proposed by @dfm, does not have a custom JVP for the whole logsumexp and instead fixes #22398 directly. Reverts e416c6675acfd82866a6e83e8c221640c4d02f29
Incorrect Jacobian of `jax.scipy.special.logsumexp` when `b` contains a `0` ### Description The gradient of `jax.scipy.special.logsumexp` along `b` is wrong when `b` contains a `0`. In the following example, the gradient of $f(x_1, x_2) = \log(x_1 + x_2)$ should be: ```math \nabla_x f(x) = \left( \frac{1}{x_1 + x_2}...
google/jax
diff --git a/tests/lax_scipy_test.py b/tests/lax_scipy_test.py index 1ed410cba..66d84c427 100644 --- a/tests/lax_scipy_test.py +++ b/tests/lax_scipy_test.py @@ -20,9 +20,9 @@ import unittest from absl.testing import absltest import numpy as np +import scipy.cluster as osp_cluster import scipy.integrate import sci...
[ "tests/lax_scipy_test.py::LaxBackedScipyTests::testLogSumExpZerosJac" ]
[ "tests/lax_scipy_test.py::LaxBackedScipyTests::testBesselJn0", "tests/lax_scipy_test.py::LaxBackedScipyTests::testBesselJn1", "tests/lax_scipy_test.py::LaxBackedScipyTests::testBesselJn2", "tests/lax_scipy_test.py::LaxBackedScipyTests::testBesselJn3", "tests/lax_scipy_test.py::LaxBackedScipyTests::testBesse...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/google/jax/issues/22398" ], ...
b0750af5875c4aceb52ae38970c21514b4d30d11
2021-12-25 20:35:30
docker.io/swerebenchv2/theacodes-nox:535-b0750af
theacodes__nox-535
Method: CondaEnv.bin_paths(self) Location: nox.virtualenv.CondaEnv class, property returning List[str] of directories that should be added to PATH for a conda environment. Inputs: None (uses internal `self.location` and the module‑level `_SYSTEM` flag to decide platform). Outputs: On Windows returns a list containing t...
python
Apache-2.0
diff --git a/nox/virtualenv.py b/nox/virtualenv.py index 501118f..4d928ab 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -231,9 +231,16 @@ class CondaEnv(ProcessEnv): @property def bin_paths(self) -> List[str]: """Returns the location of the conda env's bin folder.""" - # see https:...
Correct bin paths in CondaEnv for Windows Closes #514.
conda bin_paths are missing `Library\...` subdirectories on windows <!-- Thank you for filing a bug! Please feel free to answer as much or as little of this template as you can. --> **Describe the bug** When running python code that requires external executables from `conda` packages - i.e. `ipopt`, they cannot b...
theacodes/nox
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index c1df711..441eaa8 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -230,7 +230,14 @@ def test_conda_env_create_verbose(make_conda): @mock.patch("nox.virtualenv._SYSTEM", new="Windows") def test_condaenv_bin_windows(make_conda...
[ "tests/test_virtualenv.py::test_condaenv_bin_windows" ]
[ "tests/test_virtualenv.py::test_process_env_constructor", "tests/test_virtualenv.py::test_process_env_create", "tests/test_virtualenv.py::test_condaenv_constructor_defaults", "tests/test_virtualenv.py::test_condaenv_constructor_explicit", "tests/test_virtualenv.py::test_condaenv_create", "tests/test_virtu...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
b394c08199f2fd4daab8cb80abacdff7502f99d2
2020-12-14 21:40:57
docker.io/swerebenchv2/googleapis-python-api-core:115-b394c08
googleapis__python-api-core-115
Function: _refresh_http(api_request, operation_name, retry=None) Location: google.api_core.operation._refresh_http Inputs: - **api_request**: Callable that performs an HTTP request; expected to be called with keyword arguments `method="GET"` and `path="operations/<operation_name>"`. In tests it is a `mock.Mock`. - **op...
python
Apache-2.0
diff --git a/google/api_core/operation.py b/google/api_core/operation.py index 55adbdd..9af9c4e 100644 --- a/google/api_core/operation.py +++ b/google/api_core/operation.py @@ -192,7 +192,7 @@ class Operation(polling.PollingFuture): ) -def _refresh_http(api_request, operation_name): +def _refresh_http(api_...
fix: support 'retry' for operations built from HTTP/gRPC responses Closes #87.
from_grpc fails with got an unexpected keyword argument 'retry' A call to `from_grpc` fails with ``` Traceback (most recent call last): File "deploy.py", line 43, in <module> main() File "deploy.py", line 36, in main if op.done() == True: File "/home/rosariod/.virtualenv/automl/lib/python3.6/sit...
googleapis/python-api-core
diff --git a/tests/unit/test_operation.py b/tests/unit/test_operation.py index 829a3f3..2229c2d 100644 --- a/tests/unit/test_operation.py +++ b/tests/unit/test_operation.py @@ -177,17 +177,39 @@ def test_unexpected_result(): def test__refresh_http(): - api_request = mock.Mock(return_value={"name": TEST_OPERATIO...
[ "tests/unit/test_operation.py::test__refresh_http_w_retry", "tests/unit/test_operation.py::test__refresh_grpc_w_retry" ]
[ "tests/unit/test_operation.py::test_constructor", "tests/unit/test_operation.py::test_metadata", "tests/unit/test_operation.py::test_cancellation", "tests/unit/test_operation.py::test_result", "tests/unit/test_operation.py::test_done_w_retry", "tests/unit/test_operation.py::test_exception", "tests/unit/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/googleapis/python-api-core/blob/mas...
4cb366c7c652bcd05a5f3b4bfb10a5172720859c
2022-11-21 15:54:42
docker.io/swerebenchv2/getindata-kedro-kubeflow:202-4cb366c
getindata__kedro-kubeflow-202
Method: ResourceConfig.__getitem__(self, key: str) → dict Location: kedro_kubeflow/config.py Inputs: - **self** – the ResourceConfig instance (a dict subclass containing a “__default__” entry and optional node‑specific entries). - **key** – the name of the node (e.g., “node2” or “__default__”). Outputs: - Returns a *...
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8353ef4..277c3fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- Removed field validation from resources configuration field - now it can take any custom parameters such as "nvidia.com/gpu":1 + ## [0.7.3] - 2022-09-23 - Fixed plu...
WIP feat: Changed resource config to allow custom values #### Description For fixing error with labels for nvidia gpus/tpus being not propagated/transmitted to environments properly Resolves #199 ##### PR Checklist - [x] Tests added - [x] [Changelog](CHANGELOG.md) updated
Resource nvidia.com/gpu Not Handled by ResourceConfig In kedro-kubeflow 0.7.3, if gpu's are assigned in `kubeflow.yaml` using an `nvidia.com/gpu` element, they are not applied to the node as expected in the generated pipeline since they are not handled by the respective ResourceConfig class in `config.py`: https://git...
getindata/kedro-kubeflow
diff --git a/tests/test_config.py b/tests/test_config.py index bd33360..d66e2cf 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -28,27 +28,28 @@ run_config: class TestPluginConfig(unittest.TestCase, MinimalConfigMixin): def test_plugin_config(self): cfg = PluginConfig(**yaml.safe_load(CON...
[ "tests/test_config.py::TestPluginConfig::test_resources_default_and_node_specific", "tests/test_config.py::TestPluginConfig::test_resources_default_only", "tests/test_config.py::TestPluginConfig::test_resources_gpu_label", "tests/test_config.py::TestPluginConfig::test_resources_no_default", "tests/test_pod_...
[ "tests/test_config.py::TestPluginConfig::test_defaults", "tests/test_config.py::TestPluginConfig::test_do_not_keep_volume_by_default", "tests/test_config.py::TestPluginConfig::test_missing_required_config", "tests/test_config.py::TestPluginConfig::test_plugin_config", "tests/test_config.py::TestPluginConfig...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6
2024-08-24 15:10:11
docker.io/swerebenchv2/aio-libs-aiohttp:8875-48a5e07
aio-libs__aiohttp-8875
Property: StreamResponse.prepared Location: aiohttp/web_response.py → class StreamResponse Inputs: None (property access on a StreamResponse instance) Outputs: bool – returns ``True`` when the response has either started sending payload (i.e., ``_payload_writer`` is set) **or** after ``write_eof`` has been called (``_e...
python
custom-check-github
diff --git a/CHANGES/5343.bugfix b/CHANGES/5343.bugfix new file mode 100644 index 000000000..4e33071ea --- /dev/null +++ b/CHANGES/5343.bugfix @@ -0,0 +1,1 @@ +Fixed StreamResponse.prepared to return True after EOF is sent -- by :user:`arthurdarcet`. diff --git a/CHANGES/8847.misc.rst b/CHANGES/8847.misc.rst new file m...
Fix unclosed transport warning Fixes #5426.
ResourceWarning: unclosed transport when using SSL on server 🐞 **Describe the bug** Server with ssl enabled do not closes `_SSLProtocolTransport` properly, which leads to ResourceWarning. This 💡 **To Reproduce** Run the following script (requires [trustme](https://pypi.org/project/trustme/) package). ```pyt...
aio-libs/aiohttp
diff --git a/docs/testing.rst b/docs/testing.rst index 966bc4cad..1d29f3354 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -496,14 +496,12 @@ Framework Agnostic Utilities High level test creation:: - from aiohttp.test_utils import TestClient, TestServer, loop_context + from aiohttp.test_utils import...
[ "tests/test_client_functional.py::test_exception_when_read_outside_of_session[pyloop]", "tests/test_web_functional.py::test_handler_returns_not_response_after_100expect[pyloop]", "tests/test_web_response.py::test_prepared_after_eof", "tests/test_web_response.py::test_drain_before_start" ]
[ "tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_after_head_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_after_empty_body_status[pyloop-101]", "tests/test_client_functional.py::test_keepalive_after_e...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://pypi.org/project/trustme/" ], "intent_co...
b8ab97ebdd7a8d42d6e0578f591aebf28ed481ba
2022-06-30 02:26:46
docker.io/swerebenchv2/meltano-sdk:768-b8ab97e
meltano__sdk-768
Method: ConfigValidationError.__init__(self, message: str, *, errors: list[str] | None = None) → None Location: singer_sdk/exceptions.py Inputs: - **message** – Human‑readable error description. - **errors** (optional) – List of validation error strings; if omitted an empty list is stored. Outputs: - Constructs the exc...
python
Apache-2.0
diff --git a/samples/sample_tap_sqlite/__init__.py b/samples/sample_tap_sqlite/__init__.py index 49b4365f..3aed5d21 100644 --- a/samples/sample_tap_sqlite/__init__.py +++ b/samples/sample_tap_sqlite/__init__.py @@ -48,6 +48,7 @@ class SQLiteTap(SQLTap): DB_PATH_CONFIG, th.StringType, ...
feat: Better error messages when config validation fails ## Summary of changes 1. Writes each validation error message to stderr and aborts the app execution: ```console $ poetry run python samples/sample_tap_sqlite 2023-11-17 16:09:23,020 | ERROR | tap-sqlite-sample | Config validation error: 'p...
feature: Validate tap/target config options I just found that I've been running a tap with a misnamed option in the config file for almost 3 months. Despite this fact, `name=tap-github level=INFO message=Config validation passed with 0 warnings.` It would be helpful if the sdk, as part of the config validation, actual...
meltano/sdk
diff --git a/tests/core/conftest.py b/tests/core/conftest.py new file mode 100644 index 00000000..06355ccf --- /dev/null +++ b/tests/core/conftest.py @@ -0,0 +1,101 @@ +"""Tap, target and stream test fixtures.""" + +from __future__ import annotations + +import typing as t + +import pendulum +import pytest + +from singe...
[ "tests/core/test_mapper_class.py::test_config_errors[missing_stream_maps]", "tests/core/test_tap_class.py::test_config_errors[missing_username_and_password]", "tests/core/test_tap_class.py::test_config_errors[missing_password]", "tests/core/test_tap_class.py::test_config_errors[extra_property]", "tests/core...
[ "tests/core/test_mapper_class.py::test_config_errors[valid_config]", "tests/core/test_streams.py::test_stream_apply_catalog", "tests/core/test_streams.py::test_stream_starting_timestamp[datetime-repl-key-no-state]", "tests/core/test_streams.py::test_stream_starting_timestamp[datetime-repl-key-recent-bookmark]...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://mypy.readthedocs.io/en/stable/command_line.htm...
7a95708b949c673b9d6d7140e9330b94a76f53f1
2022-09-01 21:54:19
docker.io/swerebenchv2/py-pdf-pypdf2:1315-7a95708
py-pdf__pypdf2-1315
Method: FloatObject.__new__(cls, value) Location: PyPDF2/generic/_base.py – class FloatObject(decimal.Decimal, PdfObject) Inputs: - cls: the FloatObject class. - value: Any type representing a numeric value (e.g., str, bytes, int, Decimal). Invalid formats (e.g., non‑numeric strings) are accepted but trigger fallback ...
python
custom-check-github
diff --git a/PyPDF2/generic/_base.py b/PyPDF2/generic/_base.py index 72d69b1d..c3a2b1f8 100644 --- a/PyPDF2/generic/_base.py +++ b/PyPDF2/generic/_base.py @@ -233,13 +233,10 @@ class FloatObject(decimal.Decimal, PdfObject): try: return decimal.Decimal.__new__(cls, str_(value), context) ex...
ROB: Log errors during Float / NumberObject initialization fixes #1271
ValueError: invalid literal for int() with base 10: b'0,0' See https://github.com/py-pdf/PyPDF2/issues/1269 for further details, this reports another issue I've come accross. ## Environment Which environment were you using when you encountered the problem? ```bash $ python -m platform Linux-5.4.0-122-generic...
py-pdf/PyPDF2
diff --git a/tests/test_generic.py b/tests/test_generic.py index 5b612be1..4ca18308 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -39,8 +39,14 @@ PROJECT_ROOT = TESTS_ROOT.parent RESOURCE_ROOT = PROJECT_ROOT / "resources" -def test_float_object_exception(): +def test_float_object_exception(capl...
[ "tests/test_generic.py::test_number_object_exception" ]
[ "tests/test_generic.py::test_float_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_generic.py::test_boolean_object[false-false-5]", "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/py-pdf/PyPDF2/issues/1269" ], ...
6ed3e377365b2c0cce583ee606c4cd3e1e69e8b5
2020-10-29 17:45:03
docker.io/swerebenchv2/alteryx-evalml:1365-6ed3e37
alteryx__evalml-1365
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 6f61626d..a70129fc 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -4,6 +4,7 @@ Release Notes **Future Releases** * Enhancements * Added ability to freeze hyperparameters for AutoMLSearch :p...
Adding the Index ID to explain_prediction_best_worst_output ### Pull Request Description Fixes #1119. FYI @RezaAkhtar ----- *After creating the pull request: in order to pass the **release_notes_updated** check you will need to update the "Future Release" section of* `docs/source/release_notes.rst` *to includ...
Prediction explanations: display Index ID for best/worst prediction explanations **Goal** If users intend to understand the best and worst predictions, the API should allow them to see the Index of the explanations. If the user can provide the index column (perhaps through DataTables), that index ID could be displ...
alteryx/evalml
diff --git a/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py b/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py index d08362ba..e051acb7 100644 --- a/evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py +++...
[ "evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_predictions_best_worst_and_explain_predictions[regression-text-Test", "evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_predictions_best_worst_and_explain_pre...
[ "evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction_value_error[5]", "evalml/tests/model_understanding_tests/prediction_explanations_tests/test_explainers.py::test_explain_prediction_value_error[test_features1]", "evalml/tests/model_understanding_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":...
cf59b8f558cc8121c5fe2de6db70ab91560e2da8
2020-11-04 17:39:25
docker.io/swerebenchv2/palantir-python-language-server:885-cf59b8f
palantir__python-language-server-885
Function: pyls_lint(workspace, document) Location: pyls/plugins/flake8_lint.py Inputs: - **workspace** – a `Workspace` instance providing project configuration and operating‑system context. - **document** – a `Document` object representing the file to be lint‑checked (may be unsaved, i.e., with in‑memory content). Outp...
python
MIT
diff --git a/pyls/plugins/flake8_lint.py b/pyls/plugins/flake8_lint.py index 1a65851..4f2e054 100644 --- a/pyls/plugins/flake8_lint.py +++ b/pyls/plugins/flake8_lint.py @@ -144,6 +144,8 @@ def parse_stdout(document, stdout): _, line, character, code, msg = parsed_line line = int(line) - 1 cha...
Add code in front of the diagnostic message for flake8 For the issue discussed in https://github.com/palantir/python-language-server/issues/884, it would be better to also add the code in front the actual diagnostic message, to make the message style the same as pycodestyle. Fixes #884.
It would be better to keep output from the flake8 linter to be consistent with that of pycodestyle. Currently, the return message the flake8 linter [here](https://github.com/palantir/python-language-server/blob/develop/pyls/plugins/flake8_lint.py) does not contain the error code, while that of pycodestyle also include ...
palantir/python-language-server
diff --git a/test/plugins/test_flake8_lint.py b/test/plugins/test_flake8_lint.py index acc770b..75adf4e 100644 --- a/test/plugins/test_flake8_lint.py +++ b/test/plugins/test_flake8_lint.py @@ -31,7 +31,7 @@ def temp_document(doc_text, workspace): def test_flake8_unsaved(workspace): doc = Document('', workspace, D...
[ "test/plugins/test_flake8_lint.py::test_flake8_unsaved", "test/plugins/test_flake8_lint.py::test_flake8_lint" ]
[ "test/plugins/test_flake8_lint.py::test_flake8_config_param", "test/plugins/test_flake8_lint.py::test_flake8_executable_param" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/palantir/python-language-server/blob/...
f036adc140e51847ec175366ac1bb9989c0bc7be
2024-08-07 19:12:35
docker.io/swerebenchv2/getmoto-moto:7946-f036adc
getmoto__moto-7946
Method: AthenaResponse.delete_work_group(self) Location: moto/athena/responses.py → class AthenaResponse, method delete_work_group Inputs: - WorkGroup (str) – name of the work group to delete, obtained from the request parameters (`self._get_param("WorkGroup")`). Outputs: Returns a JSON‑serialised empty object (`...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index bac09b6de..a621e2919 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -434,7 +434,7 @@ ## athena <details> -<summary>23% implemented</summary> +<summary>25% implemented</summary> - [ ] batch_get_named_query - [...
Athena: delete_work_group() and default configuration Fixes #7887
primary Athena workgroup is missing EnforceWorkGroupConfiguration The primary Athena workgroup initialized [here](https://github.com/getmoto/moto/blob/master/moto/athena/models.py#L181-L183), does not have the `EnforceWorkGroupConfiguration` set. This prevents running `awswrangler.athena.read_sql_query()` against `moto...
getmoto/moto
diff --git a/tests/test_athena/test_athena.py b/tests/test_athena/test_athena.py index dafa7de42..c48c08f6a 100644 --- a/tests/test_athena/test_athena.py +++ b/tests/test_athena/test_athena.py @@ -5,6 +5,7 @@ from botocore.exceptions import ClientError from moto import mock_aws, settings from moto.athena.models impor...
[ "tests/test_athena/test_athena.py::test_get_primary_workgroup", "tests/test_athena/test_athena.py::test_create_and_get_workgroup", "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_list_exports" ]
[ "tests/test_athena/test_athena.py::test_create_work_group", "tests/test_athena/test_athena.py::test_start_query_execution", "tests/test_athena/test_athena.py::test_start_query_execution_without_result_configuration", "tests/test_athena/test_athena.py::test_start_query_validate_workgroup", "tests/test_athena...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/getmoto/moto/blob/master/moto/athen...
9e53cae88e03e49406210108928714ba56f90f5b
2024-08-21 20:02:24
docker.io/swerebenchv2/aristanetworks-anta:800-9e53cae
aristanetworks__anta-800
Method: AntaCatalog.merge_catalogs(cls, catalogs: list[AntaCatalog]) -> AntaCatalog Location: anta.catalog.AntaCatalog Inputs: - catalogs: list of AntaCatalog instances to be merged. Must be iterable; each element is an AntaCatalog object containing a `tests` attribute. Outputs: - Returns a new AntaCatalog instance w...
python
Apache-2.0
diff --git a/anta/catalog.py b/anta/catalog.py index 30bd3406..7ed4bc71 100644 --- a/anta/catalog.py +++ b/anta/catalog.py @@ -10,9 +10,11 @@ import logging import math from collections import defaultdict from inspect import isclass +from itertools import chain from json import load as json_load from pathlib impor...
fix(anta): Remove JSON output when saving to a file # Description When using the CLI command `anta nrfu json --output ./results.json`, results will be saved in a JSON file without printing to the console. Fixes #760 # Checklist: <!-- Delete not relevant items !--> - [X] My code follows the style guideli...
When using `anta nrfu json --output results.json` we shouldn't have the results on the console
aristanetworks/anta
diff --git a/tests/units/cli/nrfu/test_commands.py b/tests/units/cli/nrfu/test_commands.py index 8ad7745f..803c8f80 100644 --- a/tests/units/cli/nrfu/test_commands.py +++ b/tests/units/cli/nrfu/test_commands.py @@ -8,7 +8,7 @@ from __future__ import annotations import json import re from pathlib import Path -from ty...
[ "tests/units/test_catalog.py::TestAntaCatalog::test_merge_catalogs", "tests/units/test_catalog.py::TestAntaCatalog::test_merge" ]
[ "tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_table_help", "tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_text_help", "tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_json_help", "tests/units/cli/nrfu/test_commands.py::test_anta_nrfu_template_help", "tests/units/test_catalog.py::TestA...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": ...
9d1eab55a1d8bef109d59365aee3718d0a090b79
2021-06-24 18:05:58
docker.io/swerebenchv2/xgcm-xgcm:348-9d1eab5
xgcm__xgcm-348
Function: iterate_axis_combinations(items) Location: xgcm/metrics.py Inputs: items – list (or iterable) of axis identifiers (e.g., ['X', 'Y', 'Z']) Outputs: generator yielding tuples of frozensets, each representing a possible grouping of the input axes; first yields a tuple containing a single frozenset of all axes, t...
python
MIT
diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 1ff499b..1e0ee71 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -10,7 +10,7 @@ jobs: - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - exempt-issue-labels: '...
Exempt bug issues from automatic closing. <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #347
Overeager stale bot? I am finding myself to reopen most of the autoclosed issues here. Maybe we want to have some more time elapse between marking as stale and closing? I am also wondering if we should include `bug` in the exempt labels? @andersy005
xgcm/xgcm
diff --git a/xgcm/test/test_grid.py b/xgcm/test/test_grid.py index 1a6d0ce..a015764 100644 --- a/xgcm/test/test_grid.py +++ b/xgcm/test/test_grid.py @@ -4,16 +4,14 @@ import xarray as xr from xgcm.grid import Axis, Grid -from .datasets import ( # noqa: F401 - all_2d, - all_datasets, - datasets, - data...
[ "xgcm/test/test_grid.py::test_extend_right_left[True-None]", "xgcm/test/test_grid.py::test_extend_right_left[True-10]", "xgcm/test/test_grid.py::test_extend_right_left[True-360]", "xgcm/test/test_grid.py::test_extend_right_left[False-None]", "xgcm/test/test_grid.py::test_extend_right_left[False-10]", "xgc...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": "easy", "external_urls": [], "intent_completeness": "insufficient", "pr_categories...
21606a67231ae12d572cfc790bd59277f9a2609f
2020-11-04 23:47:32
docker.io/swerebenchv2/niconoe-pyinaturalist:71-21606a6
niconoe__pyinaturalist-71
No new interfaces are introduced.
python
MIT
diff --git a/.travis.yml b/.travis.yml index 19c3884..4287fbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,6 @@ dist: xenial matrix: include: - # Note: Python 3.5 will reach EOL in September 2020 - - python: "3.5" - python: "3.6" - python: "3.7" # Run a separate job for combined code quality c...
Drop support for python 3.5 Closes #60
Drop support for Python 3.5 [Python 3.5 reached EOL on 2020-09-13](https://devguide.python.org/#status-of-python-branches). I think it would be reasonable to **keep pyinaturalist compatible with Python 3.5 through v0.11**. For v0.12+, we can remove 3.5 from the tox tests and start making use of Python 3.6 features: f-s...
niconoe/pyinaturalist
diff --git a/test/manual_tests/obs_crud_test.py b/test/manual_tests/obs_crud_test.py index 9a4dbcc..2db3bff 100644 --- a/test/manual_tests/obs_crud_test.py +++ b/test/manual_tests/obs_crud_test.py @@ -58,7 +58,7 @@ def create_test_obs(token): observation_fields={297: 1}, ) test_obs_id = response[0]["...
[ "test/test_node_api.py::test_user_agent" ]
[ "test/test_node_api.py::test_get_observation", "test/test_node_api.py::test_get_observations", "test/test_node_api.py::test_get_all_observations", "test/test_node_api.py::test_get_geojson_observations", "test/test_node_api.py::test_get_geojson_observations__custom_properties", "test/test_node_api.py::test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B6", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": true }, "difficulty": "medium", "external_urls": [ "https://devguide.python.org/#status-of-python-branches...
99e3b464afb883e5088d56d34909a11765da9c8e
2024-10-20 02:05:41
docker.io/swerebenchv2/mpmath-mpmath:881-99e3b46
mpmath__mpmath-881
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py index fe2d3c8..18399b1 100644 --- a/mpmath/libmp/libmpf.py +++ b/mpmath/libmp/libmpf.py @@ -1098,7 +1098,7 @@ def to_digits_exp(s, dps, base=10): return sign, digits, exponent def round_digits(sign, digits, dps, base, rounding=round_nearest, - ...
Correct 'g' format type handling Closes #880
Incompatible (wrt CPython) formatting for format(mpmath.mpf(9.995074823339339e-05), '.0g') ```pycon >>> format(9.995074823339339e-05, '.0g') '0.0001' >>> format(mpmath.mpf(9.995074823339339e-05), '.0g') '1e-04' ``` see https://github.com/mpmath/mpmath/actions/runs/11398339589/job/31715210493
mpmath/mpmath
diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py index 9d96d48..7036988 100644 --- a/mpmath/tests/test_format.py +++ b/mpmath/tests/test_format.py @@ -467,6 +467,7 @@ def test_mpf_fmt_cpython(): st.floats(allow_nan=True, allow_infinity=True, allow_subnor...
[ "mpmath/tests/test_format.py::test_mpf_floats_bulk" ]
[ "mpmath/tests/test_format.py::test_mpf_fmt_cpython", "mpmath/tests/test_format.py::test_mpc_complexes", "mpmath/tests/test_format.py::test_mpc_fmt", "mpmath/tests/test_format.py::test_mpf_fmt", "mpmath/tests/test_format.py::test_issue_858", "mpmath/tests/test_format.py::test_errors", "mpmath/tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/mpmath/mpmath/actions/runs/11398339...
7ffb847b9ff69c113cc077f6cb6ec50e3dfc62d8
2024-07-31 22:07:15
docker.io/swerebenchv2/aio-libs-aiohttp:8566-7ffb847
aio-libs__aiohttp-8566
Method: aiohttp.ClientWebSocketResponse.receive(self, timeout: float | None = None) -> aiohttp.WSMessage Location: aiohttp/client_ws.py – class ClientWebSocketResponse Inputs: - **timeout** – optional maximum time (seconds) to wait for a WebSocket frame; if omitted the default internal timeout is used. Outputs: - Ret...
python
custom-check-github
diff --git a/CHANGES/8540.bugfix.rst b/CHANGES/8540.bugfix.rst new file mode 100644 index 000000000..ab7c47676 --- /dev/null +++ b/CHANGES/8540.bugfix.rst @@ -0,0 +1,7 @@ +Fixed WebSocket server heartbeat timeout logic to terminate `receive` and return :py:class:`~aiohttp.ServerTimeoutError` -- by :user:`arcivanov`. + ...
Fix url dispatcher index when variable is preceded by a fixed string after a slash <!-- Thank you for your contribution! --> ## What do these changes do? Fix url dispatcher index when variable is preceded by a fixed string after a slash. We need to strip off the fixed string when creating the index key so we can...
Matching tail pattern in add_route/add_* handling not working as expected in 3.10.0 ### Describe the bug The usage of https://docs.aiohttp.org/en/stable/faq.html#how-do-i-create-a-route-that-matches-urls-with-a-given-prefix seems to yield different results in 3.10.0 than in 3.9.5 for a certain condition. I've included...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index bad79cb47..caf00cc93 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,7 +6,7 @@ # aiodns==3.2.0 ; sys_platform == "linux" or sys_platform == "darwin" # via -r requirements/runtime-deps.in -aiohappyeyeballs==2.3.2 +aiohappyeyebal...
[ "tests/test_client_ws_functional.py::test_heartbeat_no_pong_concurrent_receive[pyloop]", "tests/test_web_urldispatcher.py::test_route_with_regex[pyloop]" ]
[ "tests/test_client_ws_functional.py::test_send_recv_text[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes_bad_type[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_bytes[pyloop]", "tests/test_client_ws_functional.py::test_send_recv_text_bad_type[pyloop]", "tests/test_client_w...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B5", "confidence": 0.86, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.aiohttp.org/en/stable/faq.html#how-do-i-cr...
893198a07c738c150753457f3cdf79ecac70e140
2025-01-14 16:02:04
docker.io/swerebenchv2/pennylaneai-pennylane:6821-893198a
pennylaneai__pennylane-6821
Function: compile(tape, basis_set=None, **kwargs) Location: pennylane.transforms.compile.compile Inputs: - **tape** – a `QuantumScript` (or iterable of tapes) representing the circuit to be compiled. - **basis_set** – an iterable (list, tuple, set, etc.) of operation names that should *not* be decomposed. Supplying ...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 963683936..941ea5a86 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -15,6 +15,9 @@ * The coefficients of observables now have improved differentiability. [(#6598)](https://github.com/PennyLaneAI/penny...
Allow empty `basis_set` in `qml.compile` **Context:** The `basis_set` keyword argument to `qml.compile` allows us to specify which operations not to decompose. Currently, passing an empty `basis_set` practically results in no decomposition, as the basis is set to `qml.ops.__all__`. An empty `basis_set` should be seen ...
Allow specifying `basis_set` as an empty set to `qml.compile` We currently have a `basis_set` keyword argument to `qml.compile` that specifies which operations to not decompose. If an operation is not in the basis set and does not have a decomposition, we leave it be. We may sometimes want to decompose anything tha...
PennyLaneAI/pennylane
diff --git a/tests/transforms/test_compile.py b/tests/transforms/test_compile.py index 9f9dd3d4c..e8090ebf0 100644 --- a/tests/transforms/test_compile.py +++ b/tests/transforms/test_compile.py @@ -201,6 +201,22 @@ class TestCompileIntegration: [compiled_tape], _ = qml.compile(tape) assert compiled_tap...
[ "tests/transforms/test_compile.py::TestCompileIntegration::test_compile_empty_basis_set" ]
[ "tests/transforms/test_compile.py::TestCompile::test_compile_invalid_pipeline", "tests/transforms/test_compile.py::TestCompile::test_compile_invalid_num_passes", "tests/transforms/test_compile.py::TestCompile::test_compile_mixed_tape_qfunc_transform", "tests/transforms/test_compile.py::TestCompile::test_compi...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
441d27a10813dd06d401562d30d9265d6b18afcf
2021-04-06 22:33:44
docker.io/swerebenchv2/rock-learning-pytransform3d:112-441d27a
rock-learning__pytransform3d-112
Function: batch_concatenate_quaternions(Q1, Q2, out=None) Location: pytransform3d.batch_rotations.batch_concatenate_quaternions Inputs: Q1 – array‑like with shape (..., 4) representing the first batch of quaternions; Q2 – array‑like with shape (..., 4) representing the second batch; out – optional pre‑allocated array o...
python
custom-check-github
diff --git a/doc/source/api.rst b/doc/source/api.rst index c1b5cf03..d4fca30f 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -327,6 +327,7 @@ Testing ~pytransform3d.transformations.assert_transform ~pytransform3d.transformations.assert_unit_dual_quaternion + ~pytransform3d.transformations.asser...
[MRG] Batch operations for dual quaternions Fixes #111 TODO - [x] positions and quaternions to dual quaternions - [x] dual quaternions to positions and quaternions - [x] dual quaternions to transformation matrices - [x] transformation matrices to dual quaternions - [x] concatenation of dual quaternions - [x...
Batch operations for dual quaternions - [x] positions and quaternions to dual quaternions - [x] dual quaternions to positions and quaternions - [x] dual quaternions to transformation matrices - [x] transformation matrices to dual quaternions - [x] concatenation of dual quaternions - [x] quaternion + dual conjugate...
rock-learning/pytransform3d
diff --git a/pytransform3d/test/test_batch_rotations.py b/pytransform3d/test/test_batch_rotations.py index 18b4bd8b..1f090a65 100644 --- a/pytransform3d/test/test_batch_rotations.py +++ b/pytransform3d/test/test_batch_rotations.py @@ -1,7 +1,7 @@ import numpy as np from pytransform3d import rotations as pr from pytr...
[ "pytransform3d/test/test_batch_rotations.py::test_norm_vectors_0dims", "pytransform3d/test/test_batch_rotations.py::test_norm_vectors_1dim", "pytransform3d/test/test_batch_rotations.py::test_norm_vectors_1dim_output_variable", "pytransform3d/test/test_batch_rotations.py::test_norm_vectors_3dims", "pytransfo...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
366d16b01a72d0baa54fef55761d846b0f05b8dd
2023-07-03 18:35:18
docker.io/swerebenchv2/3yourmind-django-migration-linter:258-366d16b
3yourmind__django-migration-linter-258
No new interfaces are introduced.
python
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3069d91..beafd65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,21 @@ Instead, the linter crashes and lets the `sqlmigrate` error raise, in order to avoid letting a problematic migration pass. One common reason for such an error is the SQL generation which requ...
Don't consider partial index creation as making a column not nullable. Fixes #250
Adding an index with a NOT NULL condition incorrectly triggers NOT_NULL rule Adding an index with a `WHERE` clause including `NOT NULL` gets flagged as a `NOT NULL constraint on columns` error. ## Steps to reproduce The follow migration operation: ```python AddIndexConcurrently( model_name="prediction", ...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index d7349fc..012d53c 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -297,6 +297,10 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX CONCURRENTLY title_idx ...
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_concurrently_where" ]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/3YOURMIND/django-migration-linter/blo...
e0ff5246e1d29b7710ab1a2bbc972b48169f1c05
2024-08-07 16:41:31
docker.io/swerebenchv2/aio-libs-aiohttp:8636-e0ff524
aio-libs__aiohttp-8636
Attribute: BaseConnector.allowed_protocol_schema_set Location: aiohttp/connector.py – class BaseConnector Inputs: None (class attribute) Outputs: frozenset containing the protocol schemas allowed by default for high‑level connections – {"", "http", "https", "ws", "wss"} Description: Set of protocol scheme strings that ...
python
custom-check-github
diff --git a/CHANGES/8565.bugfix.rst b/CHANGES/8565.bugfix.rst new file mode 100644 index 000000000..35e7c4dc7 --- /dev/null +++ b/CHANGES/8565.bugfix.rst @@ -0,0 +1,1 @@ +Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:`steverep`. diff --git a/CHANGES/8608.misc.rst b/CHANG...
Remove Request.wait_for_disconnection() method Fixes #8631.
Remove wait_for_disconnection This issue is for tracking purposes only so we don't forget > I'm not sure its useful, but I've also never had a use case for it. I'd open an issue to provide notice of intent to remove it, and than do so in 30 days if nobody objects. Well, it's only been in a release f...
aio-libs/aiohttp
diff --git a/requirements/test.txt b/requirements/test.txt index d54dc3fc3..ccf235d27 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,7 +6,7 @@ # aiodns==3.2.0 ; sys_platform == "linux" or sys_platform == "darwin" # via -r requirements/runtime-deps.in -aiohappyeyeballs==2.3.4 +aiohappyeyebal...
[ "tests/test_client_session.py::test_ws_connect_unix_socket_allowed_protocols[pyloop-unix]", "tests/test_client_ws_functional.py::test_close_websocket_while_ping_inflight[pyloop]", "tests/test_connector.py::test_tcp_connector_allowed_protocols[pyloop]", "tests/test_connector.py::test_base_connector_allows_high...
[ "tests/test_client_session.py::test_close_coro[pyloop]", "tests/test_client_session.py::test_init_headers_simple_dict[pyloop]", "tests/test_client_session.py::test_init_headers_list_of_tuples[pyloop]", "tests/test_client_session.py::test_init_headers_MultiDict[pyloop]", "tests/test_client_session.py::test_i...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.88, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/aio-libs/aiohttp/issues/8611#issuecom...
efe911f61a8d9ccd258b1c24bb9094fdce5d177d
2024-08-16 16:49:59
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3607-efe911f
aws-cloudformation__cfn-lint-3607
Method: DistributionTargetOriginId.validate(self, instance, validator) Location: src/cfnlint/rules/resources/cloudfront/DistributionTargetOriginId.py Inputs: - **instance** *(dict)* – The CloudFormation resource configuration for an `AWS::CloudFront::Distribution`, specifically the `DistributionConfig` section that ma...
python
MIT-0
diff --git a/src/cfnlint/rules/resources/cloudfront/DistributionTargetOriginId.py b/src/cfnlint/rules/resources/cloudfront/DistributionTargetOriginId.py index 39f0d963c..cf4bf4385 100644 --- a/src/cfnlint/rules/resources/cloudfront/DistributionTargetOriginId.py +++ b/src/cfnlint/rules/resources/cloudfront/DistributionT...
Look at OriginGroups too for rule E3057 *Issue #, if available:* fix #3606 *Description of changes:* - Look at OriginGroups too for rule E3057 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E3057 does not check if a TargetGroupID value is a valid OriginGroup. ### CloudFormation Lint Version 1.10.2 ### What operating system are you using? Mac ### Describe the bug E3057 is a false positive if a valid OriginGroup is specified as the TargetOriginID. The new rule only checks if the TargetOriginID is a val...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py b/test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py index 3b27e1cc8..eeb2e3cb7 100644 --- a/test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py +++ b/test/unit/rules/resources/cloudfro...
[ "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_validate[instance6-expected6]", "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_validate[instance7-expected7]", "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_va...
[ "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_validate[instance0-expected0]", "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_validate[instance1-expected1]", "test/unit/rules/resources/cloudfront/test_distribution_target_origin_id.py::test_va...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/aws-cloudformation/cfn-lint/pull/35...
efe3c077efdd366121fd8eee322250cf498a5653
2023-01-11 11:50:38
docker.io/swerebenchv2/pennylaneai-pennylane:3624-efe3c07
pennylaneai__pennylane-3624
Function: _get_random_args(args, interface, num, seed, bounds) Location: pennylane.math.is_independent Inputs: - args: sequence of arrays to be randomized. - interface: string specifying the autodiff interface ("autograd", "jax", "torch", "numpy"). - num: integer, number of random argument sets to generate. - seed: int...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index fc59a61f5..6adf859bb 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -160,13 +160,22 @@ from the queue instead of updating their metadata to have an `"owner"`. [(#3282)](https://github.com/PennyLaneA...
Use local random number generation where easily possible to switch Fixes #3622 Setting the global seed for random number generation affects every subsequent call to global random number generation. This can lead to unintended consequences, such as a lack of randomness when randomness is desired, or a disconnect be...
[BUG] qml.chem.molecular_hamiltonian sets random number generator seed ### Expected behavior When using the argument `shots=100` to a device one expects variation in the output. This variation depends on the random number generator that is used internally in the device. Setting on controlling the seed of the RNG i...
PennyLaneAI/pennylane
diff --git a/tests/math/test_is_independent.py b/tests/math/test_is_independent.py index cdeaf3062..5e933eaa9 100644 --- a/tests/math/test_is_independent.py +++ b/tests/math/test_is_independent.py @@ -115,11 +115,10 @@ class TestIsIndependentAutograd: seed = 921 rnd_args = _get_random_args(args, self....
[ "tests/qchem/test_hartree_fock.py::test_scf_leaves_random_seed_unchanged", "tests/templates/test_layers/test_random.py::TestInterfaces::test_list_lists", "tests/templates/test_layers/test_random.py::TestInterfaces::test_autograd" ]
[ "tests/qchem/test_hartree_fock.py::test_nuclear_energy[symbols0-geometry0-e_ref0]", "tests/qchem/test_hartree_fock.py::test_nuclear_energy[symbols1-geometry1-e_ref1]", "tests/qchem/test_hartree_fock.py::test_nuclear_energy[symbols2-geometry2-e_ref2]", "tests/qchem/test_hartree_fock.py::test_nuclear_energy_gra...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.94, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/PennyLaneAI/pennylane/issues/1327" ...
a0c9efc4689ad8920933903a237190bcdc206c8d
2022-06-20 16:05:19
docker.io/swerebenchv2/jsonpickle-jsonpickle:393-a0c9efc
jsonpickle__jsonpickle-393
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/jsonpickle/unpickler.py b/jsonpickle/unpickler.py index 7dd3422..9886d99 100644 --- a/jsonpickle/unpickler.py +++ b/jsonpickle/unpickler.py @@ -624,7 +624,13 @@ class Unpickler(object): continue else: if not k.startswith('__'): - setattr...
Fix numpy.poly1d encoding roundtrip Fixes #391
Issues when deserializing `numpy.poly1d` I want to transfer an object containing a `numpy.poly1d` property using jsonpickle. Is this something that could be enabled by `jsonpickle` and its numpy extension or is the recommended way to treat this within `__getstate__` and `__setstate__`? Either way, I would have expec...
jsonpickle/jsonpickle
diff --git a/tests/numpy_test.py b/tests/numpy_test.py index ac48302..c9c64b6 100644 --- a/tests/numpy_test.py +++ b/tests/numpy_test.py @@ -372,5 +372,11 @@ def test_np_random(): assert expect == actual +def test_np_poly1d(): + # issue 391, test poly1d roundtrip + obj = np.poly1d([1, 2, 3]) + ass...
[ "tests/numpy_test.py::test_np_poly1d" ]
[ "tests/numpy_test.py::flake-8::FLAKE8", "tests/numpy_test.py::test_ndarray_roundtrip", "tests/numpy_test.py::test_shapes_containing_zeroes", "tests/numpy_test.py::test_accuracy", "tests/numpy_test.py::test_b64", "tests/numpy_test.py::test_views", "tests/numpy_test.py::test_strides", "tests/numpy_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": [...
e4fa25abf4a949a31bdfebe7c868e393c11cfed3
2024-07-10 22:23:22
docker.io/swerebenchv2/spikeinterface-spikeinterface:3180-e4fa25a
spikeinterface__spikeinterface-3180
Function: generate_sorting(num_units=10, **kwargs) Location: spikeinterface.core.generate Inputs: - **num_units** (int, required): number of units to create in the synthetic sorting. Must be ≥ 1. - **sampling_frequency** (float, optional): sampling rate in Hz; defaults to 30000 Hz. - **duration** (float, optional): tot...
python
MIT
diff --git a/src/spikeinterface/core/base.py b/src/spikeinterface/core/base.py index 8b037ad10..f3e300fff 100644 --- a/src/spikeinterface/core/base.py +++ b/src/spikeinterface/core/base.py @@ -7,6 +7,7 @@ import warnings import weakref import json import pickle +import os import random import string from packagin...
Units aggregation preserve unit ids of aggregated sorters This should close #3152
Unit aggregation should preserve unit ids. Like https://github.com/SpikeInterface/spikeinterface/issues/2789 but for UnitAggregation. Currently it does not: ```python from spikeinterface.core import generate_sorting sorting1 = generate_sorting(num_units=3) sorting1 = sorting1.rename_units(new_unit_ids=["unit1...
SpikeInterface/spikeinterface
diff --git a/src/spikeinterface/core/tests/test_unitsaggregationsorting.py b/src/spikeinterface/core/tests/test_unitsaggregationsorting.py index b6cb479c7..09b8affe5 100644 --- a/src/spikeinterface/core/tests/test_unitsaggregationsorting.py +++ b/src/spikeinterface/core/tests/test_unitsaggregationsorting.py @@ -5,6 +5,...
[ "src/spikeinterface/core/tests/test_unitsaggregationsorting.py::test_unit_aggregation_preserve_ids", "src/spikeinterface/core/tests/test_unitsaggregationsorting.py::test_unit_aggregation_does_not_preserve_ids_if_not_unique", "src/spikeinterface/core/tests/test_unitsaggregationsorting.py::test_unit_aggregation_d...
[ "src/spikeinterface/core/tests/test_unitsaggregationsorting.py::test_unitsaggregationsorting" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/SpikeInterface/spikeinterface/issue...
8f69f64bfaddbc6ab791ff5793f1e293d255cb99
2024-12-17 04:26:01
docker.io/swerebenchv2/aristanetworks-anta:969-8f69f64
aristanetworks__anta-969
Function: AntaCommand.supported Location: anta/models.py – `class AntaCommand` Inputs: (implicit) the `AntaCommand` instance; the property may be accessed after the command has been collected or after an error has been recorded. Outputs: `bool` – `True` when the command is supported on the device (i.e. none of the reco...
python
Apache-2.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b7a0a1e..8716d34d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: - '<!--| ~| -->' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + rev: v0.8.3 hooks: -...
fix(anta.tests): VerifyEVPNType2Route test fails for locally originated MAC/IP addresses # Description Updated the test to at least one EVPN route has at least one active/valid path across all learned routes from all RDs combined Fixes #950 # Checklist: - [X] My code follows the style guidelines of this pr...
VerifyEVPNType2Route test fails for locally originated MAC/IP addresses The 'VerifyEVPNType2Route' test currently marks endpoints with locally originated MAC/IP addresses as "FAILURE. This behavior is unexpected because locally originated entries: 1. Are valid endpoints that can exist in the database of a VTEP. 2....
aristanetworks/anta
diff --git a/anta/tests/routing/bgp.py b/anta/tests/routing/bgp.py index 3f691ae3..f44729ec 100644 --- a/anta/tests/routing/bgp.py +++ b/anta/tests/routing/bgp.py @@ -877,16 +877,17 @@ class VerifyEVPNType2Route(AntaTest): if not evpn_routes: no_evpn_routes.append((address, vni)) ...
[ "tests/units/test_models.py::TestAntaTest::test_test[tests.units.test_models.FakeTestWithKnownEOSError-known", "tests/units/test_models.py::TestAntaCommand::test_returned_known_eos_error[show", "tests/units/test_models.py::TestAntaCommand::test_returned_known_eos_error[ping", "tests/units/test_models.py::Test...
[ "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPeerCount-success-peer-state-check-true]", "tests/units/anta_tests/routing/test_bgp.py::test[anta.tests.routing.bgp.VerifyBGPPe...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
1845c8815254595a3d1dfe2ef2306829bd61fcf7
2025-02-10 17:45:31
docker.io/swerebenchv2/leshchenko1979-fast-bitrix24:257-1845c88
leshchenko1979__fast_bitrix24-257
Method: Bitrix.get_by_ID(self, method: str, ids: List[str]) Location: fast_bitrix24/bitrix.py Inputs: - **method** – name of the Bitrix24 API method (e.g., "crm.company.contact.items.get") - **ids** – list of identifier strings to retrieve; may contain one or many IDs Outputs: - Returns a **list of dictionaries...
python
MIT
diff --git a/fast_bitrix24/server_response.py b/fast_bitrix24/server_response.py index d950afe..5d38906 100644 --- a/fast_bitrix24/server_response.py +++ b/fast_bitrix24/server_response.py @@ -52,7 +52,11 @@ class ServerResponseParser: extracted = self.extract_from_single_response(self.result["result"]) - ...
crm.company.contact.items.get возвращает только один элемент, а нужно несколько Fixes #256 ## Обзор от Sourcery Исправления ошибок: - Исправлена проблема, когда `crm.company.contact.items.get` возвращал только один элемент, хотя ожидалось несколько. <details> <summary>Original summary in English</summary> ## Summar...
crm.company.contact.items.get возвращает только один элемент, а нужно несколько Код, который я выполняю: ``` bx.get_by_ID("crm.company.contact.items.get", ['205364']) ``` Вот такой результат я получаю: Только один контакт Должно быть больше Вот ПОЛНЫЕ логи, которые генерирует мой скрипт: ``` Starting get_by_ID((...
leshchenko1979/fast_bitrix24
diff --git a/tests/real_responses/crm_company_contact_items_get.py b/tests/real_responses/crm_company_contact_items_get.py new file mode 100644 index 0000000..2400cb3 --- /dev/null +++ b/tests/real_responses/crm_company_contact_items_get.py @@ -0,0 +1,35 @@ +response = { + "result": { + "result": { + ...
[ "tests/test_server_responses.py::test_crm_company_contact_items_get" ]
[ "tests/test_server_responses.py::test_single_success", "tests/test_server_responses.py::test_batch_success", "tests/test_server_responses.py::test_batch_single_page_error", "tests/test_server_responses.py::test_call_single_success", "tests/test_server_responses.py::test_call_several_success", "tests/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
287e7685e0e963f3fb44d92832ca97ac8c265c40
2025-04-02 17:48:48
docker.io/swerebenchv2/cta-observatory-ctapipe:2732-287e768
cta-observatory__ctapipe-2732
Function: radial_light_distribution(image, pixel_fov_lon, pixel_fov_lat, center_fov_lon, center_fov_lat) Location: src/ctapipe/image/muon/features.py Inputs: - **image**: 2‑D numpy array of pixel intensities (float, may contain zeros) - **pixel_fov_lon**, **pixel_fov_lat**: 2‑D arrays of longitude/latitude coordinates ...
python
BSD-3-Clause
diff --git a/docs/changes/2732.bugfix.rst b/docs/changes/2732.bugfix.rst new file mode 100644 index 00000000..d5ded894 --- /dev/null +++ b/docs/changes/2732.bugfix.rst @@ -0,0 +1,1 @@ +Fix units (absence of) for skewness and excess kurtosis in muon analysis diff --git a/src/ctapipe/image/muon/features.py b/src/ctapipe/...
Force absences of units for skewness and excess_kurtosis Explicitly convert (dimensionless) skewness and excess_kurtosis to values Closes #2730
DataWriter: Caught unexpected exception: 'float' object has no attribute 'to_value' **Describe the bug** Looks like we can not write the muonparameters_skewness during the muon analysis Error writing col muonparameters_skewness of container MuonParametersContainer **To Reproduce** ``` ctapipe-process --overwrite --in...
cta-observatory/ctapipe
diff --git a/src/ctapipe/image/muon/tests/test_muon_features.py b/src/ctapipe/image/muon/tests/test_muon_features.py index 0ed8e104..b9f44ed8 100644 --- a/src/ctapipe/image/muon/tests/test_muon_features.py +++ b/src/ctapipe/image/muon/tests/test_muon_features.py @@ -142,6 +142,12 @@ def test_radial_light_distribution()...
[ "src/ctapipe/image/muon/tests/test_muon_features.py::test_radial_light_distribution" ]
[ "src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_containment", "src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_completeness", "src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_intensity_parameters", "src/ctapipe/image/muon/tests/test_muon_features.py::test_radial_ligh...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
46a229a36c23644c799bb3a036bdeb8bc6d3869f
2020-11-12 22:16:50
docker.io/swerebenchv2/niconoe-pyinaturalist:76-46a229a
niconoe__pyinaturalist-76
No new interfaces are introduced.
python
MIT
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5ef367e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,88 @@ +name: Build & test python package + +on: + push: + branches: [master, dev] + tags: ['v*'] + pull_request: + branches: [master, d...
Migrate from Travis CI to GitHub Actions Closes #75 **Note:** I timed the builds with and without tox, and running without tox roughly cuts the build time in half (2:50 -> 1:19). The tox environments are mostly redundant with the build matrix environments. I'm keeping the tox config, though, because it's still usef...
Migrate from Travis CI to GitHub Actions [RIP Travis CI](https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing) 😢 Travis-ci.org is going read-only next month, and travis-ci.com will no longer have free plans for open-source public repos. Moving to GitHub Actions seems to be the popular choice. Specific featu...
niconoe/pyinaturalist
diff --git a/test/test_version.py b/test/test_version.py index 1ed5fdc..20418b4 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -1,17 +1,17 @@ -# A couple tests to make sure that versioning works as expected within Travis +# A couple tests to make sure that versioning works as expected within GitHub Act...
[ "test/test_version.py::test_version__pre_release" ]
[ "test/test_version.py::test_version__stable_release" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://blog.travis-ci.com/2020-11-02-travis-ci-new-bi...
ca573a7ccf2d4a1c7df0b577bb6d3455c941e828
2022-01-22 19:10:38
docker.io/swerebenchv2/pycqa-flake8:1535-ca573a7
pycqa__flake8-1535
Function: parse_plugin_options(cfg: configparser.RawConfigParser, cfg_dir: str, *, enable_extensions: Optional[str], require_plugins: Optional[str]) Location: flake8.plugins.finder Inputs: - cfg – configuration parser with Flake8 sections. - cfg_dir – base directory for resolving relative paths. - enable_exte...
python
custom-check-github
diff --git a/docs/source/user/options.rst b/docs/source/user/options.rst index 8be702c..8bf7e33 100644 --- a/docs/source/user/options.rst +++ b/docs/source/user/options.rst @@ -78,6 +78,8 @@ Index of Options - :option:`flake8 --statistics` +- :option:`flake8 --require-plugins` + - :option:`flake8 --enable-extensi...
add a --require-plugins option resolves #283
Add a "require plugin" option In GitLab by @mschwager on Jan 7, 2019, 07:34 Hi all, I'd like to request an additional option to `flake8` for requiring certain plugin(s) are installed and selected during a run. For example, ``` $ flake8 --require=XYZ --select=XYZ /path/to/lint ``` I could also envision the new optio...
PyCQA/flake8
diff --git a/tests/integration/test_plugins.py b/tests/integration/test_plugins.py index 0950b6c..c3be049 100644 --- a/tests/integration/test_plugins.py +++ b/tests/integration/test_plugins.py @@ -53,8 +53,13 @@ report = def test_enable_local_plugin_from_config(local_config): """App can load a local plugin from c...
[ "tests/integration/test_plugins.py::test_enable_local_plugin_from_config", "tests/unit/plugins/finder_test.py::test_parse_plugin_options_not_specified", "tests/unit/plugins/finder_test.py::test_parse_enabled_from_commandline", "tests/unit/plugins/finder_test.py::test_parse_enabled_from_config[enable_extension...
[ "tests/unit/plugins/finder_test.py::test_loaded_plugin_entry_name_vs_display_name", "tests/unit/plugins/finder_test.py::test_plugins_all_plugins", "tests/unit/plugins/finder_test.py::test_plugins_versions_str", "tests/unit/plugins/finder_test.py::test_flake8_plugins", "tests/unit/plugins/finder_test.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": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
757a10cd496ac24800f03491891ff6bba2d4807a
2025-02-21 18:24:56
docker.io/swerebenchv2/pymc-devs-pytensor:1231-757a10c
pymc-devs__pytensor-1231
Method: solve(a, b, assume_a="gen", lower=False, transposed=False, check_finite=True, b_ndim=None) Location: pytensor.tensor.slinalg.solve Inputs: - a: TensorVariable representing a square matrix (shape (..., N, N)), dtype floatX. - b: TensorVariable representing the right‑hand side (shape (..., N, NRHS) or (..., N) d...
python
custom-check-github
diff --git a/pytensor/link/jax/dispatch/slinalg.py b/pytensor/link/jax/dispatch/slinalg.py index ca362e453..5430ce1da 100644 --- a/pytensor/link/jax/dispatch/slinalg.py +++ b/pytensor/link/jax/dispatch/slinalg.py @@ -53,7 +53,6 @@ def jax_funcify_Solve(op, **kwargs): @jax_funcify.register(SolveTriangular) def jax_fun...
Allow `transposed` argument in `linalg.solve` <!-- !! Thank your for opening a PR !! --> <!--- Provide a self-contained summary of your changes in the Title above --> <!--- This is what will be shown in the automatic release notes: https://github.com/pymc-devs/pytensor/releases --> ## Description Adds a `transp...
Add `transposed` argument to `pt.linalg.solve` ### Description This is allowed by `scipy.linalg.solve`, so we might as well support it. It's already an allowed argument for `pt.linalg.solve_trianguar`, so it's weird that it's not allowed generally. It will also save a transpose Op in the gradients of solve, because w...
pymc-devs/pytensor
diff --git a/tests/link/jax/test_slinalg.py b/tests/link/jax/test_slinalg.py index 2656b0fd0..c446437dd 100644 --- a/tests/link/jax/test_slinalg.py +++ b/tests/link/jax/test_slinalg.py @@ -5,6 +5,7 @@ import numpy as np import pytest import pytensor.tensor as pt +import tests.unittest_tools as utt from pytensor.co...
[ "tests/tensor/test_slinalg.py::TestSolve::test_solve_correctness[gen_upper_A-b_col_vec]", "tests/tensor/test_slinalg.py::TestSolve::test_solve_correctness[gen_upper_A-b_matrix]", "tests/tensor/test_slinalg.py::TestSolve::test_solve_correctness[gen_upper_A-b_vec]", "tests/tensor/test_slinalg.py::TestSolve::tes...
[ "tests/tensor/test_slinalg.py::test_cholesky", "tests/tensor/test_slinalg.py::test_cholesky_indef", "tests/tensor/test_slinalg.py::test_cholesky_grad", "tests/tensor/test_slinalg.py::test_cholesky_grad_indef", "tests/tensor/test_slinalg.py::test_eigvalsh", "tests/tensor/test_slinalg.py::test_eigvalsh_grad...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
880f0cdd67591474d8ed98a6b192655322b7ecfc
2024-04-29 02:11:03
docker.io/swerebenchv2/keras-team-keras:19636-880f0cd
keras-team__keras-19636
Method: TestCase.assertDType(self, x, dtype, msg=None) Location: keras/src/testing/test_case.py, class TestCase (inherits unittest.TestCase) Inputs: - x: an object that may have a `.dtype` attribute (e.g., a backend tensor, numpy array, or Python scalar). - dtype: expected dtype as a string or dtype object; will be s...
python
Apache-2.0
diff --git a/keras/src/dtype_policies/dtype_policy.py b/keras/src/dtype_policies/dtype_policy.py index a55eaa4c0..e9bf91aaa 100644 --- a/keras/src/dtype_policies/dtype_policy.py +++ b/keras/src/dtype_policies/dtype_policy.py @@ -1,5 +1,4 @@ from keras.src import backend -from keras.src import ops from keras.src.api_e...
Ensure the same rule applies for np arrays in autocasting Fix #19629 1. Ensure the same rule applies for np arrays in autocasting (`self.dtype_policy.convert_input`) 2. Introduce `self.assertDType` in `TestCase` (should be useful for any dtype checks)
keras autocast casts int types to float In keras 2 I was using model input tuples with mixed types (some float and some int). This worked nicely with all policies. In keras 3 in case numpy arrays are used used as input np.int32 will be converted into tf.float32 or tf.float16 (depending on policy). See here http...
keras-team/keras
diff --git a/keras/src/layers/layer_test.py b/keras/src/layers/layer_test.py index 6bc93859a..e0c71a0cf 100644 --- a/keras/src/layers/layer_test.py +++ b/keras/src/layers/layer_test.py @@ -437,13 +437,13 @@ class LayerTest(testing.TestCase): y = layer(x) self.assertEqual(layer.compute_dtype, "float16"...
[ "keras/src/layers/layer_test.py::LayerTest::test_autocast_with_np_array" ]
[ "keras/src/layers/layer_test.py::LayerTest::test_activity_regularization", "keras/src/layers/layer_test.py::LayerTest::test_add_loss", "keras/src/layers/layer_test.py::LayerTest::test_add_weight_defaults", "keras/src/layers/layer_test.py::LayerTest::test_autocast", "keras/src/layers/layer_test.py::LayerTest...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://colab.research.google.com/drive/1--Exc9YiHglWH...
65d239521e4d488d2e6c477e4bdece6fa3061ebe
2020-04-06 23:23:05
docker.io/swerebenchv2/zopefoundation-btrees:141-65d2395
zopefoundation__btrees-141
Method: MappingBase.get(self, key, default=None) Location: Mapping objects (BTree, Bucket, Set, TreeSet) in the BTrees package Inputs: - key: any hashable object; for integer‑key families the key must fit in the native C integer range (e.g., 0 ≤ key < 2⁶⁴ for unsigned families). Overflowing integers or non‑numeric typ...
python
custom-check-github
diff --git a/BTrees/BTreeModuleTemplate.c b/BTrees/BTreeModuleTemplate.c index ee7aef1..f2ee248 100644 --- a/BTrees/BTreeModuleTemplate.c +++ b/BTrees/BTreeModuleTemplate.c @@ -82,9 +82,11 @@ longlong_handle_overflow(PY_LONG_LONG result, int overflow) { if (overflow) { - /* Python 3 tends to have an e...
Fix #140 by turning OverflowError into TypeError. Fingers crossed for 32-bit builds on Windows. I'd really prefer to make it raise a subclass `OutOfRangeError(TypeError,OverflowError)` with a detail, but that's annoyingly difficult in C...
`key in btree` should ignore OverflowError Currently, `key in btree` ignores TypeError, so this all works: ```pycon >>> import BTrees >>> bt = BTrees.family32.II.BTree() >>> 'abc' in bt False >>> bt.get('abc') is None True ``` But if the key is outside the range allowed, it fails: ```pycon >>> x = 2 ** 64 ...
zopefoundation/BTrees
diff --git a/BTrees/tests/common.py b/BTrees/tests/common.py index 09ba53b..0893b22 100644 --- a/BTrees/tests/common.py +++ b/BTrees/tests/common.py @@ -390,7 +390,7 @@ class Base(SignedMixin): self.assertFalse(issubclass(NonSub, type(t))) self.assertFalse(isinstance(NonSub(), type(t))) -class Mappi...
[ "BTrees/tests/test__datatypes.py::TestDatatypes::test_to_int_w_overflow", "BTrees/tests/test__datatypes.py::TestDatatypes::test_to_long_w_overflow" ]
[ "BTrees/tests/testBTrees.py::DegenerateBTree::testBasicOps", "BTrees/tests/testBTrees.py::DegenerateBTree::testDeletes", "BTrees/tests/testBTrees.py::DegenerateBTree::testRanges", "BTrees/tests/testBTrees.py::TestBugFixes::testFixed1843", "BTrees/tests/testBTrees.py::TestBugFixes::test_LP294788", "BTrees/...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://btrees.readthedocs.io/en/latest/changes.html#i...
0f9ff83339081e61d1fcae004b45a033316e1033
2023-03-16 16:13:14
docker.io/swerebenchv2/stac-utils-pystac:1049-0f9ff83
stac-utils__pystac-1049
Method: Item.__geo_interface__(self) Location: pystac/item.py (as a @property of the Item class) Inputs: self – an instance of pystac.Item Outputs: Dict[str, Any] – a JSON‑compatible dictionary representing the full Item as a GeoJSON Feature (generated via `self.to_dict(include_self_link=False, transform_hrefs=False)`)...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5449bb10..c49882c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ ### Changed - Use [ruff](https://github.com/charliermarsh/ruff) instead of **isort** and **flake8** ([#1034](https://github.com/stac-utils/pystac/pull/1034)) +- Update links in doc noteboo...
Fix __geo_interface__ **Related Issue(s):** - Closes #1048 **Description:** `__geo_interface__` should be the feature, not just the geometry. I misread the protocol on my first implementation. I made the choice to just call `to_dict` with all the dials set to no to make it as quick and light as possible. An a...
Item __geo_interface__ returns the wrong represenation The Item __geo_interface__ is currently: ``` @property def __geo_interface__(self) -> Optional[Dict[str, Any]]: """Returns this item's geometry. https://gist.github.com/sgillies/2217756 Returns: Dict[str, Any...
stac-utils/pystac
diff --git a/requirements-test.txt b/requirements-test.txt index 7beb7158..7aadb86b 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -6,7 +6,7 @@ html5lib==1.1 jinja2<4.0 jsonschema==4.17.3 mypy==1.1.1 -orjson==3.8.7 +orjson==3.8.8 pre-commit==3.2.0 pytest-cov==4.0.0 pytest-mock==3.10.0 diff --gi...
[ "tests/test_item.py::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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://gist.github.com/sgillies/2217756" ], "in...
16a6405460cf231ef12df773beab47ac2b14a06f
2019-11-18 18:11:20
docker.io/swerebenchv2/adamchainz-flake8-comprehensions:200-16a6405
adamchainz__flake8-comprehensions-200
No new interfaces are introduced.
python
MIT
diff --git a/HISTORY.rst b/HISTORY.rst index 93287ab..3d066a2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,12 @@ History ======= +Pending +------- + +* Fix false positives in ``C416`` rule for list comprehensions returning + tuples. + 3.1.1 (2019-11-16) ------------------ diff --git a/src/flake8_compr...
Fix false positives in C416 for list comprehensions returning tuples Fixes #198.
C416 false positive with sequences as comprehension elements The example below produces a C416 ("Unnecessary list comprehension - rewrite using list()"): ```py input = [ (1, 1), (1, 1), (1, 1), ] output = [(x, y, 1) for x, y in input] ``` I suspect it is because both an input and output element is ...
adamchainz/flake8-comprehensions
diff --git a/tests/test_flake8_comprehensions.py b/tests/test_flake8_comprehensions.py index 60c4e18..c52109b 100644 --- a/tests/test_flake8_comprehensions.py +++ b/tests/test_flake8_comprehensions.py @@ -942,12 +942,18 @@ def test_C416_pass_2_async_list(flake8dir): @python_3_7_plus -def test_C416_pass_2_async_set...
[ "tests/test_flake8_comprehensions.py::test_C416_pass_4_tuples" ]
[ "tests/test_flake8_comprehensions.py::test_version", "tests/test_flake8_comprehensions.py::test_C400_pass_1", "tests/test_flake8_comprehensions.py::test_C400_fail_1", "tests/test_flake8_comprehensions.py::test_C400_fail_2", "tests/test_flake8_comprehensions.py::test_C401_pass_1", "tests/test_flake8_compre...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
16b4527b64ecc54f581163ed2fdcb5d28fa1a09b
2025-04-04 15:02:40
docker.io/swerebenchv2/narwhals-dev-narwhals:2341-16b4527
narwhals-dev__narwhals-2341
Function: concat(items: Iterable[FrameT], *, how: ConcatMethod = "vertical") -> FrameT Location: narwhals.functions.concat (re‑exported in narwhals.stable.v1) Inputs:   - items: an iterable of either all eager DataFrames or all lazy LazyFrames; each item implements the Narwhals frame protocol.   - how: optional concate...
python
MIT
diff --git a/narwhals/_dask/namespace.py b/narwhals/_dask/namespace.py index 389faed6..9b837c69 100644 --- a/narwhals/_dask/namespace.py +++ b/narwhals/_dask/namespace.py @@ -175,24 +175,6 @@ class DaskNamespace( backend_version=self._backend_version, version=self._version, ...
feat!: disallow `concat(..., how="horizontal")` for `LazyFrame` closes #2340 <!-- # Thanks for contributing a pull request! ## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md --> ## What type of PR is this? (check all applicable) - [ ...
disallow `concat(how='horizontal')` for lazyframes we shouldn't allow this operation at all given that row order is undefined
narwhals-dev/narwhals
diff --git a/tests/frame/concat_test.py b/tests/frame/concat_test.py index bbdd306f..1e663212 100644 --- a/tests/frame/concat_test.py +++ b/tests/frame/concat_test.py @@ -1,22 +1,22 @@ from __future__ import annotations +import re + import pytest import narwhals.stable.v1 as nw +from narwhals.exceptions import I...
[ "tests/frame/concat_test.py::test_concat_horizontal[pandas[pyarrow]]", "tests/frame/concat_test.py::test_concat_horizontal[polars[eager]]", "tests/frame/concat_test.py::test_concat_horizontal[pandas]", "tests/frame/concat_test.py::test_concat_horizontal[pyarrow]" ]
[ "tests/series_only/hist_test.py::test_hist_small_bins[polars[eager]]", "tests/series_only/hist_test.py::test_hist_small_bins[pandas]", "tests/series_only/hist_test.py::test_hist_small_bins[pandas[pyarrow]]", "tests/series_only/hist_test.py::test_hist_small_bins[pyarrow]", "tests/frame/concat_test.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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/narwhals-dev/narwhals/issues/2348" ...
9f37fb4db6d16e5d72e42cc7fa1ba100f3878e0a
2024-01-11 18:04:24
docker.io/swerebenchv2/sdv-dev-rdt:753-9f37fb4
sdv-dev__rdt-753
Method: RegexGenerator.__init__(self, regex_format: str, enforce_uniqueness: bool = False) Location: rdt/transformers/text.py → class RegexGenerator Inputs: - **regex_format** (str): The regex pattern that defines the allowed values (e.g., `'id_[a-b]{1}'`). - **enforce_uniqueness** (bool, optional): When *True*, ...
python
custom-check-github
diff --git a/rdt/transformers/text.py b/rdt/transformers/text.py index ca1887a..bb7fd9e 100644 --- a/rdt/transformers/text.py +++ b/rdt/transformers/text.py @@ -1,10 +1,10 @@ """Transformers for text data.""" import logging +import warnings import numpy as np import pandas as pd -from rdt.errors import Transfor...
Make `RegexGenerator` generate unlimited regexes even when `enforce_uniqueness=True` CU-86ayz97gr, Resolve #749
RegexGenerator should create unlimited regexes, even if unique enforcement is on ### Problem Description When using a RegexGenerator with `enforce_uniqueness=True`, the transformer correctly ensures that all the generated regexes are unique. However, when it runs out of possible regexes, this transformer crashes and t...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_base.py b/tests/integration/transformers/test_base.py index cff4869..02a4ef7 100644 --- a/tests/integration/transformers/test_base.py +++ b/tests/integration/transformers/test_base.py @@ -136,6 +136,7 @@ def test_multi_column_transformer_same_number_of_columns_input_outp...
[ "tests/integration/transformers/test_text.py::test_regexgenerator_enforce_uniqueness_not_enough_values_categorical", "tests/integration/transformers/test_text.py::test_regexgenerator_enforce_uniqueness_not_enough_values_numerical", "tests/unit/transformers/test_text.py::TestRegexGenerator::test__reverse_transfo...
[ "tests/integration/transformers/test_base.py::test_dummy_transformer_series_output", "tests/integration/transformers/test_base.py::test_dummy_transformer_dataframe_output", "tests/integration/transformers/test_base.py::test_multi_column_transformer_same_number_of_columns_input_output", "tests/integration/tran...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
4c7399eaeb77fae762a96e6aaa714ac591d6661a
2021-03-05 09:02:44
docker.io/swerebenchv2/pallets-click:1805-4c7399e
pallets__click-1805
Method: click.core.Parameter._convert(self, value, level) Location: src/click/core.py (inside class Parameter) Inputs: - **value** – the raw default or provided value (any type). - **level** – recursion depth used to handle nested iterables (int). Outputs: - Returns the value converted to the appropriate ty...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index d3795e1..ac11bf3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -182,6 +182,8 @@ Unreleased previous item. :issue:`1353` - The ``Path`` param type can be passed ``path_type=pathlib.Path`` to return a path object instead of a string. :issue:`405` +- ``TypeError`...
Better error message for bad parameter default Added a `try` block to check whether the default value provided to an option with `multiple=True` is a valid iterable. If the value is not a valid iterable, a `TypeError` with a better error message is raised. - fixes #1749 Checklist: - [x] Add tests that demonst...
Traceback when CLI option has bad default could be more helpful ### Expected Behavior In the following command, I add an option `--multiple` with the metadata `multiple=True`, but the default `False` instead of `[False]`. Ideally, the traceback should indicate that the `--multiple` option has a bad default. ``...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index 128b860..65109d6 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -117,6 +117,20 @@ def test_multiple_required(runner): assert "Error: Missing option '-m' / '--message'." in result.output +def test_multiple_bad_default(runner): +...
[ "tests/test_options.py::test_multiple_bad_default" ]
[ "tests/test_options.py::test_prefixes", "tests/test_options.py::test_invalid_option", "tests/test_options.py::test_invalid_nargs", "tests/test_options.py::test_nargs_tup_composite_mult", "tests/test_options.py::test_counting", "tests/test_options.py::test_unknown_options[--foo]", "tests/test_options.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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
e20d95ae41fcd4016e1856c520b7194045c5a346
2020-02-28 20:10:28
docker.io/swerebenchv2/aws-quickstart-taskcat:505-e20d95a
aws-quickstart__taskcat-505
Method: Boto3Cache.__init__(self, _boto3=None) Location: taskcat/_client_factory.py Inputs: optional injected boto3 module (any object with a .session attribute that matches boto3's interface). Used for dependency‑injection in tests. Outputs: instance of Boto3Cache with its internal `_boto3` attribute set to the ...
python
Apache-2.0
diff --git a/taskcat/_client_factory.py b/taskcat/_client_factory.py index 3d06905..e46b702 100644 --- a/taskcat/_client_factory.py +++ b/taskcat/_client_factory.py @@ -100,17 +100,8 @@ class Boto3Cache: )["account_id"] def _get_account_info(self, profile): - region = self._get_region(None, profi...
Accurately determine the appropriate partition for an account. Closes #503 ## Overview This PR changes how we determine what the partition for an account is. Old method relied on boto3.client.get_available_regions('s3'); which does not implicitly return cross-partition data. new method is to iterate over partiti...
Boto3Cache._get_account_info determines incorrect partition due to unexpected upstream behavior. **Describe the bug** The `Boto3Cache._get_account_info` function relies on `boto3.Session.get_available_regions('s3')`; However this function defaults to the 'commerical' partition, even when the session is created in anot...
aws-quickstart/taskcat
diff --git a/taskcat/_cli_modules/test.py b/taskcat/_cli_modules/test.py index 3753b6d..73f57b0 100644 --- a/taskcat/_cli_modules/test.py +++ b/taskcat/_cli_modules/test.py @@ -113,12 +113,11 @@ class Test: # TODO: summarise stack statusses (did they complete/delete ok) and print any # error events ...
[ "tests/test_client_factory.py::TestBoto3Cache::test__get_account_info", "tests/test_client_factory.py::TestBoto3Cache::test__get_partition", "tests/test_client_factory.py::TestBoto3Cache::test_session_no_profile" ]
[ "tests/test_client_factory.py::TestBoto3Cache::test_account_id", "tests/test_client_factory.py::TestBoto3Cache::test_client", "tests/test_client_factory.py::TestBoto3Cache::test_client_sts", "tests/test_client_factory.py::TestBoto3Cache::test_imported_session", "tests/test_client_factory.py::TestBoto3Cache:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/aws-quickstart/taskcat/blob/ca4bfe7...
27014dc983d9e7c10f95d5970a4453981d8417a1
2023-03-14 07:31:34
docker.io/swerebenchv2/enthought-envisage:529-27014dc
enthought__envisage-529
Method: Application.start_plugin(self, plugin_id: str) Location: envisage/application.py Inputs: * plugin_id – identifier of the plugin to start; must be a string matching an installed plugin. Outputs: Raises **ValueError** when *plugin_id* does not correspond to any known plugin (previously raised SystemError). No ret...
python
custom-check-github
diff --git a/envisage/composite_plugin_manager.py b/envisage/composite_plugin_manager.py index 2e4a4e05..c07a2ac1 100644 --- a/envisage/composite_plugin_manager.py +++ b/envisage/composite_plugin_manager.py @@ -155,7 +155,7 @@ class CompositePluginManager(HasTraits): logger.debug("plugin %s started", plugi...
replace system errors System error is widely used in the envisage project. However, this type of error is not very descriptive. Thus in this PR we are attempting to replace these errors with more descriptive errors. Closes #442
Don't raise SystemError Various parts of Envisage deliberately do a `raise SystemError`. `SystemError` is almost certainly the wrong exception type to be raising in any part of Envisage. From [the docs](https://docs.python.org/3/library/exceptions.html#SystemError): > Raised when the interpreter finds an internal er...
enthought/envisage
diff --git a/envisage/tests/test_application.py b/envisage/tests/test_application.py index 58b85c6c..5d3be941 100644 --- a/envisage/tests/test_application.py +++ b/envisage/tests/test_application.py @@ -285,11 +285,11 @@ class ApplicationTestCase(unittest.TestCase): application.stop() # Try to s...
[ "envisage/tests/test_application.py::ApplicationTestCase::test_start_and_stop_errors", "envisage/tests/test_egg_basket_plugin_manager.py::EggBasketPluginManagerTestCase::test_ignore_broken_distributions_raises_exceptions_by_default", "envisage/tests/test_extension_point_changed.py::ExtensionPointChangedTestCase...
[ "envisage/tests/test_application.py::ApplicationTestCase::test_add_extension_point_listener", "envisage/tests/test_application.py::ApplicationTestCase::test_add_plugin", "envisage/tests/test_application.py::ApplicationTestCase::test_extension_point", "envisage/tests/test_application.py::ApplicationTestCase::t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.python.org/3/library/exceptions.html#Syst...
e8de91d9955ca5a96cf130f24c113ba904b1e9e9
2020-06-18 12:46:32
docker.io/swerebenchv2/pallets-click:1594-e8de91d
pallets__click-1594
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 6eb180e..bcfa72d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -20,6 +20,8 @@ Unreleased is not shown in the error message. :issue:`1460` - An ``IntRange`` option shows the accepted range in its help text. :issue:`1525` +- An option defined with duplicate flag...
raise ValueError for duplicate flags Specifying the same flag name twice will raise a `RuntimeError`. ```python @click.option( "--foo/--foo", default=False) ``` fixes #1465
Duplicate Boolean flag options "--foo/--foo" are not detected (defaults to False) I ran into an issue where I had the code: @click.option( "--print-verbose-info/--print-verbose-info", help="...", default=False ) ...and running `cli.py --print-verbose-info` was apparently defaulting over to the `False` value. ...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index 28990c3..bd66bd2 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -565,3 +565,8 @@ def test_option_names(runner, option_args, expected): if form.startswith("-"): result = runner.invoke(cmd, [form]) asser...
[ "tests/test_options.py::test_flag_duplicate_names" ]
[ "tests/test_options.py::test_prefixes", "tests/test_options.py::test_invalid_option", "tests/test_options.py::test_invalid_nargs", "tests/test_options.py::test_nargs_tup_composite_mult", "tests/test_options.py::test_counting", "tests/test_options.py::test_unknown_options[--foo]", "tests/test_options.py:...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B2", "confidence": 0.94, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "partial", "pr_categories": [ ...
9d631a3429a66f30742c1a52c94ac18ec6ba848d
2022-01-20 18:57:21
docker.io/swerebenchv2/samuelcolvin-pydantic:3707-9d631a3
samuelcolvin__pydantic-3707
Function: bytes_validator(v: Any) -> Union[bytes] Location: pydantic/validators.py Inputs: - **v** (*Any*): The value to be validated as a bytes-like object. It may be an instance of ``bytes``, ``bytearray`` or any subclass thereof. Outputs: - Returns the original value if it is ``bytes`` or ``bytearray`` (or a subcl...
python
MIT
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3acffa71c..7a42e0820 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,7 @@ updates: - package-ecosystem: pip directory: / schedule: - interval: weekly + interval: monthly - package-ecosystem: github-actions ...
Prevent subclasses of bytes being converted to bytes fix #3706 ## Checklist * [x] Unit tests for the changes exist * [x] Tests pass on CI and coverage remains at 100% * [ ] Documentation reflects the changes where applicable * [x] `changes/<pull request or issue id>-<github username>.md` file added describing ...
subclasses of bytes converted to bytes See https://github.com/duo-labs/py_webauthn/issues/113#issuecomment-1017816575 In short (I think) cython is converting subclasses of bytes to raw bytes in here: https://github.com/samuelcolvin/pydantic/blob/9d631a3429a66f30742c1a52c94ac18ec6ba848d/pydantic/validators.py#L79 ...
samuelcolvin/pydantic
diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index 9a3f0464b..69487560e 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -1,10 +1,10 @@ -black==21.12b0 +black==22.3.0 flake8==4.0.1 flake8-quotes==3.3.1 -hypothesis==6.31.6 +hypothesis==6.41.0 isort==5...
[ "tests/test_discrimated_union.py::test_discriminated_union_only_union", "tests/test_discrimated_union.py::test_discriminated_union_single_variant" ]
[ "tests/test_construction.py::test_simple_construct", "tests/test_construction.py::test_construct_misuse", "tests/test_construction.py::test_construct_fields_set", "tests/test_construction.py::test_construct_allow_extra", "tests/test_construction.py::test_construct_keep_order", "tests/test_construction.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": "easy", "external_urls": [ "https://github.com/duo-labs/py_webauthn/issues/113#issue...
8dcc87cf422c8344ca565c8ee23b7119bc100949
2020-10-30 08:27:12
docker.io/swerebenchv2/samuelcolvin-pydantic:2075-8dcc87c
samuelcolvin__pydantic-2075
No new interfaces are introduced.
python
MIT
diff --git a/changes/2065-PrettyWood.md b/changes/2065-PrettyWood.md new file mode 100644 index 000000000..8a5643f83 --- /dev/null +++ b/changes/2065-PrettyWood.md @@ -0,0 +1,1 @@ +fix: forward all the params of the stdlib `dataclass` when converted into _pydantic_ `dataclass` \ No newline at end of file diff --git a/c...
fix: keep the order of the fields when `validate_assignment` is set ## Change Summary Following #2000 and #2046 we can't `pop` the current value when assigning a new one (which was probably the most efficient) as we want to keep the order in the `__dict__`. So let's do a shallow copy of the `__dict__` without the c...
`validate_assignment` changes the field order ### Checks * [*] I added a descriptive title to this issue * [*] I have searched (google, github) for similar issues and couldn't find anything * [*] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug <!-- Sorry t...
samuelcolvin/pydantic
diff --git a/tests/test_dataclasses.py b/tests/test_dataclasses.py index 061b73d09..e213ff567 100644 --- a/tests/test_dataclasses.py +++ b/tests/test_dataclasses.py @@ -777,3 +777,21 @@ def test_dataclass_arbitrary(): arbitrary_types_allowed = True TestModel(a=ArbitraryType(), b=(ArbitraryType(), [A...
[ "tests/test_dataclasses.py::test_forward_stdlib_dataclass_params" ]
[ "tests/test_dataclasses.py::test_simple", "tests/test_dataclasses.py::test_model_name", "tests/test_dataclasses.py::test_value_error", "tests/test_dataclasses.py::test_frozen", "tests/test_dataclasses.py::test_validate_assignment", "tests/test_dataclasses.py::test_validate_assignment_error", "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "inte...
454ed739a432e78fe6c19558f00fc9828d260527
2023-10-25 15:36:31
docker.io/swerebenchv2/openmdao-openmdao:3057-454ed73
openmdao__openmdao-3057
Method: DifferentialEvolution(self, objfun, bounds=None, seed=None, max_gen=100, F=0.5, Cr=0.9) Location: openmdao/drivers/differential_evolution_driver.py Inputs: callable objective function; optional bounds tuple; optional random seed; max generations (int); differential weight F (float); crossover probability Cr (fl...
python
custom-check-github
diff --git a/openmdao/docs/openmdao_book/features/building_blocks/drivers/doe_driver.ipynb b/openmdao/docs/openmdao_book/features/building_blocks/drivers/doe_driver.ipynb index 4f8b2ad9a..6a9a1b9b2 100644 --- a/openmdao/docs/openmdao_book/features/building_blocks/drivers/doe_driver.ipynb +++ b/openmdao/docs/openmdao_bo...
Replaced pyDOE2 dependency with pyDOE3 ### Summary Changed all occurrences of `pyDOE2` to `pyDOE3` ### Related Issues - Resolves #3056 ### Backwards incompatibilities None ### New Dependencies `pyDOE3` replaces `pyDOE2`
Update pyDOE2 dependency to pyDOE3 ### Task Description [pyDOE3](https://pypi.org/project/pyDOE3) is now available as a fork of [pyDOE2](https://pypi.org/project/pyDOE2), which is no longer maintained. pyDOE3 contains updates that are required to work with Python 3.12. The OpenMDAO dependency should be changed...
OpenMDAO/OpenMDAO
diff --git a/.github/workflows/openmdao_latest_workflow.yml b/.github/workflows/openmdao_latest_workflow.yml index 8f1686035..2ded07ef2 100644 --- a/.github/workflows/openmdao_latest_workflow.yml +++ b/.github/workflows/openmdao_latest_workflow.yml @@ -124,7 +124,7 @@ jobs: echo "============================...
[ "openmdao/drivers/tests/test_differential_evolution_driver.py::TestErrors::test_no_pyDOE3", "openmdao/drivers/tests/test_doe_driver.py::TestErrors::test_no_pyDOE3", "openmdao/drivers/tests/test_genetic_algorithm_driver.py::TestErrors::test_no_pyDOE3" ]
[ "openmdao/drivers/tests/test_doe_driver.py::TestErrors::test_generator_check", "openmdao/drivers/tests/test_doe_driver.py::TestDOEDriver::test_csv", "openmdao/drivers/tests/test_doe_driver.py::TestDOEDriver::test_csv_errors", "openmdao/drivers/tests/test_doe_driver.py::TestDOEDriver::test_derivative_no_record...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://pypi.org/project/pyDOE3", "https://pypi.or...
8b29a6584b1b8670ff8f19b0ad38207053b0ba74
2025-05-01 12:00:59
docker.io/swerebenchv2/iver56-audiomentations:394-8b29a65
iver56__audiomentations-394
Method: TimeMask.__init__(self, min_band_part: float = 0.01, max_band_part: float = 0.2, fade_duration: float = 0.005, mask_location: Literal["start", "end", "random"] = "random", p: float = 0.5) Location: audiomentations.augmentations.time_mask.TimeMask Inputs: - **min_band_part** – lower bound (fraction of total len...
python
MIT
diff --git a/audiomentations/augmentations/time_mask.py b/audiomentations/augmentations/time_mask.py index 71e5481..7a784f4 100644 --- a/audiomentations/augmentations/time_mask.py +++ b/audiomentations/augmentations/time_mask.py @@ -1,25 +1,33 @@ import random - import numpy as np +from typing import Literal from nu...
Improve TimeMask * Add `fade_duration` argument and remove `fade` * Add `mask_location` argument * Improve performance by ~50% compared to v0.40.0 * Adjust default value of `max_band_part` and `max_band_part` - Close #249
Improve TimeMask defaults The current default masks too much on average
iver56/audiomentations
diff --git a/tests/test_time_mask.py b/tests/test_time_mask.py index 636883e..f2638a0 100644 --- a/tests/test_time_mask.py +++ b/tests/test_time_mask.py @@ -1,14 +1,14 @@ import numpy as np import pytest -from audiomentations import TimeMask, Compose +from audiomentations import TimeMask def test_apply_time_ma...
[ "tests/test_time_mask.py::test_apply_time_mask", "tests/test_time_mask.py::test_apply_time_mask_start", "tests/test_time_mask.py::test_apply_time_mask_end", "tests/test_time_mask.py::test_invalid_params" ]
[ "tests/test_time_mask.py::test_apply_time_mask_multichannel", "tests/test_time_mask.py::test_apply_time_mask_with_fade", "tests/test_time_mask.py::test_apply_time_mask_with_fade_short_signal" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "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": ...
231bfb0b2411f99dc860a0f992f8adad5dfb80e2
2015-06-18 00:08:33
docker.io/swerebenchv2/boto-botocore:573-231bfb0
boto__botocore-573
No new interfaces are introduced.
python
Apache-2.0
diff --git a/botocore/docs/bcdoc/style.py b/botocore/docs/bcdoc/style.py index deefb136d..6e30f0007 100644 --- a/botocore/docs/bcdoc/style.py +++ b/botocore/docs/bcdoc/style.py @@ -151,7 +151,7 @@ class ReSTStyle(BaseStyle): def end_p(self): if self.do_p: - self.doc.write('\n\n%s' % self.spac...
Only quote path component of url for copy source Fixes #509 Fix is in https://github.com/boto/botocore/commit/5e568c5fa53e9bb8ec9b8809e1b53de271485511, there's an additional commit that cleans up some of the flake8 issues. cc @kyleknap @mtdowling
Unable to pass version to s3:CopyObject I'm trying to copy a specific version of an object from one s3 bucket to another by adding ?versionId=someversion to the CopySource parameter of s3.copy_object. It looks like the code assumes that the value should be urlencoded, so it mangles the value. ``` args = { ...
boto/botocore
diff --git a/tests/unit/docs/bcdoc/test_style.py b/tests/unit/docs/bcdoc/test_style.py index e66c2a500..5c75d8703 100644 --- a/tests/unit/docs/bcdoc/test_style.py +++ b/tests/unit/docs/bcdoc/test_style.py @@ -52,13 +52,6 @@ class TestStyle(unittest.TestCase): style.italics('foobar') self.assertEqual(s...
[ "tests/unit/docs/test_client.py::TestClientDocumenter::test_document_client", "tests/unit/docs/test_method.py::TestDocumentModelDrivenMethod::test_default", "tests/unit/docs/test_method.py::TestDocumentModelDrivenMethod::test_exclude_input", "tests/unit/docs/test_method.py::TestDocumentModelDrivenMethod::test...
[ "tests/unit/docs/bcdoc/test_style.py::TestStyle::test_bold", "tests/unit/docs/bcdoc/test_style.py::TestStyle::test_code", "tests/unit/docs/bcdoc/test_style.py::TestStyle::test_codeblock", "tests/unit/docs/bcdoc/test_style.py::TestStyle::test_escape_href_link", "tests/unit/docs/bcdoc/test_style.py::TestStyle...
{ "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.87, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": true, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
72d4f30f0af92333e15b6fe70fda4307bf920ff4
2021-05-09 15:32:32
docker.io/swerebenchv2/samuelcolvin-pydantic:2767-72d4f30
samuelcolvin__pydantic-2767
Method: PydanticPluginConfig.__init__(self, options: Options) → None Location: pydantic/mypy.py → class PydanticPluginConfig Inputs: - **options** – mypy `Options` object containing the path to the configuration file (`config_file` attribute). The method examines `options.config_file` and, if it ends with “.toml”, ...
python
MIT
diff --git a/changes/2753-uriyyo.md b/changes/2753-uriyyo.md new file mode 100644 index 000000000..d1137db91 --- /dev/null +++ b/changes/2753-uriyyo.md @@ -0,0 +1,1 @@ +Fix bug when `mypy` plugin fails on `construct` method call for `BaseSettings` derived classes. \ No newline at end of file diff --git a/changes/2908-j...
Fix bug when mypy plugin fail on construct method call <!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> <!-- See https://pydantic-docs.helpmanual.io/contributing/ for help on Contributing --> ## Fix `mypy` plugin bug...
Mypy plugin nags about "Missing named argument __config__" on BaseSettings.construct() ### Checks * [X] I added a descriptive title to this issue * [X] I have searched (google, github) for similar issues and couldn't find anything * [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and ...
samuelcolvin/pydantic
diff --git a/tests/mypy/configs/pyproject-default.toml b/tests/mypy/configs/pyproject-default.toml new file mode 100644 index 000000000..63efc7a93 --- /dev/null +++ b/tests/mypy/configs/pyproject-default.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["poetry>=0.12"] +build_backend = "poetry.masonry.api" + +[tool.po...
[ "tests/mypy/test_mypy.py::test_mypy_results[mypy-plugin.ini-plugin_success.py-None]", "tests/mypy/test_mypy.py::test_mypy_results[mypy-plugin-strict.ini-plugin_success.py-plugin-success-strict.txt]", "tests/mypy/test_mypy.py::test_mypy_results[pyproject-plugin.toml-plugin_success.py-None]", "tests/mypy/test_m...
[ "tests/mypy/test_mypy.py::test_mypy_results[mypy-plugin.ini-plugin_fail.py-plugin-fail.txt]", "tests/mypy/test_mypy.py::test_mypy_results[mypy-plugin-strict.ini-plugin_fail.py-plugin-fail-strict.txt]", "tests/mypy/test_mypy.py::test_mypy_results[mypy-default.ini-success.py-None]", "tests/mypy/test_mypy.py::te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://pydantic-docs.helpmanual.io/" ], "inte...
20c509c1ebfaa7640e710ececfe0b356a3269687
2021-12-02 16:06:09
docker.io/swerebenchv2/scoutapp-scout-apm-python:711-20c509c
scoutapp__scout_apm_python-711
No new interfaces are introduced.
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index efc9321..01c2591 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ ### Added ### Fixed +- Avoid instrumenting PyMongo collection methods that were removed in v4. + ([Issue 710](https://github.com/scoutapp/scout_apm_python/issues/710)) ## [2.23.4] 2021-11...
Avoid instrumenting PyMongo collection methods that were removed in v4. Fixes #710
PyMongo v4 removed collection methods [PyMongo v4 removed a number of collection methods](https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html). While the agent still functions properly, it's logging failed instrumentation warnings and is breaking the build.
scoutapp/scout_apm_python
diff --git a/tests/integration/instruments/test_pymongo.py b/tests/integration/instruments/test_pymongo.py index 54d7918..02e360f 100644 --- a/tests/integration/instruments/test_pymongo.py +++ b/tests/integration/instruments/test_pymongo.py @@ -7,7 +7,11 @@ import os import pymongo import pytest -from scout_apm.ins...
[ "tests/integration/instruments/test_pymongo.py::test_all_collection_methods_exist[aggregate]", "tests/integration/instruments/test_pymongo.py::test_all_collection_methods_exist[aggregate_raw_batches]", "tests/integration/instruments/test_pymongo.py::test_all_collection_methods_exist[bulk_write]", "tests/integ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://pymongo.readthedocs.io/en/stable/migrate-to-py...
85ff62b9c9218f523ef7ff0535cde7cbf55ebb7b
2024-05-21 09:58:35
docker.io/swerebenchv2/pennylaneai-pennylane:5716-85ff62b
pennylaneai__pennylane-5716
No new interfaces are introduced.
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index bd4e5f0ff..9d88744ff 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -144,6 +144,9 @@ <h3>Bug fixes 🐛</h3> +* The decomposition of `StronglyEntanglingLayers` is now compatible with broadcasting. + [...
Fix decomposition of `StronglyEntanglingLayers` with broadcasting **Context:** The decomposition of `StronglyEntanglingLayers` "almost" takes broadcasting into account: The indexing into the `weights` tensor is fine, but the number of layers is not determined correctly, leading to flawed indexing, and in particular to...
Issue when using batched data on StronglyEntanglingLayers template.[BUG] ### Expected behavior I want to use the StronglyEntanglingLayers template to process batched data. the shape of the data is like [batch_size, layers, wires, 3]. ### Actual behavior Some errors happened: ``` .../pennylane/templates/layers/st...
PennyLaneAI/pennylane
diff --git a/tests/templates/test_layers/test_strongly_entangling.py b/tests/templates/test_layers/test_strongly_entangling.py index d02bbe67e..ed9839b84 100644 --- a/tests/templates/test_layers/test_strongly_entangling.py +++ b/tests/templates/test_layers/test_strongly_entangling.py @@ -36,6 +36,7 @@ def test_standard...
[ "tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[1-weight_shape0-expected_names0-expected_wires0-3]", "tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[2-weight_shape1-expected_names1-expected_wires1-3]", "tests/templates/test_...
[ "tests/templates/test_layers/test_strongly_entangling.py::test_standard_validity", "tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[1-weight_shape0-expected_names0-expected_wires0-None]", "tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
f01709f9ba656e7cf4399bcd1a0a07fd134b0aec
2023-03-23 11:36:20
docker.io/swerebenchv2/getmoto-moto:6114-f01709f
getmoto__moto-6114
Method: client.describe_db_clusters(DBClusterIdentifier) Location: tests/test_rds/test_rds_clusters.py Inputs: DBClusterIdentifier – string; may be a plain DB‑cluster identifier (e.g., “cluster-id2”) **or** a full ARN (e.g., “arn:aws:rds:us‑east‑1:123456789012:cluster:cluster-id2”). The method will parse an ARN to obta...
python
Apache-2.0
diff --git a/moto/rds/models.py b/moto/rds/models.py index 9a670c2fd..a89db9e2e 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -1950,6 +1950,9 @@ class RDSBackend(BaseBackend): def describe_db_clusters(self, cluster_identifier): if cluster_identifier: + # ARN to identifier + ...
RDS: describe_db_clusters() now accepts an ARN as identifier Fixes #6109
RDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier RDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier. Boto3 allow passing either ClusterArn or DBClusterIdentifier passed as filter to look up db clust...
getmoto/moto
diff --git a/tests/test_rds/test_rds_clusters.py b/tests/test_rds/test_rds_clusters.py index e78ffb9ad..d5e1be474 100644 --- a/tests/test_rds/test_rds_clusters.py +++ b/tests/test_rds/test_rds_clusters.py @@ -250,12 +250,12 @@ def test_describe_db_cluster_after_creation(): MasterUserPassword="hunter2_", )...
[ "tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_after_creation" ]
[ "tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_initial", "tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_fails_for_non_existent_cluster", "tests/test_rds/test_rds_clusters.py::test_create_db_cluster_needs_master_username", "tests/test_rds/test_rds_clusters.py::test_create_db_clu...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
f15380286c45c4569afebea3f51a92b6cfb17abb
2021-03-10 19:23:31
docker.io/swerebenchv2/alteryx-woodwork:687-f153802
alteryx__woodwork-687
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index ffaa1e8..0544466 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -7,6 +7,7 @@ Release Notes * Fixes * Changes * Restrict Koalas version to ``<1.7.0`` due to breaking changes (:pr:`674`) ...
Include unique columns in DataTable mutual information calculations - Allows unique columns to be included as a part of the mutual information calculations - Closes #676
Remove uniqueness logic in mutual info - MI should not look at uniqueness of a column for calculating MI. - This is for the current DataTable implementation.
alteryx/woodwork
diff --git a/woodwork/tests/datatable/test_datatable.py b/woodwork/tests/datatable/test_datatable.py index a80e698..e2d8765 100644 --- a/woodwork/tests/datatable/test_datatable.py +++ b/woodwork/tests/datatable/test_datatable.py @@ -959,7 +959,8 @@ def test_datatable_mutual_information(df_mi): pd.testing.assert_fr...
[ "woodwork/tests/datatable/test_datatable.py::test_datatable_mutual_information[df_mi_pandas]", "woodwork/tests/datatable/test_datatable.py::test_mutual_info_unique[df_mi_unique_pandas]" ]
[ "woodwork/tests/datatable/test_datatable.py::test_datatable_df_property[sample_df_pandas]", "woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_datetime_time_index[time_index_df_pandas]", "woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_time_index[time_index_df_panda...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
214a0cd5569576f61bdd5f71e46117f098fb1cab
2022-08-22 20:58:27
docker.io/swerebenchv2/pycqa-docformatter:115-214a0cd
pycqa__docformatter-115
Method: Configurator.__init__(self, args_lst: list[str]) Location: docformatter.py → class Configurator → def __init__(self, args_lst) Inputs: - **args_lst** – the full command‑line argument list as received by the program (including the executable name at index 0). The list now must contain the program path followed ...
python
MIT
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f91773..b725ea4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,35 +11,63 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"] + pyt...
fix: don't wrap URLs Adds function and associated tests to reconnect URLs that are broken into parts when docstrings are wrapped. Closes #75
Breaking long line does not preserve links Hi, first, for this nice tool! We crossed some difficulty with long links which are split into multiple lines (when a line is over 120 chars) but then it is not valid link anymore, for example this one: ``` `Area Under the Receiver Operating Characteristic Curve (ROC AUC) ...
PyCQA/docformatter
diff --git a/tests/test_configuration_functions.py b/tests/test_configuration_functions.py index 410a1f8..8c4cd8e 100644 --- a/tests/test_configuration_functions.py +++ b/tests/test_configuration_functions.py @@ -51,45 +51,61 @@ class TestConfigurator: @pytest.mark.unit def test_initialize_configurator_with_d...
[ "tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_with_inline_links[args0]", "tests/test_format_docstring.py::TestFormatWrap::test_format_docstring_with_sinmple_link[args0]" ]
[ "tests/test_configuration_functions.py::TestConfigurator::test_initialize_configurator_with_default", "tests/test_configuration_functions.py::TestConfigurator::test_initialize_configurator_with_pyproject_toml", "tests/test_configuration_functions.py::TestConfigurator::test_initialize_configurator_with_setup_cfg...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
994ffff114e59dfcb5c955db373c2a4448f69cac
2023-09-14 21:24:18
docker.io/swerebenchv2/mkdocs-mkdocs:3395-994ffff
mkdocs__mkdocs-3395
Method: set_exclusions(files, config) Location: mkdocs/structure/files.py Inputs: <files> – iterable of mkdocs.structure.files.File objects; <config> – mkdocs.config.defaults.MkDocsConfig providing exclusion patterns and nav inclusion flags Outputs: No return value; updates each File.inclusion flags (is_excluded, is_no...
python
BSD-2-Clause
diff --git a/docs/user-guide/configuration.md b/docs/user-guide/configuration.md index 9c6eff4e..8353b0cf 100644 --- a/docs/user-guide/configuration.md +++ b/docs/user-guide/configuration.md @@ -333,7 +333,9 @@ exclude_docs: | NEW: **New in version 1.5.** -NOTE: This option does *not* actually exclude anything fro...
Add an `enabled` setting for all plugins For every plugin, the user can set `enabled: false` (or something based on an environment variable) and it will not kick in at all. If the plugin has its own `enabled` config, there's no change for it in that case. * Closes #3386
`enabled` setting for all plugins It seems that so many plugins have an `enabled` setting these days that we may as well just add it in MkDocs. It will not run the plugin at all then. But if a plugin already has this setting explicitly, then MkDocs will not do anything, so the plugin can still decide what to do when it...
mkdocs/mkdocs
diff --git a/mkdocs/tests/config/config_options_tests.py b/mkdocs/tests/config/config_options_tests.py index 2c8a33ae..ecab8707 100644 --- a/mkdocs/tests/config/config_options_tests.py +++ b/mkdocs/tests/config/config_options_tests.py @@ -1926,6 +1926,15 @@ class FakePlugin2(BasePlugin[_FakePlugin2Config]): suppor...
[ "mkdocs/tests/config/config_options_tests.py::TypeTest::test_length", "mkdocs/tests/config/config_options_tests.py::TypeTest::test_multiple_types", "mkdocs/tests/config/config_options_tests.py::TypeTest::test_optional_with_default", "mkdocs/tests/config/config_options_tests.py::TypeTest::test_single_type", ...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": ...
47ea72ec0b73262fd982f4b2b9c66418fdbd511b
2023-07-22 21:02:50
docker.io/swerebenchv2/wtforms-wtforms:797-47ea72e
wtforms__wtforms-797
Function: Disabled() Location: wtforms.validators module – class constructor for a validator that marks a field as disabled. Inputs: No parameters. Outputs: Returns an instance of <class 'wtforms.validators.Disabled'>. The instance has an attribute `field_flags = {"disabled": True}` used by WTForms to set the HTML “dis...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 649fcf5..b993f04 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -20,6 +20,8 @@ Unreleased defaults :pr:`765` - Move to pyproject.toml :pr:`796` - URL validator takes a ``allow_ip`` parameter :pr:`800` +- Implement :class:`~validators.ReadOnly` and + :class:`~v...
implement a readonly and a disabled validator Fixes #792 This adds two validators [readonly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly) and [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled). The validators adds the corresponding flags on the widgets on ...
HTML `readonly` attribute support Currently wtforms does not handle the [HTML readonly attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly). One can make a field read-only at rendering with the `render_kw` attribute. On several projects I have been programmatically setting readonliness t...
wtforms/wtforms
diff --git a/tests/validators/test_disabled.py b/tests/validators/test_disabled.py new file mode 100644 index 0000000..4ae8e4b --- /dev/null +++ b/tests/validators/test_disabled.py @@ -0,0 +1,21 @@ +from tests.common import DummyPostData + +from wtforms import Form +from wtforms import StringField +from wtforms.validat...
[ "tests/validators/test_disabled.py::test_disabled", "tests/validators/test_readonly.py::test_readonly", "tests/validators/test_readonly.py::test_readonly_with_default" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B4", "confidence": 0.78, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": true, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://developer.mozilla.org/en-US/docs/Web/HTML/Attr...
f76f3c37c6bf7747971947d300f0a50d3ec701f7
2019-05-10 22:10:23
docker.io/swerebenchv2/azuread-microsoft-authentication-library-for-python:41-f76f3c3
azuread__microsoft-authentication-library-for-python-41
Method: ClientApplication.remove_account(self, account) Location: msal/application.py – defined in class ClientApplication Inputs: - **account** (dict): an account entry retrieved from `ClientApplication.get_accounts()`, containing at least `home_account_id`, `environment`, and other fields required to locate related ...
python
custom-check-github
diff --git a/msal/application.py b/msal/application.py index 391cd1a..038badb 100644 --- a/msal/application.py +++ b/msal/application.py @@ -280,6 +280,49 @@ class ClientApplication(object): return [alias for alias in group if alias != instance] return [] + def remove_account(self, accoun...
Add remove_account() API Add remove_account() API, and it will signout the account from the app family. This PR will close #12 . Most of the implementations are refactoring the underlying cache helpers. To review high level "what does it do" logic, please focus on only 50 lines starting from [here](https://github.co...
token cache: support logout The goal is to remove all tokens belong to a user name. In ADAL, with flat array, it is easy to do it through filtering by user_id; but now with the new universal token cache scheme, it is hard for client applications to do it.
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 6346774..75d5d27 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -174,11 +174,14 @@ class TestClientApplicationAcquireTokenSilentFociBehaviors(unittest.TestCase): self.account = {"home_account_id": "{}.{}".format...
[ "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_family_app_remove_account" ]
[ "tests/test_application.py::TokenCacheTestCase::testAdd", "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_known_orphan_app_will_skip_frt_and_only_use_its_own_rt", "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_unknown_family_app_will...
{ "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.87, "detected_issues": { "B1": false, "B2": true, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "partial", "pr_categories": ...
1d21dceeda6aa833427a0c19e01aac8b7579c73c
2022-01-03 16:51:23
docker.io/swerebenchv2/aio-libs-aiohttp:6485-1d21dce
aio-libs__aiohttp-6485
Method: helpers.BasicAuth.from_url(cls, url: URL, encoding: str = "utf-8") -> Optional[helpers.BasicAuth] Location: aiohttp/helpers.py Inputs: - url: an instance of yarl.URL; must be a URL object (TypeError otherwise). - encoding: charset for the credentials (defaults to "utf-8"). Outputs: - Returns a BasicAuth obje...
python
custom-check-github
diff --git a/CHANGES/6485.bugfix.rst b/CHANGES/6485.bugfix.rst new file mode 100644 index 000000000..b1d912f15 --- /dev/null +++ b/CHANGES/6485.bugfix.rst @@ -0,0 +1,1 @@ +Fixed ``Response.text`` when body is a ``Payload`` -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/6494.bugfix.rst b/CHANGES/6494.bugfix.rst new f...
Fix Response.text when body is Payload Fixes #6476.
AttributeError on Payload ### Describe the bug Is this actually a bug in aiohttp? https://github.com/aio-libs/aiohttp-devtools/issues/251 `response._body` at this point is actually a `StringPayload`, which does not have a `decode` attribute: https://github.com/aio-libs/aiohttp/blob/3.8/aiohttp/web_response.py#L6...
aio-libs/aiohttp
diff --git a/tests/test_client_request.py b/tests/test_client_request.py index a17c979c6..ecd02895e 100644 --- a/tests/test_client_request.py +++ b/tests/test_client_request.py @@ -448,6 +448,13 @@ def test_basic_auth_from_url(make_request: _RequestMaker) -> None: assert "python.org" == req.host +def test_basi...
[ "tests/test_client_request.py::test_basic_auth_no_user_from_url[pyloop]", "tests/test_helpers.py::test_basic_auth_no_user_from_url", "tests/test_web_response.py::test_payload_body_get_text[test-test]", "tests/test_web_response.py::test_payload_body_get_text[payload1-test]", "tests/test_web_response.py::test...
[ "tests/test_client_request.py::test_method1[pyloop]", "tests/test_client_request.py::test_method2[pyloop]", "tests/test_client_request.py::test_method3[pyloop]", "tests/test_client_request.py::test_method_invalid[pyloop]", "tests/test_client_request.py::test_version_1_0[pyloop]", "tests/test_client_reques...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "hard", "external_urls": [ "https://github.com/aio-libs/aiohttp-devtools/issues/251"...
7caa05fc6caf331d77840168e035c295ef4a1618
2025-03-10 15:06:17
docker.io/swerebenchv2/aristanetworks-anta:1078-7caa05f
aristanetworks__anta-1078
Method: AntaInventory.parse(cls, filename: str | Path, username: str, password: str, enable_password: str | None = None, timeout: float | None = None, *, enable: bool = False, insecure: bool = False, disable_cache: bool = False, file_format: Literal["yaml", "json"] = "yaml") Location: anta/inventory/__init__.py Input...
python
Apache-2.0
diff --git a/anta/cli/utils.py b/anta/cli/utils.py index 508424dd..34b96b3f 100644 --- a/anta/cli/utils.py +++ b/anta/cli/utils.py @@ -9,7 +9,7 @@ import enum import functools import logging from pathlib import Path -from typing import TYPE_CHECKING, Any, Callable +from typing import TYPE_CHECKING, Any, Callable, Li...
feat(anta): Support JSON inventory # Description cf title Fixes #742 # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have run pre-commit for code linting and typing (`pre-commit run`) - [x] I have made corresponding changes ...
Support JSON for inventory Similar to #714, ANTA should be able to load an inventory file using `json` format
aristanetworks/anta
diff --git a/tests/data/test_inventory_large.json b/tests/data/test_inventory_large.json new file mode 100644 index 00000000..876d9409 --- /dev/null +++ b/tests/data/test_inventory_large.json @@ -0,0 +1,207 @@ +{ + "anta_inventory": { + { + "hosts": [ + { + "name": "super-spine1", + "h...
[ "tests/units/inventory/test__init__.py::TestAntaInventory::test_parse_wrong_format", "tests/units/inventory/test_models.py::TestAntaInventoryInputs::test_dump_to_json" ]
[ "tests/units/inventory/test__init__.py::TestAntaInventory::test_parse_valid[Inventory_with_host_only]", "tests/units/inventory/test__init__.py::TestAntaInventory::test_parse_valid[ValidInventory_with_networks_only]", "tests/units/inventory/test__init__.py::TestAntaInventory::test_parse_valid[Inventory_with_rang...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
bbacdcaf2ee42b64a93fe7be57670e9afd216b76
2020-04-08 17:06:05
docker.io/swerebenchv2/codezonediitj-pydatastructs:253-bbacdca
codezonediitj__pydatastructs-253
Function: depth_first_search(graph, source_node, operation, *args, **kwargs) Location: pydatastructs/graphs/algorithms.py (public API exported in pydatastructs/__init__.py) Inputs: - **graph**: instance of Graph (adjacency‑list or adjacency‑matrix implementation). - **source_node**: `str` – name/id of the node where ...
python
custom-check-github
diff --git a/pydatastructs/graphs/__init__.py b/pydatastructs/graphs/__init__.py index 1e2eebf..d9aa51a 100644 --- a/pydatastructs/graphs/__init__.py +++ b/pydatastructs/graphs/__init__.py @@ -12,7 +12,8 @@ from .algorithms import ( breadth_first_search_parallel, minimum_spanning_tree, minimum_spanning_t...
DFS implemented (using the BFS API) <!-- 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. "Fix...
Add depth first search for graphs #### Description of the problem <!--Please provide a clear and details information of the bug/data structure to be added.--> Serial and Parallel version of depth first search are required to be added for graphs. #### Example of the problem <!--Provide a reproducible example code wh...
codezonediitj/pydatastructs
diff --git a/pydatastructs/graphs/tests/test_algorithms.py b/pydatastructs/graphs/tests/test_algorithms.py index 8ada73c..ab1ecdc 100644 --- a/pydatastructs/graphs/tests/test_algorithms.py +++ b/pydatastructs/graphs/tests/test_algorithms.py @@ -1,6 +1,7 @@ from pydatastructs import (breadth_first_search, Graph, bread...
[ "pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search", "pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search_parallel", "pydatastructs/graphs/tests/test_algorithms.py::test_minimum_spanning_tree", "pydatastructs/graphs/tests/test_algorithms.py::test_strongly_connected_...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://en.wikipedia.org/wiki/Depth-first_search", ...
b17555e5b91e00259a904b902d1774184f1e09f2
2023-10-23 21:07:24
docker.io/swerebenchv2/pyg-team-pytorch-geometric:8248-b17555e
pyg-team__pytorch_geometric-8248
Method: MetaPath2Vec.__init__(self, edge_index_dict: Dict[Tuple[str, str, str], Tensor], embedding_dim: int, metapath: List[Tuple[str, str, str]], walk_length: int = 10, context_size: int = 7, walks_per_node: int = 5, num_negative_samples: int = 5, num_nodes_dict: Optional[Dict[str, int]] = None, sparse: bool = False) ...
python
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 22598fb75..0a9136eac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed +- Fixed empty edge handling in `MetaPath2Vec` ([#8248](https://github.com/pyg-team/pytorch_ge...
Fix empty edge handling in `MetaPath2Vec` Fixes #8246
`MetaPath2Vec` fails in a heterogeneous graph with zero-degree nodes ### 🐛 Describe the bug Just found that `MetaPath2Vec` does not work well on a heterogeneous graph with zero-degree nodes. Here is the example to reproduce the bug: ```python import torch from torch_geometric.data import HeteroData from torch_...
pyg-team/pytorch_geometric
diff --git a/test/nn/models/test_metapath2vec.py b/test/nn/models/test_metapath2vec.py index 7f00515c6..208319a8d 100644 --- a/test/nn/models/test_metapath2vec.py +++ b/test/nn/models/test_metapath2vec.py @@ -39,3 +39,25 @@ def test_metapath2vec(device): acc = model.test(torch.ones(20, 16), torch.randint(10, (20, ...
[ "test/nn/models/test_metapath2vec.py::test_metapath2vec_empty_edges" ]
[ "test/nn/models/test_metapath2vec.py::test_metapath2vec[device0]" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/pyg-team/pytorch_geometric/blob/114dd...
be7ba7bfa17e7cb0c795e101662d1e490334ec84
2020-07-26 01:20:59
docker.io/swerebenchv2/python-markdown-markdown:1006-be7ba7b
python-markdown__markdown-1006
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/change_log/release-3.3.md b/docs/change_log/release-3.3.md index dfbb384..eb7fe7c 100644 --- a/docs/change_log/release-3.3.md +++ b/docs/change_log/release-3.3.md @@ -75,6 +75,7 @@ The following bug fixes are included in the 3.3 release: * Avoid a `RecursionError` from deeply nested blockquotes (#799...
Fix complex scenarios with lists and admonitions Add better logic to admonitions to account for more complex list cases Fixes #1004
Bug related to Admontion and List Interaction Source: ```py import markdown md = """ - List !!! note "Admontion" - Paragraph Paragraph """ print(markdown.markdown(md, extensions=['admonition'])) ``` Output: ```html <ul> <li> <p>List</p> <div class="admonition not...
Python-Markdown/markdown
diff --git a/tests/test_syntax/extensions/test_admonition.py b/tests/test_syntax/extensions/test_admonition.py new file mode 100644 index 0000000..39be997 --- /dev/null +++ b/tests/test_syntax/extensions/test_admonition.py @@ -0,0 +1,194 @@ +""" +Python Markdown + +A Python implementation of John Gruber's Markdown. + +...
[ "tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_definition_list", "tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_with_big_lists", "tests/test_syntax/extensions/test_admonition.py::TestAdmonition::test_with_complex_lists", "tests/test_syntax/extensions/test_admoni...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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://python-markdown.github.io/", "https://gi...
a33a99b7953130220ed7d3ad38d358c1124276af
2024-11-05 14:18:14
docker.io/swerebenchv2/stfc-psyclone:2767-a33a99b
stfc__psyclone-2767
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/changelog b/changelog index b806b6b7c..551dd689d 100644 --- a/changelog +++ b/changelog @@ -281,6 +281,9 @@ 107) PR #2776 for #1280. Fixes ref_guide warnings. + 108) PR #2767 for #2755. Bug fix for psyad failing to transform array + assignment + release 2.5.0 14th of February 2024 1) PR #2199 fo...
(Closes #2755) Bug fix for psyad failing to transform array assignment A small change that (pleasingly) only involved me updating some code to remove an old restriction. @DrTVockerodtMO please could you try this branch and let me know whether it solves your problem?
[LFRic] [PSyAD] PSyAD no longer computes adjoint of vector assigments properly in PSyclone 3.0-dev In testing PSyclone 3.0, we find that forward code that looks like ``` vector(:) = vector(:) + constant(:) * scalar ``` where `vector` and `scalar` are active no longer adjoints to ``` do idx = vector_ubound, ...
stfc/PSyclone
diff --git a/src/psyclone/tests/psyad/tl2ad_test.py b/src/psyclone/tests/psyad/tl2ad_test.py index 843dd0e93..710605efc 100644 --- a/src/psyclone/tests/psyad/tl2ad_test.py +++ b/src/psyclone/tests/psyad/tl2ad_test.py @@ -207,6 +207,26 @@ def test_generate_adjoint_str_trans(tmpdir): assert Compile(tmpdir).string_co...
[ "src/psyclone/tests/psyad/tl2ad_test.py::test_generate_adjoint_str_trans_error", "src/psyclone/tests/psyad/transformations/test_preprocess.py::test_preprocess_arrayassign2loop_failure", "src/psyclone/tests/psyir/nodes/array_mixin_test.py::test_get_effective_shape" ]
[ "src/psyclone/tests/psyad/tl2ad_test.py::test_generate_adjoint_str", "src/psyclone/tests/psyad/tl2ad_test.py::test_generate_adjoint_str_lfric_api", "src/psyclone/tests/psyad/tl2ad_test.py::test_generate_adjoint_str_function", "src/psyclone/tests/psyad/tl2ad_test.py::test_generate_adjoint_str_wrong_api", "sr...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
6547ea283b14965d74e4facaadac63e98d24ae4d
2025-07-16 20:25:59
docker.io/swerebenchv2/collective-icalendar:880-6547ea2
collective__icalendar-880
Method: Event.duration(self) Location: src/icalendar/cal/event.py Inputs: self – an Event component instance; must have either a DURATION property or both start and end defined. Outputs: Returns a timedelta representing the event’s duration. If the component contains a “DURATION” property, that value is returned; ot...
python
custom-check-github
diff --git a/CHANGES.rst b/CHANGES.rst index a6169f7..fed197f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -46,6 +46,7 @@ Bug fixes: - Fix invalid calendar: Parsing a date with TZID results in a datetime to not loose the timezone. See `Issue 187 <https://github.com/collective/icalendar/issues/187>`_. - Fix timezon...
Fix Todo.duration and Event.duration to return DURATION property when set (fixes #867) ## Summary This PR fixes issue #867 where `Todo.duration` raises an `IncompleteComponent` error when the `DURATION` property is set but `DTSTART` is missing. The fix ensures that both `Todo.duration` and `Event.duration` return the ...
[BUG] todo.duration raises error if dtstart is missing <!-- This template is there to guide you and help us. If you can not complete everything here, that is fine. --> ## Describe the bug <!-- A clear and concise description of what the bug is. --> While an event should have a dtstart, there is no such requirement for...
collective/icalendar
diff --git a/src/icalendar/tests/test_issue_662_component_properties.py b/src/icalendar/tests/test_issue_662_component_properties.py index 4528700..607a8c3 100644 --- a/src/icalendar/tests/test_issue_662_component_properties.py +++ b/src/icalendar/tests/test_issue_662_component_properties.py @@ -394,18 +394,35 @@ incom...
[ "src/icalendar/tests/test_issue_662_component_properties.py::test_duration_property_accessible_without_dtstart[component_with_duration0]", "src/icalendar/tests/test_issue_662_component_properties.py::test_duration_property_accessible_without_dtstart[component_with_duration1]", "src/icalendar/tests/test_issue_86...
[ "src/icalendar/tests/test_issue_662_component_properties.py::test_component_dtstart[dtstart0-Event-_set_component_start_init]", "src/icalendar/tests/test_issue_662_component_properties.py::test_component_dtstart[dtstart0-Event-_set_component_start_ics]", "src/icalendar/tests/test_issue_662_component_properties....
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
5340ee337a2364e84c38d696c107f19c341dd6eb
2020-12-23 15:14:31
docker.io/swerebenchv2/slackapi-python-slack-sdk:904-5340ee3
slackapi__python-slack-sdk-904
Method: ActionsBlock.__init__(self, block_id: Optional[str] = None, elements: List[Union[BlockElement, dict]]) Location: slack_sdk.models.blocks.blocks.ActionsBlock (inherits from Block) Inputs: - **block_id** – optional string identifier for the block (may be omitted). - **elements** – a list containing either ...
python
MIT
diff --git a/slack_sdk/models/blocks/blocks.py b/slack_sdk/models/blocks/blocks.py index 69b45c5..f53794b 100644 --- a/slack_sdk/models/blocks/blocks.py +++ b/slack_sdk/models/blocks/blocks.py @@ -243,7 +243,7 @@ class ActionsBlock(Block): super().__init__(type=self.type, block_id=block_id) show_unkno...
Fix #903 by parsing in ActionsBlock ## Summary Fix [issue 903](https://github.com/slackapi/python-slack-sdk/issues/903) ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient** (Incoming Webhook, response_url sender) - [x] *...
ActionsBlock elements are not parsed ### Description In ActionsBlock __init__, elements are simplie copied. [Exact bug place](https://github.com/slackapi/python-slack-sdk/blob/4e4524230ed41ef7cd9d637c52f4e86b1ffedad9/slack/web/classes/blocks.py#L241) For all other Blocks, similar elements are parsed into BlockE...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/web/classes/test_blocks.py b/tests/slack_sdk/web/classes/test_blocks.py index 5f694b6..55b577b 100644 --- a/tests/slack_sdk/web/classes/test_blocks.py +++ b/tests/slack_sdk/web/classes/test_blocks.py @@ -13,11 +13,14 @@ from slack_sdk.models.blocks import ( Block, CallBlock, ...
[ "tests/slack_sdk/web/classes/test_blocks.py::ActionsBlockTests::test_element_parsing" ]
[ "tests/slack_sdk/web/classes/test_blocks.py::BlockTests::test_parse", "tests/slack_sdk/web/classes/test_blocks.py::SectionBlockTests::test_document_1", "tests/slack_sdk/web/classes/test_blocks.py::SectionBlockTests::test_document_2", "tests/slack_sdk/web/classes/test_blocks.py::SectionBlockTests::test_documen...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/slackapi/python-slack-sdk/blob/4e4524...
f1a6f0658e79c7726236eb1e59ede78f7108e61b
2021-01-08 17:41:57
docker.io/swerebenchv2/rasbt-mlxtend:765-f1a6f06
rasbt__mlxtend-765
Method: accuracy_score(y_target, y_predicted, method='standard', pos_label=1) Location: mlxtend.evaluate.accuracy_score Inputs: - y_target: array‑like of true class labels (binary or multiclass). - y_predicted: array‑like of predicted class labels, same shape as y_target. - method (optional): str, one of `'standar...
python
custom-check-github
diff --git a/.github/workflows/flake8-check.yml b/.github/workflows/flake8-check.yml deleted file mode 100644 index e4aa6334..00000000 --- a/.github/workflows/flake8-check.yml +++ /dev/null @@ -1,16 +0,0 @@ - -name: PEP8 -on: [pull_request] -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: actions/che...
Fix average acc for binary Fixes #762
Balanced accuracy does not work for binary case There seems to be an issue with the balanced accuracy when the class labels are binary labels. I.e., ```python from mlxtend.evaluate import accuracy_score a = [0, 0, 0, 0, 1, 1] b = [0, 0, 1, 1, 1, 1] accuracy_score(a, b) 0.6666666666666666 ``` and ``...
rasbt/mlxtend
diff --git a/mlxtend/evaluate/tests/test_accuracy.py b/mlxtend/evaluate/tests/test_accuracy.py index a01fd67f..f2ff1ea5 100644 --- a/mlxtend/evaluate/tests/test_accuracy.py +++ b/mlxtend/evaluate/tests/test_accuracy.py @@ -32,9 +32,17 @@ def test_standard(): assert y_1 == 3 -def test_average(): +def test_avera...
[ "mlxtend/evaluate/tests/test_accuracy.py::test_average_multiclass", "mlxtend/evaluate/tests/test_accuracy.py::test_average_binary", "mlxtend/evaluate/tests/test_scoring.py::test_avg_perclass_accuracy" ]
[ "mlxtend/evaluate/tests/test_accuracy.py::test_multiclass_binary", "mlxtend/evaluate/tests/test_accuracy.py::test_standard", "mlxtend/evaluate/tests/test_scoring.py::test_metric_argument", "mlxtend/evaluate/tests/test_scoring.py::test_y_arguments", "mlxtend/evaluate/tests/test_scoring.py::test_accuracy", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
9ccf3e0cb4575c11f41288cdc95a0a8f6f3875ac
2024-02-28 15:30:13
docker.io/swerebenchv2/ncar-geocat-comp:571-9ccf3e0
ncar__geocat-comp-571
Function: delta_pressure(pressure_lev, surface_pressure) Location: geocat.comp.meteorology Inputs: - pressure_lev – sequence (list, tuple, or NumPy array) of pressure levels (same units, must be ≥ 0). - surface_pressure – scalar surface pressure (must be greater than the minimum value in ``pressure_lev``). Raises ...
python
Apache-2.0
diff --git a/docs/release-notes.rst b/docs/release-notes.rst index b28bdc2..474f355 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -5,7 +5,7 @@ Release Notes ============= -v2024.03.0 (Unreleased) +v2024.04.0 (Unreleased) ----------------------- Internal Changes @@ -15,6 +15,11 @@ Internal ...
Fix delta_pressure to handle the case when pressure levels are greater than the surface pressure ## PR Summary Adds some code to handle the case when pressure levels are greater than the surface pressure. I'm not necessarily convinced this is a the best / most performant way to handle this, but should do the job an...
geocat.comp.meteorology.delta_pressure is different with dpres_plev ###this is the ncl code plev = (/ 1000.,950.,900.,850.,800.,750.,700.,650.,600., \ 550.,500.,450.,400.,350.,300.,250.,200., \ 175.,150.,125.,100., 80., 70., 60., 50., \ 40., 30., 25., 20. /) plev = plev*100. plev@u...
NCAR/geocat-comp
diff --git a/test/test_meteorology.py b/test/test_meteorology.py index d4ed8ab..9315751 100644 --- a/test/test_meteorology.py +++ b/test/test_meteorology.py @@ -515,15 +515,29 @@ class Test_Delta_Pressure: delta_p = delta_pressure(pressure_lev, self.surface_pressure_scalar) assert sum(delta_p) == (sel...
[ "test/test_meteorology.py::Test_Delta_Pressure::test_negative_pressure_error", "test/test_meteorology.py::Test_Delta_Pressure::test_relative_pressure_error" ]
[ "test/test_meteorology.py::Test_dewtemp::test_float_input", "test/test_meteorology.py::Test_dewtemp::test_list_input", "test/test_meteorology.py::Test_dewtemp::test_numpy_input", "test/test_meteorology.py::Test_dewtemp::test_xarray_input", "test/test_meteorology.py::Test_dewtemp::test_dims_error", "test/t...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
928e9ebdae74cefb1ed132be2d7ab9f80c8b1173
2018-10-12 21:04:23
docker.io/swerebenchv2/theacodes-nox:145-928e9eb
theacodes__nox-145
Method: GlobalConfig.merge_from_options(self, options) Location: nox.__main__.GlobalConfig class, defined in `nox/__main__.py`. Inputs: &nbsp;&nbsp;• `options` – an instance of `nox._options.options` (or the `options` class) containing the Noxfile‑specified defaults: `sessions`, `keywords`, `envdir`, `reuse_exist...
python
Apache-2.0
diff --git a/docs/config.rst b/docs/config.rst index 7e1dc8c..b37b56e 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -110,3 +110,42 @@ Nox will call your session functions with a :class:`Session` object. You use thi .. autoclass:: Session :members: :undoc-members: + + +Modifying Nox's behavior in the ...
Add nox.options which allows specifying command-line configuration in the Noxfile Closes #141 @dhermes, @lukesneeringer I would appreciate a critical eye here. I'm not 100% sold on the way I did this internally.
Allow specifying command-line parameters in `noxfile` Related #133, #40, #135. Noxfiles should be able to specify *some* of the command-line args in the noxfile, for example: ```python import nox nox.options.envdir = ".cache" nox.options.sessions = ["tests", "lint"] ... ``` Command-line args should *o...
theacodes/nox
diff --git a/tests/test_main.py b/tests/test_main.py index 9e901d0..9283622 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -23,6 +23,7 @@ import pytest import nox import nox.__main__ +import nox._options import nox.registry import nox.sessions @@ -31,35 +32,99 @@ RESOURCES = os.path.join(os.path.di...
[ "tests/test_main.py::TestGlobalConfig::test_constructor", "tests/test_main.py::TestGlobalConfig::test_merge_from_options_no_changes", "tests/test_main.py::TestGlobalConfig::test_merge_from_options_options_by_default", "tests/test_main.py::TestGlobalConfig::test_merge_from_options_args_precendence", "tests/t...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "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": ...
9c010654dce2b8cd9ca4e99dd73885439885e4fc
2022-05-18 12:56:59
docker.io/swerebenchv2/researchobject-ro-crate-py:126-9c01065
researchobject__ro-crate-py-126
No new interfaces are introduced.
python
Apache-2.0
diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py index 8ed15de..c0fa0b8 100644 --- a/rocrate/rocrate.py +++ b/rocrate/rocrate.py @@ -151,8 +151,8 @@ class ROCrate(): root = entities[metadata["about"]["@id"]] except (KeyError, TypeError): raise ValueError("metadata descriptor does ...
Allow additional types for root dataset Fixes #125. See also: https://github.com/ResearchObject/ro-crate/issues/182
Allow root dataset to have more than one type Fails if root dataset has an array as a value for @type eg. @type = ['Dataset', 'RepositoryCollection'] Note: @ptsefton says: Can we always code defensively, please. https://github.com/ResearchObject/ro-crate-py/blob/9c010654dce2b8cd9ca4e99dd73885439885e4fc/rocr...
ResearchObject/ro-crate-py
diff --git a/test/test_read.py b/test/test_read.py index e3f2820..6497a76 100644 --- a/test/test_read.py +++ b/test/test_read.py @@ -530,7 +530,7 @@ def test_find_root_bad_entities(): # root type is not Dataset entities = deepcopy(orig_entities) entities["./"]["@type"] = "Thing" - with pytest.raises(V...
[ "test/test_read.py::test_find_root_bad_entities", "test/test_read.py::test_find_root_multiple_types" ]
[ "test/test_read.py::test_crate_dir_loading[False-False]", "test/test_read.py::test_crate_dir_loading[True-False]", "test/test_read.py::test_crate_dir_loading[True-True]", "test/test_read.py::test_legacy_crate", "test/test_read.py::test_bad_crate", "test/test_read.py::test_init[False]", "test/test_read.p...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/ResearchObject/ro-crate-py/blob/9c010...
ecc8f31c437f494ea8be470a25e3f1d5a0709a7e
2024-02-21 20:27:08
docker.io/swerebenchv2/openmdao-openmdao:3126-ecc8f31
openmdao__openmdao-3126
Function: force_check_partials(prob, method='cs', step=1e-6, compact_print=False, out_stream=None, **kwargs) Location: openmdao.utils.testing_utils Inputs: - prob (Problem): the OpenMDAO Problem to run partial checks on. - method (str, optional): finite‑difference/complex‑step method to use (e.g., 'cs', 'fd'). - step (...
python
custom-check-github
diff --git a/openmdao/core/problem.py b/openmdao/core/problem.py index 415311eb2..78d1334b6 100644 --- a/openmdao/core/problem.py +++ b/openmdao/core/problem.py @@ -1197,11 +1197,12 @@ class Problem(object): excludes = [excludes] if isinstance(excludes, str) else excludes comps = [] - under_C...
Updated check_partials to account for scaling when using the matrix-free API ### Summary Changed `check_partials` to use `run_apply_linear` when performing a matrix-vector product so that scaling is properly applied. Also: - changed local variable name from `under_CI` to a more accurate `force_check_partials` -...
Residual scaling not accounted for in matrix-free partial derivatives ### Description When the residuals of an implicit component are scaled (for example using the `res_ref` argument to `add_output`), the partial derivatives computed through the matrix-free API are not modified to account for this scaling as they are ...
OpenMDAO/OpenMDAO
diff --git a/openmdao/core/tests/test_check_partials.py b/openmdao/core/tests/test_check_partials.py index 98cb6efc4..1406e37e3 100644 --- a/openmdao/core/tests/test_check_partials.py +++ b/openmdao/core/tests/test_check_partials.py @@ -1983,17 +1983,14 @@ class TestCheckDerivativesOptionsDifferentFromComputeOptions(un...
[ "openmdao/core/tests/test_scaling.py::TestResidualScaling::test_residual_scaling" ]
[ "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_bug_local_method", "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_check_partials_display_rev", "openmdao/core/tests/test_check_partials.py::TestProblemCheckPartials::test_check_partials_show_only_incorrect",...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
ab7f0e7835e5bf1c34a90c092882ac0c600c2fd9
2018-02-24 13:04:46
docker.io/swerebenchv2/maniacallabs-bibliopixel:634-ab7f0e7
maniacallabs__bibliopixel-634
Function: import_symbol(symbol_path: str, python_path: str | None = None) Location: bibliopixel.project.importer.import_symbol Inputs: - **symbol_path** (str): Full dotted path to the target object (e.g., ``'bibliopixel.drivers.serial.Serial'``). - **python_path** (str, optional): Base package path used for “smart” r...
python
MIT
diff --git a/bibliopixel/animation/__init__.py b/bibliopixel/animation/__init__.py index 9faa07b..78df619 100644 --- a/bibliopixel/animation/__init__.py +++ b/bibliopixel/animation/__init__.py @@ -3,8 +3,15 @@ from . circle import BaseCircleAnim from . game import BaseGameAnim from . matrix import BaseMatrixAnim fro...
Remove most global aliases (fix #632) This was not entirely a success because I couldn't remove all of them, but it's a good start. I want to avoid documenting them. :-D I first write a test that identifies aliases that are redundant due to smart resolution, but leaves them alone. Then there's code to make more ...
Get rid of most or all of the global aliases Need to write this out to figure out how to write a test for it. You don't have to read it. :-D --- _Project-level_ aliases are fantastic - just so useful in keeping projects readable. Proven value! Not on the cutting block. --- However, we have three other f...
ManiacalLabs/BiblioPixel
diff --git a/test/bibliopixel/project/aliases_test.py b/test/bibliopixel/project/aliases_test.py index 82f46ca..551bb14 100644 --- a/test/bibliopixel/project/aliases_test.py +++ b/test/bibliopixel/project/aliases_test.py @@ -13,7 +13,7 @@ class AliasTest(unittest.TestCase): def test_resolve(self): self....
[ "test/bibliopixel/project/aliases_test.py::AliasTest::test_not_needed", "test/bibliopixel/project/bad_project_test.py::BadProjectTest::test_bad_animation_attribute" ]
[ "test/bibliopixel/project/aliases_test.py::AliasTest::test_additional_aliases", "test/bibliopixel/project/aliases_test.py::AliasTest::test_empty", "test/bibliopixel/project/aliases_test.py::AliasTest::test_existence", "test/bibliopixel/project/aliases_test.py::AliasTest::test_marker", "test/bibliopixel/proj...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/ManiacalLabs/BiblioPixel/blob/maste...
f125436b1c36dfc34d81ba52d5a426245c524c51
2025-04-24 16:39:03
docker.io/swerebenchv2/developmentseed-titiler:1138-f125436
developmentseed__titiler-1138
Method: _Min.__call__(self, img: ImageData) -> ImageData Location: src/titiler/core/algorithm/math.py Inputs: img – an ImageData instance whose ``array`` is a ``numpy.ma.MaskedArray`` (any dtype). The call expects the band axis to be the first dimension (shape ``(bands, height, width)``). Outputs: ImageData containing ...
python
MIT
diff --git a/CHANGES.md b/CHANGES.md index b956b63..f725e7e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,8 @@ ### titiler.core +* add `min`, `max`, `mean`, `median`, `std` and `var` algorithms + * Fix TerrainRGB algorithm and param user-controlled nodata-height (@jo-chemla, https://github.com/development...
add `min`, `max`, `mean`, `median`, `std` and `var` algorithms closes #1137
Add more Algorithms (min/max/mean/median.....) ref https://github.com/sentinel-hub/titiler-openeo/blob/5452bd2d5026c761526d0ad0a715af28dbef352a/titiler/openeo/processes/implementations/math.py#L175-L202
developmentseed/titiler
diff --git a/src/titiler/core/tests/test_algorithms.py b/src/titiler/core/tests/test_algorithms.py index 4be542c..c48f404 100644 --- a/src/titiler/core/tests/test_algorithms.py +++ b/src/titiler/core/tests/test_algorithms.py @@ -3,6 +3,7 @@ import json import numpy +import pytest from fastapi import Depends, FastA...
[ "src/titiler/core/tests/test_algorithms.py::test_math_algorithm[min-min-options0]", "src/titiler/core/tests/test_algorithms.py::test_math_algorithm[max-max-options1]", "src/titiler/core/tests/test_algorithms.py::test_math_algorithm[median-median-options2]", "src/titiler/core/tests/test_algorithms.py::test_mat...
[ "src/titiler/core/tests/test_algorithms.py::test_algo", "src/titiler/core/tests/test_algorithms.py::test_terrain_algo", "src/titiler/core/tests/test_algorithms.py::test_normalized_index", "src/titiler/core/tests/test_algorithms.py::test_hillshade", "src/titiler/core/tests/test_algorithms.py::test_slope", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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/sentinel-hub/titiler-openeo/blob/54...
21a0bbbf1299e6e3323fea556b39f4ccad54e1f3
2025-01-27 12:47:06
docker.io/swerebenchv2/stac-utils-pystac:1509-21a0bbb
stac-utils__pystac-1509
Method: Catalog.from_dict(cls, d: dict[str, Any], href: str | None = None, root: Catalog | None = None, migrate: bool = True, preserve_dict: bool = True) Location: pystac.catalog.Catalog Inputs: JSON‑compatible dictionary representing a Catalog; optional href, optional root catalog; migrate flag (default True) to run...
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index e2c8e2c6..d6d3826e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,13 @@ ## [Unreleased] +### Changed + +- `migrate=True` is now the default in `from_dict` ([#1509](https://github.com/stac-utils/pystac/pull/1509)) + ### Fixed -- Fall back to `epsg` when `co...
fix: migrate by default **Related Issue(s):** - Closes #1504 - Motivated by #1503 **Description:** With increased heterogeneity of extensions in the ecosystem, especially breaking changes like [proj v2](https://github.com/stac-extensions/projection/releases/tag/v2.0.0), there's more and more schema allowed i...
Migrate by default As described in https://github.com/stac-utils/pystac/issues/1503#issuecomment-2612469196, our `from_file` method migrates to the latest version by default, but `from_dict` does not. This can lead to confusing discrepancies in behavior depending on how STAC data gets into **pystac**. I think we should...
stac-utils/pystac
diff --git a/tests/data-files/projection/another-1.1.json b/tests/data-files/projection/another-1.1.json new file mode 100644 index 00000000..b5144063 --- /dev/null +++ b/tests/data-files/projection/another-1.1.json @@ -0,0 +1,94 @@ +{ + "stac_version": "0.9.0", + "stac_extensions": [ + "https://stac-extensions.gi...
[ "tests/extensions/test_projection.py::test_v1_crs_string", "tests/test_item.py::test_migrate_by_default" ]
[ "tests/extensions/test_classification.py::test_stac_extensions", "tests/extensions/test_classification.py::test_classification_object", "tests/extensions/test_classification.py::test_bitfield_object", "tests/extensions/test_classification.py::test_ext_raises_if_item_does_not_conform", "tests/extensions/test...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/stac-utils/pystac/issues/1503#issue...
8e57c919f45e57f6b9199aaae415d423ad033c5d
2025-05-21 20:57:24
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4149-8e57c91
aws-cloudformation__cfn-lint-4149
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py index 005cedfaa..0dff8066e 100644 --- a/src/cfnlint/config.py +++ b/src/cfnlint/config.py @@ -777,8 +777,9 @@ class ConfigMixIn(TemplateArgs, CliArgs, ConfigFileArgs): filenames = cli_alt_args elif cli_args: filenames = cli_ar...
undo change 4138 *Issue #, if available:* fix #4047 *Description of changes:* By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Autodetect template files ### Is this feature request related to a new rule or cfn-lint capabilities? rules ### Describe the feature you'd like to request If a template file [AWSTemplateFormatVersion: '2010-09-09'] is run through cfn-lint as a normal file, it results in E1001: 'Resources' is a required property (des...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/runner/test_cli.py b/test/unit/module/runner/test_cli.py index 7d843dafb..8d511584b 100644 --- a/test/unit/module/runner/test_cli.py +++ b/test/unit/module/runner/test_cli.py @@ -79,7 +79,8 @@ class TestCli(BaseTestCase): self.assertEqual(e.exception.code, 1) mock_print...
[ "test/unit/module/runner/test_cli.py::TestCli::test_print_help" ]
[ "test/unit/module/runner/test_cli.py::TestCli::test_bad_regions", "test/unit/module/runner/test_cli.py::TestCli::test_list_rules", "test/unit/module/runner/test_cli.py::TestCli::test_update_documentation", "test/unit/module/runner/test_cli.py::TestCli::test_update_iam_policies", "test/unit/module/runner/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.88, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
17067930128e78a9c3c7c5280b5417b7bce82657
2021-12-15 08:24:52
docker.io/swerebenchv2/python-attrs-attrs:888-1706793
python-attrs__attrs-888
Function: asdict(inst, retain_collection_types=False, filter=None, dict_factory=dict, value_serializer=None, tuple_keys=None) Location: attr.asdict (public API in the *attrs* library) Inputs: - **inst**: an instance of a class decorated with `@attr.s`. - **retain_collection_types** (bool, default False): when True, va...
python
MIT
diff --git a/changelog.d/646.change.rst b/changelog.d/646.change.rst new file mode 100644 index 0000000..aa3e389 --- /dev/null +++ b/changelog.d/646.change.rst @@ -0,0 +1,1 @@ +``attr.asdict(retain_collection_types=False)`` (default) dumps collection-esque keys as tuples. diff --git a/changelog.d/888.change.rst b/chang...
Serialize keys as tuples in asdict # Summary This allows to have collection-esque keys in dict. I have decided to switch it on by default if retain_collection_types is false, because the current behavior is non-sensical. Fixes #646 Needed for #887 # Pull Request Check List This is just a friendly rem...
`asdict` fails for attributes of type Mapping with keys of type `Tuple` ``` @attr.s class A: a = attr.ib() instance = A({(1, ): 1}) attr.asdict(instance) ``` produces: `TypeError: unhashable type: 'list'` when the `retain_collection_types` flag is set to false (the default). This can take a ...
python-attrs/attrs
diff --git a/tests/test_funcs.py b/tests/test_funcs.py index e957d0e..79dfdff 100644 --- a/tests/test_funcs.py +++ b/tests/test_funcs.py @@ -26,7 +26,7 @@ SEQUENCE_TYPES = (list, tuple) @pytest.fixture(scope="session", name="C") -def fixture_C(): +def _C(): """ Return a simple but fully featured attrs cl...
[ "tests/test_funcs.py::TestAsDict::test_tuple_keys" ]
[ "tests/test_funcs.py::TestAsDict::test_shallow", "tests/test_funcs.py::TestAsDict::test_recurse", "tests/test_funcs.py::TestAsDict::test_nested_lists", "tests/test_funcs.py::TestAsDict::test_nested_dicts", "tests/test_funcs.py::TestAsDict::test_recurse_property", "tests/test_funcs.py::TestAsDict::test_fil...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
c8b5470e25012477f817a619e88f9ad1bea08bbe
2023-08-12 18:48:17
docker.io/swerebenchv2/getmoto-moto:6641-c8b5470
getmoto__moto-6641
Function: ScheduleExists(name: str) Location: moto.scheduler.exceptions Inputs: - **name** (str): The name of the schedule that already exists. This value is used to compose the error message. Outputs: - Raises a **JsonRESTError** (converted by Moto to a Boto3 **ClientError**) with: - **Error Code**: `"ConflictExce...
python
Apache-2.0
diff --git a/moto/sagemaker/models.py b/moto/sagemaker/models.py index a5bf3c6da..726eab895 100644 --- a/moto/sagemaker/models.py +++ b/moto/sagemaker/models.py @@ -3,6 +3,7 @@ import os import random import string from datetime import datetime +from dateutil.tz import tzutc from typing import Any, Dict, List, Opti...
Scheduler: create_scheduler() now errors on duplicate names Fixes #6624
Scheduler not raising ConflictException when duplicate schedules created Boto3 will raise a `ConflictException` when an Eventbridge schedule is created with the same name as an existing schedule. While mocking with moto, this exception is not raised. The response returns a success status and the second schedule is simp...
getmoto/moto
diff --git a/tests/test_scheduler/test_scheduler.py b/tests/test_scheduler/test_scheduler.py index 9ff962a51..fea2ca458 100644 --- a/tests/test_scheduler/test_scheduler.py +++ b/tests/test_scheduler/test_scheduler.py @@ -144,6 +144,26 @@ def test_update_schedule(extra_kwargs): assert schedule["CreationDate"] != sc...
[ "tests/test_scheduler/test_scheduler.py::test_create_duplicate_schedule" ]
[ "tests/test_scheduler/test_scheduler.py::test_create_get_schedule", "tests/test_scheduler/test_scheduler.py::test_create_get_delete__in_different_group", "tests/test_scheduler/test_scheduler.py::test_update_schedule[without_group]", "tests/test_scheduler/test_scheduler.py::test_update_schedule[with_group]", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
a48e34f84d724227d383bc000ad241f8f998e0a2
2022-02-27 15:49:32
docker.io/swerebenchv2/pennylaneai-pennylane:2238-a48e34f
pennylaneai__pennylane-2238
No new interfaces are introduced.
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 60c36ef58..a0017ec47 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -156,6 +156,10 @@ <h3>Bug fixes</h3> +* The ``qml.ctrl`` transform now works correctly with gradient transforms + such as the para...
Fix bug to allow `qml.ctrl` to work with gradient transforms **Context:** As per #2237, the `qml.ctrl` transform was not working with gradient transforms such as the parameter-shift rule. It does however work with backprop. **Description of the Change:** - Ensures that the tape parameters are up to date prior to ...
[BUG] `qml.ctrl` broken differentiability with parameter-shift/finite-diff ### Expected behavior `qml.ctrl` supports differentiating over input parameters to the function to be controlled. For example, for an operation being controlled, the following works: ```python # Autograd # ---- import pennylane as qml ...
PennyLaneAI/pennylane
diff --git a/tests/transforms/test_control.py b/tests/transforms/test_control.py index 882d6972b..3bc311cab 100644 --- a/tests/transforms/test_control.py +++ b/tests/transforms/test_control.py @@ -309,3 +309,97 @@ def test_controlled_template_and_operations(): tape = expand_tape(tape) assert len(tape.operati...
[ "tests/transforms/test_control.py::TestDifferentiation::test_autograd[parameter-shift]", "tests/transforms/test_control.py::TestDifferentiation::test_autograd[finite-diff]" ]
[ "tests/transforms/test_control.py::test_control_sanity_check", "tests/transforms/test_control.py::test_adjoint_of_control", "tests/transforms/test_control.py::TestAdjointOutsideQueuing::test_single_par_op", "tests/transforms/test_control.py::TestAdjointOutsideQueuing::test_template", "tests/transforms/test_...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
49b0706a9e9f9f49da409a78a46465d5484b7602
2024-11-02 09:56:02
docker.io/swerebenchv2/getmoto-moto:8280-49b0706
getmoto__moto-8280
Method: ELBV2Backend.describe_listener_attributes(self, listener_arn: str) Location: moto/elbv2/models.py Inputs: - **listener_arn** (str): ARN of the listener whose attributes are being requested. Outputs: - **Dict[str, str]**: Mapping of attribute keys to their string values (e.g., `{"tcp.idle_timeout.seconds": "35...
python
Apache-2.0
diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py index 5bea4b221..4c691c8bc 100644 --- a/moto/elbv2/models.py +++ b/moto/elbv2/models.py @@ -315,6 +315,8 @@ class FakeListener(CloudFormationModel): is_default=True, ) + self.attributes = {"tcp.idle_timeout.seconds": "350"} + @...
ELBv2: Describe/Modify Listener Attributes Fixes #8270
NotImplementedError: The describe_listener_attributes action has not been implemented The pipeline was running until lastweek , but now the terraform apply hangs up with running in loops with the error NotImplementedError: The describe_listener_attributes action has not been implemented
getmoto/moto
diff --git a/tests/test_elbv2/test_elbv2_listener_attributes.py b/tests/test_elbv2/test_elbv2_listener_attributes.py new file mode 100644 index 000000000..663674b8d --- /dev/null +++ b/tests/test_elbv2/test_elbv2_listener_attributes.py @@ -0,0 +1,48 @@ +import boto3 +import pytest + +from moto import mock_aws + + +@moc...
[ "tests/test_elbv2/test_elbv2_listener_attributes.py::test_modify_listener_attributes[tcp.idle_timeout.seconds-350-360]" ]
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
63b4c91f4f466fa6fb9e256af3cadc11bb8e4a05
2022-04-24 12:41:46
docker.io/swerebenchv2/py-pdf-pypdf2:814-63b4c91
py-pdf__pypdf2-814
No new interfaces are introduced.
python
custom-check-github
diff --git a/PyPDF2/pdf.py b/PyPDF2/pdf.py index fe6c541e..bc9ae02f 100644 --- a/PyPDF2/pdf.py +++ b/PyPDF2/pdf.py @@ -1831,6 +1831,12 @@ class PdfFileReader(object): stream.seek(-1, 2) if not stream.tell(): raise PdfReadError('Cannot read an empty file') + if self.strict: + ...
MAINT: Validate PDF magic byte in strict mode Closes #626
Uncaught exceptions on generic file containing 'startxref' string **Bug report** Several issues were spotted in the PdfFileReader class. The following code was used during tests: ```python import sys from PyPDF2 import PdfFileReader from PyPDF2.utils import PyPdfError if __name__ == "__main__": with ope...
py-pdf/PyPDF2
diff --git a/Tests/test_papersizes.py b/Tests/test_papersizes.py index b198fbe4..605678e7 100644 --- a/Tests/test_papersizes.py +++ b/Tests/test_papersizes.py @@ -10,14 +10,13 @@ def test_din_a0(): area_square_inch = area_square_pixels / 72**2 # 25.4 millimeter is equal to 1 inches - area_square_mm = are...
[ "Tests/test_reader.py::test_read_malformed_header" ]
[ "Tests/test_papersizes.py::test_din_a0", "Tests/test_papersizes.py::test_din_a_ratio[dimensions0]", "Tests/test_papersizes.py::test_din_a_ratio[dimensions1]", "Tests/test_papersizes.py::test_din_a_ratio[dimensions2]", "Tests/test_papersizes.py::test_din_a_ratio[dimensions3]", "Tests/test_papersizes.py::te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/mstamy2/PyPDF2/files/6689130/bug1.pdf...
ae1cda2082f6f82c1c9f80f6194fcae62d228bc1
2017-03-28 19:14:56
docker.io/swerebenchv2/armmbed-yotta:802-ae1cda2
armmbed__yotta-802
No new interfaces are introduced.
python
Apache-2.0
diff --git a/docs/reference/buildsystem.md b/docs/reference/buildsystem.md index e728c9f..6cc8bd9 100644 --- a/docs/reference/buildsystem.md +++ b/docs/reference/buildsystem.md @@ -30,7 +30,7 @@ The name of the library being built by the current module is available as No header needs to be included for this definition...
Git and GitHub support rework This pull request fixes the following issues: - Added support for Git and GitHub hash commits in package specifications - Fixed the `install` command to correctly support all non-registry forms - Fixed the saving of non-registry package specifications to `module.json` - Additional te...
Install yotta modules from github with git credentials I'd like to do following but it fails: ``` $ yotta install git@github.com:ARMmbed/module-x.git info: get versions for git Fatal Exception, yotta=0.17.2 Traceback (most recent call last): File "/home/jaakor01/workspace/yotta_issue/venv/bin/yotta", line 4, in...
ARMmbed/yotta
diff --git a/yotta/test/test_sourceparse.py b/yotta/test/test_sourceparse.py index 412f4ad..0b7af6f 100644 --- a/yotta/test/test_sourceparse.py +++ b/yotta/test/test_sourceparse.py @@ -11,50 +11,60 @@ import unittest # sourceparse, , parse version source urls, internal from yotta.lib import sourceparse - -Registry_...
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_shorthandURLs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_GitRefs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_GithubRefs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_HGRefs" ]
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_gitURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_githubURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_hgURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_invalid", "yotta/test/test_sourceparse.py::T...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.93, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
0d287bf40624e3cbaf4b66f105ee483aab805e37
2024-04-04 02:44:21
docker.io/swerebenchv2/mpmath-mpmath:777-0d287bf
mpmath__mpmath-777
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/mpmath/libmp/libmpc.py b/mpmath/libmp/libmpc.py index bc30a94..cfa7df7 100644 --- a/mpmath/libmp/libmpc.py +++ b/mpmath/libmp/libmpc.py @@ -295,6 +295,8 @@ def mpc_sqrt(z, prec, rnd=round_fast): else: re = mpf_sqrt(a, prec, rnd) return (re, fzero) + if b in (finf, fnin...
sqrt(z): special case for infinite z.imag See https://en.cppreference.com/w/c/numeric/complex/csqrt Close #776
sqrt returns incorrect results at complex infinities As in the title. Reproducer (mpmath version 1.4.0a1.dev43+g0d287bf): ```python >>> mpmath.mp.sqrt(mpmath.mp.mpc(mpmath.mp.inf, mpmath.mp.inf)) # expected (+∞,+∞) mpc(real='+inf', imag='nan') >>> mpmath.mp.sqrt(mpmath.mp.mpc(-mpmath.mp.inf, mpmath.mp.inf)) # ...
mpmath/mpmath
diff --git a/mpmath/tests/test_functions.py b/mpmath/tests/test_functions.py index 78f1535..0b46a5a 100644 --- a/mpmath/tests/test_functions.py +++ b/mpmath/tests/test_functions.py @@ -142,6 +142,14 @@ def test_float_sqrt(): pytest.raises(ComplexResult, lambda: mp2.mpf(-1)**0.5) pytest.raises(ComplexResult, l...
[ "mpmath/tests/test_functions.py::test_sqrt_special" ]
[ "mpmath/tests/test_functions.py::test_constants", "mpmath/tests/test_functions.py::test_exact_sqrts", "mpmath/tests/test_functions.py::test_sqrt_rounding", "mpmath/tests/test_functions.py::test_float_sqrt", "mpmath/tests/test_functions.py::test_hypot", "mpmath/tests/test_functions.py::test_exact_cbrt", ...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://en.cppreference.com/w/cpp/numeric/complex/sqrt" ...
31d0834e34d7c122918a1061ed9222963e1135be
2023-11-26 14:38:24
docker.io/swerebenchv2/aio-libs-aiohttp:7907-31d0834
aio-libs__aiohttp-7907
Method: ClientResponse.connection(self) Location: aiohttp/client_reqrep.py Inputs: None (implicit `self` of type ClientResponse) Outputs: Returns the underlying Connection object (or None if no connection is attached). The property is used to inspect whether the HTTP response is still linked to a live transport afte...
python
custom-check-github
diff --git a/CHANGES/7879.bugfix b/CHANGES/7879.bugfix new file mode 100644 index 000000000..08baf85be --- /dev/null +++ b/CHANGES/7879.bugfix @@ -0,0 +1,1 @@ +Fixed a regression where connection may get closed during upgrade. -- by :user:`Dreamsorcerer` diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py ...
Fix regression with connection upgrade (#7879) Fixes #7867. (cherry picked from commit 48b15583305e692ce997ec6f5a6a2f88f23ace71)
Response connection is None on 3.9.0 ### Describe the bug Sorry for the not easily reproducible bug, but since 3.9.0 connection upgrading doesn't work ### To Reproduce I experienced the bug using aiodocker exec, so forgive me for indirect reproduce of the bug: * get a running docker container in aiodocker ...
aio-libs/aiohttp
diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py index 6698ac6ef..8a9a4e184 100644 --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -173,6 +173,25 @@ async def test_keepalive_response_released(aiohttp_client: Any) -> None: assert 1 == len(client._session....
[ "tests/test_client_functional.py::test_upgrade_connection_not_released_after_read[pyloop]" ]
[ "tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_after_head_requests_success[pyloop]", "tests/test_client_functional.py::test_keepalive_after_empty_body_status[pyloop-101]", "tests/test_client_functional.py::test_keepalive_after_e...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/aio-libs/aiodocker/issues/832" ...
cac72a7bfdf744fb5d4604317f2ec68caf941751
2019-06-24 20:19:39
docker.io/swerebenchv2/aaugustin-websockets:629-cac72a7
aaugustin__websockets-629
Function: read_request(stream: asyncio.StreamReader) -> Tuple[str, "Headers"] Location: src/websockets/http.py Inputs: - **stream** – an `asyncio.StreamReader` providing the raw bytes of an incoming HTTP request. The function reads the request line and the subsequent header block. Outputs: - Returns a tuple ``(path, ...
python
BSD-3-Clause
diff --git a/docs/changelog.rst b/docs/changelog.rst index c271956..92cbce5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -66,6 +66,8 @@ Also: * Avoided a crash of a ``extra_headers`` callable returns ``None``. +* Improved error messages when HTTP parsing fails. + * Enabled readline in the interacti...
Improve HTTP parsing error messages. Fix #494.
Improve error messages during HTTP parsing For example, if the remote endpoint closes the connection without sending a HTTP response, currently this results in: ``` Traceback (most recent call last): File "/Users/myk/dev/websockets/src/websockets/client.py", line 90, in read_http_response status_code, heade...
aaugustin/websockets
diff --git a/tests/test_http.py b/tests/test_http.py index 60cdb9a..8ba1d19 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -29,6 +29,33 @@ class HTTPAsyncTests(AsyncioTestCase): self.assertEqual(path, "/chat") self.assertEqual(headers["Upgrade"], "websocket") + def test_read_request_...
[ "tests/test_http.py::HTTPAsyncTests::test_line_ending", "tests/test_http.py::HTTPAsyncTests::test_read_request_empty", "tests/test_http.py::HTTPAsyncTests::test_read_request_invalid_header", "tests/test_http.py::HTTPAsyncTests::test_read_request_invalid_request_line", "tests/test_http.py::HTTPAsyncTests::te...
[ "tests/test_http.py::HTTPAsyncTests::test_header_name", "tests/test_http.py::HTTPAsyncTests::test_header_value", "tests/test_http.py::HTTPAsyncTests::test_headers_limit", "tests/test_http.py::HTTPAsyncTests::test_line_limit", "tests/test_http.py::HTTPAsyncTests::test_read_request", "tests/test_http.py::HT...
{ "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":...
f0491ddacbf49ccce386d11267e03edadcc11c5e
2021-01-24 14:48:54
docker.io/swerebenchv2/cuthbertlab-music21:791-f0491dd
cuthbertlab__music21-791
Method: Stream.makeBeams(self, *, inPlace=False, setStemDirections=True) Location: music21/stream/__init__.py, class Stream Inputs: - **self** – the Stream (or subclass such as Measure) on which beams are to be applied. - **inPlace** (bool, optional, default False) – if True, modify the original Stream; if False, retur...
python
BSD-3-Clause
diff --git a/documentation/source/developerReference/documenting.rst b/documentation/source/developerReference/documenting.rst index 5487b2659..c124132f4 100644 --- a/documentation/source/developerReference/documenting.rst +++ b/documentation/source/developerReference/documenting.rst @@ -137,36 +137,35 @@ The documenta...
Update Sphinx example for block-quoting code Fixes #790 New screenshot: ![block-quoting-updated](https://user-images.githubusercontent.com/38668450/105633986-b77c9f80-5e29-11eb-84cf-eb69bfde54a5.png)
developerReference documentation: avoiding sphinx formatting In the [developerReference documentation for documenting](http://web.mit.edu/music21/doc/developerReference/documenting.html), there's an example for how to avoid sphinx formatting which claims: - line breaks and spacing is preserved - bold sphinx formattin...
cuthbertLab/music21
diff --git a/music21/test/testStream.py b/music21/test/testStream.py index 2866a3278..bf857ce87 100644 --- a/music21/test/testStream.py +++ b/music21/test/testStream.py @@ -8120,8 +8120,6 @@ class Test(unittest.TestCase): def test_makeBeams__1_e__after_16th_note(self): """ Test that a 16th+8th no...
[ "music21/test/testStream.py::Test::test_makeBeams__paddingLeft_2_2" ]
[ "music21/test/testStream.py::Test::testAccumulatedTimeA", "music21/test/testStream.py::Test::testAccumulatedTimeB", "music21/test/testStream.py::Test::testActivateVariantsA", "music21/test/testStream.py::Test::testActivateVariantsB", "music21/test/testStream.py::Test::testActivateVariantsBySpanA", "music2...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "B1", "confidence": 0.88, "detected_issues": { "B1": true, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "http://web.mit.edu/music21/doc/developerReference/docu...
b2207c01ce1c95100b41a5f5737e86510528a9a0
2023-06-27 14:58:52
docker.io/swerebenchv2/sdv-dev-rdt:661-b2207c0
sdv-dev__rdt-661
Method: UnixTimestampEncoder.__init__(self, null_strategy='mean', add_missing_indicator=True, datetime_format=None) Location: rdt.transformers.datetime.UnixTimestampEncoder Inputs: - null_strategy (str): strategy for handling missing values (e.g., 'mean', 'median', etc.). - add_missing_indicator (bool): whether to add ...
python
custom-check-github
diff --git a/rdt/transformers/datetime.py b/rdt/transformers/datetime.py index 89c6530..00b2c7f 100644 --- a/rdt/transformers/datetime.py +++ b/rdt/transformers/datetime.py @@ -1,7 +1,7 @@ """Transformer for datetime data.""" import numpy as np import pandas as pd -from pandas.api.types import is_datetime64_dtype +f...
Fix handling of datetime dtypes Resolve #657
The datetime transformers don't give me back the same `dtype` sometimes ### Environment Details * RDT version: 1.5.0 * Python version: Any * Operating System: Any ### Error Description In some rare cases, I may have a datetime column that is represented as a float or integer dtype. When this happens, I will al...
sdv-dev/RDT
diff --git a/tests/integration/transformers/test_datetime.py b/tests/integration/transformers/test_datetime.py index 02dcb2c..bf27856 100644 --- a/tests/integration/transformers/test_datetime.py +++ b/tests/integration/transformers/test_datetime.py @@ -90,6 +90,47 @@ class TestUnixTimestampEncoder: pd.testing....
[ "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_with_integer_datetimes", "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_with_nans", "tests/unit/transformers/test_datetime.py::TestUnixTimestampEncoder::te...
[ "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder", "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixtimestampencoder_different_format", "tests/integration/transformers/test_datetime.py::TestUnixTimestampEncoder::test_unixti...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [], "intent_completeness": "complete", "pr_categories":...
00afedf7aec33549cb334695a43c62b06eb5f27e
2023-05-05 12:06:25
docker.io/swerebenchv2/agnostiqhq-covalent:1620-00afedf
agnostiqhq__covalent-1620
Method: CloudResourceManager.__init__(self, executor_name: str, executor_module_path: str, options: Optional[Dict[str, str]] = None) Location: covalent.cloud_resource_manager.core Inputs: executor_name – name of the executor plugin; executor_module_path – filesystem path to the executor package; options – optional ...
python
Apache-2.0
diff --git a/.github/workflows/requirements.yml b/.github/workflows/requirements.yml index a4bd6cbb..d9bb5e71 100644 --- a/.github/workflows/requirements.yml +++ b/.github/workflows/requirements.yml @@ -53,6 +53,7 @@ jobs: --ignore-module=pkg_resources --ignore-file=covalent/executor/** ...
CloudResourceManager Implementation <!-- ⚠️ 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, increment th...
Executor Resource Deployment: CloudResourceManager Implementation ## Overview The goal is to delegate the logic for spinning our resources for each plugin to the `CloudResourceManager` The responsibility of the `CloudResourceManager` will be to: - Provision and tear down resources of each plugin by resolving the...
AgnostiqHQ/covalent
diff --git a/tests/covalent_tests/cloud_resource_manager/__init__.py b/tests/covalent_tests/cloud_resource_manager/__init__.py new file mode 100644 index 00000000..9d1b0552 --- /dev/null +++ b/tests/covalent_tests/cloud_resource_manager/__init__.py @@ -0,0 +1,19 @@ +# Copyright 2023 Agnostiq Inc. +# +# This file is par...
[ "tests/covalent_tests/cloud_resource_manager/core_test.py::test_get_executor_module", "tests/covalent_tests/cloud_resource_manager/core_test.py::test_validate_options", "tests/covalent_tests/cloud_resource_manager/core_test.py::test_cloud_resource_manager_init[None]", "tests/covalent_tests/cloud_resource_mana...
[]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://github.com/AgnostiqHQ/covalent/pull/1556/files...
32deafe8668a2130a3366b98154914d188f3718e
2024-05-19 10:10:15
docker.io/swerebenchv2/pypa-packaging:802-32deafe
pypa__packaging-802
No new interfaces are introduced.
python
custom-check-github
diff --git a/src/packaging/markers.py b/src/packaging/markers.py index 2d60bdf..7ac7bb6 100644 --- a/src/packaging/markers.py +++ b/src/packaging/markers.py @@ -309,6 +309,12 @@ class Marker: """ current_environment = cast("dict[str, str]", default_environment()) current_environment["extra"] ...
Work around platform.python_version() returning non PEP 440 compliant version for non-tagged Python builds Fixes #678 Since #678 will make things difficult for pip 24.1 users using non-tagged python builds, I'm proposing this solution. We could also work around it in pip but this would be messier and would not s...
Non-tagged Python builds use non-PEP 440 versions Sorry if this should be a new issue. I have a problem where the version of Python itself is causing an Invalid Version error. I install Python from the tip of 3.12, then: ``` % .tox/anypy/bin/python -c "import pkg_resources as p; p.load_entry_point('coverage', 'con...
pypa/packaging
diff --git a/tests/test_markers.py b/tests/test_markers.py index a2f92b3..775b51f 100644 --- a/tests/test_markers.py +++ b/tests/test_markers.py @@ -8,6 +8,7 @@ import os import platform import sys from typing import cast +from unittest import mock import pytest @@ -19,6 +20,7 @@ from packaging.markers import (...
[ "tests/test_markers.py::TestMarker::test_python_full_version_untagged" ]
[ "tests/test_markers.py::TestNode::test_accepts_value[one]", "tests/test_markers.py::TestNode::test_accepts_value[two]", "tests/test_markers.py::TestNode::test_accepts_value[None]", "tests/test_markers.py::TestNode::test_accepts_value[3]", "tests/test_markers.py::TestNode::test_accepts_value[5]", "tests/te...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [ "https://github.com/nedbat/coveragepy/issues/1556", ...
6d9db0f6b4ac90c39bd7a1a19afab6b481ce2325
2022-11-21 21:59:58
docker.io/swerebenchv2/pyomo-pyomo:2619-6d9db0f
pyomo__pyomo-2619
Method: ScaleModel._get_float_scaling_factor(self, instance, component_data) Location: pyomo.core.plugins.transform.scaling.ScaleModel Inputs: - **instance**: a Pyomo model (ConcreteModel/Block) that may contain a `scaling_factor` Suffix or other suffixes. - **component_data**: a Pyomo component data object (Va...
python
custom-check-github
diff --git a/doc/OnlineDocs/index.rst b/doc/OnlineDocs/index.rst index b3d6e754d..ef986a342 100644 --- a/doc/OnlineDocs/index.rst +++ b/doc/OnlineDocs/index.rst @@ -18,6 +18,7 @@ with a diverse set of optimization capabilities. solving_pyomo_models.rst working_models.rst working_abstractmodels/index.rst + ...
Adding support for local suffixes in scaling transformation ## Fixes #898. Related to #2641 ## Summary/Motivation: The scaling transformation currently only looks for a scaling suffix on the model to which the transform is being applied. However, when dealing with hierarchical models with sub-Blocks, each sub-B...
Scaling transformations on Block structured models I have been working with the Pyomo scaling transformation in preparation for implementing this within IDAES, and I have run into some unexpected behaviour when working with block-structured models. It appears that only scaling factors declared at the top level of the m...
Pyomo/pyomo
diff --git a/pyomo/core/tests/transform/test_scaling.py b/pyomo/core/tests/transform/test_scaling.py index 574403b8e..0fb2dfb5e 100644 --- a/pyomo/core/tests/transform/test_scaling.py +++ b/pyomo/core/tests/transform/test_scaling.py @@ -13,6 +13,7 @@ import pyomo.common.unittest as unittest import pyomo.environ as py...
[ "pyomo/core/tests/transform/test_scaling.py::TestScaleModelTransformation::test_get_float_scaling_factor_intermediate_level", "pyomo/core/tests/transform/test_scaling.py::TestScaleModelTransformation::test_get_float_scaling_factor_local_level", "pyomo/core/tests/transform/test_scaling.py::TestScaleModelTransfor...
[ "pyomo/core/tests/transform/test_scaling.py::TestScaleModelTransformation::test_get_float_scaling_factor_top_level", "pyomo/core/tests/transform/test_scaling.py::TestScaleModelTransformation::test_scaling_without_rename" ]
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...
2ed7f74370f88a5ce92933cd740b7b2e722a562e
2020-03-10 18:33:10
docker.io/swerebenchv2/materials-consortia-optimade-python-tools:221-2ed7f74
materials-consortia__optimade-python-tools-221
No new interfaces are introduced.
python
MIT
diff --git a/optimade/filtertransformers/mongo.py b/optimade/filtertransformers/mongo.py index a3f6c446..ac6ee6b0 100755 --- a/optimade/filtertransformers/mongo.py +++ b/optimade/filtertransformers/mongo.py @@ -88,16 +88,7 @@ class MongoTransformer(Transformer): def expression_phrase(self, arg): # expre...
Handle arbitrary nested NOT/AND/OR in queries This PR allows us to recursively parse nested queries, but does NOT fix the problem described in #79 (yet...). Essentially the `expression_phrase` function fails to go deep enough through the tree and ends up flattening out the query at the first AND/OR, which breaks any ne...
NOT filter operation of mongo query for complex expressions This implementation of [NOT operation](https://docs.mongodb.com/manual/reference/operator/query/not/) fails in the case when it has been applied for a "complex" expression. Here are some example for the inputs and outputs of a `Transformer`: ``` "NOT a>1" -...
Materials-Consortia/optimade-python-tools
diff --git a/tests/filtertransformers/test_mongo.py b/tests/filtertransformers/test_mongo.py index 77ff633e..019dba22 100644 --- a/tests/filtertransformers/test_mongo.py +++ b/tests/filtertransformers/test_mongo.py @@ -226,6 +226,63 @@ class TestMongoTransformer(unittest.TestCase): # OPTIONAL # self.a...
[ "tests/filtertransformers/test_mongo.py::TestMongoTransformer::test_operators" ]
[ "tests/filtertransformers/test_mongo.py::TestMongoTransformer::test_empty", "tests/filtertransformers/test_mongo.py::TestMongoTransformer::test_id", "tests/filtertransformers/test_mongo.py::TestMongoTransformer::test_list_properties", "tests/filtertransformers/test_mongo.py::TestMongoTransformer::test_not_imp...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "medium", "external_urls": [ "https://docs.mongodb.com/manual/reference/operator/que...
4267cbd2b6794007537bbf5ea5735a21a53de058
2023-10-18 19:36:05
docker.io/swerebenchv2/pyomo-pyomo:3017-4267cbd
pyomo__pyomo-3017
No new interfaces are introduced.
python
custom-check-github
diff --git a/pyomo/core/expr/calculus/diff_with_pyomo.py b/pyomo/core/expr/calculus/diff_with_pyomo.py index 952e8ec6d..0e3ba3cc2 100644 --- a/pyomo/core/expr/calculus/diff_with_pyomo.py +++ b/pyomo/core/expr/calculus/diff_with_pyomo.py @@ -328,7 +328,7 @@ def _diff_GeneralExpression(node, val_dict, der_dict): val...
Fix differentiation of `Expressions` containing `native_numeric_types` <!-- ##################################################################### --> <!-- PLEASE READ BEFORE OPENING THIS PULL REQUEST --> <!-- All changes must adhere to PEP8 standards as enforced by Black. --> <!-- If your changes do NOT adhere, th...
Pyomo AD fails with constant Expressions ## Summary Pyomo AD raises an error when encountering `Expressions` with a constant value. ### Steps to reproduce the issue ```console import pyomo.environ as pyo from pyomo.core.expr.calculus.derivatives import Modes, differentiate m = pyo.ConcreteModel() m.x =...
Pyomo/pyomo
diff --git a/pyomo/core/tests/unit/test_derivs.py b/pyomo/core/tests/unit/test_derivs.py index 9e89f2bea..23a5a8bc7 100644 --- a/pyomo/core/tests/unit/test_derivs.py +++ b/pyomo/core/tests/unit/test_derivs.py @@ -230,6 +230,17 @@ class TestDerivs(unittest.TestCase): symbolic = reverse_sd(m.o.expr) sel...
[ "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_constant_named_expressions" ]
[ "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_NPV", "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_abs", "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_acos", "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_asin", "pyomo/core/tests/unit/test_derivs.py::TestDerivs::test_at...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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": [...
191f8413cde51c3d68274edc0f5133d6d023e15a
2017-07-24 14:10:50
docker.io/swerebenchv2/axelrod-python-axelrod:1084-191f841
axelrod-python__axelrod-1084
Method: NTitsForMTats.__init__(self, N: int = 3, M: int = 2) Location: axelrod.strategies.titfortat.NTitsForMTats Inputs: - N (int, default 3): number of retaliations to issue once triggered. Must be ≥ 0. - M (int, default 2): number of consecutive defections by the opponent required to trigger retaliation. Must be ...
python
custom-check-github
diff --git a/axelrod/strategies/_strategies.py b/axelrod/strategies/_strategies.py index a5fa85ab..0b311538 100644 --- a/axelrod/strategies/_strategies.py +++ b/axelrod/strategies/_strategies.py @@ -75,8 +75,8 @@ from .stalker import Stalker from .titfortat import ( TitForTat, TitFor2Tats, TwoTitsForTat, Bully, S...
N tit(s) for M tat(s) Resolve #1073 and add the NTitsForMTats asked for in #379
SlowTitForTwoTats duplicate of TitFor2Tats After poking around titfortat strategies, I found out that `TitFor2Tats` and `SlowTitForTwoTats` do the exact same thing although coded differently. Shouldn't we get rid of `SlowTitForTwoTats` ? And, in that case, should we rename `SlowTitForTwoTats2` ? > strategies.tiforta...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/strategies/test_titfortat.py b/axelrod/tests/strategies/test_titfortat.py index a4d30abc..8f1b458c 100644 --- a/axelrod/tests/strategies/test_titfortat.py +++ b/axelrod/tests/strategies/test_titfortat.py @@ -1,6 +1,8 @@ """Tests for the tit for tat strategies.""" import random + +import c...
[ "axelrod/tests/strategies/test_titfortat.py::TestMatch::test_versus_with_incorrect_history_lengths", "axelrod/tests/strategies/test_titfortat.py::TestPlayer::test_clone", "axelrod/tests/strategies/test_titfortat.py::TestPlayer::test_initialisation", "axelrod/tests/strategies/test_titfortat.py::TestPlayer::tes...
[]
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.92, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
aa9290713a4b664ea4ef4da0554afb09a626d7e1
2019-12-06 22:06:00
docker.io/swerebenchv2/theacodes-nox:267-aa92907
theacodes__nox-267
No new interfaces are introduced.
python
Apache-2.0
diff --git a/nox/_options.py b/nox/_options.py index e8acca6..5ee7343 100644 --- a/nox/_options.py +++ b/nox/_options.py @@ -96,7 +96,7 @@ def _color_finalizer(value, args): if args.nocolor is True: return False - return sys.stdin.isatty() + return sys.stdout.isatty() def _posargs_finalizer(v...
Use stdout.isatty to finalize color Currently checks stdin Fixes #266
Colorized output is not disabled when output is redirected <!-- Thank you for filing a bug! Please feel free to answer as much or as little of this template as you can. --> **Describe the bug** Redirecting nox output does not correctly determine that stdout is not a tty and adds color control codes to the output. ...
theacodes/nox
diff --git a/tests/test_main.py b/tests/test_main.py index 715ad31..48df159 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -379,7 +379,7 @@ def test_main_color_from_isatty(monkeypatch, isatty_value, expected): monkeypatch.setattr(sys, "argv", [sys.executable]) with mock.patch("nox.workflow.execut...
[ "tests/test_main.py::test_main_color_from_isatty[True-True]" ]
[ "tests/test_main.py::test_main_no_args", "tests/test_main.py::test_main_long_form_args", "tests/test_main.py::test_main_short_form_args", "tests/test_main.py::test_main_explicit_sessions", "tests/test_main.py::test_main_explicit_sessions_with_spaces_in_names", "tests/test_main.py::test_main_session_from_n...
{ "base_image_name": "python_base_37", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "deno_version": null, "docker_version": null, "erlang_version": null, "gcc_version": null, "go_version": null, "helm_version": null, ...
{ "llm_metadata": { "code": "A", "confidence": 0.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
4c216de113e58126d8a8e25b5f4bdc643aeaea70
2025-05-04 19:01:52
docker.io/swerebenchv2/jlowin-fastmcp:317-4c216de
jlowin__fastmcp-317
Method: Prompt.from_function(fn: Callable[..., Any]) → Prompt Location: src/fastmcp/prompts/prompt.py → class Prompt (class method) Inputs: - **fn** – a Python callable that defines a prompt. Must have a regular signature (no *args, no **kwargs). Lambda functions must be given an explicit name via the `name` argument. ...
python
Apache-2.0
diff --git a/docs/servers/prompts.mdx b/docs/servers/prompts.mdx index 9f27620..75d0418 100644 --- a/docs/servers/prompts.mdx +++ b/docs/servers/prompts.mdx @@ -53,6 +53,9 @@ def generate_code_request(language: str, task_description: str) -> UserMessage: * **Inferred Metadata:** By default: * Prompt Name: Tak...
Handle *args/**kwargs appropriately for various components Closes #313 This PR: - prevents registering tools with *args / **kwargs (because no sensible parameter schema can be generated) - prevents registering templates with *args but allows **kwargs (because parameter names are inferred from the URI template) -...
@mpc.tool with *args and **kwargs gives unexpected results (args is empty and kwargs swallows everything) ### Description The `@mcp.tool()` decorator on a function definition with `*args` and `**kwargs` does not do the expected thing. In the resulting function, `args` is always set to an empty array: `[]` and kwargs ...
jlowin/fastmcp
diff --git a/tests/prompts/test_prompt_manager.py b/tests/prompts/test_prompt_manager.py index 25e3a99..c00d27e 100644 --- a/tests/prompts/test_prompt_manager.py +++ b/tests/prompts/test_prompt_manager.py @@ -189,6 +189,30 @@ class TestPromptManager: with pytest.raises(ValueError, match="Missing required argum...
[ "tests/prompts/test_prompt_manager.py::TestPromptManager::test_prompt_with_varargs_not_allowed", "tests/prompts/test_prompt_manager.py::TestPromptManager::test_prompt_with_varkwargs_not_allowed", "tests/resources/test_resource_template.py::TestResourceTemplate::test_template_uri_params_subset_of_function_params...
[ "tests/prompts/test_prompt_manager.py::TestPromptManager::test_add_prompt", "tests/prompts/test_prompt_manager.py::TestPromptManager::test_add_duplicate_prompt", "tests/prompts/test_prompt_manager.py::TestPromptManager::test_disable_warn_on_duplicate_prompts", "tests/prompts/test_prompt_manager.py::TestPrompt...
{ "base_image_name": "python_base_310", "docker_specs": { "_variant": null, "bazel_version": null, "bun_version": null, "cargo_version": null, "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":...