instance_id
stringlengths
13
45
pull_number
int64
7
30.1k
repo
stringclasses
83 values
version
stringclasses
68 values
base_commit
stringlengths
40
40
created_at
stringdate
2013-05-16 18:15:55
2025-01-08 15:12:50
patch
stringlengths
347
35.2k
test_patch
stringlengths
432
113k
non_py_patch
stringlengths
0
18.3k
new_components
listlengths
0
40
FAIL_TO_PASS
listlengths
1
2.53k
PASS_TO_PASS
listlengths
0
1.7k
problem_statement
stringlengths
607
52.7k
hints_text
stringlengths
0
57.4k
environment_setup_commit
stringclasses
167 values
conan-io__conan-15415
15,415
conan-io/conan
null
4f0533c8075ad86f116a6e2c71ab1df69373378a
2024-01-08T16:20:33Z
diff --git a/conans/model/settings.py b/conans/model/settings.py index 189bb71185d..d55e0f37452 100644 --- a/conans/model/settings.py +++ b/conans/model/settings.py @@ -106,6 +106,11 @@ def _get_child(self, item): raise undefined_field(self._name, item, None, self._value) if self._value is None: ...
diff --git a/conans/test/unittests/model/settings_test.py b/conans/test/unittests/model/settings_test.py index b80904ff3f6..94d4a44673c 100644 --- a/conans/test/unittests/model/settings_test.py +++ b/conans/test/unittests/model/settings_test.py @@ -1,3 +1,4 @@ +import textwrap import unittest import pytest @@ -48,6...
[ { "components": [ { "doc": "", "lines": [ 111, 114 ], "name": "SettingsItem._get_definition", "signature": "def _get_definition(self):", "type": "function" } ], "file": "conans/model/settings.py" } ]
[ "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_nested_any" ]
[ "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_any", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_get_safe", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_getattr_none", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> explore nested ANY settings.yml Changelog: Feature: Allow nested "ANY" definitions in ``settings.yml``. Docs: https://github.com/conan-io/docs/pull/3546 Close https://github.com/conan-io/conan/iss...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pyro-ppl__pyro-3311
3,311
pyro-ppl/pyro
null
5d920aabaaf80b7bb86e53f5a0dc11251bbdffa5
2024-01-04T17:04:23Z
diff --git a/docs/source/pyro.infer.mcmc.txt b/docs/source/pyro.infer.mcmc.txt index 0f51191474..0684a97b99 100644 --- a/docs/source/pyro.infer.mcmc.txt +++ b/docs/source/pyro.infer.mcmc.txt @@ -37,6 +37,14 @@ NUTS :undoc-members: :show-inheritance: +RandomWalkKernel +---------------- + +.. autoclass:: pyro...
diff --git a/tests/infer/mcmc/test_rwkernel.py b/tests/infer/mcmc/test_rwkernel.py new file mode 100644 index 0000000000..08490703e6 --- /dev/null +++ b/tests/infer/mcmc/test_rwkernel.py @@ -0,0 +1,40 @@ +# Copyright (c) 2017-2019 Uber Technologies, Inc. +# SPDX-License-Identifier: Apache-2.0 + +import torch + +import ...
diff --git a/docs/source/pyro.infer.mcmc.txt b/docs/source/pyro.infer.mcmc.txt index 0f51191474..0684a97b99 100644 --- a/docs/source/pyro.infer.mcmc.txt +++ b/docs/source/pyro.infer.mcmc.txt @@ -37,6 +37,14 @@ NUTS :undoc-members: :show-inheritance: +RandomWalkKernel +---------------- + +.. autoclass:: pyro...
[ { "components": [ { "doc": "Simple gradient-free kernel that utilizes an isotropic gaussian random walk in the unconstrained\nlatent space of the model. The step size that controls the variance of the kernel is adapted during\nwarm-up with a simple adaptation scheme that targets a user-provided ac...
[ "tests/infer/mcmc/test_rwkernel.py::test_beta_bernoulli" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add simple RandomWalkKernel Add a simple gradient-free kernel to complements HMC/NUTS. - isotropic gaussian proposal - simple adaptation scheme to adapt step size ---------- </request> There are s...
64e71eee1c14dc926d5cbc5e762b6337bb4750a6
conan-io__conan-15382
15,382
conan-io/conan
null
e2a65483d2e294d604d4bae9ede883958c583f75
2024-01-03T16:56:11Z
diff --git a/conan/cli/commands/build.py b/conan/cli/commands/build.py index 2212e5f79ac..bf1543a8681 100644 --- a/conan/cli/commands/build.py +++ b/conan/cli/commands/build.py @@ -23,7 +23,8 @@ def build(conan_api, parser, *args): parser.add_argument("-of", "--output-folder", help='The ro...
diff --git a/test/functional/command/test_install_deploy.py b/test/functional/command/test_install_deploy.py index 24bb1bd63ba..1967e4b4836 100644 --- a/test/functional/command/test_install_deploy.py +++ b/test/functional/command/test_install_deploy.py @@ -435,3 +435,57 @@ def package_info(self): env = c.load("c...
[ { "components": [ { "doc": "Deploy all the shared libraries and the executables of the dependencies in a flat directory.", "lines": [ 92, 122 ], "name": "runtime_deploy", "signature": "def runtime_deploy(graph, output_folder):", "type": "...
[ "test/functional/command/test_install_deploy.py::TestRuntimeDeployer::test_runtime_deploy", "test/functional/command/test_install_deploy.py::TestRuntimeDeployer::test_runtime_deploy_components" ]
[ "test/functional/command/test_install_deploy.py::test_copy_files_deploy", "test/functional/command/test_install_deploy.py::test_multi_deploy", "test/functional/command/test_install_deploy.py::test_deploy_local_import", "test/functional/command/test_install_deploy.py::test_builtin_full_deploy", "test/functio...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add built in runtime deployer Changelog: Feature: Add built in `runtime_deploy` deployer. Docs: https://github.com/conan-io/docs/pull/3789 Fix https://github.com/conan-io/conan/issues/15381 Thi...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
deepset-ai__haystack-6676
6,676
deepset-ai/haystack
null
1336456b4f94e47ea1cf0d45835e5eef4349530d
2024-01-02T13:34:32Z
diff --git a/haystack/components/embedders/__init__.py b/haystack/components/embedders/__init__.py index d2005877a3..5a6730e5be 100644 --- a/haystack/components/embedders/__init__.py +++ b/haystack/components/embedders/__init__.py @@ -4,6 +4,8 @@ from haystack.components.embedders.sentence_transformers_document_embedd...
diff --git a/test/components/embedders/test_azure_document_embedder.py b/test/components/embedders/test_azure_document_embedder.py new file mode 100644 index 0000000000..b5625e71dd --- /dev/null +++ b/test/components/embedders/test_azure_document_embedder.py @@ -0,0 +1,76 @@ +import os + +import pytest + +from haystack...
diff --git a/releasenotes/notes/add-azure-embedders-fd5f4fbcab0e1c48.yaml b/releasenotes/notes/add-azure-embedders-fd5f4fbcab0e1c48.yaml new file mode 100644 index 0000000000..d66d3207d2 --- /dev/null +++ b/releasenotes/notes/add-azure-embedders-fd5f4fbcab0e1c48.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Adds Azu...
[ { "components": [ { "doc": "A component for computing Document embeddings using OpenAI models.\nThe embedding of each Document is stored in the `embedding` field of the Document.\n\nUsage example:\n```python\nfrom haystack import Document\nfrom haystack.components.embedders import AzureOpenAIDocum...
[ "test/components/embedders/test_azure_document_embedder.py::TestAzureOpenAIDocumentEmbedder::test_init_default", "test/components/embedders/test_azure_document_embedder.py::TestAzureOpenAIDocumentEmbedder::test_to_dict", "test/components/embedders/test_azure_text_embedder.py::TestAzureOpenAITextEmbedder::test_i...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add Azure embedders support ### Why: Add new embedding components that leverage Azure's cognitive services for text and document embedding. These new components are intended to provide users ...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
joke2k__faker-1968
1,968
joke2k/faker
null
b2df6408867310874d85bcad47348eb1fc802f0d
2023-12-28T18:51:45Z
diff --git a/faker/providers/bank/cs_CZ/__init__.py b/faker/providers/bank/cs_CZ/__init__.py new file mode 100644 index 0000000000..7ea79ab21e --- /dev/null +++ b/faker/providers/bank/cs_CZ/__init__.py @@ -0,0 +1,11 @@ +from .. import Provider as BankProvider + + +class Provider(BankProvider): + """Implement bank pr...
diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py index cf065af3ce..d373a4ced7 100644 --- a/tests/providers/test_bank.py +++ b/tests/providers/test_bank.py @@ -4,6 +4,7 @@ from faker.providers.bank import Provider as BankProvider from faker.providers.bank.az_AZ import Provider as AzAzBankProv...
[ { "components": [ { "doc": "Implement bank provider for ``cs_CZ`` locale.\n\nhttps://www.mbank.cz/informace-k-produktum/info/ucty/cislo-uctu-iban.html", "lines": [ 4, 11 ], "name": "Provider", "signature": "class Provider(BankProvider):", ...
[ "tests/providers/test_bank.py::TestAzAz::test_bban", "tests/providers/test_bank.py::TestAzAz::test_iban", "tests/providers/test_bank.py::TestAzAz::test_bank", "tests/providers/test_bank.py::TestCsCz::test_bban", "tests/providers/test_bank.py::TestCsCz::test_iban", "tests/providers/test_bank.py::TestNoNo::...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add bank provider for cs_CZ ### What does this change Add bank provider for cs_CZ ---------- </request> There are several new functions or classes that need to be implemented, using the definit...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
pypa__hatch-1178
1,178
pypa/hatch
null
a4ceb972aaba40d624b18363b95bafa339294ee8
2023-12-26T17:52:54Z
diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 25a1f0a3a..5a8a9dd17 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -8,6 +8,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +***Added:*** + +- Add the following methods to the `e...
diff --git a/tests/cli/env/test_create.py b/tests/cli/env/test_create.py index 358cdbfa5..fed313a3f 100644 --- a/tests/cli/env/test_create.py +++ b/tests/cli/env/test_create.py @@ -1359,6 +1359,7 @@ def update(self, metadata): Creating environment: test Installing project in development mode ...
diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 25a1f0a3a..5a8a9dd17 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -8,6 +8,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +***Added:*** + +- Add the following methods to the `e...
[ { "components": [ { "doc": "See the [life cycle of environments](reference.md#life-cycle).", "lines": [ 663, 668 ], "name": "EnvironmentInterface.app_status_creation", "signature": "def app_status_creation(self):", "type": "function" ...
[ "tests/cli/env/test_create.py::test_sync_dynamic_dependencies" ]
[ "tests/cli/env/test_create.py::test_undefined", "tests/cli/env/test_create.py::test_unknown_type", "tests/cli/env/test_create.py::test_new", "tests/cli/env/test_create.py::test_selected_absolute_directory", "tests/cli/env/test_create.py::test_option_absolute_directory", "tests/cli/env/test_create.py::test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add life cycle messaging methods to the `environment` interface @juftin Curious your thoughts on this ---------- </request> There are several new functions or classes that need to be implemented, us...
c06c820d722667306f39bda956c58cf4c48d0728
deepset-ai__haystack-6648
6,648
deepset-ai/haystack
null
9c08f3d9c7f0888d29deec98373d536b8f61e4b8
2023-12-26T15:48:58Z
diff --git a/haystack/components/generators/__init__.py b/haystack/components/generators/__init__.py index a9251b9336..73818abfbb 100644 --- a/haystack/components/generators/__init__.py +++ b/haystack/components/generators/__init__.py @@ -1,5 +1,12 @@ from haystack.components.generators.hugging_face_local import Huggi...
diff --git a/test/components/generators/chat/test_azure.py b/test/components/generators/chat/test_azure.py new file mode 100644 index 0000000000..2a9f900f7d --- /dev/null +++ b/test/components/generators/chat/test_azure.py @@ -0,0 +1,89 @@ +import os + +import pytest +from openai import OpenAIError + +from haystack.com...
diff --git a/releasenotes/notes/add-azure-generators-a30c786204b22e48.yaml b/releasenotes/notes/add-azure-generators-a30c786204b22e48.yaml new file mode 100644 index 0000000000..2a3422cfeb --- /dev/null +++ b/releasenotes/notes/add-azure-generators-a30c786204b22e48.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Adds ...
[ { "components": [ { "doc": "Enables text generation using OpenAI's large language models (LLMs) on Azure. It supports gpt-4 and gpt-3.5-turbo\nfamily of models.\n\nUsers can pass any text generation parameters valid for the `openai.ChatCompletion.create` method\ndirectly to this component via the ...
[ "test/components/generators/chat/test_azure.py::TestOpenAIChatGenerator::test_init_default", "test/components/generators/chat/test_azure.py::TestOpenAIChatGenerator::test_init_fail_wo_api_key", "test/components/generators/chat/test_azure.py::TestOpenAIChatGenerator::test_init_with_parameters", "test/component...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add AzureOpenAIGenerator and AzureOpenAIChatGenerator ### Why: Add support for OpenAI LLMs like GPT-3.5 and GPT-4, which are available through Azure's services. ### What: Two main compo...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
pvlib__pvlib-python-1940
1,940
pvlib/pvlib-python
0.9
6bb149fa8c933ea32a060198864a12887dc5c538
2023-12-22T21:20:00Z
diff --git a/docs/sphinx/source/reference/pv_modeling/system_models.rst b/docs/sphinx/source/reference/pv_modeling/system_models.rst index c2c55d2580..55e01f437e 100644 --- a/docs/sphinx/source/reference/pv_modeling/system_models.rst +++ b/docs/sphinx/source/reference/pv_modeling/system_models.rst @@ -47,3 +47,11 @@ AD...
diff --git a/pvlib/tests/test_pvarray.py b/pvlib/tests/test_pvarray.py index 6dcacdefe1..693ef78b2a 100644 --- a/pvlib/tests/test_pvarray.py +++ b/pvlib/tests/test_pvarray.py @@ -1,5 +1,8 @@ import numpy as np +import pandas as pd from numpy.testing import assert_allclose +from .conftest import assert_series_equal +i...
diff --git a/docs/sphinx/source/reference/pv_modeling/system_models.rst b/docs/sphinx/source/reference/pv_modeling/system_models.rst index c2c55d2580..55e01f437e 100644 --- a/docs/sphinx/source/reference/pv_modeling/system_models.rst +++ b/docs/sphinx/source/reference/pv_modeling/system_models.rst @@ -47,3 +47,11 @@ AD...
[ { "components": [ { "doc": "", "lines": [ 228, 242 ], "name": "_infer_k_huld", "signature": "def _infer_k_huld(cell_type, pdc0):", "type": "function" }, { "doc": "Power (DC) using the Huld model.\n\nThe Huld model [1]_...
[ "pvlib/tests/test_pvarray.py::test_huld" ]
[ "pvlib/tests/test_pvarray.py::test_pvefficiency_adr", "pvlib/tests/test_pvarray.py::test_fit_pvefficiency_adr", "pvlib/tests/test_pvarray.py::test_pvefficiency_adr_round_trip", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[ashrae-model_params0]", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Huld PV model ~~- [ ] Closes #xxxx~~ - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests added - [x] Updates ...
d53f97e984bfdd268aa92f8bf482ced0edda0110
deepset-ai__haystack-6592
6,592
deepset-ai/haystack
null
f877704839dc585cf47305d97fd5011be367b907
2023-12-19T13:28:08Z
diff --git a/haystack/components/others/__init__.py b/haystack/components/others/__init__.py new file mode 100644 index 0000000000..cac8782cd1 --- /dev/null +++ b/haystack/components/others/__init__.py @@ -0,0 +1,3 @@ +from haystack.components.others.multiplexer import Multiplexer + +__all__ = ["Multiplexer"] diff --gi...
diff --git a/test/components/others/test_multiplexer.py b/test/components/others/test_multiplexer.py new file mode 100644 index 0000000000..3488b61c28 --- /dev/null +++ b/test/components/others/test_multiplexer.py @@ -0,0 +1,32 @@ +import pytest + +from haystack.components.others import Multiplexer + + +class TestMulti...
diff --git a/releasenotes/notes/multiplexer-a7b1259bd20c144c.yaml b/releasenotes/notes/multiplexer-a7b1259bd20c144c.yaml new file mode 100644 index 0000000000..2ef1fbaa42 --- /dev/null +++ b/releasenotes/notes/multiplexer-a7b1259bd20c144c.yaml @@ -0,0 +1,3 @@ +features: + - | + Add `Multiplexer`. For an example of ...
[ { "components": [ { "doc": "This component is used to distribute a single value to many components that may need it.\nIt can take such value from different sources (the user's input, or another component), so\nit's only input is of Variadic type.\n\nThe type of the expected input (and therefore of...
[ "test/components/others/test_multiplexer.py::TestMultiplexer::test_one_value", "test/components/others/test_multiplexer.py::TestMultiplexer::test_one_value_of_wrong_type", "test/components/others/test_multiplexer.py::TestMultiplexer::test_one_value_of_none_type", "test/components/others/test_multiplexer.py::T...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: `Multiplexer` ### Related Issues - See https://github.com/deepset-ai/haystack/pull/6420 ### Proposed Changes: Introduces a `Multiplexer` component that takes an arbitrary number of inp...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
deepset-ai__haystack-6582
6,582
deepset-ai/haystack
null
0ac1bdc6a0a741a18bde9d44321142c4efa91ad6
2023-12-18T10:07:47Z
diff --git a/haystack/components/converters/html.py b/haystack/components/converters/html.py index 71475aea5d..859f62fed9 100644 --- a/haystack/components/converters/html.py +++ b/haystack/components/converters/html.py @@ -1,6 +1,6 @@ import logging from pathlib import Path -from typing import Any, Dict, List, Option...
diff --git a/test/components/converters/test_html_to_document.py b/test/components/converters/test_html_to_document.py index 437ab9e616..1cdb478127 100644 --- a/test/components/converters/test_html_to_document.py +++ b/test/components/converters/test_html_to_document.py @@ -18,6 +18,20 @@ def test_run(self, test_files_...
diff --git a/releasenotes/notes/htmlconverter-allow-extractor-customizability-730ae129db17327a.yaml b/releasenotes/notes/htmlconverter-allow-extractor-customizability-730ae129db17327a.yaml new file mode 100644 index 0000000000..a77b947505 --- /dev/null +++ b/releasenotes/notes/htmlconverter-allow-extractor-customizabil...
[ { "components": [ { "doc": "Create an HTMLToDocument component.\n\n:param extractor_type: The type of boilerpy3 extractor to use. Defaults to `DefaultExtractor`.\n For more information on the different types of extractors,\n see [boilerpy3 documentation](https://github.com/jmriebold/BoilerPy3?ta...
[ "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run_different_extractors" ]
[ "[", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run_doc_metadata", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_incorrect_meta", "test/components/convert...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat!: `HTMLToDocument` - allow choosing the boilerpy3 extractor ### Related Issues - fixes #6579 ### Proposed Changes: - allow choosing the boilerpy3 extractor to extract the content from th...
Here is the discussion in the issues of the pull request. <issues> `HTMLToDocument` sometimes skips some relevant text **Describe the bug** `HTMLToDocument` uses `ArticleExtractor` from [boilerpy3](https://github.com/jmriebold/BoilerPy3). This extractor is tuned towards news articles and sometimes skips some relevant...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
conan-io__conan-15284
15,284
conan-io/conan
null
98d8f6aaa074b2bf6b827a359daf415f447a86a3
2023-12-16T10:42:15Z
diff --git a/conan/api/subapi/lockfile.py b/conan/api/subapi/lockfile.py index e9fc4daf337..7e4bf7de760 100644 --- a/conan/api/subapi/lockfile.py +++ b/conan/api/subapi/lockfile.py @@ -88,6 +88,12 @@ def add_lockfile(lockfile=None, requires=None, build_requires=None, python_requi python_requires=p...
diff --git a/conans/test/integration/lockfile/test_user_overrides.py b/conans/test/integration/lockfile/test_user_overrides.py index f37a91c4259..53648a5c6c2 100644 --- a/conans/test/integration/lockfile/test_user_overrides.py +++ b/conans/test/integration/lockfile/test_user_overrides.py @@ -1,4 +1,7 @@ import json +i...
[ { "components": [ { "doc": "", "lines": [ 92, 95 ], "name": "LockfileAPI.remove_lockfile", "signature": "def remove_lockfile(lockfile, requires=None, build_requires=None, python_requires=None):", "type": "function" } ], "fil...
[ "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/*-removed0]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/2.0-removed1]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRe...
[ "conans/test/integration/lockfile/test_user_overrides.py::test_user_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_build_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_python_overrides", "conans/test/integration/lockfile/test_user_overrides.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new lock remove command Changelog: Feature: New ``conan lock remove`` command to remove requires from lockfiles. Docs: https://github.com/conan-io/docs/pull/3496 I am proposing this PR to close: ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
astropy__astropy-15737
15,737
astropy/astropy
v5.3
f87e75d967fcf0ede5a1fe9f1326e4b84e333f94
2023-12-14T19:52:14Z
diff --git a/astropy/coordinates/baseframe.py b/astropy/coordinates/baseframe.py index 88a525feb8ff..7be15424b799 100644 --- a/astropy/coordinates/baseframe.py +++ b/astropy/coordinates/baseframe.py @@ -26,11 +26,12 @@ from astropy.utils.exceptions import AstropyWarning from . import representation as r -from .angl...
diff --git a/astropy/coordinates/tests/test_frame_skycoord_common_methods.py b/astropy/coordinates/tests/test_frame_skycoord_common_methods.py new file mode 100644 index 000000000000..29fc2b5853be --- /dev/null +++ b/astropy/coordinates/tests/test_frame_skycoord_common_methods.py @@ -0,0 +1,39 @@ +# Licensed under a 3-...
diff --git a/docs/changes/coordinates/15737.feature.rst b/docs/changes/coordinates/15737.feature.rst new file mode 100644 index 000000000000..fd33dd6a78b8 --- /dev/null +++ b/docs/changes/coordinates/15737.feature.rst @@ -0,0 +1,2 @@ +``BaseCoordinateFrame`` now has a ``position_angle()`` method, which is the +same as ...
[ { "components": [ { "doc": "", "lines": [ 1769, 1778 ], "name": "BaseCoordinateFrame._prepare_unit_sphere_coords", "signature": "def _prepare_unit_sphere_coords( self, other: BaseCoordinateFrame | SkyCoord ) -> tuple[Longitude, Latitude, Longitud...
[ "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_array[SkyCoord-ICRS]", "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_array[ICRS-ICRS]", "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_scalar[other...
[ "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_array[SkyCoord-SkyCoord]", "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_array[ICRS-SkyCoord]", "astropy/coordinates/tests/test_frame_skycoord_common_methods.py::test_position_angle_scal...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Move `position_angle()` from `SkyCoord` to `BaseCoordinateFrame` ### Description The first commit implements a new private method in `BaseCoordinateFrame` that simplifies the implementation of `sep...
2d281019494aaebf522f6626c0dae37510c16688
googleapis__python-aiplatform-3105
3,105
googleapis/python-aiplatform
null
f54048ac67a4d4e3b8fc607f6321b3b4d48588d7
2023-12-13T23:04:29Z
diff --git a/google/cloud/aiplatform/jobs.py b/google/cloud/aiplatform/jobs.py index 653d31f73a..188b671b5c 100644 --- a/google/cloud/aiplatform/jobs.py +++ b/google/cloud/aiplatform/jobs.py @@ -252,6 +252,14 @@ def _block_until_complete(self): else: _LOGGER.log_action_completed_against_resource("...
diff --git a/tests/unit/aiplatform/test_jobs.py b/tests/unit/aiplatform/test_jobs.py index 7f1cd8288e..79f99ea7e0 100644 --- a/tests/unit/aiplatform/test_jobs.py +++ b/tests/unit/aiplatform/test_jobs.py @@ -877,6 +877,34 @@ def test_batch_predict_job_done_create(self, create_batch_prediction_job_mock): asser...
[ { "components": [ { "doc": "Waits for job to complete.\n\nRaises:\n RuntimeError: If job failed or cancelled.", "lines": [ 255, 261 ], "name": "_Job.wait_for_completion", "signature": "def wait_for_completion(self) -> None:", "type": "...
[ "tests/unit/aiplatform/test_jobs.py::TestBatchPredictionJob::test_batch_predict_job_submit" ]
[ "tests/unit/aiplatform/test_jobs.py::TestJob::test_init_job_class", "tests/unit/aiplatform/test_jobs.py::TestJob::test_cancel_mock_job", "tests/unit/aiplatform/test_jobs.py::TestBatchPredictionJob::test_init_batch_prediction_job", "tests/unit/aiplatform/test_jobs.py::TestBatchPredictionJob::test_batch_predict...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Added the `BatchPredictionJob.submit` method - a non-blocking version of `BatchPredictionJob.create` feat: Added the `BatchPredictionJob.submit` method - a non-blocking version of `BatchPredic...
67358fa6a830eb842f6b52d09061af4a41b54af6
conan-io__conan-15270
15,270
conan-io/conan
null
98d68db7f3a7d6eec4dc463a24839af542fb70cc
2023-12-13T22:43:40Z
diff --git a/conan/cli/commands/graph.py b/conan/cli/commands/graph.py index d9c773a00f5..d8babfefa96 100644 --- a/conan/cli/commands/graph.py +++ b/conan/cli/commands/graph.py @@ -56,6 +56,8 @@ def graph_build_order(conan_api, parser, subparser, *args): Compute the build order of a dependency graph. """ ...
diff --git a/conans/test/integration/command_v2/test_info_build_order.py b/conans/test/integration/command_v2/test_info_build_order.py index 6e9354b057e..3f484445761 100644 --- a/conans/test/integration/command_v2/test_info_build_order.py +++ b/conans/test/integration/command_v2/test_info_build_order.py @@ -62,6 +62,55...
[ { "components": [ { "doc": "Represents a single, unique PackageReference to be downloaded, built, etc.\nSame PREF should only be built or downloaded once, but it is possible to have multiple\nnodes in the DepsGraph that share the same PREF.\nPREF could have PREV if to be downloaded (must be the sa...
[ "conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_configuration", "conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_merge_multi_product_configurations" ]
[ "conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order", "conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_build_require", "conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_options", "conans/test/integration/comma...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> graph build-order --order=configuration Changelog: Feature: New ``conan graph build-order --order=configuration`` to output a different order, sorted by package binaries/configurations, not grouped by...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Project-MONAI__MONAI-7308
7,308
Project-MONAI/MONAI
null
c64993431198774ef896f525bad0fd6cc932e788
2023-12-11T06:23:04Z
diff --git a/docs/source/losses.rst b/docs/source/losses.rst index 61dd959807..ba794af3eb 100644 --- a/docs/source/losses.rst +++ b/docs/source/losses.rst @@ -139,6 +139,11 @@ Reconstruction Losses .. autoclass:: JukeboxLoss :members: +`SURELoss` +~~~~~~~~~~ +.. autoclass:: SURELoss + :members: + Loss Wra...
diff --git a/tests/test_conjugate_gradient.py b/tests/test_conjugate_gradient.py new file mode 100644 index 0000000000..239dbe3ecd --- /dev/null +++ b/tests/test_conjugate_gradient.py @@ -0,0 +1,55 @@ +# Copyright (c) MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use...
diff --git a/docs/source/losses.rst b/docs/source/losses.rst index 61dd959807..ba794af3eb 100644 --- a/docs/source/losses.rst +++ b/docs/source/losses.rst @@ -139,6 +139,11 @@ Reconstruction Losses .. autoclass:: JukeboxLoss :members: +`SURELoss` +~~~~~~~~~~ +.. autoclass:: SURELoss + :members: + Loss Wra...
[ { "components": [ { "doc": "First compute the difference in the complex domain,\nthen get the absolute value and take the mse\n\nArgs:\n x, y - B, 2, H, W real valued tensors representing complex numbers\n or B,1,H,W complex valued tensors\nReturns:\n l2_loss - scalar", "...
[ "tests/test_conjugate_gradient.py::TestConjugateGradient::test_complex_valued_inverse", "tests/test_conjugate_gradient.py::TestConjugateGradient::test_real_valued_inverse", "tests/test_sure_loss.py::TestSURELoss::test_complex_general_input", "tests/test_sure_loss.py::TestSURELoss::test_complex_value", "test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Stein's Unbiased Risk Estimator (SURE) loss and Conjugate Gradient ### Description Based on the discussion topic [here](https://github.com/Project-MONAI/MONAI/discussions/7161#discussion-5773293), ...
e73257caa79309dcce1e93abf1632f4bfd75b11f
astronomer__astronomer-cosmos-758
758
astronomer/astronomer-cosmos
null
9fcee8e785ea3bcb0d19e8d36f3f5b94bedafc98
2023-12-11T01:54:27Z
diff --git a/cosmos/profiles/athena/access_key.py b/cosmos/profiles/athena/access_key.py index a8f71c2b7..02de2be24 100644 --- a/cosmos/profiles/athena/access_key.py +++ b/cosmos/profiles/athena/access_key.py @@ -3,20 +3,33 @@ from typing import Any +from cosmos.exceptions import CosmosValueError + from ..base im...
diff --git a/tests/profiles/athena/test_athena_access_key.py b/tests/profiles/athena/test_athena_access_key.py index 22c8efa2c..c224a9d4b 100644 --- a/tests/profiles/athena/test_athena_access_key.py +++ b/tests/profiles/athena/test_athena_access_key.py @@ -1,20 +1,49 @@ "Tests for the Athena profile." import json -...
diff --git a/pyproject.toml b/pyproject.toml index c08de4ade..9d367c075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,7 @@ dbt-all = [ ] dbt-athena = [ "dbt-athena-community", + "apache-airflow-providers-amazon>=8.0.0", ] dbt-bigquery = [ "dbt-bigquery", @@ -110,7 +111,6 @@ tests = [ ...
[ { "components": [ { "doc": "Overwrites the env_vars for athena, Returns a dictionary of environment variables that should be set based on the self.temporary_credentials.", "lines": [ 75, 89 ], "name": "AthenaAccessKeyProfileMapping.env_vars", "si...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_connection_claiming", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args_overrides", "tests/profiles/athena/test_athena_access_key.py::test_athena_...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_mapping_selected" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Athena - Get temporary credentials from the conn_id ## Description <!-- Add a brief but complete description of the change. --> Passes the `conn_id` to the `AwsGenericHook` and uses `get_credent...
c5edba07d2265d5185eaba149a639e8a0740e498
conan-io__conan-15221
15,221
conan-io/conan
null
acbaf44874c0c821a6f6702f46f99d2ee7553deb
2023-12-05T21:26:03Z
diff --git a/conans/model/dependencies.py b/conans/model/dependencies.py index e001141cc8b..c1eebef5302 100644 --- a/conans/model/dependencies.py +++ b/conans/model/dependencies.py @@ -73,6 +73,17 @@ def items(self): def values(self): return self._data.values() + def __contains__(self, item): + ...
diff --git a/conans/test/integration/graph/test_dependencies_visit.py b/conans/test/integration/graph/test_dependencies_visit.py index 75c9fda1402..3bb77dc92d4 100644 --- a/conans/test/integration/graph/test_dependencies_visit.py +++ b/conans/test/integration/graph/test_dependencies_visit.py @@ -29,6 +29,18 @@ def gene...
[ { "components": [ { "doc": "", "lines": [ 76, 85 ], "name": "UserRequirementsDict.__contains__", "signature": "def __contains__(self, item):", "type": "function" } ], "file": "conans/model/dependencies.py" } ]
[ "conans/test/integration/graph/test_dependencies_visit.py::test_dependencies_visit", "conans/test/integration/graph/test_dependencies_visit.py::test_cmake_zlib[self.output.info(\"Missing", "conans/test/integration/graph/test_dependencies_visit.py::test_cmake_zlib[self.output.info(\"Zlib" ]
[ "conans/test/integration/graph/test_dependencies_visit.py::test_dependencies_visit_settings_options", "conans/test/integration/graph/test_dependencies_visit.py::test_cmake_zlib[print(\"=>{}\".format(self.dependencies[\"zlib\"].ref))-False-=>zlib/0.2]", "conans/test/integration/graph/test_dependencies_visit.py::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `in` operator support for ConanFile's `self.dependencies` Changelog: Feature: Add `in` operator support for ConanFile's `self.dependencies`. Docs: https://github.com/conan-io/docs/pull/3481 Cl...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
googleapis__python-aiplatform-3060
3,060
googleapis/python-aiplatform
null
d0c2ffa8d8d070f9ef247c3c742a67b12d1bc16d
2023-12-05T17:21:57Z
diff --git a/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py b/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py new file mode 100644 index 0000000000..8afef4a82d --- /dev/null +++ b/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py @@ -0,0 +1...
diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py index a9679e74e3..750e682e20 100644 --- a/samples/model-builder/conftest.py +++ b/samples/model-builder/conftest.py @@ -1204,3 +1204,52 @@ def mock_autolog(): with patch.object(aiplatform, "autolog") as mock_autolog_method: ...
[ { "components": [ { "doc": "Query the vector search index.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n index_endpoint_name (str): Required. Index endpoint to run the query\n against.\n deployed_index_id (str): Required. The ID of the ...
[ "samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_sample", "samples/model-builder/vector_search/vector_search_stream_update_sample_test.py::test_vector_search_stream_update_sample" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: adding code samples for vector search streaming update and find neighbors chore: adding code samples for vector search streaming update and find neighbors ---------- </request> There are sev...
67358fa6a830eb842f6b52d09061af4a41b54af6
google-deepmind__optax-651
651
google-deepmind/optax
null
b67577e2810b473d38fa851dee3da695a9bf2135
2023-12-01T20:06:12Z
diff --git a/docs/api.rst b/docs/api.rst index 9efa959c3..510dc74d6 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -776,6 +776,10 @@ scale_gradient SAMState cocob COCOBState + dadapt_adamw + DAdaptAdamWState + prodigy + ProdigyState Complex-Valued Optimization diff --git a/optax/contrib...
diff --git a/optax/contrib/dadapt_adamw_test.py b/optax/contrib/dadapt_adamw_test.py new file mode 100644 index 000000000..992fe1046 --- /dev/null +++ b/optax/contrib/dadapt_adamw_test.py @@ -0,0 +1,86 @@ +# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. +# +# Licensed under the Apache License, Vers...
diff --git a/docs/api.rst b/docs/api.rst index 9efa959c3..510dc74d6 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -776,6 +776,10 @@ scale_gradient SAMState cocob COCOBState + dadapt_adamw + DAdaptAdamWState + prodigy + ProdigyState Complex-Valued Optimization
[ { "components": [ { "doc": "", "lines": [ 30, 36 ], "name": "DAdaptAdamWState", "signature": "class DAdaptAdamWState(NamedTuple):", "type": "class" }, { "doc": "Learning rate free AdamW by D-Adaptation\n\nAdapts the ba...
[ "optax/contrib/dadapt_adamw_test.py::DAdaptAdamWTest::test_optimization0", "optax/contrib/dadapt_adamw_test.py::DAdaptAdamWTest::test_optimization1", "optax/contrib/prodigy_test.py::ProdigyTest::test_optimization0", "optax/contrib/prodigy_test.py::ProdigyTest::test_optimization1" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> D-Adaptation and Prodigy contrib implementations Implementations of D-Adaptation AdamW and the related method Prodigy based on the official PyTorch implementations. I have verified that they give the ...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
deepset-ai__haystack-6413
6,413
deepset-ai/haystack
null
5353706cf6778443a975fb93c5359c4d676e7173
2023-11-27T08:30:06Z
diff --git a/haystack/pipeline.py b/haystack/pipeline.py index 0478e36988..be8d79583b 100644 --- a/haystack/pipeline.py +++ b/haystack/pipeline.py @@ -1,4 +1,5 @@ -from typing import Any, Dict, Optional, Union, TextIO +from collections import defaultdict +from typing import Any, Dict, Optional, Union, TextIO, Tuple fr...
diff --git a/test/test_pipeline.py b/test/test_pipeline.py index b5e4aee973..64d5374224 100644 --- a/test/test_pipeline.py +++ b/test/test_pipeline.py @@ -56,3 +56,111 @@ def test_pipeline_load(test_files_path): assert pipeline.max_loops_allowed == 99 assert isinstance(pipeline.get_component("Comp1"),...
diff --git a/releasenotes/notes/allow-simplified-pipeline-run-input-e3dd98ff38f0bc01.yaml b/releasenotes/notes/allow-simplified-pipeline-run-input-e3dd98ff38f0bc01.yaml new file mode 100644 index 0000000000..6badfe24ed --- /dev/null +++ b/releasenotes/notes/allow-simplified-pipeline-run-input-e3dd98ff38f0bc01.yaml @@ -...
[ { "components": [ { "doc": "Runs the pipeline by invoking the underlying run to initiate the pipeline execution.\n\n:params data: the inputs to give to the input components of the Pipeline.\n:params debug: whether to collect and return debug information.\n\n:returns: A dictionary with the outputs ...
[ "[", "test/test_pipeline.py::test_pipeline_resolution_simple_input", "test/test_pipeline.py::test_pipeline_resolution_wrong_input_name", "test/test_pipeline.py::test_pipeline_resolution_with_mixed_correct_and_incorrect_input_names", "test/test_pipeline.py::test_pipeline_resolution_duplicate_input_names_acro...
[ "test/test_pipeline.py::test_pipeline_dumps", "test/test_pipeline.py::test_pipeline_loads", "test/test_pipeline.py::test_pipeline_dump", "test/test_pipeline.py::test_pipeline_load" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Allow flat dictionary `Pipeline.run()` inputs ### Why: This pull request introduces a significant enhancement to the `Pipeline` class. The main objective is to simplify the way users interact w...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
roboflow__supervision-620
620
roboflow/supervision
null
10c44b0143c13b33c1951509f9f11c37c6373752
2023-11-26T10:27:34Z
diff --git a/supervision/draw/color.py b/supervision/draw/color.py index 69bcc9c5e..9d1b4ad98 100644 --- a/supervision/draw/color.py +++ b/supervision/draw/color.py @@ -71,6 +71,21 @@ def from_hex(cls, color_hex: str) -> Color: r, g, b = (int(color_hex[i : i + 2], 16) for i in range(0, 6, 2)) return c...
diff --git a/test/draw/test_color.py b/test/draw/test_color.py index 723f7043e..eb4c36574 100644 --- a/test/draw/test_color.py +++ b/test/draw/test_color.py @@ -30,3 +30,22 @@ def test_color_from_hex( with exception: result = Color.from_hex(color_hex=color_hex) assert result == expected_result + ...
[ { "components": [ { "doc": "Converts the Color instance to a hex string.\n\nReturns:\n str: The hexadecimal color string.\n\nExample:\n ```\n >>> Color(r=255, g=0, b=255).as_hex()\n '#ff00ff'\n ```", "lines": [ 74, 87 ], "name": "Color.as_...
[ "test/draw/test_color.py::test_color_as_hex[color0-#ffffff-exception0]", "test/draw/test_color.py::test_color_as_hex[color1-#000000-exception1]", "test/draw/test_color.py::test_color_as_hex[color2-#ff0000-exception2]", "test/draw/test_color.py::test_color_as_hex[color3-#00ff00-exception3]", "test/draw/test_...
[ "test/draw/test_color.py::test_color_from_hex[fff-expected_result0-exception0]", "test/draw/test_color.py::test_color_from_hex[#fff-expected_result1-exception1]", "test/draw/test_color.py::test_color_from_hex[ffffff-expected_result2-exception2]", "test/draw/test_color.py::test_color_from_hex[#ffffff-expected_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add 'as_hex' method and corresponding test to `Color` class. ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
slackapi__python-slack-sdk-1431
1,431
slackapi/python-slack-sdk
null
3e2d7e825cce2d06a35324772ade72483d7cdec1
2023-11-21T05:36:22Z
diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 87febae70..96ecfb9e8 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -43,6 +43,12 @@ from .block_elements import StaticSelectElement from .block_elements import UserMultiSelectEle...
diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py index 5461ba8d3..4ea1158ef 100644 --- a/tests/slack_sdk/models/test_blocks.py +++ b/tests/slack_sdk/models/test_blocks.py @@ -22,6 +22,12 @@ HeaderBlock, VideoBlock, Option, + RichTextBlock, + RichTextSection...
[ { "components": [ { "doc": "", "lines": [ 1844, 1845 ], "name": "RichTextElement", "signature": "class RichTextElement(BlockElement):", "type": "class" }, { "doc": "", "lines": [ 1848, 1871 ...
[ "tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq", "tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2", "tests/slack_sdk/models/tes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fix #1428 Add rich_text classes to slack_sdk.models module ## Summary This pull request resolves #1428 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/...
Here is the discussion in the issues of the pull request. <issues> Add rich_text classes to slack_sdk.models module I'm currently refactoring code using `slack_sdk` models, and most of my modals use `RichText` objects. I've noticed while available in Block Kit Builder and documented thoroughly, there is not a model for...
2997a1786c4fd969b00ce69af888ebae8e8ebed0
conan-io__conan-15136
15,136
conan-io/conan
null
412a0279dbe7da2f3d4dcb1f8940bc51c3baac3a
2023-11-19T20:53:34Z
diff --git a/conan/cli/printers/graph.py b/conan/cli/printers/graph.py index a7a67a09588..6513636f8d4 100644 --- a/conan/cli/printers/graph.py +++ b/conan/cli/printers/graph.py @@ -56,6 +56,11 @@ def _format_resolved(title, reqs_to_print): for k, v in sorted(reqs_to_print.items()): output.info(" ...
diff --git a/conans/test/integration/graph/test_replace_requires.py b/conans/test/integration/graph/test_replace_requires.py new file mode 100644 index 00000000000..9fb129fda07 --- /dev/null +++ b/conans/test/integration/graph/test_replace_requires.py @@ -0,0 +1,144 @@ +import json + +import pytest + +from conans.model...
[ { "components": [ { "doc": "", "lines": [ 238, 270 ], "name": "DepsGraphBuilder._resolve_replace_requires", "signature": "def _resolve_replace_requires(self, node, require, profile_build, profile_host, graph):", "type": "function" }...
[ "conans/test/integration/graph/test_replace_requires.py::TestReplaceRequires::test_alternative[False-dep/1.3-dep/*-dep/1.1-dep/1.1]", "conans/test/integration/graph/test_replace_requires.py::TestReplaceRequires::test_alternative[False-dep/[>=1.0", "conans/test/integration/graph/test_replace_requires.py::TestRep...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> require-replaces proposal Changelog: Feature: New ``[replace_requires]`` and ``[replace_tool_requires]`` in profile for redefining requires, useful for package replacements like ``zlibng/zlib``, to so...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
roboflow__supervision-605
605
roboflow/supervision
null
bb7695a7744932553ef5e9665e8ca0064b458450
2023-11-16T12:59:04Z
diff --git a/supervision/__init__.py b/supervision/__init__.py index 44f25f7f1..93f4626fa 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -35,6 +35,7 @@ from supervision.detection.tools.polygon_zone import PolygonZone, PolygonZoneAnnotator from supervision.detection.utils import ( box_iou_b...
diff --git a/test/detection/test_core.py b/test/detection/test_core.py index 9708f338d..0d17e09b3 100644 --- a/test/detection/test_core.py +++ b/test/detection/test_core.py @@ -270,6 +270,6 @@ def test_get_anchor_coordinates( expected_result: np.ndarray, exception: Exception, ) -> None: - result = detecti...
[ { "components": [ { "doc": "Calculates and returns the coordinates of a specific anchor point\nwithin the bounding boxes defined by the `xyxy` attribute. The anchor\npoint can be any of the predefined positions in the `Position` enum,\nsuch as `CENTER`, `CENTER_LEFT`, `BOTTOM_RIGHT`, etc.\n\nArgs:...
[ "test/detection/test_core.py::test_getitem[detections0-index0-expected_result0-exception0]", "test/detection/test_core.py::test_getitem[detections1-index1-expected_result1-exception1]", "test/detection/test_core.py::test_getitem[detections2-index2-expected_result2-exception2]", "test/detection/test_core.py::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add centroid calculation for binary masks # Description Added `calculate_centroids` function to compute center of mass for binary mask representations. Method added to `utils.py` and method import ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
pyvista__pyvista-5192
5,192
pyvista/pyvista
0.43
673600daf5c1a4633b1750fb0849f77733dfe48a
2023-11-14T01:57:17Z
diff --git a/pyvista/plotting/_property.py b/pyvista/plotting/_property.py index 36c7af1b414..17a5ae55a21 100644 --- a/pyvista/plotting/_property.py +++ b/pyvista/plotting/_property.py @@ -2,6 +2,7 @@ from typing import Union import pyvista +from pyvista import vtk_version_info from pyvista.core.utilities.misc imp...
diff --git a/tests/plotting/test_property.py b/tests/plotting/test_property.py index 3662cc0936b..072ef3040ea 100644 --- a/tests/plotting/test_property.py +++ b/tests/plotting/test_property.py @@ -44,6 +44,15 @@ def test_property_opacity(prop): prop.opacity = 2 +@pytest.mark.skipif(pv.vtk_version_info < (9...
[ { "components": [ { "doc": "", "lines": [ 463, 466 ], "name": "Property.edge_opacity", "signature": "def edge_opacity(self, value: float):", "type": "function" } ], "file": "pyvista/plotting/_property.py" }, { "compo...
[ "tests/plotting/test_property.py::test_property_edge_opacity" ]
[ "tests/plotting/test_property.py::test_check_range", "tests/plotting/test_property.py::test_property_init", "tests/plotting/test_property.py::test_property_style", "tests/plotting/test_property.py::test_property_edge_color", "tests/plotting/test_property.py::test_property_opacity", "tests/plotting/test_pr...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `edge_opacity` property to `Property` class ### Overview <!-- Please insert a high-level description of this pull request here. --> resolves #5191 <!-- Be sure to link other PRs or issues t...
Here is the discussion in the issues of the pull request. <issues> add SetEdgeOpacity ### Describe the feature you would like to be added. Is it possible to add `SetEdgeOpacity` ? ### Links to VTK Documentation, Examples, or Class Definitions. https://vtk.org/doc/nightly/html/classvtkProperty.html#abe49ba1d9df...
25921025e45cafe97b2e274de39c3076b3c84681
googleapis__python-aiplatform-2956
2,956
googleapis/python-aiplatform
null
568d833bf44872b1045a4e2479451aedf592bf9e
2023-11-13T21:07:14Z
diff --git a/google/cloud/aiplatform/compat/types/__init__.py b/google/cloud/aiplatform/compat/types/__init__.py index 83387b064f..f543fb0114 100644 --- a/google/cloud/aiplatform/compat/types/__init__.py +++ b/google/cloud/aiplatform/compat/types/__init__.py @@ -52,6 +52,7 @@ index_endpoint as index_endpoint_v1bet...
diff --git a/tests/unit/aiplatform/test_matching_engine_index.py b/tests/unit/aiplatform/test_matching_engine_index.py index 40d12ef0a9..36320a13b3 100644 --- a/tests/unit/aiplatform/test_matching_engine_index.py +++ b/tests/unit/aiplatform/test_matching_engine_index.py @@ -35,6 +35,7 @@ from google.cloud.aiplatform.c...
[ { "components": [ { "doc": "Remove datapoints for this index.\n\nArgs:\n datapoints_ids (Sequence[str]):\n Required. The list of datapoints ids to be deleted.\n\nReturns:\n MatchingEngineIndex - Index resource object", "lines": [ 665, 703 ], ...
[ "tests/unit/aiplatform/test_matching_engine_index.py::TestMatchingEngineIndex::test_init_index[index_id]", "tests/unit/aiplatform/test_matching_engine_index.py::TestMatchingEngineIndex::test_init_index[projects/test-project/locations/us-central1/indexes/index_id]", "tests/unit/aiplatform/test_matching_engine_in...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: add `remove_datapoints()` to `MatchingEngineIndex`. feat: add `remove_datapoints()` to `MatchingEngineIndex`. ---------- </request> There are several new functions or classes that need to be ...
67358fa6a830eb842f6b52d09061af4a41b54af6
google-deepmind__optax-634
634
google-deepmind/optax
null
b7ff8ac43b59b27e4db28769995aade577ce4f99
2023-11-13T17:03:04Z
diff --git a/optax/contrib/mechanic.py b/optax/contrib/mechanic.py index 17e9f6602..aef7d18d4 100644 --- a/optax/contrib/mechanic.py +++ b/optax/contrib/mechanic.py @@ -26,31 +26,18 @@ using Mechanic to be the same for reasonably large batch sizes (>1k). """ - -import functools import operator from typing import ...
diff --git a/optax/tree_utils/_tree_math_test.py b/optax/tree_utils/_tree_math_test.py new file mode 100644 index 000000000..0c7f1210e --- /dev/null +++ b/optax/tree_utils/_tree_math_test.py @@ -0,0 +1,56 @@ +# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. +# +# Licensed under the Apache License, V...
[ { "components": [ { "doc": "", "lines": [ 31, 32 ], "name": "_vdot_safe", "signature": "def _vdot_safe(a, b):", "type": "function" }, { "doc": "Compute the inner product between two pytrees.\n\nArgs:\n tree_x: first p...
[ "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_tree_vdot" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add tree_vdot to tree_utils. Add tree_vdot to tree_utils. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIO...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
google-deepmind__optax-632
632
google-deepmind/optax
null
35920a3712d71992429dc0bd605e75d31cbe2b21
2023-11-13T14:40:27Z
diff --git a/optax/__init__.py b/optax/__init__.py index 0b373684d..6f844478d 100644 --- a/optax/__init__.py +++ b/optax/__init__.py @@ -17,6 +17,7 @@ from optax import contrib from optax import losses from optax import monte_carlo +from optax import projections from optax import schedules from optax import second...
diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py new file mode 100644 index 000000000..15d4f1204 --- /dev/null +++ b/optax/projections/_projections_test.py @@ -0,0 +1,47 @@ +# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. +# +# Licensed under the Apache L...
[ { "components": [ { "doc": "Projection onto the non-negative orthant.\n\n.. math::\n\n \\underset{p}{\\text{argmin}} ~ ||x - p||_2^2 \\quad\n \\textrm{subject to} \\quad p \\ge 0\n\nwhere :math:`x` is the input pytree.\n\nArgs:\n pytree: pytree to project.\nReturns:\n projected pytree, with th...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_non_negative" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Start optax.projections subpackage and add projection_non_negative. Start optax.projections subpackage and add projection_non_negative. In the future, this subpackage will contain more projections (p...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
pvlib__pvlib-python-1907
1,907
pvlib/pvlib-python
0.9
4e99ddca47499715231578c3eae81ec0c4db8573
2023-11-12T20:46:36Z
diff --git a/docs/examples/irradiance-transposition/plot_rtranpose_limitations.py b/docs/examples/irradiance-transposition/plot_rtranpose_limitations.py new file mode 100644 index 0000000000..8df8339ad4 --- /dev/null +++ b/docs/examples/irradiance-transposition/plot_rtranpose_limitations.py @@ -0,0 +1,181 @@ +""" +Reve...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index ba66f4dc36..55fef490ba 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -782,6 +782,50 @@ def test_dirint_min_cos_zenith_max_zenith(): assert_series_equal(out, expected, check_less_precise=True) ...
diff --git a/docs/sphinx/source/reference/irradiance/transposition.rst b/docs/sphinx/source/reference/irradiance/transposition.rst index 7b3624e692..22136f0c58 100644 --- a/docs/sphinx/source/reference/irradiance/transposition.rst +++ b/docs/sphinx/source/reference/irradiance/transposition.rst @@ -15,3 +15,4 @@ Transpo...
[ { "components": [ { "doc": "Transposition function that includes decomposition of GHI using the\ncontinuous Erbs-Driesse model.\n\nHelper function for ghi_from_poa_driesse_2023.", "lines": [ 1448, 1471 ], "name": "_poa_from_ghi", "signature": "de...
[ "pvlib/tests/test_irradiance.py::test_ghi_from_poa_driesse" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement reverse transposition using Perez-Driesse forward transposition <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesita...
Here is the discussion in the issues of the pull request. <issues> Demonstrate reverse transposition using Perez-Driesse forward transposition **Is your feature request related to a problem? Please describe.** One of the motivations for developing the Perez-Driesse transposition #1841 was to facilitate and improve rev...
d53f97e984bfdd268aa92f8bf482ced0edda0110
google-deepmind__optax-629
629
google-deepmind/optax
null
83360c55f5afe0959b996e8653a9e2c85a310821
2023-11-10T22:49:29Z
diff --git a/docs/api.rst b/docs/api.rst index 39b129d0b..8552cd33a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -619,6 +619,7 @@ Schedules .. autofunction:: piecewise_constant_schedule .. autofunction:: piecewise_interpolate_schedule .. autofunction:: polynomial_schedule +.. autofunction:: optax.contrib.reduce_o...
diff --git a/optax/contrib/reduce_on_plateau_test.py b/optax/contrib/reduce_on_plateau_test.py new file mode 100644 index 000000000..97980ceb3 --- /dev/null +++ b/optax/contrib/reduce_on_plateau_test.py @@ -0,0 +1,110 @@ +# Copyright 2023 DeepMind Technologies Limited. All Rights Reserved. +# +# Licensed under the Apac...
diff --git a/docs/api.rst b/docs/api.rst index 39b129d0b..8552cd33a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -619,6 +619,7 @@ Schedules .. autofunction:: piecewise_constant_schedule .. autofunction:: piecewise_interpolate_schedule .. autofunction:: polynomial_schedule +.. autofunction:: optax.contrib.reduce_o...
[ { "components": [ { "doc": "State for the ReduceLROnPlateau callback.", "lines": [ 30, 39 ], "name": "ReduceLROnPlateauState", "signature": "class ReduceLROnPlateauState(NamedTuple):", "type": "class" }, { "doc": "Redu...
[ "optax/contrib/reduce_on_plateau_test.py::ReduceLROnPlateauTest::test_learning_rate_is_not_reduced", "optax/contrib/reduce_on_plateau_test.py::ReduceLROnPlateauTest::test_learning_rate_not_reduced_during_cooldown", "optax/contrib/reduce_on_plateau_test.py::ReduceLROnPlateauTest::test_learning_rate_reduced_after...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add reduce_on_plateau LR scheduler to contrib directory. Following pull request #505 and issue #221 with @mtthss suggestions on changing where the scheduler is located (contrib) and using GradientTran...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
tobymao__sqlglot-2531
2,531
tobymao/sqlglot
null
08d5d779c79736859471d52e4acf82ad77f16483
2023-11-08T20:42:53Z
diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py index 4f18e75a27..b5b02f3e46 100644 --- a/sqlglot/dialects/hive.py +++ b/sqlglot/dialects/hive.py @@ -242,10 +242,10 @@ class Tokenizer(tokens.Tokenizer): "ADD JAR": TokenType.COMMAND, "ADD JARS": TokenType.COMMAND, ...
diff --git a/tests/dialects/test_spark.py b/tests/dialects/test_spark.py index 841a005365..97427f234b 100644 --- a/tests/dialects/test_spark.py +++ b/tests/dialects/test_spark.py @@ -230,11 +230,18 @@ def test_spark(self): self.assertIsInstance(expr.args.get("ignore_nulls"), exp.Boolean) self.assertEq...
[]
[ "tests/dialects/test_spark.py::TestSpark::test_spark" ]
[ "tests/dialects/test_spark.py::TestSpark::test_bool_or", "tests/dialects/test_spark.py::TestSpark::test_current_user", "tests/dialects/test_spark.py::TestSpark::test_ddl", "tests/dialects/test_spark.py::TestSpark::test_explode_to_unnest", "tests/dialects/test_spark.py::TestSpark::test_hint", "tests/dialec...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(hive): add fine-grained parsing for REFRESH Fixes #2530 ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINIT...
Here is the discussion in the issues of the pull request. <issues> `REFRESH TABLE table.name` doesn't seem to parse as expected Read: Spark **Fully reproducible code snippet** ```python import sqlglot sqlglot.parse_one("REFRESH TABLE table.name", read="spark") ``` ``` > (COMMAND this: REFRESH, expression: ...
ceb42fabad60312699e4b15936aeebac00e22e4d
huggingface__datasets-6391
6,391
huggingface/datasets
null
27d1fe52857c6a25a29cac63a296405136b2797c
2023-11-08T17:31:59Z
diff --git a/docs/source/image_dataset.mdx b/docs/source/image_dataset.mdx index 030406f6a46..8ec6d867b1f 100644 --- a/docs/source/image_dataset.mdx +++ b/docs/source/image_dataset.mdx @@ -148,6 +148,46 @@ Upload your dataset with [`~datasets.DatasetDict.push_to_hub`]: >>> dataset.push_to_hub("stevhliu/my-image-captio...
diff --git a/tests/packaged_modules/test_webdataset.py b/tests/packaged_modules/test_webdataset.py new file mode 100644 index 00000000000..c9b032dfa51 --- /dev/null +++ b/tests/packaged_modules/test_webdataset.py @@ -0,0 +1,63 @@ +import tarfile + +import pytest + +from datasets import DownloadManager, Features, Image,...
diff --git a/docs/source/image_dataset.mdx b/docs/source/image_dataset.mdx index 030406f6a46..8ec6d867b1f 100644 --- a/docs/source/image_dataset.mdx +++ b/docs/source/image_dataset.mdx @@ -148,6 +148,46 @@ Upload your dataset with [`~datasets.DatasetDict.push_to_hub`]: >>> dataset.push_to_hub("stevhliu/my-image-captio...
[ { "components": [ { "doc": "Determine the length of a in bytes.", "lines": [ 40, 47 ], "name": "bytelen", "signature": "def bytelen(a):", "type": "function" }, { "doc": "Return a the raw data corresponding to a.", ...
[ "tests/packaged_modules/test_webdataset.py::test_webdataset_errors_on_bad_file" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Webdataset dataset builder Allow `load_dataset` to support the Webdataset format. It allows users to download/stream data from local files or from the Hugging Face Hub. Moreover it will enable t...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
Project-MONAI__MONAI-7198
7,198
Project-MONAI/MONAI
null
97678fa75a851c411c713658059bac3b2ce5cf70
2023-11-03T21:24:28Z
diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst index 8990e7991d..bd3feb3497 100644 --- a/docs/source/transforms.rst +++ b/docs/source/transforms.rst @@ -661,6 +661,27 @@ Post-processing :members: :special-members: __call__ +Regularization +^^^^^^^^^^^^^^ + +`CutMix` +"""""""" +.. autoc...
diff --git a/tests/test_regularization.py b/tests/test_regularization.py new file mode 100644 index 0000000000..d381ea72ca --- /dev/null +++ b/tests/test_regularization.py @@ -0,0 +1,90 @@ +# Copyright (c) MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file e...
diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst index 8990e7991d..bd3feb3497 100644 --- a/docs/source/transforms.rst +++ b/docs/source/transforms.rst @@ -661,6 +661,27 @@ Post-processing :members: :special-members: __call__ +Regularization +^^^^^^^^^^^^^^ + +`CutMix` +"""""""" +.. autoc...
[ { "components": [ { "doc": "", "lines": [ 24, 57 ], "name": "Mixer", "signature": "class Mixer(RandomizableTransform):", "type": "class" }, { "doc": "Mixer is a base class providing the basic logic for the mixup-class ...
[ "tests/test_regularization.py::TestMixup::test_mixup", "tests/test_regularization.py::TestMixup::test_mixupd", "tests/test_regularization.py::TestCutMix::test_cutmix", "tests/test_regularization.py::TestCutMix::test_cutmixd", "tests/test_regularization.py::TestCutOut::test_cutout" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 2872 implementation of mixup, cutmix and cutout Fixes #2872 ### Description Implementation of mixup, cutmix and cutout as described in the original papers. Current implementation support both,...
Here is the discussion in the issues of the pull request. <issues> Mismatch result in "integration_segmentation_3d" ``` ====================================================================== ERROR: test_timing (__main__.IntegrationSegmentation3D) ----------------------------------------------------------------------...
e73257caa79309dcce1e93abf1632f4bfd75b11f
tobymao__sqlglot-2484
2,484
tobymao/sqlglot
null
df0a69842daf3ec957effba206b79e27a97c91b4
2023-10-30T16:11:39Z
diff --git a/sqlglot/dialects/spark.py b/sqlglot/dialects/spark.py index 8461920fe8..ba73ac01ab 100644 --- a/sqlglot/dialects/spark.py +++ b/sqlglot/dialects/spark.py @@ -56,7 +56,11 @@ class Parser(Spark2.Parser): def _parse_generated_as_identity( self, - ) -> exp.GeneratedAsIdentityColu...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index 47750207f2..240b2fbe02 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -1256,6 +1256,20 @@ def test_temp_table(self): }, ) + def test_temporal_table(self): + self.validate_identit...
[]
[ "tests/dialects/test_tsql.py::TestTSQL::test_temporal_table" ]
[ "tests/dialects/test_tsql.py::TestTSQL::test__types_ints", "tests/dialects/test_tsql.py::TestTSQL::test_add_date", "tests/dialects/test_tsql.py::TestTSQL::test_charindex", "tests/dialects/test_tsql.py::TestTSQL::test_commit", "tests/dialects/test_tsql.py::TestTSQL::test_convert_date_format", "tests/dialec...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(tsql): add PERIOD FOR SYSTEM_TIME constraint, SYSTEM_VERSIONING property Add GENERATED ALWAYS AS ROW START/END column constraint, PERIOD FOR SYSTEM_TIME table constraint, and SYSTEM_VERSIONING pr...
ceb42fabad60312699e4b15936aeebac00e22e4d
astropy__astropy-15545
15,545
astropy/astropy
v5.3
955e810650f1bf8cd159f71b54afe7ea6f43a77d
2023-10-27T17:09:27Z
diff --git a/astropy/modeling/functional_models.py b/astropy/modeling/functional_models.py index 769b4a80b935..97acf450c41a 100644 --- a/astropy/modeling/functional_models.py +++ b/astropy/modeling/functional_models.py @@ -27,6 +27,7 @@ "Disk2D", "Gaussian1D", "Gaussian2D", + "GeneralSersic2D", "...
diff --git a/astropy/modeling/tests/example_models.py b/astropy/modeling/tests/example_models.py index ae79024f1bed..bf90be1e1c9a 100644 --- a/astropy/modeling/tests/example_models.py +++ b/astropy/modeling/tests/example_models.py @@ -66,6 +66,7 @@ Exponential1D, Gaussian1D, Gaussian2D, + GeneralSersi...
diff --git a/docs/changes/modeling/15545.feature.rst b/docs/changes/modeling/15545.feature.rst new file mode 100644 index 000000000000..4768112a91e8 --- /dev/null +++ b/docs/changes/modeling/15545.feature.rst @@ -0,0 +1,2 @@ +Added a ``GeneralSersic2D`` model that can have "boxy" or "disky" +isophotes. diff --git a/doc...
[ { "components": [ { "doc": "Generalized two dimensional Sersic surface brightness profile that\nallows for \"boxy\" or \"disky\" (kite-like) isophote shapes.\n\nParameters\n----------\namplitude : float\n Surface brightness at ``r_eff``.\nr_eff : float\n Effective (half-light) radius.\nn : f...
[ "astropy/modeling/tests/test_models_quantities.py::test_models_evaluate_without_units[model0]", "astropy/modeling/tests/test_models_quantities.py::test_models_evaluate_without_units[model2]", "astropy/modeling/tests/test_models_quantities.py::test_models_evaluate_without_units[model3]", "astropy/modeling/test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add GeneralSersic2D model <!-- These comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure to check out our contributing guidelines, htt...
2d281019494aaebf522f6626c0dae37510c16688
tobymao__sqlglot-2467
2,467
tobymao/sqlglot
null
7407568a428e18de42ed6fe82a21a3958a2d8db3
2023-10-27T03:06:02Z
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index 739e8d7254..acdd17eaf2 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -809,13 +809,6 @@ def isnull_to_is_null(args: t.List) -> exp.Expression: return exp.Paren(this=exp.Is(this=seq_get(args, 0), expression=e...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index 0d43b2aea1..7bf780f17d 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -1861,3 +1861,41 @@ def test_qualify(self): "tsql": "SELECT * FROM (SELECT *, COUNT(*) OVER () AS _w FROM t) AS _...
[]
[ "tests/dialects/test_dialect.py::TestDialect::test_nested_ctes", "tests/dialects/test_spark.py::TestSpark::test_insert_cte", "tests/dialects/test_tsql.py::TestTSQL::test_tsql" ]
[ "tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defined_type", "tests/dialects/test_dialect.py::TestDialect::test_co...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat!(hive,tsql): move CTEs to top-level, fix T-SQL recursive CTEs This PR: - Moves all CTEs to the top-level expression for Hive, Spark2 and T-SQL, since they don't allow nested CTEs - Fixes a tr...
ceb42fabad60312699e4b15936aeebac00e22e4d
boto__botocore-3044
3,044
boto/botocore
null
b0c6a7630fc612529037d17b6f16f70343c3d87e
2023-10-26T01:49:05Z
diff --git a/.changes/next-release/feature-ContainerProvider-78717.json b/.changes/next-release/feature-ContainerProvider-78717.json new file mode 100644 index 0000000000..0f856432a5 --- /dev/null +++ b/.changes/next-release/feature-ContainerProvider-78717.json @@ -0,0 +1,5 @@ +{ + "type": "feature", + "category": "C...
diff --git a/tests/unit/test_credentials.py b/tests/unit/test_credentials.py index 4301b6446f..089fcc8695 100644 --- a/tests/unit/test_credentials.py +++ b/tests/unit/test_credentials.py @@ -2968,6 +2968,14 @@ def test_refresh_giving_expired_credentials_raises_exception(self): class TestContainerProvider(BaseEnvVa...
diff --git a/.changes/next-release/feature-ContainerProvider-78717.json b/.changes/next-release/feature-ContainerProvider-78717.json new file mode 100644 index 0000000000..0f856432a5 --- /dev/null +++ b/.changes/next-release/feature-ContainerProvider-78717.json @@ -0,0 +1,5 @@ +{ + "type": "feature", + "category": "C...
[ { "components": [ { "doc": "", "lines": [ 1934, 1936 ], "name": "ContainerProvider._validate_auth_token", "signature": "def _validate_auth_token(self, auth_token):", "type": "function" } ], "file": "botocore/credentials.py" ...
[ "tests/unit/test_credentials.py::TestContainerProvider::test_can_pass_auth_token_from_file", "tests/unit/test_credentials.py::TestContainerProvider::test_throws_error_on_illegal_header", "tests/unit/test_credentials.py::TestContainerProvider::test_throws_error_on_invalid_token_file", "tests/unit/test_utils.py...
[ "tests/unit/test_credentials.py::TestCredentials::test_detect_nonascii_character", "tests/unit/test_credentials.py::TestCredentials::test_unicode_input", "tests/unit/test_credentials.py::TestRefreshableCredentials::test_detect_nonascii_character", "tests/unit/test_credentials.py::TestRefreshableCredentials::t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature eks credentials This PR updates the existing container credential fetcher to support retrieving credentials from EKS ---------- </request> There are several new functions or classes that n...
5e4b564dd0f9aab16a404251ebd3e675c9681492
sqlfluff__sqlfluff-5349
5,349
sqlfluff/sqlfluff
2.2
65328e6b701f46ebb25b758c10b7572111f130ab
2023-10-24T22:53:18Z
diff --git a/examples/05_simple_api_config.py b/examples/05_simple_api_config.py index 1f52f9e6018..a8dfe885d69 100644 --- a/examples/05_simple_api_config.py +++ b/examples/05_simple_api_config.py @@ -19,9 +19,17 @@ config = FluffConfig(configs={"core": {"dialect": "bigquery"}}) # 3b. FluffConfig objects can be creat...
diff --git a/test/core/config_test.py b/test/core/config_test.py index 673b8061938..707f98bcb3f 100644 --- a/test/core/config_test.py +++ b/test/core/config_test.py @@ -100,6 +100,19 @@ def test__config__load_from_string(): assert cfg == config_a +def test__config__from_strings(): + """Test loading config f...
[ { "components": [ { "doc": "Loads a config object given a series of nested config strings.\n\nConfig strings are incorporated from first to last, treating the\nfirst element as the \"root\" config, and then later config strings\nwill take precedence over any earlier values.", "lines": [ ...
[ "test/core/config_test.py::test__config__from_strings" ]
[ "test/core/config_test.py::test__config__nested_combine", "test/core/config_test.py::test__config__dict_diff", "test/core/config_test.py::test__config__load_file_dir", "test/core/config_test.py::test__config__load_from_string", "test/core/config_test.py::test__config__load_file_f", "test/core/config_test....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a public API for nesting config strings. This PR resolves #5207. This mostly uses existing machinery to create nested configs, but exposes it in an easier way and includes an example in the API ex...
Here is the discussion in the issues of the pull request. <issues> Public API to build nested configs ### Search before asking - [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues. ### Description I want to have a public API to be able to build `FluffConfig` instanc...
65328e6b701f46ebb25b758c10b7572111f130ab
tobymao__sqlglot-2454
2,454
tobymao/sqlglot
null
c8e87b6cab18924b6fa307252f19e83eef4f2f03
2023-10-24T17:42:27Z
diff --git a/sqlglot/dataframe/sql/functions.py b/sqlglot/dataframe/sql/functions.py index 1abbef18a8..a424ea4516 100644 --- a/sqlglot/dataframe/sql/functions.py +++ b/sqlglot/dataframe/sql/functions.py @@ -84,11 +84,11 @@ def min(col: ColumnOrName) -> Column: def max_by(col: ColumnOrName, ord: ColumnOrName) -> Co...
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 96a2512882..ed734b6da6 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -558,6 +558,37 @@ def test_presto(self, logger): "SELECT SPLIT_TO_MAP('a:1;b:2;a:3', ';', ':', (k, v1, v2) -> CONCAT(v1, ...
[]
[ "tests/dialects/test_presto.py::TestPresto::test_presto" ]
[ "tests/dialects/test_presto.py::TestPresto::test_cast", "tests/dialects/test_presto.py::TestPresto::test_ddl", "tests/dialects/test_presto.py::TestPresto::test_encode_decode", "tests/dialects/test_presto.py::TestPresto::test_hex_unhex", "tests/dialects/test_presto.py::TestPresto::test_interval_plural_to_sin...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add ArgMax, ArgMin expressions, fix their transpilation Fixes #2453 References: - https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/argmin - https://clickhouse.com/...
Here is the discussion in the issues of the pull request. <issues> Clickhouse/Trino/Duckdb max_by() doesn't transpile Trino and Duckdb have an aggregate function `max_by` which returns the value corresponding to the maximum of the 2nd argument. Clickhouse calls their function `argMax`. sqlglot currently ignores thi...
ceb42fabad60312699e4b15936aeebac00e22e4d
spec-first__connexion-1754
1,754
spec-first/connexion
null
1b72019b1bcd31191d4a37c2e4e7212dfe94566b
2023-10-23T22:27:23Z
diff --git a/connexion/apps/abstract.py b/connexion/apps/abstract.py index f70767984..c8912be1e 100644 --- a/connexion/apps/abstract.py +++ b/connexion/apps/abstract.py @@ -10,10 +10,12 @@ from starlette.types import ASGIApp, Receive, Scope, Send from connexion.jsonifier import Jsonifier +from connexion.lifecycle i...
diff --git a/tests/decorators/test_security.py b/tests/decorators/test_security.py index 41695072d..abb88eb01 100644 --- a/tests/decorators/test_security.py +++ b/tests/decorators/test_security.py @@ -10,7 +10,7 @@ OAuthResponseProblem, OAuthScopeProblem, ) -from connexion.lifecycle import ASGIRequest +from ...
diff --git a/docs/context.rst b/docs/context.rst index 288fd56ea..de344674c 100644 --- a/docs/context.rst +++ b/docs/context.rst @@ -24,12 +24,13 @@ See below for an explanation of the different variables. request ------- -A ``Request`` object representing the incoming request. This is an instance of the ``ASGIRequ...
[ { "components": [ { "doc": "", "lines": [ 93, 120 ], "name": "AsyncASGIApp", "signature": "class AsyncASGIApp(RoutedMiddleware[AsyncApi]):", "type": "class" }, { "doc": "", "lines": [ 97, 10...
[ "tests/decorators/test_security.py::test_get_tokeninfo_url", "tests/decorators/test_security.py::test_verify_oauth_missing_auth_header", "tests/decorators/test_security.py::test_verify_basic_missing_auth_header", "tests/decorators/test_security.py::test_raise_most_specific[errors0-OAuthProblem]", "tests/dec...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Centralize error handling in ExceptionMiddleware I was writing the documentation on exception handling, and I noticed that it was very hard to explain our current behavior. Error handlers can be r...
ee399fbfe627f86c461b353132e4d710f7127440
tobymao__sqlglot-2450
2,450
tobymao/sqlglot
null
7ded2536f348a0470af044b56fa0fd6cfb09bb0d
2023-10-23T18:49:30Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 67b4111047..7df8be234b 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -4174,6 +4174,10 @@ class Abs(Func): pass +class ApproxTopK(AggFunc): + arg_types = {"this": True, "expression": False, "counters": False} + + class ...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 78dfabe5c1..65b77ea047 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -9,6 +9,10 @@ class TestSnowflake(Validator): dialect = "snowflake" def test_snowflake(self): + expr = ...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::Te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(snowflake): register APPROX_TOP_K as AggFunc Fixes #2449 Reference: https://docs.snowflake.com/en/sql-reference/functions/approx_top_k ---------- </request> There are several new functions o...
Here is the discussion in the issues of the pull request. <issues> approx_top_k is not recognized as an aggregation function in Snowflake **Fully reproducible code snippet** ```python from sqlglot import Dialects, exp, parse_one query = "SELECT approx_top_k(field, 5) FROM some_table" parsed_query = parse_one(q...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-2447
2,447
tobymao/sqlglot
null
00e3515ff3157105d84f21f56cfb64bae3267640
2023-10-23T15:56:49Z
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index a1a1e3428a..3ad170f2a4 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -545,6 +545,12 @@ class Generator(generator.Generator): exp.VolatileProperty: exp.Properties.Location.UNSUPPORTED, ...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 5f8948abd3..78dfabe5c1 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -61,6 +61,18 @@ def test_snowflake(self): "SELECT {'test': 'best'}::VARIANT", "SELECT CAST(OBJEC...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::Te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add support for {fn ...} function syntax Related Slack thread: https://tobiko-data.slack.com/archives/C0448SFS3PF/p1697922425207749 ---------- </request> There are several new functions or cla...
ceb42fabad60312699e4b15936aeebac00e22e4d
huggingface__datasets-6318
6,318
huggingface/datasets
null
3aeb078ba1afd713e901df43343c160877403d07
2023-10-19T12:19:13Z
diff --git a/src/datasets/utils/py_utils.py b/src/datasets/utils/py_utils.py index 912824fa7f3..243bc0f99c9 100644 --- a/src/datasets/utils/py_utils.py +++ b/src/datasets/utils/py_utils.py @@ -736,6 +736,29 @@ def proxy(func): return proxy +if config.DILL_VERSION < version.parse("0.3.6"): + + @pklregister(s...
diff --git a/tests/test_fingerprint.py b/tests/test_fingerprint.py index 5538f27554e..f4d5d65744e 100644 --- a/tests/test_fingerprint.py +++ b/tests/test_fingerprint.py @@ -2,6 +2,7 @@ import os import pickle import subprocess +from functools import partial from hashlib import md5 from pathlib import Path from te...
[ { "components": [ { "doc": "", "lines": [ 753, 759 ], "name": "_save_set", "signature": "def _save_set(pickler, obj):", "type": "function" } ], "file": "src/datasets/utils/py_utils.py" } ]
[ "tests/test_fingerprint.py::HashingTest::test_set_stable" ]
[ "tests/test_fingerprint.py::RecurseDumpTest::test_dump_ignores_line_definition_of_function", "tests/test_fingerprint.py::RecurseDumpTest::test_dump_ipython_function", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_class", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_f...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Deterministic set hash Sort the items in a set according to their `datasets.fingerprint.Hasher.hash` hash to get a deterministic hash of sets. This is useful to get deterministic hashes of tokenize...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
roboflow__supervision-500
500
roboflow/supervision
null
aed9221307104c0b0ffcf3f3dcffdbf971031e62
2023-10-18T22:30:42Z
diff --git a/supervision/__init__.py b/supervision/__init__.py index 16de484a3..816142b90 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -44,6 +44,7 @@ from supervision.detection.tools.smoother import DetectionsSmoother from supervision.detection.utils import ( box_iou_batch, + box_non_...
diff --git a/test/detection/test_core.py b/test/detection/test_core.py index 12f3de281..af1d58762 100644 --- a/test/detection/test_core.py +++ b/test/detection/test_core.py @@ -5,7 +5,7 @@ import numpy as np import pytest -from supervision.detection.core import Detections +from supervision.detection.core import Det...
[ { "components": [ { "doc": "Perform non-maximum merging on the current set of object detections.\n\nArgs:\n threshold (float, optional): The intersection-over-union threshold\n to use for non-maximum merging. Defaults to 0.5.\n class_agnostic (bool, optional): Whether to perform class...
[ "test/detection/test_core.py::test_getitem[detections0-index0-expected_result0-exception0]", "test/detection/test_core.py::test_getitem[detections1-index1-expected_result1-exception1]", "test/detection/test_core.py::test_getitem[detections2-index2-expected_result2-exception2]", "test/detection/test_core.py::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Non-Maximum Merging (NMM) to Detections # Description Currently it is only possible to apply Non-Maximum Suppression (NMS) to Detections. In an attempt to increase the accuracy of object detec...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
joke2k__faker-1932
1,932
joke2k/faker
null
4cc139115e5201e353ccd662cfdefcbb50082c14
2023-10-18T05:32:20Z
diff --git a/faker/providers/color/cs_CZ/__init__.py b/faker/providers/color/cs_CZ/__init__.py new file mode 100644 index 0000000000..507f1451a5 --- /dev/null +++ b/faker/providers/color/cs_CZ/__init__.py @@ -0,0 +1,23 @@ +from .. import Provider as ColorProvider + + +class Provider(ColorProvider): + """Implement co...
diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py index 608277eb8e..9c581e90a1 100644 --- a/tests/providers/test_color.py +++ b/tests/providers/test_color.py @@ -16,6 +16,7 @@ from faker.providers.color.hy_AM import Provider as HyAmColorProvider from faker.providers.color.id_ID import Provide...
[ { "components": [ { "doc": "Implement color provider for ``cs_CZ`` locale.", "lines": [ 4, 22 ], "name": "Provider", "signature": "class Provider(ColorProvider):", "type": "class" } ], "file": "faker/providers/color/cs_CZ/__...
[ "tests/providers/test_color.py::TestColorProvider::test_safe_hex_color", "tests/providers/test_color.py::TestColorProvider::test_hex_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_css_color", "tests/providers/test_color...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Color for cs_CZ ### What does this change Add provider for color for cs_CZ ### What was wrong Missing color provider for cs_CZ ---------- </request> There are several new functions or cla...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
tobymao__sqlglot-2417
2,417
tobymao/sqlglot
null
77446481dd59c213368fe554e8011e9a7f5c0f71
2023-10-17T16:17:51Z
diff --git a/sqlglot/dataframe/sql/functions.py b/sqlglot/dataframe/sql/functions.py index d98feeec9e..7043086464 100644 --- a/sqlglot/dataframe/sql/functions.py +++ b/sqlglot/dataframe/sql/functions.py @@ -1113,7 +1113,7 @@ def reverse(col: ColumnOrName) -> Column: def flatten(col: ColumnOrName) -> Column: - r...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 7c36bea494..532968636a 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -911,7 +911,23 @@ def test_flatten(self): f.value AS "Contact", f1.value['type'] AS "Type", f1.value['content'] A...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/test_lineage.py::TestLineage::test_lineage_lateral_flatten" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::TestSnowflake::test_minus", "tests/dialects/test_snowflake.py::Test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(optimizer): qualify lateral flatten for snowflake Adds columns created by the FLATTEN function in snowflake to the TableAlias created when using it in a FROM ..., LATERAL FLATTEN call following t...
Here is the discussion in the issues of the pull request. <issues> Support lineage through a LATERAL FLATTEN from clause in Snowflake **Is your feature request related to a problem? Please describe.** I have a Snowflake SQL query like `SELECT VALUE FROM TABLE_A, LATERAL FLATTEN(TABLE_A.VARIANT_COLUMN)`. I would like t...
ceb42fabad60312699e4b15936aeebac00e22e4d
pyvista__pyvista-5055
5,055
pyvista/pyvista
0.43
e574da02bb2c2d7aafb2e8e15f55024505087b56
2023-10-11T23:44:19Z
diff --git a/pyvista/plotting/text.py b/pyvista/plotting/text.py index b5e0292d364..492990d6ed0 100644 --- a/pyvista/plotting/text.py +++ b/pyvista/plotting/text.py @@ -250,6 +250,14 @@ class TextProperty(_vtk.vtkTextProperty): shadow : bool, optional If enable the shadow. + justification_horizontal ...
diff --git a/tests/plotting/test_text.py b/tests/plotting/test_text.py index 2a15cbb4d46..0046eec024c 100644 --- a/tests/plotting/test_text.py +++ b/tests/plotting/test_text.py @@ -129,3 +129,34 @@ def test_property_set_font_file(prop): prop.set_font_file(font_file) with pytest.raises(FileNotFoundError): ...
[ { "components": [ { "doc": "", "lines": [ 520, 529 ], "name": "TextProperty.justification_horizontal", "signature": "def justification_horizontal(self, justification: str):", "type": "function" }, { "doc": "", ...
[ "tests/plotting/test_text.py::test_property_justification_horizontal[justification0]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification1]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification2]", "tests/plotting/test_text.py::test_property_justi...
[ "tests/plotting/test_text.py::test_corner_annotation_text", "tests/plotting/test_text.py::test_corner_annotation_prop", "tests/plotting/test_text.py::test_text_input", "tests/plotting/test_text.py::test_text_prop", "tests/plotting/test_text.py::test_text_position", "tests/plotting/test_text.py::test_prope...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `justification` property to `TextProperty` ### Overview <!-- Please insert a high-level description of this pull request here. --> Add `justify` property to `TextProperty`. ```python >>> i...
25921025e45cafe97b2e274de39c3076b3c84681
scikit-learn__scikit-learn-27566
27,566
scikit-learn/scikit-learn
1.5
77f87316a19130c894445f98e910c95a6ae59004
2023-10-11T09:57:28Z
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 30f75bcec950a..d319b311dddd7 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
diff --git a/sklearn/covariance/tests/test_graphical_lasso.py b/sklearn/covariance/tests/test_graphical_lasso.py index a7d251a5bbdfe..37ffd46290e22 100644 --- a/sklearn/covariance/tests/test_graphical_lasso.py +++ b/sklearn/covariance/tests/test_graphical_lasso.py @@ -16,6 +16,7 @@ graphical_lasso, ) from sklear...
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 30f75bcec950a..d319b311dddd7 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
[ { "components": [ { "doc": "Get metadata routing of this object.\n\nPlease check :ref:`User Guide <metadata_routing>` on how the routing\nmechanism works.\n\n.. versionadded:: 1.5\n\nReturns\n-------\nrouting : MetadataRouter\n A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsula...
[ "sklearn/covariance/tests/test_graphical_lasso.py::test_graphical_lasso_cv_scores_with_routing[42]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[GraphicalLassoCV]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_metadata_is_routed_correctly_to_splitter[GraphicalLas...
[ "sklearn/covariance/tests/test_graphical_lasso.py::test_graphical_lassos", "sklearn/covariance/tests/test_graphical_lasso.py::test_graphical_lasso_when_alpha_equals_0", "sklearn/covariance/tests/test_graphical_lasso.py::test_graphical_lasso_n_iter[cd]", "sklearn/covariance/tests/test_graphical_lasso.py::test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FEA Add metadata routing to GraphicalLassoCV <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/scikit-l...
c799133710d518f5fba2958bb0e0765ee280df12
tobymao__sqlglot-2381
2,381
tobymao/sqlglot
null
ae27e46cf60bbbcb456997afe942a6e8ab9d03c1
2023-10-06T09:26:55Z
diff --git a/sqlglot/schema.py b/sqlglot/schema.py index f0b279b004..9301b2a40b 100644 --- a/sqlglot/schema.py +++ b/sqlglot/schema.py @@ -71,7 +71,7 @@ def column_names( def get_column_type( self, table: exp.Table | str, - column: exp.Column, + column: exp.Column | str, di...
diff --git a/tests/test_schema.py b/tests/test_schema.py index 626fa11e2a..34c507df46 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -272,3 +272,8 @@ def test_same_number_of_qualifiers(self): str(ctx.exception), "Table z must match the schema's nesting level: 2.", ) +...
[]
[ "tests/test_schema.py::TestSchema::test_has_column" ]
[ "tests/test_schema.py::TestSchema::test_same_number_of_qualifiers", "tests/test_schema.py::TestSchema::test_schema", "tests/test_schema.py::TestSchema::test_schema_add_table_with_and_without_mapping", "tests/test_schema.py::TestSchema::test_schema_catalog", "tests/test_schema.py::TestSchema::test_schema_db"...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(schema): add method to check if column exists Thought something like this might be an improvement to the API ---------- </request> There are several new functions or classes that need to be imp...
ceb42fabad60312699e4b15936aeebac00e22e4d
huggingface__accelerate-2034
2,034
huggingface/accelerate
null
956114ac92cfbdfe0874ca73aa37ac815326f040
2023-10-05T12:06:08Z
diff --git a/docs/source/package_reference/tracking.md b/docs/source/package_reference/tracking.md index 36719db683a..6845ca4bc05 100644 --- a/docs/source/package_reference/tracking.md +++ b/docs/source/package_reference/tracking.md @@ -31,3 +31,5 @@ rendered properly in your Markdown viewer. - __init__ [[autodoc...
diff --git a/src/accelerate/test_utils/testing.py b/src/accelerate/test_utils/testing.py index 40afdac4813..bb887285954 100644 --- a/src/accelerate/test_utils/testing.py +++ b/src/accelerate/test_utils/testing.py @@ -31,10 +31,12 @@ from ..utils import ( gather, is_bnb_available, + is_clearml_available, ...
diff --git a/docs/source/package_reference/tracking.md b/docs/source/package_reference/tracking.md index 36719db683a..6845ca4bc05 100644 --- a/docs/source/package_reference/tracking.md +++ b/docs/source/package_reference/tracking.md @@ -31,3 +31,5 @@ rendered properly in your Markdown viewer. - __init__ [[autodoc...
[ { "components": [ { "doc": "A `Tracker` class that supports `clearml`. Should be initialized at the start of your script.\n\nArgs:\n run_name (`str`, *optional*):\n Name of the experiment. Environment variables `CLEARML_PROJECT` and `CLEARML_TASK` have priority over this\n argumen...
[ "tests/test_tracking.py::CustomTrackerTestCase::test_init_trackers", "tests/test_tracking.py::CustomTrackerTestCase::test_log" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ClearML tracker Adds ClearML to the supported trackers. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITI...
08101b9dde2b1a9658c2e363e3e9f5663ba06073
tobymao__sqlglot-2375
2,375
tobymao/sqlglot
null
347ac51da6a553a7904739f0f3ad6b4bb4db01c6
2023-10-04T22:12:33Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 1dd73f5e26..5edf785c0d 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -4778,6 +4778,11 @@ class Posexplode(Func): pass +# https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-predict#mlpredict_fun...
diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py index 8d172eaec8..5d17cc90a5 100644 --- a/tests/dialects/test_bigquery.py +++ b/tests/dialects/test_bigquery.py @@ -85,6 +85,24 @@ def test_bigquery(self): self.validate_identity("ROLLBACK TRANSACTION") self.validate_identi...
[]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery" ]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat", "tests/dialects/test_bigquery.py::TestBigQuery::test_json_object", "tests/dialects/test_bigquery.py::TestBigQuery::test_merge", "tests/dialects/test_bigquery.py::TestBigQuery::test_pushdown_cte_column_names", "tests/dialects/test_bigquery.p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(bigquery): add support for ML.PREDICT function Reference: https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-predict#mlpredict_function ---------- </request> There ...
ceb42fabad60312699e4b15936aeebac00e22e4d
slackapi__python-slack-sdk-1406
1,406
slackapi/python-slack-sdk
null
398923a417525ed5014bb0695a5a21ad0420815a
2023-10-03T04:53:03Z
diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 3dfd87d3f..87febae70 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -32,6 +32,7 @@ from .block_elements import InteractiveElement from .block_elements import LinkButtonElement f...
diff --git a/tests/slack_sdk/models/test_elements.py b/tests/slack_sdk/models/test_elements.py index 1b246b0a6..fe63d5fc0 100644 --- a/tests/slack_sdk/models/test_elements.py +++ b/tests/slack_sdk/models/test_elements.py @@ -34,6 +34,7 @@ NumberInputElement, UrlInputElement, WorkflowButtonElement, + R...
[ { "components": [ { "doc": "", "lines": [ 1339, 1370 ], "name": "RichTextInputElement", "signature": "class RichTextInputElement(InputInteractiveElement):", "type": "class" }, { "doc": "", "lines": [ ...
[ "tests/slack_sdk/models/test_elements.py::BlockElementTests::test_eq", "tests/slack_sdk/models/test_elements.py::BlockElementTests::test_parse_timepicker", "tests/slack_sdk/models/test_elements.py::InteractiveElementTests::test_with_input_interactive_element", "tests/slack_sdk/models/test_elements.py::Interac...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add RichTextInputElement to slack_sdk.models ## Summary This pull request adds RichTextInputElement to slack_sdk.models utilities. references: * https://api.slack.com/reference/block-kit/block-...
2997a1786c4fd969b00ce69af888ebae8e8ebed0
Textualize__textual-3410
3,410
Textualize/textual
null
3b170b074802fab825a698ca66be2196871700cf
2023-09-27T08:55:29Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 995286f9bd..9f4411e2f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed `DataTable` not scrolling to rows that were just added https://github.com/Textualize/textual/pull/3552 - ...
diff --git a/tests/document/test_document.py b/tests/document/test_document.py index b6e9952782..ad1c82b834 100644 --- a/tests/document/test_document.py +++ b/tests/document/test_document.py @@ -98,3 +98,42 @@ def test_get_selected_text_no_newline_at_end_of_file_windows(): document = Document(TEXT_WINDOWS) se...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 995286f9bd..9f4411e2f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed `DataTable` not scrolling to rows that were just added https://github.com/Textualize/textual/pull/3552 - ...
[ { "components": [ { "doc": "Given a location, returns the index from the document's text.\n\nArgs:\n location: The location in the document.\n\nReturns:\n The index in the document's text.", "lines": [ 323, 336 ], "name": "Document.get_index_from_l...
[ "tests/document/test_document.py::test_index_from_location[I", "tests/document/test_document.py::test_location_from_index[I" ]
[ "tests/document/test_document.py::test_text[I", "tests/document/test_document.py::test_lines_newline_eof", "tests/document/test_document.py::test_lines_no_newline_eof", "tests/document/test_document.py::test_lines_windows", "tests/document/test_document.py::test_lines_windows_newline", "tests/document/tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Document get_index_from_location / get_location_from_index **Please review the following checklist.** - [x] Docstrings on all new or modified functions / classes - [ ] Updated documentation ...
86e93536b991014e0ea4bf993068202b446bb698
pvlib__pvlib-python-1876
1,876
pvlib/pvlib-python
0.9
46851d91bb70e9b5521feb7ec119b057ec3d7f70
2023-09-26T18:06:02Z
diff --git a/docs/sphinx/source/reference/irradiance/transposition.rst b/docs/sphinx/source/reference/irradiance/transposition.rst index 4749b5d5b9..7b3624e692 100644 --- a/docs/sphinx/source/reference/irradiance/transposition.rst +++ b/docs/sphinx/source/reference/irradiance/transposition.rst @@ -10,6 +10,7 @@ Transpo...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index 2f660d5c97..8f24e7a605 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -273,6 +273,31 @@ def test_perez(irrad_data, ephem_data, dni_et, relative_airmass): assert_series_equal(out, expected, check_...
diff --git a/docs/sphinx/source/reference/irradiance/transposition.rst b/docs/sphinx/source/reference/irradiance/transposition.rst index 4749b5d5b9..7b3624e692 100644 --- a/docs/sphinx/source/reference/irradiance/transposition.rst +++ b/docs/sphinx/source/reference/irradiance/transposition.rst @@ -10,6 +10,7 @@ Transpo...
[ { "components": [ { "doc": "Compute the delta parameter, which represents sky dome \"brightness\"\nin the Perez and Perez-Driesse models.\n\nHelper function for perez_driesse transposition.", "lines": [ 1225, 1240 ], "name": "_calc_delta", "signa...
[ "pvlib/tests/test_irradiance.py::test_perez_driesse", "pvlib/tests/test_irradiance.py::test_perez_driesse_airmass", "pvlib/tests/test_irradiance.py::test_perez_driesse_components", "pvlib/tests/test_irradiance.py::test_perez_driesse_arrays", "pvlib/tests/test_irradiance.py::test_perez_driesse_scalar", "pv...
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Continuous version of the Perez transposition model implementation <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to a...
Here is the discussion in the issues of the pull request. <issues> Continuous version of the Perez transposition model **Is your feature request related to a problem? Please describe.** Due to the empirical look-up tables, the Perez transposition model produces small jumps in tilted irradiance under gradually evolving...
d53f97e984bfdd268aa92f8bf482ced0edda0110
sqlfluff__sqlfluff-5234
5,234
sqlfluff/sqlfluff
2.2
5ea25f5681fafa04ac45117ee8db9af1fa3941bb
2023-09-25T11:53:56Z
diff --git a/src/sqlfluff/dialects/dialect_ansi.py b/src/sqlfluff/dialects/dialect_ansi.py index b81b91b91b9..4fd91847490 100644 --- a/src/sqlfluff/dialects/dialect_ansi.py +++ b/src/sqlfluff/dialects/dialect_ansi.py @@ -120,6 +120,18 @@ class CompositeComparisonOperatorSegment(BaseSegment): type = "comparison_ope...
diff --git a/test/core/parser/lexer_test.py b/test/core/parser/lexer_test.py index 2762e3305a8..7685cb36b0d 100644 --- a/test/core/parser/lexer_test.py +++ b/test/core/parser/lexer_test.py @@ -223,7 +223,7 @@ def _load_result(*args, **kwargs): "placeholder", ), ("\...
[ { "components": [ { "doc": "A generic (likely letters only) segment.\n\nDefined here for type inheritance.\n\nThis is the base segment for things like keywords and\nnaked identifiers.", "lines": [ 123, 132 ], "name": "WordSegment", "signature": "...
[ "test/core/parser/lexer_test.py::test__parser__lexer_slicing_calls[call", "test/core/parser/lexer_test.py::test__parser__lexer_slicing_from_template_file[very", "test/core/parser/lexer_test.py::test__parser__lexer_slicing_from_template_file[special" ]
[ "test/core/parser/lexer_test.py::test__parser__lexer_obj[a", "test/core/parser/lexer_test.py::test__parser__lexer_obj[b.c-res1]", "test/core/parser/lexer_test.py::test__parser__lexer_obj[abc", "test/core/parser/lexer_test.py::test__parser__lexer_obj[abc'\\n", "test/core/parser/lexer_test.py::test__parser__l...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Introduce "word" segment **This is a follow-on from #5232.** We've got a bit of a rats nest around the `CodeSegment` currently. It doesn't define a `type` but some segments look for it in the `Type...
65328e6b701f46ebb25b758c10b7572111f130ab
pvlib__pvlib-python-1875
1,875
pvlib/pvlib-python
0.9
12ba8ee00dbe1cae3d4b4b4d8c0098f9144156e3
2023-09-25T04:23:07Z
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index b41a30b203..05100e9d17 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -46,6 +46,10 @@ of sources and file formats relevant to solar energy modeling. iotools...
diff --git a/pvlib/tests/iotools/test_solcast.py b/pvlib/tests/iotools/test_solcast.py new file mode 100644 index 0000000000..19b00b8611 --- /dev/null +++ b/pvlib/tests/iotools/test_solcast.py @@ -0,0 +1,324 @@ +from unittest.mock import patch +import pandas as pd +import pvlib +import pytest + + +@pytest.mark.pa...
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index b41a30b203..05100e9d17 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -46,6 +46,10 @@ of sources and file formats relevant to solar energy modeling. iotools...
[ { "components": [ { "doc": "", "lines": [ 13, 16 ], "name": "ParameterMap", "signature": "class ParameterMap:", "type": "class" }, { "doc": "Get irradiance and weather for a\nTypical Meteorological Year (TMY) at a requ...
[ "pvlib/tests/iotools/test_solcast.py::test__get_solcast[live/radiation_and_weather-params0-1234-json_response0]", "pvlib/tests/iotools/test_solcast.py::test_get_solcast_live[live/radiation_and_weather-get_solcast_live-params0-json_response0-True]", "pvlib/tests/iotools/test_solcast.py::test_get_solcast_live[liv...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add functionality to load Solcast API data to `iotools` - [x] Closes #1313 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) ...
Here is the discussion in the issues of the pull request. <issues> Integrate Solcast API into iotools **Is your feature request related to a problem? Please describe.** Get irradiance via Solcast API https://solcast.com/solar-data-api/api/ **Describe the solution you'd like** Use iotools to get irradiance data fr...
d53f97e984bfdd268aa92f8bf482ced0edda0110
gradio-app__gradio-5668
5,668
gradio-app/gradio
null
09ac63e818dd2a2fc569f4338f77986c5d3c92df
2023-09-24T01:14:53Z
diff --git a/.changeset/some-forks-raise.md b/.changeset/some-forks-raise.md new file mode 100644 index 0000000000..5d3a64aa6e --- /dev/null +++ b/.changeset/some-forks-raise.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +fix:Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas...
diff --git a/test/test_route_utils.py b/test/test_route_utils.py new file mode 100644 index 0000000000..66ebd751ba --- /dev/null +++ b/test/test_route_utils.py @@ -0,0 +1,27 @@ +from gradio.route_utils import set_replica_url_in_config + + +def test_set_replica_url(): + config = { + "components": [{"props": {}...
diff --git a/.changeset/some-forks-raise.md b/.changeset/some-forks-raise.md new file mode 100644 index 0000000000..5d3a64aa6e --- /dev/null +++ b/.changeset/some-forks-raise.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +fix:Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas...
[ { "components": [ { "doc": "If the Gradio app is running on Hugging Face Spaces and the machine has multiple replicas,\nwe pass in the direct URL to the replica so that we have the fully resolved path to any files\non that machine. This direct URL can be shared with other users and the path will s...
[ "test/test_route_utils.py::test_set_replica_url", "test/test_route_utils.py::test_url_without_trailing_slash" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas This PR makes a change to how we serve filepaths when running on Hugging Face Spaces with multiple replicas...
9c6d83d12e4b67c5638ba67281c6f018052c5b3e
pyvista__pyvista-4954
4,954
pyvista/pyvista
0.43
b7737bd1ec44ae6ff86ca59642da29ea71d62900
2023-09-24T00:47:31Z
diff --git a/doc/source/api/utilities/geometric.rst b/doc/source/api/utilities/geometric.rst index af2d82c85c7..d753930731d 100644 --- a/doc/source/api/utilities/geometric.rst +++ b/doc/source/api/utilities/geometric.rst @@ -84,3 +84,4 @@ Geometric sources are closer to the actual VTK pipeline. They serve as the ...
diff --git a/tests/core/test_geometric_sources.py b/tests/core/test_geometric_sources.py index 4b3c64dbb2a..7dcb303397f 100644 --- a/tests/core/test_geometric_sources.py +++ b/tests/core/test_geometric_sources.py @@ -32,3 +32,16 @@ def test_cylinder_source(): algo.direction = direction assert np.array_equal(a...
diff --git a/doc/source/api/utilities/geometric.rst b/doc/source/api/utilities/geometric.rst index af2d82c85c7..d753930731d 100644 --- a/doc/source/api/utilities/geometric.rst +++ b/doc/source/api/utilities/geometric.rst @@ -84,3 +84,4 @@ Geometric sources are closer to the actual VTK pipeline. They serve as the ...
[ { "components": [ { "doc": "Multiple lines source algorithm class.\n\nParameters\n----------\npoints : array_like[float], default: [[-0.5, 0.0, 0.0], [0.5, 0.0, 0.0]]\n List of points defining a broken line.", "lines": [ 508, 559 ], "name": "MultipleL...
[ "tests/core/test_geometric_sources.py::test_multiple_lines_source" ]
[ "tests/core/test_geometric_sources.py::test_cone_source", "tests/core/test_geometric_sources.py::test_cylinder_source" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `MultipleLinesSource` class ### Overview <!-- Please insert a high-level description of this pull request here. --> - Follow-up PR of #4860 . Add `CylinderSource` class. - ~~Inspired by https...
25921025e45cafe97b2e274de39c3076b3c84681
pyvista__pyvista-4890
4,890
pyvista/pyvista
0.43
bc912e9f40462204aa8f0c3c2e9eec7068dd40d7
2023-09-16T08:59:59Z
diff --git a/doc/source/api/utilities/geometric.rst b/doc/source/api/utilities/geometric.rst index 9e6bbc65f1b..af2d82c85c7 100644 --- a/doc/source/api/utilities/geometric.rst +++ b/doc/source/api/utilities/geometric.rst @@ -83,3 +83,4 @@ Geometric sources are closer to the actual VTK pipeline. They serve as the :t...
diff --git a/tests/core/test_geometric_sources.py b/tests/core/test_geometric_sources.py index 9562ade64cc..4b3c64dbb2a 100644 --- a/tests/core/test_geometric_sources.py +++ b/tests/core/test_geometric_sources.py @@ -18,3 +18,17 @@ def test_cone_source(): assert algo.angle == 0.0 algo = pv.ConeSource(radius=0...
diff --git a/doc/source/api/utilities/geometric.rst b/doc/source/api/utilities/geometric.rst index 9e6bbc65f1b..af2d82c85c7 100644 --- a/doc/source/api/utilities/geometric.rst +++ b/doc/source/api/utilities/geometric.rst @@ -83,3 +83,4 @@ Geometric sources are closer to the actual VTK pipeline. They serve as the :t...
[ { "components": [ { "doc": "Translate and orient a mesh to a new center and direction.\n\nBy default, the input mesh is considered centered at the origin\nand facing in the x direction.\n\nParameters\n----------\nsurf : pyvista.core.pointset.PolyData\n Mesh to be translated and oriented.\ncente...
[ "tests/core/test_geometric_sources.py::test_cylinder_source" ]
[ "tests/core/test_geometric_sources.py::test_cone_source" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `CylinderSource` class ### Overview <!-- Please insert a high-level description of this pull request here. --> - Follow-up PR of #4860 . Add `CylinderSource` class. - Move `translate` functio...
25921025e45cafe97b2e274de39c3076b3c84681
conan-io__conan-14743
14,743
conan-io/conan
null
e9b13cff49fa0e991f179343ebf3c807e89938f5
2023-09-14T23:10:36Z
diff --git a/conan/cli/commands/profile.py b/conan/cli/commands/profile.py index bb3254fe523..27abff00d1f 100644 --- a/conan/cli/commands/profile.py +++ b/conan/cli/commands/profile.py @@ -1,3 +1,4 @@ +import json import os from conan.api.output import ConanOutput, cli_out_write @@ -22,7 +23,14 @@ def profiles_list...
diff --git a/conans/test/integration/command/test_profile.py b/conans/test/integration/command/test_profile.py index 2cc252e3ce2..86207bb4678 100644 --- a/conans/test/integration/command/test_profile.py +++ b/conans/test/integration/command/test_profile.py @@ -1,3 +1,4 @@ +import json import os from conans.test.uti...
[ { "components": [ { "doc": "", "lines": [ 26, 30 ], "name": "json_profiles", "signature": "def json_profiles(profiles):", "type": "function" } ], "file": "conan/cli/commands/profile.py" } ]
[ "conans/test/integration/command/test_profile.py::test_profile_show_json" ]
[ "conans/test/integration/command/test_profile.py::test_profile_path", "conans/test/integration/command/test_profile.py::test_profile_path_missing", "conans/test/integration/command/test_profile.py::test_ignore_paths_when_listing_profiles" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> profile show --format=json Changelog: Feature: Add ``--format=json`` formatter to ``conan profile show`` command Docs: https://github.com/conan-io/docs/pull/3388 Implement https://github.com/conan...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-14731
14,731
conan-io/conan
null
98b5c6acda0bdde4fb9a1a99496265b10dc827f5
2023-09-13T22:48:27Z
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 07a0f8efa89..c42c6186b89 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -840,8 +840,23 @@ def __init__(self, conanfile, toolchain, items=None): for name, block...
diff --git a/conans/test/unittests/tools/cmake/test_cmaketoolchain.py b/conans/test/unittests/tools/cmake/test_cmaketoolchain.py index a5e2bec1a9f..3c6e42458f6 100644 --- a/conans/test/unittests/tools/cmake/test_cmaketoolchain.py +++ b/conans/test/unittests/tools/cmake/test_cmaketoolchain.py @@ -49,6 +49,40 @@ def test...
[ { "components": [ { "doc": "", "lines": [ 843, 844 ], "name": "ToolchainBlocks.keys", "signature": "def keys(self):", "type": "function" }, { "doc": "", "lines": [ 846, 847 ], ...
[ "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_remove", "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_filter", "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_dict_keys" ]
[ "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_cmake_toolchain", "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_template_remove", "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_template_change", "conans/test/unittests/tools/cmake/test_cmaketoolchain.py::test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> better CMakeToolchain blocks filter Changelog: Feature: Better ``CMakeToolchain`` blocks interface. Added new ``.blocks.select()``, ``.blocks.keys()``. Docs: https://github.com/conan-io/docs/pull/338...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-14727
14,727
conan-io/conan
null
48656d8556dd71736f0f07f5c73170d6dd17b742
2023-09-13T13:24:58Z
diff --git a/conan/api/subapi/profiles.py b/conan/api/subapi/profiles.py index b2a2c54269d..2c3b9bbd54c 100644 --- a/conan/api/subapi/profiles.py +++ b/conan/api/subapi/profiles.py @@ -57,8 +57,8 @@ def get_default_build(self): return default_profile def get_profiles_from_args(self, args): - buil...
diff --git a/conans/test/integration/command/test_profile.py b/conans/test/integration/command/test_profile.py index 86207bb4678..8490f435c43 100644 --- a/conans/test/integration/command/test_profile.py +++ b/conans/test/integration/command/test_profile.py @@ -1,5 +1,6 @@ import json import os +import textwrap fro...
[ { "components": [ { "doc": "", "lines": [ 64, 71 ], "name": "add_profiles_args.ContextAllAction", "signature": "class ContextAllAction(argparse.Action):", "type": "class" }, { "doc": "", "lines": [ 66...
[ "conans/test/integration/command/test_profile.py::test_shorthand_syntax" ]
[ "conans/test/integration/command/test_profile.py::test_profile_path", "conans/test/integration/command/test_profile.py::test_profile_path_missing", "conans/test/integration/command/test_profile.py::test_ignore_paths_when_listing_profiles", "conans/test/integration/command/test_profile.py::test_profile_show_js...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add shorthand syntax in cli to specify host and build in 1 argument Changelog: Feature: Add shorthand syntax in cli to specify host and build in 1 argument Docs: https://github.com/conan-io/docs/pull...
Here is the discussion in the issues of the pull request. <issues> [feature] Same host and build profile option? ### What is your suggestion? In "developer mode sitting at my desk" mode, i.e. when building and running code on the same machine and manually typing `conan install ....` often, I'd find it useful to save s...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
sqlfluff__sqlfluff-5187
5,187
sqlfluff/sqlfluff
2.2
48ab0cac22e27352a1e3b94b35525db6eb814053
2023-09-11T10:42:11Z
diff --git a/src/sqlfluff/core/parser/grammar/anyof.py b/src/sqlfluff/core/parser/grammar/anyof.py index b57a00a97d0..8294b0e2aba 100644 --- a/src/sqlfluff/core/parser/grammar/anyof.py +++ b/src/sqlfluff/core/parser/grammar/anyof.py @@ -11,15 +11,59 @@ ) from sqlfluff.core.parser.grammar.sequence import Bracketed, Se...
diff --git a/test/core/parser/grammar/grammar_anyof_test.py b/test/core/parser/grammar/grammar_anyof_test.py index 602511a4534..ec9af082aef 100644 --- a/test/core/parser/grammar/grammar_anyof_test.py +++ b/test/core/parser/grammar/grammar_anyof_test.py @@ -7,13 +7,14 @@ from sqlfluff.core.parser import ( Keywor...
[ { "components": [ { "doc": "A helper function for the return values of AnyNumberOf.\n\nThis method creates UnparsableSegments as appropriate\ndepending on the parse mode and return values.", "lines": [ 21, 55 ], "name": "_parse_mode_match_result", ...
[ "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_anyof_modes[ParseMode.STRICT-sequence0-terminators0-input_slice0-kwargs0-output_tuple0]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_anyof_modes[ParseMode.STRICT-sequence1-terminators1-input_slice1-kwargs1-output_tu...
[ "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar__oneof__copy", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[True]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[False]", "test/core/parser/grammar/grammar_anyof_test.py::test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Parse modes for `AnyNumberOf` Another step on #5124 . Combined with #5186 , this removes the last parts of `parse_grammar` (apart from the `FileSegment` which is the final puzzle piece and will com...
65328e6b701f46ebb25b758c10b7572111f130ab
slackapi__python-slack-sdk-1399
1,399
slackapi/python-slack-sdk
null
d468b354ca8d37702198c1c26ee6fd77133dfb71
2023-09-08T06:20:01Z
diff --git a/slack_sdk/models/blocks/basic_components.py b/slack_sdk/models/blocks/basic_components.py index 1e708ffa6..3999b9119 100644 --- a/slack_sdk/models/blocks/basic_components.py +++ b/slack_sdk/models/blocks/basic_components.py @@ -524,3 +524,38 @@ def to_dict(self) -> Dict[str, Any]: # skipcq: PYL-W0221 ...
diff --git a/tests/slack_sdk/models/test_elements.py b/tests/slack_sdk/models/test_elements.py index 906147c1c..1b246b0a6 100644 --- a/tests/slack_sdk/models/test_elements.py +++ b/tests/slack_sdk/models/test_elements.py @@ -33,6 +33,7 @@ EmailInputElement, NumberInputElement, UrlInputElement, + Workf...
[ { "components": [ { "doc": "", "lines": [ 529, 541 ], "name": "WorkflowTrigger", "signature": "class WorkflowTrigger(JsonObject):", "type": "class" }, { "doc": "", "lines": [ 532, 534 ...
[ "tests/slack_sdk/models/test_elements.py::BlockElementTests::test_eq", "tests/slack_sdk/models/test_elements.py::BlockElementTests::test_parse_timepicker", "tests/slack_sdk/models/test_elements.py::InteractiveElementTests::test_with_input_interactive_element", "tests/slack_sdk/models/test_elements.py::Interac...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add workflow_button block element ## Summary This pull request adds a new block element (https://api.slack.com/reference/block-kit/block-elements#workflow_button) to slack_sdk.models package. ##...
2997a1786c4fd969b00ce69af888ebae8e8ebed0
scikit-learn__scikit-learn-27308
27,308
scikit-learn/scikit-learn
1.4
93e22cdd8dff96fa3870475f40e435083bce8ad0
2023-09-06T20:11:59Z
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 61fc7a8f72b65..12d64eab8217c 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -260,6 +260,9 @@ Meta-estimators and functions supporting metadata routing: - :func:`sklearn.model_selection.cross_validate` - :func:`sklearn.mode...
diff --git a/sklearn/tests/metadata_routing_common.py b/sklearn/tests/metadata_routing_common.py index 2bc7a00aae585..14bf037ae9054 100644 --- a/sklearn/tests/metadata_routing_common.py +++ b/sklearn/tests/metadata_routing_common.py @@ -20,6 +20,7 @@ MetadataRouter, process_routing, ) +from sklearn.utils.mul...
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 61fc7a8f72b65..12d64eab8217c 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -260,6 +260,9 @@ Meta-estimators and functions supporting metadata routing: - :func:`sklearn.model_selection.cross_validate` - :func:`sklearn.mode...
[ { "components": [ { "doc": "Get metadata routing of this object.\n\nPlease check :ref:`User Guide <metadata_routing>` on how the routing\nmechanism works.\n\n.. versionadded:: 1.4\n\nReturns\n-------\nrouting : MetadataRouter\n A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsula...
[ "sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[OneVsRestClassifier]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[OneVsOneClassifier]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[OutputCodeClassifier]", "sklearn/t...
[ "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator0]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator1]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_e...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add metadata routing to OneVsRestClassifier, OneVsOneClassifier and OutputCodeClassifier #### Reference Issues/PRs Towards #22893 #### What does this implement/fix? Explain your changes. - Ad...
ae2c80a21007d8295fb3ec3a927fce17b3d60ab8
Textualize__textual-3236
3,236
Textualize/textual
null
06b6426750a583ef9f7bc2fc458ccc72cbec9fd0
2023-09-05T12:28:31Z
diff --git a/src/textual/_slug.py b/src/textual/_slug.py new file mode 100644 index 0000000000..8d23ca4dab --- /dev/null +++ b/src/textual/_slug.py @@ -0,0 +1,116 @@ +"""Provides a utility function and class for creating Markdown-friendly slugs. + +The approach to creating slugs is designed to be as close to +GitHub-fl...
diff --git a/tests/test_slug.py b/tests/test_slug.py new file mode 100644 index 0000000000..0486966e83 --- /dev/null +++ b/tests/test_slug.py @@ -0,0 +1,62 @@ +import pytest + +from textual._slug import TrackedSlugs, slug + + +@pytest.mark.parametrize( + "text, expected", + [ + ("test", "test"), + (...
[ { "components": [ { "doc": "Create a Markdown-friendly slug from the given text.\n\nArgs:\n text: The text to generate a slug from.\n\nReturns:\n A slug for the given text.\n\nThe rules used in generating the slug are based on observations of how\nGitHub-flavoured Markdown works.", "...
[ "tests/test_slug.py::test_simple_slug[test-test]", "tests/test_slug.py::test_simple_slug[Test-test]", "tests/test_slug.py::test_simple_slug[", "tests/test_slug.py::test_simple_slug[-test---test-]", "tests/test_slug.py::test_simple_slug[!test!-test]", "tests/test_slug.py::test_simple_slug[test!!test-testte...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add utility code for generating Markdown-oriented slugs With #3094 in mind, and with the feedback on #2941 in mind, this PR seeks to implement some utility code for generating slugs that can be used a...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-2156
2,156
tobymao/sqlglot
null
585d0bfcbd40125492640480c890af328d8bc51f
2023-09-05T09:43:42Z
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index 934e320adf..8d8183c3df 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -190,6 +190,13 @@ def _parse_regexp_replace(args: t.List) -> exp.RegexpReplace: return regexp_replace +def _show_parser(*args...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 05da654d8c..30a1f037bf 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -1034,3 +1034,33 @@ def test_match_recognize(self): )""", pretty=True, ) + + def...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_show" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::Te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat!(snowflake): improve parsing for SHOW statement Fixes #2148 cc @tobymao had already started working on this; it doesn't parse all `SHOW` variants, but it solves the original issue and falls ba...
Here is the discussion in the issues of the pull request. <issues> Show doesn't yield any metadata ``` from sqlglot import parse_one, exp tables = parse_one('SHOW PRIMARY KEYS IN "TEST"."PUBLIC"."customers"', read="snowflake", dialect="snowflake").find_all(exp.Table) ``` Expected output: List of tables, in...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1904
1,904
joke2k/faker
null
33e36b1b6cc9c6f039fe387988853771bab60624
2023-09-04T14:06:36Z
diff --git a/faker/providers/color/__init__.py b/faker/providers/color/__init__.py index e2aa0dec16..358512b73f 100644 --- a/faker/providers/color/__init__.py +++ b/faker/providers/color/__init__.py @@ -1,5 +1,6 @@ from collections import OrderedDict -from typing import Dict, Optional +from functools import cached_pro...
diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py index 0770621463..608277eb8e 100644 --- a/tests/providers/test_color.py +++ b/tests/providers/test_color.py @@ -47,15 +47,42 @@ def test_rgb_css_color(self, faker, num_samples): assert 0 <= b <= 255 def test_color(self, faker...
[ { "components": [ { "doc": "", "lines": [ 203, 204 ], "name": "Provider._random_color", "signature": "def _random_color(self):", "type": "function" }, { "doc": "Generate a RGB color tuple of integers in a human-friendl...
[ "tests/providers/test_color.py::TestColorProvider::test_color_rgb", "tests/providers/test_color.py::TestColorProvider::test_color_rgb_float", "tests/providers/test_color.py::TestColorProvider::test_color_hsl", "tests/providers/test_color.py::TestColorProvider::test_color_hsv", "tests/providers/test_color.py...
[ "tests/providers/test_color.py::TestColorProvider::test_safe_hex_color", "tests/providers/test_color.py::TestColorProvider::test_hex_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_css_color", "tests/providers/test_color...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Additional pseudo-random color fakes ### What does this change Add `color_rgb`, `color_rgb_float`, `color_hsv` and `color_hsl` fakes ### What was wrong Pseudo-random colors were only availabl...
Here is the discussion in the issues of the pull request. <issues> RGB/HSV/HSL color tuples from `color` provider * Faker version: 19.3.1 * OS: any With #104/#1055 the `color` provider learned how to generate colors with certain characteristics like "dark" or from a given hue. As noted by @malefice in the previ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
tobymao__sqlglot-2149
2,149
tobymao/sqlglot
null
7b589ae2ce4071f004b0cd3eedab5fca4deb79bb
2023-09-04T13:29:22Z
diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py index 7c4e051ec2..c0b3daf8b5 100644 --- a/sqlglot/dialects/bigquery.py +++ b/sqlglot/dialects/bigquery.py @@ -397,6 +397,27 @@ def _parse_table_parts(self, schema: bool = False) -> exp.Table: return table + def _parse_json_...
diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py index 8f6dc3f645..b776bdd3ce 100644 --- a/tests/dialects/test_bigquery.py +++ b/tests/dialects/test_bigquery.py @@ -9,6 +9,7 @@ class TestBigQuery(Validator): maxDiff = None def test_bigquery(self): + self.validate_identit...
[]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery", "tests/dialects/test_bigquery.py::TestBigQuery::test_json_object", "tests/dialects/test_presto.py::TestPresto::test_presto" ]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat", "tests/dialects/test_bigquery.py::TestBigQuery::test_merge", "tests/dialects/test_bigquery.py::TestBigQuery::test_pushdown_cte_column_names", "tests/dialects/test_bigquery.py::TestBigQuery::test_remove_precision_parameterized_types", "tests...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat!(bigquery): improve handling of array JSON_OBJECT syntax This PR was motivated by https://github.com/tobymao/sqlglot/pull/2136. It seems like `CAST(... AS JSON)` is not valid in BQ, at least for ...
ceb42fabad60312699e4b15936aeebac00e22e4d
astropy__astropy-15264
15,264
astropy/astropy
5.2
d64fc339429487631173fc5f81dd0130cc54fa3d
2023-09-01T12:20:49Z
diff --git a/astropy/time/core.py b/astropy/time/core.py index 32c0af62dc84..acfd4dcf25bc 100644 --- a/astropy/time/core.py +++ b/astropy/time/core.py @@ -11,7 +11,7 @@ import operator import os import threading -from datetime import date, datetime, timedelta, timezone +from datetime import date, datetime, timezone ...
diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py index 39edda889eda..b526aa3ed576 100644 --- a/astropy/time/tests/test_basic.py +++ b/astropy/time/tests/test_basic.py @@ -2361,9 +2361,10 @@ def test_hash_time_delta(): def test_get_time_fmt_exception_messages(): - with pytest.rais...
diff --git a/docs/changes/time/15264.api.rst b/docs/changes/time/15264.api.rst new file mode 100644 index 000000000000..657ec69d2956 --- /dev/null +++ b/docs/changes/time/15264.api.rst @@ -0,0 +1,4 @@ +Changed the ``TimeDelta`` init signature to be consistent with that of ``Time``. +Previously the argument order was ``...
[ { "components": [ { "doc": "", "lines": [ 2830, 2839 ], "name": "TimeDelta._check_numeric_no_unit", "signature": "def _check_numeric_no_unit(self, val, format):", "type": "function" } ], "file": "astropy/time/core.py" }, ...
[ "astropy/time/tests/test_basic.py::test_get_time_fmt_exception_messages", "astropy/time/tests/test_basic.py::test_format_typeerror", "astropy/time/tests/test_delta.py::test_quantity_str_basic[1s-1.0s-1.0-]", "astropy/time/tests/test_delta.py::test_quantity_str_basic[1s-1.0s-1.0-+]", "astropy/time/tests/test...
[ "astropy/time/tests/test_basic.py::TestBasic::test_simple", "astropy/time/tests/test_basic.py::TestBasic::test_different_dimensions", "astropy/time/tests/test_basic.py::TestBasic::test_empty_value[jd]", "astropy/time/tests/test_basic.py::TestBasic::test_empty_value[mjd]", "astropy/time/tests/test_basic.py::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add TimeDelta format `quantity_str` for Year Day Hour Minute Sec string <!-- This comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure t...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
tobymao__sqlglot-2105
2,105
tobymao/sqlglot
null
bda94dfebc169c1a8bb07330d3d0c8997fabcf17
2023-08-23T00:38:05Z
diff --git a/sqlglot/dataframe/README.md b/sqlglot/dataframe/README.md index 86fdc4b045..adde9a1dfe 100644 --- a/sqlglot/dataframe/README.md +++ b/sqlglot/dataframe/README.md @@ -21,10 +21,12 @@ Currently many of the common operations are covered and more functionality will * Ex: `['cola', 'colb']` * The ...
diff --git a/tests/dataframe/unit/dataframe_sql_validator.py b/tests/dataframe/unit/dataframe_sql_validator.py index 2dcdb39f23..4363b0dfa1 100644 --- a/tests/dataframe/unit/dataframe_sql_validator.py +++ b/tests/dataframe/unit/dataframe_sql_validator.py @@ -1,14 +1,11 @@ -import typing as t -import unittest - from sq...
diff --git a/sqlglot/dataframe/README.md b/sqlglot/dataframe/README.md index 86fdc4b045..adde9a1dfe 100644 --- a/sqlglot/dataframe/README.md +++ b/sqlglot/dataframe/README.md @@ -21,10 +21,12 @@ Currently many of the common operations are covered and more functionality will * Ex: `['cola', 'colb']` * The ...
[]
[ "tests/dataframe/unit/test_session.py::TestDataframeSession::test_session_create_builder_patterns", "tests/dataframe/unit/test_session_case_sensitivity.py::TestSessionCaseSensitivity::test_basic_case_sensitivity" ]
[ "tests/dataframe/unit/test_session.py::TestDataframeSession::test_cdf_dict_rows", "tests/dataframe/unit/test_session.py::TestDataframeSession::test_cdf_multiple_rows", "tests/dataframe/unit/test_session.py::TestDataframeSession::test_cdf_no_schema", "tests/dataframe/unit/test_session.py::TestDataframeSession:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: Support dialect across all Dataframe Operations Slack thread that prompted this change: https://tobiko-data.slack.com/archives/C0448SFS3PF/p1692679901587439?thread_ts=1692679773.389409&cid=C0448...
ceb42fabad60312699e4b15936aeebac00e22e4d
Aider-AI__aider-207
207
Aider-AI/aider
null
43047c38358d7453c5778d4415475f152e4c562e
2023-08-18T17:17:40Z
diff --git a/HISTORY.md b/HISTORY.md index b033f264ac7..8f8750dc81e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,7 @@ ### main branch +- [Only git commit dirty files that GPT tries to edit](https://aider.chat/docs/faq.html#how-does-aider-use-git) - Send chat history as prompt/context for Whisper voice tran...
diff --git a/tests/test_coder.py b/tests/test_coder.py index 1c2eaa8b290..3faf42bc7a8 100644 --- a/tests/test_coder.py +++ b/tests/test_coder.py @@ -22,79 +22,84 @@ def setUp(self): def tearDown(self): self.patcher.stop() - def test_new_file_commit_message(self): + def test_allowed_to_edit(self): ...
diff --git a/HISTORY.md b/HISTORY.md index b033f264ac7..8f8750dc81e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,7 @@ ### main branch +- [Only git commit dirty files that GPT tries to edit](https://aider.chat/docs/faq.html#how-does-aider-use-git) - Send chat history as prompt/context for Whisper voice tran...
[ { "components": [ { "doc": "", "lines": [ 710, 724 ], "name": "Coder.check_for_dirty_commit", "signature": "def check_for_dirty_commit(self, path):", "type": "function" }, { "doc": "", "lines": [ 770,...
[ "tests/test_coder.py::TestCoder::test_allowed_to_edit", "tests/test_coder.py::TestCoder::test_allowed_to_edit_dirty", "tests/test_coder.py::TestCoder::test_allowed_to_edit_no", "tests/test_coder.py::TestCoder::test_gpt_edit_to_dirty_file", "tests/test_coder.py::TestCoder::test_only_commit_gpt_edited_file", ...
[ "tests/test_coder.py::TestCoder::test_check_for_ambiguous_filename_mentions_of_longer_paths", "tests/test_coder.py::TestCoder::test_check_for_file_mentions", "tests/test_coder.py::TestCoder::test_check_for_filename_mentions_of_longer_paths", "tests/test_coder.py::TestCoder::test_check_for_subdir_mention", "...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Only commit dirty files if GPT tries to edit them #200 Discussed in #200 If GPT tries to edit a dirty file, aider will just commit the dirty changes (with a nice message) before applying and comm...
43047c38358d7453c5778d4415475f152e4c562e
sphinx-doc__sphinx-11592
11,592
sphinx-doc/sphinx
7.4
3d118ce81c368c0143e90a096cef3a872be2eece
2023-08-15T08:53:52Z
diff --git a/CHANGES.rst b/CHANGES.rst index fcdcf2df9af..1f178f5c200 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -71,6 +71,9 @@ Features added * #12523: Added configuration option, :confval:`math_numsep`, to define the separator for math numbering. Patch by Thomas Fanning +* #11592: Add :confval:`coverage_mod...
diff --git a/tests/roots/test-ext-coverage/conf.py b/tests/roots/test-ext-coverage/conf.py index d3ec6e87f34..70fd03e91b2 100644 --- a/tests/roots/test-ext-coverage/conf.py +++ b/tests/roots/test-ext-coverage/conf.py @@ -5,8 +5,11 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage'] +coverage_modules = [ ...
diff --git a/CHANGES.rst b/CHANGES.rst index fcdcf2df9af..1f178f5c200 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -71,6 +71,9 @@ Features added * #12523: Added configuration option, :confval:`math_numsep`, to define the separator for math numbering. Patch by Thomas Fanning +* #11592: Add :confval:`coverage_mod...
[ { "components": [ { "doc": "Recursively load all submodules.\n\n:param mod_name: The name of a module to load submodules for.\n:param ignored_module_exps: A list of regexes for modules to ignore.\n:returns: A set of modules names including the provided module name,\n ``mod_name``\n:raises Impor...
[ "tests/test_extensions/test_ext_coverage.py::test_coverage_ignore_pyobjects" ]
[ "tests/test_extensions/test_ext_coverage.py::test_build", "tests/test_extensions/test_ext_coverage.py::test_show_missing_items", "tests/test_extensions/test_ext_coverage.py::test_show_missing_items_quiet" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> coverage: Specify modules to run coverage for ### Feature or Bugfix Feature ### Purpose Currently, the coverage builder lets you check for partially documented modules, but there is no mechan...
35e7bfc347f845deff50787f0cd0340ea2ea0a5d
pvlib__pvlib-python-1834
1,834
pvlib/pvlib-python
0.9
2d04aeb72e4d8509839486b4e9085b0d85f58c44
2023-08-14T13:56:53Z
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 08724be38e..eede9df089 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index ab1af612a7..2f660d5c97 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -805,6 +805,34 @@ def test_erbs(): assert_frame_equal(np.round(out, 0), np.round(expected, 0)) +def test_erbs_driesse(): ...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 08724be38e..eede9df089 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
[ { "components": [ { "doc": "Estimate DNI and DHI from GHI using the continuous Erbs-Driesse model.\n\nThe Erbs-Driesse model [1]_ is a reformulation of the original Erbs\nmodel [2]_ that provides continuity of the function and its first\nderivative at the two transition points.\n\n.. math::\n\n ...
[ "pvlib/tests/test_irradiance.py::test_erbs_driesse" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement C1 continuous version of the Erbs diffuse-fraction/decomposition model <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't...
Here is the discussion in the issues of the pull request. <issues> Erbs diffuse fraction model has discontinuities at transition points **Is your feature request related to a problem? Please describe.** If you look closely at the piecewise definition of the Erbs diffuse fraction model you will see that it is discontin...
d53f97e984bfdd268aa92f8bf482ced0edda0110
astropy__astropy-15168
15,168
astropy/astropy
5.2
ebefb4f216b9f6df7da895dcc9738e2ca73bdcf0
2023-08-14T02:13:26Z
diff --git a/astropy/cosmology/_io/html.py b/astropy/cosmology/_io/html.py index 948334c2c194..0606d1722b36 100644 --- a/astropy/cosmology/_io/html.py +++ b/astropy/cosmology/_io/html.py @@ -313,15 +313,15 @@ def write_html_table( cosmo_cls = type(cosmology) for name, col in table.columns.items(): - ...
diff --git a/astropy/cosmology/_io/tests/test_html.py b/astropy/cosmology/_io/tests/test_html.py index 8c92b091ca2e..ef4a6f59443b 100644 --- a/astropy/cosmology/_io/tests/test_html.py +++ b/astropy/cosmology/_io/tests/test_html.py @@ -4,7 +4,6 @@ import astropy.units as u from astropy.cosmology._io.html import _FOR...
diff --git a/docs/changes/cosmology/15168.feature.rst b/docs/changes/cosmology/15168.feature.rst new file mode 100644 index 000000000000..f99ea2b93c7a --- /dev/null +++ b/docs/changes/cosmology/15168.feature.rst @@ -0,0 +1,5 @@ +The ``Cosmology`` class now has two new properties to access the parameters of the +cosmolo...
[ { "components": [ { "doc": "Return all variables in the whole class hierarchy.", "lines": [ 80, 83 ], "name": "all_cls_vars", "signature": "def all_cls_vars(obj: object | type, /) -> dict[str, Any]:", "type": "function" } ], ...
[ "astropy/cosmology/_io/tests/test_mapping.py::TestToFromMapping::test_to_mapping_default[cosmo0]", "astropy/cosmology/_io/tests/test_mapping.py::TestToFromMapping::test_to_mapping_wrong_cls[cosmo0]", "astropy/cosmology/_io/tests/test_mapping.py::TestToFromMapping::test_to_mapping_cls[cosmo0-dict]", "astropy/c...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Cosmo parameters properties I've added 2 properties to `Cosmology`: 1. `parameters` : an immutable dictionary of the non-derived ``Parameter``s defined on `Cosmology`. When accessed from the class th...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
softlayer__softlayer-python-2073
2,073
softlayer/softlayer-python
null
fe65dc3e4978e1497f242e0318ed6d43f6659b0b
2023-08-10T07:29:02Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 54c1deaad..dbaf1cfe0 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -403,6 +403,8 @@ ('user:device-access', 'SoftLayer.CLI.user.device_access:cli'), ('user:vpn-manual', 'SoftLayer.CLI.user.vpn_manual:cli'), ('user...
diff --git a/tests/CLI/modules/user_tests.py b/tests/CLI/modules/user_tests.py index 02956e682..804c9ef1d 100644 --- a/tests/CLI/modules/user_tests.py +++ b/tests/CLI/modules/user_tests.py @@ -8,10 +8,9 @@ import sys import unittest -from unittest import mock as mock - from SoftLayer.fixtures import SoftLayer_User...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index e3d45bb1d..af86b4a94 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -64,6 +64,14 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user vpn-password :show-nested: +.. click:: SoftLayer.CLI.user.v...
[ { "components": [ { "doc": "Enable vpn for a user.\n\nExample::\n slcli user vpn-enable 1234567", "lines": [ 15, 29 ], "name": "vpn_enable", "signature": "def vpn_enable(env, user):", "type": "function" }, { "doc": ...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_disable", "tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_enable" ]
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_add_api_authentication_key", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_with_all_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_without_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user", "t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added new slcli user vpn-disable and slcli user vpn-enable command Hi @allmightyspiff, Fixes: #2069 **Title:** new slcli user vpn-enable command **Description:** I have added new feature...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
sqlfluff__sqlfluff-5076
5,076
sqlfluff/sqlfluff
2.1
cd52dcaaf570b3a36edce2bccefcb032d5abc47c
2023-08-09T13:24:59Z
diff --git a/src/sqlfluff/core/parser/grammar/sequence.py b/src/sqlfluff/core/parser/grammar/sequence.py index 9ca26b757e2..0c5f0d3214f 100644 --- a/src/sqlfluff/core/parser/grammar/sequence.py +++ b/src/sqlfluff/core/parser/grammar/sequence.py @@ -230,7 +230,7 @@ def match(self, segments, parse_context: ParseContext) ...
diff --git a/test/core/parser/segments/__init__.py b/test/core/parser/segments/__init__.py new file mode 100644 index 00000000000..47449fecad1 --- /dev/null +++ b/test/core/parser/segments/__init__.py @@ -0,0 +1,1 @@ +"""Tests for the segments module.""" diff --git a/test/core/parser/segments/conftest.py b/test/core/pa...
[ { "components": [ { "doc": "", "lines": [ 338, 342 ], "name": "BaseSegment.__getstate__", "signature": "def __getstate__(self):", "type": "function" }, { "doc": "", "lines": [ 344, 348 ...
[ "test/core/parser/segments/segments_base_test.py::test__parser__base_segments_pickle_safe" ]
[ "test/core/parser/segments/segments_base_test.py::test__parser__base_segments_type", "test/core/parser/segments/segments_base_test.py::test__parser__base_segments_class_types", "test/core/parser/segments/segments_base_test.py::test__parser__base_segments_descendant_type_set", "test/core/parser/segments/segmen...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Parent references and more efficient path_to @WittierDinosaur has been suggesting that segments should maintain a reference to their parent for a while. This PR implements that. I found during some...
cd52dcaaf570b3a36edce2bccefcb032d5abc47c
tobymao__sqlglot-2006
2,006
tobymao/sqlglot
null
2a76eb8bcdf78c53f91f9e3f228dc6dad0223b03
2023-08-08T09:40:25Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index fc342621ae..821266946b 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -60,6 +60,7 @@ class Generator(Generator): from sqlglot.dialects.clickhouse import ClickHouse from sqlglot.dialects.databricks import Da...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index aaaffab785..9873038f8f 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -90,6 +90,7 @@ def test_cast(self): "snowflake": "CAST(a AS TEXT)", "spark": "CAST(a AS STRING)"...
[]
[ "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_json", "tests/dialects/test_dialect.py::TestDialect::test_operators", "tests/dialects/test_dialect.py::TestDialect::test_time", "tests/dialects/test_doris.py::TestDoris::test_identity", "tests/dial...
[ "tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_count_if", "tests/dialects/test_dialect.py::TestDialect::test_cross_join", "tests/dialects/test_dialect.py::TestDialect::test_decode", "t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add apache doris dialect Implemented dialect support for Apache Doris ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below:...
ceb42fabad60312699e4b15936aeebac00e22e4d
pvlib__pvlib-python-1827
1,827
pvlib/pvlib-python
0.9
ae848177c7cafae78e4a28a7f9871c29ac484f92
2023-08-03T20:49:37Z
diff --git a/docs/examples/reflections/plot_convert_iam_models.py b/docs/examples/reflections/plot_convert_iam_models.py new file mode 100644 index 0000000000..6b0ec78ab3 --- /dev/null +++ b/docs/examples/reflections/plot_convert_iam_models.py @@ -0,0 +1,162 @@ + +""" +IAM Model Conversion +==================== + +Illu...
diff --git a/pvlib/tests/conftest.py b/pvlib/tests/conftest.py index 15b0cd70e8..f579ef45f2 100644 --- a/pvlib/tests/conftest.py +++ b/pvlib/tests/conftest.py @@ -11,6 +11,7 @@ import pvlib from pvlib.location import Location + pvlib_base_version = Version(Version(pvlib.__version__).base_version) diff --git a/...
diff --git a/docs/sphinx/source/reference/pv_modeling/iam.rst b/docs/sphinx/source/reference/pv_modeling/iam.rst index 1871f9b4a2..e12a0c519e 100644 --- a/docs/sphinx/source/reference/pv_modeling/iam.rst +++ b/docs/sphinx/source/reference/pv_modeling/iam.rst @@ -17,3 +17,5 @@ Incident angle modifiers iam.marion_int...
[ { "components": [ { "doc": "", "lines": [ 104, 105 ], "name": "weight_function", "signature": "def weight_function(aoi):", "type": "function" } ], "file": "docs/examples/reflections/plot_convert_iam_models.py" }, { "...
[ "pvlib/tests/test_iam.py::test_convert[physical-source_params0-martin_ruiz-expected0]", "pvlib/tests/test_iam.py::test_convert[physical-source_params1-ashrae-expected1]", "pvlib/tests/test_iam.py::test_convert[ashrae-source_params2-physical-expected2]", "pvlib/tests/test_iam.py::test_convert[ashrae-source_par...
[ "pvlib/tests/test_iam.py::test_ashrae", "pvlib/tests/test_iam.py::test_ashrae_scalar", "pvlib/tests/test_iam.py::test_physical", "pvlib/tests/test_iam.py::test_physical_n1_L0", "pvlib/tests/test_iam.py::test_physical_ar", "pvlib/tests/test_iam.py::test_physical_noar", "pvlib/tests/test_iam.py::test_phys...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add functions to fit and convert IAM models - [x] Closes #1824 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests ...
Here is the discussion in the issues of the pull request. <issues> Functions to fit and convert IAM models It would be useful to be able to convert parameters between IAM models (e.g., physical to martin_ruiz). To convert from an interpolation approach to a model described by an equation, it would also be useful to hav...
d53f97e984bfdd268aa92f8bf482ced0edda0110
scverse__scanpy-2590
2,590
scverse/scanpy
null
b4ba81dc9eab9f75b761d85e473e548a5c37b49e
2023-08-03T15:46:47Z
diff --git a/docs/api/get.md b/docs/api/get.md index 82f74ed411..039769d0a6 100644 --- a/docs/api/get.md +++ b/docs/api/get.md @@ -19,5 +19,6 @@ useful formats. get.obs_df get.var_df get.rank_genes_groups_df + get.aggregate ``` diff --git a/docs/release-notes/1.10.0.md b/docs/release-notes/1.10.0.md in...
diff --git a/scanpy/tests/test_aggregated.py b/scanpy/tests/test_aggregated.py new file mode 100644 index 0000000000..4439f3e0eb --- /dev/null +++ b/scanpy/tests/test_aggregated.py @@ -0,0 +1,373 @@ +from __future__ import annotations + +import anndata as ad +import numpy as np +import pandas as pd +import pytest +from...
diff --git a/docs/api/get.md b/docs/api/get.md index 82f74ed411..039769d0a6 100644 --- a/docs/api/get.md +++ b/docs/api/get.md @@ -19,5 +19,6 @@ useful formats. get.obs_df get.var_df get.rank_genes_groups_df + get.aggregate ``` diff --git a/docs/release-notes/1.10.0.md b/docs/release-notes/1.10.0.md in...
[ { "components": [ { "doc": "", "lines": [ 879, 886 ], "name": "_resolve_axis", "signature": "def _resolve_axis( axis: Literal[\"obs\", 0, \"var\", 1], ) -> tuple[Literal[0], Literal[\"obs\"]] | tuple[Literal[1], Literal[\"var\"]]:", "type...
[ "scanpy/tests/test_aggregated.py::test_mask[0]", "scanpy/tests/test_aggregated.py::test_mask[1]", "scanpy/tests/test_aggregated.py::test_aggregate_vs_pandas[sum-numpy_ndarray]", "scanpy/tests/test_aggregated.py::test_aggregate_vs_pandas[sum-scipy_csr]", "scanpy/tests/test_aggregated.py::test_aggregate_vs_pa...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> (feat): Aggregation via group-by in `sc.get` <!-- Thanks for opening a PR to scanpy! Please be sure to follow the guidelines in our contribution guide (https://scanpy.readthedocs.io/en/latest/dev/in...
2f0afac72be3644624cf996323197239580f14f9
conan-io__conan-14382
14,382
conan-io/conan
null
bc4ed4d79fd92edd825fc846dfa515c7b3912138
2023-07-27T18:08:40Z
diff --git a/conan/tools/system/package_manager.py b/conan/tools/system/package_manager.py index 25bc96d6a0a..b5476f376df 100644 --- a/conan/tools/system/package_manager.py +++ b/conan/tools/system/package_manager.py @@ -40,6 +40,7 @@ def get_default_tool(self): elif os_name == "Windows" and self._conanfile.co...
diff --git a/conans/test/integration/tools/system/package_manager_test.py b/conans/test/integration/tools/system/package_manager_test.py index 07f7bdf02b6..a533f647ccf 100644 --- a/conans/test/integration/tools/system/package_manager_test.py +++ b/conans/test/integration/tools/system/package_manager_test.py @@ -5,8 +5,...
[ { "components": [ { "doc": "", "lines": [ 336, 352 ], "name": "Apk", "signature": "class Apk(_SystemPackageManagerTool):", "type": "class" }, { "doc": "Constructor method.\nNote that *Apk* does not support architecture...
[ "conans/test/integration/tools/system/package_manager_test.py::test_package_manager_platform[Linux-apt-get]", "conans/test/integration/tools/system/package_manager_test.py::test_package_manager_platform[Windows-choco]", "conans/test/integration/tools/system/package_manager_test.py::test_package_manager_platform...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> tools: Add support for Alpine Linux This commit closes #14307. Changelog: Feature: Added support for `apk` package manager and Alpine Linux Docs: https://github.com/conan-io/docs/pull/3312 - [X...
Here is the discussion in the issues of the pull request. <issues> [feature] Support Alpine Linux system package manager ### What is your suggestion? Hi, The system manager support in conan is really handy and already covers a large list of distributions/tools. It would be very nice though if it could also support...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
roboflow__supervision-245
245
roboflow/supervision
null
36cdcf1b128e38cb9a086290fbfb0130fa64ac5b
2023-07-26T08:25:02Z
diff --git a/supervision/dataset/core.py b/supervision/dataset/core.py index ce7e0edb5..6e47d747f 100644 --- a/supervision/dataset/core.py +++ b/supervision/dataset/core.py @@ -31,7 +31,6 @@ train_test_split, ) from supervision.detection.core import Detections -from supervision.utils.file import list_files_with_...
diff --git a/test/dataset/formats/test_pascal_voc.py b/test/dataset/formats/test_pascal_voc.py new file mode 100644 index 000000000..fa3f11244 --- /dev/null +++ b/test/dataset/formats/test_pascal_voc.py @@ -0,0 +1,147 @@ +import xml.etree.ElementTree as ET +from contextlib import ExitStack as DoesNotRaise +from test.ut...
[ { "components": [ { "doc": "Converts an XML object in Pascal VOC format to a Detections object.\nExpected XML format:\n<annotation>\n ...\n <object>\n <name>dog</name>\n <bndbox>\n <xmin>48</xmin>\n <ymin>240</ymin>\n <xmax>195</xmax>\n ...
[ "test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy0-test-None-expected_result0-exception0]", "test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy1-test-polygon1-expected_result1-exception1]", "test/dataset/formats/test_pascal_voc.py::test_parse_polygon_points[polygon_el...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add support for loading segmentation datasets in Pascal VOC format # Description Add possibility to load PASCAL VOC segmentation masks in addition to object detection ([related issue](https://githu...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
roboflow__supervision-236
236
roboflow/supervision
null
36cdcf1b128e38cb9a086290fbfb0130fa64ac5b
2023-07-24T18:37:19Z
diff --git a/docs/metrics/detection.md b/docs/metrics/detection.md index 9e7844645..feea7cce8 100644 --- a/docs/metrics/detection.md +++ b/docs/metrics/detection.md @@ -6,3 +6,7 @@ ## ConfusionMatrix :::supervision.metrics.detection.ConfusionMatrix + +## MeanAveragePrecision + +:::supervision.metrics.detection.Mean...
diff --git a/test/metrics/test_detection.py b/test/metrics/test_detection.py index 0ecab3f0b..e0a5f2ced 100644 --- a/test/metrics/test_detection.py +++ b/test/metrics/test_detection.py @@ -5,8 +5,8 @@ import pytest from supervision.detection.core import Detections -from supervision.metrics.detection import Confusio...
diff --git a/docs/metrics/detection.md b/docs/metrics/detection.md index 9e7844645..feea7cce8 100644 --- a/docs/metrics/detection.md +++ b/docs/metrics/detection.md @@ -6,3 +6,7 @@ ## ConfusionMatrix :::supervision.metrics.detection.ConfusionMatrix + +## MeanAveragePrecision + +:::supervision.metrics.detection.Mean...
[ { "components": [ { "doc": "Convert Supervision Detections to numpy tensors for further computation\nArgs:\n detections (sv.Detections): Detections/Targets in the format of sv.Detections\n with_confidence (bool): Whether to include confidence in the tensor\nReturns:\n (np.ndarray): Detect...
[ "test/metrics/test_detection.py::test_detections_to_tensor[detections0-False-expected_result0-exception0]", "test/metrics/test_detection.py::test_detections_to_tensor[detections1-True-expected_result1-exception1]", "test/metrics/test_detection.py::test_detections_to_tensor[detections2-False-expected_result2-exc...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature MeanAveragePrecision 🔥 # Description This pr is related to feature #206 and #232. ## Type of change - [x] New feature (non-breaking change which adds functionality) - [x] This ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
scrapy__scrapy-5979
5,979
scrapy/scrapy
null
8055a948dc2544c4d8ebe7aa1c6227e19b1583ac
2023-07-18T10:33:03Z
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
diff --git a/tests/spiders.py b/tests/spiders.py index 6ff48f4710c..f29dea2a12b 100644 --- a/tests/spiders.py +++ b/tests/spiders.py @@ -77,6 +77,22 @@ def errback(self, failure): self.t2_err = time.time() +class SlowSpider(DelaySpider): + name = "slow" + + def start_requests(self): + # 1st re...
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
[ { "components": [ { "doc": "", "lines": [ 90, 98 ], "name": "CloseSpider.spider_opened_no_item", "signature": "def spider_opened_no_item(self, spider):", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/test_closespider.py::TestCloseSpider::test_closespider_timeout_no_item" ]
[ "tests/test_closespider.py::TestCloseSpider::test_closespider_errorcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_itemcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_pagecount", "tests/test_closespider.py::TestCloseSpider::test_closespider_timeout" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> introduce CLOSESPIDER_TIMEOUT_NO_ITEM in CloseSpider **Motivation:** Sometimes spiders still keep running without producing any items. This could be due to a variety of reasons like poor dupe URL filt...
57a5460529ff71c42e4d0381265b1b512b1eb09b
sqlfluff__sqlfluff-4974
4,974
sqlfluff/sqlfluff
2.0
33916fc72f7576a985efa22dfcdd728348544899
2023-07-17T08:44:38Z
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index cfd85cf4dc6..b3f385c9bb0 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -384,3 +384,6 @@ wildcard_policy = single [sqlfluff:rules:structure.subquery] # By default, allow subq...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index 292a5ac51d8..0a3ad125f2c 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -1432,7 +1432,7 @@ def test__cli__command_lint_serialize_multiple_files(serialize, write_file, tmp_ print("Result length:", payload_length) ...
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index cfd85cf4dc6..b3f385c9bb0 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -384,3 +384,6 @@ wildcard_policy = single [sqlfluff:rules:structure.subquery] # By default, allow subq...
[ { "components": [ { "doc": "Joins should list the table referenced earlier/later first.\n\nThis rule will break conditions from join clauses down into subconditions\nusing the \"and\" and \"or\" binary operators.\n\nSubconditions that are made up of a qualified column reference,\na comparison oper...
[ "test/cli/commands_test.py::test__cli__command_lint_serialize_multiple_files[None-github-annotation-native]", "test/cli/commands_test.py::test__cli__command_lint_serialize_multiple_files[outfile-human]", "test/cli/commands_test.py::test__cli__command_lint_serialize_multiple_files[outfile-github-annotation-nativ...
[ "test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add new rule ST09: Joins should list the table referenced earlier (default)/later first <!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release no...
Here is the discussion in the issues of the pull request. <issues> New Rule: In ON clause of JOIN statement specify source table first and join table second <!--Note: This is for general enhancements to the project. Please use the Bug report template instead to raise parsing/linting/syntax issues for existing supported...
3629c3e702939c07264cc5ea903566ddc9ea2bb0
tobymao__sqlglot-1925
1,925
tobymao/sqlglot
null
aaee59457eca7255540c27a4aa13a7a4f87e6acc
2023-07-16T23:05:32Z
diff --git a/sqlglot/dataframe/sql/functions.py b/sqlglot/dataframe/sql/functions.py index bdc1fb4083..353bdc0f02 100644 --- a/sqlglot/dataframe/sql/functions.py +++ b/sqlglot/dataframe/sql/functions.py @@ -875,8 +875,16 @@ def regexp_extract(str: ColumnOrName, pattern: str, idx: t.Optional[int] = None) ) -def...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index ee8a11ff0e..82762e8aa1 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -915,6 +915,58 @@ def test_regexp_substr(self, logger): }, ) + @mock.patch("sqlglot.generator.l...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_regexp_replace" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::Te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add RegexpReplace expression References: - https://docs.snowflake.com/en/sql-reference/functions/regexp_replace - https://spark.apache.org/docs/latest/api/sql/index.html#regexp_replace - ht...
ceb42fabad60312699e4b15936aeebac00e22e4d
matplotlib__matplotlib-26293
26,293
matplotlib/matplotlib
3.7
a4dca24d04f928a9e614db403c716237446140b2
2023-07-12T06:31:49Z
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 3457368fa51c..8b01a120da5b 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -335,6 +335,8 @@ Autoscaling and margins Axes.use_sticky_edges Axes.margins + Axes.get_xmargin + Axes.get_ymargin Axes.set_xmargin Axes.set_ymar...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 0fcb2eb26cbb..6dea39a702fc 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -6153,6 +6153,14 @@ def test_margins(): ymax + (ymax - ymin) * 0.5) +def test_m...
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 3457368fa51c..8b01a120da5b 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -335,6 +335,8 @@ Autoscaling and margins Axes.use_sticky_edges Axes.margins + Axes.get_xmargin + Axes.get_ymargin Axes.set_xmargin Axes.set_ymar...
[ { "components": [ { "doc": "Retrieve autoscaling margin of the x-axis.\n\n.. versionadded:: 3.9\n\nReturns\n-------\nxmargin : float\n\nSee Also\n--------\nmatplotlib.axes.Axes.set_xmargin", "lines": [ 2620, 2634 ], "name": "_AxesBase.get_xmargin", ...
[ "lib/matplotlib/tests/test_axes.py::test_margin_getters", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_margin_getters" ]
[ "lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added get_xmargin(), get_ymargin() and get_zmargin() and tests. ## PR summary Closes #26281 by adding `get_xmargin()`, `get_ymargin()` for` _AxesBase` and `get_zmargin()` for `Axes3D`, as well as te...
Here is the discussion in the issues of the pull request. <issues> [ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods ### Problem Currently, I think the only public API to retrieve the margins settings on an Axes is ax.margins(), which has a somewhat peculiar API (basically inherited from pyplot/matlab); ad...
a4dca24d04f928a9e614db403c716237446140b2
tobymao__sqlglot-1907
1,907
tobymao/sqlglot
null
69a69f67d06ebf8d328eb30fd0ef7d717758a4c9
2023-07-10T23:56:18Z
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index b77c2c0bb7..efb49bd9a9 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -138,7 +138,8 @@ def _format_sql(self: generator.Generator, expression: exp.NumberToStr | exp.Tim if isinstance(expression, exp.NumberToStr) ...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index 05738cf34e..3ca47aba2b 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -1512,6 +1512,7 @@ def test_transactions(self): "redshift": "BEGIN", "snowflake": "BEGIN", ...
[]
[ "tests/dialects/test_dialect.py::TestDialect::test_transactions", "tests/dialects/test_tsql.py::TestTSQL::test_commit", "tests/dialects/test_tsql.py::TestTSQL::test_rollback", "tests/dialects/test_tsql.py::TestTSQL::test_transaction" ]
[ "tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_count_if", "tests/dialects/test_dialect.py::TestDialect::test_cross_join", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(tsql): improve support for transaction statements Enrich syntax parsing for BEGIN, COMMIT and ROLLBACK Transactions. ---------- </request> There are several new functions or classes that need t...
ceb42fabad60312699e4b15936aeebac00e22e4d
Textualize__textual-2906
2,906
Textualize/textual
null
90a93e08abe813da495712ad99d4d6da5215728b
2023-07-09T17:04:07Z
diff --git a/src/textual/_fuzzy.py b/src/textual/_fuzzy.py new file mode 100644 index 0000000000..2d9766e054 --- /dev/null +++ b/src/textual/_fuzzy.py @@ -0,0 +1,82 @@ +from re import compile, escape + +import rich.repr +from rich.text import Text + +from ._cache import LRUCache + + +@rich.repr.auto +class Matcher: + ...
diff --git a/tests/test_fuzzy.py b/tests/test_fuzzy.py new file mode 100644 index 0000000000..71c073d9f2 --- /dev/null +++ b/tests/test_fuzzy.py @@ -0,0 +1,40 @@ +from rich.text import Span + +from textual._fuzzy import Matcher + + +def test_match(): + matcher = Matcher("foo.bar") + + # No match + assert match...
[ { "components": [ { "doc": "A fuzzy matcher.", "lines": [ 10, 74 ], "name": "Matcher", "signature": "class Matcher:", "type": "class" }, { "doc": "Args:\n query: A query as typed in by the user.", "lines": [...
[ "tests/test_fuzzy.py::test_match", "tests/test_fuzzy.py::test_highlight" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> fuzzy matcher Some initial work for the "command palette", which will use "fuzzy matching". This implements the fuzzy part. Commands will be matched against the user's input. A match is recorded if...
86e93536b991014e0ea4bf993068202b446bb698
conan-io__conan-14233
14,233
conan-io/conan
null
57c7049c758a685cdc02e870eb77617af5e45da6
2023-07-06T06:04:41Z
diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py index e793711ee81..1aa86e9d472 100644 --- a/conan/tools/gnu/pkgconfigdeps.py +++ b/conan/tools/gnu/pkgconfigdeps.py @@ -1,12 +1,13 @@ import os +import re import textwrap from collections import namedtuple from jinja2 import Template...
diff --git a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py index e211bd6e889..fb6bc02c644 100644 --- a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py +++ b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py @@ -94,9 +9...
[ { "components": [ { "doc": "Get all the freeform variables defined by Conan and\nusers (through ``pkg_config_custom_content``). This last ones will override the\nConan defined variables.", "lines": [ 129, 154 ], "name": "_PCContentGenerator._get_pc_varia...
[ "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_empty_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_custom_content", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_name_full_aliases" ]
[ "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_system_libs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include", "conans/test/integration/toolchains/gnu/test_pkgconfigd...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [PkgConfigDeps] `pkg_config_custom_content` property overwrites variables Changelog: Feature: Let `pkg_config_custom_content` overwrite default `*.pc` variables created by `PkgConfigDeps`. Changelog:...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
django__django-17045
17,045
django/django
5.0
2ddfa3e2b63d7a77270711dbe63aafb86abf4ddd
2023-07-04T13:41:24Z
diff --git a/AUTHORS b/AUTHORS index 40df3589c024..6cafad023aa5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better: Aljaž Košir <aljazkosir5@gmail.com> Aljosa Mohorovic <aljosa.mohorovic@gmail.com> Alokik Vijay <alokik.roe@gmail.com> +...
diff --git a/tests/check_framework/test_urls.py b/tests/check_framework/test_urls.py index a9038c6f13ce..4b6a4a6f3eb3 100644 --- a/tests/check_framework/test_urls.py +++ b/tests/check_framework/test_urls.py @@ -161,6 +161,47 @@ def test_check_view_not_class(self): ], ) + @override_settings( +...
diff --git a/AUTHORS b/AUTHORS index 40df3589c024..6cafad023aa5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better: Aljaž Košir <aljazkosir5@gmail.com> Aljosa Mohorovic <aljosa.mohorovic@gmail.com> Alokik Vijay <alokik.roe@gmail.com> +...
[ { "components": [ { "doc": "", "lines": [ 337, 363 ], "name": "RoutePattern._check_pattern_unmatched_angle_brackets", "signature": "def _check_pattern_unmatched_angle_brackets(self):", "type": "function" } ], "file": "django...
[ "test_warning_unmatched_angle_brackets (check_framework.test_urls.CheckUrlConfigTests.test_warning_unmatched_angle_brackets)" ]
[ "test_empty_string_no_errors (check_framework.test_urls.CheckURLSettingsTests.test_empty_string_no_errors)", "test_media_url_no_slash (check_framework.test_urls.CheckURLSettingsTests.test_media_url_no_slash)", "test_slash_no_errors (check_framework.test_urls.CheckURLSettingsTests.test_slash_no_errors)", "test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #34691 -- Added system check for unmatched angle brackets in path(). I added the bracket checker like what we have for $. This is my first contribution to the Django project! Let me know if ther...
Here is the discussion in the issues of the pull request. <issues> Add a system check for unmatched URL paths' < / > Description Currently, unmatched angle brackets are silently ignored: path('<int:question_id/vote/', views.vote, name='vote'), This leads to a frustrating debugging experience, where a 404 or NoRever...
8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015
roboflow__supervision-170
170
roboflow/supervision
null
dd80753b2b17389ca0645c067d7f218bc9caa762
2023-07-02T21:27:03Z
diff --git a/docs/detection/annotate.md b/docs/detection/annotate.md index d37f14823..cc0be9fc1 100644 --- a/docs/detection/annotate.md +++ b/docs/detection/annotate.md @@ -1,11 +1,19 @@ -## BoxAnnotator +## BoundingBoxAnnotator -:::supervision.detection.annotate.BoxAnnotator +:::supervision.annotators.core.BoundingB...
diff --git a/test/annotators/__init__.py b/test/annotators/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/test/annotators/test_base.py b/test/annotators/test_base.py new file mode 100644 index 000000000..73d5a147d --- /dev/null +++ b/test/annotators/test_base.py @@ -0,0 +1,94 @@ +from contextl...
diff --git a/docs/detection/annotate.md b/docs/detection/annotate.md index d37f14823..cc0be9fc1 100644 --- a/docs/detection/annotate.md +++ b/docs/detection/annotate.md @@ -1,11 +1,19 @@ -## BoxAnnotator +## BoundingBoxAnnotator -:::supervision.detection.annotate.BoxAnnotator +:::supervision.annotators.core.BoundingB...
[ { "components": [ { "doc": "Enum for annotator color mapping.", "lines": [ 11, 18 ], "name": "ColorMap", "signature": "class ColorMap(Enum):", "type": "class" }, { "doc": "", "lines": [ 21, ...
[ "test/annotators/test_base.py::test_resolve_color_idx[detections0-0-ColorMap.INDEX-0-exception0]", "test/annotators/test_base.py::test_resolve_color_idx[detections1-0-ColorMap.CLASS-5-exception1]", "test/annotators/test_base.py::test_resolve_color_idx[detections2-0-ColorMap.TRACK-2-exception2]", "test/annotat...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> redesigned annotators This PR expands our range of Annotators and makes them more reusable. ![bounding-box-annotator-example](https://github.com/roboflow/supervision/assets/26109316/ba6943f8-3744-4...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
scikit-learn__scikit-learn-26734
26,734
scikit-learn/scikit-learn
1.4
1fbf5fb317034e604d7ae71f368cd9e5b236ec0c
2023-06-29T21:37:42Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 7f6f5c910a3fc..f4ae4ffbf8911 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -995,6 +995,8 @@ details. metrics.median_absolute_error metrics.mean_absolute_percentage_error metrics.r2_score + metrics.root_mean_square...
diff --git a/sklearn/metrics/tests/test_regression.py b/sklearn/metrics/tests/test_regression.py index f0486d1e942e6..29afac5cbc824 100644 --- a/sklearn/metrics/tests/test_regression.py +++ b/sklearn/metrics/tests/test_regression.py @@ -23,6 +23,8 @@ mean_tweedie_deviance, median_absolute_error, r2_score...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 7f6f5c910a3fc..f4ae4ffbf8911 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -995,6 +995,8 @@ details. metrics.median_absolute_error metrics.mean_absolute_percentage_error metrics.r2_score + metrics.root_mean_square...
[ { "components": [ { "doc": "Root mean squared error regression loss.\n\nRead more in the :ref:`User Guide <mean_squared_error>`.\n\n.. versionadded:: 1.4\n\nParameters\n----------\ny_true : array-like of shape (n_samples,) or (n_samples, n_outputs)\n Ground truth (correct) target values.\n\ny_p...
[ "sklearn/metrics/tests/test_regression.py::test_regression_metrics", "sklearn/metrics/tests/test_regression.py::test_root_mean_squared_error_multioutput_raw_value", "sklearn/metrics/tests/test_regression.py::test_multioutput_regression", "sklearn/metrics/tests/test_regression.py::test_regression_metrics_at_li...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> API replace mean_squared_error(square=False) by root_mean_squared_error <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://githu...
ae2c80a21007d8295fb3ec3a927fce17b3d60ab8
snowflakedb__snowflake-connector-python-1621
1,621
snowflakedb/snowflake-connector-python
null
320dbcee525fd83847f8f059044a6bc645905a21
2023-06-28T23:57:22Z
diff --git a/DESCRIPTION.md b/DESCRIPTION.md index dd658ccacf..728e8ca54d 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -15,6 +15,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne - Added a parameter `server_session_keep_alive` in `SnowflakeConnection` that skips session del...
diff --git a/test/unit/test_result_batch.py b/test/unit/test_result_batch.py index 3d3b86241a..315d8089d3 100644 --- a/test/unit/test_result_batch.py +++ b/test/unit/test_result_batch.py @@ -23,6 +23,7 @@ OK, REQUEST_TIMEOUT, SERVICE_UNAVAILABLE, + TOO_MANY_REQUESTS, UNAUTHORIZED, ) from snowfl...
diff --git a/DESCRIPTION.md b/DESCRIPTION.md index dd658ccacf..728e8ca54d 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -15,6 +15,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne - Added a parameter `server_session_keep_alive` in `SnowflakeConnection` that skips session del...
[ { "components": [ { "doc": "Exception for 429 HTTP error for retry.", "lines": [ 539, 548 ], "name": "TooManyRequests", "signature": "class TooManyRequests(Error):", "type": "class" }, { "doc": "", "lines": [ ...
[ "test/unit/test_result_batch.py::test_ok_response_download", "test/unit/test_result_batch.py::test_retryable_response_download[HTTPStatus.BAD_REQUEST-BadRequest]", "test/unit/test_result_batch.py::test_retryable_response_download[HTTPStatus.FORBIDDEN-ForbiddenError]", "test/unit/test_result_batch.py::test_ret...
[ "test/unit/test_retry_network.py::test_request_exec", "test/unit/test_retry_network.py::test_fetch", "test/unit/test_retry_network.py::test_secret_masking" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> SNOW-736326: Add retry reason for retried queries Please answer these questions before submitting your pull requests. Thanks! 1. What GitHub issue is this PR addressing? Make sure that there is an ...
138241c3604e78fd35fe38a2c0bc55ebc2d47f66
tobymao__sqlglot-1847
1,847
tobymao/sqlglot
null
898f1a2ed4f575d11f7d8680c2d642c3d5b8320c
2023-06-28T17:03:05Z
diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py index 94ea365f4f..d156d66b05 100644 --- a/sqlglot/dialects/bigquery.py +++ b/sqlglot/dialects/bigquery.py @@ -1,5 +1,6 @@ from __future__ import annotations +import logging import re import typing as t @@ -21,6 +22,8 @@ from sqlglot.helper...
diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py index e2b655dffc..c4f364e631 100644 --- a/tests/dialects/test_bigquery.py +++ b/tests/dialects/test_bigquery.py @@ -1,3 +1,5 @@ +from unittest import mock + from sqlglot import ErrorLevel, ParseError, UnsupportedError, transpile from tests...
[]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_pushdown_cte_column_names" ]
[ "tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery", "tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat", "tests/dialects/test_bigquery.py::TestBigQuery::test_merge", "tests/dialects/test_bigquery.py::TestBigQuery::test_remove_precision_parameterized_types", "tests/dialects/test_bi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(bigquery): pushdown CTE column names {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are...
ceb42fabad60312699e4b15936aeebac00e22e4d
pvlib__pvlib-python-1784
1,784
pvlib/pvlib-python
0.9
996361d56dce8d4f14b0a1f3484528b90eb50ace
2023-06-26T18:00:53Z
diff --git a/docs/sphinx/source/whatsnew/v0.10.2.rst b/docs/sphinx/source/whatsnew/v0.10.2.rst index 7259f6a566..dacfe27f53 100644 --- a/docs/sphinx/source/whatsnew/v0.10.2.rst +++ b/docs/sphinx/source/whatsnew/v0.10.2.rst @@ -15,6 +15,8 @@ Enhancements :py:func:`pvlib.iotools.get_pvgis_hourly`, :py:func:`pvlib.ioto...
diff --git a/pvlib/tests/test_clearsky.py b/pvlib/tests/test_clearsky.py index 37b95dcdf9..c2ef607f0f 100644 --- a/pvlib/tests/test_clearsky.py +++ b/pvlib/tests/test_clearsky.py @@ -533,6 +533,49 @@ def detect_clearsky_data(): return expected, cs +@pytest.fixture +def detect_clearsky_threshold_data(): + # ...
diff --git a/docs/sphinx/source/whatsnew/v0.10.2.rst b/docs/sphinx/source/whatsnew/v0.10.2.rst index 7259f6a566..dacfe27f53 100644 --- a/docs/sphinx/source/whatsnew/v0.10.2.rst +++ b/docs/sphinx/source/whatsnew/v0.10.2.rst @@ -15,6 +15,8 @@ Enhancements :py:func:`pvlib.iotools.get_pvgis_hourly`, :py:func:`pvlib.ioto...
[ { "components": [ { "doc": "Returns threshold values for kwargs in detect_clearsky. See\nTable 1 in [1].\n\nReferences\n----------\n.. [1] Jordan, D.C. and C. Hansen, \"Clear-sky detection for PV\n degradation analysis using multiple regression\", Renewable Energy,\n v209, p. 393-400, 2023.", ...
[ "pvlib/tests/test_clearsky.py::test_clearsky_get_threshold", "pvlib/tests/test_clearsky.py::test_clearsky_get_threshold_raises_error", "pvlib/tests/test_clearsky.py::test_detect_clearsky_calls_threshold", "pvlib/tests/test_clearsky.py::test_detect_clearsky_not_enough_data", "pvlib/tests/test_clearsky.py::te...
[ "pvlib/tests/test_clearsky.py::test_ineichen_series", "pvlib/tests/test_clearsky.py::test_ineichen_series_perez_enhancement", "pvlib/tests/test_clearsky.py::test_ineichen_scalar_input", "pvlib/tests/test_clearsky.py::test_ineichen_nans", "pvlib/tests/test_clearsky.py::test_ineichen_arrays", "pvlib/tests/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Infer thresholds for detect_clearsky - [x] Closes #1808 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests added ...
Here is the discussion in the issues of the pull request. <issues> Extend detect_clearsky for different data periods The threshold parameters for `pvlib.clearsky.detect_clearsky` were calibrated using data at 1 minute intervals. Recently, Jordan and Hansen [1] showed how to extend the `detect_clearsky` function for tim...
d53f97e984bfdd268aa92f8bf482ced0edda0110
conan-io__conan-14169
14,169
conan-io/conan
null
ccdd94f2941060bf69b47536b4ccbc22da1288ac
2023-06-26T17:15:08Z
diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py index f47cd2beffd..a697136753c 100644 --- a/conan/tools/files/__init__.py +++ b/conan/tools/files/__init__.py @@ -7,4 +7,4 @@ from conan.tools.files.packager import AutoPackager from conan.tools.files.symlinks import symlinks from conan.tools...
diff --git a/conans/test/integration/conanfile/conan_data_test.py b/conans/test/integration/conanfile/conan_data_test.py index ff154c15cb3..47d773a252e 100644 --- a/conans/test/integration/conanfile/conan_data_test.py +++ b/conans/test/integration/conanfile/conan_data_test.py @@ -331,3 +331,53 @@ def export(self): ...
[ { "components": [ { "doc": "Tool to modify the ``conandata.yml`` once it is exported, to limit it to the current version\nonly", "lines": [ 36, 61 ], "name": "trim_conandata", "signature": "def trim_conandata(conanfile):", "type": "functi...
[ "conans/test/integration/conanfile/conan_data_test.py::test_conandata_trim" ]
[ "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_as_source", "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_as_source_newtools", "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_development_flow", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> trim_conandata() Changelog: Feature: New ``trim_conandata()`` function to make things explicit, not depend on hook. Docs: https://github.com/conan-io/docs/pull/3373 ---------- </request> Ther...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
scikit-learn__scikit-learn-26689
26,689
scikit-learn/scikit-learn
1.6
f6280bf4fd30627eeef7eb344f17d4fc05d37502
2023-06-23T17:50:45Z
diff --git a/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst new file mode 100644 index 0000000000000..ebc50d1bc6aaa --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst @@ -0,0 +1,7 @@ ...
diff --git a/sklearn/neighbors/tests/test_nearest_centroid.py b/sklearn/neighbors/tests/test_nearest_centroid.py index 5ce792ac29d56..1aa9274cd28a8 100644 --- a/sklearn/neighbors/tests/test_nearest_centroid.py +++ b/sklearn/neighbors/tests/test_nearest_centroid.py @@ -4,10 +4,14 @@ import numpy as np import pytest ...
diff --git a/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst new file mode 100644 index 0000000000000..ebc50d1bc6aaa --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.neighbors/26689.enhancement.rst @@ -0,0 +1,7 @@ ...
[ { "components": [ { "doc": "Mixin class for QuadraticDiscriminantAnalysis and NearestCentroid.", "lines": [ 171, 245 ], "name": "DiscriminantAnalysisPredictionMixin", "signature": "class DiscriminantAnalysisPredictionMixin:", "type": "cla...
[ "sklearn/neighbors/tests/test_nearest_centroid.py::test_classification_toy[csr_matrix]", "sklearn/neighbors/tests/test_nearest_centroid.py::test_classification_toy[csr_array]", "sklearn/neighbors/tests/test_nearest_centroid.py::test_negative_priors_error", "sklearn/neighbors/tests/test_nearest_centroid.py::te...
[ "sklearn/neighbors/tests/test_nearest_centroid.py::test_iris", "sklearn/neighbors/tests/test_nearest_centroid.py::test_iris_shrinkage", "sklearn/neighbors/tests/test_nearest_centroid.py::test_pickle", "sklearn/neighbors/tests/test_nearest_centroid.py::test_shrinkage_correct", "sklearn/neighbors/tests/test_n...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add decision_function, predict_proba and predict_log_proba for NearestCentroid estimator #### Reference Issues/PRs closes #17711 and #26659 supersede #17711 #### What does this implement/fix...
Here is the discussion in the issues of the pull request. <issues> Implement probability estimates for NearestCentroid classifier #### Reference Issues/PRs There are no related issues or PRs. #### What does this implement/fix? Explain your changes. This contribution implements the .predict_proba() method for the N...
18dc8630a7cbe1b591c12774949058b12157a39a
astropy__astropy-14979
14,979
astropy/astropy
5.2
9e3d8361e8b047a13d6279693f169476882e38f9
2023-06-22T19:53:15Z
diff --git a/astropy/cosmology/_io/yaml.py b/astropy/cosmology/_io/yaml.py index abdf8f73749e..71bf1a5bda1e 100644 --- a/astropy/cosmology/_io/yaml.py +++ b/astropy/cosmology/_io/yaml.py @@ -200,9 +200,6 @@ def to_yaml(cosmology, *args): # =================================================================== # Register...
diff --git a/astropy/cosmology/tests/test_core.py b/astropy/cosmology/tests/test_core.py index ba4c6ad19c8b..bd484a942248 100644 --- a/astropy/cosmology/tests/test_core.py +++ b/astropy/cosmology/tests/test_core.py @@ -141,6 +141,9 @@ def cosmo(self, cosmo_cls): def test_init_subclass(self, cosmo_cls): ""...
[ { "components": [ { "doc": "", "lines": [ 145, 152 ], "name": "Cosmology._register_cls", "signature": "def _register_cls(cls):", "type": "function" } ], "file": "astropy/cosmology/core.py" } ]
[ "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_yaml", "astropy/cosmology/tests/test_core.py::TestCosmology::test_from_yaml_default", "astropy/cosmology/tests/test_core.py::TestCosmology::test_from_yaml_autoidentify", "astropy/cosmology/tests/test_core.py::TestCosmology::test_is_equivalent_to_ya...
[ "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_bad_index", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_failed_cls", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_cls[QTable]", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Register YAML on class creation Auto-registration of Cosmology classes with YAML. Optionally turn off the registration for e.g. temporary classes. ---------- </request> There are several new functi...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
softlayer__softlayer-python-1999
1,999
softlayer/softlayer-python
null
36d7c19ae40ca3bec8d7c07454a60ee3d8cd9a9e
2023-06-21T13:56:06Z
diff --git a/SoftLayer/CLI/loadbal/protocol_add.py b/SoftLayer/CLI/loadbal/protocol_add.py new file mode 100644 index 000000000..dd5a4f60f --- /dev/null +++ b/SoftLayer/CLI/loadbal/protocol_add.py @@ -0,0 +1,66 @@ +"""Add a new load balancer protocol.""" +import click + +import SoftLayer +from SoftLayer.CLI import envi...
diff --git a/tests/CLI/modules/loadbal_tests.py b/tests/CLI/modules/loadbal_tests.py index cbba6266c..dabfa8891 100644 --- a/tests/CLI/modules/loadbal_tests.py +++ b/tests/CLI/modules/loadbal_tests.py @@ -315,3 +315,23 @@ def test_ns_detail(self): result = self.run_command(['loadbal', 'ns-detail', '11111']) ...
diff --git a/docs/cli/loadbal.rst b/docs/cli/loadbal.rst index e019e2aa0..3ba20f9ee 100644 --- a/docs/cli/loadbal.rst +++ b/docs/cli/loadbal.rst @@ -52,6 +52,15 @@ LBaaS Commands .. click:: SoftLayer.CLI.loadbal.order:cancel :prog: loadbal cancel :show-nested: +.. click:: SoftLayer.CLI.loadbal.protocol_add:cli...
[ { "components": [ { "doc": "Parses the frontend and backend cli options", "lines": [ 11, 19 ], "name": "parse_proto", "signature": "def parse_proto(ctx, param, value):", "type": "function" }, { "doc": "Add a new load b...
[ "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_lb_protocol_add", "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_lb_protocol_delete", "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_lb_protocol_edit", "tests/managers/loadbal_tests.py::LoadBalancerTests::test_lbaas_delet...
[ "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_add_7p", "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_add_7p_fail", "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_add_7p_server", "tests/CLI/modules/loadbal_tests.py::LoadBalancerTests::test_add_7p_server_fail", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> LB protocol features [#issue1986](https://github.com/softlayer/softlayer-python/issues/1986) **protocol-add** ![image](https://github.com/softlayer/softlayer-python/assets/22535437/55115e08-c377-4...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d