instance_id stringlengths 14 53 | repo stringlengths 10 49 | base_commit stringlengths 40 40 | patch stringlengths 332 2.26M | language stringclasses 1
value | non_code_patch stringclasses 1
value | test_patch stringlengths 0 21.5M | created_at stringlengths 26 26 | problem_statement stringlengths 5 24.6k | hints_text stringlengths 0 44.9k | version stringclasses 1
value | environment_setup_commit stringlengths 40 40 | FAIL_TO_PASS stringlengths 19 71.6k | PASS_TO_PASS stringlengths 2 807k | FAIL_TO_FAIL stringlengths 2 43.9k | license dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
simonw__s3-credentials-74 | simonw/s3-credentials | db90d36ddcc3b13433712991d0743bc60ebe05cb | diff --git a/s3_credentials/cli.py b/s3_credentials/cli.py
index 2aed5e9..25f9e25 100644
--- a/s3_credentials/cli.py
+++ b/s3_credentials/cli.py
@@ -328,6 +328,9 @@ def create(
if write_only:
permission = "write-only"
+ if not user_permissions_boundary and (policy or extra_statements):
+ user_... | python | diff --git a/tests/test_dry_run.py b/tests/test_dry_run.py
index 62c7dc2..0bcc0ba 100644
--- a/tests/test_dry_run.py
+++ b/tests/test_dry_run.py
@@ -68,7 +68,7 @@ Would call create access key for user 's3.read-write.my-bucket'"""
],
(
"""Would create bucket: 'my-bucket'
-Would... | 2022-08-01T19:32:19+00:00Z | Using --policy should imply --user-permissions-boundary=none
I ran into this problem here:
- https://github.com/simonw/simonwillisonblog/issues/273#issuecomment-1180797868
If you use `--policy` but forget to set `--user-permissions-boundary=none` you are likely to generate credentials that can't be used, because t... | I also added `--statement` in:
- #72
Used like this:
```
s3-credentials create simonw-ocr-demo-bucket --statement '{
"Effect": "Allow",
"Action": "textract:*",
"Resource": "*"
}' -c > ocr.json
```
Passing that option should assume `--user-permissions-boundary=none` too.
Looks like `--user-permissions-... | 0.0.1-alpha | 9926a98b164da8642284f66f6c3a1c0d1f5d1c43 | ["tests.test_dry_run::test_dry_run[options4-Would create bucket: 'my-bucket'\\nWould create user: 's3.custom.my-bucket'\\n*\"Action\": \"textract:*]"] | ["tests.test_dry_run::test_dry_run[options0-Would create bucket: 'my-bucket'\\nWould create user: 's3.read-write.my-bucket' with permissions boundary: 'arn:aws:iam::aws:policy/AmazonS3FullAccess'\\nWould attach policy called 's3.read-write.my-bucket' to user 's3.read-write.my-bucket', details:*\\nWould call create acce... | ["tests.test_s3_credentials::test_whoami", "tests.test_s3_credentials::test_list_users[-[\\n {\\n \"Path\": \"/\",\\n \"UserName\": \"NameA\",\\n \"UserId\": \"AID000000000000000001\",\\n \"Arn\": \"arn:aws:iam::000000000000:user/NameB\",\\n \"CreateDate\": \"2020-01-01 00:00:00+00:00\"\\n },\\n {\\n ... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
zobweyt__textcase-2 | zobweyt/textcase | 6424e74e76eeec5116553d5748bd9677d84a03eb | diff --git a/README.md b/README.md
index aebad3f..d5830c9 100644
--- a/README.md
+++ b/README.md
@@ -72,6 +72,7 @@ from textcase import case, convert
print(convert("ronnie james dio", case.SNAKE)) # ronnie_james_dio
print(convert("Ronnie_James_dio", case.CONSTANT)) # RONNIE_JAMES_DIO
print(convert("RONNIE_JAMES... | python | diff --git a/tests/boundary/test_boundaries.py b/tests/boundary/test_boundaries.py
index 1d4fd86..64f8ccf 100644
--- a/tests/boundary/test_boundaries.py
+++ b/tests/boundary/test_boundaries.py
@@ -13,6 +13,10 @@ def test_space() -> None:
assert (boundary.SPACE,) == tuple(boundary.get_boundaries(" "))
+def test... | 2025-04-13T17:58:59+00:00Z | feature: add middot case
Hello,
What about adding [middot case](https://en.wikipedia.org/wiki/Letter_case#Middot_case)? It's shouldn't be too complicated, given it somewhat like the already support kebab-case, but using interpuncts rather than dashes. | Thanks for the suggestion to add the middot case! It’s indeed similar to kebab-case, just using interpuncts (`·`) instead of dashes (`-`).
Here’s a quick implementation example using library's extensible API:
```python
from textcase import Case
middot = Case(delimiter='·', transform=lambda words: map(str.lower, word... | 0.0.1-alpha | 8cf450b140a032684d36069710404c76809ab052 | ["tests.convert.test_cases::test_middot", "tests.is_case.test_cases::test_middot"] | ["tests.boundary.test_boundaries::test_underscore", "tests.boundary.test_boundaries::test_hypen", "tests.boundary.test_boundaries::test_space", "tests.boundary.test_boundaries::test_interpunct", "tests.boundary.test_boundaries::test_lower_upper", "tests.boundary.test_boundaries::test_upper_lower", "tests.boundary.test_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
thesimj__envyaml-23 | thesimj/envyaml | dd3ef16bef544bf99adbbf10503a513c91a83a83 | diff --git a/LICENSE b/LICENSE
index 590afb9..1a01496 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2019 Mykola Bubelich
+Copyright (c) 2021 Mykola Bubelich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation f... | python | diff --git a/tests/env.default.yaml b/tests/env.default.yaml
index 428ee9f..e34fc3c 100644
--- a/tests/env.default.yaml
+++ b/tests/env.default.yaml
@@ -27,4 +27,4 @@ test_escape:
two: $$meet
three: $${bracket}
-
+key_with_slash: $ENV_WITH_SLASH
diff --git a/tests/env.ignored.yaml b/tests/env.ignored.yaml
index... | 2021-04-17T18:27:17+00:00Z | [win10]: re.error: bad escape \U at position 2
envyaml fails to load properties with env variables on Windows environment.
To reproduce:
---
- test.py -
from envyaml import EnvYAML
config = EnvYAML('yaml.conf', strict=False)
print(config['foo'])
- yaml.conf -
foo: $USERPROFILE/bar
---
$ python3.... | Hi, @paljsingh thanks for your issue.
I found that issue is related to how `re.sub` works, more here
https://stackoverflow.com/questions/58328587/python-3-7-4-re-error-bad-escape-s-at-position-0
I'm in the process to find a solution for that.
@paljsingh please check with new version (1.8.210417)
Thanks @thesimj... | 0.0.1-alpha | 635889800c82094134b57869a34effea87441c66 | ["tests.test_envyaml::test_it_should_return_default_value", "tests.test_envyaml::test_it_should_parse_env_file_as_unicode", "tests.test_envyaml::test_it_should_pass_escaped_variable", "tests.test_envyaml::test_it_should_properly_resolve_extra_fields", "tests.test_envyaml::test_it_should_override_cfg_with_kwargs"] | ["tests.test_envyaml::test_it_should_read_env_file", "tests.test_envyaml::test_it_should_read_custom_file", "tests.test_envyaml::test_it_should_access_environment_variables", "tests.test_envyaml::test_it_should_fail_when_access_environment_variables", "tests.test_envyaml::test_it_should_access_environ", "tests.test_env... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
redimp__otterwiki-133 | redimp/otterwiki | 7466ce7fda593eba5133673614162cb8257bc379 | diff --git a/otterwiki/preferences.py b/otterwiki/preferences.py
index d098719..f4ad3c6 100644
--- a/otterwiki/preferences.py
+++ b/otterwiki/preferences.py
@@ -144,7 +144,7 @@ def handle_app_preferences(form):
"site_logo",
"site_description",
"site_icon",
- "commit_message",
+ ... | python | diff --git a/tests/test_preferences.py b/tests/test_preferences.py
index 92d7552..4400896 100644
--- a/tests/test_preferences.py
+++ b/tests/test_preferences.py
@@ -95,6 +95,36 @@ def test_update_preferences_logo_and_icon(app_with_user, admin_client):
assert f"<link rel=\"icon\" href=\"{new_icon}\">" in html
... | 2024-09-14T23:23:15+00:00Z | Suggestion: Disable Indexing on Non-Wiki Pages
Currently, Google has indexed all the URLs available on my otterwiki instance. Normally this would be fine, but a lot of the search results point to sub-URLs such as the specific revision pages (URL including ?revision=) and the source pages.
I've solved this on my own ... | Hey @bwfiq,
Thank you for bringing this up! An Otter Wiki up to version 2.5.2 sets `<meta name="robots" content="noindex, nofollow"/>` only for page history, page attachments and page blame. Even for sane defaults this is not enough. Will add this to at least the changelog and pages displayed with a given `revision.... | 0.0.1-alpha | 782baff622afc2e85b96249fbcac3b92c0b368bc | ["tests.test_preferences::test_update_preferences_robotstxt"] | ["tests.test_attachments::test_app_with_attachments", "tests.test_attachments::test_list_attachments", "tests.test_attachments::test_get_attachment0_legcay", "tests.test_attachments::test_get_attachment0", "tests.test_attachments::test_edit_attachment0", "tests.test_attachments::test_thumbnail_legacy", "tests.test_atta... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
microsoftgraph__msgraph-sdk-python-core-699 | microsoftgraph/msgraph-sdk-python-core | 784d8d675a1204e323238049a2d4b07d0073b24b | diff --git a/src/msgraph_core/requests/batch_request_item.py b/src/msgraph_core/requests/batch_request_item.py
index 61fa480..3bab345 100644
--- a/src/msgraph_core/requests/batch_request_item.py
+++ b/src/msgraph_core/requests/batch_request_item.py
@@ -1,4 +1,5 @@
import re
+import enum
import json
from uuid import ... | python | diff --git a/tests/requests/test_batch_request_item.py b/tests/requests/test_batch_request_item.py
index 4b14b48..2dd3d86 100644
--- a/tests/requests/test_batch_request_item.py
+++ b/tests/requests/test_batch_request_item.py
@@ -2,6 +2,7 @@ import pytest
from unittest.mock import Mock
from urllib.request import Reque... | 2024-10-09T08:17:09+00:00Z | Batch requests don't have `method` property in payload.
Along with other issues:
- The array of requests should be in a `requests` property
- The `url` property of each item should be relative (so the `https://graph.microsoft.com/v1.0` should be trimmed off)
@shemogumbe
To reproduce:
```python
# Use the r... | Hello @jasonjoh thanks for raising this.
On looking it out:
1. The method property actually exists in every batch_request_item.
```python
user_batch_item = BatchRequestItem(request_information=user_request)
events_batch_item = BatchRequestItem(request_information=events_request)
print(f"User batch item proper... | 0.0.1-alpha | b1ec7d52d2c37d5a9473ef41978eb7e625efca2d | ["tests.requests.test_batch_request_item::test_batch_request_item_method_enum"] | ["tests.authentication.test_azure_identity_authentication_provider::test_subclassing", "tests.middleware.options.test_graph_telemetry_handler_options::test_graph_telemetry_handler_options_default", "tests.middleware.options.test_graph_telemetry_handler_options::test_graph_telemetry_handler_options_custom", "tests.middl... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mandiant__dncil-4 | mandiant/dncil | 2c45c45ac7d4dd2e9001e27dddf99986b0dc2475 | diff --git a/dncil/cil/body/__init__.py b/dncil/cil/body/__init__.py
index 3aadd0c..d3f55d9 100644
--- a/dncil/cil/body/__init__.py
+++ b/dncil/cil/body/__init__.py
@@ -26,6 +26,7 @@ class CilMethodBody:
"""store managed method body"""
def __init__(self, reader: CilMethodBodyReaderBase):
+ self.offse... | python | diff --git a/tests/test_method_body.py b/tests/test_method_body.py
index 2cdb7db..914aa55 100644
--- a/tests/test_method_body.py
+++ b/tests/test_method_body.py
@@ -116,7 +116,7 @@ def test_read_tiny_header_instructions():
body = CilMethodBody(reader)
assert len(body.instructions) == 0x3
- assert body.in... | 2022-04-04T20:01:01+00:00Z | calculate instruction offset from method offset | need to add offset to method body | 0.0.1-alpha | afaabb3d96630bc0ae7e6f2bbb0c3b7411bea23b | ["tests.test_method_body::test_read_tiny_header_instructions", "tests.test_method_body::test_read_fat_header_instructions"] | ["tests.test_method_body::test_invalid_header_format", "tests.test_method_body::test_empty_method_body", "tests.test_method_body::test_read_tiny_header", "tests.test_method_body::test_read_fat_header", "tests.test_method_body::test_read_fat_header_exception_handlers", "tests.test_token::test_token_fields"] | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
pypa__abi3audit-116 | pypa/abi3audit | efab2b98b4a671e8e9552f89c74aa592d1218cf7 | diff --git a/abi3audit/_cli.py b/abi3audit/_cli.py
index 5552169..bb15125 100644
--- a/abi3audit/_cli.py
+++ b/abi3audit/_cli.py
@@ -220,7 +220,6 @@ def main() -> None:
parser.add_argument(
"--assume-minimum-abi3",
action=_PyVersionAction,
- default=PyVersion(3, 2),
help="assumed ... | python | diff --git a/test/test_extract.py b/test/test_extract.py
index 9ff27b2..5d9cf3d 100644
--- a/test/test_extract.py
+++ b/test/test_extract.py
@@ -1,4 +1,5 @@
import pytest
+from abi3info.models import PyVersion
from abi3audit._extract import (
ExtractorError,
@@ -16,10 +17,13 @@ def test_make_spec():
asser... | 2024-11-12T21:44:39+00:00Z | Accidental abi3
I wanted to check if an extension module happens to be already abi3 compliant. It was, but I had to rename it from .cpython3x.. to .abi3. before abi3audit accepted it for analysis. Would it be a good idea for it to accept files regardless of name? | Thanks for the report @orent!
> Would it be a good idea for it to accept files regardless of name?
I think so! The main challenge to doing so is that `.abi3.` alone doesn't tell us *which* lowest `abi3` version we should audit for. However, we already support `--assume-minimum-abi3` for that purpose, so supportin... | 0.0.1-alpha | be052e536b0ae3fc714c067bedf866dca25f3367 | ["test.test_extract::test_make_spec"] | ["test.test_audit::test_audit_results_on_golden_wheels[cryptography-42.0.7-cp37-abi3-macosx_10_12_universal2.whl]", "test.test_audit::test_audit_results_on_golden_wheels[cryptography-42.0.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl]", "test.test_audit::test_audit_results_on_golden_wheels[cryptography-4... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
python-validators__validators-290 | python-validators/validators | 99b425acf4cf55d2d5f970ec07884bc338996392 | diff --git a/CHANGES.md b/CHANGES.md
index 5309e0e..ab7f912 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,19 +1,50 @@
# Changelog
+<!--
+
+Note to self: Breaking changes must increment either
+
+- minor version: as long as versions are in 0.y.z or
+- major version: when versions are in in x.y.z (x>0)
+
+-->
+
+## 0... | python | diff --git a/tests/test_ip_address.py b/tests/test_ip_address.py
index 312e98e..f28cdec 100644
--- a/tests/test_ip_address.py
+++ b/tests/test_ip_address.py
@@ -13,10 +13,6 @@ from validators import ValidationError, ipv4, ipv6
("127.0.0.1",),
("123.5.77.88",),
("12.12.12.12",),
- # w/ ... | 2023-09-02T06:50:15+00:00Z | Why `127.0.0.1` valid and how to validate only cidr notation
I wrote a cidr validation code like below
```python
def ip_address_cidr_validation(value: str) -> bool:
"""Validate IP address in CIDR notation."""
return bool(
validators.ipv4(value, cidr=True, strict=True)
or validators.ipv6... | @mertcangokgoz, thanks for raising this issue, I see now that the `strict` parameter is confusing. Reference source:
https://github.com/python-validators/validators/blob/9e94feea67d2787e984a100e1fb4642f5cd18288/src/validators/ip_address.py#L58-L65
Here's what `strict` currently does.
- It is only used when `ci... | 0.0.1-alpha | 91dad61d4cfe458a2e3cb4a10adce660dd4ca3de | ["tests.test_ip_address::test_returns_true_on_valid_ipv4_cidr_address[127.0.0.1/0-True-True-True]", "tests.test_ip_address::test_returns_true_on_valid_ipv4_cidr_address[123.5.77.88-True-False-True]", "tests.test_ip_address::test_returns_true_on_valid_ipv4_cidr_address[12.12.12.0/24-True-True-False]", "tests.test_ip_add... | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
thesimj__envyaml-33 | thesimj/envyaml | 571cc41811e0ca0b352433ee15ace1152d23fdd7 | diff --git a/.travis.yml b/.travis.yml
index 1f191f6..875e180 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,10 +7,11 @@ python:
- '3.7'
- '3.8'
- '3.9'
+ - '3.10'
install:
- pip install -U pip
- pip install python-coveralls
- - pip install -U -r requirements.txt
+ - pip install -r requirements.txt... | python | diff --git a/tests/env.default.yaml b/tests/env.default.yaml
index e34fc3c..2cb3aa7 100644
--- a/tests/env.default.yaml
+++ b/tests/env.default.yaml
@@ -26,5 +26,11 @@ test_escape:
one: $$.foo
two: $$meet
three: $${bracket}
+ four: SomePa$$$$$$word
+ five: SomePa$$$$$${word}
+ six: $$$PASSWORD
+ seven: $$$... | 2021-12-31T16:59:38+00:00Z | Env variables do not interpolate correctly if set with other Env vars in .env file
System/Project info
* OS: `Ubuntu 18.04.6 LTS`
* Python Version: `3.8.12`
* `pipenv` Version: `2021.11.23`
* `envyaml` Version: `1.9.210927`
Main issue is when loading the config file with an environment variable in `.e... | hi @bbarberBPL thank you for this issue, I will dive deeper into this.
this is fixed in `develop` branch | 0.0.1-alpha | 54d0b6cc7df154ab61256a0548bef1830597f4db | ["tests.test_envyaml::test_it_should_pass_escaped_variable", "tests.test_envyaml::test_it_should_correct_handle_user_variables"] | ["tests.test_envyaml::test_it_should_return_default_value", "tests.test_envyaml::test_it_should_read_env_file", "tests.test_envyaml::test_it_should_read_custom_file", "tests.test_envyaml::test_it_should_access_environment_variables", "tests.test_envyaml::test_it_should_fail_when_access_environment_variables", "tests.te... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-854 | more-itertools/more-itertools | 7e46c39ea5d73b80f36ef2faf266e10108029b02 | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 7b48190..7922eb0 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -4,7 +4,7 @@ import warnings
from collections import Counter, defaultdict, deque, abc
from collections.abc import Sequence
from functools import cached_property, par... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 15efdaf..f451fc6 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -4145,6 +4145,11 @@ class SampleTests(TestCase):
expected = ['f', 'e']
self.assertEqual(actual, expected)
+ def test_negative(self):
+ data = [1, 2, 3, 4,... | 2024-06-14T14:24:32+00:00Z | Issues with sample()
I've only just started looking at this and have a few thoughts.
The comparison to the standard library should mention:
* The `counts` parameter in the `random.sample()` is not comparable to `weights` in `more_itertools.sample()`
The former allows an element to be selected multiple times to ... | Thanks for the suggestions. Here is a PR with some improvements: https://github.com/more-itertools/more-itertools/pull/855 | 0.0.1-alpha | d06de200edbe3c9d5c9c2cfa96bbdec307349b00 | ["tests.test_more.SampleTests::test_strict"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
netbox-community__pynetbox-237 | netbox-community/pynetbox | 7fcd3fd904c284e033a4b90810fc25e61696479b | diff --git a/pynetbox/models/dcim.py b/pynetbox/models/dcim.py
index 9ceade2..a057c16 100644
--- a/pynetbox/models/dcim.py
+++ b/pynetbox/models/dcim.py
@@ -119,6 +119,23 @@ class Racks(Record):
"""
return RODetailEndpoint(self, "units", custom_return=RUs)
+ @property
+ def elevation(self):
+ ... | python | diff --git a/tests/test_dcim.py b/tests/test_dcim.py
index 7aed989..94001c9 100644
--- a/tests/test_dcim.py
+++ b/tests/test_dcim.py
@@ -401,6 +401,28 @@ class RackTestCase(Generic.Tests):
isinstance(ret[0].device, pynetbox.models.dcim.Devices)
)
+ @patch(
+ 'pynetbox.core.query.reques... | 2020-05-14T14:49:09+00:00Z | Rack Units Change to Elevation
I was testing my Slackbot out for units today and found out that the API endpoint has hanged. Needs to be Elevations.
https://github.com/netbox-community/netbox/releases/tag/v2.8.0 | Unrelated - I’m curious what your NetBox slack bot does - I’ve been thinking of building one.
@DouglasHeriot
https://youtu.be/6wl2suubMIQ?t=697
If you watch this video it shows NTC's slack bot. Mine is pretty much a replica of this. Doesn't have all the features yet. I built it to learn Slack API's.
![image... | 0.0.1-alpha | ec6fe984eccbc70aef3782f3e8dbf65574e50873 | ["tests.test_dcim.RackTestCase::test_get_elevation"] | ["tests.test_dcim.PowerPortsTestCase::test_compare", "tests.test_dcim.PowerPortsTestCase::test_delete", "tests.test_dcim.PowerPortsTestCase::test_filter", "tests.test_dcim.PowerPortsTestCase::test_get", "tests.test_dcim.PowerPortsTestCase::test_get_all", "tests.test_dcim.PowerPortsTestCase::test_serialize", "tests.test... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
vinitkumar__json2xml-143 | vinitkumar/json2xml | f186cef8239873a44f460497d4da387098fcd724 | diff --git a/json2xml/dicttoxml.py b/json2xml/dicttoxml.py
index 5a72918..d81115c 100755
--- a/json2xml/dicttoxml.py
+++ b/json2xml/dicttoxml.py
@@ -247,7 +247,10 @@ def dict2xml_str(
attr = item.pop("@attrs", attr) # update attr with custom @attr if exists
rawitem = item["@val"] if "@val" in item else item
... | python | diff --git a/tests/test_dict2xml.py b/tests/test_dict2xml.py
new file mode 100644
index 0000000..6aee83e
--- /dev/null
+++ b/tests/test_dict2xml.py
@@ -0,0 +1,184 @@
+import unittest
+from json2xml import dicttoxml
+
+
+class TestDict2xml(unittest.TestCase):
+
+ def test_dict2xml_with_namespaces(self):
+ data... | 2022-06-08T19:35:20+00:00Z | Ampersand not parsed correctly when attrs are present
**Describe the bug**
Using dicttoxml on a dict with attributes present the character ```&``` is not parsed correctly to ```&```
**To Reproduce**
Steps to reproduce the behavior:
```python
from json2xml import dicttoxml
root = False
attr_type = False
... | This is fixed via #144 | 0.0.1-alpha | 58f0f139ab110c545ea44f6c7a5b231b2c883917 | ["tests.test_dict2xml.TestDict2xml::test_dict2xml_with_ampsersand_and_attrs"] | ["tests.test_dict2xml.TestDict2xml::test_dict2xml_no_root", "tests.test_dict2xml.TestDict2xml::test_dict2xml_omit_list", "tests.test_dict2xml.TestDict2xml::test_dict2xml_str_list_header", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_ampersand", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_custom_root"... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
magmax__python-readchar-53 | magmax/python-readchar | 978e98b3dd2b561e86a1697ee07049c0d55e3370 | diff --git a/readchar/_posix_read.py b/readchar/_posix_read.py
index ad83a49..c34a797 100644
--- a/readchar/_posix_read.py
+++ b/readchar/_posix_read.py
@@ -1,19 +1,24 @@
import sys
import termios
-import tty
# Initially taken from:
# http://code.activestate.com/recipes/134892/
# Thanks to Danny Yoo
+# more in... | python | diff --git a/tests/posix/conftest.py b/tests/posix/conftest.py
index 793ef70..f0b55a1 100644
--- a/tests/posix/conftest.py
+++ b/tests/posix/conftest.py
@@ -3,7 +3,6 @@ import sys
if sys.platform.startswith("linux"):
import termios
- import tty
# ignore all tests in this folder if not on linux
@@ -33,13... | 2022-07-25T14:00:46+00:00Z | while `readchar` is running there is no linefeed after each print
If I run `readchar` in one thread and then:
```
print("hello")
print("goodbye")
```
I get the following output:
```
hello
goodbye
```
Instead of:
```
hello
goodbye
``` | I think this can be solved by changing this line:
https://github.com/magmax/python-readchar/blob/master/readchar/readchar_linux.py#L14
Change `setraw` to `setcbreak`. | 0.0.1-alpha | c69a8f85c8058a34f3ea4d7a89bf8e09c7ed380e | ["tests.posix.test_readchar::test_printableCharacters[0]", "tests.posix.test_readchar::test_printableCharacters[1]", "tests.posix.test_readchar::test_printableCharacters[2]", "tests.posix.test_readchar::test_printableCharacters[3]", "tests.posix.test_readchar::test_printableCharacters[4]", "tests.posix.test_readchar::t... | ["tests.posix.test_import::test_readcharImport", "tests.posix.test_import::test_readkeyImport", "tests.posix.test_import::test_keyImport", "tests.posix.test_keys::test_defaultKeysExists[LF]", "tests.posix.test_keys::test_defaultKeysExists[CR]", "tests.posix.test_keys::test_defaultKeysExists[ENTER]", "tests.posix.test_k... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pytest-dev__pytest-randomly-686 | pytest-dev/pytest-randomly | bd697bd670943c54b8d21e713dea58ab92508d08 | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index cdfdb1f..fd572dc 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -14,6 +14,10 @@ Unreleased
`PR #687 <https://github.com/pytest-dev/pytest-randomly/issues/687>`__.
Thanks to Bryce Drennan for the suggestion in `Issue #600 <https://github.com/pytest-dev/pytest-ran... | python | diff --git a/tests/test_pytest_randomly.py b/tests/test_pytest_randomly.py
index fdeb26c..7d41a15 100644
--- a/tests/test_pytest_randomly.py
+++ b/tests/test_pytest_randomly.py
@@ -248,10 +248,10 @@ def test_files_reordered(ourtester):
out.assert_outcomes(passed=4, failed=0)
assert out.outlines[9:13] == [
+... | 2025-09-10T11:12:07+00:00Z | Move hashing to crc32
### Description
Back in #375, I added sorting by hash to pytest-randomly, using `hashlib.md5()` without much thought. I think it would be better to move to `zlib.crc32` for speed, as it's about 5x faster while still providing great distribution. We don't need a 128 bit hash, 32 bits will do, and... | 0.0.1-alpha | cb9b86128c9e79284f1bfad0dbd5d4c5427b5dfc | ["tests.test_pytest_randomly::test_classes_reordered", "tests.test_pytest_randomly::test_test_functions_reordered_when_randomness_in_module", "tests.test_pytest_randomly::test_class_test_methods_reordered", "tests.test_pytest_randomly::test_files_reordered", "tests.test_pytest_randomly::test_test_functions_reordered", ... | ["tests.test_pytest_randomly::test_entrypoint_missing", "tests.test_pytest_randomly::test_it_resets_the_random_seed_at_the_end_of_test_classes", "tests.test_pytest_randomly::test_it_uses_different_random_seeds_per_test", "tests.test_pytest_randomly::test_without_cacheprovider", "tests.test_pytest_randomly::test_it_repo... | ["tests.test_pytest_randomly::test_xdist[2]", "tests.test_pytest_randomly::test_xdist[3]", "tests.test_pytest_randomly::test_xdist[1]", "tests.test_pytest_randomly::test_xdist[0]", "tests.test_pytest_randomly::test_entrypoint_injection", "tests.test_pytest_randomly::test_xdist[4]", "tests.test_pytest_randomly::test_mod... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
qianbinbin__dict2anki-14 | qianbinbin/dict2anki | 402ad547f966e70af949e86861a4c06f2b6ff971 | diff --git a/dict2anki/extractors/cambridge.py b/dict2anki/extractors/cambridge.py
index f6afddb..96cf3f1 100644
--- a/dict2anki/extractors/cambridge.py
+++ b/dict2anki/extractors/cambridge.py
@@ -80,7 +80,7 @@ class CambridgeExtractor(CardExtractor):
return style
def get_card(self, word: str) -> Tuple[... | python | diff --git a/tests/test_utils.py b/tests/test_utils.py
index a9ca25d..75a2c7f 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,3 +1,4 @@
+import time
from unittest import TestCase
from dict2anki.utils import *
@@ -22,3 +23,17 @@ class TestUtils(TestCase):
Log.i(TAG, 'info log')
Log... | 2021-05-29T06:10:36+00:00Z | 使用进度条 | 0.0.1-alpha | a38c82ec03b66a067f42364177aae7090a47ed46 | ["tests.test_utils.TestUtils::test_progress_bar"] | ["tests.test_utils.TestUtils::test_Log", "tests.test_utils.TestUtils::test_valid_path", "tests.test_net.TestNet::test_urlopen_with_retry", "tests.test_htmls.TestHtml::test_find", "tests.test_htmls.TestHtml::test_find_positions", "tests.test_htmls.TestHtml::test_findall", "tests.test_htmls.TestHtml::test_removeall", "te... | ["tests.test_net.TestNet::test_url_get_content", "tests.test_net.TestNet::test_url_save", "tests.test_net.TestNet::test_url_save_guess_file", "tests.test_extractor_cambridge.TestCambridge::test_CambridgeExtractor"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
zabbix__python-zabbix-utils-18 | zabbix/python-zabbix-utils | 78c7348cb52b8d4d671d7d8c1f9381cc1f908499 | diff --git a/zabbix_utils/aioapi.py b/zabbix_utils/aioapi.py
index a6becf1..a52f00e 100644
--- a/zabbix_utils/aioapi.py
+++ b/zabbix_utils/aioapi.py
@@ -34,7 +34,7 @@ from textwrap import shorten
from os import environ as env
from urllib.error import URLError
-from typing import Callable, Union, Optional, Any
+from... | python | diff --git a/tests/test_zabbix_aioapi.py b/tests/test_zabbix_aioapi.py
index a25e930..4d9b278 100644
--- a/tests/test_zabbix_aioapi.py
+++ b/tests/test_zabbix_aioapi.py
@@ -164,21 +164,32 @@ class TestAsyncZabbixAPI(unittest.IsolatedAsyncioTestCase):
self.assertEqual(self.zapi._AsyncZabbixAPI__sess... | 2025-05-13T12:54:53+00:00Z | AsyncZabbixAPI can't be used in `with` statement like ZabbixAPI
The `AsyncZabbixAPI` class cannot be used in a `with` statement like the `ZabbixAPI` class. This is due to a difference in the initialization process between the two classes.
## Current Behavior
- `ZabbixAPI` automatically logs in during the `__init... | It has been implemented in the [2.0.3](https://github.com/zabbix/python-zabbix-utils/releases/tag/v2.0.3) version. | 0.0.1-alpha | 72bb5cf33a6b34272bff39a66ec32e7cf3b513d8 | ["tests.test_zabbix_aioapi.TestAsyncZabbixAPI::test_login"] | ["tests.test_zabbix_types.TestAPIVersion::test_compare", "tests.test_zabbix_types.TestAPIVersion::test_init", "tests.test_zabbix_types.TestAPIVersion::test_is_lts", "tests.test_zabbix_types.TestAPIVersion::test_major", "tests.test_zabbix_types.TestAPIVersion::test_minor", "tests.test_zabbix_common.TestZabbixProtocol::t... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-916 | more-itertools/more-itertools | b2b3bf6ddc5cb652201545ba191d07400c4e89cf | diff --git a/more_itertools/more.py b/more_itertools/more.py
index a6573f2..74f36f2 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -25,7 +25,7 @@ from itertools import (
from math import comb, e, exp, factorial, floor, fsum, log, log1p, perm, tau
from queue import Empty, Queue
from random import... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index b25343f..b611b85 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -4322,6 +4322,17 @@ class SampleTests(TestCase):
self.assertTrue(difference_in_means < 4.4)
+class BarelySortable:
+ def __init__(self, value):
+ self.value = va... | 2024-10-11T14:28:53+00:00Z | is_sorted() should only depend on less-than comparisons
The `sorted()` function is [documented to only use less-than comparisons](https://docs.python.org/3/library/functions.html#sorted). The `is_sorted()` predicate should do the same:
```
def is_sorted(iterable, key=None, reverse=False, strict=False):
it = ... | > When `data = [8.0, 4.0, 0.0, math.nan, 6.0, 2.0]`, the call `is_sorted(sorted(data))` nonsensically returns `False`.
With what implementation? I get `True` both with the current more-itertools implementation and with yours. (I'm just not using Python 3.13 yet, did `sorted` change here?)
> Are you in doubt that _Na... | 0.0.1-alpha | e733192454b73bbea8645e4dcbee95b13eba714c | ["tests.test_more.IsSortedTests::test_basic"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
yuma-m__pychord-41 | yuma-m/pychord | 0d8034ec72782f3df1e0cc7714923d3236e04c4f | diff --git a/pychord/constants/qualities.py b/pychord/constants/qualities.py
index 7b0e9b3..7cb28f4 100644
--- a/pychord/constants/qualities.py
+++ b/pychord/constants/qualities.py
@@ -32,7 +32,11 @@ DEFAULT_QUALITIES = [
('maj7', (0, 4, 7, 11)),
('M7+5', (0, 4, 8, 11)),
('mM7', (0, 3, 7, 11)),
+ ('ad... | python | diff --git a/test/test_analyzer.py b/test/test_analyzer.py
index 2ca8eb8..3c7123e 100644
--- a/test/test_analyzer.py
+++ b/test/test_analyzer.py
@@ -27,6 +27,10 @@ class TestNotesToPositions(unittest.TestCase):
def test_add9(self):
pos = notes_to_positions(["Ab", "C", "Eb", "Bb"], "Ab")
self.asse... | 2021-05-04T01:09:44+00:00Z | Support for Augmented and Diminished Triads?
I stumbled upon your repo while looking for a way to easily parse my database of chord progressions into midi files. However, my database has a lot of augmented and diminished triads in the progressions. The program was not able to recognize augmented or diminished chords, ... | Hi @connorheyz,
Thank you for your feedback.
> The program was not able to recognize augmented or diminished chords
Could you explain the chord which could not be handled?
I've run into some issues with some diminished and augmented + note chords, even though `note_to_chord` recognizes it:
- diminished 7th... | 0.0.1-alpha | b7d186469c05ea18850aecd61c01a91bce3ac72d | ["test.test_analyzer.TestNoteToChord::test_add4", "test.test_analyzer.TestNoteToChord::test_major7_add11", "test.test_analyzer.TestNoteToChord::test_major7_add13", "test.test_analyzer.TestNoteToChord::test_minor7_add11", "test.test_analyzer.TestNoteToChord::test_minor_add4", "test.test_analyzer.TestNoteToChord::test_mi... | ["test.test_analyzer.TestGetAllRotatedNotes::test_three", "test.test_analyzer.TestGetAllRotatedNotes::test_two", "test.test_constants.TestConstants::test_note_and_val", "test.test_quality.TestOverwriteQuality::test_find_from_components", "test.test_quality.TestOverwriteQuality::test_keep_existing_chord", "test.test_qua... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mondeja__mkdocs-include-markdown-plugin-49 | mondeja/mkdocs-include-markdown-plugin | 754891cdf4ea8294c2426c4d327256145f13c38c | diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 3a72cf2..aa6b0bb 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 3.1.4
+current_version = 3.2.0
[bumpversion:file:mkdocs_include_markdown_plugin/__init__.py]
diff --git a/.pre-commit-config.yaml b/.pre-com... | python | diff --git a/tests/test_exclude.py b/tests/test_exclude.py
new file mode 100644
index 0000000..5530e43
--- /dev/null
+++ b/tests/test_exclude.py
@@ -0,0 +1,97 @@
+'''Tests for mkdocs-include-markdown-plugin `exclude` directives argument.'''
+
+import os
+
+import pytest
+
+from mkdocs_include_markdown_plugin.event impo... | 2021-07-15T10:27:23+00:00Z | Accept globs as filenames and include from multiple files
Is it possible to include whole (sub)directories with this plugin?
I am looking for a way to include sections from multiple files for "consolidation" of various todos, warnings etc | But what would be the strategy to merge the files, one content after another? I'm not really sure about how this would works. Could you do some feedback about a possible implementation?
Maybe we can change the `filename` positional argument to be considered a glob and expect that the users will use the arguments `start... | 0.0.1-alpha | 671749b343bf92fe8258eb9f0663cc0befde8d30 | ["tests.test_exclude::test_exclude[ignore-by-glob-include]", "tests.test_exclude::test_exclude[ignore-by-glob-include-markdown]", "tests.test_exclude::test_exclude[ignore-multiple-by-glob-include]", "tests.test_exclude::test_exclude[ignore-multiple-by-glob-include-markdown]", "tests.test_exclude::test_exclude[not-ignor... | ["tests.test_exclude::test_exclude[ignore-all-include]", "tests.test_exclude::test_exclude[ignore-all-include-markdown]", "tests.test_exclude::test_exclude[ignore-all-relative-include]", "tests.test_exclude::test_exclude[ignore-all-relative-include-markdown]", "tests.test_include::test_include[simple-case]", "tests.tes... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
pyfar__pyfar-572 | pyfar/pyfar | aa0f439adaf5cb64329f3c2b64637677c1a90e60 | diff --git a/pyfar/dsp/dsp.py b/pyfar/dsp/dsp.py
index a015d99..ba0d235 100644
--- a/pyfar/dsp/dsp.py
+++ b/pyfar/dsp/dsp.py
@@ -2079,7 +2079,7 @@ def average(signal, mode='linear', caxis=None, weights=None, keepdims=False,
return pyfar.FrequencyData(data, signal.frequencies, signal.comment)
-def normalize... | python | diff --git a/tests/test_dsp_normalize.py b/tests/test_dsp_normalize.py
index f585f57..dc3857e 100644
--- a/tests/test_dsp_normalize.py
+++ b/tests/test_dsp_normalize.py
@@ -51,6 +51,19 @@ def test_domains_normalization():
npt.assert_allclose(np.max(np.abs(freq.freq)), 1)
+def test_auto_domain_normalization():
... | 2024-07-05T14:38:34+00:00Z | `domain='auto'` option for dsp.normalize?
## General
* pyfar version: 0.6.5
## Description
When using `pyfar.dsp.normalize()` with a FrequencyData object and default values, an error is thrown due to the default `domain='time'`. It would be nice to add an option `domain='auto'`, which checks if `signal` is a ... | 0.0.1-alpha | 5125826f84e84a912222c9a2c93b1f84d7c298a0 | ["tests.test_dsp_normalize::test_auto_domain_normalization", "tests.test_dsp_normalize::test_error_raises"] | ["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_not_implemented", "tests.test_audio_frequency_data::test_data_frequency_init_with_defaults", "tests.test_audio_frequency_data::test_data_frequency_init_... | ["tests.test_dsp_interpolation::test_interpolate_spectrum_show", "tests.test_plot::test_line_plots[freq]", "tests.test_plot::test_line_plots[phase]", "tests.test_plot::test_line_plots[group_delay]", "tests.test_plot::test_line_plots[time_freq]", "tests.test_plot::test_line_plots[freq_phase]", "tests.test_plot::test_lin... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
more-itertools__more-itertools-869 | more-itertools/more-itertools | 226c2872edc5cd40f0abb3e3ae885f6613ea5f16 | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 580496d..3694acc 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -2987,14 +2987,33 @@ def exactly_n(iterable, n, predicate=bool):
return len(take(n + 1, filter(predicate, iterable))) == n
-def circular_shifts(iterable):
- ... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 8756476..21891e1 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -3493,17 +3493,43 @@ class CircularShiftsTests(TestCase):
def test_simple_circular_shifts(self):
# test the a simple iterator case
self.assertEqual(
- ... | 2024-07-12T13:33:05+00:00Z | Add step argument to circular shifts. Simplify the implementation
```
def circular_shifts(iterable, steps=1):
"""Return a list of circular rotations of *iterable*.
>>> circular_shifts(range(4))
[(0, 1, 2, 3), (1, 2, 3, 0), (2, 3, 0, 1), (3, 0, 1, 2)]
Set *steps* to the number of places to rota... | I opened [this PR](https://github.com/more-itertools/more-itertools/pull/874) to add `steps` and change the return type.
Thank you. | 0.0.1-alpha | afd2e3b42c437049a286b2b915d9724253840507 | ["tests.test_more.CircularShiftsTests::test_steps_negative", "tests.test_more.CircularShiftsTests::test_steps_positive", "tests.test_more.CircularShiftsTests::test_steps_zero"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
prometheus__client_python-542 | prometheus/client_python | 049744296d216e6be65dc8f3d44650310f39c384 | diff --git a/prometheus_client/metrics.py b/prometheus_client/metrics.py
index b34ca81..95770eb 100644
--- a/prometheus_client/metrics.py
+++ b/prometheus_client/metrics.py
@@ -27,12 +27,12 @@ def _build_full_name(metric_type, name, namespace, subsystem, unit):
if subsystem:
full_name += subsystem + '_'
... | python | diff --git a/tests/test_core.py b/tests/test_core.py
index f0b856a..b14e340 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -527,6 +527,11 @@ class TestMetricWrapper(unittest.TestCase):
self.assertRaises(ValueError, Info, 'foo', 'help', unit="x")
self.assertRaises(ValueError, Enum, 'foo', ... | 2020-05-10T07:49:09+00:00Z | Setting metric unit to "total"
a4dd93bcc6a0422e10cfa585048d1813909c6786 enforced counters ending in `_total`, but the `unit=` parameter doesn't seem to interact well with that. If I pass `unit="total"` to a `Counter`, I get a `_total_total` suffix (but only in some places?).
```
$ python3.6
Python 3.6.8 (default, A... | That behaviour sounds correct to me, however `total` is not a good unit. What are you trying to do?
Oh, I see. I didn't read this careful enough: https://prometheus.io/docs/practices/naming/. The `_total` goes behind the unit. Anyways, note that the exposed metric doesn't match it's "HELP" and "TYPE".
That would be a b... | 0.0.1-alpha | 18d937159e4e90a1e212976859e2dc53f99980eb | ["tests.test_core.TestMetricWrapper::test_name_cleanup_before_unit_append", "tests.test_exposition.TestGenerateText::test_counter_name_unit_append"] | ["tests.openmetrics.test_exposition.TestGenerateText::test_counter", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_total", "tests.openmetrics.test_exposition.TestGenerateText::test_enum", "tests.openmetrics.test_exposition.TestGenerateText::test_escaping", "tests.openmetrics.test_exposition.TestGene... | ["tests.test_core.TestCounter::test_function_decorator", "tests.test_core.TestGauge::test_inprogress_function_decorator", "tests.test_core.TestGauge::test_time_function_decorator", "tests.test_core.TestSummary::test_function_decorator", "tests.test_core.TestHistogram::test_function_decorator"] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
semuconsulting__pynmeagps-25 | semuconsulting/pynmeagps | a3c64feb11252da8243f6566a4d121996f9d1d0a | diff --git a/pynmeagps/nmeareader.py b/pynmeagps/nmeareader.py
index 7d1eccf..59c8dfb 100644
--- a/pynmeagps/nmeareader.py
+++ b/pynmeagps/nmeareader.py
@@ -30,7 +30,7 @@ from pynmeagps.nmeahelpers import (
calc_checksum,
isvalid_cksum,
)
-from pynmeagps.nmeatypes_core import NMEA_HDR, VALCKSUM
+from pynmeag... | python | diff --git a/tests/test_parse.py b/tests/test_parse.py
index d5bae7b..5a14b25 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -11,7 +11,7 @@ Created on 4 Mar 2021
import unittest
-from pynmeagps import NMEAReader, NMEAParseError, SET
+from pynmeagps import NMEAReader, NMEAParseError, SET, VALCKSUM, V... | 2023-02-16T10:35:26+00:00Z | NMEAReader.parse doesn't ignore invalid messages when validate's VALMSGID bit is not set.
The title says it all. This docstring:
`:param int validate (kwarg): bitfield validation flags - VALCKSUM (default), VALMSGID`
and
`:return: NMEAMessage object (or None if unknown message and VALMSGID is not set)`
is a li... | Checked the release against my test data, and it worked perfectly. Thanks for fixing this so quickly.
> Checked the release against my test data, and it worked perfectly. Thanks for fixing this so quickly.
Used to work fine but regressed somewhere along the way. I've added a check to the automated test suite so it s... | 0.0.1-alpha | 7fdcaf8213adfb8978588cade2de1ea3319037ec | ["tests.test_parse.ParseTest::testParseNK2"] | ["tests.test_stream.StreamTest::testBADEOF", "tests.test_stream.StreamTest::testMIXED", "tests.test_stream.StreamTest::testMIXED2", "tests.test_stream.StreamTest::testNMEA2", "tests.test_stream.StreamTest::testNMEA4", "tests.test_stream.StreamTest::testNMEABADMODE", "tests.test_stream.StreamTest::testNMEAFOO1", "tests.... | ["unittest.loader._FailedTest.tests::testsuite"] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
tonybaloney__perflint-35 | tonybaloney/perflint | 136408e9352ca91c5014b06d19f38482671d83f4 | diff --git a/perflint/for_loop_checker.py b/perflint/for_loop_checker.py
index f1f97f8..0b9cbb9 100644
--- a/perflint/for_loop_checker.py
+++ b/perflint/for_loop_checker.py
@@ -3,6 +3,8 @@ from astroid import nodes
from astroid.helpers import safe_infer
from pylint.checkers import BaseChecker
from pylint.checkers im... | python | diff --git a/tests/test_list_checker.py b/tests/test_list_checker.py
index 5c00383..0835f46 100644
--- a/tests/test_list_checker.py
+++ b/tests/test_list_checker.py
@@ -16,6 +16,15 @@ class TestListMutationChecker(BaseCheckerTestCase):
with self.assertAddedMessage("use-tuple-over-list"):
self.walk... | 2024-01-10T06:36:22+00:00Z | `__all__` is erroneously flagged with W8301
**Describe the bug**
When `pylint`ing my code `perflint` erroneously flags `__all__` with W8301.
**To reproduce**
`perflint.py`
```python
"""perflint test module."""
__all__ = ["dummy"]
def dummy() -> None:
"""Dummy docstring."""
raise NotImplement... | 0.0.1-alpha | f1716c96d33a7a9d47a9d15489737a2874214d9a | ["tests.test_list_checker.TestListMutationChecker::test_const_all_be_ignored"] | ["tests.test_comprehension_checker.TestComprehensionChecker::test_simple_list_filter", "tests.test_comprehension_checker.TestComprehensionChecker::test_complex_list_filter", "tests.test_comprehension_checker.TestComprehensionChecker::test_simple_list_copy", "tests.test_comprehension_checker.TestComprehensionChecker::te... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
potassco__clorm-66 | potassco/clorm | 45ad20047caeac171502dc6ae2c71dbfe9dbba07 | diff --git a/clorm/orm/core.py b/clorm/orm/core.py
index 76d3676..08c72b1 100644
--- a/clorm/orm/core.py
+++ b/clorm/orm/core.py
@@ -27,6 +27,7 @@ import re
import uuid
from . import noclingo
+from typing import Iterator, List, Tuple, Type, Union
__all__ = [
'ClormError',
@@ -422,7 +423,7 @@ def notin_(path... | python | diff --git a/tests/test_orm_factbase.py b/tests/test_orm_factbase.py
index 861423b..c94c449 100644
--- a/tests/test_orm_factbase.py
+++ b/tests/test_orm_factbase.py
@@ -600,6 +600,57 @@ class FactBaseTestCase(unittest.TestCase):
sig(C) + tostr(sorted(afacts)) + ".\n"
self.assertTrue(fb.asp_str(com... | 2022-01-09T21:46:11+00:00Z | commented=True feature for nested predicates
```
class Foo(Predicate):
class Bar(Predicate):
node = IntegerField
value = StringField
... | 0.0.1-alpha | 49c222e5215467bfda2af6a2681a09ef0a7a61c5 | ["tests.test_orm_factbase.FactBaseTestCase::test_factbase_aspstr_signature"] | ["tests.test_orm_query.QQConditionTestCase::test_complex_comparison_conditional", "tests.test_orm_query.QQConditionTestCase::test_nonapi_not_bool_not_comparison_condition", "tests.test_orm_query.QQConditionTestCase::test_simple_comparison_conditional", "tests.test_util_wrapper.WrapperFunctionTestCase::test_bad_wrapper"... | ["tests.test_orm_query.ComparatorTestCase::test_nonapi_comparison_callables", "tests.test_orm_query.PlaceholderTestCase::test_NamedPlaceholder", "tests.test_orm_query.PlaceholderTestCase::test_PositionalPlaceholder"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
movingpandas__movingpandas-378 | movingpandas/movingpandas | 87b4a808f0f392bf737ecad7d19844204a36e2ee | diff --git a/movingpandas/trajectory.py b/movingpandas/trajectory.py
index 1c15de3..50751fd 100644
--- a/movingpandas/trajectory.py
+++ b/movingpandas/trajectory.py
@@ -1433,7 +1433,7 @@ class Trajectory:
def intersection(self, feature, point_based=False):
"""
- Return the trajectory segments tha... | python | diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py
index fabe48d..90e1732 100644
--- a/movingpandas/tests/test_trajectory_collection.py
+++ b/movingpandas/tests/test_trajectory_collection.py
@@ -161,6 +161,17 @@ class TestTrajectoryCollection:
asser... | 2024-04-19T12:18:18+00:00Z | Add missing TrajectoryCollection.intersection() function
Trajectories already provide an intersection() function. This should be made available to TrajectoryCollection as well | 0.0.1-alpha | 15ed5d3735110e59345b503dc87e75adbd1667d2 | ["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_intersection"] | ["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | ||
sepandhaghighi__mycoffee-64 | sepandhaghighi/mycoffee | a90e70e5cc7b1f45d95bdc134ed9644169751b8d | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b38884f..caf5b01 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- 1 new coffee unit
1. Troy Pounds (`t lb`)
- `--grind` argument
+- Grind upper limit
+- Grind lower limit
+... | python | diff --git a/test/functions_test.py b/test/functions_test.py
index 6152b66..15c7da1 100644
--- a/test/functions_test.py
+++ b/test/functions_test.py
@@ -42,6 +42,8 @@ Info: V60 method
>>> test_params = filter_params(test_params)
>>> check_ratio_limits(test_params) == True
True
+>>> check_grind_limits(test_params) ==... | 2025-01-08T23:59:45+00:00Z | [Feature]: Grind size
### Describe the feature you want to add
Add different brewing methods' grind sizes
### Describe your proposed solution
_No response_
### Describe alternatives you've considered, if relevant
_No response_
### Additional context
References:
1. https://honestcoffeeguide.com/coffee-grind-s... | 0.0.1-alpha | 96e17db5b41afa475a88e9d2ae2a6178be1cc2f8 | ["test.functions_test::functions_test", "test.verified_test::verified_test"] | [] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
pysmt__pysmt-613 | pysmt/pysmt | a32cd277742262f1283d93c664a45ad29ef50528 | diff --git a/pysmt/smtlib/script.py b/pysmt/smtlib/script.py
index e66e34c..f0179cc 100644
--- a/pysmt/smtlib/script.py
+++ b/pysmt/smtlib/script.py
@@ -101,13 +101,13 @@ class SmtLibCommand(namedtuple('SmtLibCommand', ['name', 'args'])):
elif self.name == smtcmd.DEFINE_FUN:
name = self.args[0]
... | python | diff --git a/pysmt/test/smtlib/test_smtlibscript.py b/pysmt/test/smtlib/test_smtlibscript.py
index eb3276d..2ae7c9d 100644
--- a/pysmt/test/smtlib/test_smtlibscript.py
+++ b/pysmt/test/smtlib/test_smtlibscript.py
@@ -167,6 +167,14 @@ class TestSmtLibScript(TestCase):
# No exceptions are thrown
self.as... | 2022-03-25T16:12:56+00:00Z | In SmtLibCommand.serialize: missing as_smtlib
I found a bug while trying to serialize a `SmtLibCommand` of type `smtcmd.DEFINE_FUN`.
The return type (`rtype`) was serialized as `BV{32}` instead of `(_ BitVec 32)`.
Adding a `.as_smtlib(funstyle=False)` on line 106 in `smtlib/script.py` fixes that.
The `params` m... | 0.0.1-alpha | 811d16620864ae330794460a7c41b04abc6f5e99 | ["pysmt.test.smtlib.test_smtlibscript.TestSmtLibScript::test_define_fun_serialize_complex_type"] | ["pysmt.test.smtlib.test_annotations.TestBasic::test_annotations_colon_values", "pysmt.test.smtlib.test_annotations.TestBasic::test_basic", "pysmt.test.smtlib.test_annotations.TestBasic::test_complex_annotations_values", "pysmt.test.smtlib.test_annotations.TestBasic::test_interpreting_annotations", "pysmt.test.smtlib.t... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
oscal-compass__compliance-trestle-1542 | oscal-compass/compliance-trestle | 0c6e3d917009885ddbe700d582b89a89e62d5983 | diff --git a/trestle/tasks/csv_to_oscal_cd.py b/trestle/tasks/csv_to_oscal_cd.py
index 367359c..a7343e0 100644
--- a/trestle/tasks/csv_to_oscal_cd.py
+++ b/trestle/tasks/csv_to_oscal_cd.py
@@ -673,12 +673,20 @@ class CsvToOscalComponentDefinition(TaskBase):
name = self._csv_mgr.get_value(rule_key, paramete... | python | diff --git a/tests/trestle/tasks/csv_to_oscal_cd_test.py b/tests/trestle/tasks/csv_to_oscal_cd_test.py
index e2ebc1f..3fd7d28 100644
--- a/tests/trestle/tasks/csv_to_oscal_cd_test.py
+++ b/tests/trestle/tasks/csv_to_oscal_cd_test.py
@@ -23,6 +23,8 @@ from unittest import mock
from _pytest.monkeypatch import MonkeyPa... | 2024-06-19T03:27:35+00:00Z | trestle task csv-to-oscal-cd should give better error message when set parameter fails
## Issue description / feature objectives
Below is the current error issued by the trestle task when a invalid set parameter cell is encountered. This can be re-created by having a value with blanks, for example `Cloud Network In... | The issue description is misleading. The exception actually occurs when the column `Parameter_Id` has the invalid value `Cloud Network Interfaces count`, not when the column `Parameter_Value_Default` has an issue. | 0.0.1-alpha | 7ef431970fcfe5563895c1864c304e2221819ded | ["tests.trestle.tasks.csv_to_oscal_cd_test::test_execute_invalid_set_parameter_values"] | ["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b... | ["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
weaviate__weaviate-python-client-109 | weaviate/weaviate-python-client | 22ba7def34da15eb689d5a7ba7ee5dc3cb5f7da0 | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 315ccdb..b2c9c69 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -1,6 +1,15 @@
Changelog
=========
+Version 3.5.1
+-------------
+This patch version fixes:
+
+- | the `rerank` not being set bug in :meth:`~weaviate.gql.get.GetBuilder.with_ask`.
+... | python | diff --git a/test/gql/test_filter.py b/test/gql/test_filter.py
index 6da7889..4d9d9c5 100644
--- a/test/gql/test_filter.py
+++ b/test/gql/test_filter.py
@@ -787,6 +787,19 @@ class TestAskFilter(unittest.TestCase):
)
)
+ content = {
+ 'question': 'Who is the president of "USA"?'... | 2022-05-18T08:31:33+00:00Z | Add `rerank` method for QnA's `ask` filter. | 0.0.1-alpha | 9b87b38dad5bac4b75934b12bee77930c97b304d | ["test.gql.test_filter.TestAskFilter::test___init__", "test.test_version.TestVersion::test_version"] | ["test.connection.test_connection.TestConnection::test__get_request_header", "test.connection.test_connection.TestConnection::test__init__", "test.connection.test_connection.TestConnection::test__refresh_authentication", "test.connection.test_connection.TestConnection::test__set_bearer", "test.connection.test_connectio... | ["test.test_util.TestUtil::test__get_dict_from_object"] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | ||
wjohnson__pyapacheatlas-48 | wjohnson/pyapacheatlas | ae94d03377d73e5e972edebd8ddd6043eb44dbe9 | diff --git a/pyapacheatlas/readers/lineagemixin.py b/pyapacheatlas/readers/lineagemixin.py
index 9e4f392..b8f509c 100644
--- a/pyapacheatlas/readers/lineagemixin.py
+++ b/pyapacheatlas/readers/lineagemixin.py
@@ -1,5 +1,6 @@
from collections import OrderedDict
import json
+import warnings
from ..core import AtlasE... | python | diff --git a/tests/readers/test_table_column.py b/tests/readers/test_table_column.py
index f0a1ef2..4ef4ef9 100644
--- a/tests/readers/test_table_column.py
+++ b/tests/readers/test_table_column.py
@@ -324,7 +324,7 @@ def test_parse_update_lineage():
},
{"Target typeName": "N/A", "Target qualifiedName... | 2021-01-10T04:24:00+00:00Z | UpdateLineage should support multiple inputs and outputs
After #47 it should include the ability to handle multiple inputs or outputs in the spreadsheet.
If there's an N/A in one row and it's being defined in another row, assume the N/A and WARN on the output. | 0.0.1-alpha | 2e4bd56f3dc735fbf2f00a9c0dcb37e166a447b0 | ["tests.readers.test_table_column::test_parse_update_lineage_multi_in", "tests.readers.test_table_column::test_parse_update_lineage_multi_out", "tests.readers.test_table_column::test_parse_update_lineage_multi_dedupe", "tests.readers.test_table_column::test_parse_update_lineage_multi_row_with_na_last"] | ["tests.client.test_prep_validate::test_prepare_bulk_entity_from_list", "tests.client.test_prep_validate::test_prepare_bulk_entity_from_dict", "tests.client.test_prep_validate::test_prepare_bulk_entity_from_atlas_entity", "tests.readers.test_excel::test_verify_template_sheets", "tests.readers.test_excel::test_excel_typ... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
pylessard__python-udsoncan-162 | pylessard/python-udsoncan | 5c8a66bb4afccba3a3c9d741b7eefcba4f0450c3 | diff --git a/udsoncan/Request.py b/udsoncan/Request.py
index dfd01bf..b32bf80 100755
--- a/udsoncan/Request.py
+++ b/udsoncan/Request.py
@@ -1,5 +1,4 @@
from udsoncan.BaseService import BaseService
-import udsoncan.tools as tools
import inspect
import struct
@@ -121,7 +120,7 @@ class Request:
req = c... | python | diff --git a/test/client/test_client.py b/test/client/test_client.py
index 2ff0a6e..56f3bc4 100755
--- a/test/client/test_client.py
+++ b/test/client/test_client.py
@@ -5,6 +5,7 @@ from udsoncan import Request, Response
from test.ClientServerTest import ClientServerTest
import time
+
class TestClient(ClientSer... | 2023-06-24T15:44:45+00:00Z | Get Subfunction from Response object
Hey,
Is there a way of retrieving the subfunction used in the request from the response object? | You mean when using the client?
Right now, you can't. Only the subfunction read from the response.
Do you have a good use-case for that?
well now I'm using the client to get data from an ECU and I'm in the middle of getting responses concerning DTCs and I want to interpret the responses to fill the service_data attr... | 0.0.1-alpha | 391e5efe62f853c49d0bf5ee313f1767961c8f85 | ["test.client.test_client.TestClient::test_request_in_response"] | ["test.client.test_read_dtc_information.TestReportNumberOfDTCByStatusMask::test_bad_length_response_exception", "test.client.test_read_dtc_information.TestReportNumberOfDTCByStatusMask::test_bad_length_response_no_exception", "test.client.test_read_dtc_information.TestReportNumberOfDTCByStatusMask::test_bad_response_se... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sergiocorreia__panflute-166 | sergiocorreia/panflute | 0bec22d39d4271680e8be6953f10b9e0b1ee9301 | diff --git a/panflute/elements.py b/panflute/elements.py
index e549028..e19bc08 100644
--- a/panflute/elements.py
+++ b/panflute/elements.py
@@ -1391,4 +1391,10 @@ _builtin_to_meta_func = {
def builtin2meta(val):
type_ = type(val)
- return _builtin_to_meta_func[type_](val) if type_ in _builtin_to_meta_func e... | python | diff --git a/tests/test_elements.py b/tests/test_elements.py
new file mode 100644
index 0000000..81583fb
--- /dev/null
+++ b/tests/test_elements.py
@@ -0,0 +1,40 @@
+import pytest
+
+from panflute.elements import builtin2meta, MetaList, MetaMap, MetaString
+
+
+class My_List(list):
+ """Subclass for testing https://... | 2020-11-12T02:10:18+00:00Z | Regression: panflute.elements.builtin2meta no longer supports subclasses of builtins
https://github.com/sergiocorreia/panflute/commit/a72ffb5b48ca2c871ad8818595cf0ae888c91f4c was first released in 2.0.3. It breaks support for converting subclasses of builtin types to pandoc meta types. This is because it stops using `... | Thanks. Can you give me a MWE here?
> Can you give me a MWE here?
```python
class My_Dict(dict):
pass
my_dict = My_Dict()
data = [my_dict]
pf.elements.builtin2meta(data)
```
Raises
```
TypeError:
Element "MetaList" received "My_Dict" but expected <class 'panflute.base.MetaValue'>
```
Thanks. I'm lo... | 0.0.1-alpha | e5c426843efe1439125056e4ce146d6998e37825 | ["tests.test_elements::test_builtin2meta[value2-MetaList]", "tests.test_elements::test_builtin2meta[value3-MetaMap]", "tests.test_elements::test_builtin2meta[value7-MetaMap]"] | ["tests.test_context_import::test_all", "tests.test_context_import::test_context_import", "tests.test_elements::test_builtin2meta[value0-MetaList]", "tests.test_elements::test_builtin2meta[value1-MetaMap]", "tests.test_elements::test_builtin2meta[1-MetaString]", "tests.test_elements::test_builtin2meta[a-MetaString]", "... | ["tests.test_basics::test_idempotence", "tests.test_basics::test_idempotence_of_native", "tests.test_basics::test_stringify", "tests.test_convert_text::test_all", "tests.test_env::test_env", "tests.test_examples_run::test_filters_run", "tests.test_fenced::test_all", "tests.test_get_metadata::test", "tests.test_panfl::t... | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
netbox-community__pynetbox-285 | netbox-community/pynetbox | 83ee65ce62e6df37790a0ca2ec3a9f2cb18277ba | diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py
index b8cac5a..b5e582a 100644
--- a/pynetbox/core/response.py
+++ b/pynetbox/core/response.py
@@ -382,7 +382,7 @@ class Record(object):
if diff:
serialized = self.serialize()
req = Request(
- ... | python | diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py
index f5495f9..44761e8 100644
--- a/tests/unit/test_response.py
+++ b/tests/unit/test_response.py
@@ -214,7 +214,7 @@ class RecordTestCase(unittest.TestCase):
"child": {
"id": 321,
"name": "... | 2020-09-01T23:03:57+00:00Z | Regression: save() after create() no longer works - omits id from PATCH URL
The following script works with pynetbox 4.0.8 but not with pynetbox 5.0.7
```
#!/usr/bin/python3
import pynetbox
name="test_1"
cluster="lxd"
nb = pynetbox.api('http://netbox.example.net',
token='XXXXXXXX',
)
vm = nb... | Hi
Same error on Netbox v2.9.0.
Any workaround ?
> Any workaround ?
1. Reorganize (optimize) your code so that you don't have to save your new object twice (i.e. add all the necessary properties in the `.create()` call)
2. Insert this before changing the newly created object:
`vm = nb.virtualization.virt... | 0.0.1-alpha | e79ff4263be6cf59fb96579d4a2d2d0feb40d193 | ["tests.unit.test_response.RecordTestCase::test_nested_write"] | ["tests.test_api.ApiVersionTestCase::test_api_version", "tests.test_api.ApiVersionTestCase::test_api_version_not_found", "tests.test_virtualization.ClustersTestCase::test_filter", "tests.test_virtualization.ClustersTestCase::test_get", "tests.test_virtualization.ClustersTestCase::test_get_all", "tests.test_dcim.PowerOu... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
okta__okta-sdk-python-270 | okta/okta-sdk-python | 4a66289170465d16b0c475bad0c66e3e6f258cc2 | diff --git a/okta/request_executor.py b/okta/request_executor.py
index 8d1cca2..646cd72 100644
--- a/okta/request_executor.py
+++ b/okta/request_executor.py
@@ -1,3 +1,4 @@
+import asyncio
from okta.http_client import HTTPClient
from okta.user_agent import UserAgent
from okta.oauth import OAuth
@@ -259,6 +260,8 @@ c... | python | diff --git a/tests/mocks.py b/tests/mocks.py
index 21e0006..3278974 100644
--- a/tests/mocks.py
+++ b/tests/mocks.py
@@ -91,6 +91,28 @@ class MockHTTP429ResponseDetails():
self.content_type = "application/json"
+class MockHTTP429ConcurrentRateLimitErrorResponseDetails():
+ def __init__(self):
+ n... | 2023-03-09T20:49:38+00:00Z | support for multiple async requests and concurrent/per-minute rate limits
How does the SDK handle both concurrent rate limits and per-minute rate limits? How can I submit multiple simultaneous requests to improve performance?
Eg, my org supports 75 concurrent requests. If I have a csv file with 75 user ids, this co... | Hi @gabrielsroka ,
Thanks for your issue.
@serhiibuniak-okta can you please take a look when you have a chance?
this seems to work for up to 500 adds: slice it up into chunks of 75 at a time. it runs in about 4-5 seconds, whereas adding them one at a time takes about 4-5 minutes.
but for more than 500 (which ... | 0.0.1-alpha | b54224ecc7ad8b57f6aeaed52118f0d581a7e923 | ["tests.unit.test_retry_logic::test_max_retries_no_timeout", "tests.unit.test_retry_logic::test_concurrent_rate_limit_headers"] | ["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes... | ["tests.integration.test_org_it.TestOrgResource::test_get_org_contact_user", "tests.integration.test_org_it.TestOrgResource::test_update_org_contact_user", "tests.integration.test_subscription_it.TestSubscriptionResource::test_get_role_subscription_by_notification_type", "tests.integration.test_subscription_it.TestSubs... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
prometheus__client_python-674 | prometheus/client_python | e92fa050090cb99bc724a8e4045c46b5096cbbd3 | diff --git a/prometheus_client/registry.py b/prometheus_client/registry.py
index 0eb003b..67cde45 100644
--- a/prometheus_client/registry.py
+++ b/prometheus_client/registry.py
@@ -135,10 +135,21 @@ class RestrictedRegistry(object):
self._registry = registry
def collect(self):
- for metric in sel... | python | diff --git a/tests/test_core.py b/tests/test_core.py
index d36aef0..4ccf93f 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1,6 +1,7 @@
from __future__ import unicode_literals
from concurrent.futures import ThreadPoolExecutor
+import sys
import time
import pytest
@@ -838,6 +839,33 @@ class TestColl... | 2021-07-06T16:46:22+00:00Z | Registering a metric after creating RestrictedRegistry with its name does not add the metric to RestrictedRegistry
The method `restricted_registry` works by filtering all metrics once at the time of its creation, as one can see from looking at the file `registry.py`.
If you register a metric after creating the rest... | I agree, this could be confusing, though the "Intended usage" is hinting that it should be ephemeral to a scrape/output generation. Personally, I would lean slightly towards solution 2 as it is more intuitive and would not require reading the docstring. | 0.0.1-alpha | c49e55a244acde7d4879b7fba2a130019656fb35 | ["tests.test_core.TestCollectorRegistry::test_restricted_registry_does_not_call_extra"] | ["tests.openmetrics.test_exposition.TestGenerateText::test_counter", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_non_total_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_total", "tests.openme... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
miyuchina__mistletoe-85 | miyuchina/mistletoe | 1f906357b817d7ae92fb7a5230a3d04c35d35647 | diff --git a/mistletoe/block_token.py b/mistletoe/block_token.py
index a565b73..f78dc9d 100644
--- a/mistletoe/block_token.py
+++ b/mistletoe/block_token.py
@@ -672,14 +672,19 @@ class Table(BlockToken):
class TableRow(BlockToken):
"""
- Table row token.
+ Table row token. Supports escaped pipes in table ... | python | diff --git a/test/test_block_token.py b/test/test_block_token.py
index 2be6fec..a60f0cf 100644
--- a/test/test_block_token.py
+++ b/test/test_block_token.py
@@ -283,7 +283,6 @@ class TestTableRow(unittest.TestCase):
line = '| cell 1 | cell 2 |\n'
token = block_token.TableRow(line)
... | 2021-10-09T17:26:54+00:00Z | Problem rendering pipe characters in code blocks within tables
Hello, thank you heartily for this great library. It took me quite few months to encounter a bug, which I am reporting here.
Mistletoe seems unable to render pipe characters in code blocks within tables. Here is an example of observed behavior:
... | @huettenhain, thanks for the report. It looks like the GFM's approach seems to be even somewhat in-line with the CommonMark specification (https://spec.commonmark.org/0.30/#precedence). So I would go their way, i. e. to enable to escape `|` whenever it is inside a cell. I cannot quite imagine any other solution. That w... | 0.0.1-alpha | 43bacfb276bbc2ac49e5d57163adcefba18f8191 | ["test.test_block_token.TestTableRow::test_escaped_pipe_in_cell"] | ["test.test_contrib.test_jira_renderer.TestJIRARenderer::test_escape_in_inline_code", "test.test_contrib.test_jira_renderer.TestJIRARenderer::test_escape_link", "test.test_contrib.test_jira_renderer.TestJIRARenderer::test_escape_none_when_whitespaces", "test.test_contrib.test_jira_renderer.TestJIRARenderer::test_escape... | ["test.test_cli.TestCLI::test_convert_file_success"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-461 | more-itertools/more-itertools | 704795fb95d95b21fed0ee7465e6cd8158e0af9b | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 22a33df..2fd1007 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -116,7 +116,7 @@ __all__ = [
_marker = object()
-def chunked(iterable, n):
+def chunked(iterable, n, strict=False):
"""Break *iterable* into lists of length *... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 9a935c3..9c4d7ec 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -99,6 +99,25 @@ class ChunkedTests(TestCase):
list(mi.chunked('ABCDE', 3)), [['A', 'B', 'C'], ['D', 'E']]
)
+ def test_strict_false(self):
+ """Test w... | 2020-09-15T06:22:21+00:00Z | Feature request: `strict` keyword argument to `chunked`
I suggest a `strict` keyword argument to `chunked` that makes it raise an exception if there's a small chunk at the end. Ditto for `sliced` and maybe `windowed` if it has similar behavior. | Given that this is coming to `zip`, I'll accept a PR for `chunked` and `sliced`, provided they don't mess with the implementation for the default case.
Cool. Right now I'm too busy to implement, but if someone will be interested in implementing, feel free to take this on. I'll be there to assist if anyone gets stuck.
@... | 0.0.1-alpha | 3191c3609082f8f83f3e3b0597a937ab4b092d1e | ["tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_false"] | ["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tinytag__tinytag-189 | tinytag/tinytag | a490c6d40c8fc499f9a3c35af14fd478c7da1d5d | diff --git a/README.md b/README.md
index e78b522..ab55b06 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ tinytag is a library for reading music meta data of most common audio files in p
## Features
- * Read tags, length and cover images of audio files
+ * Read tags, length and images of audio files
... | python | diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py
index 2c13bd0..34c5181 100644
--- a/tinytag/tests/test_all.py
+++ b/tinytag/tests/test_all.py
@@ -393,7 +393,7 @@ testfiles = dict([
'artist': 'artist\x00群星',
'title': 'title\x00A 梦 哆啦 机器猫 短信铃声', 'track': 1, 'bitrate': 1143.72468, 'c... | 2024-03-01T18:38:19+00:00Z | Ability to get all images
I would like the ability to get all of the images in a file. Currently, I think tinytag is coded to just pull the cover image or maybe it is the first image it comes across. Ideally, I'd like to have each image and its location (e.g., cover, insert, etc) accessible.
Thanks! | What would the ideal API for this look like? I'm thinking something similar to the `extra` dict could work here, with standardized keys and image data as the value, but are we missing any important information this way? Is there anything else than the image and its description that's important to retain?
I can't think ... | 0.0.1-alpha | e071d7ead61c719f683ca0713959a250bc137170 | ["tinytag.tests.test_all::test_file_reading_tags_duration[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading_tags_... | ["tinytag.tests.test_all::test_pathlib_compatibility", "tinytag.tests.test_all::test_file_obj_compatibility", "tinytag.tests.test_all::test_binary_path_compatibility", "tinytag.tests.test_all::test_override_encoding", "tinytag.tests.test_all::test_mp3_length_estimation", "tinytag.tests.test_all::test_image_loading[samp... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pylessard__python-udsoncan-220 | pylessard/python-udsoncan | 7411eda67b0baea7e9cf29a0250a74a6d99561e7 | diff --git a/udsoncan/services/SecurityAccess.py b/udsoncan/services/SecurityAccess.py
index 5531d5d..438d017 100755
--- a/udsoncan/services/SecurityAccess.py
+++ b/udsoncan/services/SecurityAccess.py
@@ -51,7 +51,7 @@ class SecurityAccess(BaseService):
@classmethod
def normalize_level(cls, mode: int, level:... | python | diff --git a/test/client/test_security_access.py b/test/client/test_security_access.py
index e3b647b..55fb892 100755
--- a/test/client/test_security_access.py
+++ b/test/client/test_security_access.py
@@ -3,6 +3,7 @@ from udsoncan.exceptions import *
from test.ClientServerTest import ClientServerTest
+
class Test... | 2024-03-07T02:03:13+00:00Z | SecurityAccess mishandes a level value of 0
I can send a request to security access that raises an exception that isn't expected.
Code to produce the issue
```python
from udsoncan.services import SecurityAccess
Request = SecurityAccess.make_request(level=0, mode=SecurityAccess.Mode.RequestSeed)
Request.get_payl... | I will check that.
I never restrain the user from using reserved values, but I can emit a warning in that case.
If a value is impossible, I will prevent it, which is the case for the boundaries here.
Thank you for reporting.
I think I noticed that users could send restricted values in most other services.
The ... | 0.0.1-alpha | 789cb1300d98ff5120207b84c462e25a648c9c59 | ["test.client.test_security_access.TestSendKey::test_send_key_bad_param", "test.client.test_security_access.TestRequestSeed::test_request_seed_bad_param"] | ["test.client.test_request_file_transfer.TestRequestFileTransfer::test_add_file_bad_dfi", "test.client.test_request_file_transfer.TestRequestFileTransfer::test_add_file_bad_moop_echo", "test.client.test_request_file_transfer.TestRequestFileTransfer::test_add_file_bad_moop_echo_no_exception", "test.client.test_request_f... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
maroba__findiff-60 | maroba/findiff | 662086696792f782ae26513142398e1bb6f57906 | diff --git a/findiff/operators.py b/findiff/operators.py
index 391dfac..d573611 100644
--- a/findiff/operators.py
+++ b/findiff/operators.py
@@ -93,10 +93,8 @@ class FinDiff(LinearMap):
args = self.coords,
return self.pds(rhs, *args, **kwargs)
- def stencil(self, shape, acc=None):
- ... | python | diff --git a/test/test_bugs.py b/test/test_bugs.py
index a0bab36..9bdc82d 100644
--- a/test/test_bugs.py
+++ b/test/test_bugs.py
@@ -75,8 +75,8 @@ class TestOldBugs(unittest.TestCase):
stl = stencil1.data[char_pt]
self.assert_dict_almost_equal(expected[char_pt], stl)
- d1x = FinDiff(0... | 2022-08-11T06:00:35+00:00Z | Problems with the stencil matrix
Hi, I've been trying to produce the stencil matrix for the Helmholtz operator
`Helmholtz = Identity() - FinDiff(0, dx, 2)`
I've noticed that general operators such as `Minus` does not have the `stencil` attribute to be produced. Would it be possible to include this in future vers... | Hi,
I'm not sure if you mean stencil or matrix representation. Anyways, let's look at both.
First of all, yes it is
```
x, y = np.linspace(0, 1, 100), np.linspace(0, 1, 100)
```
or simply
```
x = y = np.linspace(0, 1, 100)
```
For the stencil, consider the simplified version with only a 5x5 grid... | 0.0.1-alpha | 5485acf1964e76f987e2b73f708e426f48ba581e | ["test.test_findiff.FinDiffTest::test_local_stencil_operator_mixed_partials", "test.test_findiff.FinDiffTest::test_local_stencil_single_axis_center_1d", "test.test_findiff.FinDiffTest::test_local_stencil_single_axis_center_2d_compared_with_findiff", "test.test_bugs.TestOldBugs::test_accuracy_should_be_passed_down_to_st... | ["test.test_stencils.TestStencilOperations::test_apply_laplacian_laplacian", "test.test_stencils.TestStencilOperations::test_apply_laplacian_laplacian_stencil_outside_grid", "test.test_stencils.TestStencilOperations::test_apply_laplacian_laplacian_stencil_x_form", "test.test_stencils.TestStencilOperations::test_apply_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mcp-use__mcp-use-177 | mcp-use/mcp-use | befb3a2b7b12fc85d41c1e2ec00f3dc98bbc4a82 | diff --git a/mcp_use/connectors/base.py b/mcp_use/connectors/base.py
index 3bb53f7..348cb71 100644
--- a/mcp_use/connectors/base.py
+++ b/mcp_use/connectors/base.py
@@ -6,6 +6,7 @@ must implement.
"""
from abc import ABC, abstractmethod
+from datetime import timedelta
from typing import Any
from mcp import Clie... | python | diff --git a/tests/unit/test_http_connector.py b/tests/unit/test_http_connector.py
index 0f3cbc8..51b7fd1 100644
--- a/tests/unit/test_http_connector.py
+++ b/tests/unit/test_http_connector.py
@@ -316,7 +316,7 @@ class TestHttpConnectorOperations(IsolatedAsyncioTestCase):
result = await self.connector.call_t... | 2025-07-19T18:32:12+00:00Z | 【Feature Request】provide ability to set read_timeout_seconds when calling tool | @pietrozullo BTW, what's the schedule for the upcoming release? I'd appreciate it if we could prioritize rolling out a new release for this PR. thanks.
Yeah I will release now then
Released @qwtsc
@pietrozullo could you please release a new version? it's difficult to use `uv pip install "git+https://github.com/mcp-u... | 0.0.1-alpha | 5729261e8d511a99d85ad2ca45192b43969a47e4 | ["tests.unit.test_http_connector.TestHttpConnectorOperations::test_call_tool"] | ["tests.unit.test_client.TestMCPClientInitialization::test_init_empty", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_dict_config", "tests.unit.test_client.TestMCPClientInitialization::test_from_dict", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_file_config", "tests.unit.te... | ["tests.integration.primitives.test_elicitation::test_elicitation", "tests.integration.primitives.test_prompts::test_summarize_text_prompt", "tests.integration.primitives.test_resources::test_static_resource", "tests.integration.primitives.test_resources::test_templated_resource", "tests.integration.primitives.test_sam... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tinytag__tinytag-170 | tinytag/tinytag | 85a16fa18bcc534d1d61f10ca539955823945d5d | diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py
index a7a8a21..8ba376d 100644
--- a/tinytag/tinytag.py
+++ b/tinytag/tinytag.py
@@ -924,8 +924,10 @@ class Ogg(TinyTag):
'artist': 'artist',
'date': 'year',
'tracknumber': 'track',
+ 'tracktotal': 'track_total',
... | python | diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py
index 8f4421c..0b70517 100644
--- a/tinytag/tests/test_all.py
+++ b/tinytag/tests/test_all.py
@@ -230,7 +230,7 @@ testfiles = OrderedDict([
'track': '1', 'disc': '1', 'title': 'Bad Apple!!', 'duration': 2.0, 'year': '2008.05.25',
'fi... | 2023-03-20T22:35:13+00:00Z | Fail to read track_total, but it is ok in foobar
I got some tracks from qobuz.
I have some problems in reading the track_total. It showed 'null' in track_total. The others is OK, such as artist, album etc....
But its track_total seems OK, when checked in foobar.
Why?
The attachment are an example flac file
[19. I... | 0.0.1-alpha | 07be6e5dbb320f60cabc455ab4b9cedc37e64be0 | ["tinytag.tests.test_all::test_file_reading[samples/test.opus-expected47]"] | ["tinytag.tests.test_all::test_file_reading[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header_2channel.mp3-expected3]... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
pypa__readme_renderer-115 | pypa/readme_renderer | bb88dabfc7fbcb433feacbc569f409a3bb0ed488 | diff --git a/readme_renderer/rst.py b/readme_renderer/rst.py
index cadd843..fdc4e82 100644
--- a/readme_renderer/rst.py
+++ b/readme_renderer/rst.py
@@ -76,7 +76,8 @@ SETTINGS = {
# Output math blocks as LaTeX that can be interpreted by MathJax for
# a prettier display of Math formulas.
- "math_output": ... | python | diff --git a/tests/fixtures/test_rst_math.html b/tests/fixtures/test_rst_math.html
new file mode 100644
index 0000000..763c958
--- /dev/null
+++ b/tests/fixtures/test_rst_math.html
@@ -0,0 +1,8 @@
+<p>A <tt>math</tt> directive:</p>
+<div class="math">
+\begin{equation*}
+\alpha _t(i) = P(O_1, O_2, \ldots O_t, q_t = S_... | 2022-07-19T15:44:42+00:00Z | Add support for the math directive
I am not sure if this is the right place to ask, but I haven't seen any valuable information that would solve my problem anywhere.
I have an issue with uploading a package on PyPI. Specifically, the .rst description of my project https://pypi.org/project/challenge.uccs/ does not r... | This is a bit mysterious to me, I agree that the description seems like valid rST.
On first glance this looks like https://github.com/pypa/warehouse/issues/2718, but issuing a purge for the page does not result in a rendered description.
@theacodes Any ideas why this particular description might be failing?
I'm t... | 0.0.1-alpha | e52f9686a82e29d4605fcf8b62154cf77182ce4d | ["tests.test_rst::test_rst_fixtures[test_rst_math.rst]"] | ["tests.test_clean::test_invalid_link", "tests.test_markdown::test_missing_variant", "tests.test_noextra::test_no_extra[GFM]", "tests.test_noextra::test_no_extra[CommonMark]", "tests.test_rst::test_rst_fixtures[test_rst_tables.rst]", "tests.test_rst::test_rst_fixtures[test_rst_svg_attrs.rst]", "tests.test_rst::test_rst... | ["tests.test_rst::test_rst_fixtures[test_rst_linkify.rst]", "tests.test_rst::test_rst_fixtures[test_rst_008.rst]"] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
pyinat__pyinaturalist-604 | pyinat/pyinaturalist | 3bc118697d122eda5e17e429ebb9ef2be92ad2da | diff --git a/pyinaturalist/controllers/observation_controller.py b/pyinaturalist/controllers/observation_controller.py
index 847a8dc..697e9cf 100644
--- a/pyinaturalist/controllers/observation_controller.py
+++ b/pyinaturalist/controllers/observation_controller.py
@@ -280,6 +280,24 @@ class ObservationController(BaseCo... | python | diff --git a/test/controllers/test_observation_controller.py b/test/controllers/test_observation_controller.py
index 8bc2bfe..774cf6f 100644
--- a/test/controllers/test_observation_controller.py
+++ b/test/controllers/test_observation_controller.py
@@ -232,6 +232,16 @@ def test_popular_fields(requests_mock):
asser... | 2025-02-19T00:19:02+00:00Z | Add `ObservationController` method to get combined observation species count (total only, no records)
The purpose of this is to use a more efficient API call (`per_page=0`) in cases where we don't need to retrieve all records. | 0.0.1-alpha | 9e3429a8dd6cb9b4ea4ade5a5a74f4f559c29fcd | ["test.controllers.test_observation_controller::test_species_count"] | ["test.controllers.test_annotation_controller::test_all", "test.controllers.test_annotation_controller::test_for_taxon", "test.controllers.test_annotation_controller::test_lookup", "test.controllers.test_annotation_controller::test_lookup__doesnt_exist", "test.controllers.test_annotation_controller::test_create", "test... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
oscal-compass__compliance-trestle-1527 | oscal-compass/compliance-trestle | 724ac169389e4d80cca4c336e17fbd5bed4cedff | diff --git a/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md b/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md
index 5679e17..9a1d2ac 100644
--- a/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md
+++ b/docs/tutorials/ssp_profile_ca... | python | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 354d17a..29c746a 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -484,6 +484,7 @@ def setup_for_ssp(
output=output_name,
verbose=0,
overwrite_header_values=False,
+ include_all_parts=False,
yaml_header=... | 2024-07-16T21:02:33+00:00Z | Add Implementation part headers by default for main component in SSP Markdown
## Issue description / feature objectives
Implementation part headers (e.g `### Implementation part a.`) appear in the SSP Markdown for components when rules are attached. There may be use cases when a high level response is needed at the... | 0.0.1-alpha | 54706af0f9d428d10451823aa7d8d0f92a86e3eb | ["tests.trestle.core.commands.author.ssp_test::test_ssp_gen_and_assemble_implementation_parts", "tests.trestle.core.commands.author.ssp_test::test_ssp_generate_no_cds_include_all_parts"] | ["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b... | ["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
pallets-eco__flask-wtf-486 | pallets-eco/flask-wtf | af39209e27410108bd17bec7648bcd215408065c | diff --git a/docs/changes.rst b/docs/changes.rst
index 8c8da04..19d77c2 100644
--- a/docs/changes.rst
+++ b/docs/changes.rst
@@ -10,6 +10,7 @@ Unreleased
``flask.Markup`` :pr:`565` :issue:`561`
- Stop support for python 3.7 :pr:`574`
- Use `pyproject.toml` instead of `setup.cfg` :pr:`576`
+- Fixed nested b... | python | diff --git a/tests/test_csrf_extension.py b/tests/test_csrf_extension.py
index 637c63b..1a760b8 100644
--- a/tests/test_csrf_extension.py
+++ b/tests/test_csrf_extension.py
@@ -154,6 +154,22 @@ def test_exempt_blueprint(app, csrf, client):
assert response.status_code == 200
+def test_exempt_nested_blueprint(ap... | 2023-09-29T20:10:14+00:00Z | csrf.exempt CSRF fails under nested blueprints
When adding `csrf.exempt` on a blueprint that has a child blueprint, it only works on the parent blueprint.
```python
bp_main = Blueprint('main', __name__)
csrf.exempt(bp_main)
bp_child = Blueprint('child', __name__)
bp_main.register_blueprint(bp_child)
```
| I'd really like to fix it, but I wonder if it's better to check all blueprints in the before_request section with `if any([blueprint in self._exempt_blueprints for blueprint in request.blueprints]):` (csrf.py, line 220) or to add child blueprints recursively when adding a blueprint to `self._exempt_blueprints` (csrf.py... | 0.0.1-alpha | dfcc46485501b095b8909f51777d81e6906a8f0d | ["tests.test_csrf_extension::test_exempt_nested_blueprint"] | ["tests.test_csrf_extension::test_render_token", "tests.test_csrf_extension::test_protect", "tests.test_csrf_extension::test_same_origin", "tests.test_csrf_extension::test_form_csrf_short_circuit", "tests.test_csrf_extension::test_exempt_view", "tests.test_csrf_extension::test_manual_protect", "tests.test_csrf_extensio... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
more-itertools__more-itertools-1030 | more-itertools/more-itertools | 145a73ffc552ffad08b552380dba70ff73a8325f | diff --git a/more_itertools/more.py b/more_itertools/more.py
index e66dcaf..5c695be 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -105,6 +105,7 @@ __all__ = [
'interleave',
'interleave_evenly',
'interleave_longest',
+ 'interleave_randomly',
'intersperse',
'is_sorted',
... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index f350611..1e18744 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -1214,6 +1214,42 @@ class InterleaveEvenlyTests(TestCase):
list(mi.interleave_evenly(iterables, lengths=lengths))
+class InterleaveRandomlyTests(TestCase):
+ def te... | 2025-08-18T18:48:01+00:00Z | interleave randomly
### Description
Interleaves multiple iterables into a single output iterable, but takes the next element from each iterable randomly. The result is an iterable where the relative order of each input iterable is preserved, but the order with respect to each other is randomized.
### References
I use... | Possible implementation:
```python
def interleave_randomly(*iterables: Iterable[T]) -> Iterable[T]:
iterators = [iter(e) for e in iterables]
while iterators:
it = random.choice(iterators)
try:
yield next(it)
except StopIteration:
iterators.remove(it)
```
Thanks fo... | 0.0.1-alpha | 5e0a7f46d69156389511d61314e3d737ab2d6b82 | ["tests.test_more.InterleaveRandomlyTests::test_all_empty", "tests.test_more.InterleaveRandomlyTests::test_bad_type", "tests.test_more.InterleaveRandomlyTests::test_basic", "tests.test_more.InterleaveRandomlyTests::test_no_args", "tests.test_more.InterleaveRandomlyTests::test_some_empty"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
microsoft__lsprotocol-102 | microsoft/lsprotocol | 73197a14eee1e3db0fd84c8fd5274c09988df4ed | diff --git a/lsprotocol/_hooks.py b/lsprotocol/_hooks.py
index 9cfacd0..28824b8 100644
--- a/lsprotocol/_hooks.py
+++ b/lsprotocol/_hooks.py
@@ -336,13 +336,13 @@ def _register_capabilities_hooks(converter: cattrs.Converter) -> cattrs.Converte
def _markup_content_hook(object_: Any, _: type):
if object_ is... | python | diff --git a/tests/test_cattrs_special_cases.py b/tests/test_cattrs_special_cases.py
index 5b9be56..fbca5bb 100644
--- a/tests/test_cattrs_special_cases.py
+++ b/tests/test_cattrs_special_cases.py
@@ -194,3 +194,14 @@ def test_LSPAny(data):
converter.unstructure(obj, lsp.DidChangeConfigurationParams),
... | 2022-10-29T01:03:48+00:00Z | Missing structure hook for `CompletionItem.documentation`
I get the following error while trying to structure a `CompletionItem` that provides a `documentation` field
```python
>>> converter.structure(dict(label='example', documentation='This is documented'), CompletionItem)
+ Exception Group Traceback (most re... | 0.0.1-alpha | af9c3a4f3c751997786d53cef472335d286feb7c | ["tests.test_cattrs_special_cases::test_completion_item"] | ["tests.test_cattrs_special_cases::test_simple", "tests.test_cattrs_special_cases::test_numeric_validation", "tests.test_cattrs_special_cases::test_forward_refs", "tests.test_cattrs_special_cases::test_union_with_complex_type[data0]", "tests.test_cattrs_special_cases::test_union_with_complex_type[data1]", "tests.test_c... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
mwaskom__seaborn-3023 | mwaskom/seaborn | 63186a4e6a57890b1aa8455b3dfa78b7a5ce8f7d | diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py
index b66d61c..3e32f04 100644
--- a/seaborn/_core/plot.py
+++ b/seaborn/_core/plot.py
@@ -1582,7 +1582,7 @@ class Plotter:
merged_contents: dict[
tuple[str, str | int], tuple[list[Artist], list[str]],
] = {}
- for key, arti... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index c638814..03a6491 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -1963,6 +1963,20 @@ class TestLegend:
assert len(contents.findobj(mpl.lines.Line2D)) == len(names)
assert len(contents.findobj(mpl.pat... | 2022-10-04T23:44:55+00:00Z | Error during legend creation with mixture of marks
Here's a minimal example, it seems that you need all three layers to trigger the error:
```python
(
so.Plot(penguins, "bill_length_mm", "bill_depth_mm", color="species")
.add(so.Dots())
.add(so.Line(), so.PolyFit(1))
.add(so.Line(), so.PolyFit(... | This might just be a matter of >2 layers... | 0.0.1-alpha | 8ea02f09a40b5f7af73f54a1d3d060444c9c3b5b | ["tests._core.test_plot.TestLegend::test_three_layers"] | ["tests.test_algorithms::test_bootstrap", "tests.test_algorithms::test_bootstrap_length", "tests.test_algorithms::test_bootstrap_range", "tests.test_algorithms::test_bootstrap_multiarg", "tests.test_algorithms::test_bootstrap_axis", "tests.test_algorithms::test_bootstrap_seed", "tests.test_algorithms::test_bootstrap_ol... | ["tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats_with_missing_data", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats_wit... | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
sepandhaghighi__nafas-97 | sepandhaghighi/nafas | ebcfc977d9765aefda43fdb7dafdf408c74da320 | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b90770d..1d04f1e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -45,7 +45,7 @@ jobs:
- name: Other tests
run: |
python -m vulture nafas/ setup.py --min-confidence 65 --exclude=__init__.py --sort-... | python | diff --git a/test/test.py b/test/test.py
index e688fd3..a6f4fe9 100644
--- a/test/test.py
+++ b/test/test.py
@@ -6,6 +6,8 @@
>>> from pytest import warns
>>> import shutil
>>> from nafas.functions import *
+>>> clear_screen()
+
>>> line(10,"*")
**********
>>> description_print()
| 2024-08-31T10:03:54+00:00Z | [Feature]: Clear screen
### Describe the feature you want to add
Clear screen in **reset** mode
### Describe your proposed solution
_No response_
### Describe alternatives you've considered, if relevant
_No response_
### Additional context
_No response_ | Hi,
I’d like to help with this issue. Could you please provide an example or clarify when the "reset mode" is used?
Thank you!
Hi @oscarArismendi
We are delighted that you are interested in contributing to this project.
Here :
https://github.com/sepandhaghighi/nafas/blob/ebcfc977d9765aefda43fdb7dafdf408... | 0.0.1-alpha | c7c003246c8dacb975a53fcdbe1bc2eacec3ec9a | ["test.test::test"] | [] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
qgallouedec__panda-gym-93 | qgallouedec/panda-gym | 746ee4d89ecf1d17b14d22512d4cc2497d10ba49 | diff --git a/panda_gym/envs/core.py b/panda_gym/envs/core.py
index e5d37eb..3a4f1c0 100644
--- a/panda_gym/envs/core.py
+++ b/panda_gym/envs/core.py
@@ -277,7 +277,7 @@ class RobotTaskEnv(gym.Env):
self, seed: Optional[int] = None, options: Optional[dict] = None
) -> Tuple[Dict[str, np.ndarray], Dict[str,... | python | diff --git a/test/envs_test.py b/test/envs_test.py
index 0e9f9bb..e7b8d78 100644
--- a/test/envs_test.py
+++ b/test/envs_test.py
@@ -1,5 +1,6 @@
import gymnasium as gym
import pytest
+from gymnasium.utils.env_checker import check_env
import panda_gym
@@ -22,3 +23,9 @@ def test_env(env_id):
"""Tests running ... | 2024-07-04T13:38:48+00:00Z | reproduce the results
Hi, since the panda-gym cannot set the random seed as gym, where you can use env.set(seed) to reproduce the results.
When I use env.reset(seed=10), if the random seed is the same, I get the same return value, such as desired_goal. But if I don't set the seed, I can't guarantee the consistency o... | closing In favour of #94 | 0.0.1-alpha | 10c4d8adaab07d8a29b2f8dc0aa85f8edd8532ae | ["test.envs_test::test_check_env[PandaReach-v3]", "test.envs_test::test_check_env[PandaReachJoints-v3]", "test.envs_test::test_check_env[PandaReachDense-v3]", "test.envs_test::test_check_env[PandaReachJointsDense-v3]", "test.envs_test::test_check_env[PandaSlide-v3]", "test.envs_test::test_check_env[PandaSlideJoints-v3]... | ["test.envs_test::test_env[PandaReach-v3]", "test.envs_test::test_env[PandaReachJoints-v3]", "test.envs_test::test_env[PandaReachDense-v3]", "test.envs_test::test_env[PandaReachJointsDense-v3]", "test.envs_test::test_env[PandaSlide-v3]", "test.envs_test::test_env[PandaSlideJoints-v3]", "test.envs_test::test_env[PandaSl... | ["test.envs_test::test_check_env[PandaPickAndPlace-v3]", "test.envs_test::test_check_env[PandaPickAndPlaceJoints-v3]", "test.envs_test::test_check_env[PandaPickAndPlaceDense-v3]", "test.envs_test::test_check_env[PandaPickAndPlaceJointsDense-v3]", "test.envs_test::test_check_env[PandaFlip-v3]", "test.envs_test::test_che... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pyprojectx__pyprojectx-76 | pyprojectx/pyprojectx | 780d702f8923d23821001fceed1fd098d410dbdc | diff --git a/src/pyprojectx/cli.py b/src/pyprojectx/cli.py
index 27593c5..919f02d 100644
--- a/src/pyprojectx/cli.py
+++ b/src/pyprojectx/cli.py
@@ -8,7 +8,7 @@ from typing import List, Union
from pyprojectx.config import MAIN, AliasCommand, Config
from pyprojectx.env import IsolatedVirtualEnv
from pyprojectx.instal... | python | diff --git a/tests/integration/test_pw.py b/tests/integration/test_pw.py
index f242a15..8c67f80 100644
--- a/tests/integration/test_pw.py
+++ b/tests/integration/test_pw.py
@@ -255,6 +255,7 @@ def test_lock(tmp_lock_project):
assert lock_content["tool-with-known-requirements"] == locked_requirements["tool-with-kno... | 2024-01-25T13:00:51+00:00Z | --lock also installs non-lockable tool contexts
`./pw --lock` installs all contexts. Locking can become faster when skipping the non-lockable contexts. | 0.0.1-alpha | fa3899f5c4a7d7d9e04d49eb921ff5e463685358 | ["tests.integration.test_pw::test_lock"] | ["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w... | ["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
mwaskom__seaborn-2910 | mwaskom/seaborn | 5d530ac2423d0cc825ef66ab3c8b8563a6441281 | diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py
index b8bcc00..2723d2a 100644
--- a/seaborn/_core/plot.py
+++ b/seaborn/_core/plot.py
@@ -1256,11 +1256,16 @@ class Plotter:
data.frame = res
def _get_scale(
- self, spec: Plot, var: str, prop: Property, values: Series
+ ... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index f61c0ae..91e1008 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -397,6 +397,16 @@ class TestScaling:
xfm_log = ax_log.xaxis.get_transform().transform
assert_array_equal(xfm_log([1, 10, 100]), [0, 1, 2])
+... | 2023-09-01T11:36:59+00:00Z | Scale has no effect for Pair plots in next-gen interface
The `objects` interface looks great, in particular the ability to have combination pair and facet plots. However, I ran into a bug when attempting to log-scale an axis for a `pair`ed plot with `seaborn==0.12.0b2`.
**Expected behavior** (no log-scaling where n... | Hi @eringrant thank you so much for testing out the beta!
This might not be documented (yet), but individual variables in a paired plot can be scaled (and otherwise modified in `Plot.limit`, `Plot.label`, etc.) with `{var}{idx}`, i.e.:
```
(
so.Plot(
diamonds,
x="carat",
)
.pai... | 0.0.1-alpha | 74a83017fd4114c78854b492f8f1d252083f3146 | ["tests._core.test_plot.TestScaling::test_paired_with_common_fallback", "tests._core.test_plot.TestPairInterface::test_limits"] | ["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
more-itertools__more-itertools-707 | more-itertools/more-itertools | 7c1b6482a00cb9c1f76061c12be192ed5043e5ea | diff --git a/more_itertools/more.py b/more_itertools/more.py
index 41a2fd8..1facd8e 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -475,7 +475,10 @@ def iterate(func, start):
"""
while True:
yield start
- start = func(start)
+ try:
+ start = func(start)
+... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 96ba7dc..e7b4c25 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -5388,3 +5388,34 @@ class PartialProductTests(TestCase):
]
self.assertEqual(list(mi.partial_product('AB', 'C', 'DEF')), expected)
+
+
+class IterateTests(TestCase):... | 2023-04-19T13:20:52+00:00Z | function passed to `iterate()` cannot control iterations by raising `StopIteration`. Is it expected?
The `iterate()` function doesnot accept the function to raise `StopIteration`, because `iterate()` is generator function.
Behavior of `StopIteration` in generator seems to be changed in [Python version 3.7](https://do... | What if we changed `iterate` to catch `StopIteration` and break?
```python
def iterate(func, start):
while True:
yield start
try:
start = func(start)
except StopIteration:
break
```
I will accept a PR that does this.
OK, it works on my example. I will pu... | 0.0.1-alpha | cd0a3a87d231033db06a3c222fe893025e398a86 | ["tests.test_more.IterateTests::test_func_controls_iteration_stop"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tompollard__tableone-114 | tompollard/tableone | bd27742188fdbc85bbd2486a4c94fa6229a848ee | diff --git a/tableone/preprocessors.py b/tableone/preprocessors.py
index caf7646..ed8b18f 100644
--- a/tableone/preprocessors.py
+++ b/tableone/preprocessors.py
@@ -1,4 +1,5 @@
import numpy as np
+import pandas as pd
from tableone.exceptions import InputError
@@ -99,3 +100,18 @@ def get_groups(data, groupby, orde... | python | diff --git a/tests/unit/test_tableone.py b/tests/unit/test_tableone.py
index e205528..601529b 100644
--- a/tests/unit/test_tableone.py
+++ b/tests/unit/test_tableone.py
@@ -216,7 +216,7 @@ class TestTableOne(object):
"""
categorical = ['likeshoney']
table = TableOne(data_sample, columns=categ... | 2024-06-14T05:04:59+00:00Z | Wrong percentage calculated when categorical column includes missing values.
When your categorical variables include missing values, a wrong percentage gets calculated.
See Parameter1:
<img width="604" alt="Screenshot 2021-02-27 at 18 07 39" src="https://user-images.githubusercontent.com/28986131/109394317-b2c6720... | @rherman9 thanks for picking this up. we'll take a look!
To reproduce this issue:
```
import pandas as pd
from tableone import tableone
df = pd.DataFrame(
{'cats': ["1", "2", "3", "4", None, None],
'set': ["train","train", "val", "val", "val", "val"]}
)
t = tableone(df, groupby = "set")
print... | 0.0.1-alpha | 6fc6a30431937cd8d73c07ab641fabe389e05fe7 | ["tests.unit.test_tableone.TestTableOne::test_overall_n_and_percent_for_binary_cat_var_with_nan", "tests.unit.test_tableone.TestTableOne::test_nan_rows_not_deleted_in_categorical_columns", "tests.unit.test_tableone.TestTableOne::test_order_of_order_categorical_columns", "tests.unit.test_tableone.TestTableOne::test_row_... | ["tests.unit.test_tableone.TestTableOne::test_examples_used_in_the_readme_run_without_raising_error_pn", "tests.unit.test_tableone.TestTableOne::test_duplicate_index_values_raise_error", "tests.unit.test_tableone.TestTableOne::test_overall_mean_and_std_as_expected_for_cont_variable", "tests.unit.test_tableone.TestTable... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
richardpenman__whois-26 | richardpenman/whois | 4639bd7d4f2816ae948a95ccf368a1b8d16e5191 | diff --git a/whois/parser.py b/whois/parser.py
index 6992eda..20e7cfc 100644
--- a/whois/parser.py
+++ b/whois/parser.py
@@ -484,7 +484,7 @@ class WhoisRo(WhoisEntry):
"""
regex = {
'domain_name': r'Domain Name: *(.+)',
- 'domain_status': r'Domain Status: *(.+)',
+ 'status': ... | python | diff --git a/test/samples/expected/cbc.ca b/test/samples/expected/cbc.ca
index 9776d8b..c25b3a9 100644
--- a/test/samples/expected/cbc.ca
+++ b/test/samples/expected/cbc.ca
@@ -1,1 +1,1 @@
-{"domain_name": "cbc.ca", "whois_server": "whois.ca.fury.ca", "registrar": "Authentic Web Inc.", "registrar_url": "authenticweb.co... | 2021-08-03T16:22:16+00:00Z | inconsistency across TLDs with domain_status vs status
Hi there,
thanks for this lib, parsing whois is quite the horrible task to achieve :(
I'm wondering why only a handful of TLDs are getting a `domain_status` field in their results while all others have a `status` field? This makes checking for this value inc... | The same kind of inconsistency is also apparent with all `*_date` values : sometimes they're a `datetime.datetime` object while others they are a list of `datetime.datetime` objects.
it would be a lot better to always get a list even though there's only one item in it since it would make using results from the libra... | 0.0.1-alpha | a2cb43a8e4e0a483f2df0f182f25aac75ad71db8 | ["test.test_parser.TestParser::test_ca_parse"] | ["test.test_parser.TestParser::test_cast_date", "test.test_parser.TestParser::test_cn_parse", "test.test_parser.TestParser::test_com_expiration", "test.test_parser.TestParser::test_dk_parse", "test.test_parser.TestParser::test_il_parse", "test.test_parser.TestParser::test_nl_expiration", "test.test_parser.TestParser::t... | ["test.test_parser.TestParser::test_ie_parse", "test.test_parser.TestParser::test_com_allsamples"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sergioburdisso__pyss3-6 | sergioburdisso/pyss3 | e2ecda407b44a5ab46d3b9ff25664fec9dd0c5fb | diff --git a/pyss3/util.py b/pyss3/util.py
index ae870d2..bbf3207 100644
--- a/pyss3/util.py
+++ b/pyss3/util.py
@@ -2,13 +2,13 @@
"""This is a helper module with utility classes and functions."""
from __future__ import print_function
from io import open
-from os import listdir, makedirs, path
+from os import listdi... | python | diff --git a/tests/dataset_ml/file_labels.tsv b/tests/dataset_ml/file_labels.tsv
new file mode 100644
index 0000000..ed1b791
--- /dev/null
+++ b/tests/dataset_ml/file_labels.tsv
@@ -0,0 +1,4 @@
+a catA
+a catB
+a catC
+b catA
\ No newline at end of file
diff --git a/tests/dataset_ml/train/docs.txt b/tests/dataset_ml/tr... | 2020-05-12T14:48:08+00:00Z | Multilabel Classification Dataset Loading
Hey @sergioburdisso,
for multilabel classification the file structure described in the topic categorization tutorial is not efficient since the text related to multiple label has to be stored in multiple files.
My current approach is to write the text to one file linewise ... | Hi @angrymeir!
First of all, thanks for being interested in this project. Yeah, I agree that the file structures in the topic categorization tutorial is not well suited to work with multilabel classification, it follows the classic single-label dataset structure.
I haven't a lot of previous experience working with mu... | 0.0.1-alpha | 7ece7ce2d25cbac614d22803d6014cd74e2671ed | ["tests.test_util::test_dataset"] | ["tests.test_cmd_line::test_ss3prompt", "tests.test_pyss3::test_pyss3_functions", "tests.test_pyss3::test_pyss3_ss3", "tests.test_server::test_http_helper_functions", "tests.test_server::test_live_test[0]", "tests.test_server::test_live_test[1]", "tests.test_server::test_live_test[2]", "tests.test_server::test_live_tes... | ["tests.test_util::test_evaluation"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
matthewwithanm__python-markdownify-49 | matthewwithanm/python-markdownify | 6a2f3a4b42b0a807e4dfb62db8c8eee8ebe9c202 | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index 47485f5..3d67a49 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -96,11 +96,14 @@ class MarkdownConverter(object):
def process_tag(self, node, convert_as_inline, children_only=False):
text = ''
- # markdown... | python | diff --git a/tests/test_tables.py b/tests/test_tables.py
index e481e92..27d4403 100644
--- a/tests/test_tables.py
+++ b/tests/test_tables.py
@@ -39,6 +39,25 @@ table_with_html_content = """<table>
</table>"""
+table_with_paragraphs = """<table>
+ <tr>
+ <th>Firstname</th>
+ <th><p>Lastname</p></th... | 2021-08-25T06:48:30+00:00Z | Tables not converted well.
Here is a test case:
```python
from markdownify import markdownify as md
text="""
<html>
<body>
<table>
<thead>
<tr>
<th>
<p>Heading 1</p>
</th>
<th><p>Heading 2</p>
</th>
<th><p>Heading 3</p>
</th>
</tr>
</thead>
<tbody>
... | Hi!
A paragraph is converted as newlines around it, and this breaks the table environment in markdown. I fixed this in 0fdeb1f.
Col/Rowspan is not suppported by any Markdown spec I know of. As you can use HTML in Markdown, you could manually add these special tables to your final Markdown file.
Best | 0.0.1-alpha | 0fdeb1ff6e5c7e13fcda525be49dfff8e143042b | ["tests.test_tables::test_table"] | ["tests.test_advanced::test_chomp", "tests.test_advanced::test_nested", "tests.test_advanced::test_ignore_comments", "tests.test_advanced::test_ignore_comments_with_other_tags", "tests.test_advanced::test_code_with_tricky_content", "tests.test_advanced::test_special_tags", "tests.test_args::test_strip", "tests.test_arg... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mwaskom__seaborn-3112 | mwaskom/seaborn | 021a20f06f41212fd8c55680a8cc3bf0924e1b30 | diff --git a/doc/_docstrings/objects.Norm.ipynb b/doc/_docstrings/objects.Norm.ipynb
index 88f8632..680df67 100644
--- a/doc/_docstrings/objects.Norm.ipynb
+++ b/doc/_docstrings/objects.Norm.ipynb
@@ -4,7 +4,11 @@
"cell_type": "code",
"execution_count": null,
"id": "0bfee8b6-1e3e-499d-96ae-735a5c230b32",
- ... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index 85ab6d8..e4ba99e 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -12,7 +12,7 @@ from PIL import Image
import pytest
from pandas.testing import assert_frame_equal, assert_series_equal
-from numpy.testing import assert_arra... | 2022-10-30T17:32:52+00:00Z | [Feature-request] displot, facet-wise common_bins?
# Current behavior
In `displot`, we can either set:
- `common_bins=True`: to use same bins for all facets and all hues
- `common_bins=False`: to use unique bins for a given facet and a given hue
# Requested behavior
It would be really nice to have an _inter... | This is something that would be pretty tricky to implement given the way that the `histplot` internals are written. But it is actually already built into the new objects interface. Although in cooking up an example, I realized there's a small bug at moment. I think I have a fix, with which we can get this:
```python... | 0.0.1-alpha | 8dc5a9cd86cb1cd71c60d89b17a4c14ec8c87190 | ["tests._core.test_plot.TestFacetInterface::test_unshared_spacing"] | ["tests.test_algorithms::test_bootstrap", "tests.test_algorithms::test_bootstrap_length", "tests.test_algorithms::test_bootstrap_range", "tests.test_algorithms::test_bootstrap_multiarg", "tests.test_algorithms::test_bootstrap_axis", "tests.test_algorithms::test_bootstrap_seed", "tests.test_algorithms::test_bootstrap_ol... | ["tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats_with_missing_data", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats_wit... | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
pylessard__python-can-isotp-41 | pylessard/python-can-isotp | ecbf5c8150fc8c9266b5898deb41c8e8beb91bde | diff --git a/isotp/protocol.py b/isotp/protocol.py
index 05beedf..419e42b 100755
--- a/isotp/protocol.py
+++ b/isotp/protocol.py
@@ -439,6 +439,9 @@ class TransportLayer:
Function to be called periodically, as fast as possible.
This function is non-blocking.
"""
+
+ self.check_ti... | python | diff --git a/test/test_transport_layer.py b/test/test_transport_layer.py
index 842a637..c26e00c 100755
--- a/test/test_transport_layer.py
+++ b/test/test_transport_layer.py
@@ -235,6 +235,18 @@ class TestTransportLayer(TransportLayerBaseTest):
self.assertIsNone(self.get_tx_can_msg()) # Do not send flow control... | 2021-03-12T18:27:52+00:00Z | ConsecutiveFrameTimeoutError for first consecutive frame
I found that ConsecutiveFrameTimeoutError was not raised, although, the first consecutive frame was not received after first frame and flow control exchange:
S R
-----First Frame----->
<--- Flow Control----
Is that expec... | Thanks for your quick answer.
Yeah, i saw this test.
And i mean that it should be raised even without incoming CF with index=1 ( line 246),
because stack received first frame, sent flow control and waits consecutive frame/frames, but it was not received on time.
In this case timer_rx_cf is already expired.
An... | 0.0.1-alpha | 4698f2fa9867b3be714928c179f574de6c4c453a | ["test.test_transport_layer.TestTransportLayer::test_receive_timeout_consecutive_frame_after_flow_control"] | ["test.test_helper_classes.testTimer::test_timer", "test.test_addressing_modes.TestAddressingMode::test_11bits_extended", "test.test_addressing_modes.TestAddressingMode::test_11bits_extended_through_layer", "test.test_addressing_modes.TestAddressingMode::test_11bits_mixed", "test.test_addressing_modes.TestAddressingMod... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sepandhaghighi__nafas-1 | sepandhaghighi/nafas | 2bd192f9baf3379f4b141a056b8e4ab2c68afabc | diff --git a/nafas/__main__.py b/nafas/__main__.py
index 53b55ae..be8ef1b 100644
--- a/nafas/__main__.py
+++ b/nafas/__main__.py
@@ -1,10 +1,20 @@
# -*- coding: utf-8 -*-
"""nafas main."""
+import sys
from .functions import *
+from art import tprint
+from .params import NAFAS_VERSION
if __name__ == "__main__":
... | python | diff --git a/test/test.py b/test/test.py
index 0575c7e..5fc6399 100644
--- a/test/test.py
+++ b/test/test.py
@@ -4,26 +4,12 @@
>>> line(10,"*")
**********
>>> description_print()
- _ _ __
-| \ | | __ _ / _| __ _ ___
-| \| | / _` || |_ / _` |/ __|
-| |\ || (_| || _|| (_| |\__ \
-|_| \_| \__,_||_| ... | 2020-08-26T08:57:51+00:00Z | Add tests
Add tests | 0.0.1-alpha | 8bf8c19dcd6904213215388e57f0e1995d549b50 | ["test.test::test"] | [] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
more-itertools__more-itertools-843 | more-itertools/more-itertools | 7c453ba8bc2371d25e8c49ad57b24ec993b3cd35 | diff --git a/docs/api.rst b/docs/api.rst
index f179245..8300f87 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -129,8 +129,6 @@ These tools combine multiple iterables.
**Itertools recipes**
-.. autofunction:: dotproduct
-.. autofunction:: convolve
.. autofunction:: flatten
.. autofunction:: roundrobin
.. autof... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 7c19e0b..15efdaf 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -1,3 +1,4 @@
+import cmath
import warnings
from collections import Counter, abc
@@ -23,7 +24,7 @@ from itertools import (
)
from operator import add, mul, itemgetter
from pickle... | 2024-06-02T00:18:59+00:00Z | Proposal: Discrete Fourier Transform
```
from math import e, tau, sumprod
from itertools import chain
from typing import Iterator, Sequence
def _sumprod(v1: Sequence[complex], v2: Sequence[complex]) -> complex:
"High precision sumprod() for complex numbers."
r1 = chain((p.real for p in v1), (-p.imag fo... | [Here](https://github.com/more-itertools/more-itertools/pull/847) is an implementation. Thanks for this contribution!
Might be better to replace `e ** (...)` with `cmath.exp(...)`, as Mark [explained](https://github.com/python/cpython/issues/56554#issuecomment-1093549649) (although for real numbers).
> Might be better ... | 0.0.1-alpha | 69447522f2f12dd3ddf7d5df2eff4b853d860f91 | ["tests.test_more.DiscreteFourierTransformTests::test_basic", "tests.test_more.DiscreteFourierTransformTests::test_roundtrip"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pypa__readme_renderer-285 | pypa/readme_renderer | 9dbb3522d23758fafa330cba4e4f89213503e8d3 | diff --git a/readme_renderer/clean.py b/readme_renderer/clean.py
index f610954..29324d3 100644
--- a/readme_renderer/clean.py
+++ b/readme_renderer/clean.py
@@ -31,6 +31,7 @@ ALLOWED_TAGS = [
"dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
"span", "sub", "summary", "sup", "table", "tb... | python | diff --git a/tests/fixtures/test_rst_figure.html b/tests/fixtures/test_rst_figure.html
index 0975d30..808a1e3 100644
--- a/tests/fixtures/test_rst_figure.html
+++ b/tests/fixtures/test_rst_figure.html
@@ -1,3 +1,6 @@
<figure class="align-center">
<img alt="https://raw.githubusercontent.com/schlatterbeck/plot-antenna/... | 2023-08-18T21:30:43+00:00Z | Allow figcaption through clean.py
Docutils generates a figcaption tag for image captions that isn’t being recognized yet and displays raw html.
Example: https://pypi.org/project/sphinxcontrib-mermaid/
```[tasklist]
### Tasks
- [x] Add a test case for RST that implement an image with a caption
- [x] Add figcaption... | 0.0.1-alpha | bd65c07dc9e51a4c9bee2e5da98ca2e11fc49780 | ["tests.test_rst::test_rst_fixtures[test_rst_figure.rst]"] | ["tests.test_clean::test_invalid_link", "tests.test_cli::test_cli_input_file[test_rst_003.rst-False]", "tests.test_cli::test_cli_input_file[test_rst_003.rst-True]", "tests.test_cli::test_cli_input_file[test_txt_001.txt-False]", "tests.test_cli::test_cli_input_file[test_txt_001.txt-True]", "tests.test_cli::test_cli_inva... | ["tests.test_cli::test_cli_explicit_format[test_rst_003.rst]", "tests.test_rst::test_rst_fixtures[test_rst_linkify.rst]", "tests.test_rst::test_rst_fixtures[test_rst_contents.rst]", "tests.test_rst::test_rst_fixtures[test_rst_bibtex.rst]", "tests.test_rst::test_rst_fixtures[test_rst_008.rst]"] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
roniemartinez__latex2mathml-60 | roniemartinez/latex2mathml | d9fd47292cf31eeba828cb1b26ed21d607545086 | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..be20bef
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,132 @@
+# Created by .ignore support plugin (hsz.mobi)
+### Python template
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution /... | python | diff --git a/tests/test_aggregator.py b/tests/test_aggregator.py
index 6dc3c8e..76600ef 100644
--- a/tests/test_aggregator.py
+++ b/tests/test_aggregator.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# __author__ = "Ronie Martinez"
-# __copyright__ = "Copyright 2016-2019, Ronie Martinez"
+# __copyright__ = "Copyright 2016... | 2020-03-06T13:02:20+00:00Z | '\mathrm {}' problem
'$\mathrm{...}$' can't be converted correctly. | Bug verified.
Thanks @Sun-ZhenXing | 0.0.1-alpha | 30827e5c505e156e9f58056494752019d656720f | ["tests.test_aggregator::test_issue_60", "tests.test_converter::test_issue_60_1", "tests.test_converter::test_issue_60_2", "tests.test_tokenizer::test_issue_51", "tests.test_tokenizer::test_issue_60"] | ["tests.test_aggregator::test_alphabets", "tests.test_aggregator::test_empty_group", "tests.test_aggregator::test_numbers", "tests.test_aggregator::test_numbers_with_decimals", "tests.test_aggregator::test_numbers_and_alphabets", "tests.test_aggregator::test_decimals_and_alphabets", "tests.test_aggregator::test_string_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
python-validators__validators-327 | python-validators/validators | 854375f611ee1600727c0f4ff0778e1a3e3c7b74 | diff --git a/CHANGES.md b/CHANGES.md
index 144a53f..281f765 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -147,19 +147,21 @@ _**Breaking**_ ⚠️
- `extremes.py` renamed to `_extremes.py` and is no longer exposed.
- `truthy` was discarded in favour of simple `bool()` function.
- `ipv4_cidr()` and `ipv6_cidr()` has been d... | python | diff --git a/tests/test_domain.py b/tests/test_domain.py
index 9f82b55..4cd9c65 100644
--- a/tests/test_domain.py
+++ b/tests/test_domain.py
@@ -18,6 +18,7 @@ from validators import ValidationError, domain
("11.com", False, False),
("3.cn.", True, False),
("_example.com", False, True),
+ ... | 2024-03-22T03:38:12+00:00Z | URL Validation: Add support for other schemes apart from https, http, ftp
Given in the documentation [link](https://python-validators.github.io/validators/reference/url/), the validator does not return `True` if I use a different scheme such as `rtmp` or `rtsp`.
```
foo://admin:hunter1@example.com:8042/over/th... | ```
"ftp", "ftps", "git", "http", "https",
"rtmp", "rtmps", "rtsp", "sftp",
"ssh", "telnet",
```
Apart from these, do you have any other protocols in mind that follows a similar `scheme://netloc/path;parameters?query#fragment` syntax?
Thanks for replying! I have nothing more to add to the list.
Opening the issu... | 0.0.1-alpha | 7e799eb7dc757a412158407296bd7d65a1b5c6a6 | ["tests.test_domain::test_returns_true_on_valid_domain[example_.com-False-True]", "tests.test_url::test_returns_failed_validation_on_invalid_url[https://example.org?q=search');alert(document.domain);]"] | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pallets-eco__flask-sqlalchemy-1088 | pallets-eco/flask-sqlalchemy | 69e6a64f168b323e1699b12bfc7c55b0df6115ac | diff --git a/CHANGES.rst b/CHANGES.rst
index 35be949..9fb90e3 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -20,11 +20,9 @@ Unreleased
that are difficult to debug. Call ``db.session.commit()`` directly instead.
:issue:`216`
- Change the default MySQL character set to "utf8mb4". :issue:`875`
-- ``Paginati... | python | diff --git a/tests/test_legacy_query.py b/tests/test_legacy_query.py
new file mode 100644
index 0000000..f08246b
--- /dev/null
+++ b/tests/test_legacy_query.py
@@ -0,0 +1,110 @@
+from __future__ import annotations
+
+import typing as t
+
+import pytest
+import sqlalchemy as sa
+from flask import Flask
+from werkzeug.ex... | 2022-09-24T17:20:03+00:00Z | port query methods to select
The query interface is legacy in SQLAlchemy 2.0, instead using the `session.execute(select())` pattern. It's not possible (or at least not at all supported) to modify the `Result` returned from `session.execute` the way that `Query` could be.
Implement the `or_404` and `paginate` method... | 0.0.1-alpha | 904aafcc8c19f6c288d0ce1484f7eff525f7a6a0 | ["tests.test_pagination::test_first_page", "tests.test_pagination::test_last_page", "tests.test_pagination::test_item_numbers_first_page", "tests.test_pagination::test_item_numbers_last_page", "tests.test_pagination::test_item_numbers_0", "tests.test_pagination::test_0_pages[0]", "tests.test_pagination::test_0_pages[No... | ["tests.test_cli::test_shell_context", "tests.test_engine::test_default_engine", "tests.test_engine::test_engine_per_bind", "tests.test_engine::test_config_engine_options", "tests.test_engine::test_init_engine_options", "tests.test_engine::test_config_echo", "tests.test_engine::test_url_type[sqlite://]", "tests.test_en... | ["tests.test_engine::test_sqlite_relative_path", "tests.test_legacy_query::test_default_query_class", "tests.test_legacy_query::test_custom_query_class", "tests.test_model_name::test_complex_inheritance", "tests.test_pagination::test_paginate", "tests.test_pagination::test_paginate_qs", "tests.test_pagination::test_pag... | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | ||
simonw__files-to-prompt-28 | simonw/files-to-prompt | 3332a864d3532afd429adf1aece9b27a812c9d8c | diff --git a/README.md b/README.md
index 389f4cd..31d1bb1 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,12 @@ This will output the contents of every file, with each file preceded by its rela
### Options
+- `-e/--extension <extension>`: Only include files with the specified extension. Can be used multiple tim... | python | diff --git a/tests/test_files_to_prompt.py b/tests/test_files_to_prompt.py
index 648e9ab..207a515 100644
--- a/tests/test_files_to_prompt.py
+++ b/tests/test_files_to_prompt.py
@@ -108,6 +108,31 @@ def test_ignore_patterns(tmpdir):
assert "This file should be included" in result.output
+def test_specific_e... | 2024-10-16T23:23:09+00:00Z | Include only files that match pattern
Hi, nice project, thanks for building!
I was working on an iOS project yesterday, where there are lots of random JSON files for assets and plist files and whatnot in the project directory, but I'd only like to include `.swift` files in the prompt.
I think an option like `--i... | I just found myself wanting exactly the same thing - I so often want to say "just include the .py and .md` files", for example.
I'm going with `-e py -e md` - where `-e` is short for `--extension`.
`fd` is an example of a command that uses `-e` for this: https://github.com/sharkdp/fd/blob/master/README.md#searching-... | 0.0.1-alpha | ae06f2039f3a1dc1c9f3b4657fb51459490768f2 | ["tests.test_files_to_prompt::test_specific_extensions"] | ["tests.test_files_to_prompt::test_basic_functionality", "tests.test_files_to_prompt::test_include_hidden", "tests.test_files_to_prompt::test_ignore_gitignore", "tests.test_files_to_prompt::test_multiple_paths", "tests.test_files_to_prompt::test_ignore_patterns", "tests.test_files_to_prompt::test_mixed_paths_with_optio... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
sherbold__autorank-8 | sherbold/autorank | 47ee4262507e70d497283ed3f44c95278c252bb3 | diff --git a/autorank/_util.py b/autorank/_util.py
index 7aab3e5..bc2ec43 100644
--- a/autorank/_util.py
+++ b/autorank/_util.py
@@ -17,7 +17,7 @@ __all__ = ['rank_two', 'rank_multiple_normal_homoscedastic', 'rank_bayesian', 'R
class RankResult(namedtuple('RankResult', ('rankdf', 'pvalue', 'cd', 'omnibus', 'posthoc', ... | python | diff --git a/tests/test_autorank.py b/tests/test_autorank.py
index 3aa7bd3..f5a8f9d 100644
--- a/tests/test_autorank.py
+++ b/tests/test_autorank.py
@@ -470,19 +470,17 @@ class TestAutorank(unittest.TestCase):
self.assertTrue(res.all_normal)
self.assertTrue(res.homoscedastic)
self.assertEqual... | 2021-12-30T18:22:58+00:00Z | Is it possible to let the user choose which test to run?
Thanks for this awesome tool, but I am wondering if it is possible to let the user decide if they want a parametric test or a nonparametric test? That will allow some flexibility to this function. For example, I want to get a CD plot for my test, but it always ... | Thanks for your interest in autorank!
I will consider how such a "force" option could be implemented, without breaking the inherent design principle of autorank, i.e., to hinder using the "wrong" statistical methods.
Maybe an optional parameter, combined with a warning, would be an option. However, I am not yet sure... | 0.0.1-alpha | 91d87ef5598a75014fdb906ac949faf8909212cf | ["tests.test_autorank.TestAutorank::test_autorank_force_mode_parametric_multiple_nonnormal", "tests.test_autorank.TestAutorank::test_plot_stats_invalid"] | ["tests.test_autorank.TestAutorank::test_autorank_absoluterope", "tests.test_autorank.TestAutorank::test_autorank_force_effect_size", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_multiple", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_two", "tests.test_autorank.... | ["tests.test_autorank.TestAutorank::test_autorank_nonnormal_heteroscedactic", "tests.test_autorank.TestAutorank::test_autorank_nonnormal_heteroscedactic_no_difference", "tests.test_autorank.TestAutorank::test_autorank_nonnormal_homoscedactic", "tests.test_autorank.TestAutorank::test_autorank_nonnormal_homoscedactic_no_... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
simonw__git-history-42 | simonw/git-history | 45e14668940b83a964455b1aa6d861b1cdb389e8 | diff --git a/git_history/cli.py b/git_history/cli.py
index 396b282..973f7f1 100644
--- a/git_history/cli.py
+++ b/git_history/cli.py
@@ -535,7 +535,7 @@ def get_versions_and_hashes(db, namespace):
{namespace}_version._item_full_hash as item_full_hash
from
{namespace}_version
- ... | python | diff --git a/tests/test_git_history.py b/tests/test_git_history.py
index eda0984..5d6979c 100644
--- a/tests/test_git_history.py
+++ b/tests/test_git_history.py
@@ -389,7 +389,8 @@ CREATE INDEX [idx_{namespace}_version__item]
]
-def test_file_with_id_resume(repo, tmpdir):
+@pytest.mark.parametrize("namespace",... | 2021-12-07T18:14:57+00:00Z | `--namespace` bug when running a second time
Spotted here: https://github.com/simonw/git-history/runs/4447682089?check_suite_focus=true
```
File "/home/runner/work/git-history/git-history/git_history/cli.py", line 544, in get_versions_and_hashes
for row in db.query(sql):
File "/opt/hostedtoolcache/Python/3... | 0.0.1-alpha | 2fc257311f2212545d970f0b02654e0e71dbe228 | ["tests.test_git_history::test_file_with_id_resume[custom]"] | ["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
mwaskom__seaborn-3071 | mwaskom/seaborn | 1d70f58faba96a02c9fe403da4d61860de10a3ca | diff --git a/doc/whatsnew/v0.12.1.rst b/doc/whatsnew/v0.12.1.rst
index f655539..5db8f86 100644
--- a/doc/whatsnew/v0.12.1.rst
+++ b/doc/whatsnew/v0.12.1.rst
@@ -22,6 +22,8 @@ v0.12.1 (Unreleased)
- |Fix| Made :class:`objects.PolyFit` robust to missing data (:pr:`3010`).
+- |Fix| Fixed a bug in :class:`objects.Plot... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index e855aef..85ab6d8 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -683,6 +683,14 @@ class TestPlotting:
Plot().plot()
assert m.n_splits == 0
+ def test_no_orient_variance(self):
+
+ x, y = [0, 0],... | 2022-10-15T01:41:27+00:00Z | Plot is empty (or raises) with no variance on the orientation axis
This simple plot raises:
```python
so.Plot([0, 0], [1, 2]).add(so.Dot())
```
<details> <summary>Traceback</summary>
```python-traceback
---------------------------------------------------------------------------
ValueError ... | Root cause here is from the `Scale._spacing` operation, which is `nan`, and then those nan rows get dropped. `width` needs a default; there's not a super obvious choice, but this section of the code is a little janky anyway so let's move forward with `1` as the default. | 0.0.1-alpha | a02b6bf97bc3c66060f78bcc6704627d5638632d | ["tests._core.test_plot.TestPlotting::test_no_orient_variance", "tests._marks.test_line.TestLines::test_single_orient_value"] | ["tests.test_algorithms::test_bootstrap", "tests.test_algorithms::test_bootstrap_length", "tests.test_algorithms::test_bootstrap_range", "tests.test_algorithms::test_bootstrap_multiarg", "tests.test_algorithms::test_bootstrap_axis", "tests.test_algorithms::test_bootstrap_seed", "tests.test_algorithms::test_bootstrap_ol... | ["tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats_with_missing_data", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats_wit... | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
more-itertools__more-itertools-821 | more-itertools/more-itertools | 77702f89d3ce5468b12c6960dd8a6747e98d56f5 | diff --git a/more_itertools/recipes.py b/more_itertools/recipes.py
index 147346c..01bfc92 100644
--- a/more_itertools/recipes.py
+++ b/more_itertools/recipes.py
@@ -199,7 +199,7 @@ def nth(iterable, n, default=None):
return next(islice(iterable, n, None), default)
-def all_equal(iterable):
+def all_equal(itera... | python | diff --git a/tests/test_recipes.py b/tests/test_recipes.py
index 92a5722..a127703 100644
--- a/tests/test_recipes.py
+++ b/tests/test_recipes.py
@@ -134,33 +134,30 @@ class NthTests(TestCase):
class AllEqualTests(TestCase):
- """Tests for ``all_equal()``"""
-
def test_true(self):
- """Everything is ... | 2024-03-21T14:38:15+00:00Z | Update all_equal() to include a key function
The itertool recipe docs have recently extended `all_equal()` to include a key function:
```
def all_equal(iterable, key=None):
"Returns True if all the elements are equal to each other."
return len(take(2, groupby(iterable, key))) <= 1
```
The more-itert... | @rhettinger The current way we check for multiple groups:
```python
g = groupby(iterable)
return next(g, True) and not next(g, False)
```
Is extremely performant and since this is used in multiple places in the code base I wouldn't change the underlying code other than to add the key function.
I have just finis... | 0.0.1-alpha | 382751c46363a377273d961686568bb3de8be32f | ["tests.test_recipes.AllEqualTests::test_key"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mikeckennedy__fastapi-chameleon-3 | mikeckennedy/fastapi-chameleon | 82973fd7fce470f72b3b59f8caff1faec179f15e | diff --git a/fastapi_chameleon/__init__.py b/fastapi_chameleon/__init__.py
index 37b4847..efc092f 100644
--- a/fastapi_chameleon/__init__.py
+++ b/fastapi_chameleon/__init__.py
@@ -1,6 +1,6 @@
"""fastapi-chameleon - Adds integration of the Chameleon template language to FastAPI."""
-__version__ = '0.1.4'
+__version_... | python | diff --git a/tests/templates/test_render/details.html b/tests/templates/test_render/details.html
new file mode 100644
index 0000000..a65263f
--- /dev/null
+++ b/tests/templates/test_render/details.html
@@ -0,0 +1,12 @@
+<html>
+ <body>
+ <h1>Hello default ${world}!</h1>
+ <table>
+ <tr tal:repeat="row 'appl... | 2021-01-04T01:53:07+00:00Z | Allow for both .pt and .html extensions on template file defaults
Currently, we guess at the template name if not supplied:
`templates/module_name/view_method_name.pt`
Let's also look for `templates/module_name/view_method_name.html` and use whichever one we find.
| 0.0.1-alpha | 93814c0a55721dff9c79716945741b0926de3722 | ["tests.test_render::test_default_template_name_html"] | ["tests.test_init::test_can_call_init_with_good_path", "tests.test_init::test_cannot_call_init_with_bad_path", "tests.test_render::test_cannot_decorate_missing_template", "tests.test_render::test_requires_template_for_default_name", "tests.test_render::test_default_template_name_pt", "tests.test_render::test_can_decora... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
ojarva__python-sshpubkeys-70 | ojarva/python-sshpubkeys | 14bd4839d7d41c9b65f2ba8b4b2fbd57b17c699b | diff --git a/sshpubkeys/keys.py b/sshpubkeys/keys.py
index 7664cf2..2d603ce 100644
--- a/sshpubkeys/keys.py
+++ b/sshpubkeys/keys.py
@@ -19,6 +19,7 @@ from .exceptions import (InvalidKeyError, InvalidKeyLengthError, InvalidOptionNa
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.prim... | python | diff --git a/tests/invalid_keys.py b/tests/invalid_keys.py
index f2e8d6b..7e9f8c3 100644
--- a/tests/invalid_keys.py
+++ b/tests/invalid_keys.py
@@ -82,4 +82,12 @@ keys = [
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQbdtLTII+vP98NSDlK2LXxVARELRYO0NODFYQ0imYxsmBMB7BrfljFppLJyjU6cziOT6YFj6rVd8MmCogdCR32u63EV11uT6RCFf... | 2021-01-24T10:32:26+00:00Z | openssh security key public key formats
openssh 8.2 introduced two new key formats for use with U2F/FIDO2 security keys. It would be quite nice to have support for these key types in sshpubkeys.
Their formats are described in [PROTOCOL.u2f](https://anongit.mindrot.org/openssh.git/tree/PROTOCOL.u2f):
```
The for... | These have been merged. I'll wait a bit if other open PRs will proceed and release a new version. | 0.0.1-alpha | da198e432a1740d66d3650052d919abce030c9e8 | ["tests.TestKeys::test_valid_key_sk-ecdsa-sha2-nistp256_1_mode_loose", "tests.TestKeys::test_valid_key_sk-ecdsa-sha2-nistp256_1_mode_strict", "tests.TestKeys::test_valid_key_sk-ssh-ed25519_1_mode_loose", "tests.TestKeys::test_valid_key_sk-ssh-ed25519_1_mode_strict"] | ["tests.TestKeys::test_invalid_key_512bit_ed25519_mode_loose", "tests.TestKeys::test_invalid_key_512bit_ed25519_mode_strict", "tests.TestKeys::test_invalid_key_broken_rsa_base64_mode_loose", "tests.TestKeys::test_invalid_key_broken_rsa_base64_mode_strict", "tests.TestKeys::test_invalid_key_dsa_2048_mode_strict", "tests... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
tinytag__tinytag-138 | tinytag/tinytag | 264dd361f04ce0bae39aac61f808325fb265ef17 | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1089d4f..a5bbf08 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -22,7 +22,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dependencies
- run: python -m pip install build... | python | diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py
index 86c9ed4..df903dd 100644
--- a/tinytag/tests/test_all.py
+++ b/tinytag/tests/test_all.py
@@ -1,22 +1,21 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
# tests can be extended using other bigger files that are not going to be
# checked into git,... | 2024-02-27T23:12:31+00:00Z | Make use of code linting
**Describe the solution you'd like**
Code linting would help keep the code base free from common bugs and style violations, and make it easier to include the tinytag.py file in other projects.
**Additional context**
A combination of flake8 and Pylint has given me good results in my own P... | 2.0.0 would be a good opportunity to add Pylint, since we're removing support for Python 2. | 0.0.1-alpha | 0aa73002d90c106e325741cc972adebf889b6544 | ["tinytag.tests.test_all::test_detect_magic_headers[samples/detect_mp3_id3.x-_ID3]", "tinytag.tests.test_all::test_detect_magic_headers[samples/detect_mp3_fffb.x-_ID3]", "tinytag.tests.test_all::test_detect_magic_headers[samples/detect_ogg_flac.x-_Ogg]", "tinytag.tests.test_all::test_detect_magic_headers[samples/detect... | ["tinytag.tests.test_all::test_file_reading[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header_2channel.mp3-expected3]... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
typeddjango__pytest-mypy-plugins-118 | typeddjango/pytest-mypy-plugins | 318b0123936e2bbc525440b4006ff7d51a37ceba | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7508e2f..605dab1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,13 @@
# Version history
-## WIP
+## 2.0.0
+
+### Features
+
+- Use `jinja2` instead of `chevron` for templating
+- Allow parametrizing `mypy_config` field in tests
+- Bump minimal `mypy` and `pyt... | python | diff --git a/pytest_mypy_plugins/tests/test-parametrized.yml b/pytest_mypy_plugins/tests/test-parametrized.yml
index d69729a..bda8eaa 100644
--- a/pytest_mypy_plugins/tests/test-parametrized.yml
+++ b/pytest_mypy_plugins/tests/test-parametrized.yml
@@ -45,3 +45,16 @@
out: |
main:2: note: Revealed type is "{{ rt... | 2023-06-29T07:13:16+00:00Z | Allow parametrizing `mypy_config`
We have these two tests in `django-stubs`: https://github.com/typeddjango/django-stubs/blob/08a11d7f863aac88df0635550983033da4aff5ec/tests/typecheck/models/test_extra_methods.yml#L22-L66
The only different thing between them is: `disallow_any_generics = true` vs `disallow_any_gener... | 0.0.1-alpha | 24f50c40514be1e68287ee9ddc97d2bdba0d397e | ["pytest_mypy_plugins.tests.test-parametrized.yml::with_mypy_config[allow_any=true]", "pytest_mypy_plugins.tests.test-parametrized.yml::with_mypy_config[allow_any=false]"] | ["pytest_mypy_plugins.tests.test-extension.yml::reveal_type_extension_is_loaded", "pytest_mypy_plugins.tests.test-parametrized.yml::only_main[a=1,revealed_type=builtins.int]", "pytest_mypy_plugins.tests.test-parametrized.yml::only_main[a=1.0,revealed_type=builtins.float]", "pytest_mypy_plugins.tests.test-parametrized.y... | ["pytest_mypy_plugins.tests.test-simple-cases.yml::custom_mypy_config_strict_optional_true_set"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
ramonhagenaars__jsons-98 | ramonhagenaars/jsons | 15dce3def066a978ed410b36e2b1739adce73787 | diff --git a/jsons/deserializers/default_tuple.py b/jsons/deserializers/default_tuple.py
index 176ab05..25a11b0 100644
--- a/jsons/deserializers/default_tuple.py
+++ b/jsons/deserializers/default_tuple.py
@@ -1,4 +1,4 @@
-from typing import Union
+from typing import Callable, Optional, Union
from typish import get_arg... | python | diff --git a/tests/test_tuple.py b/tests/test_tuple.py
index 51ccc2e..2550984 100644
--- a/tests/test_tuple.py
+++ b/tests/test_tuple.py
@@ -119,6 +119,22 @@ class TestTuple(TestCase):
self.assertEqual('100', loaded_from_dict.x)
self.assertEqual(200, loaded_from_dict.y)
+ def test_load_namedtuple... | 2020-07-03T20:30:21+00:00Z | Named Tuple Deserialiser doesn't accept or call key_transformer
When deserialising to a namedtuple the key_transformer is ignored.
https://github.com/ramonhagenaars/jsons/blob/e335fd5ebc465b523cf153675ad2eeafbc37b5fb/jsons/deserializers/default_tuple.py#L34-L37
```
class A(NamedTuple):
some_thing: str
j... | 0.0.1-alpha | f1f3e609f7dcd8480403b5e51ba15b8f8792a05c | ["tests.test_tuple.TestTuple::test_load_namedtuple_with_key_transformer"] | ["tests.test_case_transformer.TestCaseTransformer::test_case_transformers", "tests.test_case_transformer.TestCaseTransformer::test_serialize_and_deserialize_with_case_transformer", "tests.test_chain_map.TestChainMap::test_dump_chain_map", "tests.test_chain_map.TestChainMap::test_load_chain_map", "tests.test_common_impl... | ["tests.test_list.TestList::test_dump_list_strict_no_cls", "tests.test_specific_versions.TestSpecificVersions::test_dump_dataclass_with_optional", "tests.test_specific_versions.TestSpecificVersions::test_namedtuple_with_optional", "tests.test_union.TestUnion::test_dump_union", "tests.test_union.TestUnion::test_load_uni... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
scanny__python-pptx-223 | scanny/python-pptx | f17fb9fbe89d2957e4a31a5dfd4878d683591086 | diff --git a/pptx/oxml/shapes/picture.py b/pptx/oxml/shapes/picture.py
index e4bbe6d..3990438 100644
--- a/pptx/oxml/shapes/picture.py
+++ b/pptx/oxml/shapes/picture.py
@@ -2,18 +2,20 @@
"""lxml custom element classes for picture-related XML elements."""
-from __future__ import absolute_import, division, print_fun... | python | diff --git a/tests/oxml/shapes/test_picture.py b/tests/oxml/shapes/test_picture.py
index cddd0d9..9f16599 100644
--- a/tests/oxml/shapes/test_picture.py
+++ b/tests/oxml/shapes/test_picture.py
@@ -1,10 +1,6 @@
# encoding: utf-8
-"""
-Test suite for pptx.oxml.shapes.picture module.
-"""
-
-from __future__ import abso... | 2021-09-14T06:22:18+00:00Z | Error with image names with special characters
Returns error:
`File "src/lxml/parser.pxi", line 1819, in lxml.etree._parseMemoryDocument (src\lxml\lxml.etree.c:116494)
File "src/lxml/parser.pxi", line 1700, in lxml.etree._parseDoc (src\lxml\lxml.etree.c:115040)
File "src/lxml/parser.pxi", line 1040, in lxml.etree.... | You'll need to provide more details, in particular an example of an offending file name.
I ran into a very similar issue when using slide.shapes.add_picture() with an image file that had an ampersand (&) in it.
Adding image "Amrat - Medical & General Stores 2.jpeg"
File "/home/redacted/anaconda3/envs/ag/lib/pyth... | 0.0.1-alpha | 127d73ab29a5729cc026bc4426e7fb7abaf5d647 | ["tests.oxml.shapes.test_picture.DescribeCT_Picture::it_can_create_a_new_pic_element[kittens.jpg-kittens.jpg]", "tests.oxml.shapes.test_picture.DescribeCT_Picture::it_can_create_a_new_pic_element[bits&bobs.png-bits&bobs.png]", "tests.oxml.shapes.test_picture.DescribeCT_Picture::it_can_create_a_new_pic_element[img&.... | ["tests.chart.test_axis.Describe_BaseAxis::it_provides_access_to_its_title[c:catAx]", "tests.chart.test_axis.Describe_BaseAxis::it_provides_access_to_its_title[c:dateAx]", "tests.chart.test_axis.Describe_BaseAxis::it_provides_access_to_its_title[c:valAx]", "tests.chart.test_axis.Describe_BaseAxis::it_provides_access_to... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-465 | more-itertools/more-itertools | d62d233b1fefaef4effc7450a87fcace2c95fdbc | diff --git a/README.rst b/README.rst
index c98ef03..6b99be7 100644
--- a/README.rst
+++ b/README.rst
@@ -69,6 +69,7 @@ Python iterables.
| | `roundrobin <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.roundrobin>`_, ... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 676cca6..2eea0c6 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -5228,3 +5228,71 @@ class GrayProductTests(TestCase):
self.assertEqual(
sorted(product(*iters)), sorted(mi.gray_product(*iters))
)
+
+
+class PartialProd... | 2023-02-28T12:31:32+00:00Z | [Feature] Idea for a new iterator
Hi there,
I would like to propose a new iterator (I do not know how to name it ;-) ) it should work this way
new_iter_tool([1, 2, 3, 4, 5], [10, 20, 30], [100, 200, 300, 400])
result:
(1, 10, 100)
(2, 10, 100)
(3, 10, 100)
(4, 10, 100)
(5, 10, 100)
(5, 20, 100)
(5, 30, 100... | Hi,
in the meantime I realized, that the thing I want is zip_longest with fill_last or fill_first,
BR,
George
Thanks for the suggestion.
> zip_longest with fill_last or fill_first
In your example, what would these parameters be?
Hi,
standard's zip_longest fills the gap with a value that is given at funct... | 0.0.1-alpha | 3537df85fdca58daa7d06645c544928029b4d2fb | ["tests.test_more.PartialProductTests::test_basic", "tests.test_more.PartialProductTests::test_empty", "tests.test_more.PartialProductTests::test_one_iterator", "tests.test_more.PartialProductTests::test_two_iterators", "tests.test_more.PartialProductTests::test_uneven_length_lists"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tldr-pages__tldr-python-client-156 | tldr-pages/tldr-python-client | ed5b912b6a2713891007cbdd9413b83af53785c2 | diff --git a/README.md b/README.md
index c85e305..31fa5b0 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,7 @@ export TLDR_COLOR_DESCRIPTION="white"
export TLDR_COLOR_EXAMPLE="green"
export TLDR_COLOR_COMMAND="red"
export TLDR_COLOR_PARAMETER="white"
+export TLDR_LANGUAGE="es"
export TLDR_CACHE_ENABLED=1
expor... | python | diff --git a/tests/test_tldr.py b/tests/test_tldr.py
index cd07622..0f4f914 100644
--- a/tests/test_tldr.py
+++ b/tests/test_tldr.py
@@ -61,6 +61,23 @@ def test_get_default_language_unset(monkeypatch):
assert tldr.get_default_language() is None
+@pytest.mark.parametrize("tldr_language, language, lang, expected... | 2021-05-11T17:19:29+00:00Z | Feature Proposal: Custom default language
Hi, I just discovered your project and think this would be a useful feature:
A `TLDR_LANGUAGE` environment variable that sets the default language for tldr. This way, users who want tldr to use a different language by default than the system language can set it permanently in... | I have no qualms with adding this. I think it would follow the `LANG` specification (e.g. a singular 4 character language code to use) and that the language look-up would be to prepend `TLDR_LANGUAGE` environment variable to the language list look-up that is derived as part of the [client specification](https://github.... | 0.0.1-alpha | c0ef6239ac225d487a844c3e70c4a172a414d900 | ["tests.test_tldr::test_tldr_language[en-None-fr_FR-expected0]", "tests.test_tldr::test_tldr_language[de-ja_JA:cz_CZ-cz_CZ-expected1]", "tests.test_tldr::test_tldr_language[it-None-C-expected2]"] | ["tests.test_tldr::test_error_message", "tests.test_tldr::test_get_language_code[en_US.UTF-8-en]", "tests.test_tldr::test_get_language_code[en_US-en]", "tests.test_tldr::test_get_language_code[en-en]", "tests.test_tldr::test_get_language_code[pt_BR-pt_BR]", "tests.test_tldr::test_get_language_code[pt_PT-pt_PT]", "tests... | ["tests.test_tldr::test_whole_page"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
vinitkumar__json2xml-137 | vinitkumar/json2xml | 75c34c5141333a2c054eec6cd38433b1cccb7f6f | diff --git a/.gitignore b/.gitignore
index 81c46c2..95c0bea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,5 @@ dist/*
.eggs
.DS_Store
venv
+.vscode
+tests/*.ipynb
diff --git a/json2xml/dicttoxml.py b/json2xml/dicttoxml.py
index 7ff4c89..85b8cd1 100755
--- a/json2xml/dicttoxml.py
+++ b/json2xml/dicttoxml.py
@@ ... | python | diff --git a/tests/test_json2xml.py b/tests/test_json2xml.py
index ada0194..be17abd 100644
--- a/tests/test_json2xml.py
+++ b/tests/test_json2xml.py
@@ -141,12 +141,12 @@ class TestJson2xml(unittest.TestCase):
'results': {
'user': [{
'name': 'Ezequiel', 'ag... | 2022-05-19T20:17:46+00:00Z | Wrap list items in their parent element
**Is your feature request related to a problem? Please describe.**
No
**Describe the solution you'd like**
**Current behavior**
```python
from json2xml import dicttoxml
dict = {"Bike": [
{'frame_color': 'red'},
{'frame_color': 'green'}
]}
programrun = 'progra... | Within the code I have found the following
@vinitkumar Did you had plans with the parentIsList parameters? I could not figure it out directly.
```python
dict2xml_str()
-----
if item.get("@flat", False) or (parentIsList and not item_wrap):
return subtree
attrstring = make_attrstring(attr)
re... | 0.0.1-alpha | f91ed39045c3ae17bc9546d0145d95c93ac4614b | ["tests.test_json2xml.TestJson2xml::test_dict2xml_str_list_header", "tests.test_json2xml.TestJson2xml::test_dict2xml_with_xmlns_namespaces", "tests.test_json2xml.TestJson2xml::test_list_headers", "tests.test_json2xml.TestJson2xml::test_list_headers_nested", "tests.test_json2xml.TestJson2xml::test_list_headers_root", "t... | ["tests.test_json2xml.TestJson2xml::test_attrs", "tests.test_json2xml.TestJson2xml::test_bad_data", "tests.test_json2xml.TestJson2xml::test_custom_wrapper_and_indent", "tests.test_json2xml.TestJson2xml::test_dict2xml_no_root", "tests.test_json2xml.TestJson2xml::test_dict2xml_omit_list", "tests.test_json2xml.TestJson2xm... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
pytest-dev__pytest-bdd-397 | pytest-dev/pytest-bdd | 2a402c6062b1dcdda91701a08c3ac54747072177 | diff --git a/CHANGES.rst b/CHANGES.rst
index 7558181..400f2c5 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -6,6 +6,7 @@ Unreleased
- Dropped support for python 3.8. Supported python versions: 3.9, 3.10, 3.11, 3.12, 3.13.
- Text after the `#` character is no longer stripped from the Scenario and Feature name.
- Gher... | python | diff --git a/tests/feature/test_cucumber_json.py b/tests/feature/test_cucumber_json.py
index d3897b7..817c767 100644
--- a/tests/feature/test_cucumber_json.py
+++ b/tests/feature/test_cucumber_json.py
@@ -225,6 +225,7 @@ def test_step_trace(pytester):
],
"id": os.path.join("test_step_trace0", ... | 2024-10-25T20:24:51+00:00Z | Gherkin Localization Issue ?
Hello,
I've tried the following:
**login.feature**
```
#language: pt
#encoding: UTF-8
Funcionalidade: Login no Programa
Cenário: O usuário ainda não é cadastrado
Dado que o usuário esteja na tela de login
Quando ele clicar no botão de Criar Conta
E... | Currently pytest-bdd is not localized, sorry for that.
Where in the pytest-bdd code someone must look for to try to implement localization ?
The parsing logic is not completely straight forward. I started reimplementing the parser with the idea to make many things (including localization) easier, but I didn't manage ... | 0.0.1-alpha | dcafea0e01fef639fa55b748d88960d231296eaf | ["tests.parser.test_parser::test_parser"] | ["tests.feature.test_feature_base_dir::test_feature_path_not_found[.]", "tests.feature.test_feature_base_dir::test_feature_path_not_found[/does/not/exist/]", "tests.feature.test_feature_base_dir::test_feature_path_ok", "tests.feature.test_feature_base_dir::test_feature_path_ok_running_outside_rootdir", "tests.feature.t... | ["tests.args.cfparse.test_args::test_every_step_takes_param_with_the_same_name", "tests.args.cfparse.test_args::test_argument_in_when", "tests.args.parse.test_args::test_every_steps_takes_param_with_the_same_name", "tests.args.parse.test_args::test_argument_in_when_step_1", "tests.args.regex.test_args::test_every_steps... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
meeb__whoisit-11 | meeb/whoisit | dee063f58a495ae5c4f110b8c623e5bd1ba9d4fc | diff --git a/whoisit/__init__.py b/whoisit/__init__.py
index 1d06f9c..c898196 100644
--- a/whoisit/__init__.py
+++ b/whoisit/__init__.py
@@ -37,7 +37,7 @@ def asn(as_number, rir=None, raw=False, allow_insecure_ssl=False, session=None):
query_type='asn', query_value=as_number, rir=rir)
q = Query(session, m... | python | diff --git a/tests/data_rdap_response_ip_v4_3.json b/tests/data_rdap_response_ip_v4_3.json
new file mode 100644
index 0000000..0712beb
--- /dev/null
+++ b/tests/data_rdap_response_ip_v4_3.json
@@ -0,0 +1,532 @@
+{
+ "rdapConformance": [
+ "nro_rdap_profile_0",
+ "rdap_level_0",
+ "cidr0",
+ "arin... | 2022-05-05T09:53:14+00:00Z | IP address lookup returns only the first CIDR on the list
Steps to reproduce
Make a query for ip 13.104.0.0.
```
>>> import whoisit
>>> from pprint import pprint
>>> whoisit.bootstrap()
True
>>> results = whoisit.ip('13.104.0.0')
>>> print(results['network'])
13.64.0.0/11
```
**Current behavior**
T... | Thanks for the report. `whoisit` was previously returning just the first CIDR in the list if multiple were returned, I'd not seen results where this wasn't valid until your example. As of the just pushed v2.5.3 this now will iterate the CIDRs and attempt to match the queried IP to check it is inside the CIDR. If the IP... | 0.0.1-alpha | 283b7a9d7429d8065213ba2cbd58972e804c3ebc | ["tests.test_parser.ParserTestCase::test_autnum_response_parser", "tests.test_parser.ParserTestCase::test_domain_response_parser", "tests.test_parser.ParserTestCase::test_entity_response_parser", "tests.test_parser.ParserTestCase::test_ip_response_parser", "tests.test_parser.ParserTestCase::test_parser_interface"] | ["tests.test_query.QueryTestCase::test_adding_query_url_params", "tests.test_query.QueryTestCase::test_build", "tests.test_query.QueryTestCase::test_building_override_request", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_asn_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_dns_parser", "test... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
sgl-project__genai-bench-30 | sgl-project/genai-bench | 73b99d4874b27267e197e73cb680114041824e70 | diff --git a/genai_bench/sampling/text.py b/genai_bench/sampling/text.py
index d83cf59..d99ead1 100644
--- a/genai_bench/sampling/text.py
+++ b/genai_bench/sampling/text.py
@@ -40,7 +40,7 @@ class TextSampler(Sampler):
self.use_scenario = use_scenario
# Set ignore_eos based on scenario usage
- ... | python | diff --git a/tests/sampling/test_text.py b/tests/sampling/test_text.py
index a9834d0..9b64893 100644
--- a/tests/sampling/test_text.py
+++ b/tests/sampling/test_text.py
@@ -61,6 +61,7 @@ class TestTextSampler(unittest.TestCase):
def test_sample_chat_request(self):
self.tokenizer.encode.return_value = [1... | 2025-07-31T17:48:30+00:00Z | [BUG] Truncating Line by Characters not Tokens
Regarding PR here https://github.com/sgl-project/genai-bench/pull/20
Obviously we are truncating the line by number of tokens instead of using characters.
This is OK for small dataset like Sonnet, with few words for each line. But if data contains only one line or lots ... | Reference of how vLLM process sonnet dataset.
https://github.com/vllm-project/vllm/blob/main/benchmarks/benchmark_dataset.py#L540
Average number of tokens per line is calculated during initiation and then sampling is based on token level.
Is that OK to just use the char to token ratio calculated from sonnet dataset a... | 0.0.1-alpha | c64eb22cd968c82a2deb406b6c3d1eb4e3810cc8 | ["tests.sampling.test_text.TestTextSampler::test_sample_embedding_request", "tests.sampling.test_text.TestTextSampler::test_sample_rerank_request", "tests.sampling.test_text.TestTextSampler::test_sample_text_exact_token_count", "tests.sampling.test_text.TestTextSampler::test_sample_text_truncation"] | ["tests.analysis.test_experiment_loader::test_load_metrics_from_experiments", "tests.analysis.test_experiment_loader::test_load_one_experiment", "tests.analysis.test_experiment_loader::test_load_one_experiment_with_missing_concurrency_levels", "tests.analysis.test_experiment_loader::test_load_experiment_metadata", "tes... | ["tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_init", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_authenticate_with_credentials", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_authenticate_with_profile", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_upload_file", "tests... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
probabilists__zuko-64 | probabilists/zuko | 6fd97cbd5d3a394be01a90ce094cb2343383a7f5 | diff --git a/zuko/flows/autoregressive.py b/zuko/flows/autoregressive.py
index 947b8d0..6b162fd 100644
--- a/zuko/flows/autoregressive.py
+++ b/zuko/flows/autoregressive.py
@@ -40,7 +40,9 @@ class MaskedAutoregressiveTransform(LazyTransform):
order: A feature ordering. If :py:`None`, use :py:`range(features)` ... | python | diff --git a/tests/test_flows.py b/tests/test_flows.py
index 306193a..04fe959 100644
--- a/tests/test_flows.py
+++ b/tests/test_flows.py
@@ -153,3 +153,42 @@ def test_adjacency_matrix():
with pytest.raises(AssertionError, match="The graph contains cycles."):
t = T(5, adjacency=adjacency_invalid)
+
+
+de... | 2025-04-13T15:09:12+00:00Z | Add support for custom conditional adjacency
### Description
Zuko currently supports structured dependencies via an adjacency matrix in MaskedAutoregressiveTransform ([#54](https://github.com/probabilists/zuko/pull/54)). This functionality is valuable for leveraging structural inductive biases.
However, the context a... | Hi @aalmodovares 👋 We will gladly accept a PR for this! | 0.0.1-alpha | 313481e0873b4c98636314d6c3feaea30284b28a | ["tests.test_flows::test_context_adjacency_matrix"] | ["tests.test_distributions::test_distributions", "tests.test_flows::test_triangular_transforms", "tests.test_flows::test_adjacency_matrix", "tests.test_mixtures::test_gmm_shapes[None-False-full-2-0-3-batch0]", "tests.test_mixtures::test_gmm_shapes[None-False-full-2-0-3-batch1]", "tests.test_mixtures::test_gmm_shapes[No... | ["tests.test_flows::test_flows[NICE]", "tests.test_flows::test_flows[MAF]", "tests.test_flows::test_flows[NSF]", "tests.test_flows::test_flows[SOSPF]", "tests.test_flows::test_flows[NAF]", "tests.test_flows::test_flows[UNAF]", "tests.test_flows::test_flows[CNF]", "tests.test_flows::test_flows[GF]", "tests.test_flows::t... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
upb-lea__gym-electric-motor-116 | upb-lea/gym-electric-motor | 252b57943fe77c7c98fbeaa8651fce64b23be2ee | diff --git a/gym_electric_motor/core.py b/gym_electric_motor/core.py
index 94ad9cd..30389ae 100644
--- a/gym_electric_motor/core.py
+++ b/gym_electric_motor/core.py
@@ -214,7 +214,7 @@ class ElectricMotorEnvironment(gym.core.Env):
self.state_filter = [self._physical_system.state_names.index(s) for s in state_f... | python | diff --git a/tests/conf.py b/tests/conf.py
index 30f20d1..2a4862a 100644
--- a/tests/conf.py
+++ b/tests/conf.py
@@ -15,7 +15,7 @@ series_motor_parameter = {'motor_parameter': {'r_a': 3.78, 'r_e': 35, 'l_a': 6.3
'nominal_values': {'omega': 370, 'torque': 40, 'i': 50, 'u': 430},
... | 2021-11-03T17:32:31+00:00Z | Investigation of floating type precision
When running the gym-environments, currently gym throws the following warning regarding the precision of the observation and action space:

I have looked for the o... | 0.0.1-alpha | 819b33e04fa197214dd531101a80366baa0afa30 | ["tests.test_core.TestElectricMotorEnvironment::test_reset", "tests.test_physical_systems.test_converters.TestContFourQuadrantConverter::test_set_action"] | ["tests.test_callbacks.TestRampingLimitMargin::test_update", "tests.test_callbacks.TestRampingLimitMargin::test_initial_values", "tests.test_callbacks.TestRampingLimitMargin::test_update_switched", "tests.test_callbacks.TestRampingLimitMargin::test_right_reference", "tests.test_constraints.test_limit_constraint.TestLim... | ["tests.integration_tests.test_ac_environment_execution::test_execution[AbcCont-TC-PMSM-v0-100]", "tests.integration_tests.test_ac_environment_execution::test_execution[AbcCont-TC-SynRM-v0-100]", "tests.integration_tests.test_ac_environment_execution::test_execution[AbcCont-TC-SCIM-v0-100]", "tests.integration_tests.te... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
sherbold__autorank-16 | sherbold/autorank | ed1327b78df020dd5370fbdf09d966075e813687 | diff --git a/autorank/autorank.py b/autorank/autorank.py
index 9b3d73b..4ef7986 100644
--- a/autorank/autorank.py
+++ b/autorank/autorank.py
@@ -255,6 +255,10 @@ def autorank(data, alpha=0.05, verbose=False, order='descending', approach='freq
if force_mode is not None and approach=='frequentist':
print("T... | python | diff --git a/tests/test_autorank.py b/tests/test_autorank.py
index e519545..b0b5e33 100644
--- a/tests/test_autorank.py
+++ b/tests/test_autorank.py
@@ -822,4 +822,27 @@ class TestAutorank(unittest.TestCase):
res = autorank(data, alpha=0.05, verbose=False)
latex_table(res)
- latex_table(res)
... | 2024-09-25T08:52:19+00:00Z | Error when using Bartlett's test for homoscedacity of normally distributed data
When I run
```python
autorank(df, alpha=0.05, verbose=True)
```
On the following dataframe:
| in | F1 | F2 | F3 |
|:-----------------|----------:|-------------:|-------------:|
| 1 | -0.108493 | -0.182... | Thanks for the bug report! I am currently swamped with work and will look at this in more detail in a couple of weeks.
Hi @hadarshavit
I tried to reproduce this, but failed. This is the code I used:
```
data = pd.DataFrame().from_dict({
'in': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13],
... | 0.0.1-alpha | 6a3f5494b6618f3756e678d648ac61ad3b1ec76c | ["tests.test_autorank.TestAutorank::test_multindex", "tests.test_autorank.TestAutorank::test_named_index"] | ["tests.test_autorank.TestAutorank::test_autorank_absoluterope", "tests.test_autorank.TestAutorank::test_autorank_force_effect_size", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_multiple", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_two", "tests.test_autorank.... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
openscilab__nava-12 | openscilab/nava | c730633c2e02adf57f077b9e356ce1641057d246 | diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml
index 7071aca..dfb74ff 100644
--- a/.github/workflows/linux_test.yml
+++ b/.github/workflows/linux_test.yml
@@ -13,6 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
+ fail-fast: false
matrix:
os: [ubuntu... | python | diff --git a/test/error_test.py b/test/error_test.py
index 3b68bee..ed69740 100644
--- a/test/error_test.py
+++ b/test/error_test.py
@@ -18,4 +18,7 @@ nava.errors.NavaBaseError: Given sound id doesn't exist.
Traceback (most recent call last):
...
nava.errors.NavaBaseError: `loop` can not be set True when `async_... | 2024-05-24T04:00:55+00:00Z | CLI
#### Description
Add CLI options
```shell
nava alarm.wav
```
```shell
nava --file="alarm.wav"
```
| FWIW, I created a small command line interface after reading this issue :)
https://github.com/lewoudar/son
> FWIW, I created a small command line interface after reading this issue :) https://github.com/lewoudar/son
Hey Kevin, that's so cool. Thanks for sharing your package with us. I saw Pomodoro action in your pr... | 0.0.1-alpha | 3c26c92612de820f022174a4aece9d2025cfcdb5 | ["test.error_test::error_test"] | [] | ["test.function_test::function_test"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
serge-sans-paille__beniget-61 | serge-sans-paille/beniget | f53330b21832537282a49b31274573d473706fb5 | diff --git a/beniget/beniget.py b/beniget/beniget.py
index 0ed773e..a0fa8a3 100644
--- a/beniget/beniget.py
+++ b/beniget/beniget.py
@@ -383,8 +383,10 @@ class DefUseChains(ast.NodeVisitor):
return ""
def unbound_identifier(self, name, node):
- location = self.location(node)
- print("W... | python | diff --git a/tests/test_chains.py b/tests/test_chains.py
index 5c90ead..1e9bdaa 100644
--- a/tests/test_chains.py
+++ b/tests/test_chains.py
@@ -26,10 +26,10 @@ def captured_output():
class TestDefUseChains(TestCase):
def checkChains(self, code, ref, strict=True):
class StrictDefUseChains(beniget.DefUseC... | 2023-08-28T05:02:04+00:00Z | Warlus target should be stored in first non comprehension scope
While looking at https://github.com/gvanrossum/gvanrossum.github.io/blob/main/formal/build.py#L98-L108, I've noticed that beniget does not correctly understands the warlus operator. | Here is a failing test case:
```python
@skipIf(sys.version_info < (3, 8), 'Python 3.8 syntax')
def test_named_expr_comprehension(self):
# Warlus target should be stored in first non comprehension scope
code = ('cities = ["Halifax", "Toronto"]\n'
'if any((witness := city).star... | 0.0.1-alpha | 316384545ae084159e9a11a957bb83897b4b2886 | ["tests.test_chains.TestDefUseChains::test_named_expr_comprehension", "tests.test_chains.TestDefUseChains::test_named_expr_comprehension_invalid"] | ["tests.test_attributes.TestAttributes::test_no_attribute", "tests.test_attributes.TestAttributes::test_non_standard_self", "tests.test_attributes.TestAttributes::test_self_redefinition", "tests.test_attributes.TestAttributes::test_self_redefinition_in_args", "tests.test_attributes.TestAttributes::test_self_redefinitio... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
sepandhaghighi__mycoffee-136 | sepandhaghighi/mycoffee | 5f355f8a0ef766107547889dd1dae1c6a82e0b03 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index eec3218..5ff4429 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
- `YAML` format
+- `ratio` mode
### Changed
- Test system modified
- `README.md` u... | python | diff --git a/test/functions_test.py b/test/functions_test.py
index fe5891a..d3c8f8f 100644
--- a/test/functions_test.py
+++ b/test/functions_test.py
@@ -117,6 +117,92 @@ True
>>> save_test1_object == {'mycoffee_version': MY_COFFEE_VERSION, "mode":"water-to-coffee", 'temperature': {'value':93, 'unit':'C'}, 'method': 'v... | 2025-08-14T19:19:15+00:00Z | [Feature]: `brew-ratio` mode
### Describe the feature you want to add
Currently, `mycoffee` supports `water-to-coffee` and `coffee-to-water` modes. This feature request proposes adding a new mode: `brew-ratio`, which calculates the ratio of coffee to water based on given input values. This will help users quickly det... | 0.0.1-alpha | deadd819127c7987cd34480d6c42fb2117dff443 | ["test.functions_test::functions_test"] | ["test.verified_test::verified_test"] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
movingpandas__movingpandas-481 | movingpandas/movingpandas | e10386c6d579fa7319a7b6a31a145e9f94b7864a | diff --git a/movingpandas/trajectory_splitter.py b/movingpandas/trajectory_splitter.py
index fb727d1..8fc9a21 100644
--- a/movingpandas/trajectory_splitter.py
+++ b/movingpandas/trajectory_splitter.py
@@ -382,12 +382,13 @@ class ValueChangeSplitter(TrajectorySplitter):
df = df.sort_index(ascending=True... | python | diff --git a/movingpandas/tests/test_trajectory_splitter.py b/movingpandas/tests/test_trajectory_splitter.py
index 54d0575..505723a 100644
--- a/movingpandas/tests/test_trajectory_splitter.py
+++ b/movingpandas/tests/test_trajectory_splitter.py
@@ -482,6 +482,9 @@ class TestTrajectorySplitter:
)
asser... | 2025-07-16T18:01:22+00:00Z | ID suffixes are accumulated in the ValueChangeSplitter
If you have a question, rather than a bug report, please post in the [discussions](https://github.com/movingpandas/movingpandas/discussions).
Otherwise, please check:
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this... | Thanks a lot, Diego! | 0.0.1-alpha | 0e2f538ad7d01eea9c850fc8e4c7afc57a55c603 | ["movingpandas.tests.test_trajectory_splitter.TestTrajectorySplitter::test_split_by_value_change"] | ["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
sepandhaghighi__nafas-142 | sepandhaghighi/nafas | 235a4b6de76663ada7a31cfc5a6850c42bddec44 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4019866..0a37258 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,11 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Ad... | python | diff --git a/test/test.py b/test/test.py
index 46948b7..b983710 100644
--- a/test/test.py
+++ b/test/test.py
@@ -113,6 +113,7 @@ True
14- Balancing (~ 2 minutes)
15- Energizing (~ 2 minutes)
16- Box (~ 2 minutes)
+17- Coherent (~ 8 minutes)
- Choose a level:
<BLANKLINE>
1- Beginner
| 2025-05-30T20:20:52+00:00Z | [Feature]: Coherent Breathing
### Describe the feature you want to add
Support **Coherent Breathing**
1. Beginner:
1. Ratios: [5, 0, 5, 0]
2. Unit: 1
3. Cycle: 30
2. Medium:
1. Ratios: [5, 0, 5, 0]
2. Unit: 1
3. Cycle: 50
3. Advanced:
1. Ratios: [5, 0, 5, 0]
2. Unit: 1
3. Cy... | 0.0.1-alpha | 3d72e63e9d7733f319ccf95843aaeb6e08921d6a | ["test.test::test"] | [] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
ywangd__pybufrkit-23 | ywangd/pybufrkit | edc5c326e6fa4c4f79a78ca20758bad57a400c79 | diff --git a/pybufrkit/dataquery.py b/pybufrkit/dataquery.py
index 212bce1..62c1e4a 100644
--- a/pybufrkit/dataquery.py
+++ b/pybufrkit/dataquery.py
@@ -310,7 +310,10 @@ class QueryResult(object):
return list(self.results.values())
def __iter__(self):
- return iter(self.results.viewitems())
+... | python | diff --git a/tests/test_dataquery.py b/tests/test_dataquery.py
index f494cbd..a9f10c4 100644
--- a/tests/test_dataquery.py
+++ b/tests/test_dataquery.py
@@ -553,3 +553,13 @@ class DataQueryTests(unittest.TestCase):
[[[[12], [10], [8]]], [[[6], [4]]]]
]
]
+
+ def test_iterate_qu... | 2025-03-15T01:26:07+00:00Z | iter(query_result) fails with AttributeError
The `QueryResult` class in the `dataquery` module defines a method `__iter__`. Calling this method unconditionally fails with `AttributeError`, due to calling a historical dict method `viewitems` that existed in Python 2.
To reproduce:
```python
from pybufrkit.decod... | This is now fixed in 40874a3f40e93b115ea3788c4af69b1a4e1c1136
I added you as a co-author for the commit. Thanks for spotting the issue and providing hints to the fix. | 0.0.1-alpha | 40874a3f40e93b115ea3788c4af69b1a4e1c1136 | ["tests.test_dataquery.DataQueryTests::test_iterate_query_result"] | ["tests.test_Benchmark.BenchMarkTests::test", "tests.test_Decoder.DecoderTests::test_decode", "tests.test_Encoder.EncoderTests::test_encode", "tests.test_Encoder_arguments::test_overriding_master_table_version", "tests.test_NodePathParser.NodePathParserTests::test", "tests.test_NodePathParser.NodePathParserTests::test_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
simonw__csv-diff-9 | simonw/csv-diff | 410bc22c876647fd4db8b961f519fca8c46fca52 | diff --git a/README.md b/README.md
index 0801dcb..cefa16a 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,17 @@ The `--key=id` option means that the `id` column should be treated as the unique
The tool will automatically detect if your files are comma- or tab-separated. You can over-ride this automatic detection... | python | diff --git a/tests/test_human_text.py b/tests/test_human_text.py
index 2a7826e..897f1ff 100644
--- a/tests/test_human_text.py
+++ b/tests/test_human_text.py
@@ -21,6 +21,28 @@ def test_row_changed():
)
+def test_row_changed_show_unchanged():
+ diff = compare(
+ load_csv(io.StringIO(ONE), key="id"),
+... | 2020-10-16T00:47:24+00:00Z | Option to also print all fields in changed rows
When visually scanning the output, it would be nice to also have the *un-changed* fields. Often, critical context is provided by those fields. | Good idea. I'll add a `--show-unchanged` option.
Documentation: https://github.com/simonw/csv-diff/commit/873fde4c838ea84fc26ae3820b98b79a80a5d742?short_path=b335630#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Awesome. Works great. I think there's a typo in the documentation. I
believe it s... | 0.0.1-alpha | 873fde4c838ea84fc26ae3820b98b79a80a5d742 | ["tests.test_human_text::test_row_changed_show_unchanged"] | ["tests.test_cli::test_human_cli", "tests.test_cli::test_human_cli_alternative_names", "tests.test_cli::test_human_cli_json", "tests.test_cli::test_tsv_files", "tests.test_cli::test_sniff_format", "tests.test_cli::test_format_overrides_sniff", "tests.test_csv_diff::test_row_changed", "tests.test_csv_diff::test_row_adde... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
microsoft__fabric-cicd-419 | microsoft/fabric-cicd | 28064dcb0a15a3264095cc9ddd60111d44da4763 | diff --git a/docs/how_to/item_types.md b/docs/how_to/item_types.md
index afb7d2c..70e0e15 100644
--- a/docs/how_to/item_types.md
+++ b/docs/how_to/item_types.md
@@ -27,8 +27,9 @@
- **Parameterization:**
- Source/destination items (e.g., Dataflow, Lakehouse, Warehouse) will always reference the original item... | python | diff --git a/tests/test_parameter_utils.py b/tests/test_parameter_utils.py
index b92bb11..86e00ee 100644
--- a/tests/test_parameter_utils.py
+++ b/tests/test_parameter_utils.py
@@ -8,6 +8,7 @@ The tests focused on path handling functions should be compatible with both Wind
import json
import logging
+import re
imp... | 2025-07-30T17:17:15+00:00Z | lookup_referenced_item function fails when trying to access an item from workspace with diff perms
### Library Version
Recent versions
### What is the problem?
The lookup_referenced_item function in _manage_dependencies fails when the source workspace permissions are different than the target workspace. The GET api... | @shirasassoon, let me know if a separate issue is more helpful and I'll create one, but I have another flavor of this same problem. When deploying a Pipeline with a Refresh Dataflow task, the library reaches out to the source dataflow object (before parameterization) and will fail if it does not have access to that Wor... | 0.0.1-alpha | c191a2162da98b9f72a6641a7e4ceb9e34fa03c4 | ["tests.test_parameter_utils.TestParameterUtilities::test_extract_replace_value_default", "tests.test_parameter_utils.TestParameterUtilities::test_extract_replace_value_get_dataflow_name", "tests.test_parameter_utils.TestParameterUtilities::test_extract_item_attribute_valid", "tests.test_parameter_utils.TestParameterUt... | ["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
ramonhagenaars__jsons-160 | ramonhagenaars/jsons | bc187a2274b33e363ff3916135349d306b2d7e44 | diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml
index 5aadfc3..c0ee5c0 100644
--- a/.github/workflows/pythonapp.yml
+++ b/.github/workflows/pythonapp.yml
@@ -17,14 +17,14 @@ jobs:
]
os: [
ubuntu-latest,
-# macOS-latest, FIXME: seems to not work a... | python | diff --git a/tests/test_list.py b/tests/test_list.py
index a5a7286..4dcceb3 100644
--- a/tests/test_list.py
+++ b/tests/test_list.py
@@ -184,3 +184,17 @@ class TestList(TestCase):
self.assertIn('500', warn_msg)
self.assertEqual(999, len(loaded))
+
+ def test_propagation_of_fork_inst(self)... | 2022-05-11T19:02:06+00:00Z | fork_inst not being passed along to element deserializer in default list deserializer
https://github.com/ramonhagenaars/jsons/blob/a5150cdd2704e83fe5f8798822a1c901b54dcb1c/jsons/deserializers/default_list.py#L59
I'm not sure if this is intentional or not.
I've registered my deserializers in a fork_inst, but they... | I was able to fix this on my side by modifying jsons source code. I will open a pull request soon.
Thank you @patrickguenther for tracking this issue down and opening a pull request! This surely is a bug and your PR seems to be the proper fix. 👍 | 0.0.1-alpha | c2733eba73e87dcdd1ae62761db108471b60bfca | ["tests.test_list.TestList::test_propagation_of_fork_inst"] | ["tests.test_decimal.TestDecimal::test_dump_decimal", "tests.test_decimal.TestDecimal::test_load_decimal", "tests.test_various.TestVarious::test_any", "tests.test_various.TestVarious::test_deserialize_none", "tests.test_various.TestVarious::test_dump_load_endless_recursion", "tests.test_various.TestVarious::test_dump_l... | ["tests.test_specific_versions.TestSpecificVersions::test_dump_load_parameterized_collections", "unittest.loader._FailedTest.tests::test_attrs"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
python-distro__distro-161 | python-distro/distro | d93643a066f72b1fea3864d30a407c2ee7ec7b44 | diff --git a/distro.py b/distro.py
index 0611b62..0746e76 100755
--- a/distro.py
+++ b/distro.py
@@ -579,7 +579,8 @@ class LinuxDistribution(object):
include_lsb=True,
os_release_file='',
distro_release_file='',
- include_uname=True):
+ ... | python | diff --git a/tests/resources/cli/fedora30/etc/fedora-release b/tests/resources/cli/fedora30/etc/fedora-release
new file mode 100644
index 0000000..88caaa8
--- /dev/null
+++ b/tests/resources/cli/fedora30/etc/fedora-release
@@ -0,0 +1,1 @@
+Fedora release 30 (Thirty)
diff --git a/tests/resources/cli/fedora30/etc/os-rele... | 2020-05-29T12:23:42+00:00Z | Add support for detecting a distro from a rootfs even on another OS
I would be interested to run a distro detection based on some rootfs-like archive for aLinux distro and that on any OS. It could be a a plain pre-imaged rootfs, a container image, a VM image or similar and I would like to detect what it is regardless ... | So essentially I would modify distro to accept an optional path to the root of a distro FS defaulting to `/` so the behavior would be the same as today by default and would not attempt to run `lsb_release` unless the path is the default '/' and the current OS is Linux.
... and make a few paths relative to that provide ... | 0.0.1-alpha | bae8670e1d398180bca44bb4b8275669d74e6676 | ["tests.test_distro.TestCli::test_cli_can_parse_root_dir_args", "tests.test_distro.TestCli::test_cli_with_root_dir", "tests.test_distro.TestCli::test_cli_with_root_dir_as_json", "tests.test_distro.TestWithRootDir::test_arch_os_release", "tests.test_distro.TestWithRootDir::test_kali_os_release", "tests.test_distro.TestW... | ["tests.test_distro.TestNonLinuxPlatform::test_cant_use_on_windows", "tests.test_distro.TestCli::test_cli_for_coverage_yuch", "tests.test_distro.TestCli::test_cli", "tests.test_distro.TestCli::test_cli_json", "tests.test_distro.TestOSRelease::test_arch_os_release", "tests.test_distro.TestOSRelease::test_kali_os_release... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
mkdocs__mkdocs-click-42 | mkdocs/mkdocs-click | 280137e54a6a4cdc6650055599543a07f502b49e | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbdc6f5..c331819 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## Unreleased
+
+### Fixed
+
+- `:prog... | python | diff --git a/tests/test_processing.py b/tests/test_processing.py
index 11add4c..3ef4ad9 100644
--- a/tests/test_processing.py
+++ b/tests/test_processing.py
@@ -12,16 +12,17 @@ def test_replace_options():
foo
::: target
:option1: value1
- :optiøn2: value2
+ :optiøn2: val ue2
\t:option3:
:option4:\x20... | 2023-09-18T17:39:05+00:00Z | Multi-command modules not display correctly
There's a problem with a multi command module.
I've use [demisto-sdk](https://github.com/demisto/demisto-sdk/) and found it.
When importing a command, the module is not in the command name.
using the module above:
format command:
filename: docs/commands/format.md
`... | 0.0.1-alpha | 57e64a5490cee001242fc76a32616188942cfc43 | ["tests.test_processing::test_replace_options"] | ["tests.test_docs::test_basic", "tests.test_docs::test_depth", "tests.test_docs::test_prog_name", "tests.test_docs::test_style_invalid", "tests.test_docs::test_basic_escape_marker", "tests.test_docs::test_basic_ascii_art", "tests.test_docs::test_style_table[full]", "tests.test_docs::test_style_table[minimal]", "tests.t... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
pretix__python-drafthorse-24 | pretix/python-drafthorse | 78b360d4874cb86557c9b8335a33cf51aa80b957 | diff --git a/drafthorse/models/party.py b/drafthorse/models/party.py
index 9290f82..415cbac 100644
--- a/drafthorse/models/party.py
+++ b/drafthorse/models/party.py
@@ -9,10 +9,10 @@ class PostalTradeAddress(Element):
line_two = StringField(NS_RAM, "LineTwo", required=False, profile=BASIC)
line_three = String... | python | diff --git a/tests/test_mininal.py b/tests/test_mininal.py
index 7c399a9..a0da38f 100644
--- a/tests/test_mininal.py
+++ b/tests/test_mininal.py
@@ -33,6 +33,9 @@ def test_readme_construction_example():
doc.trade.settlement.currency_code = "EUR"
doc.trade.settlement.payment_means.type_code = "ZZZ"
+ doc.... | 2024-01-19T15:53:23+00:00Z | doc.trade.agreement.seller.address.country_subdivision fails to validate
Adding the line
```
doc.trade.agreement.seller.address.country_subdivision = "Bayern"
```
to `tests/test_minimal.py` fails to validate.
```
# py.test tests
...
E File "<string>", line 0
E lxml.etree.XMLSyntaxError: Element '{... | 0.0.1-alpha | 75617a8a1ec9c9626793d2e1d0a323c8cfab8d7a | ["tests.test_mininal::test_readme_construction_example"] | ["tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Reisekostenabrechnung.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Elektron.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Einfach.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_X... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
pallets-eco__flask-sqlalchemy-1045 | pallets-eco/flask-sqlalchemy | 4d0f2e877e4786e9a3beffeba18a037541646bc2 | diff --git a/CHANGES.rst b/CHANGES.rst
index 2c16729..c1a87ae 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -83,6 +83,8 @@ Unreleased
``app.testing``. :issue:`1092`
- MySQL engines don't set a default for ``pool_recycle`` if not using a queue pool.
:issue:`803`
+- SQLite driver-level URIs that look like ... | python | diff --git a/tests/test_engine.py b/tests/test_engine.py
index a01b8ae..67c0686 100644
--- a/tests/test_engine.py
+++ b/tests/test_engine.py
@@ -89,6 +89,16 @@ def test_sqlite_relative_path(app: Flask) -> None:
assert os.path.exists(db_path) # type: ignore[arg-type]
+@pytest.mark.usefixtures("app_ctx")
+def t... | 2022-09-18T20:37:01+00:00Z | SQLite apply_driver_hacks breaking URI usage
<!--
Describe how to replicate the bug.
Include a minimal reproducible example that demonstrates the bug.
Include the full traceback if there was an exception.
-->
I noticed that flask-sqlalchmy is injecting (the wrong) directory when run, it puts the file director... | I didn't realize `file:` was a thing. Makes sense to detect that as well and modify it.
Because the current working directory is not always obvious during deployment, Flask-SQLAlchemy makes relative SQLite paths relative to the project root (will change to the instance folder in 3.x). This way, the database ends up ... | 0.0.1-alpha | 516d8e09206ee019c8f36703c32a641b3c9ecc9b | ["tests.test_engine::test_sqlite_driver_level_uri"] | ["tests.test_cli::test_shell_context", "tests.test_engine::test_default_engine", "tests.test_engine::test_engine_per_bind", "tests.test_engine::test_config_engine_options", "tests.test_engine::test_init_engine_options", "tests.test_engine::test_config_echo", "tests.test_engine::test_url_type[sqlite://]", "tests.test_en... | ["tests.test_engine::test_sqlite_relative_path", "tests.test_model_name::test_complex_inheritance", "tests.test_query::test_default_query_class", "tests.test_query::test_custom_query_class"] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.